CN109144222A - Flow information acquisition methods and device - Google Patents
Flow information acquisition methods and device Download PDFInfo
- Publication number
- CN109144222A CN109144222A CN201810969614.9A CN201810969614A CN109144222A CN 109144222 A CN109144222 A CN 109144222A CN 201810969614 A CN201810969614 A CN 201810969614A CN 109144222 A CN109144222 A CN 109144222A
- Authority
- CN
- China
- Prior art keywords
- moment
- screen
- terminal
- data
- flow
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3051—Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
- G06F11/3452—Performance evaluation by statistical analysis
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Abstract
The disclosure is directed to a kind of flow information acquisition methods and devices.This method comprises: putting out the screen moment in the multiple of terminal screen respectively and obtaining the data total flow of the terminal;The data total flow of the terminal is obtained at multiple bright screen moment of terminal screen respectively;According in the multiple data total flow for putting out the data total flow that gets of screen moment and the multiple bright screen moment gets, obtains the terminal and be respectively at the data traffic for putting out screen state or bright screen state.In the technical solution, terminal can be respectively in multiple data total flows for putting out screen moment and multiple bright screen moment acquisition terminals, and then it gets terminal and is respectively at the data traffic for putting out screen state or bright screen state, it is whether related with data traffic under screen state or under bright screen state is put out according to the data traffic analysis power consumption for putting out screen state or bright screen state convenient for terminal, and then the reason of increase convenient for terminal positioning power consumption.
Description
Technical field
This disclosure relates to terminal control technical field more particularly to a kind of flow information acquisition methods and device.
Background technique
In the related technology, the function of mobile phone is more and more diversified, and user can be by a variety of APP for installing on mobile phone
(Application, using) carry out voice communication, shopping, payment, chat or viewing video etc., while the power consumption of mobile phone
Increase therewith.Usually cause the increased runing time because being known as application of power consumption, data traffic, using occupancy processor
Time etc., mobile phone occur power consumption it is excessive when, terminal is difficult positioning the reason of causing power consumption to increase, and then can not be timely
By adjusting the power consumption for reducing mobile phone.
Summary of the invention
To overcome the problems in correlation technique, the embodiment of the present disclosure provides a kind of flow information acquisition methods and dress
It sets.
The technical solution is as follows:
According to the first aspect of the embodiments of the present disclosure, a kind of flow information acquisition methods are provided, comprising:
It puts out the screen moment in the multiple of terminal screen respectively and obtains the data total flow of the terminal, each put out the screen moment and obtain
The data total flow got includes the terminal from initial time to the corresponding all data traffics for putting out the screen moment, described initial
At the time of moment is that the electricity of the terminal meets default power threshold;
The data total flow of the terminal is obtained at multiple bright screen moment of terminal screen respectively, each bright screen moment is obtained
The data total flow got includes the terminal from the initial time to all data traffics at correspondence bright screen moment;
According in the multiple number for putting out the data total flow that gets of screen moment and the multiple bright screen moment gets
According to total flow, obtains the terminal and be respectively at the data traffic for putting out screen state or bright screen state.
The technical scheme provided by this disclosed embodiment can include the following benefits: terminal can be respectively multiple
Put out the screen moment and multiple bright screen moment obtain the data total flow of terminal, so get terminal be respectively at put out screen state or
The data traffic of bright screen state, convenient for terminal according to this put out screen state or bright screen state data traffic analysis power consumption whether
It is related with data traffic under screen state or under bright screen state is put out, and then the reason of increase convenient for terminal positioning power consumption.
In one embodiment, the basis is in the multiple data total flow that gets of screen moment and described more put out
The data total flow that a bright screen moment gets obtains the terminal and is respectively at the data flow for putting out screen state or bright screen state
Amount includes:
The data total flow that the data total flow that the screen moment obtains is obtained with the first bright screen moment is put out by first
The first differential flow be in labeled as the terminal and put out the data traffic of screen state;Described first put out screen the moment be it is described more
Any one a put out in the screen moment, puts out that shield the moment adjacent in time and be later than the first bright screen moment with described first
Described first puts out the screen moment.
In one embodiment, the method also includes:
If first differential flow is greater than or equal to the first preset flow threshold value, put out from the terminal described first
Data on flows used and the first difference stream are determined in the multiple applications run between screen moment and the first bright screen moment
The ratio of amount is greater than or equal to the first reference application of the first preset ratio threshold value.
In one embodiment, the basis is in the multiple data total flow that gets of screen moment and described more put out
The data total flow that a bright screen moment gets obtains the terminal and is respectively at the data flow for putting out screen state or bright screen state
Amount includes:
The data total flow that the data total flow that second bright screen moment obtained is put out into the acquisition of screen moment with second
The second differential flow be in the data traffic of bright screen state labeled as the terminal;The second bright screen moment is described more
Any one in a bright screen moment, described second to put out the screen moment adjacent in time with the described second bright screen moment and be later than
The second bright screen moment.
In one embodiment, the method also includes:
If second differential flow is greater than or equal to the second preset flow threshold value, bright described second from the terminal
The screen moment and described second puts out determining data on flows used and the second difference stream in the multiple applications run between the screen moment
The ratio of amount is greater than or equal to the second reference application of the second preset ratio threshold value.
According to the second aspect of an embodiment of the present disclosure, a kind of flow information acquisition device is provided, comprising:
First obtains module, for putting out the screen moment in the multiple of terminal screen respectively and obtaining the data of the terminal and always flow
Amount, each putting out the data total flow that gets of screen moment includes that the terminal from initial time to corresponding puts out all of screen moment
Data traffic, at the time of the initial time is that the electricity of the terminal meets default power threshold;
Second obtains module, for always flowing in the data that multiple bright screen moment of terminal screen obtain the terminal respectively
Amount, the data total flow that each bright screen moment gets includes the terminal from the initial time to the correspondence bright screen moment
All data traffics;
Third obtains module, for according in the multiple data total flow that gets of screen moment and the multiple put out
The data total flow that the bright screen moment gets obtains the terminal and is respectively at the data traffic for putting out screen state or bright screen state.
In one embodiment, the third acquisition module includes:
First acquisition submodule, for putting out the data total flow and the first bright screen moment that the screen moment obtains for first
First differential flow of the data total flow obtained is in the data traffic for putting out screen state labeled as the terminal;It is described
First puts out the screen moment for any one the multiple put out in the screen moment, when the first bright screen moment puts out screen with described first
Carve it is adjacent in time and be later than described first put out screen the moment.
In one embodiment, described device further include:
First determining module, if being greater than or equal to the first preset flow threshold value for first differential flow, from described
Terminal is put out described first determines data on flows used in the multiple applications run between screen moment and the first bright screen moment
The first reference for being greater than or equal to the first preset ratio threshold value with the ratio of first differential flow is applied.
In one embodiment, the third acquisition module includes:
Second acquisition submodule, the data total flow for obtaining for the second bright screen moment put out the screen moment with second
Second differential flow of the data total flow obtained is in the data traffic of bright screen state labeled as the terminal;It is described
Second bright screen moment was any one in the multiple bright screen moment, and described second puts out the screen moment and when the second bright screen
It carves adjacent in time and was later than for the described second bright screen moment.
In one embodiment, described device further include:
Second determining module, if being greater than or equal to the second preset flow threshold value for second differential flow, from described
Terminal is put out at the described second bright screen moment and described second determines data on flows used in the multiple applications run between the screen moment
The second reference for being greater than or equal to the second preset ratio threshold value with the ratio of second differential flow is applied.
According to the third aspect of an embodiment of the present disclosure, a kind of flow information acquisition device is provided, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
It puts out the screen moment in the multiple of terminal screen respectively and obtains the data total flow of the terminal, each put out the screen moment and obtain
The data total flow got includes the terminal from initial time to the corresponding all data traffics for putting out the screen moment, described initial
At the time of moment is that the electricity of the terminal meets default power threshold;
The data total flow of the terminal is obtained at multiple bright screen moment of terminal screen respectively, each bright screen moment is obtained
The data total flow got includes the terminal from the initial time to all data traffics at correspondence bright screen moment;
According in the multiple number for putting out the data total flow that gets of screen moment and the multiple bright screen moment gets
According to total flow, obtains the terminal and be respectively at the data traffic for putting out screen state or bright screen state.
According to a fourth aspect of embodiments of the present disclosure, a kind of computer readable storage medium is provided, calculating is stored thereon with
Machine instruction, when which is executed by processor the step of realization first aspect any embodiment the method.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not
The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the reality for meeting the disclosure
Example is applied, and together with specification for explaining the principles of this disclosure.
Fig. 1 is the flow chart of flow information acquisition methods shown according to an exemplary embodiment.
Fig. 2 a is the structural schematic diagram of flow information acquisition device shown according to an exemplary embodiment.
Fig. 2 b is the structural schematic diagram of flow information acquisition device shown according to an exemplary embodiment.
Fig. 2 c is the structural schematic diagram of flow information acquisition device shown according to an exemplary embodiment.
Fig. 2 d is the structural schematic diagram of flow information acquisition device shown according to an exemplary embodiment.
Fig. 2 e is the structural schematic diagram of flow information acquisition device shown according to an exemplary embodiment.
Fig. 3 is the structural block diagram of flow information acquisition device shown according to an exemplary embodiment.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary is implemented
Embodiment described in example does not represent all implementations consistent with this disclosure.On the contrary, they are only and such as institute
The example of the consistent device and method of some aspects be described in detail in attached claims, the disclosure.
The technical solution that the embodiment of the present disclosure provides is related to terminal, which can be mobile phone, tablet computer, intelligent hand
Table and other equipment for using data traffic, the embodiment of the present disclosure are not construed as limiting this.In the related technology, occur in mobile phone
When power consumption is excessive, terminal is difficult the reason of positioning causes power consumption to increase, and then can not reduce mobile phone in time
Power consumption.In the technical scheme provided by this disclosed embodiment, terminal can put out the screen moment and when multiple bright screens multiple respectively
The data total flow for obtaining terminal is carved, and then gets terminal and is respectively at the data traffic for putting out screen state or bright screen state, just
In terminal according to this put out screen state or bright screen state data traffic analysis power consumption whether with put out under screen state or bright screen state
Under data traffic it is related, and then convenient for terminal positioning power consumption increase the reason of.
Fig. 1 is a kind of flow chart of flow information acquisition methods shown according to an exemplary embodiment, this method application
In terminal, as shown in Figure 1, the flow information acquisition methods include the following steps 101 to step 103:
In a step 101, it is each put out in multiple data total flows for putting out screen moment acquisition terminal of terminal screen respectively
The data total flow that the screen moment gets includes terminal from initial time to the corresponding all data traffics for putting out the screen moment.
Exemplary, which is provided with getNetworkStats (obtaining Network statistical information) interface, can from the interface
All data traffics with reading terminals from initial time to current time, the initial time are that the electricity satisfaction of terminal is default
At the time of power threshold, for example, the disclosure is implemented at the time of terminal power is 100% or at the time of terminal power is 95%
Example is not construed as limiting this.
Specifically, screen state can be monitored in real time in terminal, when detecting that screen puts out screen, obtains this and put out the screen moment
Data total flow, i.e., this put out screen the moment read getNetworkStats interface data, the data be initial time extremely
This puts out all data traffics of screen moment terminal.Due to terminal in use screen it is possible that repeatedly put out screen,
Terminal can read the data of the getNetworkStats interface and be recorded when detecting that screen puts out screen every time.
In a step 102, the data total flow of terminal, Mei Geliang are obtained at multiple bright screen moment of terminal screen respectively
The data total flow that the screen moment gets includes terminal from initial time to all data traffics at correspondence bright screen moment.
Exemplary, screen state can be monitored in real time in terminal, when detecting the bright screen of screen, obtains the bright screen moment
Data total flow, i.e., read the data of getNetworkStats interface at bright screen moment, the data be initial time extremely
All data traffics of the bright screen moment terminal.Due to terminal in use screen it is possible that repeatedly bright screen,
Terminal can read the data of the getNetworkStats interface and be recorded when detecting the bright screen of screen every time.
In step 103, the data total flow that gets of screen moment is put out and multiple bright screen moment get according to multiple
Data total flow, obtain terminal be respectively at the data traffic for putting out screen state or bright screen state.
Exemplary, terminal upper adjacent can put out the screen moment and data that the bright screen moment gets are total according to multiple times
The differential flow of flow obtains terminal and is respectively at the data traffic for putting out screen state or bright screen state.
Specifically, by first put out screen the moment and the first bright screen moment for be illustrated, wherein first put out screen the moment be
Any one multiple put out in the screen moment, put out that shield the moment adjacent in time and be later than first and put out the first bright screen moment with first
Shield the moment.Terminal available first puts out the data total flow that the screen moment gets and the data that the first bright screen moment got
Total flow, then calculating this, first to put out the data that the data total flow that gets of screen moment and the first bright screen moment get total
Difference between flow, the difference are the first differential flow.Due to this first put out screen the moment and the first bright screen moment it
Between, terminal screen is in screen state of putting out, therefore first differential flow can be in the data for putting out screen state labeled as terminal
Flow.Optionally, offFlowStatistics can be set in the batterystats (battery statistics) that terminal is arranged
(closing traffic statistics), and first differential flow is stored in offFlowStatistics.It, should in practical application
The difference of data total flow for putting out the screen moment and the bright screen moment gets of arbitrary neighborhood is stored in offFlowStatistics
It is worth flow, is i.e. is stored in the offFlowStatistics corresponding to multiple multiple difference streams for putting out screen moment to the bright screen moment
Amount, at the same can also store the cumulative of multiple differential flow and, the cumulative and as data flow of the terminal in the case where putting out screen state
Amount.Terminal can also establish the first differential flow after first differential flow is stored in offFlowStatistics
The corresponding relationship for putting out screen moment to the first bright screen moment with first, and by first differential flow and be somebody's turn to do
Multiple differential flows of offFlowStatistics storage add up, and obtain terminal and are in the data traffic for putting out screen state.
According to the data stored in the offFlowStatistics, terminal can accurately analyze the increase of power consumption in conjunction with power consumption
It is whether related with the data traffic put out under screen state, the reason of increase convenient for terminal positioning power consumption.
Optionally, terminal can also determine whether first differential flow is big after getting first differential flow
In or equal to the first preset flow threshold value.If first differential flow illustrates terminal first less than the first preset flow threshold value
Putting out putting out between screen moment and the first bright screen moment, the data traffic used under screen state is less, even the consumption of present terminal
Electricity is larger, will not be as caused by the data traffic of terminal, terminal can be kept the current status unchanged.If should
First differential flow is greater than or equal to the first preset flow threshold value, illustrates that terminal puts out screen moment and the first bright screen moment first
Between put out that the data traffic used under screen state is more, the power consumption that may result in terminal increases.Terminal can be from this time
Terminal is put out determining more using data traffic in the multiple applications run between screen moment and the first bright screen moment first
First with reference to application, then applies the first reference application extremely labeled as power consumption.Terminal can also suspend first reference
The first reference application is closed in the data service of application, is avoided when putting out screen state next time since the first reference is answered
The case where being increased with the more caused terminal power consumption amount of flow used, improves the cruising ability of terminal, and then improve use
Family experience.Specifically, terminal is put out in the multiple applications run between screen moment and the first bright screen moment really from terminal first
Surely using the first more reference of data traffic in application, can successively determine that each apply is put out first in multiple application
The ratio, is then greater than by the ratio for shielding data traffic and the first differential flow used between moment and the first bright screen moment
Or the application equal to the first preset ratio threshold value is determined as first with reference to application;Remaining ratio is less than the first preset ratio threshold value
Application be not processed.
Specifically, being illustrated so that the second bright screen moment and second put out the screen moment as an example, wherein the second bright screen moment was
Any one in multiple bright screen moment, second puts out that the screen moment is adjacent in time with the second bright screen moment and to be later than second bright
Shield the moment.The data total flow and second that the bright screen moment of terminal available second gets put out the data got at the screen moment
Then total flow calculates data total flow that the second bright screen moment gets and second to put out the data that the screen moment gets total
Difference between flow, the difference are the second differential flow.Due to the second bright screen moment with second put out screen the moment it
Between, terminal screen is in bright screen state, therefore second differential flow can be in the data of bright screen state labeled as terminal
Flow.Optionally, it (can be opened setting onFlowStatistics in the batterystats (battery statistics) that terminal is arranged
Open traffic statistics), and second differential flow is stored in onFlowStatistics.It, should in practical application
It is stored with the bright screen moment of arbitrary neighborhood in onFlowStatistics and puts out the difference for the data total flow that the screen moment gets
Flow was stored in the i.e. onFlowStatistics corresponding to multiple bright screen moment to the multiple differential flows for putting out the screen moment,
Can also be stored in the onFlowStatistics simultaneously the cumulative of multiple differential flow and, the cumulative and as terminal
Data traffic under bright screen state.Terminal may be used also after second differential flow is stored in onFlowStatistics
To establish the corresponding relationship that the second differential flow and the second bright screen moment put out the screen moment to second, and by second differential flow
It adds up with multiple differential flows of onFlowStatistics storage, obtains the data flow that terminal is in bright screen state
Amount.According to the data stored in the onFlowStatistics, terminal combination power consumption can accurately analyze the increasing of power consumption
Add it is whether related with the data traffic under bright screen state, convenient for terminal positioning power consumption increase the reason of.
Optionally, terminal can also determine whether second differential flow is big after getting second differential flow
In or equal to the second preset flow threshold value.If second differential flow illustrates terminal second less than the second preset flow threshold value
Bright screen moment and second to put out the data traffic that uses under bright screen state between the screen moment less, the even consumption of present terminal
Electricity is larger, will not be as caused by the data traffic of terminal, terminal can be kept the current status unchanged.If should
Second differential flow is greater than or equal to the second preset flow threshold value, illustrates that terminal puts out the screen moment with second at the second bright screen moment
Between bright screen state under the data traffic that uses it is more, the power consumption that may result in terminal increases.Terminal can be from this time
Terminal is put out determining more using data traffic in the multiple applications run between the screen moment at the second bright screen moment and second
Second with reference to application, then applies the second reference application extremely labeled as power consumption.Terminal can also suspend second reference
The second reference application is closed in the data service of application, is avoided under bright screen state next time since the second reference is answered
The case where being increased with the more caused terminal power consumption amount of flow used, improves the cruising ability of terminal, and then improve use
Family experience.Specifically, terminal is put out in the multiple applications run between the screen moment really from terminal at the second bright screen moment and second
Surely using data traffic it is more second reference in application, can successively determine in multiple application it is each apply it is bright second
The screen moment and second puts out data traffic and the ratio of the second differential flow used between the screen moment, is then greater than the ratio
Or the application equal to the second preset ratio threshold value is determined as second with reference to application;Remaining ratio is less than the second preset ratio threshold value
Application be not processed.
In the technical scheme provided by this disclosed embodiment, terminal can put out screen moment and multiple bright screens multiple respectively
Moment obtains the data total flow of terminal, and then gets terminal and be respectively at the data traffic for putting out screen state or bright screen state,
Convenient for terminal according to this put out screen state or bright screen state data traffic analysis power consumption whether with put out under screen state or bright screen shape
Data traffic under state is related, so convenient for terminal positioning power consumption increase the reason of.
Following is embodiment of the present disclosure, can be used for executing embodiments of the present disclosure.
Fig. 2 a is a kind of structural schematic diagram of flow information acquisition device 20 shown according to an exemplary embodiment, should
Device 20 being implemented in combination with as some or all of of electronic equipment by software, hardware or both.Such as Fig. 2 a institute
Show, which includes the first acquisition module 201, and second obtains module 202 and third acquisition module 203.
Wherein, first obtain module 201, for respectively terminal screen it is multiple put out screen the moment obtain the terminal
Data total flow, each put out the data total flow that gets of screen moment include the terminal from initial time to it is corresponding put out screen when
All data traffics carved, at the time of the initial time is that the electricity of the terminal meets default power threshold.
Second obtains module 202, and the data for obtaining the terminal at multiple bright screen moment of terminal screen respectively are total
Flow, the data total flow that each bright screen moment gets include the terminal from the initial time to the correspondence bright screen moment
All data traffics.
Third obtains module 203, for according in the multiple data total flow that gets of screen moment and described more put out
The data total flow that a bright screen moment gets obtains the terminal and is respectively at the data flow for putting out screen state or bright screen state
Amount.
In one embodiment, as shown in Figure 2 b, it includes the first acquisition submodule 2031 that the third, which obtains module 203,
First acquisition submodule 2031, for putting out the data total flow and the first bright screen moment that the screen moment obtains for first
First differential flow of the data total flow obtained is in the data traffic for putting out screen state labeled as the terminal;It is described
First puts out the screen moment for any one the multiple put out in the screen moment, when the first bright screen moment puts out screen with described first
Carve it is adjacent in time and be later than described first put out screen the moment.
In one embodiment, as shown in Figure 2 c, described device 20 further includes the first determining module 204, and described first really
Cover half block 204, if being greater than or equal to the first preset flow threshold value for first differential flow, from the terminal described
First puts out determining data on flows used and described first in the multiple applications run between screen moment and the first bright screen moment
The ratio of differential flow is greater than or equal to the first reference application of the first preset ratio threshold value.
In one embodiment, as shown in Figure 2 d, it includes the second acquisition submodule 2032 that the third, which obtains module 203,
Second acquisition submodule 2032, the data total flow for obtaining for the second bright screen moment put out the screen moment with second
Second differential flow of the data total flow obtained is in the data traffic of bright screen state labeled as the terminal;It is described
Second bright screen moment was any one in the multiple bright screen moment, and described second puts out the screen moment and when the second bright screen
It carves adjacent in time and was later than for the described second bright screen moment.
In one embodiment, as shown in Figure 2 e, described device 20 further includes the second determining module 205, and described second really
Cover half block 205, if being greater than or equal to the second preset flow threshold value for second differential flow, from the terminal described
The second bright screen moment and described second puts out determining data on flows used and described second in the multiple applications run between the screen moment
The ratio of differential flow is greater than or equal to the second reference application of the second preset ratio threshold value.
Embodiment of the disclosure provides a kind of flow information acquisition device, which can put out the screen moment multiple respectively
The data total flow of terminal is obtained with multiple bright screen moment, and then gets terminal and is respectively at and put out screen state or bright screen state
Data traffic, convenient for terminal according to this put out screen state or bright screen state data traffic analysis power consumption whether with put out screen shape
Data traffic under state or under bright screen state is related, so convenient for terminal positioning power consumption increase the reason of.
The embodiment of the present disclosure provides a kind of flow information acquisition device, which includes:
Processor;
Memory for storage processor executable instruction;
Wherein, processor is configured as:
It puts out the screen moment in the multiple of terminal screen respectively and obtains the data total flow of the terminal, each put out the screen moment and obtain
The data total flow got includes the terminal from initial time to the corresponding all data traffics for putting out the screen moment, described initial
At the time of moment is that the electricity of the terminal meets default power threshold;
The data total flow of the terminal is obtained at multiple bright screen moment of terminal screen respectively, each bright screen moment is obtained
The data total flow got includes the terminal from the initial time to all data traffics at correspondence bright screen moment;
According in the multiple number for putting out the data total flow that gets of screen moment and the multiple bright screen moment gets
According to total flow, obtains the terminal and be respectively at the data traffic for putting out screen state or bright screen state.
In one embodiment, above-mentioned processor is also configured to: it is total to put out the data that the screen moment obtains for first
First differential flow of the data total flow that flow and the first bright screen moment obtain is in labeled as the terminal puts out screen shape
The data traffic of state;Described first puts out the screen moment for any one the multiple put out in the screen moment, the first bright screen moment
With described first put out screen the moment it is adjacent in time and be later than described first put out screen the moment.
In one embodiment, above-mentioned processor is also configured to: if first differential flow is greater than or equal to the
One preset flow threshold value, from the terminal described first put out screen the moment and the first bright screen moment between run it is multiple
Determine that the ratio of data on flows used and first differential flow is greater than or equal to the of the first preset ratio threshold value in
One with reference to application.
In one embodiment, above-mentioned processor is also configured to: the data that the second bright screen moment was obtained are total
Flow and second put out the data total flow that the screen moment obtains the second differential flow be in bright screen shape labeled as the terminal
The data traffic of state;The second bright screen moment is any one in the multiple bright screen moment, and described second puts out the screen moment
It is adjacent in time with the described second bright screen moment and be later than for the described second bright screen moment.
In one embodiment, above-mentioned processor is also configured to: if second differential flow is greater than or equal to the
Two preset flow threshold values, from the terminal the described second bright screen moment and described second put out screen the moment between run it is multiple
Determine that the ratio of data on flows used and second differential flow is greater than or equal to the of the second preset ratio threshold value in
Two with reference to application.
Embodiment of the disclosure provides a kind of flow information acquisition device, which can put out the screen moment multiple respectively
The data total flow of terminal is obtained with multiple bright screen moment, and then gets terminal and is respectively at and put out screen state or bright screen state
Data traffic, convenient for terminal according to this put out screen state or bright screen state data traffic analysis power consumption whether with put out screen shape
Data traffic under state or under bright screen state is related, so convenient for terminal positioning power consumption increase the reason of.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in the related party
It is described in detail in the embodiment of method, no detailed explanation will be given here.
Fig. 3 is a kind of structural block diagram for flow information acquisition device 30 shown according to an exemplary embodiment, should
Device 30 is suitable for terminal device.For example, device 30 can be mobile phone, computer, digital broadcast terminal, information receiving and transmitting
Equipment, game console, tablet device, Medical Devices, body-building equipment, personal digital assistant etc..
Device 30 may include following one or more components: processing component 302, memory 304, power supply module 306,
Multimedia component 308, audio component 310, the interface 312 of input/output (I/O), sensor module 314 and communication component
316。
The integrated operation of the usual control device 30 of processing component 302, such as with display, telephone call, data communication, phase
Machine operation and record operate associated operation.Processing component 302 may include that one or more processors 320 refer to execute
It enables, to perform all or part of the steps of the methods described above.In addition, processing component 302 may include one or more modules,
Convenient for the interaction between processing component 302 and other assemblies.For example, processing component 302 may include multi-media module, with side
Just the interaction between multimedia component 308 and processing component 302.
Memory 304 is configured as storing various types of data to support the operation in device 30.These data are shown
Example includes the instruction of any application or method for operating on device 30, contact data, and telephone book data disappears
Breath, picture, video etc..Memory 304 can be by any kind of volatibility or non-volatile memory device or their group
Close and realize, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), it is erasable can
Program read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, quick flashing
Memory, disk or CD.
Power supply module 306 provides electric power for the various assemblies of device 30.Power supply module 306 may include power management system
System, one or more power supplys and other with for device 30 generate, manage, and distribute the associated component of electric power.
Multimedia component 308 includes the screen of one output interface of offer between described device 30 and user.One
In a little embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen
Curtain may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touch sensings
Device is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding action
Boundary, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more
Media component 308 includes a front camera and/or rear camera.When device 30 is in operation mode, as shot mould
When formula or video mode, front camera and/or rear camera can receive external multi-medium data.It is each preposition to take the photograph
As head and rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 310 is configured as output and/or input audio signal.For example, audio component 310 includes a wheat
Gram wind (MIC), when device 30 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone quilt
It is configured to receive external audio signal.The received audio signal can be further stored in memory 304 or via communication
Component 316 is sent.In some embodiments, audio component 310 further includes a loudspeaker, is used for output audio signal.
I/O interface 312 provides interface between processing component 302 and peripheral interface module, and above-mentioned peripheral interface module can
To be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and lock
Determine button.
Sensor module 314 includes one or more sensors, and the state for providing various aspects for device 30 is commented
Estimate.For example, sensor module 314 can detecte the state that opens/closes of device 30, and the relative positioning of component, for example, it is described
Component is the display and keypad of device 30, and sensor module 314 can be with 30 1 components of detection device 30 or device
Position change, the existence or non-existence that user contacts with device 30, the temperature in 30 orientation of device or acceleration/deceleration and device 30
Variation.Sensor module 314 may include proximity sensor, be configured to detect without any physical contact attached
The presence of nearly object.Sensor module 314 can also include optical sensor, such as CMOS or ccd image sensor, at
As being used in application.In some embodiments, which can also include acceleration transducer, gyro sensors
Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 316 is configured to facilitate the communication of wired or wireless way between device 30 and other equipment.Device
30 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.In an exemplary implementation
In example, communication component 316 receives broadcast singal or the related letter of broadcast from external broadcasting management system via broadcast channel
Breath.In one exemplary embodiment, the communication component 316 further includes near-field communication (NFC) module, to promote short distance logical
Letter.For example, radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) can be based in NFC module
Technology, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 30 can be believed by one or more application specific integrated circuit (ASIC), number
Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array
(FPGA), controller, microcontroller, microprocessor or other electronic building bricks are realized, for executing above-mentioned flow information acquisition side
Method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided
It such as include the memory 304 of instruction, above-metioned instruction can be executed by the processor 320 of device 30 and be obtained with completing above-mentioned flow information
Take method.For example, the non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-
ROM, tape, floppy disk and optical data storage devices etc..
The embodiment of the present disclosure provides a kind of non-transitorycomputer readable storage medium, the finger in the storage medium
When enabling the processor execution by device 30, so that device 30 is able to carry out above-mentioned flow information acquisition methods, the method packet
It includes:
It puts out the screen moment in the multiple of terminal screen respectively and obtains the data total flow of the terminal, each put out the screen moment and obtain
The data total flow got includes the terminal from initial time to the corresponding all data traffics for putting out the screen moment, described initial
At the time of moment is that the electricity of the terminal meets default power threshold.
The data total flow of the terminal is obtained at multiple bright screen moment of terminal screen respectively, each bright screen moment is obtained
The data total flow got includes the terminal from the initial time to all data traffics at correspondence bright screen moment.
According in the multiple number for putting out the data total flow that gets of screen moment and the multiple bright screen moment gets
According to total flow, obtains the terminal and be respectively at the data traffic for putting out screen state or bright screen state.
In one embodiment, the basis is in the multiple data total flow that gets of screen moment and described more put out
The data total flow that a bright screen moment gets obtains the terminal and is respectively at the data flow for putting out screen state or bright screen state
Amount includes: to put out the data total flow that the data total flow that the screen moment obtains is obtained with the first bright screen moment for first
The first differential flow be in labeled as the terminal and put out the data traffic of screen state;Described first put out screen the moment be it is described more
Any one a put out in the screen moment, puts out that shield the moment adjacent in time and be later than the first bright screen moment with described first
Described first puts out the screen moment.
In one embodiment, if first differential flow is greater than or equal to the first preset flow threshold value, from the end
Hold described first put out determined in multiple applications for running between screen moment and the first bright screen moment data on flows used with
The ratio of first differential flow is greater than or equal to the first reference application of the first preset ratio threshold value.
In one embodiment, the basis is in the multiple data total flow that gets of screen moment and described more put out
The data total flow that a bright screen moment gets obtains the terminal and is respectively at the data flow for putting out screen state or bright screen state
Amount includes: the data total flow that the data total flow that the second bright screen moment obtained is put out the acquisition of screen moment with second
The second differential flow be in the data traffic of bright screen state labeled as the terminal;The second bright screen moment is described more
Any one in a bright screen moment, described second to put out the screen moment adjacent in time with the described second bright screen moment and be later than
The second bright screen moment.
In one embodiment, if second differential flow is greater than or equal to the second preset flow threshold value, from the end
Hold the described second bright screen moment and described second put out determined in multiple applications for running between the screen moment data on flows used with
The ratio of second differential flow is greater than or equal to the second reference application of the second preset ratio threshold value.
Those skilled in the art will readily occur to the disclosure after considering specification and practicing disclosure disclosed herein
Other embodiments.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes
Or adaptive change follow the general principles of this disclosure and including the disclosure it is undocumented in the art known in often
Knowledge or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following
Claim point out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.
Claims (12)
1. a kind of flow information acquisition methods characterized by comprising
It puts out the screen moment in the multiple of terminal screen respectively and obtains the data total flow of the terminal, each put out what the screen moment got
Data total flow includes the terminal from initial time to the corresponding all data traffics for putting out the screen moment, and the initial time is institute
At the time of stating the electricity of terminal and meet default power threshold;
The data total flow of the terminal is obtained at multiple bright screen moment of terminal screen respectively, what each bright screen moment got
Data total flow includes the terminal from the initial time to all data traffics at correspondence bright screen moment;
The data total flow that gets of screen moment is put out and data that the multiple bright screen moment gets are total according to the multiple
Flow obtains the terminal and is respectively at the data traffic for putting out screen state or bright screen state.
2. the method according to claim 1, wherein the basis puts out the number that gets of screen moment the multiple
According to the data total flow that total flow and the multiple bright screen moment get, obtains the terminal and be respectively at and put out screen state or bright
The data traffic of screen state includes:
The of the data total flow that the data total flow that the screen moment obtains is obtained with first bright screen moment is put out by first
One differential flow is in the data traffic for putting out screen state labeled as the terminal;Described first to put out the screen moment be the multiple to put out screen
Any one in moment, it is adjacent in time and be later than described first that the first bright screen moment with described first puts out the screen moment
Put out the screen moment.
3. according to the method described in claim 2, it is characterized in that, the method also includes:
If first differential flow is greater than or equal to the first preset flow threshold value, the screen moment is put out from the terminal described first
The ratio of data on flows and first differential flow used is determined in the multiple applications run between the described first bright screen moment
Value is greater than or equal to the first reference application of the first preset ratio threshold value.
4. the method according to claim 1, wherein the basis puts out the number that gets of screen moment the multiple
According to the data total flow that total flow and the multiple bright screen moment get, obtains the terminal and be respectively at and put out screen state or bright
The data traffic of screen state includes:
The data total flow that second bright screen moment obtained is put out the of the data total flow that the screen moment obtains with second
Two differential flows are in the data traffic of bright screen state labeled as the terminal;The second bright screen moment is the multiple bright screen
Any one in moment, described second puts out the screen moment and the described second bright screen moment is adjacent in time and be later than described second
The bright screen moment.
5. according to the method described in claim 4, it is characterized in that, the method also includes:
If second differential flow is greater than or equal to the second preset flow threshold value, from the terminal at the described second bright screen moment
The ratio that data on flows and second differential flow used are determined in the multiple applications run between the screen moment is put out with described second
Value is greater than or equal to the second reference application of the second preset ratio threshold value.
6. a kind of flow information acquisition device characterized by comprising
First obtains module, for putting out the screen moment in the multiple of terminal screen respectively and obtaining the data total flow of the terminal, often
A data total flow for getting of screen moment of putting out includes the terminal from initial time to the corresponding all data flows for putting out the screen moment
Amount, at the time of the initial time is that the electricity of the terminal meets default power threshold;
Second obtains module, for obtaining the data total flow of the terminal at multiple bright screen moment of terminal screen respectively, often
The data total flow that a bright screen moment gets includes the terminal from the initial time to all numbers at correspondence bright screen moment
According to flow;
Third obtains module, for according to it is the multiple put out the data total flow that gets of screen moment and the multiple bright screen when
The data total flow got is carved, the terminal is obtained and is respectively at the data traffic for putting out screen state or bright screen state.
7. device according to claim 6, which is characterized in that the third obtains module and includes:
First acquisition submodule, for putting out what the data total flow that the screen moment obtains was obtained with the first bright screen moment for first
First differential flow of the data total flow is in the data traffic for putting out screen state labeled as the terminal;Described first puts out screen
Moment is any one the multiple put out in the screen moment, and the first bright screen moment puts out the screen moment in time with described first
It is adjacent and be later than described first put out screen the moment.
8. device according to claim 7, which is characterized in that described device further include:
First determining module, if being greater than or equal to the first preset flow threshold value for first differential flow, from the terminal
It is put out described first and determines data on flows used and institute in the multiple applications run between screen moment and the first bright screen moment
The ratio for stating the first differential flow is greater than or equal to the first reference application of the first preset ratio threshold value.
9. device according to claim 6, which is characterized in that the third obtains module and includes:
Second acquisition submodule, the data total flow for obtaining for the second bright screen moment put out what the screen moment obtained with second
Second differential flow of the data total flow is in the data traffic of bright screen state labeled as the terminal;The second bright screen
Moment is any one in the multiple bright screen moment, and described second puts out screen moment and the described second bright screen moment in time
It is adjacent and be later than for the described second bright screen moment.
10. device according to claim 9, which is characterized in that described device further include:
Second determining module, if being greater than or equal to the second preset flow threshold value for second differential flow, from the terminal
It is put out at the described second bright screen moment and described second and determines data on flows used and institute in the multiple applications run between the screen moment
The ratio for stating the second differential flow is greater than or equal to the second reference application of the second preset ratio threshold value.
11. a kind of flow information acquisition device characterized by comprising
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
It puts out the screen moment in the multiple of terminal screen respectively and obtains the data total flow of the terminal, each put out what the screen moment got
Data total flow includes the terminal from initial time to the corresponding all data traffics for putting out the screen moment, and the initial time is institute
At the time of stating the electricity of terminal and meet default power threshold;
The data total flow of the terminal is obtained at multiple bright screen moment of terminal screen respectively, what each bright screen moment got
Data total flow includes the terminal from the initial time to all data traffics at correspondence bright screen moment;
The data total flow that gets of screen moment is put out and data that the multiple bright screen moment gets are total according to the multiple
Flow obtains the terminal and is respectively at the data traffic for putting out screen state or bright screen state.
12. a kind of computer readable storage medium, is stored thereon with computer instruction, which is characterized in that the instruction is by processor
The step of claim 1 to 5 any one claim the method is realized when execution.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810969614.9A CN109144222A (en) | 2018-08-23 | 2018-08-23 | Flow information acquisition methods and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810969614.9A CN109144222A (en) | 2018-08-23 | 2018-08-23 | Flow information acquisition methods and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109144222A true CN109144222A (en) | 2019-01-04 |
Family
ID=64827736
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810969614.9A Pending CN109144222A (en) | 2018-08-23 | 2018-08-23 | Flow information acquisition methods and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109144222A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104125596A (en) * | 2014-07-07 | 2014-10-29 | 北京奇虎科技有限公司 | Data traffic statistics method and data traffic statistics device |
CN106911537A (en) * | 2017-04-19 | 2017-06-30 | 深圳天珑无线科技有限公司 | Information collecting method and information collecting device |
CN107231651A (en) * | 2017-07-28 | 2017-10-03 | 惠州Tcl移动通信有限公司 | Traffic monitoring alarm method, storage device and the mobile terminal of a kind of mobile terminal |
CN107634940A (en) * | 2017-08-30 | 2018-01-26 | 努比亚技术有限公司 | Control method, terminal, server and the readable storage medium storing program for executing that a kind of flow uses |
-
2018
- 2018-08-23 CN CN201810969614.9A patent/CN109144222A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104125596A (en) * | 2014-07-07 | 2014-10-29 | 北京奇虎科技有限公司 | Data traffic statistics method and data traffic statistics device |
CN106911537A (en) * | 2017-04-19 | 2017-06-30 | 深圳天珑无线科技有限公司 | Information collecting method and information collecting device |
CN107231651A (en) * | 2017-07-28 | 2017-10-03 | 惠州Tcl移动通信有限公司 | Traffic monitoring alarm method, storage device and the mobile terminal of a kind of mobile terminal |
CN107634940A (en) * | 2017-08-30 | 2018-01-26 | 努比亚技术有限公司 | Control method, terminal, server and the readable storage medium storing program for executing that a kind of flow uses |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105204846B (en) | Display methods, device and the terminal device of video pictures in more people's videos | |
CN106454336B (en) | The method and device and terminal that detection terminal camera is blocked | |
CN105607805B (en) | The footmark processing method and processing device of application icon | |
CN104182313B (en) | Be delayed the method and apparatus taken pictures | |
CN104933170B (en) | Information displaying method and device | |
CN106028143A (en) | Video live broadcasting method and device | |
CN105653085B (en) | Touch-responsive method and apparatus | |
CN105975156B (en) | Application interface display methods and device | |
CN105487680B (en) | Method, apparatus and terminal for terminal screenshotss | |
CN105224171B (en) | Icon display method, device and terminal | |
CN105426060B (en) | application control method and device | |
CN107529699A (en) | Control method of electronic device and device | |
CN106775676A (en) | List method to set up and device | |
CN107122697A (en) | Automatic obtaining method and device, the electronic equipment of photo | |
CN108989191A (en) | Recall method and its control method, the device and mobile terminal of picture file | |
CN106339452B (en) | Event response method and device | |
CN107566615B (en) | Message treatment method, device and computer readable storage medium | |
CN106775240A (en) | The triggering method of application program, device and terminal | |
CN110399082A (en) | A kind of terminal attribute control method, device, electronic equipment and medium | |
CN108962189A (en) | Luminance regulating method and device | |
CN108877742A (en) | Luminance regulating method and device | |
CN109120793A (en) | Method of speech processing and device | |
CN105430260B (en) | Obtain the method and device of video image | |
CN109922203A (en) | Terminal puts out screen method and apparatus | |
CN108650412A (en) | A kind of display methods, display device and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190104 |
|
RJ01 | Rejection of invention patent application after publication |