WO2017206872A1 - 传感器调用函数的关闭方法、装置、存储介质及电子设备 - Google Patents
传感器调用函数的关闭方法、装置、存储介质及电子设备 Download PDFInfo
- Publication number
- WO2017206872A1 WO2017206872A1 PCT/CN2017/086469 CN2017086469W WO2017206872A1 WO 2017206872 A1 WO2017206872 A1 WO 2017206872A1 CN 2017086469 W CN2017086469 W CN 2017086469W WO 2017206872 A1 WO2017206872 A1 WO 2017206872A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- pressing operation
- sensor
- value
- pressure value
- power consumption
- Prior art date
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3234—Power saving characterised by the action undertaken
- G06F1/3287—Power saving characterised by the action undertaken by switching off individual functional units in the computer system
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44594—Unloading
Definitions
- the present invention relates to the field of computers, and in particular, to a method, an apparatus, a storage medium, and an electronic device for shutting down a sensor call function.
- a user installs various third-party applications in a terminal device such as a mobile phone, but some third-party applications call mobile phone hardware, such as various types of sensors.
- the multiple third-party applications respectively call multiple sensor calling functions, thereby running multiple sensors, reducing the running time of the terminal devices. .
- Embodiments of the present invention provide a method, an apparatus, a storage medium, and an electronic device for shutting down a sensor call function to reduce power consumption of the device.
- Embodiments of the present invention provide a method for shutting down a sensor call function, including the following steps:
- the sensor call function of the sensor whose power consumption value is greater than the corresponding threshold is turned off.
- the invention also provides a sensor calling function closing device, comprising:
- a monitoring module for monitoring a pressing operation of the manipulation interface
- a first acquiring module when the first pressing operation is monitored by the manipulation interface, acquiring a first pressure value of the first pressing operation
- a first closing module when the first pressure value is greater than a predetermined value, turning off a sensor calling function of the sensor whose power consumption value is greater than a corresponding threshold.
- the present invention also provides a storage medium in which a plurality of instructions are stored, the instructions being adapted to be loaded by a processor to perform the method as described above.
- the present invention also provides an electronic device, comprising a processor, a memory, the processor being electrically connected to the memory and a sensor, the memory for storing instructions and data, and the processor for performing the following steps :
- the sensor call function of the sensor whose power consumption value is greater than the corresponding threshold is turned off.
- Embodiments of the present invention provide a method, an apparatus, a storage medium, and an electronic device for shutting down a sensor call function to reduce power consumption of the device.
- FIG. 1 is a flowchart of implementing a method for shutting down a sensor calling function according to an embodiment of the present invention.
- FIG. 2 is a flowchart of an implementation of acquiring a first pressing operation according to an embodiment of the present invention.
- FIG. 3 is a flowchart of another implementation for acquiring a first pressing operation according to an embodiment of the present invention.
- FIG. 4 is a flowchart of implementing a sensor calling function with a power consumption value greater than a corresponding threshold according to an embodiment of the present invention.
- FIG. 5 is a flowchart of another implementation of a method for shutting down a sensor call function according to an embodiment of the present invention.
- FIG. 6 is a schematic structural diagram of a device for shutting down a sensor call function according to an embodiment of the present invention.
- FIG. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
- FIG. 8 is another schematic structural diagram of an electronic device according to an embodiment of the present invention.
- Embodiments of the present invention provide a method for shutting down a sensor call function, including the following steps:
- the sensor call function of the sensor whose power consumption value is greater than the corresponding threshold is turned off.
- the method further includes:
- the step of reading the first pressure value of the first pressing operation when the control interface detects the first pressing operation comprises:
- the first pressure value of the first pressing operation is read when the pressing duration value is greater than or equal to a preset threshold.
- the step of reading the first pressure value of the first pressing operation when the control interface detects the first pressing operation comprises:
- a maximum pressure value in the set is extracted as a first pressure value.
- the method further includes:
- the step of turning off the sensor calling function of the sensor whose power consumption value is greater than the corresponding threshold comprises:
- the sensor calling function of the sensor whose power consumption value is greater than the third threshold is turned off.
- the method before the step of monitoring the pressing operation of the manipulation interface, the method further includes:
- the monitoring operation interface is popped up.
- the pressing operation of the monitoring manipulation interface includes:
- the method is mainly used in a mobile terminal such as a mobile phone, a PAD, or a smart watch.
- the method for turning off the sensor calling function in the preferred embodiment includes the following steps:
- Step S101 monitoring a pressing operation of the manipulation interface
- Step S102 when the first pressing operation is detected by the manipulation interface, reading the first pressure value of the first pressing operation
- Step S103 when the first pressure value is greater than a predetermined value, turning off the sensor calling function of the sensor whose power consumption value is greater than the corresponding threshold.
- the manipulation interface is popped up, for example, when the power consumption speed is too fast, or the CPU usage rate is too high.
- the control interface can be a small window or a display interface that covers the entire display. When the control interface pops up, the pressing condition of the control interface is monitored in real time.
- the display uses pressure touch technology, which is equipped with a velocity sensor at the four corners of the screen to sense the pressing force.
- the step S102 includes the following sub-steps:
- Step S1021 When the first pressing operation is monitored by the manipulation interface, the pressing duration value of the first pressing operation is acquired.
- the pressure value of the pressing operation in order to avoid erroneous operation, it is necessary to filter out unnecessary interference pressing, and therefore, when the user performs a pressing operation on the manipulation interface, and the pressing operation is defined as the first pressing operation.
- obtaining a pressing duration value of the first pressing operation for example, when the control interface acquires a pressing signal, starting to count the pressing operation; when the pressing signal disappears, stopping the timing, and two events The duration is acquired as the duration of the press.
- Step S1022 When the pressing duration value is greater than or equal to the preset threshold, reading the first pressure value of the first pressing operation.
- a preset threshold is set for the pressing duration value, and when the pressing duration value is greater than or equal to the preset threshold, reading the first pressing operation A pressure value, otherwise filtered out.
- the pressing duration is set to be at least 2 seconds or longer, and for those short pressing operations such as less than 2 seconds, filtering is performed as an erroneous operation.
- the maximum pressure value is used as the The first pressure value.
- the step S102 includes the following sub-steps:
- step S1023 when the first pressing operation is monitored by the manipulation interface, a set of all pressure values of the first pressing operation is acquired.
- each pressure value in the set of all pressure values of the first pressing operation is sequentially read and arranged according to time, and a pressure value is read every 0.1 second or 0.2 second.
- Step S1024 extracting the maximum pressure value in the set as the first pressure value.
- the number of the predetermined values of the first pressure value may be plural, and the corresponding threshold value of the power consumption value is also set, and the predetermined value of the first pressure value and the threshold value of the power consumption value are set.
- One-to-one correspondence may be
- the step S103 specifically includes the following sub-steps:
- Step S1031 when the first pressure value is greater than the first predetermined value, turning off a sensor calling function of the sensor whose power consumption value is greater than the first threshold;
- Step S1032 when the first pressure value is greater than the second predetermined value, turning off the sensor calling function of the sensor whose power consumption value is greater than the second threshold;
- Step S1033 when the first pressure value is greater than the third predetermined value, turning off the sensor calling function of the sensor whose power consumption value is greater than the third threshold.
- the power consumption value threshold is X1
- the power consumption value is X2, and so on.
- a pointing bar is formed on the control interface to indicate the magnitude of the pressure value, and the indicator bar can have a filling length. The percentage of the total length is used to identify the magnitude of the pressure value, allowing the user to have a more intuitive understanding of the level of stress they have during the pressing operation.
- the preferred embodiment selects the sensor calling function to be turned off by detecting the magnitude of the first pressure value of the first pressing operation, has large controllability, high control precision, and has the beneficial effects of reducing power consumption and facilitating operation.
- the method for turning off the sensor calling function includes the following steps:
- Step S201 monitoring the power consumption speed of the terminal
- Step S202 when the power consumption speed is greater than a preset value, the monitoring operation interface is popped up;
- Step S203 monitoring a pressing operation on the monitoring manipulation interface
- Step S204 when the first pressing operation is detected on the control interface, a bar for popping up the current pressure value in real time is popped up;
- Step S205 reading a first pressure value of the first pressing operation
- Step S206 when the first pressure value is greater than a predetermined value, turning off a sensor calling function of the sensor whose power consumption value is greater than a corresponding threshold;
- Step S207 When the control interface detects the second pressing operation, the sensor calling function of all sensors currently running is turned off.
- the power consumption speed of the current terminal can be obtained by monitoring the real-time power status of the terminal.
- step S202 when the power consumption speed is greater than a preset value, it indicates that the power consumption speed of the current terminal is too fast. If the power consumption time is saved, the power consumption is reduced by a certain method, and the pop-up monitoring operation interface is For the user to operate, to achieve energy savings.
- the monitoring control interface may be a small window or a display interface that covers the entire display screen.
- the monitoring operation interface may be configured to monitor the pressing operation on the pop-up monitoring control interface, and when the monitoring control interface pops up, monitor the pressing operation on the monitoring control interface in real time.
- the display uses pressure touch technology, which is equipped with a velocity sensor at the four corners of the screen to sense the pressing force.
- the pressure value of the pressing operation is acquired, in order to avoid erroneous operation, it is necessary to filter out unnecessary interference pressing. Therefore, when the pressing operation is detected, the pressure value of the pressing operation to be acquired needs to be a pressing operation for a predetermined period of time or longer. For example, at least 2 seconds or more, for those short-time, for example, less than 2 seconds, the pressing operation is filtered out by mistake.
- the user may also pop up one for the first pressing operation when the control interface detects the first pressing operation.
- the indicator bar may have a percentage of the total length of the filling length to identify the magnitude of the pressure value, or a different color indicator bar may be used to correspond to the magnitude of the first pressure value.
- the first pressure value of the first pressing operation is read. Before this, since the pressing operation lasts for a period of time, for example, 2 seconds, wherein the pressure value is not normally constant, therefore, The maximum pressure value is taken as the first pressure value.
- step S205 includes the following sub-steps:
- step S1023 when the first pressing operation is monitored by the manipulation interface, a set of all pressure values of the first pressing operation is acquired.
- each of the pressure values in the set of all pressure values of the first pressing operation is sequentially read and arranged in accordance with time, and a pressure value is read every 0.1 second or 0.2 second.
- Step S1024 extracting the maximum pressure value in the set as the first pressure value.
- step S206 there may be a plurality of predetermined values of the first pressure value, and a corresponding threshold value of the power consumption value is also set, and the predetermined value of the first pressure value and the threshold value of the power consumption value are one. A correspondence.
- the step S206 can include the following sub-steps:
- Step S1031 when the first pressure value is greater than the first predetermined value, turning off a sensor calling function of the sensor whose power consumption value is greater than the first threshold;
- Step S1032 when the first pressure value is greater than the second predetermined value, turning off the sensor calling function of the sensor whose power consumption value is greater than the second threshold;
- Step S1033 when the first pressure value is greater than the third predetermined value, turning off the sensor calling function of the sensor whose power consumption value is greater than the third threshold.
- the power consumption value threshold is X1
- the power consumption value is X2, and so on.
- step S207 if the user finds that the power consumption speed of turning off some of the sensor calling function phones is not improved, the user may choose to press again. After the pressing, the sensor calling function of all the currently running sensors is turned off, thereby closing the current Run the sensor to reduce power consumption.
- the pressure value of the second pressing operation in order to avoid erroneous operation, the pressure value of the second pressing operation must be greater than a preset value for more than a preset time, for example, the second pressure value is greater than 0.5 N for 1 second.
- the embodiment of the invention further provides a sensor calling function closing device, comprising:
- a monitoring module for monitoring a pressing operation of the manipulation interface
- a first acquiring module when the first pressing operation is monitored by the manipulation interface, acquiring a first pressure value of the first pressing operation
- a first closing module when the first pressure value is greater than a predetermined value, turning off a sensor calling function of the sensor whose power consumption value is greater than a corresponding threshold.
- the method further includes:
- the second closing module is configured to close the sensor calling function of all sensors currently running when the control interface detects the second pressing operation.
- the first obtaining module includes:
- a first acquiring unit configured to acquire a set of all pressure values of the first pressing operation when the first pressing operation is monitored by the manipulation interface
- a first extracting unit configured to extract a maximum pressure value in the set as the first pressure value.
- the method further includes:
- the indicating module is configured to pop up a bar for real-time identifying the current pressure value when the first pressing operation is monitored on the control interface.
- 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 perform the following steps:
- the device for shutting down the sensor call function includes: a monitoring module 301 , a first obtaining module 302 , an indicating module 303 , a first closing module 304 , and a second closing module 305 .
- the monitoring module 301 is configured to monitor a pressing operation of the manipulation interface
- the first obtaining module 302 is configured to acquire a first pressure value of the first pressing operation when the first pressing operation is monitored by the manipulation interface.
- the indicating module 303 is configured to pop up a bar for real-time identifying the current pressure value when the first pressing operation is monitored by the control interface.
- the first closing module 304 is configured to: when the first pressure value is greater than a predetermined value, turn off a sensor calling function of the sensor whose power consumption value is greater than a corresponding threshold.
- the second closing module 305 is configured to close the sensor calling function of all sensors currently running when the control interface detects the second pressing operation.
- the first obtaining module 302 includes:
- a first acquiring unit configured to acquire a set of all pressure values of the first pressing operation when the first pressing operation is monitored by the manipulation interface
- the first extracting unit is configured to extract a maximum pressure value in the set as the first pressure value.
- the control interface can be a small window or a display interface that covers the entire display.
- the display uses pressure touch technology, which is equipped with a velocity sensor at the four corners of the screen to sense the pressing force.
- the pressure value of the pressing operation is acquired, in order to avoid erroneous operation, it is necessary to filter out unnecessary interference pressing. Therefore, when the pressing operation is detected, the pressure value of the pressing operation to be acquired needs to be a pressing operation for a predetermined period of time or longer. For example, at least 2 seconds or more, for those short-time, for example, less than 2 seconds, the pressing operation is filtered out by mistake.
- the closing device of the sensor calling function selects the sensor calling function to be turned off by detecting the magnitude of the first pressure value of the first pressing operation, which has large controllability, high control precision, and reduced power consumption. And the benefits of easy operation.
- an electronic device 400 is also provided, which may be a device such as a smart phone, a tablet computer, a smart watch, or the like. As shown in FIG. 7, the electronic device 400 includes a processor 401, a memory 402, and a sensor 402. The processor 401 is electrically connected to the memory 402 and the sensor 408, and can control the reading and writing of the memory 402 and manage the connection state of the sensor 408.
- the processor 401 is a control center of the electronic device 400, and connects various parts of the entire electronic device 400 using various interfaces and lines, by running or loading an application stored in the memory 402, and calling data stored in the memory 402, executing The various functions and processing data of the electronic device 400 enable overall monitoring of the electronic device 400.
- the processor 401 in the electronic device 400 loads the instructions corresponding to the process of one or more applications into the memory 402 according to the following steps, and is stored and stored in the memory 402 by the processor 401.
- the application thus implementing various functions:
- the sensor call function of the sensor 408 whose power consumption value is greater than the corresponding threshold is turned off.
- the processor 401 is configured to perform the following steps:
- the processor 401 when the first pressure value of the first pressing operation is read when the control interface detects the first pressing operation, the processor 401 is configured to perform the following steps:
- the first pressure value of the first pressing operation is read when the pressing duration value is greater than or equal to a preset threshold.
- the processor 401 when the first pressure value of the first pressing operation is read when the control interface detects the first pressing operation, the processor 401 is configured to perform the following steps:
- a maximum pressure value in the set is extracted as a first pressure value.
- the processor 401 is further configured to perform the following steps:
- the processor 401 when the first pressure value is greater than a predetermined value, when the sensor call function of the sensor 408 whose power consumption value is greater than the corresponding threshold is turned off, the processor 401 is configured to perform the following steps:
- the sensor call function of the sensor 408 whose power consumption value is greater than the third threshold is turned off.
- the processor 401 is configured to perform the following steps:
- the monitoring operation interface is popped up.
- Memory 402 can be used to store applications and data.
- the application stored in the memory 402 contains instructions executable in the processor 401.
- Applications can form various functional modules.
- the processor 401 executes various functional applications and data processing by running an application stored in the memory 402.
- Electronic device 400 may also include at least one type of sensor 408, such as a light sensor, motion sensor, and other sensors.
- the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel according to the brightness of the ambient light, and the proximity sensor 408 may close the display panel and/or when the terminal moves to the ear.
- the gravity acceleration sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity.
- gesture of the mobile phone such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.;
- Other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, and the like that can be configured in the terminal are not described herein.
- the electronic device 400 further includes a display screen 403, a control circuit 404, a radio frequency circuit 405, an input unit 406, an audio circuit 407, a sensor 408, and a power source 409.
- the processor 401 is electrically connected to the radio frequency circuit 405, the input unit 406, the audio circuit 407, and the power source 409, respectively.
- the display screen 403 can be used to display information entered by the user or information provided to the user as well as various graphical user interfaces of the terminal, which can be composed of images, text, icons, video, and any combination thereof.
- the control circuit 404 is electrically connected to the display screen 403 for controlling the display screen 403 to display information.
- the radio frequency circuit 405 is configured to transmit and receive radio frequency signals to establish wireless communication with network devices or other electronic devices through wireless communication, and to transmit and receive signals with network devices or other electronic devices.
- the input unit 406 can be configured to receive input digits, character information, or user characteristic information (eg, fingerprints), and to generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function controls.
- the input unit 406 can include a fingerprint identification module.
- the audio circuit 407 can provide an audio interface between the user and the terminal through a speaker and a microphone.
- Power source 409 is used to power various components of electronic device 400.
- the power supply 409 can be logically coupled to the processor 401 through a power management system to enable functions such as managing charging, discharging, and power management through the power management system.
- the electronic device 400 may further include a camera, a Bluetooth module, and the like, and details are not described herein.
- the sensor calling function corresponding to the power consumption level to be turned off is selected, the controllability is large, the control precision is high, and the control is high. Power consumption and ease of operation, and does not require all sensor call functions to be turned off to maximize the proper operation of the electronics.
- Embodiments of the present invention also provide a storage medium having a plurality of instructions stored therein, the instructions being adapted to be loaded by a processor to perform the method as described above.
- the storage medium may include: a read only memory (ROM, Read) Only Memory), Random Access Memory (RAM), disk or CD.
- the word "preferred” as used herein is intended to serve as an example, instance, or illustration. Any aspect or design described as “preferred” by the text is not necessarily to be construed as being more advantageous than other aspects or designs. Instead, the use of the word “preferred” is intended to present a concept in a specific manner.
- the term “or” as used in this application is intended to mean an “or” or “an” That is, unless otherwise specified or clear from the context, "X employs A or B” means naturally including any one of the permutations. That is, if X uses A; X uses B; or X uses both A and B, then "X uses A or B" is satisfied in any of the foregoing examples.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Human Computer Interaction (AREA)
- Telephone Function (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
Abstract
一种传感器调用函数的关闭方法,包括:监测操控界面的按压操作(S101);在操控界面监测到第一次按压操作时,读取第一次按压操作的第一压力值(S102);当第一压力值大于一预定值时,关闭功耗值大于对应阈值的传感器的传感器调用函数(S103)。还公开了传感器调用函数的关闭装置、存储介质及电子设备。
Description
本发明涉及计算机领域,特别是涉及一种传感器调用函数的关闭方法、装置、存储介质及电子设备。
现有技术中,用户在手机等终端设备中安装各种第三方应用,但是有些第三方应用的会调用手机硬件,如各类传感器等。在有些情况下,由于用户同时在前台以及后台运行了多个第三方应用,而该多个第三方应用又分别调用了多个传感器调用函数,进而运行了多个传感器,降低终端设备的运行时间。
本发明实施例提供一种传感器调用函数的关闭方法、装置、存储介质及电子设备,以降低设备功耗。
本发明实施例提供一种传感器调用函数的关闭方法,包括以下步骤:
监测操控界面的按压操作;
在所述操控界面监测到第一次按压操作时,读取所述第一次按压操作的第一压力值;
当所述第一压力值大于一预定值时,关闭功耗值大于对应阈值的传感器的传感器调用函数。
本发明还提供了一种传感器调用函数关闭装置,包括:
监测模块,用于监测操控界面的按压操作;
第一获取模块,在操控界面监测到第一次按压操作时,获取所述第一次按压操作的第一压力值;
第一关闭模块,当所述第一压力值大于一预定值时,关闭功耗值大于对应阈值的传感器的传感器调用函数。
本发明还提供了一种存储介质,其中,所述存储介质中存储有多条指令,所述指令适于由处理器加载以执行如上所述方法。
本发明还提供了一种电子设备,其中,包括处理器、存储器,所述处理器与所述存储器以及传感器电性连接,所述存储器用于存储指令和数据,所述处理器用于执行以下步骤:
监测操控界面的按压操作;
在所述操控界面监测到第一次按压操作时,读取所述第一次按压操作的第一压力值;
当所述第一压力值大于一预定值时,关闭功耗值大于对应阈值的传感器的传感器调用函数。
本发明实施例提供一种传感器调用函数的关闭方法、装置、存储介质及电子设备,以降低设备功耗。
[根据细则91更正 26.06.2017]
图1为本发明实施例提供的传感器调用函数的关闭方法的实现流程图。
图2为本发明实施例提供的获取第一次按压操作的实现流程图。
图3为本发明实施例提供的获取第一次按压操作的另一实现流程图。
图4为本发明实施例提供的关闭功耗值大于对应阈值的传感器调用函数的实现流程图。
图5为本发明实施例提供的传感器调用函数的关闭方法的另一实现流程图。
图6为本发明实施例提供的传感器调用函数的关闭装置的结构示意图。
图7为本发明实施例提供的电子设备的结构示意图。
图8为本发明实施例提供的电子设备的另一结构示意图。
请参照图式,其中相同的组件符号代表相同的组件,本发明的原理是以实施在一适当的运算环境中来举例说明。以下的说明是基于所例示的本发明具体实施例,其不应被视为限制本发明未在此详述的其它具体实施例。
在以下的说明中,本发明的具体实施例将参考由一部或多部计算机所执行之作业的步骤及符号来说明,除非另有述明。因此,其将可了解到这些步骤及操作,其中有数次提到为由计算机执行,包括了由代表了以一结构化型式中的数据之电子信号的计算机处理单元所操纵。此操纵转换该数据或将其维持在该计算机之内存***中的位置处,其可重新配置或另外以本领域技术人员所熟知的方式来改变该计算机之运作。该数据所维持的数据结构为该内存之实***置,其具有由该数据格式所定义的特定特性。但是,本发明原理以上述文字来说明,其并不代表为一种限制,本领域技术人员将可了解到以下所述的多种步骤及操作亦可实施在硬件当中。
本发明实施例提供一种传感器调用函数的关闭方法,包括以下步骤:
监测操控界面的按压操作;
在所述操控界面监测到第一次按压操作时,读取所述第一次按压操作的第一压力值;
当所述第一压力值大于一预定值时,关闭功耗值大于对应阈值的传感器的传感器调用函数。
一实施例中,在所述关闭功耗值大于对应阈值的传感器的传感器调用函数的步骤之后,还包括:
在所述操控界面监测到第二次按压操作时,关闭当前运行的所有所述传感器的传感器调用函数。
一实施例中,所述在操控界面监测到第一次按压操作时,读取所述第一次按压操作的第一压力值的步骤包括:
在操控界面监测到第一次按压操作时,获取所述第一次按压操作的按压持续时间值;
当所述按压持续时间值大于或等于预设阈值时,读取所述第一次按压操作的第一压力值。
一实施例中,所述在操控界面监测到第一次按压操作时,读取所述第一次按压操作的第一压力值的步骤包括:
在操控界面监测到第一次按压操作时,获取所述第一次按压操作的所有压力值的集合;
提取所述集合中的最大压力值作为第一压力值。
一实施例中,在所述监测操控界面的按压操作的步骤之后,还包括:
在操控界面监测到第一次按压操作时,弹出一用于实时标识当前压力值大小的指示条。
一实施例中,所述当所述第一压力值大于一预定值时,关闭功耗值大于对应阈值的传感器的传感器调用函数的步骤包括:
当所述第一压力值大于第一预定值时,关闭功耗值大于第一阈值的传感器的传感器调用函数;
当所述第一压力值大于第二预定值时,关闭功耗值大于第二阈值的传感器的传感器调用函数;
当所述第一压力值大于第三预定值时,关闭功耗值大于第三阈值的传感器的传感器调用函数。
一实施例中,在所述监测操控界面的按压操作的步骤之前,还包括:
监测终端的耗电速度;
当所述耗电速度大于一预设值时,弹出监测操控界面。
一实施例中,所述监测操控界面的按压操作,包括:
对所述监测操控界面上的按压操作进行监测。
请参照图1,在一些实施例中,该方法主要用于手机、PAD、智能手表等移动终端中,本优选实施例的传感器调用函数的关闭方法包括以下步骤:
步骤S101,监测操控界面的按压操作;
步骤S102,在操控界面监测到第一次按压操作时,读取该第一次按压操作的第一压力值;
步骤S103,当该第一压力值大于一预定值时,关闭功耗值大于对应阈值的传感器的传感器调用函数。
下面详细说明本优选实施例的传感器调用函数的关闭方法的各步骤的具体流程。
在该步骤S101中,当前终端满足预定的触发条件时,会弹出该操控界面,例如,当耗电速度过快,或者CPU使用率过高。该操控界面可以是一个小窗口,也可以是布满整个显示屏的显示界面。当该操控界面弹出后,实时监测该操控界面的按压情况。显示屏采用压力触控技术,其在屏幕四角配置了力度传感器,可以对按压力度进行感知。
参见图2,在一些实施例中,该步骤S102包括以下子步骤:
步骤S1021,在操控界面监测到第一次按压操作时,获取第一次按压操作的按压持续时间值。获取该按压操作的压力值时,为了避免误操作,需要滤除不必要干扰按压,因此,当检测到用户对该操控界面进行的按压操作时,并且,该按压操作定义为第一次按压操作,则获取第一次按压操作的按压持续时间值,例如,当操控界面获取到一个按压信号时,开始对该按压操作进行计时;当该按压信号消失时,停止该计时,并将两个事件持续的时间作为按压持续时间进行获取。
步骤S1022,当按压持续时间值大于或等于预设阈值时,读取第一次按压操作的第一压力值。在滤除不必要干扰的过程中,会对按压持续时间值设定一个预设阈值,并当所述按压持续时间值大于或等于预设阈值时,读取所述第一次按压操作的第一压力值,否则滤除。例如,按压持续时间设为至少为2秒以上,对于那些短暂的例如小于2秒的按压操作,当成误操作进行滤除。
参见图3,在操控界面监测到第一次按压操作时,由于该按压操作持续了一段时间,例如2秒,其中压力值通常情况下均不是恒定的,因此,以其中的最大压力值作为该第一压力值。
在一些实施例中,该步骤S102包括以下子步骤:
步骤S1023,在操控界面监测到第一次按压操作时,获取该第一次按压操作的所有压力值的集合。
在该步骤
S1023中,该第一次按压操作的所有压力值的集合中的各个压力值是依照时间依次读取并排列,每间隔0.1秒或者0.2秒读取一个压力值。
步骤S1024,提取该集合中的最大压力值作为第一压力值。
在该步骤S103中,该第一压力值的预定值的个数可以有多个,对应的该功耗值的阈值也设置有多个,该第一压力值的预定值与功耗值的阈值一一对应。
参见图4,在一些实施例中,该步骤S103具体包括以下子步骤:
步骤S1031,当该第一压力值大于第一预定值时,关闭功耗值大于第一阈值的传感器的传感器调用函数;
步骤S1032,当该第一压力值大于第二预定值时,关闭功耗值大于第二阈值的传感器的传感器调用函数;
步骤S1033,当该第一压力值大于第三预定值时,关闭功耗值大于第三阈值的传感器的传感器调用函数。
例如,当第一压力值为0.2牛时,功耗值的阈值为X1,当第一压力值为0.4牛时,功耗值为X2,等等。另外,为了便于用户了解自己的按压的压力值大小,在监测到第一次按压操作时,在该操控界面还形成一个指示条,用以指示压力值的大小,该指示条可以具采用填充长度的占其总长度的百分比来标识压力值的大小,使得用户对自己在按压操作过程中产生的压力程度有个更加直观的了解。
本优选实施例通过检测第一次按压操作的第一压力值的大小,来选择出要关闭的传感器调用函数,可操控性大,控制精度高,具有降低功耗以及便于操作的有益效果。请参照图5,在一些实施例中,传感器调用函数的关闭方法包括以下步骤:
步骤S201,监测终端的耗电速度;
步骤S202,当耗电速度大于一预设值时,弹出监测操控界面;
步骤S203,对监测操控界面上的按压操作进行监测;
步骤S204,在操控界面监测到第一次按压操作时,弹出一用于实时标识当前压力值大小的指示条;
步骤S205,读取该第一次按压操作的第一压力值;
步骤S206,当该第一压力值大于一预定值时,关闭功耗值大于对应阈值的传感器的传感器调用函数;
步骤S207,在操控界面监测到第二次按压操作时,关闭当前运行的所有传感器的传感器调用函数。
下面详细说明本优选实施例各步骤的具体流程。
在该步骤S201中,可以通过监测该终端的实时电量情况,从而获取到当前终端的耗电速度。
在该步骤S202中,当耗电速度大于一预设值时,说明当前终端的耗电速度过快,如果为了保持续航时间,则要通过一定的方法来降低功耗,其通过弹出监测操控界面来供用户操作,以实现节能。
在该步骤S203中,该监测操控界面可以是一个小窗口,也可以是布满整个显示屏的显示界面。监测操控界面,可以是对该所弹出的监测操控界面上的按压操作进行监测,当该监测操控界面弹出后,实时监测该监测操控界面上的的按压操作。显示屏采用压力触控技术,其在屏幕四角配置了力度传感器,可以对按压力度进行感知。获取该按压操作的压力值时,为了避免误操作,需要滤除不必要干扰按压,因此,当检测到按压操作时,要获取的按压操作的压力值需要是持续预定时间段以上的按压操作,例如至少为2秒以上,对于那些短暂的例如小于2秒的按压操作,当成误操作进行滤除。
在该步骤S204中,在该监测操控界面监测到第一次按压操作时,为了便于用户了解自己的按压的压力值大小,还可以在操控界面监测到第一次按压操作时,弹出一用于实时标识当前压力值大小的指示条。该指示条可以具采用填充长度的占其总长度的百分比来标识压力值的大小,也可以采用不同颜色的指示条来对应第一压力值的大小。
在该步骤S205中,读取该第一次按压操作的第一压力值,在这之前,由于该按压操作持续了一段时间,例如2秒,其中压力值通常情况下均不是恒定的,因此,以其中的最大压力值作为该第一压力值。
结合图3,在一些实施例中,该步骤S205包括以下子步骤:
步骤S1023,在操控界面监测到第一次按压操作时,获取该第一次按压操作的所有压力值的集合。
在该步骤中,该第一次按压操作的所有压力值的集合中的各个压力值是依照时间依次读取并排列,每间隔0.1秒或者0.2秒读取一个压力值。
步骤S1024,提取该集合中的最大压力值作为第一压力值。
在步骤S206中,该第一压力值的预定值的个数可以有多个,对应的该功耗值的阈值也设置有多个,该第一压力值的预定值与功耗值的阈值一一对应。
结合图4,在一些实施例中,该步骤S206可以包括以下子步骤:
步骤S1031,当该第一压力值大于第一预定值时,关闭功耗值大于第一阈值的传感器的传感器调用函数;
步骤S1032,当该第一压力值大于第二预定值时,关闭功耗值大于第二阈值的传感器的传感器调用函数;
步骤S1033,当该第一压力值大于第三预定值时,关闭功耗值大于第三阈值的传感器的传感器调用函数。
例如,当第一压力值为0.2牛时,功耗值的阈值为X1,当第一压力值为0.4牛时,功耗值为X2,等等。
在该步骤S207中,如果用户发现关掉其中一部分传感器调用函数手机的耗电速度并未得到改善,可以选择再次按压,该次按压之后,关闭当前运行的所有传感器的传感器调用函数,从而关闭当前运行的传感器,实现降低功耗。在该第二按压操作时,为了避免误操作,该第二按压操作的压力值必须大于一预设值并持续预设时间以上,例如,该第二压力值大于0.5牛,并持续1秒。
本发明实施例还提供了一种传感器调用函数关闭装置,包括:
监测模块,用于监测操控界面的按压操作;
第一获取模块,在操控界面监测到第一次按压操作时,获取所述第一次按压操作的第一压力值;
第一关闭模块,当所述第一压力值大于一预定值时,关闭功耗值大于对应阈值的传感器的传感器调用函数。
一实施例中,还包括:
第二关闭模块,用于在操控界面监测到第二次按压操作时,关闭当前运行的所有传感器的传感器调用函数。
一实施例中,所述第一获取模块包括:
第一获取单元,用于在操控界面监测到第一次按压操作时,获取所述第一次按压操作的所有压力值的集合;
第一提取单元,用于提取所述集合中的最大压力值作为第一压力值。
一实施例中,还包括:
指示模块,用于在操控界面监测到第一次按压操作时,弹出一用于实时标识当前压力值大小的指示条。
本发明实施例还提供了一种存储介质,所述存储介质中存储有多条指令,所述指令适于由处理器加载以执行以下步骤:
监测操控界面的按压操作;
在所述操控界面监测到第一次按压操作时,读取所述第一次按压操作的第一压力值;
当所述第一压力值大于一预定值时,关闭功耗值大于对应阈值的传感器的传感器调用函数。请参照图6,在一些实施例中,传感器调用函数的关闭装置包括:监测模块301、第一获取模块302、指示模块303、第一关闭模块304、第二关闭模块305。
其中,该监测模块301用于监测操控界面的按压操作;
第一获取模块302用于在操控界面监测到第一次按压操作时,获取该第一次按压操作的第一压力值。
指示模块303用于在操控界面监测到第一次按压操作时,弹出一用于实时标识当前压力值大小的指示条。
第一关闭模块304用于当该第一压力值大于一预定值时,关闭功耗值大于对应阈值的传感器的传感器调用函数。
第二关闭模块305用于在操控界面监测到第二次按压操作时,关闭当前运行的所有传感器的传感器调用函数。
具体地,第一获取模块302包括:
第一获取单元,该第一获取单元用于在操控界面监测到第一次按压操作时,获取该第一次按压操作的所有压力值的集合;
第一提取单元,用于提取该集合中的最大压力值作为第一压力值。
该操控界面可以是一个小窗口,也可以是布满整个显示屏的显示界面。当该操控界面弹出后,实时监测该操控界面的按压情况。显示屏采用压力触控技术,其在屏幕四角配置了力度传感器,可以对按压力度进行感知。获取该按压操作的压力值时,为了避免误操作,需要滤除不必要干扰按压,因此,当检测到按压操作时,要获取的按压操作的压力值需要是持续预定时间段以上的按压操作,例如至少为2秒以上,对于那些短暂的例如小于2秒的按压操作,当成误操作进行滤除。
在上述实施例中,传感器调用函数的关闭装置通过检测第一次按压操作的第一压力值的大小,来选择出要关闭的传感器调用函数,可操控性大,控制精度高,具有降低功耗以及便于操作的有益效果。
在一优选实施例中,还提供一种电子设备400,该电子设备400可以是智能手机、平板电脑、智能手表等设备。图7所示,电子设备400包括处理器401、存储器402、传感器402。其中,所述处理器401与所述存储器402以及传感器408电性连接,并可控制存储器402的读写以及管理传感器408的连接状态。
处理器401是电子设备400的控制中心,利用各种接口和线路连接整个电子设备400的各个部分,通过运行或加载存储在存储器402内的应用程序,以及调用存储在存储器402内的数据,执行电子设备400的各种功能和处理数据,从而对电子设备400进行整体监控。
在本实施例中,电子设备400中的处理器401会按照如下的步骤,将一个或一个以上的应用程序的进程对应的指令加载到存储器402中,并由处理器401来运行存储在存储器402中的应用程序,从而实现各种功能:
监测操控界面的按压操作;
在所述操控界面监测到第一次按压操作时,读取所述第一次按压操作的第一压力值;
当所述第一压力值大于一预定值时,关闭功耗值大于对应阈值的传感器408的传感器调用函数。
在一些实施例中,所述处理器401用于执行以下步骤:
在所述操控界面监测到第二次按压操作时,关闭当前运行的所有所述传感器408的传感器调用函数。
在一些实施例中,在操控界面监测到第一次按压操作时,读取所述第一次按压操作的第一压力值时,所述处理器401用于执行以下步骤:
在操控界面监测到第一次按压操作时,获取所述第一次按压操作的按压持续时间值;
当所述按压持续时间值大于或等于预设阈值时,读取所述第一次按压操作的第一压力值。
在一些实施例中,在操控界面监测到第一次按压操作时,读取所述第一次按压操作的第一压力值时,所述处理器401用于执行以下步骤:
在操控界面监测到第一次按压操作时,获取所述第一次按压操作的所有压力值的集合;
提取所述集合中的最大压力值作为第一压力值。
在一些实施例中,所述处理器401还用于执行以下步骤:
在操控界面监测到第一次按压操作时,弹出一用于实时标识当前压力值大小的指示条。
在一些实施例中,当所述第一压力值大于一预定值时,关闭功耗值大于对应阈值的传感器408的传感器调用函数时,所述处理器401用于执行以下步骤:
当所述第一压力值大于第一预定值时,关闭功耗值大于第一阈值的传感器408的传感器调用函数;
当所述第一压力值大于第二预定值时,关闭功耗值大于第二阈值的传感器408的传感器调用函数;
当所述第一压力值大于第三预定值时,关闭功耗值大于第三阈值的传感器408的传感器调用函数。
在一些实施例中,其中,所述处理器401用于执行以下步骤:
监测电子设备的耗电速度;
当所述耗电速度大于一预设值时,弹出监测操控界面。
存储器402可用于存储应用程序和数据。存储器402存储的应用程序中包含有可在处理器401中执行的指令。应用程序可以组成各种功能模块。处理器401通过运行存储在存储器402的应用程序,从而执行各种功能应用以及数据处理。
电子设备400还可以包括至少一种传感器408,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板的亮度,接近传感器408可在终端移动到耳边时,关闭显示面板和/或背光。作为运动传感器的一种,重力加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;
至于终端还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。
在一些实施例中,如图8所示,电子设备400还包括:显示屏403、控制电路404、射频电路405、输入单元406、音频电路407、传感器408以及电源409。其中,处理器401分别与射频电路405、输入单元406、音频电路407以及电源409电性连接。
显示屏403可用于显示由用户输入的信息或提供给用户的信息以及终端的各种图形用户接口,这些图形用户接口可以由图像、文本、图标、视频和其任意组合来构成。
控制电路404与显示屏403电性连接,用于控制显示屏403显示信息。
射频电路405用于收发射频信号,以通过无线通信与网络设备或其他电子设备建立无线通讯,与网络设备或其他电子设备之间收发信号。
输入单元406可用于接收输入的数字、字符信息或用户特征信息(例如指纹),以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。其中,输入单元406可以包括指纹识别模组。
音频电路407可通过扬声器、传声器提供用户与终端之间的音频接口。
电源409用于给电子设备400的各个部件供电。在一些实施例中,电源409可以通过电源管理***与处理器401逻辑相连,从而通过电源管理***实现管理充电、放电、以及功耗管理等功能。
尽管图8中未示出,电子设备400还可以包括摄像头、蓝牙模块等,在此不再赘述。
本发明所述的电子设备中,通过检测第一次按压操作的第一压力值的大小,来选择出要关闭的对应功耗级别的传感器调用函数,可操控性大,控制精度高,具有降低功耗以及便于操作的有益效果,并且无需关闭所有传感器调用函数,从而最大限度地保持电子设备的正常工作。
本发明实施例还提供了一种存储介质,所述存储介质中存储有多条指令,所述指令适于由处理器加载以执行如上所述的方法。
需要说明的是,本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于计算机可读的存储介质中,如存储在终端的存储器中,并被该终端内的至少一个处理器执行,在执行过程中可包括如信息发布方法的实施例的流程。其中,存储介质可以包括:只读存储器(ROM,Read
Only Memory)、随机存取记忆体(RAM,Random Access Memory)、磁盘或光盘等。
本文提供了实施例的各种操作。描述一些或所有操作的顺序不应当被解释为暗示这些操作必需是顺序相关的。本领域技术人员将理解具有本说明书的益处的可替代的排序。而且,应当理解,不是所有操作必需在本文所提供的每个实施例中存在。
而且,本文所使用的词语“优选的”意指用作实例、示例或例证。奉文描述为“优选的”任意方面或设计不必被解释为比其他方面或设计更有利。相反,词语“优选的”的使用旨在以具体方式提出概念。如本申请中所使用的术语“或”旨在意指包含的“或”而非排除的“或”。即,除非另外指定或从上下文中清楚,“X使用A或B”意指自然包括排列的任意一个。即,如果X使用A;X使用B;或X使用A和B二者,则“X使用A或B”在前述任一示例中得到满足。
而且,尽管已经相对于一个或多个实现方式示出并描述了本公开,但是本领域技术人员基于对本说明书和附图的阅读和理解将会想到等价变型和修改。本公开包括所有这样的修改和变型,并且仅由所附权利要求的范围限制。特别地关于由上述组件(例如元件、资源等)执行的各种功能,用于描述这样的组件的术语旨在对应于执行所述组件的指定功能(例如其在功能上是等价的)的任意组件(除非另外指示),即使在结构上与执行本文所示的本公开的示范性实现方式中的功能的公开结构不等同。此外,尽管本公开的特定特征已经相对于若干实现方式中的仅一个被公开,但是这种特征可以与如可以对给定或特定应用而言是期望和有利的其他实现方式的一个或多个其他特征组合。而且,就术语“包括”、“具有”、“含有”或其变形被用在具体实施方式或权利要求中而言,这样的术语旨在以与术语“包含”相似的方式包括。
综上所述,虽然本发明已以优选实施例揭露如上,但上述优选实施例并非用以限制本发明,本领域的普通技术人员,在不脱离本发明的精神和范围内,均可作各种更动与润饰,因此本发明的保护范围以权利要求界定的范围为准。
Claims (20)
- 一种传感器调用函数的关闭方法,其中,包括以下步骤:监测操控界面的按压操作;在所述操控界面监测到第一次按压操作时,读取所述第一次按压操作的第一压力值;当所述第一压力值大于一预定值时,关闭功耗值大于对应阈值的传感器的传感器调用函数。
- 根据权利要求1所述的传感器调用函数的关闭方法,其中,在所述关闭功耗值大于对应阈值的传感器的传感器调用函数的步骤之后,还包括:在所述操控界面监测到第二次按压操作时,关闭当前运行的所有所述传感器的传感器调用函数。
- 根据权利要求1所述的传感器调用函数的关闭方法,其中,所述在操控界面监测到第一次按压操作时,读取所述第一次按压操作的第一压力值的步骤包括:在操控界面监测到第一次按压操作时,获取所述第一次按压操作的按压持续时间值;当所述按压持续时间值大于或等于预设阈值时,读取所述第一次按压操作的第一压力值。
- 根据权利要求1所述的传感器调用函数的关闭方法,其中,所述在操控界面监测到第一次按压操作时,读取所述第一次按压操作的第一压力值的步骤包括:在操控界面监测到第一次按压操作时,获取所述第一次按压操作的所有压力值的集合;提取所述集合中的最大压力值作为第一压力值。
- 根据权利要求1所述的传感器调用函数的关闭方法,其中,在所述监测操控界面的按压操作的步骤之后,还包括:在操控界面监测到第一次按压操作时,弹出一用于实时标识当前压力值大小的指示条。
- 根据权利要求1所述的传感器调用函数的关闭方法,其中,所述当所述第一压力值大于一预定值时,关闭功耗值大于对应阈值的传感器的传感器调用函数的步骤包括:当所述第一压力值大于第一预定值时,关闭功耗值大于第一阈值的传感器的传感器调用函数;当所述第一压力值大于第二预定值时,关闭功耗值大于第二阈值的传感器的传感器调用函数;当所述第一压力值大于第三预定值时,关闭功耗值大于第三阈值的传感器的传感器调用函数。
- 根据权利要求1所述的传感器调用函数的关闭方法,其中,在所述监测操控界面的按压操作的步骤之前,还包括:监测终端的耗电速度;当所述耗电速度大于一预设值时,弹出监测操控界面。
- 根据权利要求7所述的传感器调用函数的关闭方法,其中,所述监测操控界面的按压操作,包括:对所述监测操控界面上的按压操作进行监测。
- 一种传感器调用函数关闭装置,其中,包括:监测模块,用于监测操控界面的按压操作;第一获取模块,在操控界面监测到第一次按压操作时,获取所述第一次按压操作的第一压力值;第一关闭模块,当所述第一压力值大于一预定值时,关闭功耗值大于对应阈值的传感器的传感器调用函数。
- 根据权利要求9所述传感器调用函数关闭装置,其中,还包括:第二关闭模块,用于在操控界面监测到第二次按压操作时,关闭当前运行的所有传感器的传感器调用函数。
- 根据权利要求9所述传感器调用函数关闭装置,其中,所述第一获取模块包括:第一获取单元,用于在操控界面监测到第一次按压操作时,获取所述第一次按压操作的所有压力值的集合;第一提取单元,用于提取所述集合中的最大压力值作为第一压力值。
- 根据权利要求9所述传感器调用函数关闭装置,其中,还包括:指示模块,用于在操控界面监测到第一次按压操作时,弹出一用于实时标识当前压力值大小的指示条。
- 一种存储介质,其中,所述存储介质中存储有多条指令,所述指令适于由处理器加载以执行如权利要求1-7任一所述的传感器调用函数的关闭方法。
- 一种电子设备,其中,包括处理器、存储器,所述处理器与所述存储器电性连接,所述存储器用于存储指令和数据,所述处理器用于执行以下步骤:监测操控界面的按压操作;在所述操控界面监测到第一次按压操作时,读取所述第一次按压操作的第一压力值;当所述第一压力值大于一预定值时,关闭功耗值大于对应阈值的传感器的传感器调用函数。
- 如权利要求14所述的电子设备,其中,所述处理器还用于执行以下步骤:在所述操控界面监测到第二次按压操作时,关闭当前运行的所有所述传感器的传感器调用函数。
- 如权利要求14所述的电子设备,其中,在操控界面监测到第一次按压操作时,读取所述第一次按压操作的第一压力值时,所述处理器用于执行以下步骤:在操控界面监测到第一次按压操作时,获取所述第一次按压操作的按压持续时间值;当所述按压持续时间值大于或等于预设阈值时,读取所述第一次按压操作的第一压力值。
- 如权利要求14所述的电子设备,其中,在操控界面监测到第一次按压操作时,读取所述第一次按压操作的第一压力值时,所述处理器用于执行以下步骤:在操控界面监测到第一次按压操作时,获取所述第一次按压操作的所有压力值的集合;提取所述集合中的最大压力值作为第一压力值。
- 如权利要求14所述的电子设备,其中,所述处理器还用于执行以下步骤:在操控界面监测到第一次按压操作时,弹出一用于实时标识当前压力值大小的指示条。
- 如权利要求14所述的电子设备,其中,当所述第一压力值大于一预定值时,关闭功耗值大于对应阈值的传感器的传感器调用函数时,所述处理器还用于执行以下步骤:当所述第一压力值大于第一预定值时,关闭功耗值大于第一阈值的传感器的传感器调用函数;当所述第一压力值大于第二预定值时,关闭功耗值大于第二阈值的传感器的传感器调用函数;当所述第一压力值大于第三预定值时,关闭功耗值大于第三阈值的传感器的传感器调用函数。
- 如权利要求14所述的电子设备,其中,所述处理器还用于执行以下步骤:监测电子设备的耗电速度;当所述耗电速度大于一预设值时,弹出监测操控界面。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610383779.9 | 2016-05-31 | ||
CN201610383779.9A CN106095290B (zh) | 2016-05-31 | 2016-05-31 | 传感器调用函数的关闭方法及装置 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2017206872A1 true WO2017206872A1 (zh) | 2017-12-07 |
Family
ID=57447424
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2017/086469 WO2017206872A1 (zh) | 2016-05-31 | 2017-05-29 | 传感器调用函数的关闭方法、装置、存储介质及电子设备 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106095290B (zh) |
WO (1) | WO2017206872A1 (zh) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106095290B (zh) * | 2016-05-31 | 2018-09-21 | 广东欧珀移动通信有限公司 | 传感器调用函数的关闭方法及装置 |
CN106020908B (zh) * | 2016-05-31 | 2019-04-12 | Oppo广东移动通信有限公司 | 一种函数关闭方法及装置 |
CN112783563A (zh) * | 2021-01-28 | 2021-05-11 | 惠州Tcl移动通信有限公司 | 一种移动终端传感器工作方法、***、终端及存储介质 |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102156530A (zh) * | 2010-09-30 | 2011-08-17 | 华为终端有限公司 | 移动终端的功耗管理方法和装置 |
CN103870190A (zh) * | 2012-12-17 | 2014-06-18 | 联想(北京)有限公司 | 一种控制电子设备的方法及电子设备 |
US20140292776A1 (en) * | 2013-03-26 | 2014-10-02 | Kabushiki Kaisha Toshiba | Electronic apparatus and control method |
CN105187644A (zh) * | 2015-08-27 | 2015-12-23 | 广东欧珀移动通信有限公司 | 一种播放操作的方法及终端 |
CN105335068A (zh) * | 2015-11-18 | 2016-02-17 | 广东欧珀移动通信有限公司 | 一种应用删除方法及终端设备 |
CN106095290A (zh) * | 2016-05-31 | 2016-11-09 | 广东欧珀移动通信有限公司 | 传感器调用函数的关闭方法及装置 |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101768540B1 (ko) * | 2009-10-30 | 2017-08-18 | 삼성전자주식회사 | 모바일 기기 및 이에 적용되는 ui 제공방법 |
CN104714741A (zh) * | 2013-12-11 | 2015-06-17 | 北京三星通信技术研究有限公司 | 触控操作的方法及装置 |
US9547363B2 (en) * | 2014-07-16 | 2017-01-17 | Mediatek Inc. | Power-saving method and associated electronic device |
CN105100476B (zh) * | 2015-07-28 | 2019-10-15 | 努比亚技术有限公司 | 一种移动终端解锁装置和方法 |
CN105204730B (zh) * | 2015-08-27 | 2018-06-29 | 广东欧珀移动通信有限公司 | 一种屏幕控制方法及用户终端 |
-
2016
- 2016-05-31 CN CN201610383779.9A patent/CN106095290B/zh not_active Expired - Fee Related
-
2017
- 2017-05-29 WO PCT/CN2017/086469 patent/WO2017206872A1/zh active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102156530A (zh) * | 2010-09-30 | 2011-08-17 | 华为终端有限公司 | 移动终端的功耗管理方法和装置 |
CN103870190A (zh) * | 2012-12-17 | 2014-06-18 | 联想(北京)有限公司 | 一种控制电子设备的方法及电子设备 |
US20140292776A1 (en) * | 2013-03-26 | 2014-10-02 | Kabushiki Kaisha Toshiba | Electronic apparatus and control method |
CN105187644A (zh) * | 2015-08-27 | 2015-12-23 | 广东欧珀移动通信有限公司 | 一种播放操作的方法及终端 |
CN105335068A (zh) * | 2015-11-18 | 2016-02-17 | 广东欧珀移动通信有限公司 | 一种应用删除方法及终端设备 |
CN106095290A (zh) * | 2016-05-31 | 2016-11-09 | 广东欧珀移动通信有限公司 | 传感器调用函数的关闭方法及装置 |
Also Published As
Publication number | Publication date |
---|---|
CN106095290A (zh) | 2016-11-09 |
CN106095290B (zh) | 2018-09-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2018129977A1 (zh) | 一种充电控制方法、装置、存储介质和计算机设备 | |
WO2018161585A1 (zh) | 电子设备帧率的控制方法、装置、存储介质及电子设备 | |
WO2019160371A1 (en) | A method and an electronic device for controlling an external electronic device on the basis of an electromanetic signal | |
WO2017206878A1 (zh) | 一种基于唤醒锁的处理方法、装置、存储介质及电子设备 | |
WO2018076819A1 (zh) | 数据的上传方法、装置、存储介质、电子设备及*** | |
WO2017206870A1 (zh) | 一种传感器关闭方法、装置、存储介质及电子设备 | |
EP3281089A1 (en) | Smart device and method of operating the same | |
WO2017206886A1 (zh) | 一种唤醒锁释放方法、装置、存储介质及电子设备 | |
WO2015182966A1 (en) | Method for controlling display and electronic device | |
WO2017206879A1 (zh) | 一种移动终端应用程序的处理方法、装置、存储介质及电子设备 | |
WO2021162286A1 (en) | Electronic device and method for recognizing audio output device connected to usb type-c connector | |
WO2016188285A1 (zh) | 一种终端应用的进程管理方法及装置 | |
WO2017206885A1 (zh) | 应用程序的关闭方法、装置、存储介质及电子设备 | |
WO2017206865A1 (zh) | 一种应用程序的关闭方法、装置、存储介质及电子设备 | |
WO2018161580A1 (zh) | 广播的控制方法、装置、存储介质及电子设备 | |
WO2017206872A1 (zh) | 传感器调用函数的关闭方法、装置、存储介质及电子设备 | |
WO2017206867A1 (zh) | 一种传感器的关闭方法、装置、存储介质及电子设备 | |
WO2019039729A1 (en) | METHOD FOR CHANGING THE CONTENT SIZE DISPLAYED ON A DISPLAY DEVICE, AND RELATED ELECTRONIC DEVICE | |
WO2017206892A1 (zh) | 一种移动终端的传感器处理方法、装置、存储介质及电子设备 | |
WO2017206873A1 (zh) | 一种应用程序的关闭方法、装置、存储介质及电子设备 | |
WO2020032636A1 (en) | Electronic device for providing notification message and method thereof | |
WO2017206874A1 (zh) | 一种应用程序的关闭方法、装置、存储介质及电子设备 | |
WO2017206881A1 (zh) | 一种关联应用的处理方法、装置、存储介质及电子设备 | |
WO2019199086A1 (ko) | 전자 장치 및 전자 장치의 제어 방법 | |
WO2017206871A1 (zh) | 一种应用程序的关闭方法、装置、存储介质及电子设备 |
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: 17805817 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: 17805817 Country of ref document: EP Kind code of ref document: A1 |