WO2017206867A1 - 一种传感器的关闭方法、装置、存储介质及电子设备 - Google Patents

一种传感器的关闭方法、装置、存储介质及电子设备 Download PDF

Info

Publication number
WO2017206867A1
WO2017206867A1 PCT/CN2017/086464 CN2017086464W WO2017206867A1 WO 2017206867 A1 WO2017206867 A1 WO 2017206867A1 CN 2017086464 W CN2017086464 W CN 2017086464W WO 2017206867 A1 WO2017206867 A1 WO 2017206867A1
Authority
WO
WIPO (PCT)
Prior art keywords
sensor
function
level
function level
module
Prior art date
Application number
PCT/CN2017/086464
Other languages
English (en)
French (fr)
Inventor
黄宏用
Original Assignee
广东欧珀移动通信有限公司
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 广东欧珀移动通信有限公司 filed Critical 广东欧珀移动通信有限公司
Publication of WO2017206867A1 publication Critical patent/WO2017206867A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/3287Power saving characterised by the action undertaken by switching off individual functional units in the computer system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/329Power saving characterised by the action undertaken by task scheduling

Definitions

  • the present invention relates to the field of electronic device technologies, and in particular, to a method, an apparatus, a storage medium, and an electronic device for shutting down a sensor.
  • intelligent terminals install a variety of applications, and a variety of sensor devices in intelligent terminals provide a hardware basis for application diversification functions, such as A light sensor for adjusting the brightness of the screen, a gravity sensor for obtaining acceleration, a capacitance sensor for fingerprint recognition, and the like.
  • an embodiment of the present invention provides a method for shutting down a sensor, including:
  • the sensor call function is turned off according to the target function level.
  • the setting module is configured to set a function level to a sensor calling function in the terminal system
  • the time acquisition module is configured to acquire a current time of the terminal system
  • the level obtaining module is configured to obtain a corresponding target function level according to the current time
  • the shutdown module is configured to close the sensor calling function according to the target function level.
  • an embodiment of the present invention 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 perform the following steps:
  • the sensor call function is turned off according to the target function level.
  • an embodiment of the present invention 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 sensor call function is turned off according to the target function level.
  • Embodiments of the present invention provide a method and apparatus for shutting down a sensor, which can improve the efficiency of use of the sensor.
  • FIG. 1 is a schematic flowchart of a method for shutting down a sensor according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of a method for shutting down a sensor in an actual application according to an embodiment of the present invention
  • FIG. 3 is a schematic structural diagram of a sensor closing device according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of another sensor closing device according to an embodiment of the present invention.
  • the smart terminal will turn off the sensor, that is, turn off the sensor calling function, for example, the smart terminal can automatically turn off the sensor, or turn off the sensor according to the user's operation.
  • the current sensor shutdown scheme can reduce the power consumption of the terminal, since the scheme is to close all the sensor calling functions in the system, it is inconvenient to manage and control the sensor in a targeted manner, and the use of different sensors according to the function of the sensor. The frequency is also different. For some sensors with higher frequency, the sensor needs to be restarted after being turned off, which wastes more time and is inefficient.
  • Embodiments of the present invention provide a method for shutting down a sensor, including the following steps:
  • the sensor call function is turned off according to the target function level.
  • the step of acquiring the corresponding target function level according to the time includes:
  • the step of obtaining a corresponding target function level according to the time comprises:
  • the method further includes:
  • the method before the step of acquiring the current time of the terminal system, the method further includes:
  • the step of acquiring the current time of the terminal system is performed.
  • the step of setting a function level to a sensor calling function in an application specifically includes:
  • the current time is determined to be the same as the preset time point. If yes, the function level corresponding to the preset time point is obtained, for example, a mapping relationship between the time point and the function level is pre-established, according to the current status of the terminal system. The point in time gets the corresponding target function level.
  • Step S104 the sensor calling function is turned off according to the target function level.
  • the sensor calling function in the target function level is turned off.
  • the sensor name corresponding to the sensor calling function may be displayed on the display screen of the terminal, and the user has been prompted.
  • the step of closing the sensor calling function according to the target function level may specifically include:
  • the preset sensor set may be preset by the user, and the sensor in the set does not need to be closed by the method provided by the solution, for example, the target can be obtained.
  • the sensor in the function level calls the identification information of the function, and then determines, according to the identification information and the preset sensor identification set, whether the sensor corresponding to the sensor calling function is a preset sensor, that is, the step of closing the sensor calling function according to the target function level.
  • the method may further include:
  • the terminal may have a series of problems such as stagnation and heat generation, so the solution can
  • the CPU usage of the terminal is high, that is, before the step of acquiring the current time of the terminal system, the method further includes:
  • FIG. 2 is a schematic flowchart of a method for shutting down a sensor in an actual application according to an embodiment of the present invention.
  • step 201 three levels are set for the sensor calling function in the smartphone system.
  • the sensor calling function corresponding to the sensor whose frequency is greater than or equal to a is set to the first function level, and the used frequency is less than a and greater than b.
  • the sensor calling function corresponding to the sensor is set to the second function level, and the sensor calling function corresponding to the sensor whose frequency is less than or equal to b is set to the third function level.
  • Step S202 obtaining a current CPU usage rate of the mobile phone system.
  • Step S204 Acquire a current time of the mobile phone system, and generate a function close request according to the current time.
  • Step S205 the mobile phone acquires a corresponding target function level according to the function shutdown request.
  • step S206 the mobile phone closes the sensor calling function according to the target function level.
  • the target function level is the second function level
  • the function in the second function level and the sensor calling function whose function level is lower than the second function level, that is, the function in the third function level are closed.
  • the embodiment of the present invention sets the function level to the sensor calling function in the terminal system, acquires the current time of the terminal system, and acquires the corresponding target function level according to the current time, and closes the sensor calling function according to the target function level.
  • the solution can be based on closing the sensor calling function in the terminal system, and setting these functions to multiple levels, which can reduce the power consumption of the terminal, and since the solution does not directly turn off all the sensors, the terminal power consumption can be reduced. Increases the efficiency and flexibility of the sensor.
  • the embodiment of the invention further provides a sensor closing device, comprising: a setting module, a time acquiring module, a level acquiring module and a closing module;
  • the setting module is configured to set a function level to a sensor calling function in the terminal system
  • the level obtaining module is configured to obtain a corresponding target function level according to the current time
  • the shutdown module is configured to close the sensor calling function according to the target function level.
  • the level obtaining module specifically includes: a determining submodule and an obtaining submodule;
  • the determining submodule is configured to determine whether the current time is within a preset time range
  • the acquiring submodule is configured to acquire an objective function level corresponding to the preset time range when the determining submodule determines to be YES.
  • the apparatus further includes: a state obtaining module and a first determining module;
  • the state obtaining module is configured to acquire, after the level acquiring module acquires the corresponding target function level according to the time, the current running state of the terminal before the closing module closes the sensor calling function;
  • the first determining module is configured to determine whether the current running state is a preset state
  • the level obtaining module is specifically configured to: when the first determining module determines to be YES, turn off the sensor calling function according to the target function level.
  • the apparatus further includes: a usage acquisition module and a second determination module;
  • the usage obtaining module is configured to acquire a current CPU usage rate of the terminal before the time acquiring module acquires the current time of the terminal system;
  • the second determining module is configured to determine whether the CPU usage rate reaches a preset threshold
  • the setting module specifically includes: acquiring a submodule, determining a submodule, and setting a submodule;
  • the acquiring submodule is configured to acquire a sensor corresponding to the sensor calling function
  • the determining submodule is configured to determine a frequency of use of the sensor in the terminal
  • the setting submodule is configured to set a function level to the sensor calling function according to the use frequency.
  • a sensor closing device is also provided, and the sensor closing device can be integrated in the terminal, and the terminal can be a mobile internet device (such as a smart phone or a tablet) or a smart wearable device (such as a smart watch). ) and other types of electronic equipment.
  • the shutdown device of the sensor may include: a setting module 301, a time acquisition module 302, a level acquisition module 303, a level acquisition module 303, and a shutdown module 304;
  • the time obtaining module 302 is configured to acquire a current time of the terminal system.
  • the apparatus provided by the solution further includes: a state obtaining module 305, a first determining module 306, a usage acquiring module 307, and a second determining module 308;
  • the first determining module 306 is configured to determine whether the current running state is a preset state
  • the second determining module 308 is configured to determine whether the CPU usage rate reaches a preset threshold
  • the determining submodule is configured to determine whether the current time is within a preset time range
  • the obtaining submodule is configured to acquire an objective function level corresponding to the preset time range when the determining submodule determines to be YES
  • the setting module 301 may specifically include: acquiring a submodule, determining a submodule, and setting a submodule;
  • 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 sensor call function is turned off according to the target function level.
  • an electronic device is also provided, and the electronic device may be a terminal, such as a smart phone, a tablet, or the like.
  • the electronic device 400 includes a processor 401, a memory 402, a display screen 403, and a control circuit 404.
  • the processor 401 is electrically connected to the memory 402, the display screen 403, and the control circuit 404, respectively.
  • the processor 401 is a control center of the electronic device 400, which connects various parts of the entire electronic device using various interfaces and lines, executes the electronic by running or loading an application stored in the memory 402, and calling data stored in the memory 402.
  • the various functions and processing data of the device enable overall monitoring of the electronic device.
  • 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 is turned off according to the target function level.
  • the processor 401 is configured to perform the following steps:
  • the processor 401 is configured to perform the following steps:
  • the processor 401 is further configured to perform the following steps before the step of acquiring the current time of the electronic device system:
  • a function level is set for the sensor calling function according to the frequency of use.
  • the processor 401 is configured to perform the following steps:
  • Memory 402 can be used to store applications and data.
  • the application stored in the memory 402 contains instructions that are executable in the processor.
  • 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.
  • 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.
  • 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 may close the display panel and/or the backlight 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.
  • 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 provided by the embodiment of the present invention can set a function level to a sensor calling function in the electronic device system, acquire a current time of the electronic device system, and obtain a corresponding target function level according to the current time, and close the sensor according to the target function level. call function.
  • the solution can be based on turning off the sensor calling function in the electronic device system, and setting these functions to multiple levels, which can reduce the power consumption of the electronic device, and since the solution does not directly turn off all the sensors, the power of the electronic device can be reduced. At the same time, the efficiency of the sensor is improved.
  • a method, a device, a storage medium, and an electronic device for shutting down a sensor according to an embodiment of the present invention are described in detail.
  • Each functional module may be integrated into a processing chip, or each module may exist physically or separately.
  • One or more modules are integrated in one module.
  • the above integrated modules can be implemented in the form of hardware or in the form of software functional modules.
  • the principles and embodiments of the present invention are described herein with reference to specific examples. The description of the above embodiments is only for the purpose of understanding the method of the present invention and the core idea thereof. Also, those skilled in the art according to the present invention The present invention is not limited by the scope of the present invention.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

一种传感器的关闭方法、装置、存储介质及电子设备;该关闭方法包括:对终端系统中的传感器调用函数设置函数级别(S101),获取终端系统当前的时间(S102),并根据当前时间获取相应的目标函数级别(S103),根据目标函数级别关闭所述传感器调用函数(S104)。

Description

一种传感器的关闭方法、装置、存储介质及电子设备 技术领域
本发明涉及电子设备技术领域,具体涉及一种传感器的关闭方法、装置、存储介质及电子设备。
背景技术
随着智能终端的普及,越来越多用户使用智能终端进行学习、娱乐等等,移动终端例如智能手机的功能越来越强大,不仅丰富用户生活,还给用户带来便利,与此同时各种智能终端的应用程序也被开发出来,以满足用户的不同应用需求。
为了实现各种功能以满足用户的各种需求,通常智能终端会安装各种各样的应用程序,而智能终端中各种各样的传感器设备给应用程序多元化功能提供了硬件基础,比如用于调节屏幕亮度的光线传感器、获取加速度的重力传感器、用于指纹识别的电容传感器等等。
技术问题
本发明实施例提供一种传感器的关闭方法和装置,可以提升传感器的使用效率。
技术解决方案
第一方面,本发明实施例提供了一种传感器的关闭方法,包括:
对终端系统中的传感器调用函数设置函数级别;
获取所述终端系统当前的时间,并根据所述时间获取相应的目标函数级别;
根据所述目标函数级别关闭所述传感器调用函数。
第二方面,本发明实施例提供了一种传感器的关闭装置,包括:设置模块、时间获取模块、级别获取模块以及关闭模块;
所述设置模块,用于对终端系统中的传感器调用函数设置函数级别;
所述时间获取模块,用于获取所述终端系统当前的时间;
所述级别获取模块,用于根据所述当前的时间获取相应的目标函数级别;
所述关闭模块,用于根据所述目标函数级别关闭所述传感器调用函数。
第三方面,本发明实施例提供了一种存储介质,所述存储介质中存储有多条指令,所述指令适于由处理器加载以执行以下步骤:
对终端系统中的传感器调用函数设置函数级别;
获取所述终端系统当前的时间,并根据所述时间获取相应的目标函数级别;
根据所述目标函数级别关闭所述传感器调用函数。
第四方面,本发明实施例提供了一种电子设备,包括处理器和存储器,所述存储器存储有多条指令,所述处理器加载所述存储器中的指令用于执行以下步骤:
对电子设备系统中的传感器调用函数设置函数级别;
获取所述电子设备系统当前的时间,并根据所述时间获取相应的目标函数级别;
根据所述目标函数级别关闭所述传感器调用函数。
有益效果
本发明实施例提供一种传感器的关闭方法和装置,可以提升传感器的使用效率。
附图说明
图1为本发明实施例提供的一种传感器的关闭方法流程示意图;
图2为本发明实施例提供的在实际应用当中传感器的关闭方法流程示意图;
图3为本发明实施例提供的一种传感器的关闭装置的结构示意图;
图4为本发明实施例提供的另一种传感器的关闭装置的结构示意图;
图5为本发明实施例提供的电子设备的结构示意图;
图6为本发明实施例提供的电子设备的另一结构示意图。
本发明的最佳实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
目前,为了减低智能终端电量的消耗,进而提升智能终端的续航能力,智能终端会关闭传感器,也即关闭传感器调用函数,比如智能终端可以自动关闭传感器,或者根据用户的操作来关闭传感器。然而,目前这种传感器关闭方案虽然可以降低终端电量消耗,但是由于该方案是关闭系统中所有的传感器调用函数,不便于针对性的对传感器进行管理控制,根据传感器的功能,不同的传感器的使用频率也不相同,对于一些使用频率较高的传感器,在关闭之后还需要重新启动该传感器,浪费较多的时间,效率低下。
本发明实施例提供了一种传感器的关闭方法,包括以下步骤:
对终端系统中的传感器调用函数设置函数级别;
获取所述终端系统当前的时间,并根据所述时间获取相应的目标函数级别;
根据所述目标函数级别关闭所述传感器调用函数。
一实施例中,所述根据所述时间获取相应的目标函数级别的步骤具体包括:
判断所述当前的时间是否在预设时间范围内;
若是,则获取所述预设时间范围对应的目标函数级别。
一实施例中,根据所述时间获取相应的目标函数级别的步骤包括:
判断当前时间与预设时间点是否相同,若是,则获取该预设时间点对应的函数级别,得到目标函数级别。
一实施例中,在根据所述时间获取相应的目标函数级别之后,关闭所述传感器调用函数之前,所述方法还包括:
获取所述终端当前的运行状态;
判断所述当前运行状态是否为预设状态;
若是,则执行根据所述目标函数级别关闭所述传感器调用函数的步骤。
一实施例中,在获取所述终端系统当前的时间的步骤之前,所述方法还包括:
获取所述终端当前的CPU使用率;
判断所述CPU使用率是否达到预设阈值;
若是,则执行获取所述终端系统当前的时间的步骤。
一实施例中,所述对应用程序当中的传感器调用函数设置函数级别的步骤具体包括:
获取所述传感器调用函数所对应的传感器;
确定所述传感器在所述终端中的使用频率;
根据所述使用频率对所述传感器调用函数设置函数级别。
一实施例中,根据目标函数级别关闭传感器调用函数的步骤包括:
判断目标函数级别是否为最低函数级别;
若是,则关闭与目标函数级别对应的传感器调用函数;
若否,则关闭与目标函数级别对应的传感器调用函数,以及函数级别低于目标函数级别的传感器调用函数。
本发明实施例将从传感器的关闭装置的角度进行描述,该传感器的关闭装置具体可以集成在终端中,该终端可以为移动互联网设备(如智能手机、平板电脑)、智能穿戴设备(如智能手表)等各类电子设备。
在一优选实施例中,提供了一种传感器的关闭方法;请参阅图1,图1为本发明实施例提供的传感器的关闭方法的流程示意图,本实施例的传感器的关闭方法包括:
步骤S101对终端系统中的传感器调用函数设置函数级别。
在计算机编译或运行时,使用某个函数来完成相关命令,在系统中通过对函数的调用来执行函数体,系统中每个功能的实现都是由函数来进行的,具体来说,把一系列执行某个功能的语句组合在一起就是函数。
在本发明实施例当中,对系统中的传感器调用函数设置级别便可以根据传感器的使用频率来进行设置,比如将使用频率较高的传感器所对应的传感器调用函数设置为较高级别,将使用频率较低的传感器所对应的传感器调用函数设置为较低级别,即上述对应用程序当中的传感器调用函数设置函数级别的步骤可以具体包括:
获取传感器调用函数所对应的传感器;
确定传感器在终端中的使用频率;
根据使用频率对传感器调用函数设置函数级别。
其中,确定传感器在终端中的使用频率的方法可以有多种,比如通过计算在相同时间段内不同的传感器的使用次数得到各个传感器的使用频率,从而根据使用频率确定传感器对应的传感器调用函数进行级别设置。
其中,对传感器调用函数设置函数级别的表现形式也可以有多种,比如利用数字将传感器调用函数定义为1级函数、2级函数、3级函数等,也可以利用字母将传感器调用函数定义为A级函数、B级函数、C级函数等等,对该函数级别可以用不同的参数进行定于,在此不做进一步限定。
步骤S102,获取终端系统当前的时间。
其中,上述获取终端系统当前的时间的步骤可以有多种,比如通过调取系统中计时器的时间数据来确定当前的时间,也可以在终端联网状态下通过网络获取当前时区的时间信息。
可选地,在获取相应的目标函数级别之前,本发明实施例提供的关闭方法还可以包括:
接收关系设置请求,该关系设置请求指示需要建立映射关系的预设时间以及函数级别;
根据关系设置请求建立预设时间与函数级别之间的映射关系,以得到映射关系集合;
上述根据当前时间获取相应的目标函数级别的步骤具体包括:
根据时间和映射关系集合确定应的目标函数级别。进一步的,根据当前时间在该映射关系集合当中查找与当前时间相同的预设样本,并确定该预设样本对应的预设函数级别,即为上述目标函数级别。
需要说明的是,上述预设时间可以为时间点也可以为时间范围,若该预设时间为时间点,则可以根据当前的时间在映射关系集合当中查找相同的预设时间点,从而确定对应的函数级别;若该预设时间为时间范围,则可以根据当前的时间在映射关系集合当中判断是否在预设时间范围当中,从而确定对应的目标函数级别。
一些实施例中,考虑到在关闭函数之前,终端可能待机状态也可能为工作状态,而在用户使用手机的过程中可能正在使用一些传感器,从而在根据时间生成函数关闭请求的步骤之前,上述方法还可以包括:
获取终端当前的运行状态;
判断当前运行状态是否为预设状态;
若是,则执行根据所述目标函数级别关闭传感器调用函数的步骤。
该预设条件可以根据用户指令由用户自行设定,比如该预设条件可以为终端处于待机状态,也即判断终端当期是否为待机状态,若是,则根据所述目标函数级别关闭传感器调用函数。
步骤S103,根据当前时间获取相应的目标函数级别。
其中,上述根据当前时间获取相应的目标函数级别的步骤具体包括:
判断当前的时间是否在预设时间范围内;
若是,则获取预设时间范围对应的目标函数级别。
可选的,还可以判断当前时间与预设时间点是否相同,若是,则获取该预设时间点对应的函数级别,比如,预先建立时间点与函数级别之间的映射关系,根据终端系统当前的时间点获取相应的目标函数级别。
步骤S104,根据目标函数级别关闭传感器调用函数。
关闭该目标函数级别当中的传感器调用函数,一些实施例中,在关闭传感器调用函数之后,可以将该传感器调用函数所对应的传感器名称显示至终端的显示屏上,已提示用户。
具体的,上述根据目标函数级别关闭传感器调用函数的步骤可以具体包括:
判断目标函数级别是否为最低函数级别;
若是,则关闭与目标函数级别对应的传感器调用函数;
若否,则关闭与目标函数级别对应的传感器调用函数,以及函数级别低于目标函数级别的传感器调用函数。
比如,可以对终端系统中的传感器调用函数设置为三个级别:使用频率大于或等于第一预设阈值的传感器所对应的传感器调用函数为第一函数级别,使用频率大于或等于第二预设阈值且小于第一预设阈值的传感器所对应的传感器调用函数为第二函数级别,使用频率小于第二预设阈值的传感器所对应的传感器调用函数为第三函数级别。若该目标函数级别为第三函数级别,则关闭系统中目标函数级别对应的函数也就是关闭第三函数级别当中的函数;若该目标函数级别为第二函数级别,则关闭第二函数级别当中的函数以及函数级别低于第二函数级别的传感器调用函数,也就是第三函数级别当中的函数。
一些实施例中,在实际应用当中考虑到本方案的灵活性,可以由用户预先设定预设传感器集合,针对该集合当中的传感器不必用本方案提供的方法来进行关闭,比如,可以获取目标函数级别当中的传感器调用函数的标识信息,然后根据该标识信息和预设传感器标识集合判断该传感器调用函数所对应的传感器是否为预设传感器,也即在根据目标函数级别关闭传感器调用函数的步骤之前,所述方法还可以包括:
获取目标函数级别当中的传感器调用函数的标识信息;
判断在预设标识集合当中是否存在与上述标识信息相同的样本标识;
若否,则执行根据目标函数级别关闭传感器调用函数的步骤。
一些实施例中,考虑到系统中的传感器调用函数需要占用一定的CPU资源,而当终端系统整个的CPU使用率较高时,终端就会出现卡顿、发热等一系列问题,因此本方案可以在终端的CPU使用率较高时执行,即在获取终端系统当前的时间的步骤之前,所述方法还包括:
获取终端当前的CPU使用率;
判断CPU使用率是否达到预设阈值;
若是,则执行获取终端系统当前的时间的步骤。
其中上述预设阈值可以根据用户的实际需求自行设定,比如可以设为70%、80%等等,本方案对此不做进一步限定。
由上可知,本发明实施例采用对终端系统中的传感器调用函数设置函数级别,获取终端系统当前的时间,并根据当前时间获取相应的目标函数级别,根据目标函数级别关闭所述传感器调用函数。该方案可以基于关闭终端系统中的传感器调用函数,并对这些函数设置为多个级别,可以降低终端的电量消耗,且由于该方案并没有直接关闭全部的传感器,可以在降低终端电量消耗的同时,提升了传感器的使用效率和灵活性。
在一优选实施例中,提供了一种在实际应用当中传感器的关闭方法,在本实施例当中,将以对手机系统中的传感器调用函数设置为三个级别为例,进行详细说明。请参阅图2,图2为本发明实施例提供的在实际应用当中传感器的关闭方法的流程示意图,本实施例的传感器的关闭方法包括:
步骤201,对智能手机系统中的传感器调用函数设置三个级别。
具体的,根据手机系统中的传感器调用函数对应的传感器的使用频率来进行划分,对使用频率大于或等于a的传感器对应的传感器调用函数设置为第一函数级别,对使用频率小于a且大于b的传感器对应的传感器调用函数设置为第二函数级别,对使用频率小于或等于b的传感器对应的传感器调用函数设置为第三函数级别。
步骤S202,获取手机系统当前的CPU使用率。
步骤S203,判断上述CPU使用率是否达到80%,若是则执行步骤S204,若否,则结束流程。
在本发明实施例当中,80%为用户设定的手机CPU使用率的临界值,若手机系统中的CPU使用率为达到80%,则不必关闭传感器调用函数。
步骤S204,获取手机系统当前的时间,并根据当前时间生成函数关闭请求。
具体的,手机可以通过调取系统中计时器的时间数据来确定当前的时间,也可以在终端联网状态下通过网络获取当前时区的时间信息,根据当前时间在预设映射关系集合当中查找与当前时间相同的预设样本,并确定该预设样本对应的预设函数关闭请求,即为上述函数关闭请求。
需要说明的是,上述预设时间可以为时间点也可以为时间范围,若该预设时间为时间点,比如手机系统获取当前的时间为10:00,则在预设映射关系集合当中查找与10:00所对应的函数关闭请求;若该预设时间为时间范围,则可以在预设映射关系集合查找与当前时间对应的时间范围,比如9:00—11:00范围内,则确定与该9:00—11:00范围对应的函数关闭请求。
步骤S205,手机根据函数关闭请求获取相应的目标函数级别。
其中,该函数关闭请求可以携带函数级别信息,比如对该函数关闭请求进行提取,得到第二函数级别的标识信息,则确定第二函数级别即为目标函数级别。
步骤S206,手机根据目标函数级别关闭传感器调用函数。
比如目标函数级别为第二函数级别,则关闭第二函数级别当中的函数以及函数级别低于第二函数级别的传感器调用函数,也就是第三函数级别当中的函数。
由上可知,本发明实施例采用对终端系统中的传感器调用函数设置函数级别,获取终端系统当前的时间,并根据当前时间获取相应的目标函数级别,根据目标函数级别关闭所述传感器调用函数。该方案可以基于关闭终端系统中的传感器调用函数,并对这些函数设置为多个级别,可以降低终端的电量消耗,且由于该方案并没有直接关闭全部的传感器,可以在降低终端电量消耗的同时,提升了传感器的使用效率和灵活性。
本发明实施例还提供了一种传感器的关闭装置,包括:设置模块、时间获取模块、级别获取模块以及关闭模块;
所述设置模块,用于对终端系统中的传感器调用函数设置函数级别;
所述时间获取模块,用于获取所述终端系统当前的时间;
所述级别获取模块,用于根据所述当前的时间获取相应的目标函数级别;
所述关闭模块,用于根据所述目标函数级别关闭所述传感器调用函数。
一实施例中,所述级别获取模块具体包括:判断子模块和获取子模块;
所述判断子模块,用于判断所述当前的时间是否在预设时间范围内;
所述获取子模块,用于当所述判断子模块判断为是时,获取所述预设时间范围对应的目标函数级别。
一实施例中,所述装置还包括:状态获取模块和第一判断模块;
所述状态获取模块,用于在所述级别获取模块根据所述时间获取相应的目标函数级别之后,所述关闭模块关闭所述传感器调用函数之前,获取所述终端当前的运行状态;
所述第一判断模块,用于判断所述当前运行状态是否为预设状态;
所述级别获取模块,具体用于当所述第一判断模块判断为是时,根据所述目标函数级别关闭所述传感器调用函数。
一实施例中,所述装置还包括:使用率获取模块和第二判断模块;
所述使用率获取模块,用于在所述时间获取模块获取所述终端系统当前的时间之前,获取所述终端当前的CPU使用率;
所述第二判断模块,用于判断所述CPU使用率是否达到预设阈值;
所述时间获取模块,具体用于在所述第二判断模块判断为是时,获取所述终端系统当前的时间。
一实施例中,所述设置模块具体包括:获取子模块、确定子模块和设置子模块;
所述获取子模块,用于获取所述传感器调用函数所对应的传感器;
所述确定子模块,用于确定所述传感器在所述终端中的使用频率;
所述设置子模块,用于根据所述使用频率对所述传感器调用函数设置函数级别。
在一优选实施例中,还提供一种传感器的关闭装置,该传感器的关闭装置可以集成在终端中,该终端可以为移动互联网设备(如智能手机、平板电脑)、智能穿戴设备(如智能手表)等各类电子设备。如图3所示,该传感器的关闭装置可以包括:设置模块301、时间获取模块302、级别获取模块303、级别获取模块303以及关闭模块304;
该设置模块301,用于对终端系统中的传感器调用函数设置函数级别;
该时间获取模块302,用于获取终端系统当前的时间;
该级别获取模块303,用于根据当前的时间获取相应的目标函数级别;
该关闭模块304,用于根据目标函数级别关闭传感器调用函数。
一些实施例中,如图4所示,本方案提供的装置还包括:状态获取模块305、第一判断模块306、使用率获取模块307和第二判断模块308;
该状态获取模块305,用于在级别获取模块303根据所述时间获取相应的目标函数级别之后,关闭模块304闭所述传感器调用函数之前,获取终端当前的运行状态;
该第一判断模块306,用于判断当前运行状态是否为预设状态;
该级别获取模块303,具体用于当第一判断模块306判断为是时,根据时间生成函数关闭请求。
该使用率获取模块307,用于在时间获取模块302获取终端系统当前的时间之前,获取终端当前的CPU使用率;
该第二判断模块308,用于判断CPU使用率是否达到预设阈值;
该时间获取模块302,具体用于在第二判断模块308判断为是时,获取终端系统当前的时间。
进一步的,在本实施例中,级别获取模块303可以具体包括:判断子模块和获取子模块;
该判断子模块,用于判断所述当前的时间是否在预设时间范围内;
该获取子模块,用于当上述判断子模块判断为是时,获取所述预设时间范围对应的目标函数级别
设置模块301可以具体包括:获取子模块、确定子模块和设置子模块;
该获取子模块,用于获取传感器调用函数所对应的传感器;
该确定子模块,用于确定传感器在终端中的使用频率;
该设置子模块,用于根据使用频率对传感器调用函数设置函数级别。
可选的,该关闭装置还可以包括:接收模块和建立模块;
该接收模块,用于在设置模块301对终端系统中的传感器调用函数设置函数级别之前,接收关系设置请求,关系设置请求指示需要建立映射关系的预设时间以及函数级别;
该建立模块,用于根据关系设置请求建立预设时间与函数级别之间的映射关系,以得到映射关系集合;
该级别获取模块303,具体用于根据时间和映射关系集合获取相应的目标函数级别。
由上可知,本发明实施例采用设置模块301对终端系统中的传感器调用函数设置函数级别,时间获取模块302获取终端系统当前的时间,级别获取模块303根据当前时间获取相应的目标函数级别,最后由关闭模块304根据目标函数级别关闭所述传感器调用函数。该方案可以基于关闭终端系统中的传感器调用函数,并对这些函数设置为多个级别,可以降低终端的电量消耗,且由于该方案并没有直接关闭全部的传感器,可以在降低终端电量消耗的同时,提升了传感器的使用效率和灵活性。
具体实施时,以上各个模块可以作为独立的实体来实现,也可以进行任意组合,作为同一或若干个实体来实现,以上各个模块的具体实施可参见前面的方法实施例,在此不再赘述。
本发明实施例还提供了一种电子设备,包括处理器和存储器,所述存储器存储有多条指令,所述处理器加载所述存储器中的指令用于执行以下步骤:
对电子设备系统中的传感器调用函数设置函数级别;
获取所述电子设备系统当前的时间,并根据所述时间获取相应的目标函数级别;
根据所述目标函数级别关闭所述传感器调用函数。
在一优选实施例中,还提供一种电子设备,该电子设备可以是终端,比如可以是智能手机、平板电脑等设备。图5所示,电子设备400包括处理器401、存储器402、显示屏403以及控制电路404。其中,处理器401分别与存储器402、显示屏403、控制电路404电性连接。
处理器401是电子设备400的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或加载存储在存储器402内的应用程序,以及调用存储在存储器402内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。
在本实施例中,电子设备400中的处理器401会按照如下的步骤,将一个或一个以上的应用程序的进程对应的指令加载到存储器402中,并由处理器401来运行存储在存储器402中的应用程序,从而实现各种功能:
对电子设备系统中的传感器调用函数设置函数级别;
获取所述电子设备系统当前的时间,并根据所述时间获取相应的目标函数级别;
根据所述目标函数级别关闭所述传感器调用函数。
在一些实施例中,所述处理器401用于执行以下步骤:
判断所述当前的时间是否在预设时间范围内;
若是,则获取所述预设时间范围对应的目标函数级别。
在一些实施例中,所述处理器401用于执行以下步骤:
判断当前时间与预设时间点是否相同,若是,则获取该预设时间点对应的函数级别,得到目标函数级别。
在一些实施例中,在根据所述时间获取相应的目标函数级别之后,关闭所述传感器调用函数之前,所述处理器401还用于执行以下步骤:
获取所述电子设备当前的运行状态;
判断所述当前运行状态是否为预设状态;
若是,则执行根据所述目标函数级别关闭所述传感器调用函数的步骤。
在一些实施例中,在获取所述电子设备系统当前的时间的步骤之前,所述处理器401还用于执行以下步骤:
获取所述电子设备当前的CPU使用率;
判断所述CPU使用率是否达到预设阈值;
若是,则执行获取所述电子设备系统当前的时间的步骤。
在一些实施例中,所述处理器401用于执行以下步骤:
获取所述传感器调用函数所对应的传感器;
确定所述传感器在所述电子设备中的使用频率;
根据所述使用频率对所述传感器调用函数设置函数级别。
在一些实施例中,所述处理器401用于执行以下步骤:
判断目标函数级别是否为最低函数级别;
若是,则关闭与目标函数级别对应的传感器调用函数;
若否,则关闭与目标函数级别对应的传感器调用函数,以及函数级别低于目标函数级别的传感器调用函数。
存储器402可用于存储应用程序和数据。存储器402存储的应用程序中包含有可在处理器中执行的指令。应用程序可以组成各种功能模块。处理器401通过运行存储在存储器402的应用程序,从而执行各种功能应用以及数据处理。
显示屏403可用于显示由用户输入的信息或提供给用户的信息以及终端的各种图形用户接口,这些图形用户接口可以由图像、文本、图标、视频和其任意组合来构成。
控制电路404与显示屏403电性连接,用于控制显示屏403显示信息。
在一些实施例中,如图6所示,电子设备400还包括:射频电路405、输入单元406、音频电路407、传感器408以及电源409。其中,处理器401分别与射频电路405、输入单元406、音频电路407、传感器408以及电源409电性连接。
射频电路405用于收发射频信号,以通过无线通信与网络设备或其他电子设备建立无线通讯,与网络设备或其他电子设备之间收发信号。
输入单元406可用于接收输入的数字、字符信息或用户特征信息(例如指纹),以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。其中,输入单元406可以包括指纹识别模组。
音频电路407可通过扬声器、传声器提供用户与终端之间的音频接口。
电子设备400还可以包括至少一种传感器408,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板的亮度,接近传感器可在终端移动到耳边时,关闭显示面板和/或背光。作为运动传感器的一种,重力加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等; 至于终端还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。
电源409用于给电子设备400的各个部件供电。在一些实施例中,电源409可以通过电源管理系统与处理器401逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。
尽管图6中未示出,电子设备400还可以包括摄像头、蓝牙模块等,在此不再赘述。
本发明实施例提供的电子设备,可以对电子设备系统中的传感器调用函数设置函数级别,获取电子设备系统当前的时间,并根据当前时间获取相应的目标函数级别,根据目标函数级别关闭所述传感器调用函数。该方案可以基于关闭电子设备系统中的传感器调用函数,并对这些函数设置为多个级别,可以降低电子设备的电量消耗,且由于该方案并没有直接关闭全部的传感器,可以在降低电子设备电量消耗的同时,提升了传感器的使用效率。
需要说明的是,本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于计算机可读存储介质中,如存储在终端的存储器中,并被该终端内的至少一个处理器执行,在执行过程中可包括如信息发布方法的实施例的流程。其中,存储介质可以包括:只读存储器(ROM,Read Only Memory)、随机存取记忆体(RAM,Random Access Memory)、磁盘或光盘等。
以上对本发明实施例提供的一种传感器的关闭方法、装置、存储介质及电子设备进行了详细介绍,其各功能模块可以集成在一个处理芯片中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。

Claims (20)

  1. 一种传感器的关闭方法,其中,包括以下步骤:
    对终端系统中的传感器调用函数设置函数级别;
    获取所述终端系统当前的时间,并根据所述时间获取相应的目标函数级别;
    根据所述目标函数级别关闭所述传感器调用函数。
  2. 如权利要求1所述的关闭方法,其中,所述根据所述时间获取相应的目标函数级别的步骤具体包括:
    判断所述当前的时间是否在预设时间范围内;
    若是,则获取所述预设时间范围对应的目标函数级别。
  3. 如权利要求1所述的关闭方法,其中,根据所述时间获取相应的目标函数级别的步骤包括:
    判断当前时间与预设时间点是否相同,若是,则获取所述预设时间点对应的函数级别,得到目标函数级别。
  4. 如权利要求1所述的关闭方法,其中,在根据所述时间获取相应的目标函数级别之后,关闭所述传感器调用函数之前,所述方法还包括:
    获取所述终端当前的运行状态;
    判断所述当前运行状态是否为预设状态;
    若是,则执行根据所述目标函数级别关闭所述传感器调用函数的步骤。
  5. 如权利要求1所述的关闭方法,其中,在获取所述终端系统当前的时间的步骤之前,所述方法还包括:
    获取所述终端当前的CPU使用率;
    判断所述CPU使用率是否达到预设阈值;
    若是,则执行获取所述终端系统当前的时间的步骤。
  6. 如权利要求1所述的关闭方法,其中,所述对应用程序当中的传感器调用函数设置函数级别的步骤具体包括:
    获取所述传感器调用函数所对应的传感器;
    确定所述传感器在所述终端中的使用频率;
    根据所述使用频率对所述传感器调用函数设置函数级别。
  7. 如权利要求6所述的关闭方法,其中,根据目标函数级别关闭传感器调用函数的步骤包括:
    判断目标函数级别是否为最低函数级别;
    若是,则关闭与目标函数级别对应的传感器调用函数;
    若否,则关闭与目标函数级别对应的传感器调用函数,以及函数级别低于目标函数级别的传感器调用函数。
  8. 一种传感器的关闭装置,其中,包括:设置模块、时间获取模块、级别获取模块以及关闭模块;
    所述设置模块,用于对终端系统中的传感器调用函数设置函数级别;
    所述时间获取模块,用于获取所述终端系统当前的时间;
    所述级别获取模块,用于根据所述当前的时间获取相应的目标函数级别;
    所述关闭模块,用于根据所述目标函数级别关闭所述传感器调用函数。
  9. 如权利要求8所述的装置,其中,所述级别获取模块具体包括:判断子模块和获取子模块;
    所述判断子模块,用于判断所述当前的时间是否在预设时间范围内;
    所述获取子模块,用于当所述判断子模块判断为是时,获取所述预设时间范围对应的目标函数级别。
  10. 如权利要求8所述的装置,其中,所述装置还包括:状态获取模块和第一判断模块;
    所述状态获取模块,用于在所述级别获取模块根据所述时间获取相应的目标函数级别之后,所述关闭模块关闭所述传感器调用函数之前,获取所述终端当前的运行状态;
    所述第一判断模块,用于判断所述当前运行状态是否为预设状态;
    所述级别获取模块,具体用于当所述第一判断模块判断为是时,根据所述目标函数级别关闭所述传感器调用函数。
  11. 如权利要求8所述的装置,其中,所述装置还包括:使用率获取模块和第二判断模块;
    所述使用率获取模块,用于在所述时间获取模块获取所述终端系统当前的时间之前,获取所述终端当前的CPU使用率;
    所述第二判断模块,用于判断所述CPU使用率是否达到预设阈值;
    所述时间获取模块,具体用于在所述第二判断模块判断为是时,获取所述终端系统当前的时间。
  12. 如权利要求8所述的装置,其中,所述设置模块具体包括:获取子模块、确定子模块和设置子模块;
    所述获取子模块,用于获取所述传感器调用函数所对应的传感器;
    所述确定子模块,用于确定所述传感器在所述终端中的使用频率;
    所述设置子模块,用于根据所述使用频率对所述传感器调用函数设置函数级别。
  13. 一种存储介质,其中,所述存储介质中存储有多条指令,所述指令适于由处理器加载以执行如权利要求1-7任一所述的方法。
  14. 一种电子设备,其中,包括处理器和存储器,所述存储器存储有多条指令,所述处理器加载所述存储器中的指令用于执行以下步骤:
    对电子设备系统中的传感器调用函数设置函数级别;
    获取所述电子设备系统当前的时间,并根据所述时间获取相应的目标函数级别;
    根据所述目标函数级别关闭所述传感器调用函数。
  15. 如权利要求14所述的电子设备,其中,所述处理器用于执行以下步骤:
    判断所述当前的时间是否在预设时间范围内;
    若是,则获取所述预设时间范围对应的目标函数级别。
  16. 如权利要求14所述的电子设备,其中,所述处理器用于执行以下步骤:
    判断当前时间与预设时间点是否相同,若是,则获取所述预设时间点对应的函数级别,得到目标函数级别。
  17. 如权利要求14所述的电子设备,其中,在根据所述时间获取相应的目标函数级别之后,关闭所述传感器调用函数之前,所述处理器还用于执行以下步骤:
    获取所述电子设备当前的运行状态;
    判断所述当前运行状态是否为预设状态;
    若是,则执行根据所述目标函数级别关闭所述传感器调用函数的步骤。
  18. 如权利要求14所述的电子设备,其中,在获取所述电子设备系统当前的时间的步骤之前,所述处理器还用于执行以下步骤:
    获取所述电子设备当前的CPU使用率;
    判断所述CPU使用率是否达到预设阈值;
    若是,则执行获取所述电子设备系统当前的时间的步骤。
  19. 如权利要求14所述的电子设备,其中,所述处理器用于执行以下步骤:
    获取所述传感器调用函数所对应的传感器;
    确定所述传感器在所述电子设备中的使用频率;
    根据所述使用频率对所述传感器调用函数设置函数级别。
  20. 如权利要求14所述的电子设备,其中,所述处理器用于执行以下步骤:
    判断目标函数级别是否为最低函数级别;
    若是,则关闭与目标函数级别对应的传感器调用函数;
    若否,则关闭与目标函数级别对应的传感器调用函数,以及函数级别低于目标函数级别的传感器调用函数。
PCT/CN2017/086464 2016-05-31 2017-05-29 一种传感器的关闭方法、装置、存储介质及电子设备 WO2017206867A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610379811.6A CN106055075B (zh) 2016-05-31 2016-05-31 一种传感器的关闭方法和装置
CN201610379811.6 2016-05-31

Publications (1)

Publication Number Publication Date
WO2017206867A1 true WO2017206867A1 (zh) 2017-12-07

Family

ID=57172450

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/086464 WO2017206867A1 (zh) 2016-05-31 2017-05-29 一种传感器的关闭方法、装置、存储介质及电子设备

Country Status (2)

Country Link
CN (1) CN106055075B (zh)
WO (1) WO2017206867A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111381953A (zh) * 2020-03-19 2020-07-07 Oppo广东移动通信有限公司 进程管理方法、装置、存储介质及电子设备

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106055075B (zh) * 2016-05-31 2019-02-12 Oppo广东移动通信有限公司 一种传感器的关闭方法和装置
CN108701030B (zh) * 2017-09-05 2022-05-27 深圳欣锐科技股份有限公司 一种基于处理器的数据处理方法和装置
CN109874165B (zh) * 2019-03-29 2021-09-14 努比亚技术有限公司 一种及时关闭可穿戴设备传感器的方法、可穿戴设备及存储介质
CN112783563A (zh) * 2021-01-28 2021-05-11 惠州Tcl移动通信有限公司 一种移动终端传感器工作方法、系统、终端及存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103002551A (zh) * 2012-12-10 2013-03-27 广东欧珀移动通信有限公司 一种移动通讯终端的省电方法
CN103491262A (zh) * 2013-09-24 2014-01-01 广州市久邦数码科技有限公司 一种移动终端智能省电模式切换系统
US20150268903A1 (en) * 2014-03-24 2015-09-24 Canon Kabushiki Kaisha Mobile terminal, method for controlling mobile terminal, printing apparatus, and storage medium
CN105072675A (zh) * 2015-07-24 2015-11-18 广东欧珀移动通信有限公司 一种自动关闭wifi连接的方法、系统及移动终端
CN106055075A (zh) * 2016-05-31 2016-10-26 广东欧珀移动通信有限公司 一种传感器的关闭方法和装置

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101924836B1 (ko) * 2011-03-23 2018-12-04 삼성전자주식회사 고속 인터칩 통신 장치 및 방법
CN103037094B (zh) * 2012-12-14 2015-03-11 上海华勤通讯技术有限公司 移动终端及屏幕翻转方法
CN103176842B (zh) * 2013-03-15 2016-04-27 广东欧珀移动通信有限公司 后台进程管理方法及其移动终端
CN114237485A (zh) * 2013-12-11 2022-03-25 北京三星通信技术研究有限公司 触控操作的方法及装置
US9547363B2 (en) * 2014-07-16 2017-01-17 Mediatek Inc. Power-saving method and associated electronic device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103002551A (zh) * 2012-12-10 2013-03-27 广东欧珀移动通信有限公司 一种移动通讯终端的省电方法
CN103491262A (zh) * 2013-09-24 2014-01-01 广州市久邦数码科技有限公司 一种移动终端智能省电模式切换系统
US20150268903A1 (en) * 2014-03-24 2015-09-24 Canon Kabushiki Kaisha Mobile terminal, method for controlling mobile terminal, printing apparatus, and storage medium
CN105072675A (zh) * 2015-07-24 2015-11-18 广东欧珀移动通信有限公司 一种自动关闭wifi连接的方法、系统及移动终端
CN106055075A (zh) * 2016-05-31 2016-10-26 广东欧珀移动通信有限公司 一种传感器的关闭方法和装置

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111381953A (zh) * 2020-03-19 2020-07-07 Oppo广东移动通信有限公司 进程管理方法、装置、存储介质及电子设备
CN111381953B (zh) * 2020-03-19 2024-01-16 Oppo广东移动通信有限公司 进程管理方法、装置、存储介质及电子设备

Also Published As

Publication number Publication date
CN106055075A (zh) 2016-10-26
CN106055075B (zh) 2019-02-12

Similar Documents

Publication Publication Date Title
WO2017206867A1 (zh) 一种传感器的关闭方法、装置、存储介质及电子设备
WO2018076818A1 (zh) 数据的备份方法、装置、电子设备、存储介质及系统
WO2017206878A1 (zh) 一种基于唤醒锁的处理方法、装置、存储介质及电子设备
WO2018076866A1 (zh) 数据处理方法、装置、存储介质、电子设备及服务器
WO2018076819A1 (zh) 数据的上传方法、装置、存储介质、电子设备及系统
WO2018166199A1 (zh) 定位精度等级调整方法、装置、存储介质及电子设备
WO2018090823A1 (zh) 一种系统分区关键数据的保护方法及系统、终端
WO2018076812A1 (zh) 数据请求的响应方法、装置、存储介质、服务器及系统
WO2017206883A1 (zh) 一种应用处理方法、装置、存储介质及电子设备
WO2015180013A1 (zh) 一种终端的触摸操作方法及装置
WO2018161602A1 (zh) 电子设备帧率的控制方法、装置、存储介质及电子设备
WO2017206862A1 (zh) 一种基于亮屏锁的处理方法、装置、存储介质及电子设备
WO2017206870A1 (zh) 一种传感器关闭方法、装置、存储介质及电子设备
WO2020101350A1 (en) Method for processing data using neural network and electronic device for supporting the same
WO2018076830A1 (zh) 数据同步周期的调整方法、装置、电子设备、存储介质及系统
WO2017206865A1 (zh) 一种应用程序的关闭方法、装置、存储介质及电子设备
WO2018076864A1 (zh) 一种数据同步方法、装置、存储介质及电子设备
WO2018076811A1 (zh) 数据分享方法、装置、存储介质及电子设备
WO2017206892A1 (zh) 一种移动终端的传感器处理方法、装置、存储介质及电子设备
WO2018129960A1 (zh) 闪屏处理方法、装置、存储介质及电子设备
WO2017206879A1 (zh) 一种移动终端应用程序的处理方法、装置、存储介质及电子设备
WO2018076840A1 (zh) 数据分享方法、装置、存储介质及服务器
WO2018076829A1 (zh) 终端数据的处理方法、装置、系统、存储介质及服务器
WO2017071326A1 (zh) 一种终端的控制方法、装置和系统
WO2017206886A1 (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: 17805812

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: 17805812

Country of ref document: EP

Kind code of ref document: A1