CN108089905B - Do not disturb processing method, terminal and computer readable medium - Google Patents

Do not disturb processing method, terminal and computer readable medium Download PDF

Info

Publication number
CN108089905B
CN108089905B CN201711402711.1A CN201711402711A CN108089905B CN 108089905 B CN108089905 B CN 108089905B CN 201711402711 A CN201711402711 A CN 201711402711A CN 108089905 B CN108089905 B CN 108089905B
Authority
CN
China
Prior art keywords
time period
terminal
target time
disturbance
unused state
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.)
Active
Application number
CN201711402711.1A
Other languages
Chinese (zh)
Other versions
CN108089905A (en
Inventor
刘文泉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Original Assignee
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yulong Computer Telecommunication Scientific Shenzhen Co Ltd filed Critical Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Priority to CN201711402711.1A priority Critical patent/CN108089905B/en
Publication of CN108089905A publication Critical patent/CN108089905A/en
Application granted granted Critical
Publication of CN108089905B publication Critical patent/CN108089905B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44568Immediately runnable code
    • G06F9/44578Preparing or optimising for loading

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the invention discloses a disturbance-free processing method, a terminal and a computer readable medium, wherein the method comprises the following steps: acquiring a target time period, wherein the target time period is a disturbance-free time period applied to a terminal in an unused state; when the terminal is in an unused state, replacing an initial disturbance-free time period in a disturbance-free mode of the terminal by the target time period; and controlling the terminal to enter a disturbance-free mode so as to start a disturbance-free function of the terminal in the target time period, so that the complexity of operation can be reduced.

Description

Do not disturb processing method, terminal and computer readable medium
Technical Field
The present invention relates to the field of electronic technologies, and in particular, to a method, a terminal, and a computer-readable medium for processing without disturbing.
Background
With the development of science and technology, the functions of the terminal equipment are more and more powerful. When a user sleeps and has a rest, the user can start the disturbance-free mode in the terminal equipment to prevent the user from being awakened by ringtones such as incoming calls, short messages or alarm clocks. However, the conventional do-not-disturb mode can only set a fixed do-not-disturb time, for example, 22:00-07:00 is set as the fixed do-not-disturb time. If the user occasionally shifts to 1 and 2 am, the user wants to sleep for a while in the morning the next day to get enough sleep to compensate for the fatigue caused by the shift at night. At this point, the user is required to manually change the do-not-disturb time in the do-not-disturb mode, increasing the complexity of the operation.
Disclosure of Invention
The embodiment of the invention provides a disturbance-free processing method, a terminal and a computer readable medium, which can reduce the complexity of operation.
In a first aspect, an embodiment of the present invention provides a disturbance-free processing method, where the method includes: acquiring a target time period, wherein the target time period is a disturbance-free time period applied to a terminal in an unused state; when the terminal is in an unused state, replacing an initial disturbance-free time period in a disturbance-free mode of the terminal by the target time period; and controlling the terminal to enter a disturbance-free mode so as to start a disturbance-free function of the terminal in the target time period.
Optionally, the specific implementation of obtaining the target time period is as follows: acquiring a first duration corresponding to the initial disturbance-free time period; and taking the detection moment when the terminal is detected to be in the unused state as the starting point of the target time period, and taking the first time length as the time length of the target time period so as to determine the target time period.
Optionally, the specific implementation of obtaining the target time period is as follows: acquiring a preset second time length; and taking the detection moment when the terminal is detected to be in the unused state as the starting point of the target time period, and taking the second time length as the time length of the target time period so as to determine the target time period.
Optionally, the method further includes: and judging whether the terminal is in an unused state.
Optionally, the specific implementation of determining whether the terminal is in an unused state is as follows: detecting whether the frequency of the terminal used exceeds a preset frequency; if not, the terminal is judged to be in an unused state. Or, detecting whether the total used time of the terminal exceeds a preset value within a preset time; if not, the terminal is judged to be in an unused state.
Optionally, the method further includes: and if the target time period is detected to be finished, modifying the disturbance-free time period in the disturbance-free mode into the initial time period.
Optionally, the method further includes: and if the terminal is detected to be changed from the unused state to the used state in the target time period, modifying the disturbance-free time period in the disturbance-free mode into the initial time period.
In a second aspect, an embodiment of the present invention provides a terminal, where the terminal includes: an acquisition unit configured to acquire a target time period, which is a disturbance-free time period applied when the terminal is in an unused state; a replacing unit, configured to replace an initial disturbance-free time period in a disturbance-free mode of the terminal with the target time period when the terminal is in an unused state; and the control unit is used for controlling the terminal to enter a disturbance-free mode so as to start a disturbance-free function of the terminal in the target time period.
Optionally, the obtaining unit is specifically configured to: acquiring a first duration corresponding to the initial disturbance-free time period; and taking the detection moment when the terminal is detected to be in the unused state as the starting point of the target time period, and taking the first time length as the time length of the target time period so as to determine the target time period.
Optionally, the obtaining unit is specifically configured to: acquiring a preset second time length; and taking the detection moment when the terminal is detected to be in the unused state as the starting point of the target time period, and taking the second time length as the time length of the target time period so as to determine the target time period.
Optionally, the terminal further includes: and the judging unit is used for judging whether the terminal is in an unused state.
Optionally, the determining unit is specifically configured to: detecting whether the frequency of the terminal used exceeds a preset frequency; if not, the terminal is judged to be in an unused state. Or, detecting whether the total used time of the terminal exceeds a preset value within a preset time; if not, the terminal is judged to be in an unused state.
Optionally, the terminal further includes: and the modifying unit is used for modifying the disturbance-free time period in the disturbance-free mode into the initial time period if the target time period is detected to be ended.
Optionally, the modifying unit is specifically configured to: and if the terminal is detected to be changed from the unused state to the used state in the target time period, modifying the disturbance-free time period in the disturbance-free mode into the initial time period.
In a third aspect, an embodiment of the present invention provides another terminal, including a processor, a receiver, a transmitter, and a memory, where the processor, the receiver, the transmitter, and the memory are connected to each other, where the memory is used to store a computer program that supports the terminal to execute the foregoing method, and the computer program includes program instructions, and the processor is configured to call the program instructions to execute the foregoing method according to the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, in which a computer program is stored, the computer program comprising program instructions, which, when executed by a processor, cause the processor to perform the method of the first aspect.
The method comprises the steps of obtaining a target time period, wherein the target time period is an interference-free time period applied to a terminal in an unused state; when the terminal is in an unused state, replacing an initial disturbance-free time period in a disturbance-free mode of the terminal by the target time period; and controlling the terminal to enter a disturbance-free mode so as to start a disturbance-free function of the terminal in the target time period. By automatically replacing the do-not-disturb time period, the user is not required to manually set the time period, and the complexity of the operation can be reduced.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flow chart of a disturbance-free processing method according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart diagram of a disturbance-free processing method according to another embodiment of the present invention;
fig. 3 is a schematic block diagram of a terminal according to an embodiment of the present invention;
fig. 4 is a schematic block diagram of a terminal according to another embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to a determination" or "in response to a detection". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
In particular implementations, the terminals described in embodiments of the invention include, but are not limited to, other portable devices such as mobile phones, laptop computers, or tablet computers having touch sensitive surfaces (e.g., touch screen displays and/or touch pads). It should also be understood that in some embodiments, the device is not a portable communication device, but is a desktop computer having a touch-sensitive surface (e.g., a touch screen display and/or touchpad).
In the discussion that follows, a terminal that includes a display and a touch-sensitive surface is described. However, it should be understood that the terminal may include one or more other physical user interface devices such as a physical keyboard, mouse, and/or joystick.
The terminal supports various applications, such as one or more of the following: a drawing application, a presentation application, a word processing application, a website creation application, a disc burning application, a spreadsheet application, a gaming application, a telephone application, a video conferencing application, an email application, an instant messaging application, an exercise support application, a photo management application, a digital camera application, a web browsing application, a digital music player application, and/or a digital video player application.
Various applications that may be executed on the terminal may use at least one common physical user interface device, such as a touch-sensitive surface. One or more functions of the touch-sensitive surface and corresponding information displayed on the terminal can be adjusted and/or changed between applications and/or within respective applications. In this way, a common physical architecture (e.g., touch-sensitive surface) of the terminal can support various applications with user interfaces that are intuitive and transparent to the user.
Referring to fig. 1, which is a schematic flowchart of a method for processing without disturbing according to an embodiment of the present invention, the method for processing without disturbing shown in fig. 1 may include:
s101, the terminal acquires a target time period.
Wherein the target time period is a do-not-disturb time period applied when the terminal is in an unused state.
Specifically, the terminal first obtains a detection time period for detecting whether the terminal is in a use state. The detection period may be the same as the initial do-not-disturb period in the do-not-disturb mode, e.g., if the initial do-not-disturb period in the do-not-disturb mode is 22:00-07:00, then the detection period is also 22:00-07: 00. Of course, the detection time period may also be preset by the user, and the user may set a detection time period according to his work and rest habits, such as 23:00-08: 00. And in the detection time period, if the terminal is detected to be in an unused state, acquiring a target time period.
The specific implementation of obtaining the target time period may be: the terminal may first obtain a first duration corresponding to the initial do-not-disturb time period. Then, the detection time when the terminal is detected to be in the unused state is taken as the starting point of the target time period, and the first time length is taken as the time length of the target time period so as to determine the target time period.
For example, the terminal detects that the initial disturbance-free time period is 22:00-07:00, and calculates that the first duration corresponding to the initial disturbance-free time period is 9 hours. If the detection time when the terminal is detected to be in the unused state is 24:00, the terminal is taken as the starting point, the corresponding end time is 09:00 by pushing back for 9 hours, and the target time period is 24:00-09: 00.
Optionally, the specific implementation of obtaining the target time period may also be: the terminal first obtains a preset second duration. And then, taking the detection moment when the terminal is detected to be in the unused state as the starting point of the target time period, and taking the second time length as the time length of the target time period so as to determine the target time period.
For example, the user may preset a second time period as the sleep time period, such as 8 hours as the sleep time period. The terminal may acquire this second duration. If the detection time when the terminal is detected to be in the unused state is 24:00, the terminal is taken as the starting point, the corresponding end time is 08:00 by pushing back for 8 hours, and the target time period is 24:00-08: 00.
It should be noted that the above are only examples and are not exhaustive.
The step S101 has the following beneficial effects:
the terminal may also determine the target time period by initiating the do-not-disturb time period if the user forgets to preset the second duration. Even if the user forgets to set the second time after working overnight, the target time period can be determined through the operation, and the terminal is controlled to enter the disturbance-free mode in the target time period. Therefore, the user can have a rest in the target time period better, and the convenience of the terminal is improved.
And S102, when the terminal is in an unused state, the terminal adopts the target time period to replace the initial disturbance-free time period in the disturbance-free mode of the terminal.
Specifically, in the detection time period, whether the terminal is in an unused state or not is always detected. If the terminal is detected to be in the use state, it indicates that the user may still work in overtime, and the terminal is in the normal mode at this time. That is, if the terminal receives an incoming call or a short message, the terminal can output prompt information (such as ring tone and vibration). If the terminal is detected to be in an unused state, the terminal indicates that the user may have taken a sleep and a rest. Then the terminal will enter the do-not-disturb mode. At this time, the target time period is replaced by the initial disturbance-free time period, that is, the target time period is used as a new disturbance-free time period.
For example, the initial do-not-disturb time period is 22:00-07:00, which indicates that the user has usually had a rest to sleep during this time period, i.e. the terminal is in the do-not-disturb mode every day during the time period of 22:00-07: 00. And the target time period is now acquired to be 24:00-09: 00. The user can be shown to still use the mobile phone in the time period of 22:00-24:00, so that the user takes a rest and sleeps from 24: 00. Thus, the time period of 22:00-07:00 is replaced by the time period of 24:00-09:00, i.e., 24:00-09:00 is used as the sleep break for the user.
It should be noted that the above are only examples and are not exhaustive.
Step S102 has the following beneficial effects:
during the detection period, when the terminal is in an unused state, it can be determined that the user has taken a rest to sleep. The initial do-not-disturb time period is then replaced with the target time period. The situation that the user forgets to change the initial disturbance-free time period and is awakened by the ring tones such as the alarm clock, the incoming call and the like after the initial time period arrives in the next morning can be avoided. In addition, without this detection period, the terminal would be detecting 24 hours a day. In this case, if the user is busy working in the daytime and the terminal is not used for two hours, it is also determined that the terminal is in an unused state. Thus, the terminal enters the do-not-disturb mode, which may cause the user to miss important incoming calls and messages. Therefore, the detection is required to be performed within a detection time period, so that the above-mentioned false detection situation can be avoided.
S103, controlling the terminal to enter a disturbance-free mode so as to start a disturbance-free function of the terminal in the target time period.
Specifically, after the terminal is controlled to enter the do-not-disturb mode, the terminal starts the do-not-disturb function within the target time period. That is, even if the terminal receives the incoming call or the short message in the target time period, the terminal will not send out the ring or vibration prompting message.
In the embodiment of the invention, the terminal firstly obtains the target time period, wherein the target time period is a disturbance-free time period applied to the terminal in an unused state. And then replacing the initial disturbance-free time period in the disturbance-free mode of the terminal with the target time period when the terminal is in the unused state. And then controlling the terminal to enter a disturbance-free mode so as to start a disturbance-free function of the terminal in the target time period. By automatically replacing the do-not-disturb time period, the user is not required to manually set the time period, and the complexity of the operation can be reduced.
Referring to fig. 2, which is a schematic flowchart of a method for processing without disturbing according to another embodiment of the present invention, the method for processing without disturbing shown in fig. 2 may include:
s201, the terminal acquires a target time period.
Wherein the target time period is a do-not-disturb time period applied when the terminal is in an unused state.
It should be noted that step S201 in the embodiment of the present invention may refer to step S101 in the above embodiment of the present invention, and details of the embodiment of the present invention are not described again.
S202, judging whether the terminal is in an unused state.
Specifically, the specific implementation of determining whether the terminal is in an unused state may be: detecting whether the frequency of the terminal used exceeds a preset frequency. If not, the terminal is judged to be in an unused state.
The frequency here may mean, for example, the number of times the terminal is used within one hour. The terminal can count the number of times of receiving the unlocking instruction or the number of times of lightening the screen within one hour. And if the number of times of the received unlocking instruction or the number of times of screen lightening does not exceed the preset number, judging that the terminal is in an unused state.
Optionally, the specific implementation of determining whether the terminal is in an unused state may also be: and detecting whether the total used time of the terminal exceeds a preset value or not within a preset time. If not, the terminal is judged to be in an unused state.
For example, the preset duration may be one hour, and the terminal may count and detect a total duration when a screen of the terminal is in a bright screen state within the one hour, and if the total duration does not exceed the preset value, determine that the terminal is in an unused state.
Optionally, the specific implementation of determining whether the terminal is in an unused state may also be: whether a Global Positioning System (GPS) displacement exists is detected. And if no GPS displacement exists, judging that the terminal is in an unused state.
The detection may be performed, for example, by a gyroscope in the terminal. Reading the three-axis data of the gyroscope, and if the three-axis data are close to 0, judging that the terminal is in an unused state.
Optionally, the specific implementation of determining whether the terminal is in an unused state may also be: detecting whether the background has running application. If not, the terminal is judged to be in an unused state.
For example, it can be detected whether the song listening software is playing music, whether there is an operation of talking or sending a short message, etc. If the above operations are not detected, the terminal is judged to be in an unused state.
Step S202 has the following beneficial effects:
in the detection time period, if the frequency of the terminal used exceeds the preset frequency, or the time length of the terminal used exceeds the preset time length, the terminal is judged to be in the use state. For example, the user wakes up in the middle of the night, and continues to sleep after seeing the user at the terminal for a while. It is detected that the terminal is used once, and for the conventional technology, the terminal is changed from the do-not-disturb mode to the normal mode. However, for the embodiment of the present invention, since the preset frequency is 5, it is still determined that the terminal is in an unused state, and the terminal is still in the do-not-disturb mode, so that the user is not awakened by ring tones such as an incoming call and an alarm clock when sleeping. Therefore, through the operation, a condition of misjudgment can be avoided, and the accuracy of the detection result is improved.
And S203, when the terminal is in an unused state, the terminal adopts the target time period to replace the initial disturbance-free time period in the disturbance-free mode of the terminal.
And S204, controlling the terminal to enter a disturbance-free mode so as to start a disturbance-free function of the terminal in the target time period.
It should be noted that steps S203 to S204 in the embodiment of the present invention may refer to steps S102 to S103 in the above embodiment of the present invention, and are not described again in the embodiment of the present invention.
It should be further noted that, if it is detected that the terminal is changed from the unused state to the used state in the target time period, the disturbance-free time period in the disturbance-free mode is modified to the initial time period.
Specifically, even if the terminal enters the do-not-disturb mode within the target time period, the terminal may always detect whether the terminal is in an unused state. And if the terminal is judged to be changed from the unused state to the used state, the terminal enters a normal mode, and the next disturbance-free time period is modified into the initial time period.
For example, the initial time period is 22:00-07:00 and the target time period is 24:00-09: 00. The terminal enters the do-not-disturb mode within the target time period of 24:00-09: 00. However, if the terminal detects that the terminal is changed from the non-use state to the use state in the time period of 4:00-05:00, the terminal is changed from the non-disturbance mode to the normal mode. And modify the do-not-disturb time period in the do-not-disturb mode to the initial time period, i.e., to 22:00-07: 00.
And S205, if the target time period is detected to be ended, modifying the disturbance-free time period in the disturbance-free mode to the initial time period by the terminal.
Specifically, when detecting that the target time period is over, the terminal enters a normal mode. Furthermore, the do-not-disturb time period in the do-not-disturb mode is also changed to the initial time period again.
Step S205 has the following beneficial effects:
the embodiment of the invention aims at the condition that the user stays late for one shift, and the target time period is used for replacing the initial disturbance-free time period after the user stays late for one shift, so that the user can sleep for enough time. However, the user stays overnight during the shift only occasionally, and therefore, the terminal automatically changes the do-not-disturb time period to the initial do-not-disturb time period after detecting the end of the target time period. The user does not need to manually change the terminal, so that the complexity of operation is reduced, and the convenience of the terminal is improved.
In the embodiment of the invention, the terminal firstly obtains the target time period. And then determines whether the terminal is in an unused state. And when the terminal is in an unused state, replacing the initial disturbance-free time period in the disturbance-free mode of the terminal by adopting the target time period. And then controlling the terminal to enter a disturbance-free mode so as to start a disturbance-free function of the terminal in the target time period. By automatically replacing the do-not-disturb time period, the user is not required to manually set the time period, and the complexity of the operation can be reduced.
Referring to fig. 3, which is a schematic block diagram of a terminal according to an embodiment of the present invention, the terminal according to the embodiment of the present invention shown in fig. 3 may include:
an obtaining unit 301, configured to obtain a target time period, where the target time period is a disturbance-free time period applied when the terminal is in an unused state.
A replacing unit 302, configured to replace the initial do-nothing time period in the do-nothing mode of the terminal with the target time period when the terminal is in an unused state.
A control unit 303, configured to control the terminal to enter a do-not-disturb mode, so as to start a do-not-disturb function of the terminal within the target time period.
Optionally, the obtaining unit 301 is specifically configured to: acquiring a first duration corresponding to the initial disturbance-free time period; and taking the detection moment when the terminal is detected to be in the unused state as the starting point of the target time period, and taking the first time length as the time length of the target time period so as to determine the target time period.
Optionally, the obtaining unit 301 is specifically configured to: acquiring a preset second time length; and taking the detection moment when the terminal is detected to be in the unused state as the starting point of the target time period, and taking the second time length as the time length of the target time period so as to determine the target time period.
Optionally, the terminal further includes a determining unit 304, configured to determine whether the terminal is in an unused state.
Optionally, the determining unit 304 is specifically configured to: detecting whether the frequency of the terminal used exceeds a preset frequency; if not, the terminal is judged to be in an unused state. Or, detecting whether the total used time of the terminal exceeds a preset value within a preset time; if not, the terminal is judged to be in an unused state.
Optionally, the terminal further includes a modifying unit 305, configured to modify the do-not-disturb time period in the do-not-disturb mode to the initial time period if it is detected that the target time period ends.
Optionally, the modifying unit 305 is specifically configured to: and if the terminal is detected to be changed from the unused state to the used state in the target time period, modifying the disturbance-free time period in the disturbance-free mode into the initial time period.
In the embodiment of the present invention, the target time period is acquired by the acquisition unit 301. When the terminal is in an unused state, the replacing unit 302 is invoked to replace the initial do-not-disturb time period in the do-not-disturb mode of the terminal with the target time period. Then, the control unit 303 is invoked to control the terminal to enter the do-not-disturb mode, so as to start the do-not-disturb function of the terminal in the target time period. By automatically replacing the do-not-disturb time period, the user is not required to manually set the time period, and the complexity of the operation can be reduced.
Fig. 4 is a schematic block diagram of a terminal according to another embodiment of the present invention. The terminal in the present embodiment shown in fig. 4 may include: one or more processors 401; one or more receivers 402, one or more transmitters 403, and memory 404. The processor 401, receiver 402, transmitter 403 and memory 404 are connected by a bus 405. The memory 402 is used to store computer programs comprising program instructions and the processor 401 is used to execute the program instructions stored by the memory 402.
In an embodiment of the present invention, one or more instructions stored in a computer storage medium are loaded and executed by processor 401 to implement the corresponding steps of the method flows shown in fig. 1-2; in a particular implementation, at least one instruction in the computer storage medium is loaded by the processor 401 and performs the following steps:
acquiring a target time period, wherein the target time period is a disturbance-free time period applied to a terminal in an unused state; when the terminal is in an unused state, replacing an initial disturbance-free time period in a disturbance-free mode of the terminal by the target time period; and controlling the terminal to enter a disturbance-free mode so as to start a disturbance-free function of the terminal in the target time period.
Optionally, the at least one program instruction is loaded by the processor 401, and is further configured to perform: acquiring a first duration corresponding to the initial disturbance-free time period; and taking the detection moment when the terminal is detected to be in the unused state as the starting point of the target time period, and taking the first time length as the time length of the target time period so as to determine the target time period.
Optionally, the at least one program instruction is loaded by the processor 401, and is further configured to perform: acquiring a preset second time length; and taking the detection moment when the terminal is detected to be in the unused state as the starting point of the target time period, and taking the second time length as the time length of the target time period so as to determine the target time period.
Optionally, the at least one program instruction is loaded by the processor 401, and is further configured to perform: and judging whether the terminal is in an unused state.
Optionally, the at least one program instruction is loaded by the processor 401, and is further configured to perform: detecting whether the frequency of the terminal used exceeds a preset frequency; if not, the terminal is judged to be in an unused state. Or, detecting whether the total used time of the terminal exceeds a preset value within a preset time; if not, the terminal is judged to be in an unused state.
Optionally, the at least one program instruction is loaded by the processor 401, and is further configured to perform: and if the target time period is detected to be finished, modifying the disturbance-free time period in the disturbance-free mode into the initial time period.
Optionally, the at least one program instruction is loaded by the processor 401, and is further configured to perform: and if the terminal is detected to be changed from the unused state to the used state in the target time period, modifying the disturbance-free time period in the disturbance-free mode into the initial time period.
It should be understood that, in the embodiments of the present invention, the Processor 401 may be a Central Processing Unit (CPU), and the Processor may also be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The receiver 402 may include a touch pad, a fingerprint sensor (for collecting fingerprint information of a user and direction information of the fingerprint), a microphone, etc., and the transmitter 403 may include a display (LCD, etc.), a speaker, etc.
The memory 404 may include a read-only memory and a random access memory, and provides instructions and data to the processor 401. A portion of the memory 404 may also include non-volatile random access memory. For example, the memory 404 may also store device type information.
In a specific implementation, the processor 401, the receiver 402, and the transmitter 403 described in this embodiment of the present invention may execute the implementation manners described in the first embodiment and the second embodiment of the disturbance-free processing method provided in this embodiment of the present invention, and may also execute the implementation manners of the terminal described in this embodiment of the present invention, which is not described herein again.
In another embodiment of the present invention, a computer-readable storage medium is provided, which stores a computer program, where the computer program includes program instructions, and the program instructions, when executed by a processor, implement the implementation of the disturbance-free processing method described in fig. 1 and 2 provided by the embodiment of the present invention.
The computer readable storage medium may be an internal storage unit of the terminal according to any of the foregoing embodiments, for example, a hard disk or a memory of the terminal. The computer readable storage medium may also be an external storage device of the terminal, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the terminal. Further, the computer-readable storage medium may also include both an internal storage unit and an external storage device of the terminal. The computer-readable storage medium is used for storing the computer program and other programs and data required by the terminal. The computer readable storage medium may also be used to temporarily store data that has been output or is to be output.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the terminal and the unit described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed terminal and method can be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may also be an electric, mechanical or other form of connection.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment of the present invention.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention essentially or partially contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
While the invention has been described with reference to specific embodiments, the invention is not limited thereto, and various equivalent modifications and substitutions can be easily made by those skilled in the art within the technical scope of the invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A do not disturb processing method, comprising:
acquiring a target time period, wherein the target time period is a disturbance-free time period applied to a terminal in an unused state;
when the terminal is in an unused state, replacing an initial disturbance-free time period in a disturbance-free mode of the terminal by the target time period;
controlling the terminal to enter a do-not-disturb mode so as to start a do-not-disturb function of the terminal in the target time period;
wherein, the obtaining the target time period comprises: acquiring a preset time length; taking the detection moment when the terminal is detected to be in an unused state as the starting point of a target time period, and taking the preset time length as the time length of the target time period to determine the target time period; the preset time length comprises a first time length corresponding to the initial disturbance-free time period or a second time length corresponding to the sleep time length.
2. The method of claim 1, wherein obtaining the target time period comprises:
acquiring a first duration corresponding to the initial disturbance-free time period;
and taking the detection moment when the terminal is detected to be in the unused state as the starting point of the target time period, and taking the first time length as the time length of the target time period so as to determine the target time period.
3. The method of claim 1, wherein obtaining the target time period comprises:
acquiring a preset second time length;
and taking the detection moment when the terminal is detected to be in the unused state as the starting point of the target time period, and taking the second time length as the time length of the target time period so as to determine the target time period.
4. The method of claim 1, further comprising:
and judging whether the terminal is in an unused state.
5. The method of claim 4, wherein the determining whether the terminal is in an unused state comprises:
detecting whether the frequency of the terminal used exceeds a preset frequency;
if not, judging that the terminal is in an unused state;
alternatively, the first and second electrodes may be,
detecting whether the total used time of the terminal exceeds a preset value within a preset time;
if not, judging that the terminal is in an unused state.
6. The method of claim 1, further comprising:
and if the target time period is detected to be finished, modifying the disturbance-free time period in the disturbance-free mode into the initial time period.
7. The method of claim 6, further comprising:
and if the terminal is detected to be changed from the unused state to the used state in the target time period, modifying the disturbance-free time period in the disturbance-free mode into the initial time period.
8. A terminal, characterized in that it comprises means for performing the method according to any of claims 1-7.
9. A terminal, comprising a processor, a receiver, a transmitter and a memory, the processor, the receiver, the transmitter and the memory being interconnected, wherein the memory is configured to store a computer program comprising program instructions, the processor being configured to invoke the program instructions to perform the method of any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that the computer storage medium stores a computer program comprising program instructions that, when executed by a processor, cause the processor to carry out the method according to any one of claims 1-7.
CN201711402711.1A 2017-12-22 2017-12-22 Do not disturb processing method, terminal and computer readable medium Active CN108089905B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711402711.1A CN108089905B (en) 2017-12-22 2017-12-22 Do not disturb processing method, terminal and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711402711.1A CN108089905B (en) 2017-12-22 2017-12-22 Do not disturb processing method, terminal and computer readable medium

Publications (2)

Publication Number Publication Date
CN108089905A CN108089905A (en) 2018-05-29
CN108089905B true CN108089905B (en) 2020-04-07

Family

ID=62178167

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711402711.1A Active CN108089905B (en) 2017-12-22 2017-12-22 Do not disturb processing method, terminal and computer readable medium

Country Status (1)

Country Link
CN (1) CN108089905B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110290265B (en) * 2019-06-24 2021-12-14 深圳市锐尔觅移动通信有限公司 Mobile terminal mute adjustment method and device, mobile terminal and storage medium
CN110286951A (en) * 2019-06-28 2019-09-27 百度在线网络技术(北京)有限公司 A kind of processing method of interruption-free, device and storage medium
CN111782496B (en) * 2020-06-30 2023-10-27 联想(北京)有限公司 Processing method and processing equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103051803A (en) * 2012-12-28 2013-04-17 海南舟悠科技有限公司 Method and system for automatically processing call and message of mobile phone in vehicle driving process
CN103957327A (en) * 2014-05-21 2014-07-30 上海华勤通讯技术有限公司 Automatic contextual model switching method for mobile terminal and mobile terminal
CN104683581A (en) * 2015-03-04 2015-06-03 广东欧珀移动通信有限公司 Intelligent terminal communication reminding method and device
CN105577898A (en) * 2014-10-15 2016-05-11 昆山研达电脑科技有限公司 System and method for turning on no-disturbing mode of mobile phone automatically
CN106453956A (en) * 2016-11-25 2017-02-22 维沃移动通信有限公司 Method for setting no-disturbing mode and mobile terminal
CN107087078A (en) * 2017-06-19 2017-08-22 上海展扬通信技术有限公司 radio control method, device and terminal device
US9749467B1 (en) * 2007-10-12 2017-08-29 Google Inc. Disruption blocking in mobile devices

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2533400A (en) * 2014-12-19 2016-06-22 Ibm Mobile phone call handling

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9749467B1 (en) * 2007-10-12 2017-08-29 Google Inc. Disruption blocking in mobile devices
CN103051803A (en) * 2012-12-28 2013-04-17 海南舟悠科技有限公司 Method and system for automatically processing call and message of mobile phone in vehicle driving process
CN103957327A (en) * 2014-05-21 2014-07-30 上海华勤通讯技术有限公司 Automatic contextual model switching method for mobile terminal and mobile terminal
CN105577898A (en) * 2014-10-15 2016-05-11 昆山研达电脑科技有限公司 System and method for turning on no-disturbing mode of mobile phone automatically
CN104683581A (en) * 2015-03-04 2015-06-03 广东欧珀移动通信有限公司 Intelligent terminal communication reminding method and device
CN106453956A (en) * 2016-11-25 2017-02-22 维沃移动通信有限公司 Method for setting no-disturbing mode and mobile terminal
CN107087078A (en) * 2017-06-19 2017-08-22 上海展扬通信技术有限公司 radio control method, device and terminal device

Also Published As

Publication number Publication date
CN108089905A (en) 2018-05-29

Similar Documents

Publication Publication Date Title
EP3163854B1 (en) Reduced notifications for same push messages
CN107193598B (en) Application starting method, mobile terminal and computer readable storage medium
KR101964831B1 (en) Method and device for reminding in shutdown state
CN108089905B (en) Do not disturb processing method, terminal and computer readable medium
KR101446139B1 (en) Portable terminal and method for setting alarm thereof
US20130260784A1 (en) Personal electronic device locator
CN106469396B (en) Method and terminal for pushing advertisement information
CN107729781B (en) Method for preventing loss of mobile terminal, mobile terminal and computer readable storage medium
CN111083042B (en) Template message pushing method, device, equipment and storage medium
CN106569585A (en) Method and terminal of managing application program process
CN109032727B (en) Application program starting method, application program starting device and terminal equipment
CN107197082A (en) A kind of information prompting method and terminal
EP2846239A1 (en) Apparatus and method for executing function in electronic device
CN107872573B (en) Alarm clock setting method and terminal
US9692876B2 (en) Suppress and resume notifications based on motion
CN110491419B (en) Playing control method, system and terminal equipment
CN108021301A (en) A kind of volume adjusting method, terminal device and computer-readable recording medium
CN107888480A (en) Prompting message processing method, device, storage medium and mobile terminal
EP2626776A2 (en) Electronic device and screen lock method
CN108132803B (en) Timing keep-alive and awakening method, system, terminal and medium based on mobile terminal
CN106886600B (en) File management method and terminal
CN106571134B (en) Anti-stealing recording method and terminal
CN107040659B (en) Intelligent shutdown interface display method and terminal
US11108709B2 (en) Provide status message associated with work status
CN108536508B (en) Interface processing method and device and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant