CN113596250B - Method and device for controlling non-disturbing mode of terminal equipment, communication device and readable storage medium - Google Patents

Method and device for controlling non-disturbing mode of terminal equipment, communication device and readable storage medium Download PDF

Info

Publication number
CN113596250B
CN113596250B CN202110731491.7A CN202110731491A CN113596250B CN 113596250 B CN113596250 B CN 113596250B CN 202110731491 A CN202110731491 A CN 202110731491A CN 113596250 B CN113596250 B CN 113596250B
Authority
CN
China
Prior art keywords
value
target
new message
disturbance
detected
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
CN202110731491.7A
Other languages
Chinese (zh)
Other versions
CN113596250A (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.)
Shanghai Glory Smart Technology Development Co ltd
Original Assignee
Honor Device 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 Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202110731491.7A priority Critical patent/CN113596250B/en
Publication of CN113596250A publication Critical patent/CN113596250A/en
Application granted granted Critical
Publication of CN113596250B publication Critical patent/CN113596250B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72463User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions to restrict the functionality of the device

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The embodiment of the application provides a method and a device for controlling a no-disturbance mode of a terminal device. According to the method, whether a user executes a target action on the terminal equipment is periodically detected in a disturbance-free mode, and if the detection period number of the target action which is not continuously detected exceeds a first preset threshold value in the state that the disturbance-free mode is opened, the disturbance-free mode is closed. In the scheme, when the user does not continuously execute the target action, the terminal device is considered to be in the idle state, and the disturbance-free mode can be automatically closed at the moment, so that the situation that the user forgets to actively close the disturbance-free mode after the terminal device is used is avoided, the time that the user possibly misses the reminding of important messages is further reduced, the important messages which the user possibly misses are greatly reduced, and the user experience is better.

Description

Disturbance-free mode control method and device for terminal equipment, communication device and readable storage medium
Technical Field
The present application relates to the field of terminal device technologies, and in particular, to a method and an apparatus for controlling a no-disturb mode of a terminal device.
Background
At present, functions of terminal equipment are more and more diversified, when a game is played or a video is watched on the terminal equipment, if a survival process (such as a system process or a process of an instant messaging application) on the terminal equipment receives a new message, the new message is reminded in a pop-up window mode, and at the moment, if the new message pop-up window is suddenly displayed on a game interface or a video interface, important contents are possibly shielded by the new message pop-up window or a user closes the new message pop-up window to mistakenly touch a screen, so that the game experience and the video watching experience are greatly reduced.
In order to avoid the influence of the new message popup in the game mode or the video mode, a user can actively start the disturbance-free mode of the terminal device under normal conditions, and all new messages cannot be reminded through the popup under the disturbance-free mode, so that the situation that the new message popup shields important contents or the user closes the new message popup to mistakenly touch a screen can be avoided.
However, in the non-disturbing mode, if an important message, such as an offer or interview message, arrives, the relevant information will not be prompted by a pop-up window. If the user forgets to actively turn off the do-not-disturb mode after the terminal device is used, an unnecessary time period without message reminding is prolonged, that is, the current do-not-disturb mode control mode may cause the user to miss more important messages, which is likely to cause more serious adverse consequences.
Disclosure of Invention
The existing disturbance-free mode control mode has the problem that a user easily misses more important messages. In order to solve the problem, an embodiment of the present application provides a method and an apparatus for controlling a do-not-disturb mode of a terminal device, and specifically, the present application discloses the following technical solutions:
in a first aspect, an embodiment of the present application provides a method for controlling a do-not-disturb mode of a terminal device, including:
in the non-disturbing mode, periodically detecting whether a user executes a target action on the terminal equipment;
if the target action is not detected, determining that the detection cycle number of the target action is not detected continuously after the disturbance-free mode is opened;
and if the detection cycle number is greater than or equal to a first preset threshold value, closing the disturbance-free mode.
According to the method provided by the embodiment, whether the user executes the target action on the terminal equipment is periodically detected, and if the detection period number of the target action which is not continuously detected exceeds the first preset threshold value, the disturbance-free mode is closed, so that the disturbance-free mode is automatically closed in the idle state of the terminal equipment, the situation that the user forgets to actively close the disturbance-free mode after the terminal equipment is used is avoided, the time that the user possibly misses the reminding of important messages is further reduced, the number of the important messages which the user possibly misses is greatly reduced, and the user experience is better.
With reference to the first aspect, in an implementation manner of the first aspect, after the turning off the do-not-disturb mode, the method further includes:
periodically detecting whether the target action is executed by the user on the terminal equipment;
and detecting the target action, and starting the disturbance-free mode.
According to the implementation mode, after the disturbance-free mode is closed, whether the user executes the target action on the terminal equipment is continuously and periodically detected, once the target action is detected, the disturbance-free mode is automatically opened again, so that the disturbance-free mode is ensured to be opened only in a non-idle state to the maximum extent, the time that the user possibly misses important message reminding is further reduced, and the use experience of the user on the terminal equipment is greatly improved.
With reference to the first aspect, in another possible implementation manner of the first aspect, the method further includes:
if the number of detection cycles of the target action is not detected continuously is smaller than the first preset threshold, acquiring a target survival process of receiving a new message in the terminal equipment;
and carrying out voice broadcast on the new message received by the target survival process.
According to the implementation mode, after the disturbance-free mode is started, the new message is reminded in a voice broadcasting mode, so that the problem of reduction of user experience caused by the fact that important content is blocked is solved, the user cannot miss important messages, the important messages can be timely notified to the user who starts the disturbance-free mode to a greater extent, and message omission is avoided.
With reference to the first aspect, in yet another possible implementation manner of the first aspect, the acquiring a target surviving process in the terminal device, where the target surviving process receives a new message, includes:
if any target survival process in the terminal equipment receives a new message, setting a value of a preset new message state bit as a first preset target value for indicating that the terminal equipment has received the new message;
and acquiring the application information of the target survival process.
With reference to the first aspect, in yet another possible implementation manner of the first aspect, the method further includes:
and if all the survival processes in the terminal equipment do not receive the new message, setting the value of the state bit of the new message as a first preset initial value for indicating that the terminal equipment does not receive the new message.
The realization mode reflects the condition that any survival process in the terminal equipment receives the new message through the value of the preset new message state bit, is easy to realize and has higher practicability.
With reference to the first aspect, in another possible implementation manner of the first aspect, the performing voice broadcast on the new message received by the target keep alive process includes:
detecting the value of the new message status bit every other preset time length;
if the value of the new message status bit is the first preset target value, performing voice broadcast on the new message received by the target survival process;
and after the voice broadcasting is finished, restoring the value of the new message state bit to the first preset initial value.
According to the implementation mode, the voice broadcast is carried out on the new message received by the target survival process every preset time, so that the voice prompt can keep a proper broadcast frequency, and the user experience is further improved.
With reference to the first aspect, in a further possible implementation manner of the first aspect, the determining that the number of detection cycles of the target action is not detected continuously after the do-not-disturb mode is turned on includes:
after the disturbance-free mode is started, determining the number of detection cycles in which the target motion is not detected continuously according to the value of a target motion detection flag, a second preset initial value and a preset accumulated value in the current cycle, wherein the value of the target motion detection flag is used for indicating whether the target motion is detected, the second preset initial value is used for indicating that the target motion is detected, and the accumulated value is used for indicating a unit value which should be increased by the target motion detection flag when the target motion is not detected.
With reference to the first aspect, in a further possible implementation manner of the first aspect, the value of the target action detection flag is determined by:
if the target action is not detected, the accumulated value is added with the value of a target action detection flag bit in the previous period of the current period to determine that the accumulated value is a second target value;
determining the value of a target action detection flag bit in the current period as the second target value;
and if the target action is detected, determining the value of the target action detection flag bit in the current period as the second preset initial value.
The implementation mode reflects whether the action to be detected is the target action or not by presetting the target action detection zone bit and utilizing the value of the target action detection zone bit, and the implementation mode is simple and clear, easy to implement and high in practicability.
With reference to the first aspect, in a further possible implementation manner of the first aspect, the target action includes a touch screen operation or a gazing operation, where the gazing operation is an operation of the user to view content displayed by the terminal device.
With reference to the first aspect, in yet another possible implementation manner of the first aspect, the periodically detecting whether the user performs the target action on the terminal device includes:
periodically detecting whether a user performs a touch screen operation on the terminal equipment;
or, periodically detecting whether the user performs the gazing operation on the terminal equipment.
This implementation mode detects through touch screen operation, has agreed with the scene of operation class such as recreation better, has looked at the operation and has detected the scene of watching class such as having agreed with the video better through watching, has higher practicality.
In a second aspect, the present application further provides a device for controlling a do-not-disturb mode of a terminal device, including:
the target action detection module is used for periodically detecting whether a user executes a target action on the terminal equipment in a disturbance-free mode;
the detection cycle number determining module is used for determining that the detection cycle number of the target motion is not detected continuously after the disturbance-free mode is opened if the target motion is not detected;
and the disturbance-free mode control module is used for closing the disturbance-free mode if the detection period number is greater than or equal to a first preset threshold value.
With reference to the second aspect, in a possible implementation manner of the second aspect, the target action detection module is further configured to periodically detect whether the target action is executed on the terminal device by the user after the do-not-disturb mode is turned off;
and the disturbance-free mode control module is also used for detecting the target action and starting the disturbance-free mode.
With reference to the second aspect, in another possible implementation manner of the second aspect, the apparatus further includes:
a target survival process determining module, configured to, if the number of detection cycles during which the target action is not detected continuously is smaller than the first preset threshold, obtain a target survival process in the terminal device, where the new message is received;
and the voice broadcasting module is used for carrying out voice broadcasting on the new message received by the target survival process.
With reference to the second aspect, in a further possible implementation manner of the second aspect, the target surviving process determination module is further configured to:
if any target survival process in the terminal equipment receives a new message, setting a value of a preset new message state bit as a first preset target value for indicating that the terminal equipment has received the new message;
acquiring application information of the target survival process;
and if all the survival processes in the terminal equipment do not receive the new message, setting the value of the state bit of the new message as a first preset initial value for indicating that the terminal equipment does not receive the new message.
With reference to the second aspect, in yet another possible implementation manner of the second aspect, the voice broadcast module is further configured to:
detecting the value of the new message status bit every other preset time length;
if the value of the new message status bit is the first preset target value, performing voice broadcast on the new message received by the target survival process;
and after the voice broadcasting is finished, restoring the value of the new message state bit to the first preset initial value.
With reference to the second aspect, in a further possible implementation manner of the second aspect, the detection cycle number determining module is further configured to:
after the disturbance-free mode is started, determining the number of detection cycles in which the target motion is not detected continuously in the current cycle according to the value of a target motion detection flag bit, a second preset initial value and a preset accumulated value, wherein the value of the target motion detection flag bit is used for indicating whether the target motion is detected, the second preset initial value is used for indicating that the target motion is detected, and the accumulated value is used for indicating a unit value which should be increased by the target motion detection flag bit when the target motion is not detected.
With reference to the second aspect, in a further possible implementation manner of the second aspect, the detection cycle number determining module is further configured to determine the value of the target action detection flag by:
if the target action is not detected, adding the accumulated value and the value of a target action detection flag bit in the previous period of the current period to determine that the accumulated value is a second target value;
determining the value of a target action detection flag bit in the current period as the second target value;
and if the target action is detected, determining the value of the target action detection flag bit in the current period as the second preset initial value.
With reference to the second aspect, in a further possible implementation manner of the second aspect, the target action includes a touch screen operation or a gaze operation, where the gaze operation is an operation of the user to view content displayed by the terminal device.
With reference to the second aspect, in a further possible implementation manner of the second aspect, the target action detection module is further configured to:
periodically detecting whether a user performs a touch screen operation on the terminal equipment;
or, periodically detecting whether the user performs the gazing operation on the terminal equipment.
In a third aspect, the present application further provides a communication apparatus, including:
at least one processor and a memory, wherein the memory,
the memory to store program instructions;
the processor is configured to call and execute the program instructions stored in the memory to implement the methods in the foregoing first aspect and various implementation manners of the first aspect.
In a fourth aspect, the present application further provides a computer-readable storage medium, where instructions are stored, and when the instructions are executed on a computer, the instructions implement the first aspect and the method in each implementation manner of the first aspect.
The embodiment of the application provides a method and a device for controlling a no-disturbance mode of a terminal device. In the method, whether a user executes a target action on the terminal equipment is periodically detected, and if the detection period number of the target action which is not continuously detected exceeds a first preset threshold value, the disturbance-free mode is closed.
In the prior art, in order to avoid the situation that a new message popup blocks important content or a screen is touched by mistake due to closing of the new message popup, a user usually turns on the do-not-disturb mode if necessary, however, after the terminal device is used, the user may forget to actively turn off the do-not-disturb mode, and then unnecessary turn-on time of the do-not-disturb mode is prolonged, so that the user may miss more important messages.
By the method provided by the embodiment of the application, if the user does not execute the target action continuously, the terminal device is considered to be in the idle state temporarily, and the disturbance-free mode can be automatically closed in the idle state of the terminal device, so that the situation that the user forgets to actively close the disturbance-free mode after the terminal device is used is avoided, the time that the user possibly misses the important message reminding is further reduced, the important messages that the user possibly misses are greatly reduced, and the user experience is better.
Drawings
Fig. 1 is a schematic diagram of a new message reminding method of a terminal device according to an embodiment of the present application;
fig. 2 is a schematic flowchart corresponding to a method for controlling a do-not-disturb mode of a terminal device according to an embodiment of the present application;
fig. 3 is a schematic flowchart corresponding to another method for controlling a do-not-disturb mode of a terminal device according to an embodiment of the present application;
fig. 4 (a) is a flowchart illustrating an exemplary first method for controlling a no-disturb mode of a terminal device in a game scene according to an embodiment of the present application;
fig. 4 (b) is a flow chart of an application architecture layer corresponding to an exemplary disturbance-free mode control method for a terminal device in a game scene provided in the embodiment of the present application;
fig. 5 (a) is a schematic flowchart corresponding to a second example of a method for controlling a do-not-disturb mode of a terminal device in a video scene according to an embodiment of the present application;
fig. 5 (b) is a flow chart of an application architecture layer corresponding to an example second of a method for controlling an undisturbed mode of a terminal device in a video scene according to an embodiment of the present application;
fig. 6 is a schematic flowchart of a corresponding process of a voice broadcast method in a do-not-disturb mode according to an embodiment of the present application;
fig. 7 is a schematic view of a specific flow corresponding to a voice broadcast method in a do-not-disturb mode according to an embodiment of the present application;
fig. 8 is a schematic view of a flow of an application architecture layer corresponding to a voice broadcast method in a do-not-disturb mode according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a disturbance-free mode control apparatus of a terminal device according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of a communication device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
The terminology used in the following examples is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of this application and the appended claims, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, such as "one or more", unless the context clearly indicates otherwise. It should also be understood that in the following embodiments of the present application, "at least one", "one or more" means one, two or more. The term "and/or" is used to describe an association relationship that associates objects, meaning that three relationships may exist; for example, a and/or B, may represent: a exists singly, A and B exist simultaneously, and B exists singly, wherein A and B can be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
Reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless expressly specified otherwise.
In the existing disturbance-free mode control mode, the problem that more important messages are easily missed by a user exists. In order to solve the problem, embodiments of the present application provide a method and an apparatus for controlling a do-not-disturb mode of a terminal device.
The method is applied to terminal equipment, the terminal equipment can be mobile phones, tablet computers, notebook computers, ultra-mobile personal computers (UMPCs), handheld computers, netbooks, personal Digital Assistants (PDAs), intelligent wearable equipment, virtual reality equipment and other terminal equipment, and the method is not limited in any way in the embodiment of the application.
Taking a mobile phone as an example of the terminal device, before explaining a technical solution of an embodiment of the present application, a new message reminding method of an existing terminal device is explained with reference to the accompanying drawings.
Referring to a schematic diagram of a new message reminding mode of a terminal device shown in fig. 1, as shown in a in fig. 1, a display screen of the terminal device in a normal use scene is shown, and as shown in B in fig. 1, a display screen of the terminal device when a new message is reminded by a new message popup in a case that a new message is received by a process.
In the new message reminding mode, the new message popup is easy to block important contents, and the use experience of the terminal equipment of a user is greatly reduced, so that the user usually starts the disturbance-free mode when necessary to prevent the occurrence of the new message popup, but after the disturbance-free mode is started, important messages or unimportant messages received by all processes are rejected to be reminded, and if the user forgets to turn off the disturbance-free mode at the moment, the unnecessary starting time of the disturbance-free mode is further prolonged, so that the user can possibly miss more important messages.
In order to reduce the time that the user may miss the important message alert and improve the user experience, the embodiment provides a method for controlling a do-not-disturb mode of a terminal device, as shown in fig. 2, specifically, the method includes:
step S201, in the no-disturbance mode, periodically detecting whether the user performs the target action on the terminal device.
The do-not-disturb mode may be selected by the user as a setting item to turn on or off, which may include sub-options below: new message voice broadcast, touch screen detection, face detection and the like for use in different scenes.
Optionally, the target action includes a touch screen operation or a gaze operation, where the gaze operation is an operation of a user to view content displayed by the terminal device.
For example, different usage scenarios correspond to different target actions, for example, in a game scenario, a user needs to continuously perform a touch screen operation on a screen of a terminal device after starting a game application, and therefore in the game scenario, the target action may be determined as the touch screen operation. For example, in a video scene, a user needs to view content displayed on a screen of a terminal device after starting a video application, and thus, in the video scene, a target action may be determined as a gazing operation.
In other scenarios, operations other than the touch screen operation or the gaze operation may be determined as the target action according to actual situations, for example, in a novel reading scenario, the page sliding operation may be determined as the target action, and specific content of the target action is not limited.
Further, periodically detecting whether the user performs the target action on the terminal device may include:
and periodically detecting whether a user performs a touch screen operation on the terminal equipment. Specifically, the detection of the touch screen may be taken as a basis for determining to perform the touch screen operation. The method and the device can identify the action executed by the user on the terminal device and judge whether the action is touch screen operation.
Or, periodically detecting whether the user performs the gazing operation on the terminal equipment. Specifically, the face of the user may be recognized as a basis for determining to perform the gazing operation, and the manner of recognizing the face is not particularly limited, for example, a shot image of the front camera may be acquired.
It should be noted that, periodically detecting whether the user executes the target action on the terminal device may be detecting the action to be detected first, and then determining whether the action to be detected is the target action, or may be directly identifying the occurrence of the target action.
In addition, periodic detection may be performed using a transient (jeffies) timer.
Optionally, the period of detection and the duration consumed during detection may be determined according to actual needs of those skilled in the art, for example, when performing touch screen operation or gaze operation detection, the detection may be performed once per minute, 10 seconds for each detection, and neither the period of detection nor the duration consumed during detection is specifically limited.
Step S202, judging whether the target action is detected. If the target motion is not detected, step S203 is performed, and if the target motion is detected, step S206 is performed.
Step S203, determining the number of detection cycles for which no target motion is detected continuously after the do-not-disturb mode is turned on.
Specifically, there are various ways to determine the number of detection cycles during which no target motion is detected after the do-not-disturb mode is turned on. In one implementation, the number of detection cycles for which no target motion is detected after the do-not-disturb mode is turned on may be determined by:
and after the disturbance-free mode is started, determining the number of detection cycles in which the target motion is not detected continuously in the current cycle according to the value of the target motion detection flag bit, the second preset initial value and the preset accumulated value.
The value of the target motion detection flag bit is used for indicating whether a target motion is detected or not, the second preset initial value is used for indicating that the target motion is detected, and the accumulated value is used for indicating a unit value which is increased by the target motion detection flag bit when the target motion is not detected.
Alternatively, the second preset initial value may be set to 0, and the accumulated value may be set to 1.
Furthermore, after subtracting a second preset initial value from the value of the target motion detection flag bit in the current period to obtain a difference value, dividing the difference value by the accumulated value to obtain the number of detection cycles in which the target motion is not detected continuously in the current period.
Exemplarily, if the value of the target motion detection flag bit in the current cycle is 3, the second preset initial value is 0, and the accumulated value is 1, the number of detection cycles during which the target motion is not detected continuously is 3.
Further, in the current cycle, the value of the target action detection flag bit may be determined by:
first, if the target motion is not detected, the accumulated value is added to the value of the target motion detection flag in the previous cycle of the current cycle, and it is determined as the second target value.
Secondly, the value of the target action detection flag bit in the current period is determined as a second target value.
And finally, if the target action is detected, determining the value of the target action detection flag bit in the current period as a second preset initial value.
It should be noted that, if the current cycle is the first cycle, the value of the target motion detection flag in the previous cycle (which may be regarded as the zeroth cycle) of the first cycle is defaulted to be the second preset initial value.
For example, assuming that the second preset initial value is 0 and the accumulated value is 1, if the current cycle is the first cycle and no target motion is detected, the value of the target motion detection flag bit in the previous cycle of the current cycle is defaulted to be the second preset initial value, and at this time, the value of the target motion detection flag bit in the current cycle is 1. If the target motion is not detected in the second period, the value of the target motion detection flag in the second period is 2 obtained by adding the accumulated value 1 to the value 1 of the target motion detection flag in the first period. If the target action is detected in the third period, the value of the target action detection flag bit in the third period is restored to 0. By analogy, the description is omitted.
Through the scheme, whether the target action is detected or not is reflected by the value of the target action detection zone bit, so that the method is simple and clear, easy to implement and high in practicability.
In other feasible implementation forms, a person skilled in the art may determine, according to needs and actual conditions, the number of detection cycles of the target motion that is not detected continuously after the do-not-disturb mode is opened, for example, record the detection result in each detection cycle, and finally summarize and count the detection result in each detection cycle to obtain the number of detection cycles of the target motion that is not detected continuously, which is not limited specifically.
Step S204, determining whether the number of detection cycles of the continuous undetected target motion is greater than or equal to a first preset threshold, if the number of detection cycles is greater than or equal to the first preset threshold, executing step S205, and if the number of detection cycles of the continuous undetected target motion is less than the first preset threshold, executing step S206.
Alternatively, the first preset threshold may be set to 3. When the number of detection cycles for which the target motion is not detected is smaller than the first preset threshold, it may be further determined whether the number of detection cycles is greater than or equal to a second preset threshold, and then step S206 is executed, where the second preset threshold may be set to 0.
And step S205, closing the disturbance-free mode. After the closing, a reminding popup window of a new message can appear normally.
Step S206, the disturbance-free mode is kept on. At the moment, the new message is not reminded or broadcasted in voice.
Step S201 to step S206 provide a method for controlling a do-not-disturb mode of a terminal device, in the method, whether a user performs a target action on the terminal device is periodically detected, and if the number of detection cycles of the target action that is not continuously detected exceeds a first preset threshold, the do-not-disturb mode is turned off.
By the method provided by the embodiment of the application, the disturbance-free mode is automatically closed in the idle state of the terminal equipment, so that the situation that a user forgets to actively close the disturbance-free mode after the terminal equipment is used can be avoided, the time that the user possibly misses the reminding of important messages is further reduced, the important messages which the user possibly misses are reduced to the greatest extent, and the user experience is better.
In addition, referring to the schematic workflow diagram shown in fig. 3, in another method for controlling the do-not-disturb mode of the terminal device according to the embodiment of the present application, after step S205 is executed to turn off the do-not-disturb mode, the method further includes the following steps:
step S301, periodically detecting whether a user executes a target action on the terminal equipment.
It should be noted that the content of step S301 is the same as that of step S201, and is not described herein again.
Step S302, determining whether a target motion is detected, if so, performing step S303, otherwise, performing step S304.
Step S303, turn on the do not disturb mode. At the moment, the new message is not reminded or broadcasted in voice.
And step S304, keeping the disturbance-free mode off. After closing, a reminding popup window of a new message can appear normally.
By the scheme, after the disturbance-free mode is closed, whether the user executes the target action on the terminal equipment is continuously and periodically detected, once the target action is detected, the disturbance-free mode is automatically opened again, so that the disturbance-free mode is ensured to be opened only in a non-idle state to the maximum extent, time that the user possibly misses important message reminding is further reduced, and the use experience of the user on the terminal equipment is greatly improved.
For example, to more clearly illustrate another method for controlling an undisturbed mode of a terminal device provided in the embodiment of the present application, a game scene and a video scene are taken as examples respectively, and the method for controlling an undisturbed mode of another terminal device provided in the embodiment of the present application is specifically illustrated.
The first example is as follows:
in a game scene, starting an interference-free mode, and detecting whether a user performs a touch screen operation on the terminal device to close the interference-free mode. Assuming that the periodic detection is once every minute, 10 seconds for each detection, the second preset initial value is 0, the accumulated value is 1, the first preset threshold value is 3, and the second preset threshold value is 0.
Fig. 4 (a) exemplarily shows a flowchart corresponding to a first example of a method for controlling an undisturbed mode of a terminal device in a game scene provided in the embodiment of the present application, and as shown in fig. 4 (a), the method specifically includes the following steps:
in step S401, touch screen detection is performed for 10 seconds per minute. When the disturbance-free mode is started, the touch screen detection function can be used as a sub-option of the disturbance-free mode for a user to select, and as long as the user selects the option, when the disturbance-free game application is started to run in the foreground, the system can periodically perform touch screen detection.
Step S402, determining whether a touch screen is detected in the current cycle, if no touch screen is detected, executing step S403, and if a touch screen is detected, indicating that the user is operating the game, executing step S404.
Step S403, adding one to the value of the target motion detection flag in the previous cycle of the current cycle to obtain the value of the target motion detection flag in the current cycle.
Step S404, setting the value of the target motion detection flag bit in the current period to 0, and continuing to perform detection in the next period.
Step S405, determining whether the value of the target motion detection flag bit in the current period is greater than or equal to a first preset threshold value 3, if the value of the target motion detection flag bit in the current period is greater than or equal to 3, it indicates that the user is not playing the game, then step S406 is executed, otherwise, step S407 is executed.
Step S406, triggering interruption and closing the disturbance-free mode.
Step S407, the do not disturb mode is kept on.
And step S408, continuing touch screen detection in the next period.
Further, in order to implement the first example of the method for controlling the no-disturbance mode of the terminal device in the game scene provided by the embodiment of the present application, fig. 4 (b) exemplarily shows a flow diagram of an application architecture layer corresponding to the first example of the method for controlling the no-disturbance mode of the terminal device in the game scene provided by the embodiment of the present application. As shown in fig. 4 (b), in an application architecture layer (Framework layer) adopted in an example of the method for controlling the no-disturb mode of the terminal device in the game scene according to the embodiment of the present application, firstly, a touch screen detection process is started in the no-disturb process, secondly, a memory is created for the touch screen detection process, a reserved space is used for storing a target action detection flag and application information, and the target action detection flag is initialized, then, timing detection is performed by means of a jeffies timer, then, a modification flag is added according to a detection result, and an action of increasing a count value is performed, and finally, if a touch screen is not detected for three consecutive times, a signal is sent to the no-disturb process, the no-disturb mode is normally exited, and finally, after the no-disturb mode is closed, touch screen detection is continued, and if a touch screen is detected, the no-disturb process is restarted. The target action detection zone bit and the application information are stored in the shared memory, and the reserved space is released along with the ending of the disturbance-free process.
Example two:
and under a video scene, starting the disturbance-free mode, and detecting whether a user performs watching operation on the terminal equipment so as to close the disturbance-free mode. Assuming that the detection is performed once every minute, the second preset initial value is 0, the accumulated value is 1, the first preset threshold value is 3, and the second preset threshold value is 0.
Fig. 5 (a) exemplarily shows a flowchart corresponding to a second example of a method for controlling an undisturbed mode of a terminal device in a video scene provided by the embodiment of the present application, and as shown in fig. 5 (a), the method specifically includes the following steps:
in step S501, face detection is performed once every minute. When the disturbance-free mode is started, the face recognition detection function can be used as a sub-option for a user to select, and as long as the user selects the sub-option, when the disturbance-free video application is started to run in the foreground, the system can periodically perform face detection.
Step S502, determining whether a face is detected in the current period, if no face is detected, executing step S503, and if a face is detected, indicating that the user is watching a video, executing step S504.
Step S503, adding one to the value of the target motion detection flag bit in the previous cycle of the current cycle to obtain the value of the target motion detection flag bit in the current cycle.
Step S504, set the value of the target motion detection flag bit in the current period to 0, and continue the detection in the next period.
Step S505, determining whether the value of the target motion detection flag bit in the current period is greater than or equal to a first preset threshold value 3, if the value of the target motion detection flag bit in the current period is greater than or equal to 3, it indicates that the user is not watching a video and is in an idle state, then step S506 is executed, otherwise, step S507 is executed.
Step S506, triggering interruption and closing the disturbance-free mode.
And step S507, keeping the disturbance-free mode on.
And step S508, continuing the face detection of the next period.
Further, in order to implement the second method for controlling the no-disturb mode of the terminal device in the video scene provided by the embodiment of the present application, fig. 5 (b) exemplarily shows a schematic diagram of a flow of an application architecture layer corresponding to the second method for controlling the no-disturb mode of the terminal device in the video scene provided by the embodiment of the present application, as shown in fig. 5 (b), in an application architecture layer (Framework layer) adopted in the second method for controlling the no-disturb mode of the terminal device in the video scene provided by the embodiment of the present application, firstly, a face detection process is started in the no-disturb process, secondly, a memory is created for the face detection process, a space is reserved for storing a target action detection flag bit and application information, and the target action detection flag bit is initialized, then, a timed detection is performed by means of a jeffies timer, then, a modification flag bit is added according to a detection result, an action of a count value is increased, and finally, if a face is not detected for three consecutive times, a signal is sent to the no-disturb process, the no-disturb mode is normally exited, finally, the no-disturb mode is closed, the face detection is continuously performed, and if the face detection is resumed, the face detection is performed, and the face detection is resumed. Wherein, the target action detection flag bit and the application information are stored in the shared memory, and the reserved space is released when the disturbance-free process is finished.
Through the two examples, the scenes of operation types such as games are well matched by utilizing touch screen operation detection, the scenes of watching types such as videos are well matched by utilizing watching operation detection, and the practicability is high.
It should be noted that, in the case of step S205 or step S304, when the do-not-disturb mode is turned off, the terminal device still performs new message reminding in a new message popup mode.
Further, in the case of step S206 or step S303, when the do-not-disturb mode is turned on, all new messages may be rejected to be reminded in any form, or the new messages may be reminded in a voice manner. The voice broadcast function can be used as a sub-option of the disturbance-free mode for a user to select, and as long as the user selects the option, when the disturbance-free application is started to run in the foreground, if the sub-option of the voice broadcast is selected, the system can detect the arrival of new messages of the survival process to perform voice broadcast.
Referring to a work flow chart shown in fig. 6, a voice broadcast method in the disturbance-free mode provided in the embodiment of the present application includes the following steps:
step S601, acquiring a target survival process of the terminal device receiving the new message.
The alive process in the terminal device may include applications of instant messaging such as QQ and wechat.
Optionally, in an implementation manner, the target surviving process in the terminal device that receives the new message may be obtained by:
firstly, if any target survival process in the terminal equipment receives a new message, setting the value of a preset new message status bit as a first preset target value for indicating that the terminal equipment has received the new message.
Then, application information of the target survival process is acquired.
Specifically, the first preset target value may be set to 1.
And after acquiring the application information of the target survival process, storing the application information into a preset cache region.
In addition, if all the surviving processes in the terminal equipment do not receive the new message, the value of the state bit of the new message is set as a first preset initial value for indicating that the terminal equipment does not receive the new message.
Specifically, the first preset initial value may be set to 0.
Through the scheme, the condition that any survival process in the terminal equipment receives the new message is reflected by the value of the preset new message state bit, so that the method is simple and clear, high in processing efficiency, easy to realize and high in practicability.
In other feasible implementation forms, a person skilled in the art may obtain, according to needs and actual conditions, a target surviving process in the terminal device that receives the new message, for example, a candidate status bit is preset for each current surviving process of the terminal device, and if the current surviving process receives the new message, a value of the candidate status bit of the current surviving process is set to a first preset target value for indicating that the current surviving process has received the new message; and if the current survival process does not receive the new message, setting the value of the candidate state bit of the current survival process as a first preset initial value for indicating that the current survival process does not receive the new message, finally traversing the value of the candidate state bit corresponding to each current survival process, and determining all current survival processes of which the values of the candidate state bits are first preset target values as target survival processes receiving the new message. And is not particularly limited.
Step S602, performing voice broadcast on the new message received by the target survival process.
Further, the specific way of voice broadcasting the new message received by the target survival process is as follows:
first, the value of the new message status bit is detected every preset duration. Alternatively, the preset time period may be set to 30 seconds.
And then, if the value of the new message status bit is a first preset target value, the target survival process receives the new message and carries out voice broadcast.
And finally, after the voice broadcasting is finished, restoring the value of the new message state bit to a first preset initial value.
Specifically, if the value of the new message status bit is a first preset target value, the application information in the cache area is read, and a target survival process corresponding to the application information receives the new message for voice broadcast.
It should be noted that, if a plurality of surviving processes all receive a new message within a preset time, the value of the new message status bit is a first preset target value, and the application information of each surviving process should be stored into the buffer area one by one, and when voice broadcasting is performed, the application information in the buffer area is read one by one and broadcast sequentially.
Through the scheme, the new message received by the target survival process is subjected to voice broadcast every preset time, so that the voice prompt can keep a proper broadcast frequency, and the user experience is further improved.
In the method, after the do-not-disturb mode is started, a new message is reminded in a voice broadcast mode, so that the problem of reduced user experience caused by the fact that important contents are blocked is solved, a user cannot miss an important message, the important message can be timely notified to the user who starts the do-not-disturb mode, and message omission is avoided.
To more clearly describe the voice broadcast method in the non-disturbing mode provided by the embodiment of the present application, fig. 7 exemplarily shows a specific flowchart corresponding to the voice broadcast method in the non-disturbing mode provided by the embodiment of the present application, and as shown in fig. 7, the method specifically includes the following steps:
step S701, determining whether any target surviving process in the terminal device receives the new message, if any target surviving process in the terminal device receives the new message, executing step S702, otherwise, executing step S703.
Step S702, setting the value of the preset new message status bit as a first preset target value.
Step S703, setting the value of the new message status bit to a first preset initial value.
Step S704, detecting whether the value of the new message status bit is the first preset target value every other preset duration, if so, executing step S705, otherwise, executing step S707.
Step S705, reading the application information of the target surviving process in the cache area, and performing voice broadcast on the new message received by the target surviving process.
Step S706, after the voice broadcast is completed, restoring the value of the new message status bit to the first preset initial value.
In step S707, no operation is performed.
Further, in order to implement the voice broadcasting method in the non-disturbance mode provided in the embodiment of the present application, fig. 8 exemplarily shows a schematic diagram of an application architecture layer flow corresponding to the voice broadcasting method in the non-disturbance mode provided in the embodiment of the present application, and as shown in fig. 8, in an application architecture layer (Framework layer) adopted to further implement the voice broadcasting method in the non-disturbance mode provided in the embodiment of the present application, first, a voice broadcasting detection process is started in the non-disturbance process, then, a memory is created for the voice broadcasting detection process, a reserved space stores a new message status bit and application information, and a new message status bit is initialized, then, a jeffies timer is relied on to perform timing detection, then, a lock is held to modify a value of the new message status bit in the memory according to a detection result, and finally, when the value of the new message status bit is a first preset target value, information of a target surviving process is recorded, and a signal is sent to the voice broadcasting process, so that a voice broadcasting module reads information of the target surviving process, and performs voice broadcasting. The preset memory for storing the new message state bit and the target survival process information is released when the disturbance-free process is finished.
The following are embodiments of an apparatus of the present application that may be used to perform embodiments of the methods of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
As an implementation of the foregoing embodiments, an embodiment of the present application discloses a disturbance-free mode control apparatus for a terminal device, where the apparatus is applied to the terminal device. Referring to the schematic structural diagram shown in fig. 9, in an embodiment, the apparatus for controlling a do-not-disturb mode of a terminal device disclosed in the embodiment of the present application may include: the device may further include more or fewer units and modules, such as a target survival process determining module 904 and a voice broadcasting module 905, and this embodiment does not limit the structure of the device.
The target action detection module 901 is configured to periodically detect whether a user executes a target action on the terminal device in the do-not-disturb mode.
A detection cycle number determining module 902, configured to determine, if the target motion is not detected, a detection cycle number of the target motion that is not detected continuously after the do-not-disturb mode is turned on.
And the disturbance-free mode control module 903 is configured to turn off the disturbance-free mode if the detection cycle number is greater than or equal to a first preset threshold.
Alternatively, in some embodiments,
the target action detecting module 901 is further configured to periodically detect whether the user executes the target action on the terminal device after the do-not-disturb mode is turned off.
And the disturbance-free mode control module 903 is used for detecting a target action and starting a disturbance-free mode.
Optionally, in other embodiments, the apparatus further includes:
a target surviving process determining module 904, configured to, if the number of detection cycles for which the target action is not detected continuously is smaller than a first preset threshold, obtain a target surviving process of the terminal device for which a new message is received.
And the voice broadcasting module 905 is configured to perform voice broadcasting on the new message received by the target survival process.
Optionally, in further embodiments, the target surviving process determination module 904 is further configured to:
and if any target survival process in the terminal equipment receives the new message, setting the value of a preset new message state bit as a first preset target value for indicating that the terminal equipment has received the new message.
And acquiring the application information of the target survival process.
And if all the survival processes in the terminal equipment do not receive the new message, setting the value of the state bit of the new message as a first preset initial value for indicating that the terminal equipment does not receive the new message.
Optionally, in still other embodiments, the voice broadcast module 905 is further configured to:
and detecting the value of the new message status bit every preset time length.
And if the value of the new message status bit is a first preset target value, performing voice broadcast on the new message received by the target survival process.
And after the voice broadcasting is finished, restoring the value of the new message state bit to a first preset initial value.
Optionally, in still other embodiments, the detection cycle number determining module 902 is further configured to: :
after the disturbance-free mode is started, determining the number of detection cycles without detecting the target motion continuously according to the value of the target motion detection flag bit, a second preset initial value and a preset accumulated value in the current cycle, wherein the value of the target motion detection flag bit is used for indicating whether the target motion is detected, the second preset initial value is used for indicating that the target motion is detected, and the accumulated value is used for indicating a unit value which is increased by the target motion detection flag bit when the target motion is not detected.
Optionally, in still other embodiments, the detection cycle number determining module 902 is further configured to determine the value of the target motion detection flag by:
and if the target motion is not detected, adding the accumulated value with the value of the target motion detection flag bit in the previous period of the current period to determine the value as a second target value.
And determining the value of the target action detection flag bit in the current period as a second target value.
And if the target action is detected, determining the value of the target action detection flag bit in the current period as a second preset initial value.
Optionally, in still other embodiments, the target action includes a touch screen operation or a gaze operation, where the gaze operation is an operation of a user to view content displayed by the terminal device.
Optionally, in still other embodiments, the target motion detection module 901 is further configured to:
and periodically detecting whether a user performs a touch screen operation on the terminal equipment.
Or, periodically detecting whether the user performs the gazing operation on the terminal equipment.
Correspondingly, the embodiment of the application also discloses a communication device corresponding to the method. Referring to the schematic structural diagram shown in fig. 10, the communication apparatus includes:
at least one processor 1001 and memory;
the memory to store program instructions;
the processor 1001 is configured to call and execute the program instructions stored in the memory to implement all or part of the steps in the embodiments corresponding to fig. 2 to fig. 8.
Further, the communication apparatus may further include: a transceiver 1002, and a bus 1003 including a random access memory 1004 and a read only memory 1005.
The processor 1001 is coupled to the transceiver 1002, the ram 1004, and the rom 1005 via buses. When the communication device needs to be operated, the device is booted to enter a normal operation state by starting a bootloader bootstrap system in a basic input/output system or an embedded system which is solidified in the read only memory 1005. After the device enters a normal operation state, an application program and an operating system are executed in the random access memory 1004, so that the communication device executes all or part of the steps in the embodiments corresponding to fig. 2 to 8.
The apparatus according to the embodiment of the present invention may correspond to the disturbance-free mode control apparatus in the embodiment corresponding to fig. 2 to 8, and a processor in the apparatus may implement the functions of the disturbance-free mode control apparatus and/or various steps and methods implemented in the embodiment corresponding to fig. 2 to 8, which are not described herein again for brevity.
It should be noted that, this embodiment may also be implemented based on a Network device implemented by combining a general physical server with a Network Function Virtualization (NFV) technology, where the Network device is a virtual Network device (e.g., a virtual host, a virtual router, or a virtual switch). The Virtual network device may be a Virtual Machine (VM) running a program for sending a notification message, and the VM is deployed on a hardware device (e.g., a physical server). A virtual machine refers to a complete computer system with complete hardware system functionality, which is emulated by software, running in a completely isolated environment. Through reading the application, a person skilled in the art can virtually simulate a plurality of network devices with the above functions on a general physical server. And will not be described in detail herein.
In particular implementations, embodiments of the present application also provide a computer-readable storage medium, which includes instructions. Wherein a computer readable medium disposed in any apparatus, which when executed on a computer, may perform all or a portion of the steps of the embodiments corresponding to fig. 2-8. The storage medium of the computer readable medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a Random Access Memory (RAM).
The various illustrative logical units and circuits described in this application may be implemented or operated upon by design of a general purpose processor, a digital information processor, an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination thereof. A general-purpose processor may be a microprocessor, but in the alternative, the processor may be any conventional processor, controller, microcontroller, or state machine. A processor may also be implemented as a combination of computing devices, e.g., a digital information processor and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a digital information processor core, or any other similar configuration.
The steps of a method or algorithm described in the embodiments herein may be embodied directly in hardware, in a software element executed by a processor, or in a combination of the two. The software cells may be stored in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. For example, a storage medium may be coupled to the processor such that the processor can read information from, and write information to, the storage medium. In the alternative, the storage medium may be integral to the processor. The processor and the storage medium may reside in an ASIC, which may be disposed in a UE. In the alternative, the processor and the storage medium may reside in different components in the UE.
It should be understood that, in the various embodiments of the present application, the sequence numbers of the processes do not mean the execution sequence, and the execution sequence of the processes should be determined by the functions and the inherent logic thereof, and should not constitute any limitation to the implementation process of the embodiments of the present application.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. The procedures or functions described in accordance with the embodiments of the application are all or partially generated when the computer program instructions are loaded and executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid State Disk (SSD)), among others.
The same and similar parts among the various embodiments of the present specification may be referred to, and each embodiment is described with emphasis on differences from the other embodiments. In particular, as to the apparatus and system embodiments, since they are substantially similar to the method embodiments, the description is relatively simple and reference may be made to the description of the method embodiments in relevant places.
Those skilled in the art will readily appreciate that the techniques of the embodiments of the present invention may be implemented using software plus any required general purpose hardware platform. Based on such understanding, the technical solutions in the embodiments of the present invention may be essentially or partially implemented in the form of a software product, which may be stored in a storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments.
The same and similar parts among the various embodiments in this specification may be referred to each other. In particular, for the embodiments of the road constraint determining apparatus disclosed in the present application, since they are substantially similar to the method embodiments, the description is relatively simple, and the relevant points can be referred to the description in the method embodiments.
The above-described embodiments of the present application do not limit the scope of the present application.

Claims (18)

1. A method for controlling a non-disturbing mode of a terminal device, comprising:
in the non-disturbance mode, periodically detecting whether a user executes a target action on the terminal equipment, wherein the non-disturbance mode is provided with one or more sub-options corresponding to different target actions;
if the target action is not detected, determining that the detection cycle number of the target action is not detected continuously after the disturbance-free mode is opened;
if the detection cycle number is greater than or equal to a first preset threshold value, closing the disturbance-free mode;
if the number of the detection cycles of the target action is not detected continuously is smaller than the first preset threshold, acquiring a survival process of receiving a new message in the terminal equipment;
and carrying out voice broadcasting on the new message received by the survival process.
2. The method of claim 1, further comprising, after turning off the do-not-disturb mode:
periodically detecting whether the target action is executed by the user on the terminal equipment;
and starting the disturbance-free mode when the target action is detected.
3. The method of claim 1, wherein the obtaining the alive procedure for the new message received in the terminal device comprises:
if any survival process in the terminal equipment receives a new message, setting a value of a preset new message state bit as a first preset target value for indicating that the terminal equipment has received the new message;
and acquiring the application information of the survival process.
4. The method of claim 3, further comprising:
and if all the survival processes in the terminal equipment do not receive the new message, setting the value of the status bit of the new message as a first preset initial value for indicating that the terminal equipment does not receive the new message.
5. The method according to claim 4, wherein the voice broadcasting the alive process received the new message comprises:
detecting the value of the new message status bit every other preset time length;
if the value of the new message status bit is the first preset target value, performing voice broadcast on the new message received by the survival process;
and after the voice broadcasting is finished, restoring the value of the new message state bit to the first preset initial value.
6. The method according to any one of claims 1-2, wherein the determining a number of detection cycles after the do-not-disturb mode is turned on during which the target action is not detected comprises:
after the disturbance-free mode is started, determining the number of detection cycles in which the target motion is not detected continuously in the current cycle according to the value of a target motion detection flag bit, a second preset initial value and a preset accumulated value, wherein the value of the target motion detection flag bit is used for indicating whether the target motion is detected, the second preset initial value is used for indicating that the target motion is detected, and the accumulated value is used for indicating a unit value which should be increased by the target motion detection flag bit when the target motion is not detected.
7. The method of claim 6, wherein the value of the target action detection flag bit is determined by:
if the target action is not detected, adding the accumulated value and the value of a target action detection flag bit in the previous period of the current period to determine that the accumulated value is a second target value;
determining the value of a target action detection flag bit in the current period as the second target value;
and if the target action is detected, determining the value of the target action detection flag bit in the current period as the second preset initial value.
8. The method according to any one of claims 1 to 2, wherein the target action comprises a touch screen operation or a gaze operation, wherein the gaze operation is an operation of the user to view content displayed by the terminal device.
9. The method of claim 8, wherein the periodically detecting whether the user performs the target action on the terminal device comprises:
periodically detecting whether a user performs touch screen operation on the terminal equipment;
or, periodically detecting whether the user performs the gazing operation on the terminal equipment.
10. A disturbance-free mode control device of a terminal device, comprising:
the target action detection module is used for periodically detecting whether a user executes a target action on the terminal equipment in a disturbance-free mode, and the disturbance-free mode is provided with one or more sub-options corresponding to different target actions;
a detection cycle number determining module, configured to determine, if the target motion is not detected, that a detection cycle number of the target motion is not detected continuously after the do-not-disturb mode is turned on;
the disturbance-free mode control module is used for closing the disturbance-free mode if the detection period number is greater than or equal to a first preset threshold value;
a survival process determining module, configured to, if the number of detection cycles for which the target action is not detected continuously is smaller than the first preset threshold, obtain a survival process for which a new message is received in the terminal device;
and the voice broadcasting module is used for carrying out voice broadcasting on the new message received by the survival process.
11. The apparatus of claim 10,
the target action detection module is further configured to periodically detect whether the user executes the target action on the terminal device after the do-not-disturb mode is turned off;
and the disturbance-free mode control module is also used for detecting the target action and starting the disturbance-free mode.
12. The apparatus of claim 10, wherein the surviving process determination module is further configured to:
if any survival process in the terminal equipment receives a new message, setting a value of a preset new message state bit as a first preset target value for indicating that the terminal equipment has received the new message;
acquiring application information of the survival process;
and if all the survival processes in the terminal equipment do not receive the new message, setting the value of the state bit of the new message as a first preset initial value for indicating that the terminal equipment does not receive the new message.
13. The device of claim 12, wherein the voice broadcast module is further configured to:
detecting the value of the new message status bit every other preset time length;
if the value of the new message status bit is the first preset target value, performing voice broadcast on the new message received by the survival process;
and after the voice broadcasting is finished, restoring the value of the new message state bit to the first preset initial value.
14. The apparatus of any one of claims 10 to 11, wherein the detection cycle number determination module is further configured to:
after the disturbance-free mode is started, determining the number of detection cycles in which the target motion is not detected continuously in the current cycle according to the value of a target motion detection flag bit, a second preset initial value and a preset accumulated value, wherein the value of the target motion detection flag bit is used for indicating whether the target motion is detected, the second preset initial value is used for indicating that the target motion is detected, and the accumulated value is used for indicating a unit value which should be increased by the target motion detection flag bit when the target motion is not detected.
15. The apparatus of claim 14, wherein the detection cycle number determining module is further configured to determine the value of the target action detection flag by:
if the target action is not detected, adding the accumulated value and the value of a target action detection flag bit in the previous period of the current period to determine that the accumulated value is a second target value;
determining the value of a target action detection flag bit in the current period as the second target value;
and if the target action is detected, determining the value of the target action detection flag bit in the current period as the second preset initial value.
16. The apparatus according to any one of claims 10 to 11, wherein the target action comprises a touch screen operation or a gaze operation, wherein the gaze operation is an operation of the user to view content displayed by the terminal device.
17. A communications apparatus, comprising:
at least one processor and a memory, wherein the memory,
the memory to store program instructions;
the processor is used for calling and executing the program instructions stored in the memory so as to realize the disturbance-free mode control method of the terminal equipment according to any one of claims 1-9.
18. A computer-readable storage medium, characterized in that,
the computer-readable storage medium has stored therein instructions that, when executed on a computer, implement a do-not-disturb mode control method of a terminal device according to any one of claims 1-9.
CN202110731491.7A 2021-06-30 2021-06-30 Method and device for controlling non-disturbing mode of terminal equipment, communication device and readable storage medium Active CN113596250B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110731491.7A CN113596250B (en) 2021-06-30 2021-06-30 Method and device for controlling non-disturbing mode of terminal equipment, communication device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110731491.7A CN113596250B (en) 2021-06-30 2021-06-30 Method and device for controlling non-disturbing mode of terminal equipment, communication device and readable storage medium

Publications (2)

Publication Number Publication Date
CN113596250A CN113596250A (en) 2021-11-02
CN113596250B true CN113596250B (en) 2022-11-04

Family

ID=78245106

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110731491.7A Active CN113596250B (en) 2021-06-30 2021-06-30 Method and device for controlling non-disturbing mode of terminal equipment, communication device and readable storage medium

Country Status (1)

Country Link
CN (1) CN113596250B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107835312A (en) * 2017-10-31 2018-03-23 珠海市魅族科技有限公司 Indicating mode switching method, device, computer installation and computer-readable recording medium
CN107864279A (en) * 2017-10-31 2018-03-30 珠海市魅族科技有限公司 Indicating mode switching method, device, computer installation and computer-readable recording medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9838999B2 (en) * 2014-08-14 2017-12-05 Blackberry Limited Portable electronic device and method of controlling notifications
CN105554272A (en) * 2015-12-15 2016-05-04 小米科技有限责任公司 Do-not-disturb mode switching method and device
CN105824439A (en) * 2016-02-24 2016-08-03 乐视云计算有限公司 Standby state control method and mobile terminal
CN110193199A (en) * 2019-05-26 2019-09-03 韶关市启之信息技术有限公司 A kind of method and device of game interruption-free

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107835312A (en) * 2017-10-31 2018-03-23 珠海市魅族科技有限公司 Indicating mode switching method, device, computer installation and computer-readable recording medium
CN107864279A (en) * 2017-10-31 2018-03-30 珠海市魅族科技有限公司 Indicating mode switching method, device, computer installation and computer-readable recording medium

Also Published As

Publication number Publication date
CN113596250A (en) 2021-11-02

Similar Documents

Publication Publication Date Title
US9250958B2 (en) System, method, and apparatus for improving application-launch latencies
US11099900B2 (en) Memory reclamation method and apparatus
WO2019223578A1 (en) Application program preloading method and apparatus, and storage medium and terminal
CN111158910B (en) Memory management method and device, storage medium and electronic equipment
CN108132735B (en) Terminal and application control method
CN110806925B (en) Audio playing method and equipment
CN107291772B (en) Search access method and device and electronic equipment
US20210004234A1 (en) Branch prediction circuit and control method therefor
WO2019024646A1 (en) Application management and control method, apparatus, and electronic device
CN111538574B (en) Task stack management method, device, terminal and storage medium
WO2018014424A1 (en) Method for setting authority for information pushing, and mobile terminal
CN115576645A (en) Virtual processor scheduling method and device, storage medium and electronic equipment
CN113596250B (en) Method and device for controlling non-disturbing mode of terminal equipment, communication device and readable storage medium
CN108287761B (en) Memory recovery method and device, terminal equipment and computer readable storage medium
EP3230875B1 (en) Adaptive memory access to local and non-local memories
CN111880701A (en) Page switching method and device and electronic equipment
CN110968523A (en) Memory defragmentation method and device
CN113032290B (en) Flash memory configuration method, flash memory configuration device, electronic equipment and storage medium
CN108595238A (en) The display control method and device of application interface
US20170300104A1 (en) Power-saving method and an electronic device for performing power consumption management
CN106201500B (en) Sensor data reporting method and system
CN114077461A (en) Application program running method, device, equipment and storage medium
CN110008135B (en) Information processing method and device and electronic equipment
CN111400037A (en) Memory management method and device, computer storage medium and terminal
CN105893146B (en) Memory processing method and device

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230913

Address after: 201306 building C, No. 888, Huanhu West 2nd Road, Lingang New District, China (Shanghai) pilot Free Trade Zone, Pudong New Area, Shanghai

Patentee after: Shanghai Glory Smart Technology Development Co.,Ltd.

Address before: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040

Patentee before: Honor Device Co.,Ltd.