CN106453956A - Method for setting no-disturbing mode and mobile terminal - Google Patents

Method for setting no-disturbing mode and mobile terminal Download PDF

Info

Publication number
CN106453956A
CN106453956A CN201611075237.1A CN201611075237A CN106453956A CN 106453956 A CN106453956 A CN 106453956A CN 201611075237 A CN201611075237 A CN 201611075237A CN 106453956 A CN106453956 A CN 106453956A
Authority
CN
China
Prior art keywords
photosensitive
value
default
mobile terminal
less
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
CN201611075237.1A
Other languages
Chinese (zh)
Other versions
CN106453956B (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201611075237.1A priority Critical patent/CN106453956B/en
Publication of CN106453956A publication Critical patent/CN106453956A/en
Application granted granted Critical
Publication of CN106453956B publication Critical patent/CN106453956B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Environmental & Geological Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

The invention provides a method for setting a no-disturbing mode and a mobile terminal. The method comprises the following steps: detecting whether a target light sensation value is lower than a preset light sensation threshold or not; detecting whether an environment noise value is lower than a preset environment noise threshold or not; if the target light sensation value is lower than the preset light sensation threshold, and the environment noise value is lower than the preset environment noise threshold, starting a preset no-disturbing mode. Therefore, the mobile terminal can enter the no-disturbing mode automatically when preset conditions are met, a user does not need to enable the mobile terminal to enter the no-disturbing mode manually, and thus the operation tediousness that the mobile terminal enters the no-disturbing mode can be reduced.

Description

A kind of method of setting interruption-free pattern and mobile terminal
Technical field
The present invention relates to the communications field, more particularly, to a kind of method of setting interruption-free pattern and mobile terminal.
Background technology
With scientific and technological progress, communication technology is developed rapidly and significant progress, and with communication technology Raising, the popularization and improvement of smart electronicses product are to a unprecedented height, increasing intelligent terminal or movement Terminal becomes an indispensable part in people's life, such as smart mobile phone, intelligent television and computer etc..
While mobile terminal is popularized, the functional type that user possesses to mobile terminal and performance requirement are increasingly Height, such as audio-frequency function, camera function, camera function and store function all have become as the indispensable work(of intelligent terminal or mobile terminal Energy.
When user wants rest, if mobile terminal is connected to a logical call request, the tinkle of bells can be sent, and if Enable vibrating mode, mobile terminal also can shake when receiving call request always, the normal rest of impact user.In order to carry High sleep quality, user can make mobile terminal enter interruption-free pattern, and mobile terminal is adjusted to by mode for example manually Mute state, cancels vibrating mode etc..But each user wants mobile terminal will be set to interruption-free pattern during rest, Also mobile terminal is reduced to normal mode after rest, very loaded down with trivial details.Therefore prior art exists and arranges mobile terminal For troublesome problem during interruption-free pattern.
Content of the invention
The embodiment of the present invention provides a kind of method of setting interruption-free pattern and mobile terminal, to solve prior art presence Mobile terminal is set to troublesome problem during interruption-free pattern.
In a first aspect, embodiments providing a kind of method of setting interruption-free pattern, it is applied to mobile terminal, bag Include:
Whether detection target photosensitive value is less than default photosensitive threshold value;
Whether detection environment noise value is less than default ambient noise threshold;
If described target photosensitive value is less than described default photosensitive threshold value, and described environment noise value is less than described default environment Noise threshold, then open default interruption-free pattern.
Second aspect, the embodiment of the present invention also provides a kind of mobile terminal, including:
Whether first detection module, for detecting target photosensitive value less than default photosensitive threshold value;
Whether the second detection module, for detecting environment noise value less than default ambient noise threshold;
Opening module, if being less than described default photosensitive threshold value for described target photosensitive value, and described environment noise value is low In described default ambient noise threshold, then open default interruption-free pattern.
So, in the embodiment of the present invention, whether detection target photosensitive value is less than default photosensitive threshold value;Detection environment noise value Whether less than default ambient noise threshold;If described target photosensitive value is less than described default photosensitive threshold value, and described environment noise Value is less than described default ambient noise threshold, then open default interruption-free pattern.So, the mobile terminal when meeting pre-conditioned Can be automatically into interruption-free pattern, user does not need mode manually to make mobile terminal enter interruption-free pattern, decreases Mobile terminal is made to enter loaded down with trivial details degree during interruption-free pattern.
Brief description
In order to be illustrated more clearly that the technical scheme of the embodiment of the present invention, below will be to required in embodiment of the present invention description Accompanying drawing to be used be briefly described it should be apparent that, drawings in the following description are only some embodiments of the present invention, For those of ordinary skill in the art, without having to pay creative labor, can also be obtained according to these accompanying drawings Obtain other accompanying drawings.
Fig. 1 is the flow chart of a kind of method of setting interruption-free pattern that first embodiment of the invention provides;
Fig. 2 is the flow chart of the method for another kind of setting interruption-free pattern that second embodiment of the invention provides;
Fig. 3 is the schematic diagram of the process that the mobile terminal that second embodiment of the invention provides enters interruption-free pattern;
Fig. 4 is the flow chart of the method for another kind of setting interruption-free pattern that third embodiment of the invention provides;
Fig. 5 is a kind of structure chart of mobile terminal that fourth embodiment of the invention provides;
Fig. 6 is the structure chart of another kind of mobile terminal that fourth embodiment of the invention provides;
Fig. 7 is the structure chart of another kind of mobile terminal that fourth embodiment of the invention provides;
Fig. 8 is the structure chart of another kind of mobile terminal that fourth embodiment of the invention provides;
Fig. 9 is the structure chart of another kind of mobile terminal that fifth embodiment of the invention provides.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation description is it is clear that described embodiment a part of embodiment that is the present invention, rather than whole embodiments.Based on this Embodiment in bright, the every other enforcement that those of ordinary skill in the art are obtained under the premise of not making creative work Example, broadly falls into the scope of protection of the invention.
First embodiment
Referring to Fig. 1, Fig. 1 is a kind of flow chart of the method for setting interruption-free pattern provided in an embodiment of the present invention, application In mobile terminal, as shown in figure 1, comprising the following steps:
Whether step 101, detection target photosensitive value are less than default photosensitive threshold value.
In a step 101, user can choose whether according to their needs to enable and this make mobile terminal automatically into exempting from Bothering the function of pattern, if selecting to make mobile terminal automatically into the function of interruption-free pattern using this, opening interruption-free Pattern is arranged, that is, open interruption-free pattern main switch.In the state of interruption-free pattern main switch is opened, pre-conditioned when meeting When, mobile terminal just can be automatically into interruption-free pattern.If user is not desired to make mobile terminal automatically into interruption-free using this The function of pattern, can close interruption-free pattern main switch, even if so meeting pre-conditioned, mobile terminal also will not enter automatically Enter interruption-free pattern.
It is possible, firstly, to arrange a preset period of time in advance, user can select this preset period of time according to their needs, For example, it is possible to preset period of time is set to 23:00-7:00, this preset period of time will be set to from evening on the same day 11:00 arrives The 7 of the next morning:00.In the state of interruption-free pattern main switch is opened, if entering in preset period of time, just can discontinuity hold Opening the sensitization function of front-facing camera and post-positioned pick-up head, whether detecting photosensitive value less than presetting photosensitive threshold value, if not entering Enter in preset period of time, discontinuity would not open the sensitization function of front-facing camera and post-positioned pick-up head, mobile terminal remains as Normal mode, so can reduce the power consumption of mobile terminal.
In the state of interruption-free pattern main switch is opened, when entering preset period of time, mobile terminal can be opened with discontinuity Open the sensitization function of front-facing camera and post-positioned pick-up head, to detect current photosensitive value whether less than default photosensitive threshold value.Interruption Property open the sensitization function of photographic head and can reduce the power consumption of mobile terminal.It is of course also possible to do not use discontinuity to open take the photograph As the sensitization function of head mode it is also possible to make photographic head sensitization function always on, only this mode can compare consumption Electricity.
Further, since at ordinary times mobile terminal be placed on desk it may be possible to face-up it is also possible to reverse side upward, So front-facing camera with necessarily have a photographic head to contact desktop in post-positioned pick-up head, so that of contact desktop is taken the photograph The light that can capture as head is just considerably less, even if surrounding is in bright state, also due to blocking of desktop and can only A small amount of light is detected.If now only discontinuity opens the sensitization function of a photographic head, and this photographic head just connects Tactile desktop, just very likely produces the situation of erroneous judgement, therefore discontinuity can open the sensitization function of two photographic head simultaneously, this Sample, when mobile terminal is put on the table, necessarily has a photographic head to be not contact desktop, necessarily has the photographic head to be It is not blocked, the photographic head not so being blocked can accurately judge the light and shade state of surrounding, is not in erroneous judgement Situation.
Discontinuity opens the sensitization function of photographic head, can arrange a cycle, for example, can be set in the cycle 10 seconds, In first second, open the sensitization function of front-facing camera, such front-facing camera can obtain a photosensitive value, and first second terminates Afterwards, it is shut off the sensitization function of front-facing camera, in second second, open the sensitization function of post-positioned pick-up head, so rearmounted take the photograph As head also can obtain a photosensitive value, after terminating at second second, it is shut off the sensitization function of post-positioned pick-up head, works as front-facing camera Photosensitive value be less than default first photosensitive threshold value, and when the photosensitive value of post-positioned pick-up head is less than default second photosensitive threshold value, just meeting Open the discontinuity monitor function of main microphon (MIC, Microphone).When the photosensitive value of front-facing camera is higher than default first When the photosensitive value of photosensitive threshold value or post-positioned pick-up head is higher than default second photosensitive threshold value, supervise all without opening main MIC discontinuity Auditory function, and started until terminating for the tenth second from the 3rd second, the sensitization function of front-facing camera and post-positioned pick-up head is always It is closed, until entering next cycle.
For example, in a cycle, that is, first in 10 seconds, if the photosensitive value of front-facing camera is higher than default first sense The photosensitive value of photo threshold or post-positioned pick-up head is higher than default second photosensitive threshold value, monitors work(all without opening main MIC discontinuity Can, and started to terminate until the tenth second from the 3rd second, the sensitization function of two photographic head all in closed mode, subsequently into the Two cycles, that is, enter second time range of 10 seconds, from the beginning of the 11st second, be then turned on the photosensitive work(of front-facing camera Can, at the end of the 11st second, front-facing camera obtains a photosensitive value, after the 11st second terminates, closes the sense of front-facing camera Light function, then from the beginning of the 12nd second, opens the sensitization function of post-positioned pick-up head, post-positioned pick-up head at the end of the 12nd second Obtain a photosensitive value, after the 12nd second terminates, close the sensitization function of post-positioned pick-up head.In second period, that is, second In individual 10 seconds, if the photosensitive value of front-facing camera is less than default first photosensitive threshold value, and the photosensitive value of post-positioned pick-up head is less than in advance If it can be determined that surrounding is in dark state during the second photosensitive threshold value, the discontinuity that now just can open main MIC monitors work( Can, while the discontinuity monitor function of main MIC is opened, the sensitization function of front-facing camera and post-positioned pick-up head will close Close, whether the environment noise value detecting main MIC with that is less than default ambient noise threshold.If in second period, preposition The photosensitive value of photographic head is higher than default second photosensitive threshold value higher than the photosensitive value of default first photosensitive threshold value or post-positioned pick-up head, Now may determine that surrounding is in bright state, then started until terminate for the 20th second from the 13rd second, preposition take the photograph Sensitization function as head and post-positioned pick-up head may turn off, and until entering the 3rd cycle, that is, the 3rd in 10 seconds, so circulates Go down, until the photosensitive value of front-facing camera is less than default first photosensitive threshold value, and the photosensitive value of post-positioned pick-up head is less than and presets Till second photosensitive threshold value, that is, till can opening the discontinuity monitor function of main MIC.
The sensitization function of the sensitization function of front-facing camera and post-positioned pick-up head can not be to be opened simultaneously and simultaneously closes off , when the sensitization function of front-facing camera and the sensitization function of post-positioned pick-up head are opened simultaneously it may appear that the excessive feelings of electric current The sensitization function of the sensitization function of condition, therefore front-facing camera and post-positioned pick-up head can not be to be opened, in time simultaneously Can there is sequencing.For example above-mentioned, the sense of front-facing camera can be opened in the first of a cycle second Light function, opens the sensitization function of post-positioned pick-up head within next second, is not in thus the excessive situation of electric current.Certainly, Open sequencing can arbitrarily setting, for example, it is also possible in first second of a cycle open post-positioned pick-up head Sensitization function, and open the sensitization function of front-facing camera within next second, user arbitrarily can set according to the needs of oneself Put.
And the persistent period in cycle can also arbitrarily set, for example, could be arranged to 11 seconds, 15 seconds, 20 seconds etc..Take the photograph As the persistent period that the sensitization function of head is opened can also arbitrarily set, for example, could be arranged to 2 seconds, 3 seconds etc..
Whether step 102, detection environment noise value are less than default ambient noise threshold.
In a step 102, when the photosensitive value of front-facing camera is less than default first photosensitive threshold value, and the sense of post-positioned pick-up head When light value is less than default second photosensitive threshold value, the discontinuity monitor function of main MIC can be opened, then detect that the environment of main MIC is made an uproar Sound value whether less than default ambient noise threshold, while the discontinuity monitor function of main MIC is opened, front-facing camera and after The sensitization function putting photographic head may turn off.
Open the discontinuity monitor function of main MIC, also for the power consumption reducing mobile terminal.It is of course also possible to not Using the discontinuity monitor function of the main MIC of this unlatching mode it is also possible to make main MIC monitor function always on, only not Cross and so can compare power consumption.A cycle can be set, and the such as persistent period in this cycle was set to 8 seconds, in this week Interim, the monitor function of main MIC can be opened within first three second, whether the environment noise value then detecting main MIC is less than default Ambient noise threshold, if the environment noise value main MIC is detected is less than default ambient noise threshold, illustrates now at surrounding In rest state, and default first photosensitive threshold value is less than by the photosensitive value of front-facing camera, and the photosensitive value of post-positioned pick-up head May determine that surrounding is in dark state less than default second photosensitive threshold value, now just can determine that user has begun to stop Breath, therefore mobile terminal can enter interruption-free pattern.
If in this cycle, the environment noise value of the main MIC detecting within the time of first three second is higher than default environment Noise threshold, illustrates that surrounding is in unrestful state, i.e. more noisy state, illustrates that now user does not start to stop Breath, therefore mobile terminal will not enter interruption-free pattern, and the monitor function of main MIC may turn off after terminating within the 3rd second, and And started to terminate until the 8th second from the 4th second, the monitor function of main MIC can be closed always, until entering next cycle.
For example, in a cycle, the environment noise value of the main MIC detecting within the time of first three second is higher than default Ambient noise threshold, now mobile terminal will not enter interruption-free pattern, and after terminating within the 3rd second main MIC monitor function just Can close, and start to terminate until the 8th second from the 4th second, the monitor function of main MIC can be closed, always subsequently into next The individual cycle, that is, enter the time range of next 8 seconds, in second period, the monitoring work(of main MIC within the time of first three second Can open again, then detect whether the environment noise value of main MIC is less than default ambient noise threshold, if detecting main MIC's Environment noise value is less than default ambient noise threshold, then mobile terminal can enter interruption-free pattern, if the environment of main MIC is detected Noise figure is higher than default ambient noise threshold, illustrates that surrounding is in unrestful state, mobile terminal would not enter exempts from Bother pattern, then started to terminate until the 16th second from the 12nd second, the monitor function of main MIC can be closed always, Zhi Daojin Enter the 3rd cycle, that is, the 3rd so circulation is gone down in 8 seconds, the environment noise value until main MIC is detected is less than default ring Till the noise threshold of border, that is, till mobile terminal enters interruption-free pattern.
And the persistent period in cycle can also arbitrarily set, for example, could be arranged to 12 seconds, 13 seconds, 25 seconds etc..Main The time that the monitor function of MIC is opened can also arbitrarily be arranged, for example, could be arranged to 4 seconds, 6 seconds, 7 seconds etc..
After mobile terminal enters interruption-free pattern, the discontinuity monitor function of main MIC may turn off, and enters in mobile terminal After interruption-free pattern, if surrounding changes, for example environment is changed into bright state again, or environment is changed into unrestful again State, now the sensitization function of photographic head also will not discontinuity open again, will not detect the bright dark state of surrounding again, main The discontinuity monitor function of MIC also will not be then turned on, and will not detect the noisy degree of surrounding again.If user is now manual Break the interruption-free mode state of mobile terminal, that is, open vibration mode, cancel silent mode or the brightness heightening screen, take the photograph Sensitization function as head just can discontinuity be opened again, to detect the bright dark state of surrounding, and the discontinuity of main MIC is monitored Function also can be opened again, to detect the noisy degree of surrounding.
It should be noted that after entrance preset period of time is mentioned above, first discontinuity opens the sensitization function of photographic head, when Photosensitive value is less than the discontinuity monitor function that just can open main MIC when presetting photosensitive threshold value, does not limit the priority of unlatching here Sequentially, for example, it is also possible to first open the discontinuity monitor function of main MIC, make an uproar less than default environment when environment noise value is detected During sound threshold value, then discontinuity opens the sensitization function of photographic head, or both can also be made together to open.
If step 103 described target photosensitive value is less than described default photosensitive threshold value, and described environment noise value is less than described Default ambient noise threshold, then open default interruption-free pattern.
In step 103, when the photosensitive value of front-facing camera is less than default first photosensitive threshold value, and the sense of post-positioned pick-up head Light value is less than during default second photosensitive threshold value it can be determined that surrounding is in dark state, and the environment noise value of main MIC During less than default ambient noise threshold, illustrate that now surrounding is in rest state, now just can determine that user has opened Begin to rest, therefore mobile terminal can enter interruption-free pattern.
It should be noted that in the state of interruption-free pattern main switch is opened, in preset period of time, if meeting default bar Part, mobile terminal enters interruption-free pattern, if now closing interruption-free pattern main switch, mobile terminal can be at once by current Interruption-free pattern switching is normal mode.Mobile terminal by the mode record being presently in and can store, for example, if working as In normal mode, mobile terminal by current normal mode record and can store front mobile end, in interruption-free pattern In the state of main switch is opened, after entering preset period of time, if meeting pre-conditioned, mobile terminal enters interruption-free pattern, this If when close interruption-free pattern main switch, mobile terminal can be changed into the normal mode storing before at once.
In the state of interruption-free pattern main switch is opened, enter preset period of time, if meeting pre-conditioned, mobile terminal meeting Enter interruption-free pattern, after excessively complete preset period of time, even if not closing interruption-free pattern main switch, mobile terminal also can be by current Interruption-free pattern switching is the normal mode storing before.
In the embodiment of the present invention, above-mentioned mobile terminal can be mobile phone, panel computer (Tablet Personal Computer), kneetop computer (Laptop Computer), personal digital assistant (personal digital Assistant, abbreviation PDA), mobile Internet access device (Mobile Internet Device, MID) or Wearable device (Wearable Device) etc..
The method of the setting interruption-free pattern of the embodiment of the present invention, whether detection target photosensitive value is less than default light sense threshold Value;Whether detection environment noise value is less than default ambient noise threshold;If described target photosensitive value is less than described default light sense threshold Value, and described environment noise value is less than described default ambient noise threshold, then open default interruption-free pattern.So, work as satisfaction When pre-conditioned, mobile terminal can be automatically into interruption-free pattern, and user does not need mode manually so that mobile terminal is entered Interruption-free pattern, decreases the loaded down with trivial details degree making mobile terminal enter during interruption-free pattern.
Second embodiment
Referring to Fig. 2, Fig. 2 is the flow chart of the method that the embodiment of the present invention provides another kind of setting interruption-free pattern, application In mobile terminal, as shown in Fig. 2 comprising the following steps:
Whether step 201, detection current time are in preset period of time.
In step 201, it can be determined that whether current time is default in the state of the unlatching of interruption-free pattern main switch In period.For example, it is possible to preset period of time is set to 22:30-7:00, that is, from the 10 of evening on the same day:30 arrive the next morning 7:00.
If the described current time of step 202 is in described preset period of time, whether execute described detection target photosensitive value Step less than presetting photosensitive threshold value.
When entering this preset period of time, the front-facing camera of mobile terminal and the sensitization function of post-positioned pick-up head all can be interrupted Property open, to detect the bright dark state of surrounding.
Whether step 203, detection target photosensitive value are less than default photosensitive threshold value.
In step 203, discontinuity opens the sensitization function of front-facing camera and post-positioned pick-up head, can arrange a week Phase, the such as persistent period in cycle are set to 8 seconds, within this cycle, open the sense of front-facing camera when first second starts Light function, at the end of first second, front-facing camera obtains a photosensitive value, after first second terminates, the sensitization function of front-facing camera Close, when second second starts, the sensitization function of post-positioned pick-up head is opened, and at the end of second second, post-positioned pick-up head also obtains one Photosensitive value, after second second terminates, the sensitization function of post-positioned pick-up head is closed.Within this cycle, if what front-facing camera obtained Photosensitive value is less than default first photosensitive threshold value, and when the photosensitive value of post-positioned pick-up head is less than default second photosensitive threshold value, just can hold Open the discontinuity monitor function of main MIC.When the photosensitive value of front-facing camera is higher than default first photosensitive threshold value or rearmounted shooting When the photosensitive value of head is higher than default second photosensitive threshold value, all without the main MIC discontinuity monitor function of unlatching, and opened from the 3rd second Begin until terminating for the 8th second, the sensitization function of front-facing camera and post-positioned pick-up head is constantly in closed mode, until entering Next cycle.
Optionally, whether described detection target photosensitive value is less than and presets photosensitive threshold value, including:
Whether the first photosensitive value of front-facing camera detecting described mobile terminal is less than default first photosensitive threshold value;
Whether the second photosensitive value of post-positioned pick-up head detecting described mobile terminal is less than default second photosensitive threshold value;
If the first photosensitive value of the front-facing camera of described mobile terminal is less than described default first photosensitive threshold value, and described Second photosensitive value of the post-positioned pick-up head of mobile terminal is less than described default second photosensitive threshold value it is determined that described target photosensitive value Preset photosensitive threshold value less than described.
As shown in figure 3, enter the schematic diagram of the process of interruption-free pattern for mobile terminal.If in a cycle, when The photosensitive value of front-facing camera is photosensitive higher than default second higher than the photosensitive value of default first photosensitive threshold value or post-positioned pick-up head During threshold value, all without opening main MIC discontinuity monitor function, and started until terminate for the 8th second from the 3rd second, preposition take the photograph Sensitization function as head and post-positioned pick-up head is constantly in closed mode, subsequently into second period, when starting within the 9th second Open the sensitization function of front-facing camera, at the end of the 9th second, front-facing camera obtains a photosensitive value, after the 9th second terminates, front The sensitization function putting photographic head is closed, and when the tenth second starts, the sensitization function of post-positioned pick-up head is opened, at the end of the tenth second, after Put photographic head and also obtain a photosensitive value, after the tenth second terminates, the sensitization function of post-positioned pick-up head is closed.In second period Interior, if when the photosensitive value that the photosensitive value of front-facing camera is higher than default first photosensitive threshold value or post-positioned pick-up head is higher than default the During two photosensitive threshold values, all without the main MIC discontinuity monitor function of unlatching, and started until the 16th second ties from the 11st second Bundle, the sensitization function of front-facing camera and post-positioned pick-up head is constantly in closed mode, until entering the 3rd cycle.
When starting within the 17th second, within the 3rd cycle, open the sensitization function of front-facing camera, the 17th second terminates When front-facing camera obtain a photosensitive value, after the 17th second terminates, the sensitization function of front-facing camera is closed, and opens within the 18th second During the beginning, the sensitization function of post-positioned pick-up head is opened, and at the end of the 18th second, post-positioned pick-up head also obtains a photosensitive value, and the tenth After eight seconds terminate, the sensitization function of post-positioned pick-up head is closed.Within the 3rd cycle, if the photosensitive value that front-facing camera obtains is low In default first photosensitive threshold value, and the photosensitive value of post-positioned pick-up head is less than default second photosensitive threshold value, may turn between main MIC Disconnected property monitor function.
Whether step 204, detection environment noise value are less than default ambient noise threshold.
In step 204, mentioned in the first embodiment, while the discontinuity monitor function of main MIC starts, took the photograph Sensitization function as head may turn off, and in the present embodiment, then introduces a kind of mode.
After the discontinuity monitor function of main MIC is opened, still discontinuity opens front-facing camera and post-positioned pick-up head Sensitization function.For the discontinuity monitor function opening main MIC, a cycle, such as holding this cycle can be set The continuous time is also configured as 8 seconds, in first two seconds of this cycle, opens the monitor function of main MIC, at the end of second second, detection Whether the environment noise value of main MIC is less than default ambient noise threshold.
As shown in figure 3, when main MIC discontinuity monitor function open when, still discontinuity open front-facing camera and after Put the sensitization function of photographic head, and count when the discontinuity monitor function of main MIC is opened, can arrange one default when Long, in the range of this preset duration, if the photosensitive value of front-facing camera is less than default first photosensitive threshold value, and rearmounted take the photograph As the photosensitive value of head is less than default second photosensitive threshold value, and the environment noise value of main MIC is less than default ambient noise threshold, moves Dynamic terminal just can enter interruption-free pattern, in the range of this preset duration, if the photosensitive value of front-facing camera is higher than pre- If the first photosensitive threshold value, or the photosensitive value of post-positioned pick-up head is higher than default second photosensitive threshold value, or the environment noise of main MIC , higher than default ambient noise threshold, mobile terminal is all without entrance interruption-free pattern for value.
For example, it is possible to be set to this preset duration 42 seconds, and the discontinuity monitor function in main MIC opens it Afterwards, still discontinuity opens the sensitization function of front-facing camera and post-positioned pick-up head, now opens front-facing camera in discontinuity During with the sensitization function of post-positioned pick-up head, the cycle can be elongated on the basis of original, in the step 203 of the present embodiment In will be set in the cycle 8 seconds, here, the cycle 16 seconds can be elongated to.
In the range of first preset duration, that is, in first time range of 42 seconds, as long as occur destroying entering The situation of the condition of interruption-free pattern, mobile terminal is all without entrance interruption-free pattern, and just enters interruption-free mould from destruction Count when the condition of formula, reenter in the range of second preset duration, if in the range of second preset duration, and Occur in that the situation destroying the condition entering interruption-free pattern, mobile terminal will not enter interruption-free pattern, and just from destruction Count when the condition entering interruption-free pattern, reenter in the range of the 3rd preset duration, so circulation is gone down, until In the range of a complete preset duration, the condition entering interruption-free pattern can meet, and now mobile terminal just can enter Enter interruption-free pattern.
For example, in the range of first preset duration, that is, in first time range of 42 seconds, if the 16th second terminates Afterwards, the photosensitive value of front-facing camera is higher than default first photosensitive threshold value, or the photosensitive value of post-positioned pick-up head is higher than default second Photosensitive threshold value, mobile terminal will not enter interruption-free pattern, and reenters next preset duration after terminating at the 16th second In the range of.Or, at the end of the 42nd second, the environment noise value of main MIC is higher than default ambient noise threshold, mobile terminal Interruption-free pattern will not be entered, and after terminating at the 42nd second, reenter in the range of next preset duration.
With at the end of the 42nd second, as a example the environment noise value of main MIC is higher than default ambient noise threshold, now mobile whole End will not enter interruption-free pattern, after terminating at the 42nd second, reenter in the range of next preset duration, that is, reenter In the time range of next 42 seconds, namely enter in second time range of 42 seconds, if the model in second preset duration The situation of any condition destroyed and enter interruption-free pattern, in enclosing, does not occur, if that is, the photosensitive value of front-facing camera is less than Default first photosensitive threshold value, and the photosensitive value of post-positioned pick-up head is less than default second photosensitive threshold value, and the environment noise of main MIC Value just can enter interruption-free pattern less than default ambient noise threshold, mobile terminal, and that is, mobile terminal can be at the end of the 84th second Enter interruption-free pattern.
Adopt can improve in this way and judge that user is the accuracy rate in rest, certainly, except two kinds described above Mode, can also have other modes, for example, it is also possible to be this mode, when the photosensitive value of two photographic head continuous three times low When corresponding threshold value, just can open the discontinuity monitor function of main MIC, now be shut off the sensitization function of two photographic head, And when main MIC also detects environment noise value for continuous three times and is less than default ambient noise threshold, mobile terminal just can enter Interruption-free pattern.Adopt equally can improve in this way and judge that user is the accuracy rate in rest.
It should be noted that aforesaid way is a kind of illustration, can also there are other modes, as long as phase can be reached Do not limit with purpose concrete mode.
If step 205 described target photosensitive value is less than described default photosensitive threshold value, and described environment noise value is less than described Default ambient noise threshold, then open default interruption-free pattern.
In step 205, as it was previously stated, in preset period of time, when meeting pre-conditioned, mobile terminal will enter exempts from Bother pattern.
Optionally, if being less than described default photosensitive threshold value in described target photosensitive value, and described environment noise value is low In described default ambient noise threshold, then, before opening default interruption-free pattern, methods described also includes:
Detect whether described mobile terminal is in predeterminated position;
If described target photosensitive value is less than described default photosensitive threshold value, and described environment noise value is less than described presetting Ambient noise threshold, then open default interruption-free pattern, including:
If described target photosensitive value is less than described default photosensitive threshold value, and described environment noise value is less than described default environment Noise threshold, and described mobile terminal is in described predeterminated position, then open the described default interruption-free mould of described mobile terminal Formula.
Except detection photosensitive value and environment noise value, can also detect whether mobile terminal location is default position Put.Here can there is two ways, a kind of mode is that the coordinate of the position in the place in advance user often rested is stored in shifting In dynamic terminal, for example can be in advance by the position coordinateses of the family of user, the position coordinateses of the office space of user or user The position coordinateses of the family of relative are stored in mobile terminal, and after entering preset period of time, mobile terminal can detect and be presently in Whether the coordinate of position is mated with the position coordinateses being previously stored, and upon a match, illustrates that user is in the place of frequent rest, It is determined that user rests so when other conditions all meet, now mobile terminal can enter interruption-free pattern.
Another way be set one pre-conditioned, when mobile terminal detects the position being presently in, to meet this pre- If it is possible to determine that user is in the place that can rest during condition.For example when user is in hotel, mobile terminal can Meet pre-conditioned the position being presently in is detected, illustrate that user is in the place that can rest, so when other It is determined that user rests when part all meets, now mobile terminal can enter interruption-free pattern.
As it was previously stated, in the state of interruption-free pattern main switch is opened, and in preset period of time, if preposition shooting The photosensitive value of head is less than default first photosensitive threshold value, and the photosensitive value of post-positioned pick-up head is less than default second photosensitive threshold value, and The environment noise value of main MIC is less than default ambient noise threshold, and mobile terminal detects and is presently in position for default position Put, mobile terminal just can enter interruption-free pattern.
It should be noted that not limiting the order of detection, after entering preset period of time, detection photosensitive value, detection environment Whether the position that noise figure is presently in detection is predeterminated position, and the order of this three can arbitrarily adjust, above-mentioned embodiment party Formula is only a kind of illustration.
Optionally, described default interruption-free pattern includes silent mode, exempts from vibrating mode and the soft pattern of screen intensity.
Interruption-free pattern can include silent mode, exempt from vibrating mode and the soft pattern of screen intensity.For example, when being connected to one During logical call request, the brightness of screen can than normal mode when screen intensity dark, or when user wanted to see one at night During the lower time, brightness after screen bright screen also can than normal mode when screen intensity dark, thus will not be to user's Eyes cause significantly to stimulate.
The method of the setting interruption-free pattern of the embodiment of the present invention, mobile terminal discontinuity opens front-facing camera and rearmounted The sensitization function of photographic head, presets the first photosensitive threshold value when the current photosensitive value of front-facing camera is less than, and post-positioned pick-up head When current photosensitive value is less than default second photosensitive threshold value, judge that surrounding is in dark state, now open mobile terminal The discontinuity monitor function of main microphon, when the ambient noise present value of main microphon is less than default ambient noise threshold, sentences Disconnected surrounding is in rest state, if mobile terminal also detects that being presently in position is predeterminated position, mobile terminal just meeting Enter interruption-free pattern.So, when meeting pre-conditioned, mobile terminal can be automatically into interruption-free pattern, and user does not need to lead to Crossing manual mode makes mobile terminal enter interruption-free pattern, decreases loaded down with trivial details when making mobile terminal entrance interruption-free pattern Degree.
3rd embodiment
Referring to Fig. 4, Fig. 4 is the flow chart of the method that the embodiment of the present invention provides another kind of setting interruption-free pattern, application In mobile terminal, as shown in figure 4, comprising the following steps:
Step 401, unlatching interruption-free pattern main switch.
In step 401, user can choose whether according to their needs to enable and this make mobile terminal automatically into exempting from Bothering the function of pattern, if selecting to make mobile terminal automatically into the function of interruption-free pattern using this, opening interruption-free Pattern is arranged, that is, open interruption-free pattern main switch.If user is not desired to make mobile terminal automatically into interruption-free mould using this The function of formula, can close interruption-free pattern main switch, even if so meeting pre-conditioned, mobile terminal also will not be automatically into Interruption-free pattern.
Whether step 402, detection current time are in preset period of time.
In step 402, in the state of the unlatching of interruption-free pattern main switch, mobile terminal can detect that current time is No be in preset period of time, if current time is in preset period of time, just can carry out next step detection, if current time is not located In preset period of time, next step detection would not be carried out, mobile terminal is still within normal mode.
Step 403, judge that whether the photosensitive value of front-facing camera presets photosensitive threshold value less than first, judge post-positioned pick-up head Photosensitive value whether preset photosensitive threshold value less than second.
In step 403, if current time is in preset period of time, mobile terminal can discontinuity open front-facing camera and The sensitization function of post-positioned pick-up head, to detect the bright dark state of surrounding.When the photosensitive value of front-facing camera is less than default the One photosensitive threshold value, and when the photosensitive value of post-positioned pick-up head is less than default second photosensitive threshold value, judge that surrounding is in dark shape State, now just can open the discontinuity monitor function of main MIC.When the photosensitive value of front-facing camera is higher than default first photosensitive threshold value Or when the photosensitive value of post-positioned pick-up head is higher than default second photosensitive threshold value, judge that surrounding is in bright state, now not Main MIC discontinuity monitor function can be opened, mobile terminal remains as normal mode.
Step 404, judge the environment noise value of main MIC whether less than default ambient noise threshold.
In step 404, when judging that surrounding is in dark state, the discontinuity that just can open main MIC monitors work( Energy.When the environment noise value of main MIC is less than default ambient noise threshold, can judge that surrounding is in rest state, now Mobile terminal can enter interruption-free pattern, when the environment noise value of main MIC is higher than default ambient noise threshold, can judge week Collarette border is in unrestful state, and now mobile terminal will not enter interruption-free pattern, that is, remain as normal mode.
Step 405, when meeting pre-conditioned, mobile terminal enters interruption-free pattern, if being unsatisfactory for pre-conditioned, mobile Terminal will not enter interruption-free pattern.
In step 405, in the state of the unlatching of interruption-free pattern main switch, in preset period of time, if front-facing camera Photosensitive value be less than default first photosensitive threshold value, and the photosensitive value of post-positioned pick-up head is less than default second photosensitive threshold value, and main When the environment noise value of MIC is less than default ambient noise threshold, mobile terminal just can enter interruption-free pattern, any of the above one When condition is unsatisfactory for, mobile terminal all without entering interruption-free pattern, that is, remains in that normal mode.
The method of the setting interruption-free pattern of the embodiment of the present invention, mobile terminal discontinuity opens front-facing camera and rearmounted The sensitization function of photographic head, presets the first photosensitive threshold value when the current photosensitive value of front-facing camera is less than, and post-positioned pick-up head When current photosensitive value is less than default second photosensitive threshold value, judge that surrounding is in dark state, now open mobile terminal The discontinuity monitor function of main microphon, when the ambient noise present value of main microphon is less than default ambient noise threshold, sentences Disconnected surrounding is in rest state, and now mobile terminal just can enter interruption-free pattern.So, when meeting pre-conditioned time shift Dynamic terminal can be automatically into interruption-free pattern, and user does not need mode manually to make mobile terminal enter interruption-free pattern, Decrease the loaded down with trivial details degree making mobile terminal enter during interruption-free pattern.
Fourth embodiment
Referring to Fig. 5, Fig. 5 is the structure chart of the mobile terminal that the present invention implements to provide, as shown in figure 5, mobile terminal 500 wraps Include first detection module 501, the second detection module 502 and opening module 503, wherein:
Whether first detection module 501, for detecting target photosensitive value less than default photosensitive threshold value;
Whether the second detection module 502, for detecting environment noise value less than default ambient noise threshold;
Opening module 503, if being less than described default photosensitive threshold value for described target photosensitive value, and described environment noise value Less than described default ambient noise threshold, then open default interruption-free pattern.
Optionally, as shown in fig. 6, described mobile terminal also includes:
3rd detection module 504, for detecting whether described mobile terminal is in predeterminated position;
If opening module 503 is used for described target photosensitive value is less than described default photosensitive threshold value, and described environment noise value Less than described default ambient noise threshold, and described mobile terminal is in described predeterminated position, then open described mobile terminal Described default interruption-free pattern.
Optionally, as shown in fig. 7, described mobile terminal also includes:
4th detection module 505, for detecting whether current time is in preset period of time;
Performing module 506, if being in described preset period of time for described current time, executes described detection target sense Whether light value is less than the step presetting photosensitive threshold value.
Optionally, as shown in figure 8, first detection module 501 includes:
5th detection module 5011, whether the first photosensitive value for detecting the front-facing camera of described mobile terminal is less than Default first photosensitive threshold value;
6th detection module 5012, whether the second photosensitive value for detecting the post-positioned pick-up head of described mobile terminal is less than Default second photosensitive threshold value;
Determining module 5013, if the first photosensitive value for the front-facing camera of described mobile terminal is less than described default the One photosensitive threshold value, and the second photosensitive value of the post-positioned pick-up head of described mobile terminal is less than described default second photosensitive threshold value, then Determine that described target photosensitive value is less than described default photosensitive threshold value.
Optionally, described default interruption-free pattern includes silent mode, exempts from vibrating mode and the soft pattern of screen intensity.
Mobile terminal 500 is capable of each process that in the embodiment of the method for Fig. 1, Fig. 2 and Fig. 4, mobile terminal is realized, For avoiding repeating, repeat no more here.And mobile terminal 500 can realize discontinuity unlatching front-facing camera and post-positioned pick-up head Sensitization function, when the current photosensitive value of front-facing camera is less than default first photosensitive threshold value, and the current sense of post-positioned pick-up head When light value is less than default second photosensitive threshold value, judge that surrounding is in dark state, now open the main Mike of mobile terminal The discontinuity monitor function of wind, when the ambient noise present value of main microphon is less than default ambient noise threshold, judges surrounding Environment is in rest state, and now mobile terminal just can enter interruption-free pattern.So, the mobile terminal when meeting pre-conditioned Can be automatically into interruption-free pattern, user does not need mode manually to make mobile terminal enter interruption-free pattern, decreases Mobile terminal is made to enter loaded down with trivial details degree during interruption-free pattern.
5th embodiment
Referring to Fig. 9, Fig. 9 is the structure chart of the mobile terminal that the present invention implements to provide, as shown in figure 9, mobile terminal 900 wraps Include:At least one processor 901, memorizer 902, at least one network interface 904 and user interface 903.In mobile terminal 900 Each assembly be coupled by bus system 905.It is understood that bus system 905 is used for realizing between these assemblies Connection communication.Bus system 905, in addition to including data/address bus, also includes power bus, controlling bus and status signal bus in addition. But for the sake of clear explanation, in fig .9 various buses are all designated as bus system 905.
Wherein, user interface 903 can include display, keyboard or pointing device (for example, mouse, trace ball (track ball), touch-sensitive plate or touch screen etc..
It is appreciated that the memorizer 902 in the embodiment of the present invention can be volatile memory or nonvolatile memory, Or may include volatibility and nonvolatile memory.Wherein, nonvolatile memory can be read only memory (Read- Only Memory, ROM), programmable read only memory (Programmable ROM, PROM), the read-only storage of erasable programmable Device (Erasable PROM, EPROM), Electrically Erasable Read Only Memory (Electrically EPROM, EEPROM) or Flash memory.Volatile memory can be random access memory (Random Access Memory, RAM), and it is used as outside high Speed caching.By exemplary but be not restricted explanation, the RAM of many forms can use, such as static RAM (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), Synchronous Dynamic Random Access Memory (Synchronous DRAM, SDRAM), double data speed synchronous dynamic RAM (Double Data Rate SDRAM, DDRSDRAM), enhancement mode Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronized links Dynamic random access memory (Synchlink DRAM, SLDRAM) and direct rambus random access memory (Direct Rambus RAM, DRRAM).The memorizer 902 of system and method described herein be intended to including but not limited to these and arbitrarily its It is suitable for the memorizer of type.
In some embodiments, memorizer 902 stores following element, executable module or data structure, or Their subset of person, or their superset:Operating system 9021 and application program 9022.
Wherein, operating system 9021, comprise various system programs, such as ccf layer, core library layer, driving layer etc., are used for Realize various basic businesses and process hardware based task.Application program 9022, comprises various application programs, such as media Player (Media Player), browser (Browser) etc., are used for realizing various applied business.Realize the embodiment of the present invention The program of method may be embodied in application program 9022.
In embodiments of the present invention, can be by calling program or the instruction of memorizer 902 storage, specifically, application The program of storage or instruction in program 9022, processor 901 is used for:
Whether detection target photosensitive value is less than default photosensitive threshold value;
Whether detection environment noise value is less than default ambient noise threshold;
If described target photosensitive value is less than described default photosensitive threshold value, and described environment noise value is less than described default environment Noise threshold, then open default interruption-free pattern.
The method that the embodiments of the present invention disclose can apply in processor 901, or is realized by processor 901. Processor 901 is probably a kind of IC chip, has the disposal ability of signal.Realize during, said method each Step can be completed by the instruction of the integrated logic circuit of the hardware in processor 901 or software form.Above-mentioned process Device 901 can be general processor, digital signal processor (Digital Signal Processor, DSP), special integrated electricity Road (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field Programmable Gate Array, FPGA) or other PLDs, discrete gate or transistor logic, Discrete hardware components.Can realize or execute disclosed each method in the embodiment of the present invention, step and logic diagram.General Processor can be microprocessor or this processor can also be any conventional processor etc..In conjunction with embodiment of the present invention institute The step of disclosed method can be embodied directly in hardware decoding processor execution and complete, or with the hardware in decoding processor And software module combination execution completes.Software module may be located at random access memory, and flash memory, read only memory are programmable read-only In the ripe storage medium in this area such as memorizer or electrically erasable programmable memory, depositor.This storage medium is located at Memorizer 902, processor 901 reads the information in memorizer 902, the step completing said method in conjunction with its hardware.
It is understood that embodiments described herein can with hardware, software, firmware, middleware, microcode or its Combine and to realize.Hardware is realized, processing unit can be implemented in one or more special IC (Application Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing, DSP), digital signal processing appts (DSP Device, DSPD), programmable logic device (Programmable Logic Device, PLD), field programmable gate array (Field-Programmable Gate Array, FPGA), general processor, Controller, microcontroller, microprocessor, for executing in other electronic units or a combination thereof of herein described function.
Software is realized, can be realized herein by executing the module (such as process, function etc.) of function described herein Described technology.Software code is storable in memorizer and passes through computing device.Memorizer can within a processor or Realize outside processor.
Optionally, if being less than described default photosensitive threshold value in described target photosensitive value, and described environment noise value is low In described default ambient noise threshold, then, before opening default interruption-free pattern, processor 901 is additionally operable to:
Detect whether described mobile terminal is in predeterminated position;
If processor 901 executes described target photosensitive value and is less than described default photosensitive threshold value, and described environment noise Value is less than described default ambient noise threshold, then open default interruption-free pattern, including:
If described target photosensitive value is less than described default photosensitive threshold value, and described environment noise value is less than described default environment Noise threshold, and described mobile terminal is in described predeterminated position, then open the described default interruption-free mould of described mobile terminal Formula.
Optionally, before whether described detection target photosensitive value is less than presetting photosensitive threshold value, processor 901 is additionally operable to:
Whether detection current time is in preset period of time;
If described current time is in described preset period of time, whether execute described detection target photosensitive value less than default The step of photosensitive threshold value.
Optionally, processor 901 executes whether described detection target photosensitive value is less than default photosensitive threshold value, including:
Whether the first photosensitive value of front-facing camera detecting described mobile terminal is less than default first photosensitive threshold value;
Whether the second photosensitive value of post-positioned pick-up head detecting described mobile terminal is less than default second photosensitive threshold value;
If the first photosensitive value of the front-facing camera of described mobile terminal is less than described default first photosensitive threshold value, and described Second photosensitive value of the post-positioned pick-up head of mobile terminal is less than described default second photosensitive threshold value it is determined that described target photosensitive value Preset photosensitive threshold value less than described.
Optionally, processor 901 executes described default interruption-free pattern and includes silent mode, exempts from vibrating mode and screen is bright Spend soft pattern.
Mobile terminal 900 is capable of each process that in previous embodiment, mobile terminal is realized, for avoiding repeating, here Repeat no more.And mobile terminal 900 can realize the sensitization function that discontinuity opens front-facing camera and post-positioned pick-up head, currently The current photosensitive value putting photographic head is less than default first photosensitive threshold value, and the current photosensitive value of post-positioned pick-up head is less than default second During photosensitive threshold value, judge that surrounding is in dark state, the discontinuity now opening the main microphon of mobile terminal monitors work( Can, when the ambient noise present value of main microphon is less than default ambient noise threshold, judge that surrounding is in rest state, Now mobile terminal just can enter interruption-free pattern.So, when meeting pre-conditioned, mobile terminal can be automatically into interruption-free Pattern, user does not need mode manually to make mobile terminal enter interruption-free pattern, decreases and so that mobile terminal entrance is exempted from Bother loaded down with trivial details degree during pattern.
Those of ordinary skill in the art are it is to be appreciated that combine the list of each example of the embodiments described herein description Unit and algorithm steps, being capable of being implemented in combination in electronic hardware or computer software and electronic hardware.These functions are actually To be executed with hardware or software mode, the application-specific depending on technical scheme and design constraint.Professional and technical personnel Each specific application can be used different methods to realize described function, but this realization is it is not considered that exceed The scope of the present invention.
Those skilled in the art can be understood that, for convenience and simplicity of description, the system of foregoing description, Device and the specific work process of unit, may be referred to the corresponding process in preceding method embodiment, will not be described here.
It should be understood that disclosed apparatus and method in embodiment provided herein, can pass through other Mode is realized.For example, device embodiment described above is only schematically, for example, the division of described unit, it is only A kind of division of logic function, actual can have other dividing mode when realizing, for example multiple units or assembly can in conjunction with or Person is desirably integrated into another system, or some features can be ignored, or does not execute.Another, shown or discussed is mutual Between coupling or direct-coupling or communication connection can be by some interfaces, the INDIRECT COUPLING of device or unit or communication link Connect, can be electrical, mechanical or other forms.
The described unit illustrating as separating component can be or may not be physically separate, show as unit The part showing can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected according to the actual needs to realize embodiment of the present invention scheme Purpose.
In addition, can be integrated in a processing unit in each functional unit in each embodiment of the present invention it is also possible to It is that unit is individually physically present it is also possible to two or more units are integrated in a unit.
If described function realized using in the form of SFU software functional unit and as independent production marketing or use when, permissible It is stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other words Partly being embodied in the form of software product of part that prior art is contributed or this technical scheme, this meter Calculation machine software product is stored in a storage medium, including some instructions with so that a computer equipment (can be individual People's computer, server, or network equipment etc.) execution each embodiment methods described of the present invention all or part of step. And aforesaid storage medium includes:USB flash disk, portable hard drive, ROM, RAM, magnetic disc or CD etc. are various can be with store program codes Medium.
The above, the only specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, and any Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, all should contain Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be defined by scope of the claims.

Claims (10)

1. a kind of method of setting interruption-free pattern, is applied to mobile terminal it is characterised in that methods described includes:
Whether detection target photosensitive value is less than default photosensitive threshold value;
Whether detection environment noise value is less than default ambient noise threshold;
If described target photosensitive value is less than described default photosensitive threshold value, and described environment noise value is less than described default environment noise Threshold value, then open default interruption-free pattern.
If 2. the method for claim 1 it is characterised in that be less than described default photosensitive in described target photosensitive value Threshold value, and described environment noise value is less than described default ambient noise threshold, then before opening default interruption-free pattern, described side Method also includes:
Detect whether described mobile terminal is in predeterminated position;
If described target photosensitive value is less than described default photosensitive threshold value, and described environment noise value is less than described default environment Noise threshold, then open default interruption-free pattern, including:
If described target photosensitive value is less than described default photosensitive threshold value, and described environment noise value is less than described default environment noise Threshold value, and described mobile terminal is in described predeterminated position, then open the described default interruption-free pattern of described mobile terminal.
3. whether the method for claim 1 is it is characterised in that be less than default light sense threshold in described detection target photosensitive value Before value, methods described also includes:
Whether detection current time is in preset period of time;
If described current time is in described preset period of time, whether photosensitive less than default execute described detection target photosensitive value The step of threshold value.
4. method as claimed in claim 3 is it is characterised in that whether described detection target photosensitive value is less than default light sense threshold Value, including:
Whether the first photosensitive value of front-facing camera detecting described mobile terminal is less than default first photosensitive threshold value;
Whether the second photosensitive value of post-positioned pick-up head detecting described mobile terminal is less than default second photosensitive threshold value;
If the first photosensitive value of the front-facing camera of described mobile terminal is less than described default first photosensitive threshold value, and described movement Second photosensitive value of the post-positioned pick-up head of terminal is less than described default second photosensitive threshold value it is determined that described target photosensitive value is less than Described default photosensitive threshold value.
5. the method as described in any one of claim 1-4 is it is characterised in that described default interruption-free pattern includes quiet mould Formula, exempt from vibrating mode and the soft pattern of screen intensity.
6. a kind of mobile terminal is it is characterised in that include:
Whether first detection module, for detecting target photosensitive value less than default photosensitive threshold value;
Whether the second detection module, for detecting environment noise value less than default ambient noise threshold;
Opening module, if being less than described default photosensitive threshold value for described target photosensitive value, and described environment noise value is less than institute State default ambient noise threshold, then open default interruption-free pattern.
7. mobile terminal as claimed in claim 6 is it is characterised in that described mobile terminal also includes:
3rd detection module, for detecting whether described mobile terminal is in predeterminated position;
If described opening module is used for described target photosensitive value is less than described default photosensitive threshold value, and described environment noise value is less than Described default ambient noise threshold, and described mobile terminal is in described predeterminated position, then open the described of described mobile terminal Default interruption-free pattern.
8. mobile terminal as claimed in claim 6 is it is characterised in that described mobile terminal also includes:
4th detection module, for detecting whether current time is in preset period of time;
Performing module, if being in described preset period of time for described current time, executing described detection target photosensitive value is The no step less than presetting photosensitive threshold value.
9. mobile terminal as claimed in claim 8 is it is characterised in that described first detection module includes:
5th detection module, whether the first photosensitive value for detecting the front-facing camera of described mobile terminal is less than default first Photosensitive threshold value;
6th detection module, whether the second photosensitive value for detecting the post-positioned pick-up head of described mobile terminal is less than default second Photosensitive threshold value;
Determining module, if the first photosensitive value for the front-facing camera of described mobile terminal is less than described default first light sense threshold Value, and the second photosensitive value of the post-positioned pick-up head of described mobile terminal is less than described default second photosensitive threshold value it is determined that described Target photosensitive value is less than described default photosensitive threshold value.
10. the mobile terminal as described in any one of claim 6-9 it is characterised in that described default interruption-free pattern include quiet Sound pattern, exempt from vibrating mode and the soft pattern of screen intensity.
CN201611075237.1A 2016-11-25 2016-11-25 A kind of method and mobile terminal that interruption-free mode is set Active CN106453956B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611075237.1A CN106453956B (en) 2016-11-25 2016-11-25 A kind of method and mobile terminal that interruption-free mode is set

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611075237.1A CN106453956B (en) 2016-11-25 2016-11-25 A kind of method and mobile terminal that interruption-free mode is set

Publications (2)

Publication Number Publication Date
CN106453956A true CN106453956A (en) 2017-02-22
CN106453956B CN106453956B (en) 2019-11-15

Family

ID=58222973

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611075237.1A Active CN106453956B (en) 2016-11-25 2016-11-25 A kind of method and mobile terminal that interruption-free mode is set

Country Status (1)

Country Link
CN (1) CN106453956B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107582028A (en) * 2017-09-25 2018-01-16 北京小米移动软件有限公司 Sleep monitor method and device
CN108089905A (en) * 2017-12-22 2018-05-29 宇龙计算机通信科技(深圳)有限公司 Interruption-free processing method, terminal and computer-readable medium
CN108965612A (en) * 2018-10-22 2018-12-07 珠海格力电器股份有限公司 A kind of control method and mobile phone of interruption-free mode

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101535890A (en) * 2006-11-24 2009-09-16 索尼爱立信移动通讯有限公司 Light sensor for luminance control in a display in a portable device
US20120162636A1 (en) * 2010-12-23 2012-06-28 Silicon Laboratories, Inc. Proximity detector including anti-falsing mechanism
CN103428368A (en) * 2013-08-09 2013-12-04 深圳辉烨通讯技术有限公司 Method and device for realizing silent incoming call of intelligent terminal
CN103986839A (en) * 2014-05-30 2014-08-13 深圳市中兴移动通信有限公司 Method for automatically setting contextual model and mobile terminal
CN104508573A (en) * 2012-08-03 2015-04-08 三星电子株式会社 Method and apparatus for alarm service using context awareness in portable terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101535890A (en) * 2006-11-24 2009-09-16 索尼爱立信移动通讯有限公司 Light sensor for luminance control in a display in a portable device
US20120162636A1 (en) * 2010-12-23 2012-06-28 Silicon Laboratories, Inc. Proximity detector including anti-falsing mechanism
CN104508573A (en) * 2012-08-03 2015-04-08 三星电子株式会社 Method and apparatus for alarm service using context awareness in portable terminal
CN103428368A (en) * 2013-08-09 2013-12-04 深圳辉烨通讯技术有限公司 Method and device for realizing silent incoming call of intelligent terminal
CN103986839A (en) * 2014-05-30 2014-08-13 深圳市中兴移动通信有限公司 Method for automatically setting contextual model and mobile terminal

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107582028A (en) * 2017-09-25 2018-01-16 北京小米移动软件有限公司 Sleep monitor method and device
CN108089905A (en) * 2017-12-22 2018-05-29 宇龙计算机通信科技(深圳)有限公司 Interruption-free processing method, terminal and computer-readable medium
CN108089905B (en) * 2017-12-22 2020-04-07 宇龙计算机通信科技(深圳)有限公司 Do not disturb processing method, terminal and computer readable medium
CN108965612A (en) * 2018-10-22 2018-12-07 珠海格力电器股份有限公司 A kind of control method and mobile phone of interruption-free mode

Also Published As

Publication number Publication date
CN106453956B (en) 2019-11-15

Similar Documents

Publication Publication Date Title
CN103576834B (en) Electricity-saving control method and the electronic equipment for supporting electricity-saving control method
CN106506957A (en) A kind of photographic method and mobile terminal
CN108702446A (en) A kind of photographic method and terminal
CN107358111B (en) A kind of method for secret protection and mobile terminal
CN106919313A (en) The startup method and mobile terminal of a kind of application program
CN106899803A (en) A kind of pan-shot light supplement control method and mobile terminal
CN106406739B (en) A kind of note generation method and mobile terminal
CN106937054A (en) Take pictures weakening method and the mobile terminal of a kind of mobile terminal
CN106131341A (en) A kind of photographic method and mobile terminal
CN106453956A (en) Method for setting no-disturbing mode and mobile terminal
CN106357927A (en) Playing control method and mobile terminal
CN106708367A (en) Display method of conversation interface and mobile terminal
CN107395978A (en) The control method and mobile terminal of a kind of camera module
CN106231178A (en) A kind of self-timer method and mobile terminal
CN103699373B (en) Interface color display, apparatus and system
CN106446634A (en) Method for privacy protection of mobile terminal and mobile terminal
CN107346332A (en) A kind of image processing method and mobile terminal
CN105959574A (en) Photographing method and mobile terminal
CN102903336A (en) Mobile terminal and screen highlight adjusting method thereof
CN106850940A (en) The changing method and mobile terminal of a kind of state
CN106851486A (en) A kind of changing method and mobile terminal of earphone sound channel
CN106843885A (en) The method of controlling operation thereof and mobile terminal of a kind of mobile terminal
CN106686402A (en) Video processing method and mobile terminal
CN106547358A (en) A kind of display packing and terminal of terminal time information
CN106055296A (en) Control method for display brightness of terminal screen and terminal

Legal Events

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