CN109992371A - Applied program processing method, device, electronic equipment, computer readable storage medium - Google Patents

Applied program processing method, device, electronic equipment, computer readable storage medium Download PDF

Info

Publication number
CN109992371A
CN109992371A CN201711484475.2A CN201711484475A CN109992371A CN 109992371 A CN109992371 A CN 109992371A CN 201711484475 A CN201711484475 A CN 201711484475A CN 109992371 A CN109992371 A CN 109992371A
Authority
CN
China
Prior art keywords
user
electronic equipment
application
duration
resource constraint
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
Application number
CN201711484475.2A
Other languages
Chinese (zh)
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201711484475.2A priority Critical patent/CN109992371A/en
Publication of CN109992371A publication Critical patent/CN109992371A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/32User authentication using biometric data, e.g. fingerprints, iris scans or voiceprints
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/485Task life-cycle, e.g. stopping, restarting, resuming execution
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5022Mechanisms to release resources
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/48Indexing scheme relating to G06F9/48
    • G06F2209/482Application
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/5021Priority
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/504Resource capping
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2221/00Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/21Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/2137Time limited access, e.g. to a computer or data

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Telephone Function (AREA)

Abstract

The application provides a kind of applied program processing method, device, electronic equipment, computer readable storage medium.The described method includes: obtaining user identifier according to the user images by user images corresponding to user of the camera acquisition using electronic equipment;The history data for each application program installed in the average operation duration and the electronic equipment of the electronic equipment is obtained according to the user identifier, the average operation duration indicates the duration that the electronic equipment is averagely run in unit time;Resource constraint strategy is obtained according to the average operation duration, and destination application is obtained according to the history data;Resource constraint processing is carried out to the destination application according to the resource constraint strategy.Above-mentioned applied program processing method, device, electronic equipment, computer readable storage medium can enable electronic equipment more accurately to control application program.

Description

