CN110572518A - screen-off management and control method, mobile terminal and computer-readable storage medium - Google Patents

screen-off management and control method, mobile terminal and computer-readable storage medium Download PDF

Info

Publication number
CN110572518A
CN110572518A CN201910882599.9A CN201910882599A CN110572518A CN 110572518 A CN110572518 A CN 110572518A CN 201910882599 A CN201910882599 A CN 201910882599A CN 110572518 A CN110572518 A CN 110572518A
Authority
CN
China
Prior art keywords
screen
mobile terminal
user
sensor
actively
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
CN201910882599.9A
Other languages
Chinese (zh)
Other versions
CN110572518B (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
Nanchang 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, Nanchang Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201910882599.9A priority Critical patent/CN110572518B/en
Publication of CN110572518A publication Critical patent/CN110572518A/en
Application granted granted Critical
Publication of CN110572518B publication Critical patent/CN110572518B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • 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
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/12Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion
    • 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

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a screen-off management and control method, which comprises the following steps: setting a cache space of sensor resources; detecting whether the mobile terminal is carrying out network conversation; when the network call is in the process, detecting whether an operation of actively closing a screen by a user is received; when receiving an operation of actively closing the screen by a user, suspending the automatic screen turning function of the mobile terminal, and releasing the sensor resources occupied by the automatic screen turning function to the cache space. The embodiment of the invention also discloses a mobile terminal and a computer readable storage medium. Therefore, the sensor resources occupied by the automatic screen-switching function can be released in the bottom layer in time, and resources and power consumption are saved.

Description

Screen-off management and control method, mobile terminal and computer-readable storage medium
Technical Field
the invention relates to the technical field of mobile terminals, in particular to a screen-saving management and control method, a mobile terminal and a computer-readable storage medium.
Background
some current social applications (e.g., WeChat, QQ, etc.) may provide an automatic screenout function when conducting network calls (including video calls and voice calls), i.e., automatically turning on a distance sensor and automatically screenout a mobile terminal when detecting that the mobile terminal is proximate to a user's ear. However, if the user clicks the power key to actively close the screen during the network call, at this time, actually, the automatic screen-saving function is disabled, but the distance sensor is still turned on, and the distance between the mobile terminal and the ear of the user is continuously detected, so that the resources of the bottom layer sensor are always occupied, and the resources and the power consumption are wasted.
Disclosure of Invention
The invention mainly aims to provide a screen-off management and control method, a mobile terminal and a computer-readable storage medium, and aims to solve the technical problem of sensor resource occupation in a network communication process.
In order to achieve the above object, the present invention provides a screen turning management and control method applied to a mobile terminal, including:
Setting a cache space of sensor resources;
Detecting whether the mobile terminal is carrying out network conversation;
When the network call is in the process, detecting whether an operation of actively closing a screen by a user is received; and
When receiving an operation of actively closing the screen by a user, suspending the automatic screen turning function of the mobile terminal, and releasing the sensor resources occupied by the automatic screen turning function to the cache space.
Optionally, the method further comprises the step of:
Detecting whether an operation of actively opening a screen by a user is received;
And when receiving the operation of actively starting the screen by the user, recovering the automatic screen turning function and removing the sensor resource from the cache space.
optionally, after the step of detecting whether the mobile terminal is performing a network call, the method further includes:
and when the network call is in progress, further detecting the type of the network call, if the network call is a voice call, executing the step of detecting whether the operation of actively closing the screen by the user is received, and if the network call is a video call, ending the process.
Optionally, the step of setting a buffer space of the sensor resource further includes:
And a release interface, a recovery interface and a cache interface are added in the bottom layer sensor service.
optionally, the suspending the automatic screen turning function of the mobile terminal, and the releasing the sensor resource occupied by the automatic screen turning function to the cache space includes:
And calling back to the release interface through a JAVA local interface to release the sensor resource, and writing corresponding sensor resource information into the cache space through the cache interface.
Optionally, the recovering the automatic screen-turning function, the removing the sensor resource from the cache space includes:
And calling back the recovery interface through a JAVA local interface to recover the sensor resource, so as to recover the automatic screen-turning function, and removing the corresponding sensor resource information from the cache space through the cache interface.
in addition, to achieve the above object, the present invention further provides a mobile terminal, including: the screen turning control method comprises a memory, a processor and a screen turning control program which is stored on the memory and can run on the processor, wherein when being executed by the processor, the screen turning control program realizes the steps of the screen turning control method.
Further, to achieve the above object, the present invention also provides a computer readable storage medium, where a screen saver management and control program is stored, and when executed by a processor, the screen saver management and control program implements the steps of the screen saver management and control method.
According to the screen-off control method, the mobile terminal and the computer-readable storage medium, when a user actively closes a screen in a call process of using the mobile terminal, sensor resources occupied by an automatic screen-off function can be released at a bottom layer in time, resource waste is avoided, power consumption of the mobile terminal is saved, and endurance time is prolonged.
Drawings
Fig. 1 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention;
FIG. 2 is a diagram of a wireless communication system for the mobile terminal shown in FIG. 1;
Fig. 3 is a flowchart of a screen turning management and control method according to a first embodiment of the present invention;
Fig. 4 is a flowchart of a screen turning management and control method according to a second embodiment of the present invention;
Fig. 5 is a block diagram of a mobile terminal according to a third embodiment of the present invention;
Fig. 6 is a schematic block diagram of a screen turning management and control system according to a fourth embodiment of the present invention;
Fig. 7 is a schematic block diagram of a screen turning management and control system according to a fifth embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
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", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. 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 duplex-Long Term Evolution), and TDD-LTE (Time Division duplex-Long Term Evolution).
WiFi belongs to short-distance wireless transmission technology, and the mobile terminal can help a user to receive and send e-mails, 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 may 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, further 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, the 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.
In order to facilitate understanding of the embodiments of the present invention, a communication network system on which the mobile terminal of the present invention is based is described below.
Referring to fig. 2, fig. 2 is an architecture diagram of a communication Network system according to an embodiment of the present invention, where the communication Network system is an LTE system of a universal mobile telecommunications technology, and the LTE system includes a UE (User Equipment) 201, an E-UTRAN (Evolved UMTS Terrestrial Radio Access Network) 202, an EPC (Evolved Packet Core) 203, and an IP service 204 of an operator, which are in communication connection in sequence.
specifically, the UE201 may be the terminal 100 described above, and is not described herein again.
the E-UTRAN202 includes eNodeB2021 and other eNodeBs 2022, among others. Among them, the eNodeB2021 may be connected with other eNodeB2022 through backhaul (e.g., X2 interface), the eNodeB2021 is connected to the EPC203, and the eNodeB2021 may provide the UE201 access to the EPC 203.
The EPC203 may include an MME (Mobility Management Entity) 2031, an HSS (Home Subscriber Server) 2032, other MMEs 2033, an SGW (Serving gateway) 2034, a PGW (PDN gateway) 2035, and a PCRF (Policy and charging functions Entity) 2036, and the like. The MME2031 is a control node that handles signaling between the UE201 and the EPC203, and provides bearer and connection management. HSS2032 is used to provide registers to manage functions such as home location register (not shown) and holds subscriber specific information about service characteristics, data rates, etc. All user data may be sent through SGW2034, PGW2035 may provide IP address assignment for UE201 and other functions, and PCRF2036 is a policy and charging control policy decision point for traffic data flow and IP bearer resources, which selects and provides available policy and charging control decisions for a policy and charging enforcement function (not shown).
the IP services 204 may include the internet, intranets, IMS (IP Multimedia Subsystem), or other IP services, among others.
Although the LTE system is described as an example, it should be understood by those skilled in the art that the present invention is not limited to the LTE system, but may also be applied to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems.
Based on the above mobile terminal hardware structure and communication network system, the present invention provides various embodiments of the method.
Example one
As shown in fig. 3, a first embodiment of the present invention provides a screen turning management and control method, which is applied to the mobile terminal, and the method includes the following steps:
S300, setting a buffer space of the sensor resource.
Specifically, a global buffer space (bakupSensor) for sensor resources with an automatic screen saver function is set in a sensor service (sensor) of a bottom layer and is used for temporarily storing sensor resources which are actively released.
In addition, a release interface and a cache interface are also needed to be added in the sensorservice, and the release interface is used for releasing sensor resources occupied by the automatic screen-switching function in the network communication process. The cache interface is used for operating a global cache space and writing in sensor resource information occupied by an automatic screen-turning function in a network communication process (namely writing in the sensor resource information released by the release interface into the cache space).
S302, detecting whether the mobile terminal is carrying out network communication.
specifically, by using the names of the processes or threads of various network calls, whether a network call is currently being made and what network call (voice or video) is being made can be determined in the framework according to the names.
In general, it is possible for a user to actively turn off the screen during a voice call, but it is unlikely that the user will actively turn off the screen during a video call. Therefore, in other embodiments, what network call the mobile terminal is conducting may be further detected (i.e., determining the call type), and if the call type is a voice call, the subsequent steps are executed, otherwise (if the call type is a video call), the subsequent steps are not required to be executed, and the process ends.
In addition, in other embodiments, it is further required to detect whether the mobile terminal has or starts an automatic screen turning function in the call process. And when the automatic screen-turning function is started, further executing the subsequent steps, otherwise, the subsequent steps are not required to be executed, and the process is ended.
It should be noted that, in other cases where the automatic screen-turning function is enabled, for example, when a user makes a call (non-network call) using the mobile terminal, if the mobile terminal has and opens the automatic screen-turning function, the subsequent steps may also be performed similarly to a voice call in a network call.
S304, in the process of network communication, whether the operation of actively closing the screen by the user is received or not is detected.
specifically, in the network communication process, the user can actively close the screen in a screen turning mode set by the mobile terminal according to own habits. For example, when the user a uses the WeChat application program to perform a voice call, the user a does not need to watch the display screen, actively clicks the power key of the mobile terminal to close the screen, and the mobile terminal receives the operation that the user a actively closes the screen.
S306, when receiving the operation of actively closing the screen by the user, suspending the automatic screen turning function and releasing the sensor resource to the cache space.
Specifically, if it is detected that the mobile terminal is in the process of network call and an operation of actively closing the screen by the user is received, it indicates that the automatic screen turning function is disabled at this time. The mobile terminal can call back the release Interface added in the sensorservice through a JNI (Java local Interface) to release the sensor resource, and corresponding sensor resource information is written into the cache space through the cache Interface during release.
In this embodiment, the mobile terminal may implement the automatic screen turning function in a plurality of ways, thereby corresponding to a plurality of different sensors. For example, assuming that the mobile terminal continuously detects the distance between the mobile terminal and the ear of the user through a proximity sensor, and automatically displays the mobile terminal when the mobile terminal is detected to be close to the ear of the user, after the user actively closes the screen, if the user continuously occupies the proximity sensor, resources and power consumption are wasted, the proximity sensor resources need to be released, and the released proximity sensor resource information is written into the cache space.
For another example, assuming that the mobile terminal continuously detects the distance between the mobile terminal and the user by transmitting a millimeter wave signal and receiving a reflected signal through the millimeter wave radar module, and automatically turning off the mobile terminal when detecting that the mobile terminal is close to the ear of the user, after the user actively closes the screen, if the user continuously occupies the millimeter wave radar module, resources and power consumption are wasted, and the millimeter wave radar module resources need to be released, and the released millimeter wave radar module resource information is written into the cache space.
According to the screen-off control method provided by the embodiment, when a user actively closes the screen in the call process of the mobile terminal, the sensor resource occupied by the automatic screen-off function can be released in time at the bottom layer, so that resource waste is avoided, the power consumption of the mobile terminal is saved, and the endurance time is increased.
Example two
As shown in fig. 4, a second embodiment of the present invention provides a screen turning management and control method. In the second embodiment, steps S400 to S406 of the screen turning management and control method are similar to steps S300 to S306 of the first embodiment, except that the method further includes steps S408 to S410.
The method comprises the following steps:
s400, setting a buffer space of the sensor resource.
Specifically, a global cache space for sensor resources with an automatic screen saver function is set in the bottom sensor service, and is used for temporarily storing the sensor resources which are actively released.
In addition, a release interface, a recovery interface and a cache interface are also required to be added in the sensorservicece. The release interface is used for releasing sensor resources occupied by an automatic screen-turning function in the network communication process, and the recovery interface is used for recovering the sensor resources released before. The cache interface is used for operating a global cache space according to an operation type, and writing or removing sensor resource information occupied by an automatic screen-turning function in a network communication process (namely, writing the sensor resource information released by the release interface into the cache space, or removing the sensor resource information recovered by the recovery interface from the cache space).
s402, detecting whether the mobile terminal is carrying out network communication.
Specifically, by using the names of the processes or threads of various network calls, whether a network call is currently being made and what network call (voice or video) is being made can be determined in the framework according to the names.
In general, it is possible for a user to actively turn off the screen during a voice call, but it is unlikely that the user will actively turn off the screen during a video call. Therefore, in other embodiments, what network call the mobile terminal is conducting may be further detected (i.e., determining the call type), and if the call type is a voice call, the subsequent steps are executed, otherwise (if the call type is a video call), the subsequent steps are not required to be executed, and the process ends.
In addition, in other embodiments, it is further required to detect whether the mobile terminal has or starts an automatic screen turning function in the call process. And when the automatic screen-turning function is started, further executing the subsequent steps, otherwise, the subsequent steps are not required to be executed, and the process is ended.
It should be noted that, in other cases where the automatic screen-turning function is enabled, for example, when a user makes a call (non-network call) using the mobile terminal, if the mobile terminal has and opens the automatic screen-turning function, the subsequent steps may also be performed similarly to a voice call in a network call.
S404, in the network communication process, detecting whether the operation of actively closing the screen by the user is received.
Specifically, in the network communication process, the user can actively close the screen in a screen turning mode set by the mobile terminal according to own habits. For example, when the user a uses the WeChat application program to perform a voice call, the user a does not need to watch the display screen, actively clicks the power key of the mobile terminal to close the screen, and the mobile terminal receives the operation that the user a actively closes the screen.
S406, when receiving the operation of actively closing the screen by the user, suspending the automatic screen turning function and releasing the sensor resource to the cache space.
specifically, if it is detected that the mobile terminal is in the process of network call and an operation of actively closing the screen by the user is received, it indicates that the automatic screen turning function is disabled at this time. The mobile terminal can call back the release interface added in the sensorservice through the JNI interface to release the sensor resource, and corresponding sensor resource information is written into the cache space through the cache interface during release.
In this embodiment, the mobile terminal may implement the automatic screen turning function in a plurality of ways, thereby corresponding to a plurality of different sensors. For example, assuming that the mobile terminal continuously detects the distance between the mobile terminal and the ear of the user through a proximity sensor, and automatically displays the mobile terminal when the mobile terminal is detected to be close to the ear of the user, after the user actively closes the screen, if the user continuously occupies the proximity sensor, resources and power consumption are wasted, the proximity sensor resources need to be released, and the released proximity sensor resource information is written into the cache space.
For another example, assuming that the mobile terminal continuously detects the distance between the mobile terminal and the user by transmitting a millimeter wave signal and receiving a reflected signal through the millimeter wave radar module, and automatically turning off the mobile terminal when detecting that the mobile terminal is close to the ear of the user, after the user actively closes the screen, if the user continuously occupies the millimeter wave radar module, resources and power consumption are wasted, and the millimeter wave radar module resources need to be released, and the released millimeter wave radar module resource information is written into the cache space.
S408, detecting whether the operation of actively opening the screen by the user is received.
Specifically, in the network call process, after the user actively closes the screen, sometimes the user needs to actively open the screen again to view the information on the screen. Therefore, during the call of the mobile terminal, it is further required to detect whether an operation of actively opening the screen by the user is received. For example, when the user a uses the WeChat application program to perform a voice call, the user a actively clicks the power key of the mobile terminal to close the screen because the user a does not need to watch the screen, the user a needs to view information on the screen after one minute, and actively clicks the power key to open the screen, and the mobile terminal receives an operation of the user a to actively open the screen.
S410, when receiving the operation that the user actively starts the screen, recovering the automatic screen turning function, and removing the sensor resource from the cache space.
specifically, after receiving an operation of actively opening a screen by a user, the mobile terminal needs the automatic screen turning function again. The mobile terminal can call back the recovery interface added in the sensorservice through the JNI interface to recover the sensor resource, so that the automatic screen-turning function is recovered, and corresponding sensor resource information is removed from the cache space through the cache interface.
For example, assuming that the mobile terminal implements the automatic screen-turning function through a proximity sensor, after receiving an operation of actively turning on a screen by a user, the mobile terminal recovers the previously released proximity sensor resource and removes the proximity sensor resource information from the cache space.
For another example, assuming that the mobile terminal implements the automatic screen-turning function through the millimeter wave radar module, after receiving an operation of actively turning on a screen by a user, the mobile terminal recovers the millimeter wave radar module resource released previously, and removes the millimeter wave radar module resource information from the cache space.
according to the screen-off control method provided by the embodiment, when a user actively closes the screen in the call process of the mobile terminal, the sensor resources occupied by the automatic screen-off function can be released at the bottom layer in time, and the sensor resources of the automatic screen-off function can be recovered after the user actively opens the screen again, so that the sensor resources can be effectively controlled in time, the resource waste is avoided, the power consumption of the mobile terminal is saved, and the endurance time is prolonged.
EXAMPLE III
As shown in fig. 5, a third embodiment of the present invention proposes a mobile terminal 2. The mobile terminal 2 includes a memory 20, a processor 22, and a screenplay management system 28.
The memory 20 includes at least one type of readable storage medium for storing an operating system installed in the mobile terminal 2 and various types of application software, such as program codes of the screen saver management system 28. In addition, the memory 20 may also be used to temporarily store various types of data that have been output or are to be output.
The processor 22 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data Processing chip in some embodiments. The processor 22 is typically operative to control overall operation of the mobile terminal 2. In this embodiment, the processor 22 is configured to run the program codes stored in the memory 20 or process data, for example, run the information screen management system 28.
in addition, the mobile terminal 2 further includes common modules such as a screen and a sensor, which are not described herein again.
Example four
As shown in fig. 6, a fourth embodiment of the present invention provides a screen turning management and control system 28. In this embodiment, the screen turning management and control system 28 includes:
A setting module 800, configured to set a cache space of the sensor resource.
Specifically, a global cache space for sensor resources with an automatic screen saver function is set in the bottom sensor service, and is used for temporarily storing the sensor resources which are actively released.
In addition, a release interface, a recovery interface and a cache interface are also required to be added in the sensorservicece. The release interface is used for releasing sensor resources occupied by an automatic screen-turning function in the network communication process, and the recovery interface is used for recovering the sensor resources released before. The cache interface is used for operating a global cache space according to an operation type, and writing or removing sensor resource information occupied by an automatic screen-turning function in a network communication process (namely, writing the sensor resource information released by the release interface into the cache space, or removing the sensor resource information recovered by the recovery interface from the cache space).
A detecting module 802, configured to detect whether the mobile terminal 2 is performing a network call.
Specifically, by using the names of the processes or threads of various network calls, whether a network call is currently being made and what network call (voice or video) is being made can be determined in the framework according to the names.
in general, it is possible for a user to actively turn off the screen during a voice call, but it is unlikely that the user will actively turn off the screen during a video call. Therefore, in other embodiments, it may further detect what network call the mobile terminal 2 is performing (i.e. determining the call type), and if the call type is a voice call, perform subsequent processing, otherwise (if the call type is a video call), do not need to perform subsequent processing.
In addition, in other embodiments, it is further required to detect whether the mobile terminal 2 has or starts an automatic screen turning function in the call process. And when the automatic screen-switching function is started, further performing subsequent processing, otherwise, not performing the subsequent processing, and ending the process.
It should be noted that in other cases where the automatic screen-turning function is enabled, for example, when a user uses the mobile terminal 2 to make a call (non-network call), if the mobile terminal 2 has and opens the automatic screen-turning function, the subsequent processing may also be performed similarly to a voice call in a network call.
the detecting module 802 is further configured to detect whether an operation of actively closing the screen by the user is received in the network call process.
Specifically, during the network communication process, the user can actively close the screen in the screen turning mode set by the mobile terminal 2 according to the habit of the user. For example, when the user a uses the wechat application to perform a voice call, the user a does not need to watch the display screen, actively clicks the power key of the mobile terminal 2 to close the screen, and the detection module 802 receives an operation of actively closing the screen by the user a.
And the releasing module 804 is configured to suspend the automatic screen turning function and release the sensor resource to the cache space when receiving an operation of actively closing the screen by the user.
specifically, if it is detected that the mobile terminal 2 is in the process of network call and receives an operation of actively closing the screen by the user, it indicates that the automatic screen-turning function is disabled at this time. The release module 804 can call back the release interface added in the sensorservice through the JNI interface to release the sensor resource, and write the corresponding sensor resource information into the cache space through the cache interface during release.
In this embodiment, the mobile terminal 2 may implement the automatic screen turning function in a plurality of ways, so as to correspond to a plurality of different sensors. For example, assuming that the mobile terminal 2 continuously detects the distance between the mobile terminal 2 and the ear of the user through a proximity sensor, and automatically turns off the screen of the mobile terminal 2 when detecting that the mobile terminal 2 is close to the ear of the user, after the user actively closes the screen, if the user continuously occupies the proximity sensor, resources and power consumption are wasted, the proximity sensor resources need to be released, and the released proximity sensor resource information is written into the cache space.
For another example, assuming that the mobile terminal 2 continuously detects the distance between the mobile terminal 2 and the user by transmitting a millimeter wave signal and receiving a reflected signal through the millimeter wave radar module, and automatically turning off the mobile terminal when detecting that the mobile terminal 2 is close to the ear of the user, after the user actively closes the screen, if the user continuously occupies the millimeter wave radar module, resources and power consumption are wasted, and the millimeter wave radar module resources need to be released, and the released millimeter wave radar module resource information is written into the cache space.
The screen-switching management and control system provided by this embodiment can timely release the sensor resource occupied by the automatic screen-switching function at the bottom layer when the user uses the screen to actively close in the call process of the mobile terminal 2, thereby avoiding resource waste, saving the power consumption of the mobile terminal 2 and increasing the endurance time.
EXAMPLE five
as shown in fig. 7, a fifth embodiment of the present invention provides a screen turning management and control system 28. In this embodiment, the screen saver management and control system 28 further includes a recovery module 806 in addition to the setting module 800, the detection module 802 and the release module 804 in the fourth embodiment. Wherein:
The detecting module 802 is further configured to detect whether an operation of actively opening a screen by a user is received.
Specifically, in the network call process, after the user actively closes the screen, sometimes the user needs to actively open the screen again to view the information on the screen. Therefore, during the call of the mobile terminal 2, it is further required to detect whether an operation of actively turning on the screen by the user is received. For example, when the user a uses the wechat application to perform a voice call, the user a actively clicks the power key of the mobile terminal 2 to close the screen without watching the screen, and after one minute, the user a needs to view information on the screen and actively clicks the power key to open the screen, and the detection module 802 receives an operation of the user a actively opening the screen.
The restoring module 806 is configured to restore an automatic screen-turning function and remove the sensor resource from the cache space when an operation that a user actively turns on a screen is received.
Specifically, after receiving an operation of actively opening the screen by the user, the mobile terminal 2 needs the automatic screen turning function again. The restoring module 806 may restore the sensor resource through the restoring interface added to the sensorservice by callback through a JNI interface, so as to restore the automatic screen-saving function, and remove the corresponding sensor resource information from the cache space through the cache interface.
For example, assuming that the mobile terminal 2 implements the automatic screen-turning function through a proximity sensor, after receiving an operation of actively turning on a screen by a user, the recovery module 806 recovers the previously released proximity sensor resource and removes the proximity sensor resource information from the cache space.
For another example, assuming that the mobile terminal 2 implements the automatic screen-turning function through the millimeter wave radar module, after receiving an operation of actively turning on a screen by a user, the recovering module 806 recovers the millimeter wave radar module resource released previously, and removes the millimeter wave radar module resource information from the cache space.
The screen-off management and control system provided by this embodiment can timely release the sensor resource occupied by the automatic screen-off function at the bottom layer when the user uses the screen actively closed in the call process of the mobile terminal 2, and recover the sensor resource of the automatic screen-off function after the user actively opens the screen again, so as to realize timely and effective management and control of the sensor resource, avoid resource waste, save the power consumption of the mobile terminal 2, and increase the endurance time.
EXAMPLE six
the present invention also provides another embodiment, which is to provide a computer-readable storage medium storing a screenout management program, which is executable by at least one processor to cause the at least one processor to perform the steps of the screenout management method as described above.
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 defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a 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 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 method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. A screen-turning management and control method is applied to a mobile terminal and is characterized by comprising the following steps:
Setting a cache space of sensor resources;
Detecting whether the mobile terminal is carrying out network conversation;
when the network call is in the process, detecting whether an operation of actively closing a screen by a user is received; and
When receiving an operation of actively closing the screen by a user, suspending the automatic screen turning function of the mobile terminal, and releasing the sensor resources occupied by the automatic screen turning function to the cache space.
2. The screen turn management and control method according to claim 1, further comprising the steps of:
Detecting whether an operation of actively opening a screen by a user is received;
and when receiving the operation of actively starting the screen by the user, recovering the automatic screen turning function and removing the sensor resource from the cache space.
3. The screen saving management and control method according to claim 1 or 2, wherein the method further includes, after the step of detecting whether the mobile terminal is in a network call:
And when the network call is in progress, further detecting the type of the network call, if the network call is a voice call, executing the step of detecting whether the operation of actively closing the screen by the user is received, and if the network call is a video call, ending the process.
4. The screen turn-off management and control method according to claim 2, wherein the step of setting the buffer space of the sensor resource further comprises:
And a release interface, a recovery interface and a cache interface are added in the bottom layer sensor service.
5. the screen turn-off management and control method according to claim 4, wherein the step of suspending an automatic screen turn-off function of the mobile terminal and releasing the sensor resource occupied by the automatic screen turn-off function to the cache space comprises:
And calling back to the release interface through a JAVA local interface to release the sensor resource, and writing corresponding sensor resource information into the cache space through the cache interface.
6. The screen relatching management and control method according to claim 4, wherein the step of recovering the automatic screen relatching function and removing the sensor resource from the cache space comprises:
and calling back the recovery interface through a JAVA local interface to recover the sensor resource, so as to recover the automatic screen-turning function, and removing the corresponding sensor resource information from the cache space through the cache interface.
7. a mobile terminal, characterized in that the mobile terminal comprises: the screen turning control program comprises a memory, a processor and a screen turning control program which is stored on the memory and can run on the processor, and when being executed by the processor, the screen turning control program realizes the following steps:
Setting a cache space of sensor resources;
Detecting whether the mobile terminal is carrying out network conversation;
When the network call is in the process, detecting whether an operation of actively closing a screen by a user is received; and
when receiving an operation of actively closing the screen by a user, suspending the automatic screen turning function of the mobile terminal, and releasing the sensor resources occupied by the automatic screen turning function to the cache space.
8. The mobile terminal of claim 7, wherein the screen saver management and control program, when executed by the processor, further implements the steps of:
Detecting whether an operation of actively opening a screen by a user is received;
And when receiving the operation of actively starting the screen by the user, recovering the automatic screen turning function and removing the sensor resource from the cache space.
9. The mobile terminal according to claim 7 or 8, wherein the screen saver management program further implements, when executed by the processor, the steps of:
And when the network call is in progress, further detecting the type of the network call, if the network call is a voice call, executing the step of detecting whether the operation of actively closing the screen by the user is received, and if the network call is a video call, ending the process.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a screenout management program which, when executed by a processor, implements the steps of the screenout management method according to any one of claims 1 to 6.
CN201910882599.9A 2019-09-18 2019-09-18 Screen-extinguishing control method, mobile terminal and computer-readable storage medium Active CN110572518B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910882599.9A CN110572518B (en) 2019-09-18 2019-09-18 Screen-extinguishing control method, mobile terminal and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910882599.9A CN110572518B (en) 2019-09-18 2019-09-18 Screen-extinguishing control method, mobile terminal and computer-readable storage medium

Publications (2)

Publication Number Publication Date
CN110572518A true CN110572518A (en) 2019-12-13
CN110572518B CN110572518B (en) 2024-03-22

Family

ID=68780888

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910882599.9A Active CN110572518B (en) 2019-09-18 2019-09-18 Screen-extinguishing control method, mobile terminal and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN110572518B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116400974A (en) * 2023-06-07 2023-07-07 荣耀终端有限公司 Method for entering long standby mode, electronic device and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106775809A (en) * 2016-11-15 2017-05-31 北京奇虎科技有限公司 A kind of method of mobile terminal internal memory cleaning, device and mobile terminal
CN107133097A (en) * 2017-04-16 2017-09-05 努比亚技术有限公司 Memory Optimize Method and device
US20170280394A1 (en) * 2014-09-19 2017-09-28 Lg Electronics Inc. Mobile terminal and motion-based low power implementing method thereof
CN109195210A (en) * 2018-08-28 2019-01-11 努比亚技术有限公司 A kind of electricity saving method, mobile terminal and computer readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170280394A1 (en) * 2014-09-19 2017-09-28 Lg Electronics Inc. Mobile terminal and motion-based low power implementing method thereof
CN106775809A (en) * 2016-11-15 2017-05-31 北京奇虎科技有限公司 A kind of method of mobile terminal internal memory cleaning, device and mobile terminal
CN107133097A (en) * 2017-04-16 2017-09-05 努比亚技术有限公司 Memory Optimize Method and device
CN109195210A (en) * 2018-08-28 2019-01-11 努比亚技术有限公司 A kind of electricity saving method, mobile terminal and computer readable storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116400974A (en) * 2023-06-07 2023-07-07 荣耀终端有限公司 Method for entering long standby mode, electronic device and readable storage medium
CN116400974B (en) * 2023-06-07 2023-12-22 荣耀终端有限公司 Method for entering long standby mode, electronic device and readable storage medium

Also Published As

Publication number Publication date
CN110572518B (en) 2024-03-22

Similar Documents

Publication Publication Date Title
CN107729125B (en) Management method for resident application program in background and mobile terminal
CN109040441B (en) Application body-separating display method, mobile terminal and computer readable storage medium
CN107807767B (en) Communication service processing method, terminal and computer readable storage medium
CN108958936B (en) Application program switching method, mobile terminal and computer readable storage medium
CN109766119B (en) Recovery partition upgrade method, terminal and computer readable storage medium
CN110069167B (en) Touch point cleaning method, mobile terminal and computer readable storage medium
CN107066327B (en) Timing task processing method, mobile terminal and computer readable storage medium
CN112888084A (en) Full-band communication method and device and mobile terminal
CN112712815A (en) Software-based pop sound suppression method, terminal and computer readable medium
CN112423211A (en) Multi-audio transmission control method, equipment and computer readable storage medium
CN111970738A (en) Network switching control method, equipment and computer readable storage medium
CN110187934B (en) Application control method, terminal and computer readable storage medium
CN109151201B (en) Anti-addiction method, mobile terminal and computer storage medium
CN110099173B (en) Touch experience mode switching method, terminal and storage medium
CN109683796B (en) Interaction control method, equipment and computer readable storage medium
CN109062688B (en) Memory allocation method, server and mobile terminal
CN110955397A (en) Method for setting frame rate of game terminal, game terminal and storage medium
CN107404568B (en) Control switch management method and mobile terminal
CN107580106B (en) Call control method, mobile terminal and computer readable storage medium
CN110572518B (en) Screen-extinguishing control method, mobile terminal and computer-readable storage medium
CN110377458B (en) Data recovery method, mobile terminal and computer readable storage medium
CN109683799B (en) Sliding control method and device and computer readable storage medium
CN114253687A (en) Multi-window leakage processing method and device and computer readable storage medium
CN109379719B (en) Application program broadcast processing method and device and computer readable storage medium
CN109947298B (en) System calling method, terminal and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20220512

Address after: 1801, building 2, Chongwen Park, Nanshan Zhiyuan, No. 3370, Liuxian Avenue, Fuguang community, Taoyuan Street, Nanshan District, Shenzhen, Guangdong 518000

Applicant after: NUBIA TECHNOLOGY Co.,Ltd.

Address before: 518000 6-8 / F, 10-11 / F, 6 / F, 6-10 / F, C zone, Han's innovation building, No. 9018, Beihuan Avenue, high tech Zone, Nanshan District, Shenzhen City, Guangdong Province

Applicant before: NUBIA TECHNOLOGY Co.,Ltd.

Applicant before: NANCHANG NUBIA TECHNOLOGY Co.,Ltd.

SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant