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

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

Info

Publication number
CN110032321A
CN110032321A CN201810032302.5A CN201810032302A CN110032321A CN 110032321 A CN110032321 A CN 110032321A CN 201810032302 A CN201810032302 A CN 201810032302A CN 110032321 A CN110032321 A CN 110032321A
Authority
CN
China
Prior art keywords
application
electronic equipment
foreground
program
voice
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810032302.5A
Other languages
Chinese (zh)
Other versions
CN110032321B (en
Inventor
陈岩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN201810032302.5A priority Critical patent/CN110032321B/en
Publication of CN110032321A publication Critical patent/CN110032321A/en
Application granted granted Critical
Publication of CN110032321B publication Critical patent/CN110032321B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/167Audio in a user interface, e.g. using voice commands for navigating, audio feedback
    • 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/5016Allocation 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 the resource being the memory
    • 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/50Indexing scheme relating to G06F9/50
    • G06F2209/504Resource capping

Abstract

The application provides a kind of applied program processing method and device, electronic equipment, computer readable storage medium.The described method includes: monitoring whether the electronic equipment receives voice limitation instruction when detecting that the foreground application run in electronic equipment is in screen mode toggle;If the electronic equipment receives voice limitation instruction, destination application is obtained from background application;Resource constraint processing is carried out to the destination application according to voice limitation instruction.Above-mentioned applied program processing method and device, electronic equipment, computer readable storage medium, can be improved the operational efficiency of application program.

Description

Applied program processing method and 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 and 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.Application program can be frozen, and the application program after freezing can not It is further continued for running, processor resource in smart machine will not be occupied.But due to application program still exist in smart machine , therefore 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 and device, electronic equipment, computer-readable storage medium The operational efficiency of application program can be improved in matter.
A kind of applied program processing method, comprising:
When detecting that the foreground application run in electronic equipment is in screen mode toggle, monitoring the electronic equipment is It is no to receive voice limitation instruction;
If the electronic equipment receives voice limitation instruction, destination application is obtained from background application;
Resource constraint processing is carried out to the destination application according to voice limitation instruction.
A kind of application processing apparatus, comprising:
Instruction detection module, for when detecting that the foreground application run in electronic equipment is in screen mode toggle, Monitor whether the electronic equipment receives voice limitation instruction;
Using module is obtained, if voice limitation instruction is received for the electronic equipment, from background application Obtain destination application;
Application processing module, for being carried out at resource constraint according to voice limitation instruction 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:
When detecting that the foreground application run in electronic equipment is in screen mode toggle, monitoring the electronic equipment is It is no to receive voice limitation instruction;
If the electronic equipment receives voice limitation instruction, destination application is obtained from background application;
Resource constraint processing is carried out to the destination application according to voice limitation instruction.
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:
When detecting that the foreground application run in electronic equipment is in screen mode toggle, monitoring the electronic equipment is It is no to receive voice limitation instruction;
If the electronic equipment receives voice limitation instruction, destination application is obtained from background application;
Resource constraint processing is carried out to the destination application according to voice limitation instruction.
Above-mentioned applied program processing method and device, electronic equipment, computer readable storage medium, electronic equipment are detecting When being in screen mode toggle to foreground application, it can monitor and whether receive voice limitation instruction.If receiving voice limitation to refer to It enables, then obtains destination application from background application, and provide to destination application according to voice limitation instruction Source limitation instruction.User can initiate voice limitation instruction to control the operation of background application, be handled by resource constraint Control background application improves the operation of application program to the occupancy of resource to guarantee the efficient operation of foreground application Efficiency.
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, when the foreground application for detecting operation in client 102 When program is in screen mode toggle, monitors and whether receive voice limitation instruction;If voice limitation instruction is received, from answering from the background With obtaining destination application in program;Resource constraint processing is carried out to destination application according to voice limitation instruction.Service Device 104 can be used for 102 pushing application program Processing Algorithm of client, and client 102 is according to the application program Processing Algorithm Application program is handled.Wherein, client 102 is to be mainly used for inputting user information in computer network outermost And the electronic equipment of output processing result, such as can be PC, mobile terminal, personal digital assistant, wearable electricity Sub- equipment etc..Server 104 be for responding service request, while provide calculate service equipment, such as can be one or Person's multiple stage computers.It is understood that in other embodiments provided by the present application, the application environment of applied program processing method It 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, it when detecting that the foreground application run in electronic equipment is in screen mode toggle, monitors electronics and sets It is standby whether to receive voice limitation instruction.
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.
Screen mode toggle refer to by application program screen or pattern visual evoked potentials to electronic equipment entire screen mode.? When running application program, user can initiate full frame instruction by electronic equipment, and application program is made to be in screen mode toggle.It answers When being in screen mode toggle with program, user can also initiate to reduce instruction, and application program is made to exit screen mode toggle, be restored to original Size.For example, user, when watching video, video window is only shown in a part of Application Program Interface, at this moment User can initiate full frame instruction, make video amplifier to screen mode toggle, and video accounts for the entire screen of electronic equipment under screen mode toggle Curtain, facilitates user to check.When playing game, interface can also be amplified to the size of entire screen, to facilitate use The operation at family.
Step 304, if electronic equipment receives voice limitation instruction, target application journey is obtained from background application Sequence.
Voice limitation instruction is to be used to indicate the instruction that resource constraint processing is carried out to application program.When detecting that electronics sets The foreground application of standby middle operation is in screen mode toggle, and electronic equipment can acquire voice, and solve to the voice of acquisition Whether analysis, the collected voice of detection institute are voice limitation instruction.Specifically, electronic equipment can pre-establish target keywords and The corresponding relationship of voice limitation instruction.Electronic equipment can convert speech information into text information after collecting voice messaging. Then the keyword in text information is extracted, and the keyword of extraction is matched with target keywords.If it exists with target The keyword that keyword matches, then it is assumed that electronic equipment receives voice limitation instruction.
For example, target keywords are " freezing ", then the corresponding relationship of " freezing " and voice limitation instruction is established.Electronic equipment When detecting foreground application is screen mode toggle, the voice messaging of user is acquired, and voice messaging is converted into text sequence Column, and the keyword in text sequence is extracted, the keyword of extraction is compared with " freezing ".If it exists with " freezing " phase Matched keyword then determines that electronic equipment receives voice limitation instruction.
Destination application refers to the application program for needing to carry out resource constraint processing.It is understood that electronic equipment The application program of middle operation can be divided into foreground application and background application, when foreground application is in screen mode toggle When, it is believed that it is important application program.In order to guarantee the operational efficiency of foreground application, then background application can be reduced Occupancy of the program to resource.For example, the priority of the priority of foreground application and background application can be compared Compared with then obtaining destination application from background application.The higher background application of priority is retained into normal fortune Capable state carries out resource constraint processing using the low background application of priority as destination application.
In one embodiment, can be using whole background applications as destination application, it can also be according to backstage The application priority of application program obtains destination application.Obtaining destination application can specifically include: obtain foreground The foreground application priority of application program;The background application for being lower than the foreground application priority using priority is obtained, is made For destination application.It is used to indicate the significance level of application program using priority.For example, system application can be defined Be higher than the application priority of third party application using priority, or to define according to the type of application program application excellent The application priority of first grade, instant messaging class application program is higher than game class application program.User or system customized can answer With priority, in the present embodiment without specifically limiting.
Step 308, resource constraint processing is carried out to destination application according to voice limitation instruction.
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 place limited the occupied resource of application program Reason.Resource constraint processing can be, but not limited to be that control application program enters frozen state or resource constraint state, in freezing The application program of state is not turned off, and is not run temporarily only.If application program is in frozen state, application program is not accounted for With processor resource, but still occupy the resources such as memory and the hardware of electronic equipment.Resource constraint state refers to using journey The state that the resource for the electronic equipment that sequence uses at runtime is limited, such as control what application program used at runtime CPU usage is no more than 5%.
When foreground application is in screen mode toggle, user can be by initiating voice limitation instruction come to target application Program carries out resource constraint processing.For example, user can cry out one " freezing " when user is when playing game generation Caton, Then electronic equipment will limit instruction according to the voice and obtain destination application from background application, and controls target and answer Enter frozen state with program, forbid the operation of destination application, cpu resource is accounted for reduce destination application With the fluency of guarantee foreground application operation.
Applied program processing method provided by the above embodiment, electronic equipment are detecting foreground application in full frame When mode, it can monitor and whether receive voice limitation instruction.If receiving voice limitation instruction, obtained from background application Destination application is taken, and resource constraint instruction is carried out to destination application according to voice limitation instruction.User can initiate Voice limitation instructs to control the operation of background application, handles control background application to resource by resource constraint It occupies, to guarantee the efficient operation of foreground application, improves the operational efficiency of application program.
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 410.Wherein:
Step 402, it when detecting that the foreground application run in electronic equipment is in screen mode toggle, monitors electronics and sets It is standby whether to receive voice limitation instruction.
In one embodiment, for foreground application after detecting full frame instruction, electronic equipment can be to foreground application The configuration file of program is modified, and sets screen mode toggle for foreground application.Electronic equipment can also be to screen simultaneously It is monitored, it is also non-screen mode toggle that detection screen, which is in screen mode toggle,.For example, can pass through in Andriod system This.getWindow () .getAttributes () .flags function obtains the state of screen, obtains when above-mentioned function When value is 66816, current screen is screen mode toggle;When the value that above-mentioned function obtains is 65792, current screen is non-full screen mode Formula.
Step 404, it if electronic equipment receives voice limitation instruction, obtains from background application by foreground application The dependence application program that program relies on, and the background application in addition to relying on application program is obtained as target application journey Sequence.
In one embodiment, relying on indicates that an application program needs to be used in the number of another or multiple application programs According to the relationship that could smoothly realize the execution to an application program.There are two application programs of dependence, respectively The application program of the application program and dependence that are relied on.For example, application program A depends on application program B or application program B is relied on by application program A, i.e. expression application program A needs just to be able to achieve using the data of application program B to application program A Execution, at this point, application program A is to depend on the application program of application program B, application program B be by application program A according to Bad application program.Specifically, in the embodiment of the present application, application program is relied on just to refer to by after foreground application dependence Platform application program.
Dependence between application program is not constant always, but real-time change.Electronic equipment can will be applied Dependence between program is recorded.Specifically, interdepending between two application programs is built upon their needs On the basis communicated with each other.Therefore, it obtains by the dependence application program that foreground application relies on and includes: acquisition and foreground There are the background applications of correspondence between application program, as dependence application program.
It in an operating system, is to establish the correspondence between application program by defining communication mechanism.Wherein, lead to Letter mechanism includes Socket, Binder, shared drive etc..It is efficient that Binder communicates the one kind for being to realize in android system IPC (Inter-Process Communication, inter-application communication) mechanism, is a kind of client-server (client End-server) communication structure.Client can define a corresponding proxy interface with server, and client call agency connects Mouthful in method when, the parameter of client can be packaged into a Parcel object by the method for proxy interface, then proxy interface Parcel object is sent to the driving of the Binder in inner nuclear layer.Server can read the request data in Binder driving, Then Parcel object is parsed and is handled, and processing result is returned.Socket communication can be to two network applications Program is communicatively coupled, to realize the data exchange of the application program on network.Specifically, it is communicated between local application It can carry out one application program of unique identification by PID (Process Identity, application program identification), but be answered in network It has no idea to realize with interprogram communication.And (Internet Protocol is interconnected between network IP in network communications Agreement) address can with the host in unique identification network, " agreement+port " can with the application program in unique identification host, It therefore is usually by way of " IP address+agreement+port " come one application program of unique identification in Socket communication. Shared drive is exactly that two incoherent application programs is allowed to access the same logical memory, and shared drive is being transported at two A kind of very effective mode of data, the memory shared between different application are shared and transmitted between capable application program It is usually arranged for same section of physical memory.
Optionally, obtaining by the dependence application program that foreground application relies on includes at least one of following manner: being obtained The background application that there is socket correspondence with foreground application is taken, as dependence application program;Acquisition and foreground Application program has the background application of binder correspondence, as dependence application program;Acquisition and foreground application Between carry out memory sharing background application, as rely on application program.
Step 406, it if voice limitation instruction is freezed to instruct for application, controls destination application and enters frozen state.
In the present embodiment, voice limitation instruction may include using freezing instruction and resource constraint instruction, using freezing Instruction enters frozen state for controlling application program, and resource constraint instruction enters resource constraint shape for controlling application program State.Multiple target keywords can be stored in advance in electronic equipment, and establish target keywords and the limitation instruction of each voice respectively Corresponding relationship.After getting voice messaging, electronic equipment can convert voice messaging to text information, and extract text Then keyword in information matches the keyword of extraction with each target keywords respectively.It is closed if it exists with target The keyword that key word matches, then it is assumed that electronic equipment has received voice limitation instruction, is then closed according to the target matched Key word obtains corresponding voice limitation instruction.The keyword extracted in voice messaging can use TF-IDF (Term Frequency-Inverse Document Frequency, word frequency-inverted file frequency), TextRank (text sequence) etc. Algorithm, in the present embodiment without limitation.
For example, two target keywords " freezing " and " limitation " is stored in advance in electronic equipment, wherein " freezing " corresponding application Freeze to instruct, the limitation instruction of " limitation " corresponding resource.Electronic equipment acquires voice messaging, converts text envelope for voice messaging Breath, and extract the keyword in text information.The keyword to match if it exists with target keywords " freezing ", then illustrate electronics Equipment, which detects to apply, to be freezed to instruct.The keyword to match if it exists with target keywords " limitation " then illustrates that electronics is set It is standby to detect resource constraint instruction.
When voice limitation instruction limits instruction for application, then illustrate that user needs to carry out freezing to locate by background application Reason.Into the destination application of frozen state, it can not be further continued for running, also just be not take up cpu resource, mesh can be reduced in this way Application program is marked to the resource occupation of electronic equipment, to guarantee the operation of foreground application.Target application journey after freezing Sequence can also be waken up, and user or system can be configured the condition of wake-up, herein without specifically limiting.
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 the behaviour such as IOS, Saipan, Windows, MAC OS (Macintosh Operating System) Make in system.
Step 408, it if voice limitation instruction is that resource constraint instructs, controls destination application and enters resource constraint shape State, wherein the application program in resource constraint state is less than occupancy threshold to the resources occupation rate of electronic equipment at runtime Value.
In one embodiment, if the voice limitation instruction received is that resource constraint instructs, it can control target and answer Enter resource constraint state with program.Wherein, the application program in resource constraint state is at runtime to the money of electronic equipment Source occupancy is less than occupancy threshold.When destination application is in resource constraint state, destination application sets electronics Standby resources occupation rate cannot be more than occupancy threshold, can control destination application in this way and account for the resource of electronic equipment With the operational efficiency on foreground is improved to the occupancy of resource in reduction backstage.For example, the CPU of control destination application at runtime Occupancy is consumed excessively no more than 5% with reducing destination application to CPU.It can pass through in cell phone system Cgroups (control groups, control group) is come resources occupation rates such as the CPU, memory, IO that control destination application, i.e., The acquired destination application of control enters resource constraint state.
It can be with the resources occupation rate of each application program of real-time statistics, then by electronics during electronic equipment operation The addition of the resources occupation rate of all application programs obtains the total occupancy of resource in equipment.Specifically, electronic equipment can be pre- If storage monitoring journal file, always occupies according to the resource of the available electronic equipment of monitoring journal file in storage address Rate.Several sub-folders are also stored in the default storage address simultaneously, each process day is store in these sub-folders Will file.Process log file have recorded process from open to current time practival operating condition variation, according to these into Journey journal file can obtain the case where resource occupied by the process, can obtain the resources occupation rate of process.Then it will answer The resources occupation rate for all processes for including with program is added, the resources occupation rate for the program that is applied.
For example, in android system, the monitoring day of the storage total occupied information of CPU can be read in/proc catalogue Will file.Wherein, multiple sub-folders are further comprised under/proc catalogue, it is corresponding that each process is stored in these sub-folders CPU occupied information process log file.The file of the monitoring journal file stored in/proc catalogue is entitled " stat " ,/ Process log file is stored in sub-folder in proc catalogue, the file of process log file is entitled " stat "./ proc mesh Stat file under record has recorded total occupied information of CPU, and the stat file in sub-folder under/proc catalogue has recorded respectively The CPU occupied information of a process.For example, the stat file under/proc/pid catalogue has recorded the CPU occupied information of PID process.
Electronic equipment can be with the occupancy of the resources such as real-time statistics memory, hardware, Internet resources, IO, such as is passing through The information for reading file "/proc/meminfo " can obtain the memory amount of mobile phone, and pass through ActivityManager.getMemoryInfo (ActivityManager.MemoryInfo) method it is available it is current can With amount of ram, the total occupancy of current memory then can be calculated by free memory amount and memory amount.In android system In can run top order directly to count the occupancy of the resources such as CPU, memory, IO.
The resources occupation rate of foreground application is higher, then illustrates that demand of the foreground application to resource is higher.Therefore, Resource constraint can be carried out to destination application by the resources occupation rate of foreground application.Specifically, foreground is obtained to answer With the corresponding foreground resources occupation rate of program;Destination application, which is controlled, according to foreground resources occupation rate enters resource constraint shape State.Wherein, foreground resources occupation rate indicates foreground application to the occupancy of the resource of electronic equipment.
In one embodiment, resource constraint rank can be obtained according to foreground resources occupation rate first, then controls mesh Mark application program enters the corresponding resource constraint state of resource constraint rank.Resource constraint rank is for indicating to application program Resource constraint degree.Foreground resources occupation rate can be divided into two or more occupancy sections in advance, then built Found the corresponding relationship in each occupancy section and resource constraint rank.Determine that target accounts for according to the foreground resources occupation rate of acquisition With rate section, corresponding resource constraint rank is then obtained according to target occupancy section.For example, foreground resources occupation rate is drawn It is divided into three occupancy sections such as [0,20%], [20%, 70%] and [70%, 100%], respectively corresponds slight resource constraint grade Not, common resources limit three resource constraint tier levels such as rank and depth resource constraint rank, different resource constraint grades Not corresponding occupancy threshold is different.If the foreground resources occupation rate obtained is 60%, then corresponding target occupancy section It is just [20%, 70%], corresponding resource constraint rank is just depth resource constraint rank.
In other embodiments provided by the present application, it can also be answered according to the resources left rate of electronic equipment to control target With program to the resource occupation of electronic equipment.Specifically, the resources left rate for obtaining electronic equipment, according to foreground resources occupation rate With resources left rate computing resource control rate;Corresponding resource constraint rank is obtained according to resources control rate;Control target application Program enters resource constraint rank corresponding resource restriction state.Resources left rate refers to the surplus resources and total resources of electronic equipment Ratio.For example, the application program run in electronic equipment may include foreground application and background application, foreground The foreground resources occupation rate of application program is 30%, and the backstage resources occupation rate of background application is 45%, then can obtain It is just 100%-30%-45%=25% to resources left rate.
It can specifically include according to foreground resources occupation rate and resources left rate computing resource control rate: foreground resource accounted for Resources control rate is obtained divided by resources left rate with rate.Foreground resources occupation rate is bigger, and the resources left rate of electronic equipment is smaller, The resources control rate being calculated is bigger, and resource requirement when illustrating foreground application operation is bigger.For example, foreground resource Occupancy is 50%, and resources left rate is 20%, then the resources control rate being calculated just is 50% ÷ 20%=2.5.It can To pre-establish the corresponding relationship of resources control rate Yu resource constraint rank, then obtained according to the resources control rate being calculated Corresponding resource constraint rank.
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%.
Step 410, if detecting, foreground application exits screen mode toggle, controls destination application and is restored to normally Operating status.
In embodiment provided by the present application, when detecting that foreground application exits screen mode toggle, mesh can control Mark application recovery normal operating condition.Specifically, it if destination application is in resource constraint state, releases electronics and sets The standby resource constraint to destination application.If destination application is in frozen state, by destination application from freezing It is waken up in state.After being restored to normal operating condition, destination application is no longer influenced by limitation to the use of electronic equipment resource.
In one embodiment, can also foreground application exit screen mode toggle for a period of time and then control mesh Application recovery is marked to normal operating condition.Specifically, if step 410 may include: to detect that foreground application exits Screen mode toggle then starts timing;If timing duration is more than duration threshold value, controls destination application and be restored to normal operation shape State.For example, exiting screen mode toggle 5 seconds in foreground application and then destination application being restored to normal operation shape State.By taking android system as an example, system can pre-define a timer, when detecting that it is full frame that foreground application exits When mode, system searching timer predetermined, and pass through timer.setBase (SystemClock.elapsedRealtime ()) resets timer, then passes through timer.start () function starting meter When device, start timing.
It is understood that foreground application is after exiting screen mode toggle, it is also possible to continuing to keep front stage operation, As long as the foreground application is also in front stage operation, so that it may which the resource more occupied to background application limits, to protect Demonstrate,prove the fluency of foreground application.So step 410 can specifically include: if detecting, foreground application exits full screen mode Formula, then detect whether foreground application exits foreground;If detecting, foreground application exits foreground, controls target application Program recovery is to normal operating condition.
Applied program processing method provided by the above embodiment, electronic equipment are detecting foreground application in full frame When mode, it can monitor and whether receive voice limitation instruction.If receiving voice limitation instruction, obtained from background application Destination application is taken, and resource constraint instruction is carried out to destination application according to voice limitation instruction.Detecting foreground When application program exits screen mode toggle, destination application is made to be restored to normal operating condition.User can initiate voice limitation It instructs to control the operation of background application, control background application is handled to the occupancy of resource by resource constraint, with The efficient operation for guaranteeing foreground application, improves the operational efficiency of application program.When foreground application exits screen mode toggle When, then restore the normal operating condition of destination application, can guarantee that the application program in electronic equipment operates normally in this way.
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 instruction detection module 702, using acquisition module 704 and application processing module 706.Wherein:
Instruction detection module 702 detects that the foreground application run in electronic equipment is in screen mode toggle for working as When, monitor whether the electronic equipment receives voice limitation instruction.
Using module 704 is obtained, if voice limitation instruction is received for the electronic equipment, from background application Middle acquisition destination application.
Application processing module 706, for carrying out resource limit to the destination application according to voice limitation instruction System processing.
Application processing apparatus provided by the above embodiment, electronic equipment are detecting foreground application in full frame When mode, it can monitor and whether receive voice limitation instruction.If receiving voice limitation instruction, obtained from background application Destination application is taken, and resource constraint instruction is carried out to destination application according to voice limitation instruction.User can initiate Voice limitation instructs to control the operation of background application, handles control background application to resource by resource constraint It occupies, to guarantee the efficient operation of foreground application, improves the operational efficiency of application program.
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 instruction detection module 802, using acquisition module 804, application processing module 806 and application recovery module 808.Wherein:
Instruction detection module 802 detects that the foreground application run in electronic equipment is in screen mode toggle for working as When, monitor whether the electronic equipment receives voice limitation instruction.
Using module 804 is obtained, if voice limitation instruction is received for the electronic equipment, from background application Middle acquisition destination application.
Application processing module 806, for carrying out resource limit to the destination application according to voice limitation instruction System processing.
Application recovery module 808, if controlling the mesh for detecting that the foreground application exits screen mode toggle Application recovery is marked to normal operating condition.
Application processing apparatus provided by the above embodiment, electronic equipment are detecting foreground application in full frame When mode, it can monitor and whether receive voice limitation instruction.If receiving voice limitation instruction, obtained from background application Destination application is taken, and resource constraint instruction is carried out to destination application according to voice limitation instruction.Detecting foreground When application program exits screen mode toggle, destination application is made to be restored to normal operating condition.User can initiate voice limitation It instructs to control the operation of background application, control background application is handled to the occupancy of resource by resource constraint, with The efficient operation for guaranteeing foreground application, improves the operational efficiency of application program.When foreground application exits screen mode toggle When, then restore the normal operating condition of destination application, can guarantee that the application program in electronic equipment operates normally in this way.
In one embodiment, it is also used to obtain from background application using acquisition module 804 and be answered by the foreground The dependence application program relied on program, and the background application obtained in addition to the dependence application program is answered as target Use program.
In one embodiment, it is also used to exist between acquisition and the foreground application using acquisition module 804 logical The background application of gateway system, as dependence application program.
In one embodiment, if application processing module 806 is also used to the voice limitation instruction and freezes to instruct for application, It then controls the destination application and enters frozen state;If the voice limitation instruction is that resource constraint instructs, institute is controlled It states destination application and enters resource constraint state, wherein the application program in the resource constraint state is right at runtime The resources occupation rate of electronic equipment is less than occupancy threshold.
In one embodiment, application processing module 806 is also used to obtain the corresponding preceding Taiwan investment of the foreground application Source occupancy, the foreground resources occupation rate indicate the foreground application to the occupancy of the resource of electronic equipment;According to The foreground resources occupation rate controls the destination application and enters resource constraint state.
In one embodiment, application processing module 806 is also used to obtain resource limit according to the foreground resources occupation rate Rank processed controls the destination application into the corresponding resource constraint state of the resource constraint rank.
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
When detecting that the foreground application run in electronic equipment is in screen mode toggle, monitor whether the electronic equipment connects Receive voice limitation instruction;
If the electronic equipment receives voice limitation instruction, destination application is obtained from background application;
Resource constraint processing is carried out to the destination application according to voice limitation instruction.
2. the method according to claim 1, wherein described obtain destination application from background application Include:
The dependence application program relied on by the foreground application is obtained from background application, and is obtained and removed the dependence Background application except application program is as destination application.
3. according to the method described in claim 2, it is characterized in that, described obtain from background application is answered by the foreground Include with the dependence application program that program relies on:
There are the background applications of correspondence between acquisition and the foreground application, as dependence application program.
4. the method according to claim 1, wherein described answer the target according to voice limitation instruction Carrying out resource constraint processing with program includes:
If the voice limitation instruction is freezed to instruct for application, controls the destination application and enter frozen state;
If the voice limitation instruction is that resource constraint instructs, controls the destination application and enters resource constraint state, Wherein, the application program in the resource constraint state is less than occupancy threshold to the resources occupation rate of electronic equipment at runtime Value.
5. according to the method described in claim 4, it is characterized in that, the control destination application enters resource constraint State includes:
The corresponding foreground resources occupation rate of the foreground application is obtained, the foreground resources occupation rate indicates that the foreground is answered With program to the occupancy of the resource of electronic equipment;
The destination application, which is controlled, according to the foreground resources occupation rate enters resource constraint state.
6. according to the method described in claim 5, it is characterized in that, described control the mesh according to the foreground resources occupation rate Mark application program enters resource constraint state and includes:
Resource constraint rank is obtained according to the foreground resources occupation rate, the destination application is controlled and is limited into the resource The corresponding resource constraint state of rank processed.
7. method according to any one of claim 1 to 6, which is characterized in that the method also includes:
If detecting, the foreground application exits screen mode toggle, controls the destination application and is restored to normal operation State.
8. a kind of application processing apparatus characterized by comprising
Instruction detection module, for monitoring when detecting that the foreground application run in electronic equipment is in screen mode toggle Whether the electronic equipment receives voice limitation instruction;
Using module is obtained, if receiving voice limitation instruction for the electronic equipment, obtained from background application Destination application;
Application processing module, for carrying out resource constraint processing to the destination application according to voice limitation instruction.
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.
CN201810032302.5A 2018-01-12 2018-01-12 Application processing method and device, electronic equipment and computer readable storage medium Active CN110032321B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810032302.5A CN110032321B (en) 2018-01-12 2018-01-12 Application processing method and device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810032302.5A CN110032321B (en) 2018-01-12 2018-01-12 Application processing method and device, electronic equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN110032321A true CN110032321A (en) 2019-07-19
CN110032321B CN110032321B (en) 2024-02-20

Family

ID=67234507

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810032302.5A Active CN110032321B (en) 2018-01-12 2018-01-12 Application processing method and device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110032321B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111612377A (en) * 2020-06-01 2020-09-01 北京每日优鲜电子商务有限公司 Information pushing method and device, electronic equipment and computer readable medium
CN112000374A (en) * 2020-07-13 2020-11-27 深圳市智微智能软件开发有限公司 USB touch screen replacing method, device, equipment and medium applied to android system
WO2021022926A1 (en) * 2019-08-06 2021-02-11 中兴通讯股份有限公司 Network-based control method for power consumption of applications, terminal and storage medium
CN114615377A (en) * 2020-11-25 2022-06-10 成都鼎桥通信技术有限公司 Application program control method, device and equipment
CN116701134A (en) * 2022-10-14 2023-09-05 荣耀终端有限公司 Data processing method and electronic equipment
CN116701134B (en) * 2022-10-14 2024-05-17 荣耀终端有限公司 Data processing method and electronic equipment

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140025892A1 (en) * 2012-07-17 2014-01-23 Gerard R. Williams III Converting memory accesses near barriers into prefetches
CN103593230A (en) * 2012-08-13 2014-02-19 百度在线网络技术(北京)有限公司 Background task control method of mobile terminal and mobile terminal
CN103853610A (en) * 2012-12-07 2014-06-11 腾讯科技(深圳)有限公司 Resource optimization method and resource optimization device
CN104360794A (en) * 2014-11-21 2015-02-18 北京奇虎科技有限公司 Method and device for controlling window pop-up through full screen-identifying mode
CN104461546A (en) * 2014-12-15 2015-03-25 北京奇虎科技有限公司 Application based computing device optimizing method and device
CN104572287A (en) * 2015-01-30 2015-04-29 西安酷派软件科技有限公司 Application state maintaining method, device and terminal for use in system switching
CN105677460A (en) * 2015-12-28 2016-06-15 小米科技有限责任公司 Application processing method and apparatus
CN105701025A (en) * 2015-12-31 2016-06-22 华为技术有限公司 Memory recovery method and device
CN105843650A (en) * 2016-03-31 2016-08-10 青岛海信移动通信技术股份有限公司 Application program management method and device in intelligent terminal
CN106201685A (en) * 2016-06-30 2016-12-07 宇龙计算机通信科技(深圳)有限公司 Method, device and the terminal that a kind of application is freezed
CN106325990A (en) * 2016-08-19 2017-01-11 宇龙计算机通信科技(深圳)有限公司 Control method of application program, control device and terminal
CN107231469A (en) * 2017-05-11 2017-10-03 努比亚技术有限公司 A kind of terminal applies management method, terminal and computer-readable recording medium
CN107463436A (en) * 2017-07-31 2017-12-12 广东欧珀移动通信有限公司 Course control method, device, storage medium and electronic equipment

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140025892A1 (en) * 2012-07-17 2014-01-23 Gerard R. Williams III Converting memory accesses near barriers into prefetches
CN103593230A (en) * 2012-08-13 2014-02-19 百度在线网络技术(北京)有限公司 Background task control method of mobile terminal and mobile terminal
CN103853610A (en) * 2012-12-07 2014-06-11 腾讯科技(深圳)有限公司 Resource optimization method and resource optimization device
CN104360794A (en) * 2014-11-21 2015-02-18 北京奇虎科技有限公司 Method and device for controlling window pop-up through full screen-identifying mode
CN104461546A (en) * 2014-12-15 2015-03-25 北京奇虎科技有限公司 Application based computing device optimizing method and device
CN104572287A (en) * 2015-01-30 2015-04-29 西安酷派软件科技有限公司 Application state maintaining method, device and terminal for use in system switching
CN105677460A (en) * 2015-12-28 2016-06-15 小米科技有限责任公司 Application processing method and apparatus
CN105701025A (en) * 2015-12-31 2016-06-22 华为技术有限公司 Memory recovery method and device
CN105843650A (en) * 2016-03-31 2016-08-10 青岛海信移动通信技术股份有限公司 Application program management method and device in intelligent terminal
CN106201685A (en) * 2016-06-30 2016-12-07 宇龙计算机通信科技(深圳)有限公司 Method, device and the terminal that a kind of application is freezed
CN106325990A (en) * 2016-08-19 2017-01-11 宇龙计算机通信科技(深圳)有限公司 Control method of application program, control device and terminal
CN107231469A (en) * 2017-05-11 2017-10-03 努比亚技术有限公司 A kind of terminal applies management method, terminal and computer-readable recording medium
CN107463436A (en) * 2017-07-31 2017-12-12 广东欧珀移动通信有限公司 Course control method, device, storage medium and electronic equipment

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021022926A1 (en) * 2019-08-06 2021-02-11 中兴通讯股份有限公司 Network-based control method for power consumption of applications, terminal and storage medium
US11943127B2 (en) 2019-08-06 2024-03-26 Zte Corporation Network-based control method for power consumption of applications, terminal and storage medium
CN111612377A (en) * 2020-06-01 2020-09-01 北京每日优鲜电子商务有限公司 Information pushing method and device, electronic equipment and computer readable medium
CN112000374A (en) * 2020-07-13 2020-11-27 深圳市智微智能软件开发有限公司 USB touch screen replacing method, device, equipment and medium applied to android system
CN112000374B (en) * 2020-07-13 2024-01-02 深圳市智微智能软件开发有限公司 USB touch screen replacement method, device, equipment and medium applied to android system
CN114615377A (en) * 2020-11-25 2022-06-10 成都鼎桥通信技术有限公司 Application program control method, device and equipment
CN114615377B (en) * 2020-11-25 2023-08-15 成都鼎桥通信技术有限公司 Application program control method, device and equipment
CN116701134A (en) * 2022-10-14 2023-09-05 荣耀终端有限公司 Data processing method and electronic equipment
CN116701134B (en) * 2022-10-14 2024-05-17 荣耀终端有限公司 Data processing method and electronic equipment

Also Published As

Publication number Publication date
CN110032321B (en) 2024-02-20

Similar Documents

Publication Publication Date Title
CN110008008A (en) Applied program processing method and device, electronic equipment, computer readable storage medium
CN109144232A (en) Process handling method and device, electronic equipment, computer readable storage medium
CN110032321A (en) Applied program processing method and device, electronic equipment, computer readable storage medium
CN110018904A (en) Information processing method, device, computer equipment and computer readable storage medium
CN104853081A (en) Breakpoint filming method, device and mobile terminal
CN110018902A (en) Internal memory processing method and device, electronic equipment, computer readable storage medium
CN110045809A (en) Information processing method, device, computer equipment and computer readable storage medium
CN110032267A (en) Information processing method, device, mobile terminal and computer readable storage medium
CN109992380A (en) Applied program processing method and device, electronic equipment, computer readable storage medium
CN109992965A (en) Process handling method and device, electronic equipment, computer readable storage medium
CN110018905A (en) Information processing method, device, computer equipment and computer readable storage medium
CN108549593A (en) Information processing method, device, mobile terminal and computer readable storage medium
CN109992397A (en) Process handling method and device, electronic equipment, computer readable storage medium
CN110032429A (en) Information processing method, device, mobile terminal and computer readable storage medium
CN109992309A (en) Applied program processing method and device, electronic equipment, computer readable storage medium
CN106708513A (en) Application management method and device and mobile terminal
CN110032397A (en) Application processing method and device, electronic equipment, computer readable storage medium
CN109992323A (en) Process handling method and device, electronic equipment, computer readable storage medium
CN108536547A (en) Information processing method, device, computer equipment and computer readable storage medium
CN110018886A (en) Application state switching method and apparatus, electronic equipment, readable storage medium storing program for executing
CN109992369A (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
CN109511139A (en) WIFI control method, device, mobile device, computer readable storage medium
CN110045811B (en) Application program processing method and device, electronic equipment and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Country or region after: China

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Country or region before: China

GR01 Patent grant
GR01 Patent grant