Applied program processing method, device, electronic equipment, computer readable storage medium
Technical field
This application involves field of computer technology, set more particularly to a kind of applied program processing method, device, electronics Standby, computer readable storage medium.
Background technique
Smart machine can realize different application operatings by application program, for example can pass through class application program of doing shopping Purchase commodity check video etc. by video class application program.Smart machine can carry out resource constraint processing to application program, Application program after limiting resource is only capable of occupying limited resource, and cannot the resource to equipment unlimitedly made With.Application program can be frozen, and the application program after freezing can not be further continued for running, and will not occupy processor in smart machine Resource reduces the power consumption of smart machine, improves the fluency of foreground application.But due to application program still exist with In smart machine, therefore it can also occupy the resources such as memory, hardware in smart machine.
Summary of the invention
The embodiment of the present application provides a kind of applied program processing method, device, electronic equipment, computer-readable storage medium Matter can carry out different processing to application program for different user, improve the usage rate of the user of electronic equipment.
A kind of applied program processing method, comprising:
By user images corresponding to user of the camera acquisition using electronic equipment, obtained according to the user images User identifier;
It is obtained according to the user identifier and is installed in the average operation duration and the electronic equipment of the electronic equipment Each application program history data, the average operation duration indicates that the electronic equipment is average in unit time The duration of operation;
Resource constraint strategy is obtained according to the average operation duration, and target is obtained according to the history data and is answered Use program;
Resource constraint processing is carried out to the destination application according to the resource constraint strategy.
A kind of application processing apparatus, comprising:
Identifier acquisition module, for using user images corresponding to the user of electronic equipment, root by camera acquisition User identifier is obtained according to the user images;
Data acquisition module, for obtaining the average operation duration of the electronic equipment according to the user identifier, and The history data for each application program installed in the electronic equipment, the average operation duration indicate that the electronics is set The standby duration averagely run in unit time;
Strategy obtains module, for obtaining resource constraint strategy according to the average operation duration, and according to the history Operation data obtains destination application;
Application processing module, for being carried out at resource constraint according to the resource constraint strategy to the destination application Reason.
A kind of electronic equipment, including memory and processor store computer program, the calculating in the memory When machine program is executed by the processor, so that the processor executes following steps:
By user images corresponding to user of the camera acquisition using electronic equipment, obtained according to the user images User identifier;
It is obtained according to the user identifier and is installed in the average operation duration and the electronic equipment of the electronic equipment Each application program history data, the average operation duration indicates that the electronic equipment is average in unit time The duration of operation;
Resource constraint strategy is obtained according to the average operation duration, and target is obtained according to the history data and is answered Use program;
Resource constraint processing is carried out to the destination application according to the resource constraint strategy.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor Following steps are realized when row:
By user images corresponding to user of the camera acquisition using electronic equipment, obtained according to the user images User identifier;
It is obtained according to the user identifier and is installed in the average operation duration and the electronic equipment of the electronic equipment Each application program history data, the average operation duration indicates that the electronic equipment is average in unit time The duration of operation;
Resource constraint strategy is obtained according to the average operation duration, and target is obtained according to the history data and is answered Use program;
Resource constraint processing is carried out to the destination application according to the resource constraint strategy.
Above-mentioned applied program processing method, device, electronic equipment, computer readable storage medium, can be according to camera The user images of acquisition obtain user identifier, and the average operation duration and application program of electronic equipment are obtained according to user identifier History data.Then resource constraint strategy is obtained according to average operation duration, target is obtained according to history data and is answered Use program.Resource constraint processing is finally carried out to destination application according to the resource constraint strategy of acquisition.It in this way can basis User realizes the control to the operation of application program in electronic equipment, does for different user to the use habit of electronic equipment Different processing, enables electronic equipment more accurately to control application program, and the user for improving electronic equipment is glutinous Degree.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of application for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is the application environment schematic diagram of applied program processing method in one embodiment;
Fig. 2 is the schematic diagram of internal structure of electronic equipment in one embodiment;
Fig. 3 is the flow chart of applied program processing method in one embodiment;
Fig. 4 is the flow chart of applied program processing method in another embodiment;
Fig. 5 is the schematic diagram of the resource constraint state of application program in one embodiment;
Fig. 6 is the part architecture diagram of electronic equipment in one embodiment;
Fig. 7 is the structural schematic diagram of application processing apparatus in one embodiment;
Fig. 8 is the structural schematic diagram of application processing apparatus in another embodiment;
Fig. 9 is the block diagram of the part-structure of mobile phone relevant to electronic equipment provided by the embodiments of the present application.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, and It is not used in restriction the application.
It is appreciated that term " first " used in this application, " second " etc. can be used to describe various elements herein, But these elements should not be limited by these terms.These terms are only used to distinguish the first element from the other element.Citing comes It says, in the case where not departing from scope of the present application, the first client can be known as the second client, and similarly, can incite somebody to action Second client is known as the first client.The first client and the second client both client, but it is not same visitor Family end.
Fig. 1 is the application environment schematic diagram of applied program processing method in one embodiment.As shown in Figure 1, this applies ring Border includes client 102 and server 104.Application program can be installed in client 102, user is then acquired by camera Image obtains user identifier according to user images;The average operation duration of client 102, Yi Jike are obtained according to user identifier The history data for each application program installed in family end 102, average operation duration indicate client 102 in unit time The duration inside averagely run;Resource constraint strategy is obtained according to average operation duration, and target is obtained according to history data Application program;Resource constraint processing is carried out to destination application according to resource constraint strategy.Wherein, client 102 be in Computer network outermost is mainly used for inputting user information and exports the electronic equipment of processing result, such as can be a People's computer, mobile terminal, personal digital assistant, wearable electronic etc..Server 104 is for responding service request, together When the equipment of the service of calculating is provided, such as can be one or multiple stage computers.It is understood that it is provided by the present application its In his embodiment, the application environment of applied program processing method can only include client 102.
As shown in Fig. 2, providing the schematic diagram of internal structure of a kind of electronic equipment.The electronic equipment includes total by system Processor, memory and the display screen of line connection.Wherein, which supports entire electricity for providing calculating and control ability The operation of sub- equipment.Memory for storing data, program, and/or instruction code etc., at least one calculating is stored on memory Machine program, the computer program can be executed by processor, to realize that is provided in the embodiment of the present application is suitable for electronic equipment Applied program processing method.Memory may include magnetic disk, CD, read-only memory (Read-Only Memory, ROM) etc. Non-volatile memory medium or random access memory (Random-Access-Memory, RAM) etc..For example, implementing at one In example, memory includes non-volatile memory medium and built-in storage.Non-volatile memory medium is stored with operating system and meter Calculation machine program.The computer program can be performed by processor, for realizing one kind provided by each embodiment of the application Applied program processing method.Built-in storage in non-volatile memory medium operating system and computer program to provide high speed slow The running environment deposited.Display screen can be touch screen, for example be capacitance plate or electrical screen, answer for display foreground process to be corresponding Interface information may be utilized for the touch operation that detection acts on the display screen, generate corresponding instruction, for example carry out The switching command etc. of front and back application.
It will be understood by those skilled in the art that structure shown in Figure 2, only part relevant to application scheme is tied The block diagram of structure, does not constitute the restriction for the electronic equipment being applied thereon to application scheme, and specific electronic equipment can be with Including than more or fewer components as shown in the figure, perhaps combining certain components or with different component layouts.Such as electricity Sub- equipment further includes the network interface connected by system bus, and network interface can be Ethernet card or wireless network card etc., is used It is communicated in external electronic equipment, for example can be used for same server and communicated.
Fig. 3 is the flow chart of applied program processing method in one embodiment.Application program processing side in the present embodiment Method is described for running on the terminal in Fig. 1 or server.As shown in figure 3, the applied program processing method includes Step 302 is to step 308.Wherein:
Step 302, user images corresponding to the user by camera acquisition using electronic equipment, according to user images Obtain user identifier.
In one embodiment, mountable camera on electronic equipment, the quantity of the camera of installation are unlimited.For example, electric One, two or more cameras can be installed in sub- equipment.Camera may include that front camera and postposition are taken the photograph As head.User can acquire user images when using electronic equipment by camera, and the user images of generation can be with It is shown, can not also be shown on the display screen of electronic equipment, in the present embodiment on the display screen of electronic equipment In without limit.Can be, but not limited in the user images of acquisition include user face, electronic equipment can identify user Face in image, and matched according to face, obtain corresponding user identifier.
It is understood that user identifier refers to the unique identification for distinguishing different user, use is stored in advance in electronic equipment Family mark, and user identifier and user information are established into corresponding relationship.User information refers to the relevant information of user, can pass through User images are identified.For example, user information may include the face, iris, five official rank information of user.When user uses electricity When sub- equipment, user images can be acquired by the camera installed on electronic equipment.It can be identified according to user images Then user information obtains corresponding user identifier according to user information.For example, the iris of user is identified according to user images, Then corresponding user identifier is obtained according to the iris of user.
Step 304, each according to being installed in the average operation duration of user identifier acquisition electronic equipment and electronic equipment The history data of a application program, average operation duration indicate the duration that electronic equipment is averagely run in unit time.
Application program (Application, APP) refers to the software write in electronic equipment for certain application purpose, Electronic equipment can realize the Demand and service to user by application program.For example, user can pass through game class application program Game is played, video can also be seen by video class application program, music etc. can also be played by music class application program.Using Program can be divided into foreground application and background application according to the state of operation.Foreground application refers to be set in electronics The application program of standby front stage operation, foreground application can with foreground show and with user realize interact.It answers on backstage Refer to the application program in the running background of electronic equipment with program, background application cannot generally be shown on foreground and with Realize interactive process in family.
Generally, the application operating of application program is completed jointly by one or more processes (process), and process is It is the program in computer about the primary operation activity on certain data acquisition system, is that system carries out the basic of Resource Distribution and Schedule Unit.Meanwhile a process can correspond to one or more threads, thread is a single sequential control process in program, It is a relatively independent, schedulable execution unit in process.Process may include foreground process and background process, foreground process As in the process of electronic equipment front stage operation, background process is the process in electronic equipment running background.Electronic equipment can To control the switching of foreground process and background process, foreground process can switch to running background, and background process can also be switched to Front stage operation.Specifically, the management to process can be realized by process pool, can be stored in process pool it is one or more into The corresponding process identification (PID) of journey.Process identification (PID) is for uniquely indicating a process.Process pool may include foreground process pond and backstage Process pool, includes the corresponding process identification (PID) of foreground process in foreground process pond, includes that background process is corresponding in background process pond Process identification (PID).When the operating status for detecting foreground process and background process changes, process pool can correspondingly add or Delete the process identification (PID) for generating variation.For example, the process identification (PID) of process A is " 0123 ", when detecting that process A becomes by background process When at foreground process, the process identification (PID) " 0123 " of process A can be removed from background process pond, and be added to foreground process pond In.
In one embodiment, the state of electronic equipment can be divided into standby mode and working condition, in the standby state Electronic equipment will not carry out the operation of any substance to file or program, and only electronic equipment just can be to text in the operating condition Part or program are handled.Average operation duration indicates the duration that electronic equipment is averagely run in unit time, unit time It can be configured in advance.For example, average operation duration can be the average duration run interior daily of electronic equipment of statistics, or Person can be the duration that the electronic equipment of statistics is averagely run in one month.Specifically, electronic equipment can be remembered in the process of running Record is every time into the work start time of working condition and work finish time, then according to the work start time of record and work The operating time of every task can be calculated by making finish time.
When calculating average operation duration, operation data of the available electronic equipment in statistical time range, then basis Operation data calculates operation duration.Statistical time range refers to the period for statistical average operation duration, and operation data refers to electricity The data that sub- equipment generates in the process of running may include work start time and work finish time.According to statistical time range Interior operation data can be with the operation duration in each unit time in the counting statistics period, and when according to each unit of acquisition Operation duration in length calculates average operation duration.For example, current time is 15:30:00 on December 25th, 2017, then when counting Section can be the operation data in the previous moon, that is, obtain from December 25,15:30:00 to 2017 years on the 25th November in 2017 The operation data of 15:30:00 inner electronic equipment.Then operation duration daily in this month is calculated according to operation data, then Daily operation duration is averagely obtained to average operation duration.
In the process of running, electronic equipment can record the data that application program generates application program.History The data that operation data generates during being exactly history run of the application program before current time.For example, history run number According to may include application program from be installed to run between current time consumed by electronic equipment electricity, or apply journey Duration when sequence each run, using Startup time and application close moment etc..History data can reflect user to application The operating habit of program, to reflect the feature of user.Learnt according to history data, can analyze to obtain user most The application program being often used.
In embodiment provided by the present application, user, can be by pacifying when using electronic equipment on electronic equipment The camera of dress carries out authentication, and after authentication, electronic equipment can be by the data generated in operational process and use Family mark correspondence is stored.Different user can be distinguished using the data of electronic equipment in this way.According to user identifier The history data for each application program installed in the average operation duration and electronic equipment of electronic equipment is obtained, i.e., To obtain the corresponding average operation duration of user identifier and history data.
Step 306, resource constraint strategy is obtained according to average operation duration, and target is obtained according to history data and is answered Use program.
Destination application refers to the application program for needing to carry out resource constraint processing, and resource constraint processing refers to and will apply The processing that the resource of electronic equipment used in program is limited.For example, the memory that limitation application program occupies at runtime No more than the 4% of total memory.History data can reflect the habit that user used application program in the past, be transported according to history Row data, which can obtain, occupies the more destination application of resource, and destination application is carried out resource constraint processing, To reduce destination application to the excessive occupancy of resource.
Resource constraint strategy refers to the strategy for carrying out resource constraint processing to destination application, average operation duration It can reflect the duration that user uses electronic equipment.It can be obtained according to operation duration to the resource constraint of destination application Reason strategy.Average operation duration is longer, illustrates that user more relies on electronic equipment, can be accordingly by destination application The degree for carrying out resource constraint processing is arranged deeper.For example, if the average operation duration of electronic equipment is more than 8 hours, then When carrying out resource constraint processing to destination application, can control destination application can only at most account at runtime With in electronic equipment 5% resource;If the average operation duration of electronic equipment is more than 4 hours, then to destination application When carrying out resource constraint processing, can control destination application can only at most occupy 10% in electronic equipment at runtime Resource.
Step 308, resource constraint processing is carried out to destination application according to resource constraint strategy.
Resource refers to that the software or hardware resource that electronic equipment must be used when handling application affairs, such as electronics are set Standby CPU (Central Processing Unit, central processing unit), memory (Memory), hardware, Internet resources, IO (Input-Output, input and output) etc..Resource constraint processing refers to the processing that the resource occupied to application program is limited. Resource constraint processing can be, but not limited to be that control application program enters frozen state or resource constraint state, be in frozen state Application program be not turned off, do not run temporarily only.If application program is in frozen state, application program is not take up place Device resource is managed, but still occupies the resources such as memory and the hardware of electronic equipment.Resource constraint state, which refers to, exists to application program The state that the resource of the electronic equipment used when operation is limited.Such as the CPU that control application program uses at runtime is accounted for With rate no more than 5%.
Above-described embodiment applied program processing method, the user images that can be acquired according to camera obtain user identifier, The average operation duration of electronic equipment and the history data of application program are obtained according to user identifier.Then according to average fortune Row duration obtains resource constraint strategy, obtains destination application according to history data.Finally limited according to the resource of acquisition System strategy carries out resource constraint processing to destination application.It in this way can be real according to user to the use habit of electronic equipment Now to the control of the operation of application program in electronic equipment, different processing is done for different user, enables electronic equipment More accurately application program is controlled, improves the usage rate of the user of electronic equipment.
Fig. 4 is the flow chart of applied program processing method in another embodiment.Application program processing in the present embodiment Method is described for running on the terminal in Fig. 1 or server.As shown in figure 4, the applied program processing method packet Step 402 is included to step 416.Wherein:
Step 402, Face datection is carried out to user images, obtains the target facial image in user images.
Face datection (Face Detection, FD) refers to the process of and detects to the face for including in image, passes through Face datection can come out the face extraction for including in image, obtain face position in the picture and size.Specifically, may be used To carry out Face datection to user images according to Face datection model, Face datection model, which refers to, carries out at Face datection image The algorithm model of reason.Common Face datection model is the feature for extracting image first, and then the feature of extraction is classified Study, obtains facial image.
After user images are carried out Face datection, the facial image in user images can be extracted.It is understood that User may have multiple facial images in the user images of acquisition when using electronic equipment.Carrying out face inspection After survey, the area of available each facial image, using the maximum facial image of area as target facial image.It can manage Solution, user images are made of several pixels, and the facial image that detected is by the part in user images Pixel is constituted, then the area of facial image can with comprising the quantity of pixel be indicated.
Step 404, target facial image is matched with the facial image in face database, obtains the people to match User identifier corresponding to face image.
It, can be by target facial image and people after getting target facial image in embodiment provided by the present application Facial image in face database is matched.Store one or more facial image, every face figure in face database As establishing corresponding relationship with user identifier.Electronic equipment can traverse the facial image in face database, by each face Image is matched with target facial image.The facial image to match if it exists with target facial image then obtains face number According to user identifier corresponding with the facial image that target facial image matches in library.
Step 406, each according to being installed in the average operation duration of user identifier acquisition electronic equipment and electronic equipment The history data of a application program, average operation duration indicate the duration that electronic equipment is averagely run in unit time.
Step 408, user's degree of dependence is obtained according to average operation duration, and resource limit is obtained according to user's degree of dependence System strategy, user's degree of dependence is for indicating user to the degree of dependence of electronic equipment.
User's degree of dependence for indicating user to the degree of dependence of electronic equipment, can be, but not limited to include the first order according to Rely degree, second level degree of dependence and third level degree of dependence.Pre-establish pair of average operation duration and user's degree of dependence It should be related to, corresponding user is then obtained according to average operation duration and relies on program.Wherein, first order degree of dependence is higher than second Grade degree of dependence, second level degree of dependence are higher than third level degree of dependence.It is put down for example, average operation duration can be expressed as mobile phone The duration run daily, if the average duration run daily of user, at 8 hours or more, corresponding user's degree of dependence is the Level-one degree of dependence;If the average duration run daily of user was at 4 to 8 hours, corresponding user's degree of dependence is the second level Degree of dependence;If the average duration run daily of user at 4 hours hereinafter, if corresponding user's degree of dependence be that the third level relies on Degree.
Generally, first order degree of dependence indicates that user relies on the severe of electronic equipment, and second level degree of dependence indicates Common dependence of the user to electronic equipment, third level degree of dependence indicate slight dependence of the user to electronic equipment.It pre-establishes Then the corresponding relationship of user's degree of dependence and resource constraint strategy obtains corresponding resource constraint plan according to user's degree of dependence Slightly.For example, when user's degree of dependence is first order degree of dependence, if destination application is more than 2 in the duration of front stage operation Hour, just the destination application of front stage operation is freezed.
In one embodiment, can in advance by the value range of the average operation duration of electronic equipment be divided into two with Then the corresponding relationship in each duration section and user's degree of dependence is established in more than two duration sections, then right according to this It should be related to obtain user's degree of dependence of electronic equipment.Then obtaining user's degree of dependence according to average operation duration specifically can be with Comprise determining that the target duration section that average operation duration is fallen into, according to target duration section obtain corresponding user according to Rely degree.For example, the unit time for calculating average operation duration can be three days, then averagely operation duration can be expressed as electricity Sub- equipment every three days in the duration that averagely runs, then averagely the value range of operation duration is just 0 to 72 hours.It will averagely run The value range of duration is divided into three duration sections, then can be divided into three duration areas such as [0,12], [12,36], [36,72] Between, corresponding user's degree of dependence is first order degree of dependence, second level degree of dependence and third level degree of dependence.Assuming that current The average operation duration of the electronic equipment of statistics is 24 hours, then the user is just the second level with regard to corresponding user's degree of dependence Degree of dependence.
According to user's degree of dependence obtain resource constraint strategy can specifically include: when user's degree of dependence be the first order according to Rely degree, then obtains first resource restriction strategy and Secondary resource restriction strategy;When user's degree of dependence is that the second level relies on journey Degree, then obtain Secondary resource restriction strategy, and wherein first order degree of dependence is higher than second level degree of dependence.Journey is relied on according to user Degree obtains corresponding resource constraint strategy, carries out resource constraint processing to destination application according to resource constraint strategy.
In embodiment provided by the present application, resource constraint strategy is divided into first resource restriction strategy and Secondary resource limits Strategy, first resource restriction strategy refer to that controlling destination application according to the front stage operation duration of destination application enters money The strategy of source restriction state, Secondary resource restriction strategy refer to that the duration for being switched to backstage according to destination application controls target Application program enters the strategy of frozen state.If user's degree of dependence is first order degree of dependence, illustrate user to electronic equipment Frequency of use it is excessively high, then can front stage operation to destination application and running background all carry out resource constraint processing.When User's degree of dependence is second level degree of dependence, illustrate user be to the frequency of use of electronic equipment it is normal, then can be by mesh The running background for marking application program carries out resource constraint, i.e. acquisition Secondary resource restriction strategy, passes through Secondary resource restriction strategy.
In addition, can not be provided to destination application when user's degree of dependence is third level degree of dependence Limitation processing in source can also limit processing strategie according to information resources and destination application is carried out resource constraint processing.Specifically Ground obtains information resources restriction strategy if user's degree of dependence is third level degree of dependence.
Step 410, destination application is obtained according to history data.
In embodiment provided by the present application, history data can refer to each application program power consumption and/or Running frequency.Then step 410 can specifically include at least one of under type: obtain the application that power consumption is more than power threshold Program, as destination application;The application program is ranked up according to power consumption, and in the application program after sequence The application program of specified digit is obtained as destination application;The application program of running frequency overfrequency threshold value is obtained, is made For destination application;Application program is ranked up according to running frequency, and is obtained in the application program after sequence specified The application program of digit is as destination application.
Power consumption refers to the electricity for the electronic equipment that application program consumes during history run.The power consumption of application program Amount is higher, illustrates that user is higher to the frequency of use of the application program, can analyze user couple according to the power consumption of application program The use habit of application program.Power threshold can be configured in advance by user or system, and power consumption is higher than power threshold Application program, it is believed that be the most frequently used application program of user, then can make the most frequently used application program of user For destination application.Each application program can also be ranked up according to power consumption, then the application program after sequence The middle application program for obtaining specified digit is as destination application.For example, each application program is dropped according to power consumption Then sequence sequence obtains the front three application program of the application program after sequence, as destination application.
Electronic equipment in the process of running can count the power consumption of each application program, be normally applied the fortune of program The row time is longer, and resources occupation rate is higher, and power consumption is higher.For example, in android system, in framework (frame) layer There is one dedicated for counting Service (service): BatteryStatsSerive of electricity.The BatteryStatsSerive Service can create in ActivityManagerService, and ActivityManagerService can be in electronic equipment Modules data are stored in system directory batterystats.bin file, then pass through data-analyzing machine BatteryStatsImpl analyzes electricity data, to realize the statistics to power consumption.
Running frequency can refer to the number that application program is run in unit time, may also mean that application program in list The average duration run in the duration of position.The running frequency of application program is higher, illustrates user to the frequency of use of the application program It is higher, user can analyze to the use habit of application program according to the running frequency of application program.Specifically, frequency threshold can To be configured in advance by user or system, running frequency is higher than the application program of frequency threshold, it is believed that is that user most frequently makes Then application program carries out resource constraint processing for the most frequently used application program of user as destination application. Each application program can also be ranked up according to running frequency, specified digit is then obtained in the application program after sequence Application program as destination application.For example, application program is carried out descending arrangement according to running frequency, then sorting Front three application program is obtained in application program afterwards, as destination application.
Step 412, resource constraint processing is carried out to destination application according to resource constraint strategy.
Resource constraint strategy includes first resource restriction strategy and Secondary resource restriction strategy, then step 412 includes following At least one of mode: resource constraint processing is carried out to destination application according to first resource restriction strategy;According to the second money Source restriction strategy carries out resource constraint processing to destination application.
Carrying out resource constraint processing to destination application according to first resource restriction strategy includes: to obtain target application journey The front stage operation duration of sequence;When foreground operation duration is more than the first duration threshold value, then controls destination application and enter resource limit State processed.Application program in resource constraint state is less than occupancy threshold to the resources occupation rate of electronic equipment at runtime Value, when destination application is in resource constraint state, destination application cannot to the resources occupation rate of electronic equipment More than occupancy threshold, it can control destination application in this way in the operational efficiency on foreground, reduce user to electronic equipment It relies on.For example, the CPU usage of control destination application at runtime no more than 5%, to reduce destination application pair CPU's consumes excessively, reduces dependence of the user to mobile phone.Cgroups (control can be passed through in cell phone system Groups, control group) come resources occupation rates such as the CPU, memory, IO that control destination application, that is, control acquired target Application program enters resource constraint state.
Resource constraint state can also be entered according to the total occupancy of the resource of electronic equipment to control destination application, In, the total occupancy of resource refers to the ratio of occupied resource and total resources in electronic equipment.When the foreground of destination application When operation duration is more than the first duration threshold value, the total occupancy of resource of electronic equipment is obtained, and control according to the total occupancy of resource Destination application processed enters resource constraint state.Specifically, the total occupancy of resource and resource constraint rank can be pre-established Corresponding relationship, destination application is to the resources occupation rate of electronic equipment no more than occupancy when in resource constraint state Threshold value.When in different resource constraint ranks, the corresponding occupancy threshold of destination application is different.Obtain electronic equipment The total occupancy of resource, and resource constraint rank is obtained according to the total occupancy of resource;Control destination application enters resource constraint The corresponding resource constraint state of rank.For example, the total occupancy of the resource of electronic equipment is divided into 50%~60%, 60%~ 80%, then 80%~100% etc. three occupancy level respectively corresponds slight resource constraint rank, common resources limitation rank It is different according to the available corresponding resource constraint rank of the total occupancy of resource with the three grades such as depth resource constraint rank The corresponding occupancy threshold of resource constraint rank it is different.It is understood that the corresponding occupancy threshold of different resource can be with It is different.For example, CPU usage threshold value can be 5%, memory usage threshold value can be 10%.
It in other embodiments, can also be according to the occupancy feelings of destination application controlled using priority to resource Condition pre-establishes the corresponding relationship using priority and resource constraint rank, then preferential according to the application of destination application Grade controls the resource constraint rank into resource constraint state.It can specifically include: when foreground operation duration is more than first It is corresponding using priority to obtain destination application for long threshold value;Corresponding resource constraint rank is obtained according to application priority; Control destination application enters the corresponding resource constraint state of resource constraint rank.
In embodiment provided by the present application, resource constraint is carried out to destination application according to Secondary resource restriction strategy Processing includes: to start timing when detecting that destination application is switched to backstage from foreground;If timing duration is more than second Long threshold value then controls destination application and enters frozen state.It, can not be followed by reforwarding into the destination application of frozen state Row, can reduce destination application to the resource occupation of electronic equipment in this way.Destination application after freezing can also quilt It wakes up, user or system can be configured the condition of wake-up.
In addition step 412 can also include: to carry out resource constraint to destination application according to information resources restriction strategy Processing.Specifically, when detecting that destination application is switched to backstage from foreground, start timing;If timing duration is more than the Three duration threshold values then control destination application and enter frozen state.Wherein, the second duration threshold value is less than third duration threshold value.
In android system, to realize there are many ways to freezing and wake up of application program.By taking one of which as an example, It can be ordered by pm (package manager assures reason) to realize, in pm order, freeze command pm can be passed through Application program is set frozen state by disable [- user USER_ID] PACKAGE_OR_COMPONENT, then can be with The application of frozen state will be in by order pm the enable [- user USER_ID] PACKAGE_OR_COMPONENT that thaws Program is waken up, and obtains the application program in frozen state by freezing list query order pm list packages-d List, to check the application program for being in frozen state.It is understood that in the application by taking Android operation system as an example Applied program processing method is illustrated, but the applied program processing method of the application is not limited in Android system It is realized in system, can be applied in IOS (IPhone Operating System), Saipan, Windows, MAC OS In operating systems such as (Macintosh Operating System).
Step 414, to when the limitation at current time at the time of acquisition to destination application progress resource constraint processing It is long.
After carrying out resource constraint processing to destination application, electronic equipment starts timer, then passes through timing Device starts timing.Electronic equipment can establish a corresponding timer for each destination application, and each target is answered When carrying out resource constraint processing with program, timing can be carried out according to corresponding timer.Pre-establish destination application Target application mark and the timing markers of timer corresponding relationship, corresponding timing markers are identified by target application and are searched And starts timer and start timing.By taking android system as an example, system can pre-define a timer, when detecting mesh When mark application program is waken up, the corresponding timer of target application identifier lookup, and pass through timer.setBase (SystemClock.elapsedRealtime ()) resets timer, then passes through timer.start () function starting meter When device, start timing.
Step 416, if limitation duration is more than limitation duration threshold value, destination application is restored to normal operation shape State.
When limiting duration is more than to limit duration threshold value, destination application is restored to normal operating condition.If target Application program is in resource constraint state, then releases electronic equipment to the resource constraint of destination application.If target application journey Sequence is in frozen state, then wakes up destination application from frozen state.After being restored to normal operating condition, target application Program is no longer influenced by limitation to the use of electronic equipment resource.
Fig. 5 is the schematic diagram of the resource constraint state of application program in one embodiment.As shown in figure 5, electronic equipment Resource includes CPU, memory, IO, Internet resources etc., and the state of application program can be divided into normal operating condition, resource constraint shape State and frozen state.Wherein, resource constraint state can be divided into slight resource constraint state, common resources restriction state and depth again Spend resource constraint state.Under different resource restriction state, corresponding available resources 502 and unavailable resource 504 be not identical.From Slight resource constraint state, common resources restriction state to depth resource constraint state, available resources 502 are successively decreased.Normally transporting Under row state, the available resources 502 of application program are 100%.
Applied program processing method provided by the above embodiment, the user images that can be acquired according to camera obtain user Mark obtains the average operation duration of electronic equipment and the history data of application program according to user identifier.According to electronics The average operation duration of equipment obtains user and relies on program, and obtains first resource restriction strategy and the according to user's degree of dependence Two resource constraint strategies obtain destination application according to history data.Then plan is limited according to the first resource of acquisition Slightly and Secondary resource restriction strategy carries out resource constraint processing to destination application.It in this way can be according to user to electronic equipment Use habit, realize control to the operation of application program in electronic equipment, different processing done for different user so that Electronic equipment can more accurately control application program, improve the usage rate of the user of electronic equipment.In addition to target Application program carries out resource constraint processing and then destination application is restored to normal operating condition, to avoid influencing to answer With the normal operation of program.
It should be understood that although each step in the flow chart of Fig. 3 and Fig. 4 is successively shown according to the instruction of arrow, But these steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly state otherwise herein, these There is no stringent sequences to limit for the execution of step, these steps can execute in other order.Moreover, in Fig. 3 and Fig. 4 At least part step may include that perhaps these sub-steps of multiple stages or stage are not necessarily same to multiple sub-steps One moment executed completion, but can execute at different times, and the execution in these sub-steps or stage sequence is also not necessarily Be successively carry out, but can at least part of the sub-step or stage of other steps or other steps in turn or Alternately execute.
In one embodiment, as shown in fig. 6, providing the part architecture diagram of a kind of electronic equipment.Wherein, which sets It include JAVA space layer 61, local ccf layer 62 and kernel (Kernel) space layer 63 in standby architecture system.The space JAVA It may include tactful application program 610 on layer 61, electronic equipment can be initiated to each by the strategy application program 610 using journey Sequence freeze and the strategy that thaws, the operation freezing and thaw is realized to each application program in electronic equipment to realize.Example Such as, the application program of backstage power consumption is judged by tactful application program 610, and initiates to do the application program of the backstage power consumption Freeze operation.Freeze management module 622 comprising resource prioritization and limitation management module 620 and platform in local ccf layer 62. Electronic equipment can be by resource prioritization and limitation management module 620 come the priority of real-time servicing application program and corresponding money Source group, the priority and resource group that application program is adjusted according to the demand on upper layer to reach optimization performance save power consumption Effect.Electronic equipment can freeze management module 622 for can freezing from the background for task according to entrance freeze-off time by platform Length is assigned to the frozen crust of corresponding preset different levels, optionally, the frozen crust can include: CPU limitation sleep pattern, CPU freezes sleep pattern, process deep freezing mode.It include UID management module 630, Cgroup module in kernel spacing layer 63 632, time-out is freezed to exit module 634, Binder control module 636, proceeding internal memory recycling module 638.Wherein, UID manages mould Block 630 can User Identity (User Identifier, UID) Lai Guanli third party application based on application program Resource or freezed.It is compared to and (Process Identifier, PID) Lai Jinhang process pipe is identified based on process identity Control is more convenient for being managed collectively the resource of the application of a user by UID.Cgroup module 632 is a set of perfect for providing Central processing unit (Central Processing Unit, CPU), CPUSET, memory (memory), input/output (input/ Output, I/O) and the relevant resource constraint mechanism of Net.Time-out freeze to exit module 634 for solve occur freezing overtime field The exception that scape generates.Binder manages module 636 for realizing the control of the backstage binder priority communicated.Proceeding internal memory returns Receiving module 638 can when third party application is chronically at frozen state for realizing the deep freezing mode of process To discharge the file area of process, to reach the module for saving memory, also accelerate speed of the application program in starting next time. By above-mentioned framework, it can be achieved that applied program processing method in each embodiment of the application.
Fig. 7 is the structural schematic diagram of application processing apparatus in one embodiment.As shown in fig. 7, at the application program Managing device 700 includes identifier acquisition module 702, data acquisition module 704, strategy acquisition module 706 and application processing module 708.Wherein:
Identifier acquisition module 702, for using user images corresponding to the user of electronic equipment by camera acquisition, User identifier is obtained according to the user images.
Data acquisition module 704, for obtaining the average operation duration of the electronic equipment according to the user identifier, with And the history data for each application program installed in the electronic equipment, the average operation duration indicate the electronics The duration that equipment is averagely run in unit time.
Strategy obtains module 706, for obtaining resource constraint strategy according to the average operation duration, and is gone through according to described History operation data obtains destination application.
Application processing module 708, for carrying out resource limit to the destination application according to the resource constraint strategy System processing.
Above-described embodiment application processing apparatus, the user images that can be acquired according to camera obtain user identifier, The average operation duration of electronic equipment and the history data of application program are obtained according to user identifier.Then according to average fortune Row duration obtains resource constraint strategy, obtains destination application according to history data.Finally limited according to the resource of acquisition System strategy carries out resource constraint processing to destination application.It in this way can be real according to user to the use habit of electronic equipment Now to the control of the operation of application program in electronic equipment, different processing is done for different user, enables electronic equipment More accurately application program is controlled, improves the usage rate of the user of electronic equipment.
Fig. 8 is the structural schematic diagram of application processing apparatus in another embodiment.As shown in figure 8, the application program Processing unit 800 includes identifier acquisition module 802, data acquisition module 804, strategy acquisition module 806, application processing module 808 and application recovery module 810.Wherein:
Identifier acquisition module 802, for using user images corresponding to the user of electronic equipment by camera acquisition, User identifier is obtained according to the user images.
Data acquisition module 804, for obtaining the average operation duration of the electronic equipment according to the user identifier, with And the history data for each application program installed in the electronic equipment, the average operation duration indicate the electronics The duration that equipment is averagely run in unit time.
Strategy obtains module 806, for obtaining resource constraint strategy according to the average operation duration, and is gone through according to described History operation data obtains destination application.
Application processing module 808, for carrying out resource limit to the destination application according to the resource constraint strategy System processing.
Application recovery module 810, for obtain to the destination application carry out resource constraint processing at the time of to The limitation duration at current time;If the limitation duration is more than limitation duration threshold value, the destination application is restored to Normal operating condition.
Application processing apparatus provided by the above embodiment, the user images that can be acquired according to camera obtain user Mark obtains the average operation duration of electronic equipment and the history data of application program according to user identifier.According to electronics The average operation duration of equipment obtains resource constraint strategy, obtains destination application according to history data.Then basis The resource constraint strategy of acquisition carries out resource constraint processing to destination application.It in this way can be according to user to electronic equipment Use habit realizes the control to the operation of application program in electronic equipment, different processing is done for different user, so that electric Sub- equipment can more accurately control application program, improve the usage rate of the user of electronic equipment.In addition it is answered to target Resource constraint processing is carried out with program and then destination application is restored to normal operating condition, to avoid application is influenced The normal operation of program.
In one embodiment, identifier acquisition module 802 is also used to carry out Face datection to the user images, obtains institute State the target facial image in user images;By the facial image progress in the target facial image and face database Match, obtains user identifier corresponding to the facial image to match.
In one embodiment, strategy obtains module 806 and is also used to obtain user's dependence according to the average operation duration Degree, and resource constraint strategy is obtained according to user's degree of dependence, user's degree of dependence is for indicating user to institute State the degree of dependence of electronic equipment.
In one embodiment, when strategy acquisition module 806 is also used to determine the target that the average operation duration is fallen into Long section obtains corresponding user's degree of dependence according to target duration section.
In one embodiment, strategy obtains module 806 and is also used to when user's degree of dependence be that the first order relies on journey Degree, then obtain first resource restriction strategy and Secondary resource restriction strategy;When user's degree of dependence is that the second level relies on journey Degree, then obtain Secondary resource restriction strategy, wherein the first order degree of dependence is higher than the second level degree of dependence.
In one embodiment, strategy obtains module 806 and is also used to according to the first resource restriction strategy to the mesh It marks application program and carries out resource constraint processing;And/or according to the Secondary resource restriction strategy to the destination application into The processing of row resource constraint.
In one embodiment, strategy obtains module 806 and is also used to obtain the application that the power consumption is more than power threshold Program, as destination application;The application program is ranked up according to the power consumption, and the application journey after sequence The application program of specified digit is obtained in sequence as destination application;Obtain the application of the running frequency overfrequency threshold value Program, as destination application;And/or the application program is ranked up according to running frequency, and answering after sequence Using to obtain in program specifies the application program of digit as destination application.
In one embodiment, when application processing module 808 is also used to obtain the front stage operation of the destination application It is long;When the front stage operation duration is more than the first duration threshold value, then controls the destination application and enter resource constraint state.
In one embodiment, application processing module 808, which is also used to work as, detects that the destination application is cut from foreground When changing to backstage, start timing;If timing duration is more than the second duration threshold value, controls the destination application entrance and freeze State.
The division of modules is only used for for example, in other embodiments in above-mentioned application processing apparatus, can Application processing apparatus is divided into different modules as required, with complete above-mentioned application processing apparatus whole or Partial function.
The realization of the modules in application processing apparatus provided in the embodiment of the present application can be computer program Form.The computer program can be run in terminal or server.The program module that the computer program is constituted is storable in On the memory of terminal or server.When the computer program is executed by processor, side described in the embodiment of the present application is realized The step of method.
The embodiment of the present application also provides a kind of computer readable storage mediums.One or more is executable comprising computer The non-volatile computer readable storage medium storing program for executing of instruction, when the computer executable instructions are executed by one or more processors When, so that the processor executes applied program processing method provided by the above embodiment.
A kind of computer program product comprising instruction, when run on a computer, so that computer execution is above-mentioned The applied program processing method that embodiment provides.
The embodiment of the present application also provides a kind of electronic equipment.As shown in figure 9, for ease of description, illustrating only and this Apply for the relevant part of embodiment, it is disclosed by specific technical details, please refer to the embodiment of the present application method part.The electronics is set It include mobile phone, tablet computer, PDA (Personal Digital Assistant, personal digital assistant), POS for that can be Any terminal device such as (Point of Sales, point-of-sale terminal), vehicle-mounted computer, wearable device, using electronic equipment as mobile phone For:
Fig. 9 is the block diagram of the part-structure of mobile phone relevant to electronic equipment provided by the embodiments of the present application.With reference to Fig. 9, Mobile phone includes: radio frequency (Radio Frequency, RF) circuit 910, memory 920, input unit 930, display unit 940, passes Sensor 950, voicefrequency circuit 960, Wireless Fidelity (wireless fidelity, WiFi) module 970, processor 980, Yi Ji electricity The components such as source 990.It, can be with it will be understood by those skilled in the art that handset structure shown in Fig. 9 does not constitute the restriction to mobile phone Including perhaps combining certain components or different component layouts than illustrating more or fewer components.
Wherein, RF circuit 910 can be used for receiving and sending messages or communication process in, signal sends and receivees, can be by base station After downlink information receives, handled to processor 980;The data of uplink can also be sent to base station.In general, RF circuit include but Be not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier (Low Noise Amplifier, LNA), duplexer etc..In addition, RF circuit 910 can also be communicated with network and other equipment by wireless communication.Above-mentioned channel radio Any communication standard or agreement, including but not limited to global system for mobile communications (Global System of can be used in letter Mobile communication, GSM), general packet radio service (General Packet Radio Service, GPRS), CDMA (Code Division Multiple Access, CDMA), wideband code division multiple access (Wideband Code Division Multiple Access, WCDMA), long term evolution (Long Term Evolution, LTE)), Email, Short message service (Short Messaging Service, SMS) etc..
Memory 920 can be used for storing software program and module, and processor 980 is stored in memory 920 by operation Software program and module, thereby executing the various function application and data processing of mobile phone.Memory 920 can mainly include Program storage area and data storage area, wherein program storage area can application journey needed for storage program area, at least one function Sequence (such as application program, application program of image player function of sound-playing function etc.) etc.;Data storage area can store root Created data (such as audio data, address list etc.) etc. are used according to mobile phone.In addition, memory 920 may include high speed Random access memory, can also include nonvolatile memory, a for example, at least disk memory, flush memory device or Other volatile solid-state parts.
Input unit 930 can be used for receiving the number or character information of input, and generate the user setting with mobile phone 900 And the related key signals input of function control.Specifically, input unit 930 may include touch panel 931 and other inputs Equipment 932.Touch panel 931, alternatively referred to as touch screen collect touch operation (such as the user of user on it or nearby Use the operation of any suitable object or attachment such as finger, stylus on touch panel 931 or near touch panel 931), And corresponding attachment device is driven according to preset formula.In one embodiment, touch panel 931 may include touching inspection Survey two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation Bring signal, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and will It is converted into contact coordinate, then gives processor 980, and can receive order that processor 980 is sent and be executed.In addition, Touch panel 931 can be realized using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch surface Plate 931, input unit 930 can also include other input equipments 932.Specifically, other input equipments 932 may include but not It is limited to one of physical keyboard, function key (such as volume control button, switch key etc.) etc. or a variety of.
Display unit 940 can be used for showing information input by user or be supplied to user information and mobile phone it is various Menu.Display unit 940 may include display panel 941.In one embodiment, liquid crystal display (Liquid can be used Crystal Display, LCD), the forms such as Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED) To configure display panel 941.In one embodiment, touch panel 931 can cover display panel 941, when touch panel 931 is examined After measuring touch operation on it or nearby, processor 980 is sent to determine the type of touch event, is followed by subsequent processing device 980 provide corresponding visual output according to the type of touch event on display panel 941.Although in Fig. 9, touch panel 931 and display panel 941 are the input and input function for realizing mobile phone as two independent components, but in certain implementations In example, can be integrated by touch panel 931 and display panel 941 and that realizes mobile phone output and input function.
Mobile phone 900 may also include at least one sensor 950, such as optical sensor, motion sensor and other sensings Device.Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 941, and proximity sensor can close display panel when mobile phone is moved in one's ear 941 and/or backlight.Motion sensor may include acceleration transducer, can detect by acceleration transducer and adds in all directions The size of speed can detect that size and the direction of gravity when static, can be used to identify application (such as the horizontal/vertical screen of mobile phone posture Switching), Vibration identification correlation function (such as pedometer, tap) etc.;In addition, mobile phone can also configure gyroscope, barometer, humidity Other sensors such as meter, thermometer, infrared sensor etc..
Voicefrequency circuit 960, loudspeaker 961 and microphone 962 can provide the audio interface between user and mobile phone.Audio-frequency electric Electric signal after the audio data received conversion can be transferred to loudspeaker 961, be converted to sound by loudspeaker 961 by road 960 Signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 962, is turned after being received by voicefrequency circuit 960 It is changed to audio data, then by after the processing of audio data output processor 980, another mobile phone can be sent to through RF circuit 910, or Person exports audio data to memory 920 so as to subsequent processing.
WiFi belongs to short range wireless transmission technology, and mobile phone can help user's transceiver electronics postal by WiFi module 970 Part, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 9 is shown WiFi module 970, but it is understood that, and it is not belonging to must be configured into for mobile phone 900, it can according to need and omit.
Processor 980 is the control centre of mobile phone, using the various pieces of various interfaces and connection whole mobile phone, is led to It crosses operation or executes the software program and/or module being stored in memory 920, and call and be stored in memory 920 Data execute the various functions and processing data of mobile phone, to carry out integral monitoring to mobile phone.In one embodiment, it handles Device 980 may include one or more processing units.In one embodiment, processor 980 can integrate application processor and modulation Demodulation processor, wherein the main processing operation system of application processor, user interface and application program etc.;Modulation /demodulation processing Device mainly handles wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 980.
Mobile phone 900 further includes the power supply 990 (such as battery) powered to all parts, it is preferred that power supply can pass through electricity Management system and processor 980 are logically contiguous, to realize management charging, electric discharge and power consumption by power-supply management system The functions such as management.
In one embodiment, mobile phone 900 can also include camera, bluetooth module etc..
In the embodiment of the present application, processor 980 included by the electronic equipment executes the calculating of storage on a memory The step of realizing applied program processing method provided by the above embodiment when machine program.
Any reference to memory, storage, database or other media used in this application may include non-volatile And/or volatile memory.Nonvolatile memory may include that read-only memory (ROM), programming ROM (PROM), electricity can be compiled Journey ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include random access memory (RAM), it is used as external cache.By way of illustration and not limitation, RAM is available in many forms, such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) directly RAM (RDRAM), straight Connect memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM).
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously The limitation to the application the scope of the patents therefore cannot be interpreted as.It should be pointed out that for those of ordinary skill in the art For, without departing from the concept of this application, various modifications and improvements can be made, these belong to the guarantor of the application Protect range.Therefore, the scope of protection shall be subject to the appended claims for the application patent.

