The content of the invention
In order to solve the above-mentioned technical problem above-mentioned technical problem or is at least in part solved, this application provides one kind to set
Standby control method and device.
In view of this, in a first aspect, this application provides a kind of apparatus control method, for being run in smart machine
Program is controlled, and has at least one switch control of program in the system setting of the smart machine, the described method includes:
When the statistics total amount of the parameter preset of smart machine threshold value corresponding more than or equal to the parameter, determine
It is associated with the parameter preset at least one to treat limiting program;
Obtain the miscellaneous function authority of the smart machine;
Control the system that the setting window for treating limiting program described in opening is set;
Determine it is described setting window in the corresponding switch control of the parameter preset, and to the switch control carry out
Simulate shutoff operation.
Alternatively, the parameter preset includes network traffics or smart machine electricity.
Alternatively, the method further includes:
After the simulation shutoff operation, whether the threshold value for persistently detecting the parameter preset updates;
After the threshold value renewal of the parameter preset, judge whether the threshold value after the renewal is more than the statistics total amount;
The threshold value after renewal is more than the statistics total amount, determines associated with the parameter preset at least one
Treat Open process;
Window monitoring right and the simulated operation authority that the system is set are obtained, the system, which is set, has bolt down procedure
Authority and switch control;
Control the system that the setting window for treating Open process described in opening is set;
Monitor it is described setting window in, with the corresponding switch control of the parameter preset, and to the switch control into
Row simulation opening operation.
Alternatively, it is described determine it is associated with the parameter preset it is at least one treat limiting program, including:
Default the set and corresponding first program list of the parameter preset is obtained, by the first program list
In all programs be determined as treating limiting program;
Alternatively,
Obtain each program statistics associated with the parameter preset;To the statistics of each program into
Row sequence;The program that the first default quantity is chosen according to the descending mode that sorts is determined as treating limiting program.
Alternatively, it is described determine it is associated with the parameter preset it is at least one treat Open process, including:
Need limiting program as treating Open process using what is determined;
Alternatively,
Default the set and corresponding second program list of the parameter preset is obtained, by the second program list
In all programs be determined as treating Open process;
Alternatively,
Obtain each program statistics associated with the parameter preset;To the statistics of each program into
Row sequence;The program that the second default quantity is chosen according to the descending mode that sorts is determined as treating limiting program.
Alternatively, the method further includes:
The setting window of limiting program is treated described in setting and open in the control system;Monitor it is described setting window in, with
The corresponding switch control of parameter preset, and during carrying out simulation shutoff operation to the switch control, in the intelligence
Display is default on the interface of energy equipment blocks picture;
Alternatively,
The setting window of Open process is treated described in setting and open in the control system;Monitor it is described setting window in, with
The corresponding switch control of parameter preset, and during carrying out simulation opening operation to the switch control, in the intelligence
Picture is blocked in display on the interface of energy equipment.
Alternatively, the method further includes:
Obtain the total quantity for treating limiting program;The pent program of current switch control is shown on picture in described block
Title and the not pent quantity for treating limiting program;
Or
Obtain the total quantity for treating Open process;Program that current switch control opened is shown on picture in described block
Title and the quantity for treating Open process being not gated on.
Second aspect, present invention also provides a kind of plant control unit, for the program to being run in smart machine into
Row control, has at least one switch control of program in the system setting of the smart machine, described device includes:
Treat limiting program determination unit, the statistics total amount for the parameter preset when the smart machine is greater than or equal to institute
When stating the corresponding threshold value of parameter, determine associated with the parameter preset at least one to treat limiting program;
First authority acquiring unit, the miscellaneous function authority for smart machine;
First window control unit, the setting window of limiting program is treated for controlling the system to set described in opening;
First control determination unit, for determining to control with the corresponding switch of the parameter preset in the setting window
Part, and simulation shutoff operation is carried out to the switch control;
Execution unit is closed, for carrying out simulation shutoff operation to the switch control.
Alternatively, described device further includes:
Update detection unit, for it is described simulation shutoff operation after, persistently detect the parameter preset threshold value whether
Renewal;
Judging unit, for after the threshold value renewal of the parameter preset, judging whether the threshold value after the renewal is more than
The statistics total amount;
Treat Open process determination unit, be more than the statistics total amount for the threshold value after renewal, determine with it is described
What parameter preset was associated at least one treats Open process;
Second authority acquiring unit, for obtaining window monitoring right and the simulated operation authority that the system is set, institute
State system and authority and switch control with bolt down procedure are set;
Control the system that the setting window for treating Open process described in opening is set;
Second monitoring unit, for monitor it is described setting window in, with the corresponding switch control of the parameter preset;
Execution unit is opened, for carrying out simulation opening operation to the switch control.
Alternatively, the parameter preset includes network traffics or smart machine electricity.
Above-mentioned technical proposal provided by the embodiments of the present application has the following advantages that compared with prior art:
This method provided in the embodiment of the present application includes:When the statistics total amount of the parameter preset of the smart machine is more than
Or during corresponding equal to parameter threshold value, determine associated with the parameter preset at least one to treat limiting program;Obtain
The miscellaneous function authority of the smart machine;Control the system that the setting window for treating limiting program described in opening is set;Determine
With the corresponding switch control of the parameter preset in the setting window, and simulation is carried out to the switch control and closes behaviour
Make.
This method provided by the embodiments of the present application, when monitoring some parameter preset and exceeding early warning value, can control
Using one or more programs of the parameter preset corresponding resource, the corresponding resource of the parameter preset is stopped using, and then can be with
Realization automatically controls parameter preset corresponding resource, after avoiding parameter preset in smart machine from exceeding early warning value, not into
Row controls and causes the corresponding resource of parameter preset by Use out of range.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present application clearer, below in conjunction with the embodiment of the present application
In attached drawing, the technical solution in the embodiment of the present application is clearly and completely described, it is clear that described embodiment is
The part of the embodiment of the application, instead of all the embodiments.Based on the embodiment in the application, ordinary skill people
Member's all other embodiments obtained on the premise of creative work is not made, shall fall in the protection scope of this application.
The embodiment of the present application provides a kind of apparatus control method, for being controlled to the program run in smart machine
System, has at least one switch control of program in the system setting of the smart machine.
Fig. 1 is a kind of flow diagram of apparatus control method provided by the embodiments of the present application.As shown in Figure 1, this method
Including:
S101, when the statistics total amount of the parameter preset of the smart machine is greater than or equal to the corresponding threshold value of the parameter
When, determine associated with the parameter preset at least one to treat limiting program.
In the embodiment of the present application, the parameter preset includes network traffics or smart machine electricity.
In one embodiment, whether which can count is more than or equal to default power threshold using electricity, once
It is more than default power threshold using electricity, then journey to be limited can be determined according to the electric quantity consumption inventory of each program
Sequence, such as:From electric quantity consumption inventory, 3 or the larger application program of preceding 5 electric quantity consumptions are used as journey to be limited before selection
Sequence.
In addition, in another embodiment, which can also count of that month and whether exceed of that month flow threshold using flow
Value, once of that month be greater than or equal to of that month flow threshold using flow, then it can be consumed according to the flow of each program
Inventory determines to treat limiting program, such as:Consumed from flow in inventory, 3 or preceding 5 flows consume larger application journey before selection
Sequence is used as and treats limiting program.
S102, obtains the miscellaneous function authority of the smart machine.
Miscellaneous function is a known authority of Android system, and the acquisition modes of miscellaneous function authority can open auxiliary work(
Can interface where control, guiding user opens the authority, after miscellaneous function authority is got, have system is set the page into
Row is monitored and the authority of simulated operation.
S103, controls the system to set the setting window for treating limiting program described in opening.
In a particular application, each setting window for treating limiting program can be opened successively in system sets interface.
S104, determine it is described setting window in the corresponding switch control of the parameter preset, and to it is described switch control
Part carries out simulation shutoff operation.
There are multiple controls in the setting window of each program, including:With the corresponding control of parameter preset, example
Such as:Electricity-saving switch control or flow switch control.
Due to having got simulated operation authority in miscellaneous function authority, and then in this step, to corresponding switch
Control carries out simulation shutoff operation, you can controls this to treat that limiting program is continuing with and the first associated resource of the parameter preset
Amount.
This method provided by the embodiments of the present application, when monitoring some parameter preset and exceeding early warning value, can control
Using one or more programs of the parameter preset corresponding resource, the corresponding resource of the parameter preset is stopped using, and then can be with
Realization automatically controls parameter preset corresponding resource, after avoiding parameter preset in smart machine from exceeding early warning value, not into
Row controls and causes the corresponding resource of parameter preset by Use out of range.
In the application one embodiment, this method can also comprise the following steps:
S201, after the simulation shutoff operation, whether the threshold value for persistently detecting the parameter preset updates;
In use, the corresponding resource of parameter preset can change smart machine at any time, such as:User can be
When of that month flow is less, carries out flow and supplement with money, or when smart machine electricity is relatively low, can charge to smart machine
Deng.
S202, after the threshold value renewal of the parameter preset, judges whether the threshold value after the renewal is more than the statistics
Total amount;
After user supplements flow with money or battery charges, it can be determined that whether the flow after supplementing with money is more than statistics total amount, or
Person, judges whether the electricity after charging is more than default power threshold.
S203, the threshold value after renewal are more than the statistics total amount, determine it is associated with the parameter preset extremely
Few one is treated Open process.
In the case of one kind, treat that Open process can treat that limiting program is completely corresponding with foregoing, in addition, for electricity,
Since charging process is slower, so when determining when Open process, can also in electric quantity consumption inventory, choose power consumption compared with
Small 3 or 5 application programs can be opened to avoid the electricity-saving switch that will all treat limiting program as treating Open process
Afterwards, the problem of electricity charging rate is unable to catch up with depletion rate.
S204, obtains window monitoring right and simulated operation authority that the system is set, and the system sets to have and closes
Close the authority and switch control of program;
S205, controls the system to set the setting window for treating Open process described in opening;
S206, monitor it is described setting window in, with the corresponding switch control of the parameter preset, and to it is described switch control
Part carries out simulation opening operation.
This method provided by the embodiments of the present application, can also be opened in and treat after limiting program carries out shutoff operation, can be with
Continue monitor parameter preset situation, when the statistics total amount of parameter preset is less than threshold value, can also pair and parameter preset correspondence
One or more treat that Open process carries out simulation opening operation.And then can be after user is supplemented with money or is charged, can be certainly
It is dynamic to recover
It is foregoing described to determine associated with the parameter preset at least one to wait to limit in the application one embodiment
Program, including:
Default the set and corresponding first program list of the parameter preset is obtained, by the first program list
In all programs be determined as treating limiting program;
It is foregoing described to determine associated with the parameter preset at least one to wait to limit in the application one embodiment
Program, including:
Obtain each program statistics associated with the parameter preset;To the statistics of each program into
Row sequence;The program that the first default quantity is chosen according to the descending mode that sorts is determined as treating limiting program.
It is foregoing to determine at least one the to be opened journey associated with the parameter preset in the application one embodiment
Sequence, including:
Need limiting program as treating Open process using what is determined;
It is foregoing to determine at least one the to be opened journey associated with the parameter preset in the application one embodiment
Sequence, including:
Default the set and corresponding second program list of the parameter preset is obtained, by the second program list
In all programs be determined as treating Open process;
It is foregoing to determine at least one the to be opened journey associated with the parameter preset in the application one embodiment
Sequence, including:
Obtain each program statistics associated with the parameter preset;To the statistics of each program into
Row sequence;The program that the second default quantity is chosen according to the descending mode that sorts is determined as treating limiting program.
In the application one embodiment, the method further includes:
The setting window of limiting program is treated described in setting and open in the control system;
Monitor it is described setting window in, with the corresponding switch control of the parameter preset;
During carrying out simulation shutoff operation to the switch control, default hide is shown on the interface of the smart machine
Keep off picture;
In the application one embodiment, the setting window that Open process is treated described in opening is set in the control system;
Monitor it is described setting window in, with the corresponding switch control of the parameter preset;
During carrying out simulation opening operation to the switch control, shown on the interface of the smart machine and block picture
Face.
In the application one embodiment, the method further includes:
Obtain the total quantity for treating limiting program;The pent program of current switch control is shown on picture in described block
Title and the not pent quantity for treating limiting program;
In the application one embodiment, the total quantity for treating Open process is obtained;Shown currently on picture in described block
The title for the program that switch control is opened and the quantity for treating Open process being not gated on.
Second aspect, this application provides a kind of plant control unit, for being carried out to the program run in smart machine
Control, has at least one switch control of program, as shown in Fig. 2, described device bag in the system setting of the smart machine
Include:
Treat limiting program determination unit 11, the statistics total amount for the parameter preset when the smart machine is greater than or equal to
During the corresponding threshold value of the parameter, determine associated with the parameter preset at least one to treat limiting program;
First authority acquiring unit 12, the miscellaneous function authority for smart machine;
First window control unit 13, the setting window of limiting program is treated for controlling the system to set described in opening;
First control determination unit 14, for determining to control with the corresponding switch of the parameter preset in the setting window
Part, and simulation shutoff operation is carried out to the switch control;
Execution unit 15 is closed, for carrying out simulation shutoff operation to the switch control.
In the application one embodiment, as shown in figure 3, described device further includes:
Detection unit 21 is updated, for after the simulation shutoff operation, persistently detecting the threshold value of the parameter preset to be
No renewal;
Judging unit 22, for after the threshold value renewal of the parameter preset, judging whether the threshold value after the renewal is big
In the statistics total amount;
Treat Open process determination unit 23, be more than the statistics total amount for the threshold value after renewal, definite and institute
That states that parameter preset is associated at least one treats Open process;
Second authority acquiring unit 24, for obtaining window monitoring right and the simulated operation authority that the system is set,
The system sets authority and switch control with bolt down procedure;
Second window control unit 25, controls the system to set the setting window for treating Open process described in opening;
Second monitoring unit 26, for monitor it is described setting window in, with the corresponding switch control of the parameter preset;
Execution unit 27 is opened, for carrying out simulation opening operation to the switch control.
In the embodiment of the present application, the parameter preset includes network traffics or smart machine electricity.
For convenience of description, it is divided into various units during description apparatus above with function to describe respectively.Certainly, this is being implemented
The function of each unit can be realized in same or multiple softwares and/or hardware during invention.
Each embodiment in this specification is described by the way of progressive, identical similar portion between each embodiment
Divide mutually referring to what each embodiment stressed is the difference with other embodiment.Especially for device or
For system embodiment, since it is substantially similar to embodiment of the method, so describing fairly simple, related part is referring to method
The part explanation of embodiment.Apparatus and system embodiment described above is only schematical, wherein the conduct
The unit that separating component illustrates may or may not be it is physically separate, can be as the component that unit is shown or
Person may not be physical location, you can with positioned at a place, or can also be distributed in multiple network unit.Can root
Factually border needs to select some or all of module therein realize the purpose of this embodiment scheme.Ordinary skill
Personnel are without creative efforts, you can to understand and implement.
It is understood that the present invention can be used in numerous general or special purpose computing system environments or configuration.Such as:It is a
People's computer, server computer, handheld device or portable set, laptop device, multicomputer system, based on microprocessor
The system of device, set top box, programmable consumer-elcetronics devices, network PC, minicom, mainframe computer including to take up an official post
Distributed computing environment of what system or equipment etc..
The present invention can be described in the general context of computer executable instructions, such as program
Module.Usually, program module includes performing particular task or realizes routine, program, object, the group of particular abstract data type
Part, data structure etc..The present invention can also be put into practice in a distributed computing environment, in these distributed computing environment, by
Task is performed and connected remote processing devices by communication network.In a distributed computing environment, program module can be with
In the local and remote computer-readable storage medium including storage device.
It should be noted that herein, the relational terms of such as " first " and " second " or the like are used merely to one
A entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operate it
Between there are any actual relationship or order.Moreover, term " comprising ", "comprising" or its any other variant are intended to
Cover non-exclusive inclusion, so that process, method, article or equipment including a series of elements not only include those
Key element, but also including other elements that are not explicitly listed, or further include as this process, method, article or set
Standby intrinsic key element.In the case where more not waiting to limit, the key element that is limited by sentence "including a ..." is not arranged
Except also there are other identical element in the process, method, article or apparatus that includes the element.
The above is only the embodiment of the present invention, is made skilled artisans appreciate that or realizing this hair
It is bright.A variety of modifications to these embodiments will be apparent to one skilled in the art, as defined herein
General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, it is of the invention
Will not be by the embodiments shown herein to be limited to, and be to fit to and apllied principle and features of novelty phase herein
Consistent most wide scope.