[go: up one dir, main page]

WO2017206890A1 - Procédé et appareil de traitement basé sur un verrouillage de réveil, support de stockage, et dispositif électronique - Google Patents

Procédé et appareil de traitement basé sur un verrouillage de réveil, support de stockage, et dispositif électronique Download PDF

Info

Publication number
WO2017206890A1
WO2017206890A1 PCT/CN2017/086524 CN2017086524W WO2017206890A1 WO 2017206890 A1 WO2017206890 A1 WO 2017206890A1 CN 2017086524 W CN2017086524 W CN 2017086524W WO 2017206890 A1 WO2017206890 A1 WO 2017206890A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
application
lock
wake
electronic device
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.)
Ceased
Application number
PCT/CN2017/086524
Other languages
English (en)
Chinese (zh)
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Publication of WO2017206890A1 publication Critical patent/WO2017206890A1/fr
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3058Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations
    • 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
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Definitions

  • the present invention relates to the field of terminal technologies, and in particular, to a method, an apparatus, a storage medium, and an electronic device.
  • the embodiment of the invention provides a method, a device, a storage medium and an electronic device for processing a wake-up lock, which can save power of the terminal.
  • an embodiment of the present invention provides a method for processing a wake-up lock, including the following steps:
  • the application is prevented from illuminating the screen of the terminal by the held wake lock.
  • the embodiment of the present invention further provides a processing device for a wake-up lock, including: a first determining module, a notification acquiring module, a second determining module, and a control module;
  • the first determining module is configured to determine, when the terminal is in a standby state, whether the terminal is currently in an occluded state;
  • the notification obtaining module is configured to acquire a notification event corresponding to the message when the terminal is in the occluded state
  • the second determining module is configured to determine whether the application corresponding to the notification event holds a wakelock, and the wakelock is used to illuminate a screen of the terminal;
  • the control module is configured to prevent the application from lighting the screen of the terminal by the held wakeup lock when the second determining module determines to be YES.
  • an embodiment of the present invention further provides a storage medium, where the storage medium stores a plurality of instructions, and the instructions are adapted to be loaded by a processor to execute the above-described wakelock-based processing method.
  • an embodiment of the present invention further provides an electronic device, including a processor and a memory, where the memory stores a plurality of instructions, and the processor loads the instructions in the memory to perform the following steps:
  • the application is prevented from illuminating the screen of the electronic device by the held wake lock.
  • the embodiment of the invention provides a method, a device, a storage medium and an electronic device for processing a wake-up lock, which can save power of the terminal.
  • FIG. 1 is a schematic flowchart diagram of a method for processing a wake-up lock according to an embodiment of the present invention.
  • FIG. 2 is another schematic flowchart of a method for processing a wake-up lock according to an embodiment of the present invention.
  • FIG. 3 is a schematic diagram of a scenario of a method for processing a wake-up lock according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a wakeup lock-based processing apparatus according to an embodiment of the present invention.
  • FIG. 5 is another schematic structural diagram of a wakelock-based processing apparatus according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
  • FIG. 7 is another schematic structural diagram of an electronic device according to an embodiment of the present invention.
  • the embodiment of the invention provides a processing method based on a wake-up lock, which comprises the following steps:
  • the application is prevented from illuminating the screen of the terminal by the held wake lock.
  • the step of determining whether the terminal is currently in an occluded state comprises:
  • the method further includes:
  • the step of preventing the application from illuminating the screen of the terminal by the held wake lock is performed.
  • the method further includes:
  • the application corresponding to the notification event is allowed to hold the wakelock.
  • the method further includes:
  • the waking lock request request is refused to be processed to prevent the application from applying for a wake lock.
  • the step of determining whether the application corresponding to the notification event holds a wakelock includes:
  • the method when the terminal is in a standby state, determining whether the terminal is currently in an occluded state, the method further includes:
  • the present embodiment will describe a processing method based on a wake-up lock from a perspective of a wake-lock based processing device, wherein the wake-lock based processing device may be specifically integrated in a terminal, and the terminal may be a mobile internet device (such as a smart phone). , tablet computers, smart wearable devices (such as smart watches) and other electronic devices.
  • the wake-lock based processing device may be specifically integrated in a terminal, and the terminal may be a mobile internet device (such as a smart phone). , tablet computers, smart wearable devices (such as smart watches) and other electronic devices.
  • FIG. 1 is a schematic flowchart of a method for processing a wake-up lock according to an embodiment of the present invention.
  • the method for processing a wake-up lock according to this embodiment includes:
  • step S101 when the terminal is in the standby state, it is determined whether the terminal is currently in the occluded state. If yes, step S102 is performed, and if no, step S103 is performed.
  • the terminal it is determined that the terminal is in a standby state, and the terminal may be determined to be in a standby state according to whether the terminal screen is currently off. If the current state of the terminal screen is off, the terminal is determined to be in a standby state. If the current state of the terminal screen is not off, the step of determining that the terminal is not in the standby state, that is, determining whether the terminal is in the standby state, specifically includes:
  • the time length of the screen of the terminal is off, and further determining whether the duration of the screen is off is greater than a preset duration, and if yes, determining that the terminal is currently in standby. Status; if not, it is determined that the terminal is not currently in the standby state.
  • the preset duration is 5 min or 10 min, etc.
  • the preset duration can be set according to the actual situation of the user, and is not further limited herein.
  • determining whether the terminal is currently in the occluded state may further determine according to the light intensity information of the environment in which the terminal is located, for example, setting an ambient light sensor in the terminal, and the sensor may be disposed on the front side of the terminal ( For example, at the top of the screen, when the terminal is in the standby state, the ambient light sensor detects the light intensity of the environment in which the current terminal is located, thereby determining whether the terminal is currently in an occluded state according to the light intensity value.
  • the preset distance threshold may be preset according to experimental data. For example, in the case of a mobile phone, when the mobile phone is placed in a pocket or a bag, there is an object beside the distance sensor of the mobile phone. At this time, the distance sensor can detect that the distance from the object around the mobile phone is less than the preset distance. To determine that the phone is currently occluded.
  • Step S102 Acquire a notification event corresponding to the message.
  • the notification event may be webpage information, short message, QQ information, application push information, etc., which may be from a webpage, an installed application, or a notification information such as an operating system of the terminal.
  • the smart terminal may utilize an accessibility service in an Android framework (Accessibility).
  • Service's accessibility event mechanism obtains the above notification information.
  • this step can also be based on Apple's Mac OS X.
  • the operating system is not to be described or limited in detail insofar as it is readily understood by those skilled in the art.
  • Step S103 the application corresponding to the notification event is allowed to hold the wake lock.
  • the terminal may currently be in the line of sight of the user.
  • Allows its corresponding application to hold a wake-up lock and illuminate the screen with the wake-up lock to prompt the user.
  • Step S104 determining whether the application corresponding to the notification event holds a wake-up lock, the wake-up lock is used to light the screen of the terminal, and if yes, executing step S105, and if no, executing step S106.
  • the screen display consumes the most power.
  • the screen design is getting larger and larger, and the large screen lighting needs to consume more power.
  • the third-party application installed in the terminal often receives the message pushed by the business server and reminds the user by means of the notification event, and wakes up the mobile phone system to light up the screen.
  • the mobile phone sometimes does not need to wake up.
  • the screen reminds the user, such as placing it in a pocket or a bag when not using the mobile phone. At this time, illuminating the mobile phone screen may cause unnecessary waste of power. If the user's mobile phone is installed in the background, more such applications run in the background. There will be more notification events to wake up the terminal screen by holding a wake-up lock, resulting in wasted power.
  • the method for determining whether the application has a wake-up lock may be various, for example, detecting whether the wake-up lock is in a working state, and if so, Determining whether the wake-up lock is a wake-up lock corresponding to the application, wherein the name of the wake-up lock in the working state and the application name corresponding to the wake-up lock in the working state can be obtained through a framework layer of the system, It should be noted that the above-mentioned wake-up locks in the working state may have one or more than one.
  • the step of determining whether the application has a wakelock may specifically include:
  • the step of determining whether the application holds the wake-up lock may further include: acquiring the identification information of the application, and searching, in the terminal, the wake-up lock corresponding to the working state according to the identifier information, if present, if present , to determine that the application holds a wake lock.
  • Step S105 preventing the application from lighting the screen of the terminal by the held wake lock.
  • the wake-up lock is released to keep the terminal screen off, thereby avoiding unnecessary power consumption of the terminal.
  • the received notification information when the user opens the terminal, the received notification information may be displayed in the notification bar of the terminal, to notify the user that the notification information is received when the terminal is in standby, and the user is processed, which increases flexibility.
  • step S106 no further processing is performed and standby is maintained.
  • the application corresponding to the notification event does not hold the wakelock, that is, the application does not cause the terminal to wake up the screen when the terminal is off, it is not necessary to further process the terminal, and the standby of the terminal is maintained. You can turn off the screen.
  • the application if it is determined that the application does not hold the wakeup lock, it is detected whether there is a wakelock application request corresponding to the application;
  • the wakelock request request is denied processing to prevent the application from applying for a wakelock.
  • the embodiment of the present invention may add a control switch for controlling the opening of the processing mode of the terminal. With off.
  • the processing method based on the wake-up lock determines whether the terminal is currently in an occluded state when the terminal is in the standby state, and obtains a notification event corresponding to the message when the terminal is in the occluded state, and determines the notification.
  • the application corresponding to the event holds a wake-up lock, and if so, preventing the application from lighting the screen of the terminal through the held wake-up lock; the solution can release the corresponding notification event corresponding when the terminal is in the occluded state.
  • the wake-up lock held by the application prevents the terminal screen from being lit, thereby reducing the consumption of the power of the terminal by the lighting screen, saving the power of the terminal, and thereby improving the endurance of the terminal.
  • the processing method based on the wake-up lock provided by the embodiment of the present invention includes:
  • step S201 when the terminal is in standby, the ambient light intensity value of the environment in which the terminal is currently located is obtained.
  • an ambient light sensor can be disposed at the terminal, and the ambient light sensor can acquire the current light intensity of the environment in which the terminal is located.
  • an ambient light acquisition information can be generated every preset period of time, and the information is acquired according to the ambient light.
  • Light intensity information in the sensor, wherein the ambient light can be outdoor daylight, indoor light, and the like.
  • step S202 it is determined whether the ambient light intensity value is less than a preset value threshold. If yes, step S203 is performed, and if no, step S204 is performed.
  • a preset threshold of the light intensity may be preset as a threshold for determining whether the terminal is occluded, and the preset threshold may be a value obtained by pre-measurement in the laboratory, if the ambient light intensity value is less than the preset The value determines that the terminal is currently in an occluded state; if the ambient light intensity value is not less than the preset value, it is determined that the terminal is not currently in an occluded state.
  • Step S203 Acquire a notification event corresponding to the message.
  • the notification event may be webpage information, short message, QQ information, application push information, etc., which may be from a webpage, an installed application, or a notification information such as an operating system of the terminal.
  • the application corresponding to the notification event may also be determined. Specifically, the embodiment may detect the notification bar management interface in the operating system of the terminal, when the notification bar is detected. When the management interface receives the notification message initiated by the application, the received notification message can be obtained from the notification bar management interface.
  • the application may be an application of a short message type, or may be an application of an instant messaging IM (Instant Messaging) type.
  • the application may be a system information push, a game, or the like. It can be an IM-type application such as WeChat, QQ, Skype, Facebook, etc.
  • the application can be an application in the operating system of the terminal or a third-party application installed by the user.
  • Step S204 determining that the application corresponding to the notification notification event holds the wake lock and lights up the screen.
  • the application is an instant messaging application that, when receiving a message, can allow it to wake up the screen and display the message in the notification bar of the terminal to inform the user.
  • step S205 it is determined whether the application corresponding to the notification event holds the wakelock lock. If yes, step S206 is performed, and if no, step S208 is performed.
  • the method for determining whether the application has a wake-up lock may be various, for example, the terminal may be detected whether a wake-up lock is in a working state, and if so, Then, it is determined whether the wake-up lock is a wake-up lock corresponding to the application.
  • step S206 it is determined whether the current time is within the preset time range. If not, step S207 is performed, and if yes, step S208 is performed.
  • the preset time period can be preset in this embodiment. If the current time is not within the preset time period, step S207 is continued.
  • the preset time period can be set by the user according to the actual situation; the manner of obtaining the current time can also be various, such as obtaining the current time by querying the network or retrieving the current time of the system.
  • Step S207 preventing the application from lighting the terminal screen by the held wake lock.
  • the received notification information may be displayed in the notification bar of the terminal, to notify the user that the notification information is received when the terminal is in standby, and the user is processed, which increases flexibility. Sex.
  • step S208 no further processing is performed and standby is maintained.
  • the terminal may be, but not limited to, a smart terminal such as a smart phone, a tablet computer, or a notebook computer.
  • the operating system of the terminal may be an Android operating system, an IOS operating system, or a black.
  • the Berry operating system and the like are not limited in the present invention.
  • the processing method based on the wake-up lock determines whether the terminal is currently in an occluded state when the terminal is in the standby state, and obtains a notification event corresponding to the message when the terminal is in the occluded state, and determines the notification.
  • the application corresponding to the event holds a wake-up lock, and if so, preventing the application from lighting the screen of the terminal through the held wake-up lock; the solution can release the corresponding notification event corresponding when the terminal is in the occluded state.
  • the wake-up lock held by the application prevents the terminal screen from being lit, thereby reducing the consumption of the power of the terminal by the lighting screen, saving the power of the terminal, and thereby improving the endurance of the terminal.
  • a smart phone is taken as an example, and the above-mentioned wake-up lock is a cpu lock, and the specific implementation steps of the solution in the actual application are described, including the following steps:
  • Step S301 Acquire a current ambient light intensity when the smartphone is in standby.
  • the ambient light sensor in the mobile phone can be used to detect the light intensity value of the environment in which the current mobile phone is located.
  • step S302 the smart phone determines whether the light intensity value is less than a preset value. If yes, step S303 is performed, and if no, step S304 is performed.
  • the terminal is currently in an occluded state; if the light intensity value is not less than the preset value, it is determined that the terminal is not currently in an occluded state.
  • Step S303 the smartphone acquires the notification message.
  • the notification message may be a system notification, or a push message sent by a third-party application installed on the mobile phone, such as weather information, memo reminder, QQ message, and the like.
  • Step S304 the application corresponding to the notification message is allowed to hold the cpu lock.
  • step S305 the smartphone determines whether the application holds the cpu lock. If yes, step S306 is performed, and if no, step S308 is performed.
  • the corresponding application is determined according to the notification information.
  • the notification may be detected by the NotificationListenerService service interface in the smart phone based on the android operating system.
  • the NotificationListenerService interface is triggered.
  • the callback method obtains the specific information of the notification message, thereby determining the corresponding application, for example, the application corresponding to the QQ message is “Tencent QQ”, and the application corresponding to the microblog private message is “Sina Weibo”.
  • step S306 the smart phone determines whether the current time is within the preset time period. If yes, step S308 is performed, and if no, step S307 is performed.
  • the process proceeds to step S307.
  • step S307 the smart phone releases the cpu lock to keep the screen of the mobile phone off.
  • the notification message of the above-mentioned "Alipay" push may be displayed on the desktop of the mobile phone, thereby allowing the user to perform processing.
  • step S308 the mobile phone does not perform further processing to maintain the standby state of the smart phone.
  • the processing method provided by the embodiment of the present invention determines whether the smart phone is currently in an occluded state when the smart phone is in a standby state, and obtains a notification message when the smart phone is in an occluded state, and determines that the notification message corresponds to Whether the application holds the cpu lock, and if so, releases the cpu lock held by the application; this solution can release the cpu lock held by the application corresponding to the received notification message when the smartphone is in the occluded state.
  • the smartphone screen In order to prevent the smartphone screen from being lit, thereby reducing the consumption of the smart phone by the lighting screen, saving the power of the smart phone, thereby improving the endurance.
  • the embodiment of the present invention further provides a processing device based on a wake-up lock, including: a first determining module, a notification acquiring module, a second determining module, and a control module;
  • the first determining module is configured to determine, when the terminal is in a standby state, whether the terminal is currently in an occluded state;
  • the notification obtaining module is configured to acquire a notification event corresponding to the message when the terminal is in the occluded state
  • the second determining module is configured to determine whether the application corresponding to the notification event holds a wakelock, and the wakelock is used to illuminate a screen of the terminal;
  • the control module is configured to prevent the application from lighting the screen of the terminal by the held wakeup lock when the second determining module determines to be YES.
  • the first determining module includes: an obtaining submodule, a determining submodule, and a determining submodule;
  • the acquiring submodule is configured to obtain an ambient light intensity value of an environment in which the terminal is currently located;
  • the determining submodule is configured to determine whether the light intensity value is less than a preset threshold
  • the determining submodule is configured to determine that the terminal is currently in an occluded state when the determining submodule determines to be YES.
  • the apparatus further includes: a third determining module
  • the third determining module is configured to: after the second determining module determines to be YES, the control module prevents the application from determining the current time before the screen of the terminal is illuminated by the wake lock held by the application Whether it is within the preset time range;
  • the control module is configured to, when the third determining module determines to be no, perform a screen that prevents the application from lighting the terminal by the held wake lock.
  • the apparatus further comprises: an enabling module
  • the permission module is configured to allow the application corresponding to the notification event to hold the wake lock after receiving the notification event when the first determining module determines to be no.
  • the apparatus further includes: a detection module
  • the detecting module is configured to: when the second determining module determines to be no, detect whether there is a wakelock application request corresponding to the application;
  • the control module is further configured to: when the detecting module detects the wakelock application request corresponding to the application, rejecting the wakelock application request processing to prevent the application from applying for a wakelock.
  • the present invention further provides a processing device based on a wake-up lock, which can be integrated in a terminal, which can be a mobile Internet device (such as a smart phone or a tablet), smart wearable.
  • a processing device based on a wake-up lock, which can be integrated in a terminal, which can be a mobile Internet device (such as a smart phone or a tablet), smart wearable.
  • Various intelligent electronic devices such as devices (such as smart watches).
  • the wakelock-based processing device 40 may include: a first determining module 401, a notification obtaining module 402, a second determining module 403, and a control module 404;
  • the first determining module 401 is configured to determine, when the terminal is in the standby state, whether the terminal is currently in an occluded state;
  • the notification obtaining module 402 is configured to acquire a notification event corresponding to the message when the terminal is in the occluded state;
  • the second determining module 403 is configured to determine whether the application corresponding to the notification event holds a wakelock
  • the control module 404 is configured to prevent the application from lighting the screen of the terminal by the held wakeup lock when the second determining module 403 determines YES.
  • the device 40 further includes an allow module 405;
  • the permission module 405 is configured to, when the first determining module 401 determines to be no, after the notification event is received, allow the application corresponding to the notification event to hold the wake lock.
  • the first determining module 401 may include: an obtaining submodule 4011, a determining submodule 4012, and a determining submodule 4013. ;
  • the obtaining sub-module 4011 is configured to obtain an ambient light intensity value of an environment in which the terminal is currently located;
  • the determining sub-module 4012 is configured to determine whether the light intensity value is less than a preset threshold
  • the determining sub-module 4013 is configured to determine that the terminal is currently in an occluded state when the determining sub-module determines to be YES.
  • the apparatus 40 may further include: a third determining module 406;
  • the third determining module 406 is configured to: after the second determining module 403 determines YES, the control module 404 prevents the application from lighting the screen of the terminal through the wake lock held by the application, and determining whether the current time is in the preset time range.
  • the control module 404 is specifically configured to: when the third determining module determines to be no, execute a screen that prevents the application from lighting the terminal by the held wake lock.
  • the device 40 may further include: a detecting module 407;
  • the detecting module 407 is configured to: when the second determining module 403 determines to be no, detect whether there is a wakelock request request corresponding to the application;
  • the control module 404 is further configured to: when the detecting module detects that the application has a wakelock request request, reject the wakelock request request processing to prevent the application from applying for the wakelock.
  • the first determining module 401 determines whether the terminal is currently in the occluded state, and notifies the obtaining module 402 when the terminal is in the occluded state.
  • the second determining module 403 determines whether the application corresponding to the notification event holds the wake-up lock, and if so, the control module prevents the application from lighting the screen of the terminal through the held wake-up lock;
  • the wake-up lock held by the application corresponding to the received notification event is released to prevent the terminal screen from being lit, thereby reducing the consumption of the power of the terminal by the lighting screen, and saving the terminal.
  • the power can further improve the terminal's battery life.
  • the embodiment of the present invention further provides an electronic device, which may be the terminal described in the foregoing embodiment, and specifically includes a device such as a smart phone or a tablet computer.
  • the electronic device 500 includes a processor 501, a memory 502, and a display screen 503.
  • the processor 501 is electrically connected to the memory 502 and the display screen 503, respectively.
  • the processor 501 is a control center of the electronic device 500, and connects various parts of the entire electronic device 500 by various interfaces and lines, by running or loading an application stored in the memory 502, and calling data stored in the memory 502, executing The various functions and processing data of the electronic device 500 enable overall monitoring of the electronic device 500.
  • Memory 502 can be used to store applications and data.
  • the application stored in the memory 502 contains instructions executable in the processor.
  • Applications can form various functional modules.
  • the processor 501 executes various functional applications and data processing by running an application stored in the memory 502.
  • the display screen 503 can be used to display information entered by the user or information provided to the user and various graphical user interfaces of the electronic device 500, which can be composed of images, text, icons, video, and any combination thereof.
  • the processor 501 in the electronic device 500 loads the instructions corresponding to the process of one or more applications into the memory 502 according to the following steps, and is stored and stored in the memory 502 by the processor 501.
  • the application thus implementing various functions:
  • the wake-up lock is used to light the screen of the electronic device 500, that is, the display screen 503;
  • the application is prevented from illuminating the screen of the electronic device 500, i.e., the display screen 503, by the held wake lock.
  • electronic device 500 also includes a sensor 504.
  • the sensor 504 is configured to collect external environmental information, and may include one or more of an environmental brightness sensor, an acceleration sensor, a gyroscope, and the like.
  • the electronic device 500 first acquires the ambient light intensity value of the environment in which the electronic device 500 is currently located through the sensor 504; and determines whether the light intensity value is less than a preset threshold by the processor 501; if yes, determines the electronic device 500. Currently in an occluded state.
  • the processor 501 after determining that the application holds the wake lock, preventing the application from illuminating the screen of the electronic device 500 through the wake lock held by the application, the processor 501 further performs the following steps:
  • the step of preventing the application from illuminating the display screen 503 of the electronic device 500 by the held wake lock is performed.
  • the processor 501 after determining whether the electronic device 500 is currently in an occluded state, the processor 501 further performs the following steps: if it is determined that the electronic device 500 is not currently in an occluded state, after receiving the notification event, Allows the application corresponding to the notification event to hold a wakelock.
  • the processor 501 after determining whether the application corresponding to the notification event holds a wakelock, the processor 501 further performs the following steps:
  • the waking lock request request is refused to be processed to prevent the application from applying for a wake lock.
  • the processor 501 when it is determined whether the application corresponding to the notification event holds a wakelock, the processor 501 further performs the following steps:
  • the processor 501 when the electronic device 500 is in the standby state, before determining whether the electronic device 500 is currently in an occluded state, the processor 501 performs the following steps:
  • the electronic device 500 also includes a power source 505.
  • Power source 505 is used to power various components of electronic device 500.
  • the power supply 505 can be logically coupled to the processor 501 through a power management system to enable functions such as managing charging, discharging, and power management through the power management system.
  • the electronic device 500 may further include a camera, a Bluetooth module, and the like, and details are not described herein again.
  • the electronic device determines whether the electronic device is currently in an occluded state when the electronic device is in a standby state, and acquires a notification event corresponding to the message when the electronic device is in the occluded state; Whether the application corresponding to the notification event holds a wake-up lock, the wake-up lock is used to light a screen of the electronic device; if so, the application is prevented from lighting the electronic device by the held wake-up lock Screen.
  • the solution can release the wake lock held by the application corresponding to the received notification event when the electronic device is in the occluded state, so as to prevent the electronic device screen from being lit, thereby reducing the power of the electronic device on the illuminated screen. Consumption saves the power of the electronic device, which in turn can improve the battery life of the electronic device.
  • the foregoing modules may be implemented as a separate entity, or may be implemented in any combination, and may be implemented as the same or a plurality of entities.
  • the foregoing modules refer to the foregoing method embodiments, and details are not described herein again.
  • the embodiment of the invention further provides a storage medium, wherein the storage medium stores a plurality of instructions, the instructions being adapted to be loaded by a processor to execute the wakelock-based processing method described in any of the above embodiments.
  • ROM read only memory
  • RAM Random Access Memory
  • Each functional module can be integrated into a processing chip, or each module can exist physically separately. Two or more modules can be integrated into one module.
  • the above integrated modules can be implemented in the form of hardware or in the form of software functional modules.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Computing Systems (AREA)
  • Quality & Reliability (AREA)
  • Telephone Function (AREA)

Abstract

L'invention concerne un procédé et un appareil de traitement basé sur un verrouillage de réveil, un support de stockage, et un dispositif électronique. Le procédé comporte les étapes consistant à : quand un terminal est dans un état de veille, déterminer si le terminal se trouve actuellement dans un état couvert (S101), quand le terminal se trouve dans l'état couvert, obtenir un événement de notification correspondant à un message (S102), déterminer si un programme d'application correspondant à l'événement de notification maintient un verrouillage de réveil (S104), et si c'est le cas, empêcher le programme d'application de fonctionner sur un écran du terminal par l'intermédiaire du verrouillage de réveil maintenu (S105).
PCT/CN2017/086524 2016-05-31 2017-05-31 Procédé et appareil de traitement basé sur un verrouillage de réveil, support de stockage, et dispositif électronique Ceased WO2017206890A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610379855.9A CN106095288A (zh) 2016-05-31 2016-05-31 一种基于唤醒锁的处理方法和装置
CN201610379855.9 2016-05-31

Publications (1)

Publication Number Publication Date
WO2017206890A1 true WO2017206890A1 (fr) 2017-12-07

Family

ID=57230620

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/086524 Ceased WO2017206890A1 (fr) 2016-05-31 2017-05-31 Procédé et appareil de traitement basé sur un verrouillage de réveil, support de stockage, et dispositif électronique

Country Status (2)

Country Link
CN (1) CN106095288A (fr)
WO (1) WO2017206890A1 (fr)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116707048A (zh) * 2022-09-06 2023-09-05 荣耀终端有限公司 一种基于otg的充电控制方法及相关装置

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106095288A (zh) * 2016-05-31 2016-11-09 广东欧珀移动通信有限公司 一种基于唤醒锁的处理方法和装置
CN106648027A (zh) * 2016-12-01 2017-05-10 深圳市金立通信设备有限公司 一种屏幕控制方法及终端
CN106816139A (zh) * 2017-04-11 2017-06-09 广东美的制冷设备有限公司 背光源的控制方法、控制装置及带有背光源的终端
CN107091650A (zh) * 2017-04-27 2017-08-25 重庆邮电大学 一种基于手机加速度和距离传感器的软件计步方法
CN107608724A (zh) * 2017-09-26 2018-01-19 深圳市金立通信设备有限公司 一种管理应用程序的方法、终端及计算机可读存储介质
CN108848417A (zh) * 2018-07-20 2018-11-20 晶晨半导体(上海)股份有限公司 唤醒锁的控制方法及控制系统
CN110111142B (zh) * 2019-04-28 2020-09-22 重庆勾正数据科技有限公司 基于智能终端智能营销系统

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100181988A1 (en) * 2009-01-22 2010-07-22 Samsung Electronics Co., Ltd. Method for reducing power consumption based on motion sensor and portable terminal using the same
CN102520852A (zh) * 2011-11-29 2012-06-27 华为终端有限公司 一种移动设备屏幕状态的控制方法及相关移动设备
CN103885565A (zh) * 2012-12-21 2014-06-25 希姆通信息技术(上海)有限公司 智能设备的休眠方法及系统
CN104850443A (zh) * 2015-05-29 2015-08-19 努比亚技术有限公司 一种关闭误启动应用程序的方法以及移动终端
CN105306743A (zh) * 2015-09-30 2016-02-03 小米科技有限责任公司 屏幕控制方法及装置
CN106095288A (zh) * 2016-05-31 2016-11-09 广东欧珀移动通信有限公司 一种基于唤醒锁的处理方法和装置

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008090436A (ja) * 2006-09-29 2008-04-17 Toshiba Corp 情報処理装置およびシステム状態制御方法。
CN105094323A (zh) * 2015-07-09 2015-11-25 努比亚技术有限公司 终端的夜间模式设置方法及装置
CN105138113A (zh) * 2015-07-14 2015-12-09 广东欧珀移动通信有限公司 一种点亮屏幕的方法及装置
CN105183137B (zh) * 2015-09-09 2018-06-01 厦门美图移动科技有限公司 一种移动终端及其唤醒锁控制方法和控制系统

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100181988A1 (en) * 2009-01-22 2010-07-22 Samsung Electronics Co., Ltd. Method for reducing power consumption based on motion sensor and portable terminal using the same
CN102520852A (zh) * 2011-11-29 2012-06-27 华为终端有限公司 一种移动设备屏幕状态的控制方法及相关移动设备
CN103885565A (zh) * 2012-12-21 2014-06-25 希姆通信息技术(上海)有限公司 智能设备的休眠方法及系统
CN104850443A (zh) * 2015-05-29 2015-08-19 努比亚技术有限公司 一种关闭误启动应用程序的方法以及移动终端
CN105306743A (zh) * 2015-09-30 2016-02-03 小米科技有限责任公司 屏幕控制方法及装置
CN106095288A (zh) * 2016-05-31 2016-11-09 广东欧珀移动通信有限公司 一种基于唤醒锁的处理方法和装置

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116707048A (zh) * 2022-09-06 2023-09-05 荣耀终端有限公司 一种基于otg的充电控制方法及相关装置

Also Published As

Publication number Publication date
CN106095288A (zh) 2016-11-09

Similar Documents

Publication Publication Date Title
WO2017206890A1 (fr) Procédé et appareil de traitement basé sur un verrouillage de réveil, support de stockage, et dispositif électronique
WO2017206862A1 (fr) Procédé et appareil de traitement basés sur un verrouillage d'écran lumineux, support de stockage, et dispositif électronique
WO2017206878A1 (fr) Procédé et appareil de traitement basé sur un verrou d'activation, support d'informations et dispositif électronique
WO2014021681A1 (fr) Procédé et appareil destinés à un service de réveil utilisant la sensibilité au contexte dans un terminal portatif
WO2017206875A1 (fr) Procédé et appareil de traitement basés sur un paquet de données, support de stockage et dispositif électronique
WO2018076867A1 (fr) Procédé, dispositif et système de suppression de sauvegarde de données, support de mémoire et serveur
WO2018076861A1 (fr) Procédé, appareil, support d'informations, serveur et système de commande de transmission de données
WO2012036324A1 (fr) Terminal mobile et procédé permettant de commander son fonctionnement
WO2018076812A1 (fr) Procédé et dispositif de réponse à une demande de données, support de stockage, serveur et système
WO2018076841A1 (fr) Procédé de partage de données, appareil, support de stockage, et serveur
WO2017206883A1 (fr) Procédé et appareil de traitement d'applications, support de stockage, et dispositif électronique
WO2018076818A1 (fr) Procédé de sauvegarde de données, appareil, dispositif électronique, support de stockage et système
WO2017206879A1 (fr) Procédé et appareil de traitement de programme d'application de terminal mobile, support de stockage, et dispositif électronique
WO2017206886A1 (fr) Procédé et appareil de déverrouillage d'activation, support d'informations et dispositif électronique
WO2018076869A1 (fr) Procédé sauvegarde de données, appareil, support de stockage et dispositif électronique
WO2018076819A1 (fr) Procédé de téléchargement de données, appareil, support de stockage, dispositif électronique et système
WO2017206870A1 (fr) Procédé et appareil d'arrêt de capteur, support d'informations et dispositif électronique
WO2018076864A1 (fr) Procédé, appareil, support de stockage et dispositif électronique de synchronisation de données
WO2017206885A1 (fr) Procédé et appareil d'arrêt de programme d'application, support de stockage et dispositif électronique
WO2018076829A1 (fr) Serveur, support d'informations, système, appareil et procédé de traitement de données de terminal
WO2017206880A1 (fr) Procédé et appareil de traitement de données de terminal, support d'informations et dispositif électronique
WO2017206877A1 (fr) Procédé et appareil de déverrouillage de verrou d'activation, support d'informations, et dispositif électronique
WO2020032636A1 (fr) Dispositif électronique pour fournir un message de notification et procédé associé
WO2018161601A1 (fr) Procédé de réglage de rétroéclairage d'écran, support de stockage et dispositif électronique
WO2018076830A1 (fr) Procédé et dispositif de réglage de cycle de synchronisation de données, dispositif électronique, support d'informations et système

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17805835

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17805835

Country of ref document: EP

Kind code of ref document: A1