CN115134459A - Eye protection mode display control method and device and computer readable storage medium - Google Patents

Eye protection mode display control method and device and computer readable storage medium Download PDF

Info

Publication number
CN115134459A
CN115134459A CN202210743475.4A CN202210743475A CN115134459A CN 115134459 A CN115134459 A CN 115134459A CN 202210743475 A CN202210743475 A CN 202210743475A CN 115134459 A CN115134459 A CN 115134459A
Authority
CN
China
Prior art keywords
eye
parameter
state
eye protection
preset
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.)
Granted
Application number
CN202210743475.4A
Other languages
Chinese (zh)
Other versions
CN115134459B (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 CN202210743475.4A priority Critical patent/CN115134459B/en
Publication of CN115134459A publication Critical patent/CN115134459A/en
Application granted granted Critical
Publication of CN115134459B publication Critical patent/CN115134459B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72469User interfaces specially adapted for cordless or mobile telephones for operating the device by selecting functions from two or more displayed items, e.g. menus or icons

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Environmental & Geological Engineering (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a display control method, equipment and a computer readable storage medium for an eye protection mode, wherein the method comprises the following steps: when the existence of the preset character string is detected in the preset set, the eye protection effect set by the current screen is not modified; when the character string is not detected in the set, if an eye protection setting switch of the current screen is in an on state, the eye protection effect is turned on, and if the eye protection setting switch is in an off state, the eye protection effect set by the current screen is not modified; confirm in the set that predetermined fingerprint authentication and predetermined put out the screen display and show when being the off state simultaneously, if the eyeshield sets up the switch and is in the on-state, then opens the eyeshield effect, if the eyeshield sets up the switch and is in the off state, then hides the eyeshield effect. The self-adaptive eye protection mode display control scheme is realized, the stability and the adaptability of the eye protection mode are improved, and the use experience of a user is enhanced.

Description

Eye protection mode display control method and device and computer readable storage medium
Technical Field
The present invention relates to the field of mobile communications, and in particular, to a method and device for controlling display in an eye protection mode, and a computer-readable storage medium.
Background
In the prior art, an eye protection mode of an intelligent terminal device based on an Android operating system is a function that Android devices achieve screen light warming by modifying screen parameters, so that eyes of users are protected, user experience is improved, and the function is switched on and off by controlling settings.
However, the existing problem is that, for the fingerprint authentication state of devices such as mobile phones, the above eye protection mode may affect the fingerprint identification rate thereof, and when the system display state (i.e. the screen is in the Doze state), the screen may be abnormal, and the user experience is poor.
Disclosure of Invention
In order to solve the technical defects in the prior art, the invention provides a display control method in an eye protection mode, which comprises the following steps:
when the existence of the preset character string is detected in the preset set, the eye protection effect set by the current screen is not modified; when the character string is not detected in the set, if an eye protection setting switch of the current screen is in an on state, the eye protection effect is turned on, and if the eye protection setting switch is in an off state, the eye protection effect set by the current screen is not modified;
and when the preset fingerprint authentication and the preset screen off display are determined to be in the set and are in the off state, if the eye protection setting switch is in the on state, the eye protection effect is started, and if the eye protection setting switch is in the off state, the eye protection effect is hidden.
Optionally, when the preset character string is detected to exist in the preset set, the eye protection effect set on the current screen is not modified; not detect in the set during the character string, if the eyeshield of current screen sets up the switch and is in the on-state, then opens the eyeshield effect, if the eyeshield sets up the switch and is in the off-state, then not to current screen setting the eyeshield effect is modified, includes before:
adding a first interface in a preset display system service, and receiving a first parameter of a character string identifier, a second parameter of a control scene and a third parameter for monitoring whether an application is dead or not through the first interface;
creating the set for holding the first, second and third parameters in the display system service, wherein keywords of the set are character strings, and the set is assigned with the first and third parameters for holding and for listening for deaths in the third parameters of a preset new object.
Optionally, when the preset character string is detected to exist in the preset set, the eye protection effect set on the current screen is not modified; not detect in the set during the character string, if the eyeshield of current screen sets up the switch and is in the on-state, then opens the eyeshield effect, if the eyeshield sets up the switch and is in the off-state, then not to current screen setting the eyeshield effect is modified, include:
when the second parameter of the first interface is true, using the first parameter as the key word, and using the first parameter and the third parameter as the assignment, and saving the first parameter and the third parameter to the set;
and canceling the eye protection effect set by the current screen.
Optionally, when the preset character string is detected to exist in the preset set, the eye protection effect set on the current screen is not modified; not detect in the set during the character string, if the eyeshield of current screen sets up the switch and is in the on-state, then opens the eyeshield effect, if the eyeshield sets up the switch and is in the off-state, then not to current screen setting the eyeshield effect is modified, still includes:
when the second parameter of the first interface is false, querying the keyword according to the first parameter, and if an assignment corresponding to the keyword exists, canceling the death monitoring of the third parameter by the assignment;
and when the assignment monitors death of the third parameter, removing the keyword from the set, and using the keyword as the first parameter in the assignment.
Optionally, be in the set when confirming predetermined fingerprint authentication and predetermined screen off demonstration and being the off state simultaneously, if the eyeshield sets up the switch and is in the on-state, then opens the eyeshield effect, if the eyeshield sets up the switch and is in the off state, then hides the eyeshield effect includes before:
adding a second interface in a display system frame, and receiving a fourth parameter of the character string identifier and a fifth parameter of the control scene through the second interface;
and when the fifth parameter is true, determining that control exists and the eye protection effect is not displayed, and when the fifth parameter is false, determining that control does not exist and restoring to display the eye protection effect.
Optionally, when it is in the set that the predetermined fingerprint authentication and the predetermined screen off display are both in the off state, if the eye protection setting switch is in the on state, then the eye protection effect is turned on, and if the eye protection setting switch is in the off state, then the eye protection effect is hidden, before further including:
creating a local variable in the display system framework, and monitoring whether the application dies at a system server side through the local variable;
calling the first interface through the second interface, and taking the first parameter, the second parameter and the third parameter as incoming parameters of the display system service.
Optionally, when it is in the set that the predetermined fingerprint authentication and the predetermined screen off display are both in the off state, if the eye protection setting switch is in the on state, then the eye protection effect is turned on, and if the eye protection setting switch is in the off state, then the eye protection effect is hidden, before further including:
when the fingerprint authentication is started, calling the second interface, wherein an incoming parameter finger is true, and when the fingerprint authentication is closed, calling the second interface, wherein the incoming parameter finger is false;
when the screen-off display is turned on, the first interface is called, the incoming parameter aod is true, when the screen-off display is turned off, the first interface is called, and the incoming parameter aod is false.
Optionally, when it is in the set that the predetermined fingerprint authentication and the predetermined screen off display are both in the off state, if the eye protection setting switch is in the on state, then the eye protection effect is turned on, and if the eye protection setting switch is in the off state, then the eye protection effect is hidden, before further including:
when the incoming parameter finger is true and the incoming parameter aod is true, controlling the off-screen display to turn off;
controlling the off screen display to be turned off when the incoming parameter finger is false and the incoming parameter aod is true, or when the incoming parameter finger is true and the incoming parameter aod is false.
The invention also provides eye protection mode display control equipment which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the computer program is executed by the processor to realize the steps of the eye protection mode display control method.
The invention also provides a computer readable storage medium, which stores an eye protection mode display control program, and when the eye protection mode display control program is executed by a processor, the steps of the eye protection mode display control method are realized.
By implementing the eye protection mode display control method, the device and the computer readable storage medium, when the existence of the preset character string is detected in the preset set, the eye protection effect set by the current screen is not modified; when the character string is not detected in the set, if an eye protection setting switch of the current screen is in an on state, the eye protection effect is turned on, and if the eye protection setting switch is in an off state, the eye protection effect set by the current screen is not modified; confirm in the set that predetermined fingerprint authentication and predetermined put out the screen display and show when being the off state simultaneously, if the eyeshield sets up the switch and is in the on-state, then opens the eyeshield effect, if the eyeshield sets up the switch and is in the off state, then hides the eyeshield effect. The self-adaptive eye protection mode display control scheme is realized, the problem of error states of eye protection modes caused by the control eye protection modes generated simultaneously is avoided, the stability and the adaptability of the eye protection modes are improved, and the use experience of a user is enhanced.
Drawings
The invention will be further described with reference to the accompanying drawings and examples, in which:
fig. 1 is a schematic diagram of a hardware structure of a mobile terminal according to the present invention;
fig. 2 is a flowchart illustrating a first embodiment of a display control method for eye protection mode according to the present invention;
fig. 3-13 are logic control diagrams illustrating a second embodiment of the eye-protection mode display control method according to the present invention.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the following description, suffixes such as "module", "part", or "unit" used to indicate elements are used only for facilitating the description of the present invention, and have no particular meaning in themselves. Thus, "module", "component" or "unit" may be used mixedly.
The terminal may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and the like, and a fixed terminal such as a Digital TV, a desktop computer, and the like.
The following description will be given by way of example of a mobile terminal, and it will be understood by those skilled in the art that the construction according to the embodiment of the present invention can be applied to a fixed type terminal, in addition to elements particularly used for mobile purposes.
Referring to fig. 1, which is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present invention, the mobile terminal 100 may include: RF (Radio Frequency) unit 101, WiFi module 102, audio output unit 103, a/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 1 is not intended to be limiting of mobile terminals, which may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile terminal in detail with reference to fig. 1:
the radio frequency unit 101 may be configured to receive and transmit signals during information transmission and reception or during a call, and specifically, receive downlink information of a base station and then process the downlink information to the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA2000(Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division multiplexing-Long Term Evolution), and TDD-LTE (Time Division multiplexing-Long Term Evolution), etc.
WiFi belongs to a short-distance wireless transmission technology, and the mobile terminal can help a user to receive and send emails, browse webpages, access streaming media and the like through the WiFi module 102, and provides wireless broadband internet access for the user. Although fig. 1 shows the WiFi module 102, it is understood that it does not belong to the essential constitution of the mobile terminal, and can be omitted entirely as needed within the scope not changing the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output as sound when the mobile terminal 100 is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive audio or video signals. The a/V input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, the Graphics processor 1041 Processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 may receive sounds (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, or the like, and may be capable of processing such sounds into audio data. The processed audio (voice) data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting audio signals.
The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or a backlight when the mobile terminal 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, the description is omitted here.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect a touch operation performed by a user on or near the touch panel 1071 (e.g., an operation performed by the user on or near the touch panel 1071 using a finger, a stylus, or any other suitable object or accessory), and drive a corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and can receive and execute commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. In particular, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like, and are not limited to these specific examples.
Further, the touch panel 1071 may cover the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although the touch panel 1071 and the display panel 1061 are shown in fig. 1 as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 108 serves as an interface through which at least one external device is connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and external devices.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the mobile terminal. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The mobile terminal 100 may further include a power supply 111 (e.g., a battery) for supplying power to various components, and preferably, the power supply 111 may be logically connected to the processor 110 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system.
Although not shown in fig. 1, the mobile terminal 100 may further include a bluetooth module or the like, which is not described in detail herein.
Based on the hardware structure of the mobile terminal, the invention provides various embodiments of the method.
Example one
Fig. 2 is a flowchart of a display control method in an eye-protecting mode according to a first embodiment of the present invention. An eye-protection mode display control method, comprising:
s1, when the existence of the preset character string is detected in the preset set, the eye protection effect set by the current screen is not modified; when the character string is not detected in the set, if an eye protection setting switch of the current screen is in an on state, the eye protection effect is turned on, and if the eye protection setting switch is in an off state, the eye protection effect set by the current screen is not modified;
s2, when the preset fingerprint authentication and the preset screen-off display are determined to be in the closed state in the set, if the eye protection setting switch is in the open state, the eye protection effect is started, and if the eye protection setting switch is in the closed state, the eye protection effect is hidden.
Optionally, in this embodiment, a central control is created, where the central control is used to control adaptive hiding for the effect of the eye protection mode in the fingerprint state and the Doze off screen display state, so as to avoid that multiple places control the eye protection mode simultaneously, which may result in a state error problem that may eventually occur in the eye protection mode itself.
In this embodiment, first, when the presence of a preset character string is detected in a preset set, the eye protection effect set on the current screen is not modified; when the character string is not detected in the set, if an eye protection setting switch of the current screen is in an on state, the eye protection effect is turned on, and if the eye protection setting switch is in an off state, the eye protection effect set by the current screen is not modified; and then, when the preset fingerprint authentication and the preset screen off display are determined to be in the closed state in the set, if the eye protection setting switch is in the open state, the eye protection effect is started, and if the eye protection setting switch is in the closed state, the eye protection effect is hidden.
The method has the advantages that when the existence of the preset character string is detected in the preset set, the eye protection effect set by the current screen is not modified; when the character string is not detected in the set, if an eye protection setting switch of the current screen is in an on state, the eye protection effect is turned on, and if the eye protection setting switch is in an off state, the eye protection effect set by the current screen is not modified; confirm in the set that predetermined fingerprint authentication and predetermined put out the screen display and show when being the off state simultaneously, if the eyeshield sets up the switch and is in the on-state, then opens the eyeshield effect, if the eyeshield sets up the switch and is in the off state, then hides the eyeshield effect. The self-adaptive eye protection mode display control scheme is realized, the problem of error states of eye protection modes caused by the control eye protection modes generated simultaneously is avoided, the stability and the adaptability of the eye protection modes are improved, and the use experience of a user is enhanced.
Example two
Based on the above embodiment, please refer to fig. 3 and fig. 4, in this embodiment, when the presence of the preset character string is detected in the preset set, the eye protection effect set on the current screen is not modified; not detect in the set during the character string, if the eyeshield of current screen sets up the switch and is in the on-state, then opens the eyeshield effect, if the eyeshield sets up the switch and is in the off-state, then not to current screen setting the eyeshield effect is modified, includes before:
adding a first interface P1 in a preset display system service (CDS), and receiving a first parameter S1_1 of a character string identifier, a second parameter B1_1 of a control scene and a third parameter B2_1 of whether a monitoring application is dead through the first interface;
creating the set MAP for holding the first, second and third parameters in-coming in the display system service, wherein the keyword key of the set is a character string, the assigned value of the set is the first and third parameters for holding of a preset new object, and for listening for death in the third parameter.
Referring to fig. 5, in this embodiment, when the presence of the preset character string is detected in the preset set, the eye protection effect set on the current screen is not modified; not detect in the set during the character string, if the eyeshield of current screen sets up the switch and is in the on-state, then opens the eyeshield effect, if the eyeshield sets up the switch and is in the off-state, then not to current screen setting the eyeshield effect is modified, include:
when the second parameter of the first interface is true, using the incoming first parameter as the keyword, and using the incoming first parameter and the incoming third parameter as the assignment, saving to the set;
and canceling the eye protection effect set by the current screen.
Referring to fig. 6 and 7, in this embodiment, when the presence of the preset character string is detected in the preset set, the eye protection effect set on the current screen is not modified; not detect in the set during the character string, if the eyeshield of current screen sets up the switch and is in the on-state, then opens the eyeshield effect, if the eyeshield sets up the switch and is in the off-state, then not to current screen setting the eyeshield effect is modified, still includes:
when the second parameter of the first interface is false, querying the keyword according to the first parameter, and if an assignment corresponding to the keyword exists, canceling the death monitoring of the third parameter by the assignment;
and when the assignment monitors death of the third parameter, removing the keyword from the set, and using the keyword as the first parameter in the assignment.
Referring to fig. 8, in the present embodiment, when the presence of the preset character string is detected in the preset set, the eye protection effect set on the current screen is not modified; when the character string is not detected in the set, if the eye protection setting switch of the current screen is in an open state, the eye protection effect is opened, and if the eye protection setting switch is in a closed state, the eye protection effect set by the current screen is not modified. That is, when the MAP set is not empty, the eye protection mode is turned off, and when the MAP set is empty, the eye protection mode is turned off if the eye protection mode switch is off, and the eye protection mode is turned on if the eye protection mode switch is on.
Referring to fig. 9, in this embodiment, when it is determined that the preset fingerprint authentication and the preset screen off display are both in the closed state in the set, if the eye protection setting switch is in the open state, the eye protection effect is turned on, and if the eye protection setting switch is in the closed state, the eye protection effect is hidden, where before the method includes:
adding a second interface P0 in a display system framework (CDM) and receiving a fourth parameter S1 identified by the character string and a fifth parameter B1 of the control scene through the second interface;
and when the fifth parameter is true, determining that control exists and the eye protection effect is not displayed, and when the fifth parameter is false, determining that control does not exist and restoring to display the eye protection effect.
Referring to fig. 10, in this embodiment, when it is determined that the preset fingerprint authentication and the preset off-screen display are both in the closed state in the set, if the eye protection setting switch is in the open state, the eye protection effect is turned on, and if the eye protection setting switch is in the closed state, the eye protection effect is hidden, before further including:
creating a local variable B2 in the display system frame, and monitoring whether the application dies at a system service end through the local variable;
calling the first interface through the second interface, and taking the first parameter, the second parameter and the third parameter as incoming parameters of the display system service, wherein the incoming parameters are respectively marked as S1, B1 and B2.
Referring to fig. 11 and 12, in this embodiment, when the preset fingerprint authentication and the preset screen-off display are both determined to be in the off state in the set, if the eye protection setting switch is in the on state, the eye protection effect is turned on, and if the eye protection setting switch is in the off state, the eye protection effect is hidden, before further including:
when the fingerprint authentication is started, calling the second interface, wherein the introduced parameter finger is true, and when the fingerprint authentication is closed, calling the second interface, wherein the introduced parameter finger is false;
when the screen-off display is turned on, the first interface is called, the incoming parameter aod is true, when the screen-off display is turned off, the first interface is called, and the incoming parameter aod is false.
Referring to fig. 13, in this embodiment, according to the calculations in the MAP of the CDS, the trap is closed when finger is true and aod is true, when finger is false and aod is true, when finger is true and aod is false, and the flag state is reset when finger is false and aod is false; when being in reset state, if eyeshield mode switch opens in setting, then open the eyeshield effect, if eyeshield mode switch closes in setting, then hide the eyeshield effect. Namely, the number of members in the MAP is determined, and if the set is not empty, the eye protection mode is turned off, and if the set is empty, the eye protection mode is turned off when the eye protection switch is turned off, and the eye protection mode is turned on when the eye protection switch is turned on.
EXAMPLE III
Based on the above embodiment, the present invention further provides an eye protection mode display control device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the eye protection mode display control method according to any one of the above embodiments.
It should be noted that the device embodiment and the method embodiment belong to the same concept, and specific implementation processes thereof are detailed in the method embodiment, and technical features in the method embodiment are correspondingly applicable in the device embodiment, which is not described herein again.
Example four
Based on the above embodiment, the present invention further provides a computer-readable storage medium, where an eye protection mode display control program is stored on the computer-readable storage medium, and when the eye protection mode display control program is executed by a processor, the steps of the eye protection mode display control method according to any one of the above embodiments are implemented.
It should be noted that the media embodiment and the method embodiment belong to the same concept, and specific implementation processes thereof are detailed in the method embodiment, and technical features in the method embodiment are correspondingly applicable in the media embodiment, which is not described herein again.
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 apparatus 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 apparatus. Without further limitation, an element identified by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention or portions thereof contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the methods according to the embodiments of the present invention.
While the present invention has been described with reference to the particular illustrative embodiments, it is to be understood that the invention is not limited to the disclosed embodiments, but is intended to cover various modifications, equivalent arrangements, and equivalents thereof, which may be made by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. An eye-protection mode display control method, characterized in that the method comprises:
when the existence of the preset character string is detected in the preset set, the eye protection effect set by the current screen is not modified; when the character string is not detected in the set, if an eye protection setting switch of the current screen is in an on state, the eye protection effect is turned on, and if the eye protection setting switch is in an off state, the eye protection effect set by the current screen is not modified;
and when the preset fingerprint authentication and the preset screen off display are determined to be in the set and are in the off state, if the eye protection setting switch is in the on state, the eye protection effect is started, and if the eye protection setting switch is in the off state, the eye protection effect is hidden.
2. The eye-protection mode display control method according to claim 1, wherein when the presence of the preset character string is detected in the preset set, the eye-protection effect set on the current screen is not modified; not detect in the set during the character string, if the eyeshield of current screen sets up the switch and is in the on-state, then opens the eyeshield effect, if the eyeshield sets up the switch and is in the off-state, then not to current screen setting the eyeshield effect is revised, includes before:
adding a first interface in a preset display system service, and receiving a first parameter of a character string identifier, a second parameter of a control scene and a third parameter for monitoring whether an application is dead or not through the first interface;
creating the set for holding the first, second and third parameters in the display system service, wherein keywords of the set are character strings, and the set is assigned with the first and third parameters for holding and for listening for deaths in the third parameters of a preset new object.
3. The eye-protection mode display control method according to claim 2, wherein when the presence of the preset character string is detected in the preset set, the eye-protection effect set on the current screen is not modified; not detect in the set during the character string, if the eyeshield of current screen sets up the switch and is in the on-state, then opens the eyeshield effect, if the eyeshield sets up the switch and is in the off-state, then not to current screen setting the eyeshield effect is modified, include:
when the second parameter of the first interface is true, using the incoming first parameter as the keyword, and using the incoming first parameter and the incoming third parameter as the assignment, saving to the set;
and canceling the eye protection effect set by the current screen.
4. The eye-protection mode display control method according to claim 3, wherein the eye-protection effect set on the current screen is not modified when the presence of the preset character string is detected in the preset set; not detect in the set during the character string, if the eyeshield of current screen sets up the switch and is in the on-state, then opens the eyeshield effect, if the eyeshield sets up the switch and is in the off-state, then not to current screen setting the eyeshield effect is revised, still includes:
when the second parameter of the first interface is false, querying the keyword according to the first parameter, and if an assignment corresponding to the keyword exists, canceling the death monitoring of the third parameter by the assignment;
and when the assignment monitors death of the third parameter, removing the keyword from the set, and using the keyword as the first parameter in the assignment.
5. The eye-protection mode display control method according to claim 4, wherein when it is determined that both the preset fingerprint authentication and the preset screen-off display are in the off state in the set, if the eye-protection setting switch is in the on state, the eye-protection effect is turned on, and if the eye-protection setting switch is in the off state, the eye-protection effect is hidden, and the method includes:
adding a second interface in a display system frame, and receiving a fourth parameter of the character string identifier and a fifth parameter of the control scene through the second interface;
and when the fifth parameter is true, determining that control exists and the eye protection effect is not displayed, and when the fifth parameter is false, determining that control does not exist and restoring to display the eye protection effect.
6. The eye-protection mode display control method according to claim 5, wherein when the preset fingerprint authentication and the preset screen-off display are both determined to be in an off state in the set, if the eye-protection setting switch is in an on state, the eye-protection effect is turned on, and if the eye-protection setting switch is in an off state, the eye-protection effect is hidden, before further comprising:
creating a local variable in the display system framework, and monitoring whether the application dies at a system server side through the local variable;
calling the first interface through the second interface, and taking the first parameter, the second parameter and the third parameter as incoming parameters of the display system service.
7. The eye-protection mode display control method according to claim 6, wherein when the preset fingerprint authentication and the preset screen-off display are both determined to be in an off state in the set, if the eye-protection setting switch is in an on state, the eye-protection effect is turned on, and if the eye-protection setting switch is in an off state, the eye-protection effect is hidden, before further comprising:
when the fingerprint authentication is started, calling the second interface, wherein an incoming parameter finger is true, and when the fingerprint authentication is closed, calling the second interface, wherein the incoming parameter finger is false;
when the off-screen display is turned on, calling the first interface, wherein the incoming parameter aod is true, and when the off-screen display is turned off, calling the first interface, wherein the incoming parameter aod is false.
8. The method according to claim 7, wherein when the predetermined fingerprint authentication and the predetermined off-screen display are both determined to be in an off state in the set, if the eye protection setting switch is in an on state, the eye protection effect is turned on, and if the eye protection setting switch is in an off state, the eye protection effect is hidden, and the method further comprises:
when the incoming parameter finger is true and the incoming parameter aod is true, controlling the off-screen display to turn off;
controlling the off screen display to turn off when the incoming parameter finger is false and the incoming parameter aod is true, or when the incoming parameter finger is true and the incoming parameter aod is false.
9. An eye-protection mode display control device, characterized in that the device comprises a memory, a processor and a computer program stored on the memory and executable on the processor, the computer program realizing the steps of the eye-protection mode display control method according to any one of claims 1 to 8 when executed by the processor.
10. A computer-readable storage medium having stored thereon an eye-protection mode display control program which, when executed by a processor, implements the steps of the eye-protection mode display control method according to any one of claims 1 to 8.
CN202210743475.4A 2022-06-28 2022-06-28 Eye protection mode display control method, equipment and computer readable storage medium Active CN115134459B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210743475.4A CN115134459B (en) 2022-06-28 2022-06-28 Eye protection mode display control method, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210743475.4A CN115134459B (en) 2022-06-28 2022-06-28 Eye protection mode display control method, equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN115134459A true CN115134459A (en) 2022-09-30
CN115134459B CN115134459B (en) 2024-05-17

Family

ID=83380649

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210743475.4A Active CN115134459B (en) 2022-06-28 2022-06-28 Eye protection mode display control method, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN115134459B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20200046526A (en) * 2018-10-24 2020-05-07 이차주 Screen control device and method for sight protection
CN111212185A (en) * 2019-12-27 2020-05-29 宇龙计算机通信科技(深圳)有限公司 Eye protection mode starting method and device, storage medium and terminal
CN112968995A (en) * 2021-03-18 2021-06-15 北京字节跳动网络技术有限公司 Eye protection control method and device, electronic equipment and storage medium
CN113641416A (en) * 2020-04-24 2021-11-12 北京小米移动软件有限公司 Eye protection mode processing method and device in fingerprint identification mode, terminal and medium
CN113760429A (en) * 2021-08-23 2021-12-07 联想(北京)有限公司 Control method and control device
WO2022073393A1 (en) * 2020-10-10 2022-04-14 Oppo广东移动通信有限公司 Electronic device and display module
CN114495185A (en) * 2021-12-17 2022-05-13 武汉统信软件技术有限公司 Fingerprint identification method, mobile terminal and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20200046526A (en) * 2018-10-24 2020-05-07 이차주 Screen control device and method for sight protection
CN111212185A (en) * 2019-12-27 2020-05-29 宇龙计算机通信科技(深圳)有限公司 Eye protection mode starting method and device, storage medium and terminal
CN113641416A (en) * 2020-04-24 2021-11-12 北京小米移动软件有限公司 Eye protection mode processing method and device in fingerprint identification mode, terminal and medium
WO2022073393A1 (en) * 2020-10-10 2022-04-14 Oppo广东移动通信有限公司 Electronic device and display module
CN112968995A (en) * 2021-03-18 2021-06-15 北京字节跳动网络技术有限公司 Eye protection control method and device, electronic equipment and storage medium
CN113760429A (en) * 2021-08-23 2021-12-07 联想(北京)有限公司 Control method and control device
CN114495185A (en) * 2021-12-17 2022-05-13 武汉统信软件技术有限公司 Fingerprint identification method, mobile terminal and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
平淡;: "护眼有高招 多管齐下保护眼睛", 电脑爱好者, no. 23, 1 December 2016 (2016-12-01) *

Also Published As

Publication number Publication date
CN115134459B (en) 2024-05-17

Similar Documents

Publication Publication Date Title
US20220276909A1 (en) Screen projection control method and electronic device
US11848773B2 (en) Transmit antenna switching method and terminal device
US20210034223A1 (en) Method for display control and mobile terminal
US11604567B2 (en) Information processing method and terminal
CN108227996B (en) Display control method and mobile terminal
US11936474B2 (en) Transmission antenna switching method and terminal device
WO2021017763A1 (en) Transaction processing method, terminal device, and computer-readable storage medium
US11543935B2 (en) Information processing method and terminal device
CN110399000B (en) Mobile terminal and temperature control method thereof
US20230013341A1 (en) Call processing method and electronic device
CN109886686B (en) Secure payment method, device and computer readable storage medium
WO2021129835A1 (en) Volume control method and device, and computer-readable storage medium
CN109995391B (en) Picture display method, intelligent wearable terminal and computer readable storage medium
CN109117069B (en) Interface operation method, terminal and computer readable storage medium
CN112494932A (en) Game frame supplementing method and device, terminal and computer readable storage medium
CN109889652B (en) Eye protection mode display control method, terminal and computer readable storage medium
CN109799937B (en) Input control method, input control equipment and computer readable storage medium
CN109683796B (en) Interaction control method, equipment and computer readable storage medium
CN114064179A (en) Display mode adaptation method, terminal and storage medium
WO2020220993A1 (en) Message display method and mobile terminal
CN111158929B (en) Application processing method and electronic equipment
CN115134459B (en) Eye protection mode display control method, equipment and computer readable storage medium
CN112463234A (en) Shutdown management method and device, intelligent terminal and readable storage medium
CN113419701A (en) Sound effect setting method and related equipment
CN113485663A (en) Screen projection method, equipment, system and storage medium

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