CN109885357B - Adjustment method for automatic screen-off time, wearable device and readable storage medium - Google Patents

Adjustment method for automatic screen-off time, wearable device and readable storage medium Download PDF

Info

Publication number
CN109885357B
CN109885357B CN201910139243.6A CN201910139243A CN109885357B CN 109885357 B CN109885357 B CN 109885357B CN 201910139243 A CN201910139243 A CN 201910139243A CN 109885357 B CN109885357 B CN 109885357B
Authority
CN
China
Prior art keywords
wearable device
time
screen
interface
automatic screen
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910139243.6A
Other languages
Chinese (zh)
Other versions
CN109885357A (en
Inventor
陈亚南
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201910139243.6A priority Critical patent/CN109885357B/en
Publication of CN109885357A publication Critical patent/CN109885357A/en
Application granted granted Critical
Publication of CN109885357B publication Critical patent/CN109885357B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Controls And Circuits For Display Device (AREA)

Abstract

The invention discloses a method for adjusting automatic screen-off time, which comprises the following steps: monitoring whether a current display interface of the wearable device is a login interface; when the fact that the current display interface of the wearable device is a login interface is monitored, acquiring default automatic screen-off time of the wearable device, and judging whether the default automatic screen-off time is smaller than a preset threshold value or not. If the default automatic screen-off time is smaller than a preset threshold value, setting the default automatic screen-off time of the wearable device as the preset automatic screen-off time. The invention also discloses the wearable device and a readable storage medium. The invention can improve the use convenience of the wearable equipment.

Description

Adjustment method for automatic screen-off time, wearable device and readable storage medium
Technical Field
The invention relates to the technical field of wearable equipment, in particular to an automatic screen-off time adjusting method, wearable equipment and a readable storage medium.
Background
With the increasing development of wearable equipment technology, various wearable equipment which can be matched with intelligent terminals such as mobile phones and the like are popular with users due to good convenience and portability. The smart watch is a typical representation in the wearable device, and not only can be used in cooperation with smart terminals such as a mobile phone, but also can be independently used, for example, the smart watch can independently complete time display, information receiving display, collect motion parameters and physiological parameters of a user, realize positioning, realize various conversations and the like.
The existing wearable device has an automatic screen-off function, namely when a user does not operate the wearable device for a period of time, the wearable device can automatically turn off the screen, however, in the process of actual use, when the automatic screen-off time arrives, the user still needs to continue to use the wearable device, if a verification code is needed when logging in an account, after the verification code is sent by clicking, the wearable device does not receive the verification code when the automatic screen-off time arrives, in such a case, the wearable device automatically turns off the screen, the user is needed to manually turn on the wearable device, the operation of turning on the screen again after the screen is redundant, and the user is inconvenient to use the wearable device.
Therefore, how to improve the usability of the wearable device is a problem to be solved at present.
Disclosure of Invention
The invention mainly aims to provide an adjusting method of automatic screen-off time, wearable equipment and a readable storage medium, and aims to improve the use convenience of the wearable equipment.
In order to achieve the above object, the present invention provides a method for adjusting automatic screen-off time, the method for adjusting automatic screen-off time comprising the steps of:
monitoring whether a current display interface of the wearable device is a login interface;
when the current display interface of the wearable device is a login interface, acquiring default automatic screen-off time of the wearable device, and judging whether the default automatic screen-off time is smaller than a preset threshold value;
if the default automatic screen-off time is smaller than a preset threshold value, setting the default automatic screen-off time of the wearable device as the preset automatic screen-off time.
Optionally, the step of monitoring whether the current display interface of the wearable device is a login interface includes:
acquiring a first interface identifier of a current display interface of the wearable device, and acquiring a second interface identifier from a first preset function;
judging whether the first interface identifier is the same as the second interface identifier;
if the first interface identifier is the same as the second interface identifier, determining that the current display interface of the wearable device is a login interface;
and if the first interface identifier is different from the second interface identifier, determining that the current display interface of the wearable device is not a login interface.
Optionally, before the step of obtaining the default automatic screen-off time of the wearable device and determining whether the default automatic screen-off time is less than a preset threshold, the method further includes:
when the current display interface of the wearable device is a login interface, determining a type tag of the first interface identifier, and judging whether the type tag is a preset tag or not;
if the type tag is a preset tag, executing the steps of: acquiring default automatic screen-off time of the wearable device, and judging whether the default automatic screen-off time is smaller than a preset threshold value.
Optionally, before the step of obtaining the default automatic screen-off time of the wearable device and determining whether the default automatic screen-off time is less than a preset threshold, the method further includes:
when the current display interface of the wearable device is monitored to be a login interface, executing screen capturing operation to obtain a login interface screenshot;
acquiring text information from the login interface screenshot, and judging whether the text information contains preset keywords or not;
if the text information contains a preset keyword, executing the steps of: acquiring default automatic screen-off time of the wearable device, and judging whether the default automatic screen-off time is smaller than a preset threshold value.
Optionally, after the step of setting the default automatic screen-off time of the wearable device to the preset automatic screen-off time, the method further includes:
monitoring whether a current display interface of the wearable device is switched from a login interface to other interfaces;
if the fact that the current display interface of the wearable device is switched from the login interface to the other interfaces is monitored, setting the current automatic screen-off time of the wearable device as the default automatic screen-off time.
Optionally, the step of monitoring whether the current display interface of the wearable device is switched from the login interface to the rest interfaces comprises:
acquiring a third interface identifier of a current display interface of the wearable device, and acquiring a fourth interface identifier from a second preset function;
judging whether the third interface identifier is identical to the fourth interface identifier;
and if the third interface identifier is the same as the fourth interface identifier, determining that the current display interface of the wearable device is switched from a login interface to other interfaces.
Optionally, after the step of setting the default automatic screen-off time of the wearable device to the preset automatic screen-off time, the method further includes:
acquiring a light intensity value of an environment where the wearable device is located, which is acquired by a light sensor, and acquiring a screen brightness value of the wearable device;
judging whether to trigger a screen brightness adjusting instruction according to the light intensity value and the screen brightness value;
and if the screen brightness adjusting instruction is triggered, adjusting the screen brightness value of the wearable device according to the screen brightness adjusting instruction.
Optionally, the step of determining whether to trigger the screen brightness adjustment instruction according to the light intensity value and the screen brightness value includes:
determining a target screen brightness value according to the light intensity value, and judging whether the target screen brightness value is the same as the screen brightness value;
if the target screen brightness value is different from the screen brightness value, triggering a screen brightness adjusting instruction containing the target screen brightness value;
and if the target screen brightness value is the same as the screen brightness value, not triggering a screen brightness adjusting instruction.
In addition, to achieve the above object, the present invention also provides a wearable device, including: the automatic screen off time adjustment device comprises a memory, a processor and an automatic screen off time adjustment program which is stored in the memory and can run on the processor, wherein the automatic screen off time adjustment program realizes the steps of the automatic screen off time adjustment method when being executed by the processor.
In addition, in order to achieve the above object, the present invention also provides a readable storage medium having stored thereon an adjustment program for automatic off-screen time, which when executed by a processor, implements the steps of the adjustment method for automatic off-screen time as described above.
The invention provides an automatic screen-off time adjusting method, a wearable device and a readable storage medium.
Drawings
FIG. 1 is a schematic diagram of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a first embodiment of a method for adjusting an auto-off time according to the present invention;
FIG. 3 is a schematic diagram showing a login interface of a wearable device according to a first embodiment of the present invention;
FIG. 4 is another schematic diagram of a login interface displayed by a wearable device according to a first embodiment of the present invention;
fig. 5 is a flowchart illustrating a second embodiment of the method for adjusting automatic screen-off time according to the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
In the following description, suffixes such as "module", "component", or "unit" for representing elements are used only for facilitating the description of the present invention, and have no specific meaning per se. Thus, "module," "component," or "unit" may be used in combination.
The wearable device provided by the embodiment of the invention can be an intelligent watch and an intelligent bracelet.
As shown in fig. 1, the wearable device may include: a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display, an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
Those skilled in the art will appreciate that the wearable device structure shown in fig. 1 does not constitute a limitation of the wearable device, and may include more or fewer components than shown, or may combine certain components, or may be arranged in a different arrangement of components.
As shown in fig. 1, the memory 109, which is a readable storage medium, may include an operating system, a network communication module, a user interface module, and an adjustment program for the auto off-screen time, and the processor 110 may be configured to call the adjustment program for the auto off-screen time stored in the memory 109 and perform the following steps:
monitoring whether a current display interface of the wearable device is a login interface;
when the current display interface of the wearable device is a login interface, acquiring default automatic screen-off time of the wearable device, and judging whether the default automatic screen-off time is smaller than a preset threshold value;
if the default automatic screen-off time is smaller than a preset threshold value, setting the default automatic screen-off time of the wearable device as the preset automatic screen-off time.
Further, the processor 110 may be configured to invoke the adjustment program of the auto off screen time stored in the memory 109, and further perform the following steps:
acquiring a first interface identifier of a current display interface of the wearable device, and acquiring a second interface identifier from a first preset function;
judging whether the first interface identifier is the same as the second interface identifier;
if the first interface identifier is the same as the second interface identifier, determining that the current display interface of the wearable device is a login interface;
and if the first interface identifier is different from the second interface identifier, determining that the current display interface of the wearable device is not a login interface.
Further, the processor 110 may be configured to invoke the adjustment program of the auto off screen time stored in the memory 109, and further perform the following steps:
when the current display interface of the wearable device is a login interface, determining a type tag of the first interface identifier, and judging whether the type tag is a preset tag or not;
if the type tag is a preset tag, executing the steps of: acquiring default automatic screen-off time of the wearable device, and judging whether the default automatic screen-off time is smaller than a preset threshold value.
Further, the processor 110 may be configured to invoke the adjustment program of the auto off screen time stored in the memory 109, and further perform the following steps:
when the current display interface of the wearable device is monitored to be a login interface, executing screen capturing operation to obtain a login interface screenshot;
acquiring text information from the login interface screenshot, and judging whether the text information contains preset keywords or not;
if the text information contains a preset keyword, executing the steps of: acquiring default automatic screen-off time of the wearable device, and judging whether the default automatic screen-off time is smaller than a preset threshold value.
Further, the processor 110 may be configured to invoke the adjustment program of the auto off screen time stored in the memory 109, and further perform the following steps:
monitoring whether a current display interface of the wearable device is switched from a login interface to other interfaces;
if the fact that the current display interface of the wearable device is switched from the login interface to the other interfaces is monitored, setting the current automatic screen-off time of the wearable device as the default automatic screen-off time.
Further, the processor 110 may be configured to invoke the adjustment program of the auto off screen time stored in the memory 109, and further perform the following steps:
acquiring a third interface identifier of a current display interface of the wearable device, and acquiring a fourth interface identifier from a second preset function;
judging whether the third interface identifier is identical to the fourth interface identifier;
and if the third interface identifier is the same as the fourth interface identifier, determining that the current display interface of the wearable device is switched from a login interface to other interfaces.
Further, the processor 110 may be configured to invoke the adjustment program of the auto off screen time stored in the memory 109, and further perform the following steps:
acquiring a light intensity value of an environment where the wearable device is located, which is acquired by a light sensor, and acquiring a screen brightness value of the wearable device;
judging whether to trigger a screen brightness adjusting instruction according to the light intensity value and the screen brightness value;
and if the screen brightness adjusting instruction is triggered, adjusting the screen brightness value of the wearable device according to the screen brightness adjusting instruction.
Further, the processor 110 may be configured to invoke the adjustment program of the auto off screen time stored in the memory 109, and further perform the following steps:
determining a target screen brightness value according to the light intensity value, and judging whether the target screen brightness value is the same as the screen brightness value;
if the target screen brightness value is different from the screen brightness value, triggering a screen brightness adjusting instruction containing the target screen brightness value;
and if the target screen brightness value is the same as the screen brightness value, not triggering a screen brightness adjusting instruction.
The specific embodiment of the wearable device of the present invention is substantially the same as each embodiment of the following method for adjusting the automatic screen-off time, and will not be described herein.
The invention provides a method for adjusting automatic screen-off time.
Referring to fig. 2, a flowchart of a first embodiment of the method for adjusting automatic off-screen time according to the present invention is shown in fig. 2.
In this embodiment, the method for adjusting the automatic screen-off time includes:
step S101, monitoring whether a current display interface of the wearable device is a login interface;
in this embodiment, the method for adjusting the automatic screen-off time is applied to a wearable device, and the wearable device may be selected from the wearable devices shown in fig. 1, where the wearable device includes, but is not limited to, a smart watch and a smart bracelet. When the wearable device is in a bright screen state, whether a current display interface of the wearable device is a login interface or not is monitored. Specifically, a first interface identifier of a current display interface of the wearable device is obtained, a second interface identifier is obtained from a first preset function, whether the first interface identifier is identical to the second interface identifier or not is judged, if the first interface identifier is identical to the second interface identifier, the current display interface of the wearable device is determined to be a login interface, and if the first interface identifier is not identical to the second interface identifier, the current display interface of the wearable device is determined to not be the login interface. The interface identifier is a name of Activity, and the first preset function is a noteActivityResume in the frame Activity class, that is, when the name of Activity in the noteActivityResume (the second interface identifier) is the same as the name of Activity of the current display interface (the first interface identifier), the current display interface is a login interface.
Step S102, when the current display interface of the wearable device is a login interface, acquiring default automatic screen-off time of the wearable device, and judging whether the default automatic screen-off time is smaller than a preset threshold value;
in this embodiment, when it is monitored that the current display interface of the wearable device is a login interface, a default automatic screen-off time of the wearable device is obtained, and whether the default automatic screen-off time is smaller than a preset threshold value is determined. It should be noted that, the default automatic screen-off time may be set by a user of the wearable device, that is, the wearable device is provided with a plurality of default automatic screen-off times, the user may select one of the default automatic screen-off times to set, and the preset threshold may be set by a person skilled in the art based on actual situations, which is not limited in this embodiment specifically. If the default automatic screen-off time is smaller than a preset threshold, the default automatic screen-off time is indicated to not meet the requirement of the current display interface, namely the default automatic screen-off time needs to be prolonged, and if the default automatic screen-off time is larger than the preset threshold, the default automatic screen-off time is indicated to meet the requirement of the current display interface, namely the default automatic screen-off time does not need to be prolonged. A schematic diagram of a current display interface of the wearable device as a login interface is shown in fig. 3, and the login interface is displayed with a user name input box, a password forgetting control and a login control.
Further, in actual situations, only when the login interface needs to input the short message verification code, when the automatic screen-off time of the wearable device arrives, but the automatic screen-off of the wearable device does not receive the short message verification code (usually caused by network delay), the problem that the user needs to manually lighten the wearable device and input the short message verification code is solved, therefore, frequent adjustment of the automatic screen-off time is further reduced, when the current display interface of the wearable device is monitored to be the login interface, whether the login interface is an interface containing the short message verification code which needs to be input is further judged, and if the login interface is an interface containing the short message verification code which needs to be input, whether the default automatic screen-off time of the wearable device is smaller than a preset threshold value is further judged. The login interface is an interface containing a short message verification code to be input, as shown in fig. 4, and the login interface is displayed with a mobile phone number input box, a verification code sending control and a login control.
Specifically, when it is monitored that the current display interface of the wearable device is a login interface, determining a type tag of the first interface identifier, and judging whether the type tag is a preset tag, if the type tag is the preset tag, executing step S102, namely acquiring a default automatic screen-off time of the wearable device, and judging whether the default automatic screen-off time is smaller than a preset threshold value. The type label comprises a first label corresponding to a common login interface and a second label corresponding to a login interface containing a short message verification code to be input, and the preset label is the second label, namely when the type label of the first interface identifier is the second label, the login interface can be determined to be the interface containing the short message verification code to be input.
Step S103, if the default automatic screen-off time is smaller than a preset threshold value, setting the default automatic screen-off time of the wearable device as the preset automatic screen-off time.
In this embodiment, if the default automatic screen-off time is smaller than a preset threshold, the wearable device sets the default automatic screen-off time to be a preset automatic screen-off time, and the preset automatic screen-off time is larger than the default automatic screen-off time, and if the default automatic screen-off time is larger than or equal to the preset threshold, the processing is not performed. It should be noted that the preset automatic screen-off time may be set based on actual situations, which is not specifically limited in this embodiment.
Further, in the actual use process, because the automatic screen-off time is prolonged, when the current display interface is switched from the login interface to the other interfaces, the wearable device automatically shuts off the screen after a longer screen-on time is needed, more electric quantity is needed to be consumed, the cruising performance of the wearable device is affected, and therefore, whether the current display interface of the wearable device is switched from the login interface to the other interfaces is monitored, and if the current display interface of the wearable device is monitored to be switched from the login interface to the other interfaces, the current automatic screen-off time of the wearable device is set to the default automatic screen-off time. Specifically, a third interface identifier of a current display interface of the wearable device is obtained, a fourth interface identifier is obtained from a second preset function, whether the third interface identifier is identical to the fourth interface identifier is judged, and if the third interface identifier is identical to the fourth interface identifier, it is determined that the current display interface of the wearable device is switched from a login interface to other interfaces. The second preset function is a noteActivePause in the framework Activity class, the name of the Activity in the noteActivePause is a fourth interface identifier, and the name of the Activity of the current display interface is a third interface identifier.
In this embodiment, whether the current display interface of the wearable device is a login interface is monitored, when the current display interface of the wearable device is monitored to be the login interface, the default automatic screen-off time of the wearable device is obtained, whether the default automatic screen-off time is smaller than a preset threshold value is judged, if the default automatic screen-off time is smaller than the preset threshold value, the default automatic screen-off time is set to be the preset automatic screen-off time, when the wearable device logs in an application, a user determines whether to adjust the automatic screen-off time by judging whether the default automatic screen-off time of the wearable device is smaller than a set value, and only when the default automatic screen-off time is smaller than the set value, the default automatic screen-off time is set to be the preset automatic screen-off time, namely, the automatic screen-off time is increased, so that the user can finish the login of the application when the wearable device is in a screen-on state, the automatic screen-off of the wearable device is not needed, and the use convenience of the wearable device is greatly improved.
Further, referring to fig. 5, based on the first embodiment, a second embodiment of the method for adjusting automatic screen-off time according to the present invention is provided, which is different from the previous embodiment in that after step S101, the method further includes:
step S104, when the current display interface of the wearable device is a login interface, executing screen capturing operation to obtain a login interface screenshot;
step S105, acquiring text information from the login interface screenshot, and judging whether the text information contains preset keywords or not;
if the text information contains the preset keyword, step S102 is executed, the default automatic screen-off time of the wearable device is obtained, and whether the default automatic screen-off time is smaller than a preset threshold value is judged.
In practical situations, only when the logging-in interface needs to input a short message verification code, when the automatic screen-off time of the wearable device arrives, but the automatic screen-off of the wearable device does not receive the short message verification code (usually caused by network delay), the user needs to manually lighten the wearable device and input the short message verification code, so that the problem of frequent adjustment of the automatic screen-off time is further reduced. The specific obtaining mode of the text information is that text information contained in the login interface screenshot is obtained through an OCR (Optical Character Recognition ) algorithm, namely, the login interface screenshot is subjected to denoising, binarization, inclination correction, character cutting, recognition and other processes, and the text information in the login interface screenshot is obtained.
In this embodiment, the present invention further reduces frequent adjustment of the automatic screen-off time by further determining whether the login interface is an interface including a short message verification code to be input.
Further, based on the first or second embodiment, a third embodiment of the method for adjusting an automatic screen-off time according to the present invention is provided, which is different from the foregoing embodiment in that, after the step of setting the default automatic screen-off time of the wearable device to a preset automatic screen-off time, a light intensity value of an environment where the wearable device is located, which is acquired by the light sensor, is acquired, and a screen brightness value of the wearable device is acquired, and then, according to the light intensity value and the screen brightness value, whether to trigger a screen brightness adjustment instruction is determined, and if the screen brightness adjustment instruction is triggered, the screen brightness value of the wearable device is adjusted according to the screen brightness adjustment instruction.
The specific mode of judging whether to trigger the screen brightness adjustment command is to determine a target screen brightness value (query a mapping relation table of pre-stored light intensity values and screen brightness values, determine the screen brightness value corresponding to the light intensity values as the target screen brightness value) according to the light intensity values, judge whether the target screen brightness value is the same as the screen brightness value, trigger the screen brightness adjustment command containing the target screen brightness value if the target screen brightness value is different from the screen brightness value, and not trigger the screen brightness adjustment command if the target screen brightness value is different from the screen brightness value.
In the embodiment, the method and the device can adaptively adjust the screen brightness value of the wearable device based on the line-related intensity value of the environment where the wearable device is located, so that the user does not need to manually adjust the screen brightness, and the use convenience of the wearable device is improved.
In addition, the embodiment of the invention also provides a readable storage medium, wherein the readable storage medium stores an adjusting program of the automatic screen-off time, and the adjusting program of the automatic screen-off time realizes the following steps when being executed by a processor:
monitoring whether a current display interface of the wearable device is a login interface;
when the current display interface of the wearable device is a login interface, acquiring default automatic screen-off time of the wearable device, and judging whether the default automatic screen-off time is smaller than a preset threshold value;
if the default automatic screen-off time is smaller than a preset threshold value, setting the default automatic screen-off time of the wearable device as the preset automatic screen-off time.
Further, the adjusting program of the automatic screen-off time when executed by the processor further realizes the following steps:
acquiring a first interface identifier of a current display interface of the wearable device, and acquiring a second interface identifier from a first preset function;
judging whether the first interface identifier is the same as the second interface identifier;
if the first interface identifier is the same as the second interface identifier, determining that the current display interface of the wearable device is a login interface;
and if the first interface identifier is different from the second interface identifier, determining that the current display interface of the wearable device is not a login interface.
Further, the adjusting program of the automatic screen-off time when executed by the processor further realizes the following steps:
when the current display interface of the wearable device is a login interface, determining a type tag of the first interface identifier, and judging whether the type tag is a preset tag or not;
if the type tag is a preset tag, executing the steps of: acquiring default automatic screen-off time of the wearable device, and judging whether the default automatic screen-off time is smaller than a preset threshold value.
Further, the adjusting program of the automatic screen-off time when executed by the processor further realizes the following steps:
when the current display interface of the wearable device is monitored to be a login interface, executing screen capturing operation to obtain a login interface screenshot;
acquiring text information from the login interface screenshot, and judging whether the text information contains preset keywords or not;
if the text information contains a preset keyword, executing the steps of: acquiring default automatic screen-off time of the wearable device, and judging whether the default automatic screen-off time is smaller than a preset threshold value.
Further, the adjusting program of the automatic screen-off time when executed by the processor further realizes the following steps:
monitoring whether a current display interface of the wearable device is switched from a login interface to other interfaces;
if the fact that the current display interface of the wearable device is switched from the login interface to the other interfaces is monitored, setting the current automatic screen-off time of the wearable device as the default automatic screen-off time.
Further, the adjusting program of the automatic screen-off time when executed by the processor further realizes the following steps:
acquiring a third interface identifier of a current display interface of the wearable device, and acquiring a fourth interface identifier from a second preset function;
judging whether the third interface identifier is identical to the fourth interface identifier;
and if the third interface identifier is the same as the fourth interface identifier, determining that the current display interface of the wearable device is switched from a login interface to other interfaces.
Further, the adjusting program of the automatic screen-off time when executed by the processor further realizes the following steps:
acquiring a light intensity value of an environment where the wearable device is located, which is acquired by a light sensor, and acquiring a screen brightness value of the wearable device;
judging whether to trigger a screen brightness adjusting instruction according to the light intensity value and the screen brightness value;
and if the screen brightness adjusting instruction is triggered, adjusting the screen brightness value of the wearable device according to the screen brightness adjusting instruction.
Further, the adjusting program of the automatic screen-off time when executed by the processor further realizes the following steps:
determining a target screen brightness value according to the light intensity value, and judging whether the target screen brightness value is the same as the screen brightness value;
if the target screen brightness value is different from the screen brightness value, triggering a screen brightness adjusting instruction containing the target screen brightness value;
and if the target screen brightness value is the same as the screen brightness value, not triggering a screen brightness adjusting instruction.
The specific embodiment of the readable storage medium of the present invention is substantially the same as each embodiment of the above-mentioned method for adjusting the automatic screen-off time, and will not be described herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as described above, comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (8)

1. The method for adjusting the automatic screen-off time is characterized by comprising the following steps of:
monitoring whether a current display interface of the wearable device is a login interface;
when the current display interface of the wearable device is a login interface, acquiring default automatic screen-off time of the wearable device, and judging whether the default automatic screen-off time is smaller than a preset threshold value;
if the default automatic screen-off time is smaller than a preset threshold value, setting the default automatic screen-off time of the wearable device as the preset automatic screen-off time;
the step of monitoring whether the current display interface of the wearable device is a login interface comprises the following steps:
acquiring a first interface identifier of a current display interface of the wearable device, and acquiring a second interface identifier from a first preset function;
judging whether the first interface identifier is the same as the second interface identifier;
if the first interface identifier is the same as the second interface identifier, determining that the current display interface of the wearable device is a login interface;
if the first interface identifier is different from the second interface identifier, determining that the current display interface of the wearable device is not a login interface;
the step of obtaining the default automatic screen-off time of the wearable device and judging whether the default automatic screen-off time is smaller than a preset threshold value further comprises:
when the current display interface of the wearable device is a login interface, determining a type tag of the first interface identifier, and judging whether the type tag is a preset tag, wherein the type tag comprises a first tag corresponding to a common login interface and a second tag corresponding to the login interface containing a short message verification code to be input, and the preset tag is the second tag;
if the type tag is a preset tag, determining that the login interface comprises an interface requiring short message verification code input, and executing the steps: acquiring default automatic screen-off time of the wearable device, and judging whether the default automatic screen-off time is smaller than a preset threshold value.
2. The method for adjusting automatic screen off time according to claim 1, wherein the steps of obtaining a default automatic screen off time of the wearable device and determining whether the default automatic screen off time is less than a preset threshold value, further comprise:
when the current display interface of the wearable device is monitored to be a login interface, executing screen capturing operation to obtain a login interface screenshot;
acquiring text information from the login interface screenshot, and judging whether the text information contains preset keywords or not;
if the text information contains a preset keyword, executing the steps of: acquiring default automatic screen-off time of the wearable device, and judging whether the default automatic screen-off time is smaller than a preset threshold value.
3. The method for adjusting automatic screen off time according to any one of claims 1 to 2, further comprising, after the step of setting the default automatic screen off time of the wearable device to a preset automatic screen off time:
monitoring whether a current display interface of the wearable device is switched from a login interface to other interfaces;
if the fact that the current display interface of the wearable device is switched from the login interface to the other interfaces is monitored, setting the current automatic screen-off time of the wearable device as the default automatic screen-off time.
4. The method for adjusting automatic screen off time according to claim 3, wherein the step of monitoring whether the current display interface of the wearable device is switched from a login interface to the rest interface comprises:
acquiring a third interface identifier of a current display interface of the wearable device, and acquiring a fourth interface identifier from a second preset function;
judging whether the third interface identifier is identical to the fourth interface identifier;
and if the third interface identifier is the same as the fourth interface identifier, determining that the current display interface of the wearable device is switched from a login interface to other interfaces.
5. The method for adjusting automatic screen off time according to any one of claims 1 to 2, further comprising, after the step of setting the default automatic screen off time of the wearable device to a preset automatic screen off time:
acquiring a light intensity value of an environment where the wearable device is located, which is acquired by a light sensor, and acquiring a screen brightness value of the wearable device;
judging whether to trigger a screen brightness adjusting instruction according to the light intensity value and the screen brightness value;
and if the screen brightness adjusting instruction is triggered, adjusting the screen brightness value of the wearable device according to the screen brightness adjusting instruction.
6. The method of claim 5, wherein the step of determining whether to trigger a screen brightness adjustment command according to the light intensity value and the screen brightness value comprises:
determining a target screen brightness value according to the light intensity value, and judging whether the target screen brightness value is the same as the screen brightness value;
if the target screen brightness value is different from the screen brightness value, triggering a screen brightness adjusting instruction containing the target screen brightness value;
and if the target screen brightness value is the same as the screen brightness value, not triggering a screen brightness adjusting instruction.
7. A wearable device, the wearable device comprising: a memory, a processor and an automatic off-screen time adjustment program stored on the memory and executable on the processor, which when executed by the processor, implements the steps of the automatic off-screen time adjustment method according to any one of claims 1 to 6.
8. A readable storage medium, wherein an adjustment program for an automatic off-screen time is stored on the readable storage medium, which when executed by a processor, implements the steps of the adjustment method for an automatic off-screen time according to any one of claims 1 to 6.
CN201910139243.6A 2019-02-25 2019-02-25 Adjustment method for automatic screen-off time, wearable device and readable storage medium Active CN109885357B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910139243.6A CN109885357B (en) 2019-02-25 2019-02-25 Adjustment method for automatic screen-off time, wearable device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910139243.6A CN109885357B (en) 2019-02-25 2019-02-25 Adjustment method for automatic screen-off time, wearable device and readable storage medium

Publications (2)

Publication Number Publication Date
CN109885357A CN109885357A (en) 2019-06-14
CN109885357B true CN109885357B (en) 2024-01-09

Family

ID=66929305

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910139243.6A Active CN109885357B (en) 2019-02-25 2019-02-25 Adjustment method for automatic screen-off time, wearable device and readable storage medium

Country Status (1)

Country Link
CN (1) CN109885357B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104182124A (en) * 2014-08-25 2014-12-03 广东欧珀移动通信有限公司 Operating method and device of mobile terminal
WO2015005948A1 (en) * 2013-07-07 2015-01-15 Schoeffler Steven B Identity authentication and verification
CN108513010A (en) * 2018-03-30 2018-09-07 努比亚技术有限公司 Terminal unlock method, terminal and computer readable storage medium
CN109117071A (en) * 2018-07-16 2019-01-01 华为技术有限公司 A kind of control method for screen display and device
CN109145231A (en) * 2017-06-27 2019-01-04 阿里巴巴集团控股有限公司 A kind of generation method, device and the electronic equipment of interface element identifier

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9465786B2 (en) * 2009-08-25 2016-10-11 Keeper Security, Inc. Method for facilitating quick logins from a mobile device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015005948A1 (en) * 2013-07-07 2015-01-15 Schoeffler Steven B Identity authentication and verification
CN104182124A (en) * 2014-08-25 2014-12-03 广东欧珀移动通信有限公司 Operating method and device of mobile terminal
CN109145231A (en) * 2017-06-27 2019-01-04 阿里巴巴集团控股有限公司 A kind of generation method, device and the electronic equipment of interface element identifier
CN108513010A (en) * 2018-03-30 2018-09-07 努比亚技术有限公司 Terminal unlock method, terminal and computer readable storage medium
CN109117071A (en) * 2018-07-16 2019-01-01 华为技术有限公司 A kind of control method for screen display and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Using Screen Brightness to Improve Security in Mobile Social Network Access;Meriem Guerar等;《IEEE Transactions on Dependable and Secure Computing》;第15卷(第4期);全文 *
基于Android开发校园信息共享系统的研究与实现;赵海龙;张旭;;电脑知识与技术(第24期);全文 *

Also Published As

Publication number Publication date
CN109885357A (en) 2019-06-14

Similar Documents

Publication Publication Date Title
CN109725901B (en) Front-end code development method, device, equipment and computer storage medium
CN107911798B (en) Message pushing method and device and terminal
CN107544272B (en) Terminal control method, device and storage medium
US20090031243A1 (en) Method and apparatus for controlling display of windows
US9635169B2 (en) Method for managing data traffic of software and portable electronic apparatus using the same
CN106375866B (en) Page loading method and terminal
CN105376719A (en) Information pushing method and device
CN110941411A (en) Frame rate control method and device and computer storage medium
CN111641677A (en) Message reminding method, message reminding device and electronic equipment
WO2019072207A1 (en) Electronic messaging device and electronic messaging method
EP2746913A1 (en) Method and device for switching multiple message response windows
US20150327179A1 (en) Portable terminal device
CN109885357B (en) Adjustment method for automatic screen-off time, wearable device and readable storage medium
US20120035911A1 (en) Customer premises equipment and configuration method thereof
CN111143090B (en) Application interaction method, device and computer readable storage medium
CN109951549B (en) Network page access method and device and computer readable storage medium
CN112040314B (en) User setting method based on face recognition, television and storage medium
CN114095295B (en) Intelligent doorbell information inheritance method, intelligent doorbell and computer readable storage medium
CN112491433B (en) Control method of wearable device, wearable device and storage medium
CN112992100A (en) Screen brightness adjusting method and device, electronic equipment and storage medium
CN112351424B (en) Wireless networking management method, system, device and computer readable storage medium
CN113961111A (en) Information display method and device, electronic equipment and storage medium
CN112583694A (en) Message pushing method and device, storage medium and control terminal
CN110457088A (en) Remapping method, terminal and the storage medium of more card versions
CN115269072A (en) Screen reading method, system, terminal device and medium of application control

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant