CN108089905A - Interruption-free processing method, terminal and computer-readable medium - Google Patents

Interruption-free processing method, terminal and computer-readable medium Download PDF

Info

Publication number
CN108089905A
CN108089905A CN201711402711.1A CN201711402711A CN108089905A CN 108089905 A CN108089905 A CN 108089905A CN 201711402711 A CN201711402711 A CN 201711402711A CN 108089905 A CN108089905 A CN 108089905A
Authority
CN
China
Prior art keywords
terminal
time section
interruption
target time
free
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.)
Granted
Application number
CN201711402711.1A
Other languages
Chinese (zh)
Other versions
CN108089905B (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

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

Abstract

The embodiment of the invention discloses a kind of interruption-free processing method, terminal and computer-readable medium, wherein method includes:Target time section is obtained, the target time section is to be applied to be in the interruption-free period under unused state in terminal;When the terminal is in unused state, the initial interruption-free period in the interruption-free pattern of the terminal is replaced using the target time section;The terminal is controlled to enter interruption-free pattern, to start the do-not-disturb functionality of the terminal in the target time section, the complexity of operation can be reduced.

Description

Interruption-free processing method, terminal and computer-readable medium
Technical field
The present invention relates to electronic technology field more particularly to interruption-free processing method, terminal and computer-readable mediums.
Background technology
With the development of science and technology, the function of terminal device is stronger and stronger.When sleeping rest, user can open terminal Interruption-free pattern in equipment, to prevent from being sent a telegram here, the tinkle of bells such as short message or alarm clock are to being waken up.But existing interruption-free pattern is only One fixed interruption-free time can be set, for example, setting 22:00-07:00 is the fixed interruption-free time.If user is even Your overtime work is to after 1,2 point of morning, it is desirable to sleep for a moment the next morning more, overtime work band at night is made up to obtain sufficient sleep The fatigue come.At this moment, it is necessary to which user manually changes the interruption-free time in interruption-free pattern, the complexity of operation is added.
The content of the invention
An embodiment of the present invention provides a kind of interruption-free processing method, terminal and computer-readable mediums, can reduce behaviour The complexity of work.
In a first aspect, an embodiment of the present invention provides a kind of interruption-free processing method, this method includes:Obtain the object time Section, the target time section are to be applied to be in the interruption-free period under unused state in terminal;Do not make when the terminal is in During with state, the initial interruption-free period in the interruption-free pattern of terminal is replaced using the target time section;Control the terminal Into interruption-free pattern, to start the do-not-disturb functionality of the terminal in the target time section.
Optionally, the specific embodiment for obtaining target time section is:It obtains corresponding to the initial interruption-free period First duration;Starting point of the detection moment as the target time section for being in unused state using the terminal is detected, by this Duration of one duration as the target time section, to determine the target time section.
Optionally, the specific embodiment for obtaining target time section is:Obtain default second duration;It will detect the end Starting point of detection moment of the end in unused state as the target time section, using second duration as the target time section Duration, with determine the target time section.
Optionally, this method further includes:Judge the terminal whether in unused state.
Optionally, judge whether the specific embodiment in unused state is the terminal:The terminal is detected to be used The frequency whether be more than the default frequency;If it is not, then judge that the terminal is in unused state.Alternatively, in preset duration, detection Whether the total duration that the terminal is used is more than preset value;If it is not, then judge that the terminal is in unused state.
Optionally, this method further includes:If detecting, the target time section terminates, and will exempt to beat in the interruption-free pattern Disturbing the period is revised as the initial time section.
Optionally, this method further includes:If in the target time section, detect that the terminal is become making from unused state With state, then the interruption-free period in the interruption-free pattern is revised as the initial time section.
Second aspect, an embodiment of the present invention provides a kind of terminal, which includes:Acquiring unit, for obtaining target Period, the target time section are to be applied to be in the interruption-free period under unused state in terminal;Replacement unit is used for When the terminal is in unused state, when the initial interruption-free in the interruption-free pattern of terminal is replaced using the target time section Between section;Control unit, for the terminal to be controlled to enter interruption-free pattern, with start in the target time section terminal exempt from beat Disturb function.
Optionally, acquiring unit is specifically used for:Obtain the first duration corresponding to the initial interruption-free period;It will detection Starting point of the detection moment of unused state as the target time section is in the terminal, using first duration as the target The duration of period, to determine the target time section.
Optionally, acquiring unit is specifically used for:Obtain default second duration;It will detect that the terminal is in and shape is not used Starting point of the detection moment of state as the target time section, using second duration as the duration of the target time section, to determine The target time section.
Optionally, which further includes:Judging unit, for judging the terminal whether in unused state.
Optionally, judging unit is specifically used for:Detect whether the frequency that the terminal is used is more than the default frequency;If it is not, Then judge that the terminal is in unused state.Alternatively, in preset duration, detect total duration that the terminal used whether be more than Preset value;If it is not, then judge that the terminal is in unused state.
Optionally, which further includes:Unit is changed, if for detecting that the target time section terminates, this is exempted to beat Disturbing the interruption-free period in pattern is revised as the initial time section.
Optionally, modification unit is specifically used for:If in the target time section, detect that the terminal is become by unused state For use state, then the interruption-free period in the interruption-free pattern is revised as the initial time section.
The third aspect, an embodiment of the present invention provides another terminal, including processor, receiver, transmitter and storage Device, the processor, receiver, transmitter and memory are connected with each other, wherein, the memory supports terminal to hold for storing The computer program of the row above method, the computer program include program instruction, and the processor is arranged to call institute Program instruction is stated, the method for performing above-mentioned first aspect.
Fourth aspect, an embodiment of the present invention provides a kind of computer readable storage medium, the computer storage media Computer program is stored with, the computer program includes program instruction, and described program instruction makes institute when being executed by a processor State the method that processor performs above-mentioned first aspect.
For the embodiment of the present invention by obtaining target time section, which is to be applied to be in terminal shape is not used The interruption-free period under state;When the terminal is in unused state, the interruption-free of terminal is replaced using the target time section The initial interruption-free period in pattern;The terminal is controlled to enter interruption-free pattern, to start the end in the target time section The do-not-disturb functionality at end.By replacing the interruption-free period automatically, user is not required to go to be configured manually, operation can be reduced Complexity.
Description of the drawings
Technical solution in order to illustrate the embodiments of the present invention more clearly, below will be to needed in embodiment description Attached drawing is briefly described, it should be apparent that, the accompanying drawings in the following description is some embodiments of the present invention, general for this field For logical technical staff, without creative efforts, other attached drawings are can also be obtained according to these attached drawings.
Fig. 1 is a kind of schematic flow diagram of interruption-free processing method provided in an embodiment of the present invention;
Fig. 2 is a kind of schematic flow diagram for interruption-free processing method that another embodiment of the present invention provides;
Fig. 3 is a kind of schematic block diagram of terminal provided in an embodiment of the present invention;
Fig. 4 is a kind of terminal schematic block diagram that another embodiment of the present invention provides.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is part of the embodiment of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained without making creative work Example, belongs to the scope of protection of the invention.
It should be appreciated that ought use in this specification and in the appended claims, term " comprising " and "comprising" instruction Described feature, entirety, step, operation, the presence of element and/or component, but it is not precluded from one or more of the other feature, whole Body, step, operation, element, component and/or its presence or addition gathered.
It is also understood that the term used in this description of the invention is merely for the sake of the mesh for describing specific embodiment And be not intended to limit the present invention.As description of the invention and it is used in the attached claims, unless on Other situations are hereafter clearly indicated, otherwise " one " of singulative, "one" and "the" are intended to include plural form.
It will be further appreciated that the term "and/or" used in description of the invention and the appended claims is Refer to any combinations and all possible combinations of one or more of the associated item listed, and including these combinations.
As used in this specification and in the appended claims, term " if " can be according to context quilt Be construed to " when ... " or " once " or " in response to determining " or " in response to detecting ".Similarly, phrase " if it is determined that " or " if detecting [described condition or event] " can be interpreted to mean according to context " once it is determined that " or " in response to true It is fixed " or " once detecting [described condition or event] " or " in response to detecting [described condition or event] ".
In the specific implementation, the terminal described in the embodiment of the present invention is including but not limited to such as with touch sensitive surface The mobile phone, laptop computer or tablet computer of (for example, touch-screen display and/or touch tablet) etc it is other just Portable device.It is to be further understood that in certain embodiments, the equipment is not portable communication device, but with tactile Touch the desktop computer of sensing surface (for example, touch-screen display and/or touch tablet).
In discussion below, the terminal including display and touch sensitive surface is described.It is, however, to be understood that It is that terminal can include one or more of the other physical user-interface device of such as physical keyboard, mouse and/or control-rod.
Terminal supports various application programs, such as one or more of following:Drawing application program, demonstration application journey Sequence, word-processing application, website create application program, disk imprinting application program, spreadsheet applications, game application Program, telephony application, videoconference application, email application, instant messaging applications, exercise Support application program, photo management application program, digital camera application program, digital camera application program, web-browsing application Program, digital music player application and/or video frequency player application program.
The various application programs that can be performed in terminal can use at least one public of such as touch sensitive surface Physical user-interface device.It can adjust and/or change among applications and/or in corresponding application programs and touch sensitive table The corresponding information shown in the one or more functions and terminal in face.In this way, the public physical structure of terminal is (for example, touch Sensing surface) it can support the various application programs with user interface directly perceived and transparent for a user.
It is a kind of schematic flow diagram of interruption-free processing method provided in an embodiment of the present invention, as shown in Figure 1 referring to Fig. 1 Interruption-free processing method may include:
S101, terminal obtain target time section.
Wherein, which is to be applied to be in the interruption-free period under unused state in terminal.
Specifically, terminal first obtains the detection time section whether a detection terminal is in use state.The detection time Section can be identical with the initial interruption-free period in interruption-free pattern, if for example, during initial interruption-free in interruption-free pattern Between section be 22:00-07:00, then the detection time section is also 22:00-07:00.Certainly, which can also use Family is pre-set, and user can be accustomed to setting a detection time section, such as 23 according to the work and rest of oneself:00-08:00.It is examining It surveys in the period, if detecting, terminal is in unused state, obtains target time section.
Obtaining the specific embodiment of target time section can be:Terminal can first obtain the initial interruption-free period institute Corresponding first duration.Then detection moment the rising as the target time section for being in unused state using the terminal is detected Point, using first duration as the duration of the target time section, to determine the target time section.
For example, terminal detects that the initial interruption-free period is 22:00-07:00, when calculating the initial interruption-free Between corresponding to section first when a length of 9 hours.If it is 24 to detect the detection moment that terminal is in unused state:00, then By 24:00 is used as starting point, toward 9 hours of pusher, it is possible to which it is 09 to draw its corresponding end time:00, then during the target Between section just be 24:00-09:00.
Optionally, the specific embodiment for obtaining target time section can also be:Terminal first obtains default second duration. Then starting point of the detection moment as the target time section for being in unused state using the terminal is detected, by second duration As the duration of the target time section, to determine the target time section.
For example, user can preset second duration and be used as sleep duration, when such as setting 8 hours as sleeping It is long.Terminal can obtain this second duration.If it is 24 to detect the detection moment that terminal is in unused state:00, then will 24:00 is used as starting point, toward 8 hours of pusher, it is possible to which it is 08 to draw its corresponding end time:00, then the object time Section is just 24:00-08:00.
It should be noted that above simply illustrate, it is not exhaustive.
Step S101 has the advantages that:
If user forgets to pre-set the second duration, then terminal can also be determined by the initial interruption-free period Target time section.Even if after user's overtime work is stayed up late, forgetting to set the second duration, can also the object time be determined by this operation Section, and control terminal enters interruption-free pattern in this target time section.So that user can be more preferable in target time section Ground is rested, therefore improves the convenience of terminal.
S102, when the terminal is in unused state, terminal replaces the interruption-free mould of terminal using the target time section The initial interruption-free period in formula.
Specifically, between when detecting in section, detection terminal whether unused state can be in always.If it detects at terminal In use state, then illustrate that user may also work overtime, terminal at this time is in normal mode.I.e. if terminal receives Incoming call or short message can export prompt message (such as the tinkle of bells, vibration).If detecting, terminal is in unused state, illustrates to use Family may sleep rest.So, terminal will enter interruption-free pattern.At this point, target time section is replaced into initial interruption-free Period, i.e., using target time section as the new interruption-free period.
For example, the initial interruption-free period is 22:00-07:00, illustrate user usually within this period Rest sleep, i.e., terminal is daily 22:00-07:Interruption-free pattern is in 00 this period.And mesh is got now It is 24 to mark the period:00-09:00.User can be illustrated 22:00-24:Still using mobile phone in 00 this period, make from 24:00 starts rest sleep.Then, just with 24:00-09:00 this period replaced 22:00-07:00 period, i.e., By 24:00-09:The 00 sleep time of having a rest as user.
It should be noted that above simply illustrate, it is not exhaustive.
Step S102 has the advantages that:
Between when detecting in section, when terminal is in unused state, it is possible to determine that user has rested sleep.Then, The initial interruption-free period is replaced with the target time section.It can forget to change the initial interruption-free period to avoid user, and After the arrival of the next morning initial time section, situation about being waken up by the tinkle of bells such as alarm clock, incoming calls.In addition, if without this A detection time section, then terminal will one day 24 it is small when be all detected.In this case, if user is just busy daytime In work, there is no using terminal there are two hour, then can judge that the terminal is in unused state yet.So terminal will be into Enter interruption-free pattern, so as to which user is caused to miss important incoming call and information.Therefore, it is necessary to be carried out in section between when detecting Detection, so can be to avoid the situation of above-mentioned error detection.
S103 controls the terminal to enter interruption-free pattern, to start the interruption-free work(of the terminal in the target time section Energy.
Specifically, control terminal enters after interruption-free pattern, terminal will start interruption-free work(in target time section Energy.That is, even if terminal in the target time section, has received the information such as incoming call or short message, the tinkle of bells will not be sent Or the prompt message of vibration.
In embodiments of the present invention, terminal first passes through acquisition target time section, which be applied in terminal The interruption-free period under unused state.Then when the terminal is in unused state, using the target time section Replace the initial interruption-free period in the interruption-free pattern of terminal.Then the terminal is controlled to enter interruption-free pattern, at this Start the do-not-disturb functionality of the terminal in target time section.By replacing the interruption-free period automatically, user is not required to go manually It is configured, the complexity of operation can be reduced.
It is a kind of schematic flow diagram for interruption-free processing method that another embodiment of the present invention provides referring to Fig. 2, such as Fig. 2 Shown interruption-free processing method may include:
S201, terminal obtain target time section.
Wherein, which is to be applied to be in the interruption-free period under unused state in terminal.
It should be noted that the step S201 in the embodiment of the present invention may refer to the step in foregoing invention embodiment S101, the embodiment of the present invention repeat no more.
Whether S202 judges the terminal in unused state.
Specifically, judge whether the specific embodiment in unused state can be the terminal:Detect the terminal quilt Whether the frequency used is more than the default frequency.If it is not, then judge that the terminal is in unused state.
For example, the frequency here can be represented within a hour, the number that terminal is used.Terminal can count Within a hour, the number of the number of the unlock instruction received or bright screen.If time of the unlock instruction received The number of several or bright screen is not above preset times, then decides that the terminal is in unused state.
Optionally, judge whether the specific embodiment in unused state can also be the terminal:In preset duration It is interior, detect whether the total duration that the terminal is used is more than preset value.If it is not, then judge that the terminal is in unused state.
For example, preset duration can be a hour, terminal can within this hour statistic mixed-state terminal Screen is in total duration during bright screen state, if the total duration is not above preset value, judges that the terminal is in and shape is not used State.
Optionally, judge whether the specific embodiment in unused state can also be the terminal:It has detected whether Global positioning system (Global Positioning System, GPS) displacement.If without GPS displacements, judge that the terminal is in Unused state.
For example, can be detected by the gyroscope in terminal.Three number of axle evidences of gyroscope are first read, if three The number of axle then judges that the terminal is in unused state according to all close to 0.
Optionally, judge whether the specific embodiment in unused state can also be the terminal:Detection backstage is It is no to have the application being currently running.If nothing, judge that the terminal is in unused state.
For example, it can detect and listen whether song software is playing music, if exist and conversing or sending The operations such as short message.If being operated more than all not detecting, judge that the terminal is in unused state.
Step S202 has the advantages that:
Between when detecting in section, if the frequency that terminal is used is more than to preset the frequency or the duration used more than default Duration just judges that terminal is in use state.For example, user wakes up at midnight, after skimming through the time with terminal, just continue to sleep Feel.At this moment it can detect that terminal is used once, for traditional technology, terminal at this time will be become by interruption-free pattern For normal mode.But for the embodiment of the present invention, since the default frequency is 5, so still judging that the terminal is in does not make With state, terminal can still be in interruption-free pattern, so as to ensure that user is not sent a telegram here during sleep, the tinkle of bells such as alarm clock wake up.Therefore, It is operated by this, the accuracy of testing result to avoid the situation of an erroneous judgement, can be improved.
S203, when the terminal is in unused state, terminal replaces the interruption-free mould of terminal using the target time section The initial interruption-free period in formula.
S204 controls the terminal to enter interruption-free pattern, to start the interruption-free work(of the terminal in the target time section Energy.
It should be noted that step S203~S204 in the embodiment of the present invention may refer in foregoing invention embodiment Step S102~S103, the embodiment of the present invention repeat no more.
If it should also be noted that, in the target time section, detect that the terminal is become using shape from unused state The interruption-free period in the interruption-free pattern is then revised as the initial time section by state.
Even if specifically, terminal in the target time section, enters interruption-free pattern, also can always detection terminal whether In unused state.If it is determined that terminal becomes use state from unused state, then terminal enters normal mode, and will be next The secondary interruption-free period is revised as initial time section.
For example, initial time section is 22:00-07:00, target time section 24:00-09:00.Terminal is 24:00- 09:In 00 this target time section, into interruption-free pattern.But if terminal is 4:00-05:In 00 this period, detect Terminal is become by unused state for use state, then terminal will become normal mode from interruption-free pattern.And by interruption-free mould The interruption-free period in formula is revised as initial time section, that is, is revised as 22:00-07:00.
S205, if detecting, the target time section terminates, and terminal repaiies the interruption-free period in the interruption-free pattern It is changed to the initial time section.
Specifically, at the end of the target time section is detected, terminal is put into normal mode.Moreover, it can will also exempt to beat Disturb the interruption-free period in pattern is changed to the initial time section again.
Step S205 has the advantages that:
The embodiment of the present invention is for user's overtime work situation about staying up late, after detecting that user's overtime work is stayed up late, during with target Between section replace the initial interruption-free period, so as to ensure that time of user's abundance sleeps.But user's overtime work is stayed up late simply Property once in a while, therefore, after detecting that target time section terminates, the interruption-free period can be changed to initially exempt from by terminal automatically Bother the period.User oneself is not required manually to go to change, the complexity of operation is reduced, improves the convenience of terminal.
In embodiments of the present invention, terminal first passes through acquisition target time section.Then judging whether the terminal is in does not make Use state.When the terminal is in unused state, replaced using the target time section initial in the interruption-free pattern of terminal The interruption-free period.Then the terminal is controlled to enter interruption-free pattern, with start in the target time section terminal exempt from beat Disturb function.By replacing the interruption-free period automatically, user is not required to go to be configured manually, the complexity of operation can be reduced Property.
It is a kind of schematic block diagram of terminal provided in an embodiment of the present invention referring to Fig. 3, present invention implementation as shown in Figure 3 Terminal in example may include:
Acquiring unit 301, for obtaining target time section, which is to be applied to be in terminal shape is not used The interruption-free period under state.
Replacement unit 302, for when the terminal is in unused state, exempting from for terminal to be replaced using the target time section Bother the initial interruption-free period in pattern.
Control unit 303, for the terminal to be controlled to enter interruption-free pattern, to start the terminal in the target time section Do-not-disturb functionality.
Optionally, acquiring unit 301 is specifically used for:Obtain the first duration corresponding to the initial interruption-free period;It will Detect that the terminal is in starting point of the detection moment of unused state as the target time section, using first duration as this The duration of target time section, to determine the target time section.
Optionally, acquiring unit 301 is specifically used for:Obtain default second duration;To detect that the terminal is in does not make By the use of the detection moment of state as the starting point of the target time section, using second duration as the duration of the target time section, with Determine the target time section.
Optionally, whether which further includes judging unit 304, for judging the terminal in unused state.
Optionally, judging unit 304 is specifically used for:Detect whether the frequency that the terminal is used is more than the default frequency;If It is no, then judge that the terminal is in unused state.Alternatively, in preset duration, whether total duration that the terminal used is detected More than preset value;If it is not, then judge that the terminal is in unused state.
Optionally, which further includes modification unit 305, if for detecting that the target time section terminates, this is exempted from Bothering the interruption-free period in pattern is revised as the initial time section.
Optionally, modification unit 305 is specifically used for:If in the target time section, detect the terminal by shape is not used State becomes use state, then is revised as the initial time section interruption-free period in the interruption-free pattern.
In embodiments of the present invention, acquiring unit 301 is first passed through to obtain target time section.It is not used when the terminal is in During state, replacement unit 302 is called come when using the initial interruption-free in the interruption-free pattern of target time section replacement terminal Between section.Then call control terminal 303 that the terminal is controlled to enter interruption-free pattern, to start the end in the target time section The do-not-disturb functionality at end.By replacing the interruption-free period automatically, user is not required to go to be configured manually, operation can be reduced Complexity.
Fig. 4 is referred to, is a kind of terminal schematic block diagram that another embodiment of the present invention provides.This implementation as shown in Figure 4 Terminal in example can include:One or more processors 401;One or more receivers 402, one or more transmitters 403 and memory 404.Above-mentioned processor 401, receiver 402, transmitter 403 and memory 404 are connected by bus 405.It deposits Reservoir 402 is for storing computer program, and the computer program includes program instruction, and processor 401 is used to perform memory The program instruction of 402 storages.
In embodiments of the present invention, loaded by processor 401 and perform stored in computer storage media one or one Above instructions, to realize the corresponding steps of method flow shown in above-mentioned Fig. 1-Fig. 2;In the specific implementation, computer storage media In at least one instruction loaded by processor 401 and perform following steps:
Target time section is obtained, which is to be applied to be in the interruption-free time under unused state in terminal Section;When the terminal is in unused state, is replaced using the target time section and initially exempt to beat in the interruption-free pattern of terminal Disturb the period;The terminal is controlled to enter interruption-free pattern, to start the do-not-disturb functionality of the terminal in the target time section.
Optionally, which is loaded by the processor 401, is additionally operable to perform:This is obtained initially to exempt to beat Disturb the first duration corresponding to the period;It will detect that the terminal is in the detection moment of unused state as the object time The starting point of section, using first duration as the duration of the target time section, to determine the target time section.
Optionally, which is loaded by the processor 401, is additionally operable to perform:Obtain default second Duration;Starting point of the detection moment as the target time section for being in unused state using the terminal is detected, by this second when The long duration as the target time section, to determine the target time section.
Optionally, which is loaded by the processor 401, is additionally operable to perform:Whether judge the terminal In unused state.
Optionally, which is loaded by the processor 401, is additionally operable to perform:Detecting the terminal is made Whether the frequency is more than the default frequency;If it is not, then judge that the terminal is in unused state.Alternatively, in preset duration, inspection Survey whether the total duration that the terminal is used is more than preset value;If it is not, then judge that the terminal is in unused state.
Optionally, which is loaded by the processor 401, is additionally operable to perform:If detect target Between section terminate, then the interruption-free period in the interruption-free pattern is revised as the initial time section.
Optionally, which is loaded by the processor 401, is additionally operable to perform:If in the object time In section, detect that the terminal becomes use state from unused state, then repair the interruption-free period in the interruption-free pattern It is changed to the initial time section.
It should be appreciated that in embodiments of the present invention, alleged processor 401 can be central processing unit (Central Processing Unit, CPU), which can also be other general processors, digital signal processor (Digital Signal Processor, DSP), application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic Device, discrete gate or transistor logic, discrete hardware components etc..General processor can be microprocessor or this at It can also be any conventional processor etc. to manage device.
Receiver 402 can include Trackpad, fingerprint adopts sensor (for gathering the side of the finger print information of user and fingerprint To information), microphone etc., transmitter 403 can include display (LCD etc.), loud speaker etc..
The memory 404 can include read-only memory and random access memory, and to processor 401 provide instruction and Data.The a part of of memory 404 can also include nonvolatile RAM.For example, memory 404 can also be deposited Store up the information of device type.
In the specific implementation, the processor 401, receiver 402, transmitter 403 described in the embodiment of the present invention are executable Realization method described in the first embodiment and second embodiment of interruption-free processing method provided in an embodiment of the present invention, The realization method of the described terminal of the executable embodiment of the present invention, details are not described herein.
A kind of computer readable storage medium, the computer-readable storage medium are provided in another embodiment of the invention Matter is stored with computer program, and the computer program includes program instruction, and described program instruction is realized when being executed by processor The realization method of the described interruption-free processing method of Fig. 1 and Fig. 2 provided in an embodiment of the present invention.
The computer readable storage medium can be the internal storage unit of the terminal described in foregoing any embodiment, example Such as the hard disk or memory of terminal.The computer readable storage medium can also be the External memory equipment of the terminal, such as The plug-in type hard disk being equipped in the terminal, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card) etc..Further, the computer readable storage medium can also be wrapped both Including the internal storage unit of the terminal also includes External memory equipment.The computer readable storage medium is described for storing Other programs and data needed for computer program and the terminal.The computer readable storage medium can be also used for temporarily When store the data that has exported or will export.
Those of ordinary skill in the art may realize that each exemplary lists described with reference to the embodiments described herein Member and algorithm steps can be realized with the combination of electronic hardware, computer software or the two, in order to clearly demonstrate hardware With the interchangeability of software, each exemplary composition and step are generally described according to function in the above description.This A little functions are performed actually with hardware or software mode, specific application and design constraint depending on technical solution.Specially Industry technical staff can realize described function to each specific application using distinct methods, but this realization is not It is considered as beyond the scope of this invention.
It is apparent to those skilled in the art that for convenience of description and succinctly, the end of foregoing description End and the specific work process of unit, may be referred to the corresponding process in preceding method embodiment, details are not described herein.
In several embodiments provided herein, it should be understood that disclosed terminal and method can pass through it Its mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only Only a kind of division of logic function can have other dividing mode in actual implementation, such as multiple units or component can be tied It closes or is desirably integrated into another system or some features can be ignored or does not perform.In addition, shown or discussed phase Coupling, direct-coupling or communication connection between mutually can be INDIRECT COUPLING or the communication by some interfaces, device or unit Connection or electricity, the connection of mechanical or other forms.
The unit illustrated as separating component may or may not be physically separate, be shown as unit The component shown may or may not be physical location, you can be located at a place or can also be distributed to multiple In network element.Some or all of unit therein can be selected to realize the embodiment of the present invention according to the actual needs Purpose.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also It is that unit is individually physically present or two or more units integrate in a unit.It is above-mentioned integrated The form that hardware had both may be employed in unit is realized, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and is independent production marketing or use When, it can be stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially The part to contribute in other words to the prior art or all or part of the technical solution can be in the form of software products It embodies, which is stored in a storage medium, is used including some instructions so that a computer Equipment (can be personal computer, server or the network equipment etc.) performs the complete of each embodiment the method for the present invention Portion or part steps.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey The medium of sequence code.
The above description is merely a specific embodiment, but protection scope of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can readily occur in various equivalent modifications or replace It changes, these modifications or substitutions should be covered by the protection scope of the present invention.Therefore, protection scope of the present invention should be with right It is required that protection domain subject to.

Claims (10)

1. a kind of interruption-free processing method, which is characterized in that including:
Target time section is obtained, the target time section is to be applied to be in the interruption-free time under unused state in terminal Section;
When the terminal is in unused state, in the interruption-free pattern that the terminal is replaced using the target time section The initial interruption-free period;
The terminal is controlled to enter interruption-free pattern, to start the do-not-disturb functionality of the terminal in the target time section.
2. according to the method described in claim 1, it is characterized in that, the acquisition target time section, including:
Obtain the first duration corresponding to the initial interruption-free period;
Starting point of the detection moment as the target time section for being in unused state using the terminal is detected, by described Duration of one duration as the target time section, to determine the target time section.
3. according to the method described in claim 1, it is characterized in that, the acquisition target time section, including:
Obtain default second duration;
Starting point of the detection moment as the target time section for being in unused state using the terminal is detected, by described Duration of two durations as the target time section, to determine the target time section.
4. according to the method described in claim 1, it is characterized in that, the method further includes:
Judge the terminal whether in unused state.
5. according to the method described in claim 4, it is characterized in that, whether described judge the terminal in unused state, Including:
Detect whether the frequency that the terminal is used is more than the default frequency;
If it is not, then judge that the terminal is in unused state;
Alternatively,
In preset duration, detect whether the total duration that the terminal is used is more than preset value;
If it is not, then judge that the terminal is in unused state.
6. according to the method described in claim 1, it is characterized in that, the method, further includes:
If detecting, the target time section terminates, and the interruption-free period in the interruption-free pattern is revised as described first Begin the period.
7. according to the method described in claim 6, it is characterized in that, the method, further includes:
It if in the target time section, detects that the terminal becomes use state from unused state, then exempts to beat by described Disturbing the interruption-free period in pattern is revised as the initial time section.
8. a kind of terminal, which is characterized in that including being used to perform the method as described in claim 1-7 any one claims Unit.
9. a kind of terminal, which is characterized in that including processor, receiver, transmitter and memory, the processor, receiver, Transmitter and memory are connected with each other, wherein, for the memory for storing computer program, the computer program includes journey Sequence instructs, and the processor is arranged to call described program instruction, performs such as claim 1-7 any one claims The method.
10. a kind of computer readable storage medium, which is characterized in that the computer storage media is stored with computer program, The computer program includes program instruction, and described program instruction makes the processor perform such as right when being executed by a processor It is required that the method described in 1-7 any one claims.
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 true CN108089905A (en) 2018-05-29
CN108089905B 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)

Cited By (3)

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

Citations (8)

* 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
US20160182710A1 (en) * 2014-12-19 2016-06-23 International Business Machines Corporation Mobile phone call handling
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

Patent Citations (8)

* 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
US20160182710A1 (en) * 2014-12-19 2016-06-23 International Business Machines Corporation Mobile phone call handling
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

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110290265A (en) * 2019-06-24 2019-09-27 深圳市锐尔觅移动通信有限公司 The mute method of adjustment of mobile terminal, 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
US11366688B2 (en) 2019-06-28 2022-06-21 Baidu Online Network Technology (Beijing) Co., Ltd. Do-not-disturb processing method and apparatus, and storage medium
CN111782496A (en) * 2020-06-30 2020-10-16 联想(北京)有限公司 Processing method and processing equipment
CN111782496B (en) * 2020-06-30 2023-10-27 联想(北京)有限公司 Processing method and processing equipment

Also Published As

Publication number Publication date
CN108089905B (en) 2020-04-07

Similar Documents

Publication Publication Date Title
KR102422115B1 (en) Electronic device for inputting sleeping information and method for controlling thereof
CN109196469A (en) For may customize the premise equipment of electronic notification
US11579714B2 (en) Apparatus and method for providing memo function
CN108089905A (en) Interruption-free processing method, terminal and computer-readable medium
CN106156583A (en) A kind of method of speech unlocking and terminal
KR20160051071A (en) Electronic device and method for controlling power in electronic device
KR102521032B1 (en) User input processing method and electronic device performing thereof
KR20160150515A (en) Electronic device and method for displaying related information of parsed data
KR20170109408A (en) Electronic device and method for controlling thereof
CN111104018B (en) Application icon management method and electronic equipment
KR102574132B1 (en) Electronic Device and System for Synchronizing playback time of sound source
CN107908349A (en) Display interface amplification method, terminal and computer-readable recording medium
KR20170001108A (en) Method and Apparatus for Controlling A Touch Sensing Module of Electronic Device, Method and Apparatus for Operating A Touch Sensing Module of Electronic Device
EP2846239B1 (en) Apparatus and method for executing function in electronic device
CN107608724A (en) A kind of method, terminal and computer-readable recording medium for managing application program
CN106453904A (en) Information reminding method and terminal
CN107463350A (en) A kind of footmark method of adjustment and terminal
CN107743164A (en) A kind of exception falls the processing method and terminal of card
CN113780976A (en) Schedule conflict processing method, schedule conflict processing device, storage medium and software program product
CN102968237A (en) Method and device for processing capacitive touch screen
KR20180010029A (en) Method and apparatus for operation of an electronic device
CN107295164A (en) Method, mobile terminal and the storage medium of ring of alarm clock generation
CN107872573B (en) Alarm clock setting method and terminal
CN107765832A (en) A kind of method, terminal and computer-readable recording medium for controlling indicator lamp
CN106547539A (en) A kind of footmark display packing and 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