Claims (10)

1. a kind of applied program processing method characterized by comprising
By user images corresponding to user of the camera acquisition using electronic equipment, user is obtained according to the user images Mark;
Obtained according to the user identifier installed in the average operation duration and the electronic equipment of the electronic equipment it is each The history data of a application program, the average operation duration indicate that the electronic equipment is averagely run in unit time Duration;
Resource constraint strategy is obtained according to the average operation duration, and target application journey is obtained according to the history data Sequence;
Resource constraint processing is carried out to the destination application according to the resource constraint strategy.
2. the method according to claim 1, wherein described obtain user identifier packet according to the user images It includes:
Face datection is carried out to the user images, obtains the target facial image in the user images;
The target facial image is matched with the facial image in face database, obtains the facial image institute to match Corresponding user identifier.
3. the method according to claim 1, wherein described obtain resource constraint according to the average operation duration Strategy includes:
User's degree of dependence is obtained according to the average operation duration, and resource constraint plan is obtained according to user's degree of dependence Slightly, user's degree of dependence is for indicating user to the degree of dependence of the electronic equipment.
4. according to the method described in claim 3, it is characterized in that, described obtain user's dependence according to the average operation duration Degree includes:
It determines the target duration section that the average operation duration is fallen into, corresponding user is obtained according to target duration section Degree of dependence;
It is described to include: according to user's degree of dependence acquisition resource constraint strategy
When user's degree of dependence be first order degree of dependence, then obtain first resource restriction strategy and Secondary resource limitation plan Slightly;
When user's degree of dependence be second level degree of dependence, then Secondary resource restriction strategy is obtained, wherein the first order Degree of dependence is higher than the second level degree of dependence;
It is described that resource constraint processing is carried out including in following manner to the destination application according to the resource constraint strategy It is at least one:
Resource constraint processing is carried out to the destination application according to the first resource restriction strategy;
Resource constraint processing is carried out to the destination application according to the Secondary resource restriction strategy.
5. according to the method described in claim 4, it is characterized in that, it is described according to the first resource restriction strategy to the mesh Mark application program carries out resource constraint processing
Obtain the front stage operation duration of the destination application;
When the front stage operation duration is more than the first duration threshold value, then controls the destination application and enter resource constraint shape State;
It is described to include: to destination application progress resource constraint processing according to the Secondary resource restriction strategy
When detecting that the destination application is switched to backstage from foreground, start timing;
If timing duration is more than the second duration threshold value, controls the destination application and enter frozen state.
6. the method according to claim 1, wherein described obtain target application according to the history data Program includes at least one of following manner:
The application program that the power consumption is more than power threshold is obtained, as destination application;
The application program is ranked up according to the power consumption, and obtains specified digit in the application program after sequence Application program is as destination application;
The application program for obtaining the running frequency overfrequency threshold value, as destination application;
The application program is ranked up according to running frequency, and obtains answering for specified digit in the application program after sequence Use program as destination application.
7. method according to any one of claims 1 to 6, which is characterized in that the method also includes:
To the limitation duration at current time at the time of acquisition to destination application progress resource constraint processing;
If the limitation duration is more than limitation duration threshold value, the destination application is restored to normal operating condition.
8. a kind of application processing apparatus characterized by comprising
Identifier acquisition module, for using user images corresponding to the user of electronic equipment by camera acquisition, according to institute It states user images and obtains user identifier;
Data acquisition module, for obtaining the average operation duration of the electronic equipment and described according to the user identifier The history data for each application program installed in electronic equipment, the average operation duration indicate that the electronic equipment exists The duration averagely run in unit time;
Strategy obtains module, for obtaining resource constraint strategy according to the average operation duration, and according to the history run Data acquisition destination application;
Application processing module, for carrying out resource constraint processing to the destination application according to the resource constraint strategy.
9. a kind of electronic equipment, including memory and processor, computer program, the computer are stored in the memory When program is executed by the processor, so that the processor executes the step of the method as described in any one of claims 1 to 7 Suddenly.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program The step of method as described in any one of claims 1 to 7 is realized when being executed by processor.
CN201711484475.2A 2017-12-29 2017-12-29 Applied program processing method, device, electronic equipment, computer readable storage medium Pending CN109992371A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711484475.2A CN109992371A (en) 2017-12-29 2017-12-29 Applied program processing method, device, electronic equipment, computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711484475.2A CN109992371A (en) 2017-12-29 2017-12-29 Applied program processing method, device, electronic equipment, computer readable storage medium

Publications (1)

Publication Number Publication Date
CN109992371A true CN109992371A (en) 2019-07-09

Family

ID=67110311

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711484475.2A Pending CN109992371A (en) 2017-12-29 2017-12-29 Applied program processing method, device, electronic equipment, computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109992371A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112423038A (en) * 2020-11-06 2021-02-26 深圳Tcl新技术有限公司 Video recommendation method, terminal and storage medium
CN113325992A (en) * 2020-02-28 2021-08-31 华为技术有限公司 Sliding operation processing method and device, electronic equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105528055A (en) * 2015-12-30 2016-04-27 小米科技有限责任公司 Running object processing method and device
CN105630474A (en) * 2014-11-06 2016-06-01 中兴通讯股份有限公司 Reminding method and device
CN106066810A (en) * 2016-05-26 2016-11-02 广东欧珀移动通信有限公司 A kind of application management method, device and mobile terminal
CN106096352A (en) * 2016-05-26 2016-11-09 广东欧珀移动通信有限公司 The control method for preventing indulging of a kind of mobile terminal, device and mobile terminal
CN106125882A (en) * 2016-06-15 2016-11-16 深圳市万普拉斯科技有限公司 The management method of a kind of application program and electronic equipment
CN107391603A (en) * 2017-06-30 2017-11-24 北京奇虎科技有限公司 User's portrait method for building up and device for mobile terminal
CN107409346A (en) * 2016-03-22 2017-11-28 华为技术有限公司 The method and terminal that limitation application program uses

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105630474A (en) * 2014-11-06 2016-06-01 中兴通讯股份有限公司 Reminding method and device
CN105528055A (en) * 2015-12-30 2016-04-27 小米科技有限责任公司 Running object processing method and device
CN107409346A (en) * 2016-03-22 2017-11-28 华为技术有限公司 The method and terminal that limitation application program uses
CN106066810A (en) * 2016-05-26 2016-11-02 广东欧珀移动通信有限公司 A kind of application management method, device and mobile terminal
CN106096352A (en) * 2016-05-26 2016-11-09 广东欧珀移动通信有限公司 The control method for preventing indulging of a kind of mobile terminal, device and mobile terminal
CN106125882A (en) * 2016-06-15 2016-11-16 深圳市万普拉斯科技有限公司 The management method of a kind of application program and electronic equipment
CN107391603A (en) * 2017-06-30 2017-11-24 北京奇虎科技有限公司 User's portrait method for building up and device for mobile terminal

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113325992A (en) * 2020-02-28 2021-08-31 华为技术有限公司 Sliding operation processing method and device, electronic equipment and storage medium
CN112423038A (en) * 2020-11-06 2021-02-26 深圳Tcl新技术有限公司 Video recommendation method, terminal and storage medium

Similar Documents

Publication Publication Date Title
CN110008008A (en) Applied program processing method and device, electronic equipment, computer readable storage medium
CN107220076A (en) A kind of method for recovering internal storage and device
CN109144232A (en) Process handling method and device, electronic equipment, computer readable storage medium
CN108112063A (en) Electric quantity managing method, power management device, terminal and readable storage medium storing program for executing
CN110018904A (en) Information processing method, device, computer equipment and computer readable storage medium
CN109992367A (en) Application processing method and device, electronic equipment, computer readable storage medium
CN109992438A (en) Information processing method, device, computer equipment and computer readable storage medium
CN110018901A (en) Method for recovering internal storage, device, computer equipment and computer readable storage medium
CN110032431A (en) Application processing method and device, electronic equipment, computer readable storage medium
CN110032321A (en) Applied program processing method and device, electronic equipment, computer readable storage medium
CN110045809A (en) Information processing method, device, computer equipment and computer readable storage medium
CN110018902A (en) Internal memory processing method and device, electronic equipment, computer readable storage medium
CN109992364A (en) Using freezing method, device, computer equipment and computer readable storage medium
CN110018900A (en) Internal memory processing method and device, electronic equipment, computer readable storage medium
CN109992397A (en) Process handling method and device, electronic equipment, computer readable storage medium
CN108541013A (en) Information processing method, device, mobile terminal and computer readable storage medium
CN110032266A (en) Information processing method, device, computer equipment and computer readable storage medium
CN110018905A (en) Information processing method, device, computer equipment and computer readable storage medium
CN109992380A (en) Applied program processing method and device, electronic equipment, computer readable storage medium
CN109992360A (en) Process handling method and device, electronic equipment, computer readable storage medium
CN109992363A (en) Applied program processing method and device, electronic equipment, computer readable storage medium
CN109992309A (en) Applied program processing method and device, electronic equipment, computer readable storage medium
CN110032397A (en) Application processing method and device, electronic equipment, computer readable storage medium
CN109992371A (en) Applied program processing method, device, electronic equipment, computer readable storage medium
CN110018886A (en) Application state switching method and apparatus, electronic equipment, readable storage medium storing program for executing

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: 20190709

RJ01 Rejection of invention patent application after publication