CN110475020A - Apparatus control method and Related product - Google Patents

Apparatus control method and Related product Download PDF

Info

Publication number
CN110475020A
CN110475020A CN201910717732.5A CN201910717732A CN110475020A CN 110475020 A CN110475020 A CN 110475020A CN 201910717732 A CN201910717732 A CN 201910717732A CN 110475020 A CN110475020 A CN 110475020A
Authority
CN
China
Prior art keywords
application program
application
display screen
resource
program
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
CN201910717732.5A
Other languages
Chinese (zh)
Other versions
CN110475020B (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 CN201910717732.5A priority Critical patent/CN110475020B/en
Publication of CN110475020A publication Critical patent/CN110475020A/en
Application granted granted Critical
Publication of CN110475020B publication Critical patent/CN110475020B/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/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1423Digital output to display device ; Cooperation and interconnection of the display device with other functional units controlling a plurality of local displays, e.g. CRT and flat panel display
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions

Abstract

The embodiment of the present application discloses a kind of apparatus control method and Related product, applied to electronic equipment, the electronic equipment includes: the first display screen and second display screen, which comprises obtains the first application program of first display screen and the second application program of the second display screen;Resource allocation ratio is determined according to first application program and second application program;It is allocated to obtain first resource and Secondary resource according to current memory resource and the resource allocation ratio;It controls first display screen and is based on first resource operation first application program, control the second display screen and be based on Secondary resource operation second application program.Implement the communication efficiency that the embodiment of the present application is conducive to ensure Double-face-screen mobile phone, promotes user experience.

Description

Apparatus control method and Related product
Technical field
This application involves technical field of electronic equipment, and in particular to a kind of apparatus control method and Related product.
Background technique
With a large amount of popularization and applications of electronic equipment (such as mobile phone, tablet computer), what electronic equipment can be supported is answered With more and more, function is stronger and stronger, and electronic equipment develops towards diversification, personalized direction, becomes in user's life Indispensable appliance and electronic.
Currently, double-sided screen is an important directions of electronic equipment development, double-sided screen can be shown by two display screens The application interface of two different applications, still, only one processor of electronic equipment is easy to make two when using double-sided screen The communication efficiency of a application is all affected, low so as to cause user experience.
Summary of the invention
The embodiment of the present application provides a kind of apparatus control method and Related product, is conducive to ensure the logical of Double-face-screen mobile phone Believe efficiency, improves user experience.
In a first aspect, the embodiment of the present application provides a kind of apparatus control method, it is applied to electronic equipment, the electronic equipment It include: the first display screen and second display screen, which comprises
Obtain the first application program of first display screen and the second application program of the second display screen;
Resource allocation ratio is determined according to first application program and second application program;
It is allocated to obtain first resource and Secondary resource according to current memory resource and the resource allocation ratio;
It controls first display screen and is based on first resource operation first application program, it is aobvious to control described second Display screen is based on the Secondary resource and runs second application program.
Second aspect, the embodiment of the present application provide a kind of plant control unit, are applied to electronic equipment, the electronic equipment It include: the first display screen and second display screen, described device includes:
Acquiring unit, for obtaining the first application program of first display screen and second answering for the second display screen Use program;
Determination unit, for determining resource allocation ratio according to first application program and second application program;
Allocation unit, for according to current memory resource and the resource allocation ratio be allocated to obtain first resource and Secondary resource;
Execution unit is based on first resource operation first application program for controlling first display screen, It controls the second display screen and is based on Secondary resource operation second application program.
The third aspect, the embodiment of the present application provide a kind of electronic equipment, including controller, memory, communication interface and One or more programs, wherein said one or multiple programs are stored in above-mentioned memory, and are configured by above-mentioned control Device processed executes, and above procedure is included the steps that for executing the instruction in the embodiment of the present application first aspect either method.
Fourth aspect, the embodiment of the present application provide a kind of computer readable storage medium, wherein above-mentioned computer-readable Storage medium storage is used for the computer program of electronic data interchange, wherein above-mentioned computer program executes computer such as Step some or all of described in the embodiment of the present application first aspect either method.
5th aspect, the embodiment of the present application provide a kind of computer program product, wherein above-mentioned computer program product Non-transient computer readable storage medium including storing computer program, above-mentioned computer program are operable to make to calculate Machine executes the step some or all of as described in the embodiment of the present application first aspect either method.The computer program product It can be a software installation packet.
As can be seen that electronic equipment obtains the first application program and the institute of first display screen in the embodiment of the present application State the second application program of second display screen;Resource allocation is determined according to first application program and second application program Ratio;It is allocated to obtain first resource and Secondary resource according to current memory resource and the resource allocation ratio;Control institute It states the first display screen and is based on the first resource and run first application program, control the second display screen and be based on described the Two resources run second application program.As it can be seen that in the embodiment of the present application electronic equipment can according to the first application program and Second application program determines resource allocation ratio, is allocated according to resource allocation ratio to system resource, is conducive to ensure double The communication efficiency of face mobile phone improves user experience.
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 structural schematic diagram of a kind of electronic equipment provided by the embodiments of the present application;
Fig. 2 is a kind of flow diagram of apparatus control method provided by the embodiments of the present application;
Fig. 3 is the flow diagram of another apparatus control method provided by the embodiments of the present application;
Fig. 4 is the flow diagram of another apparatus control method provided by the embodiments of the present application;
Fig. 5 is the structural schematic diagram of a kind of electronic equipment provided by the embodiments of the present application;
Fig. 6 is a kind of functional unit composition block diagram of plant control unit provided by the embodiments of the present application.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
Description and claims of this specification and term " first ", " second ", " third " and " in the attached drawing Four " etc. are not use to describe a particular order for distinguishing different objects.In addition, term " includes " and " having " and it Any deformation, it is intended that cover and non-exclusive include.Such as it contains the process, method of a series of steps or units, be System, product or equipment are not limited to listed step or unit, but optionally further comprising the step of not listing or list Member, or optionally further comprising other step or units intrinsic for these process, methods, product or equipment.
Referenced herein " embodiment " is it is meant that the special characteristic, result or the characteristic that describe can wrap in conjunction with the embodiments Containing at least one embodiment of the present invention.Each position in the description occur the phrase might not each mean it is identical Embodiment, nor the independent or alternative embodiment with other embodiments mutual exclusion.Those skilled in the art explicitly and Implicitly understand, embodiment described herein can be combined with other embodiments.
Electronic equipment may include the various handheld devices with wireless communication function, mobile unit, wearable device (example Such as smartwatch, Intelligent bracelet, pedometer), calculate equipment or be connected to other processing equipments of radio modem, with And various forms of user equipmenies (User Equipment, UE), mobile station (Mobile Station, MS), terminal device (terminal device) etc..For convenience of description, apparatus mentioned above is referred to as electronic equipment.
It describes in detail below to the embodiment of the present application.
Referring to Fig. 1, Fig. 1 is the structural schematic diagram of a kind of electronic equipment disclosed in the embodiment of the present application, electronic equipment 100 Including storing and processing circuit 110, and the sensor 170 connecting with the storage and processing circuit 110, in which:
Electronic equipment 100 may include control circuit, which may include storage and processing circuit 110.This is deposited Storage and processing circuit 110 can store device, such as hard drive memory, nonvolatile memory (such as flash memory or it is used for shape At other electrically programmable read only memories etc. of solid state drive), volatile memory (such as either statically or dynamically arbitrary access Memory etc.) etc., the embodiment of the present application is with no restriction.Processing circuit in storage and processing circuit 110 can be used for controlling electricity The operating of sub- equipment 100.The processing circuit can microprocessor based on one or more, microcontroller, digital signal processor, Baseband processor, power management unit, audio codec chip, specific integrated circuit, display-driver Ics etc. come It realizes.
Storage and processing circuit 110 can be used for running the software in electronic equipment 100, such as the Internet browser application journey Sequence, voice over internet protocol (Voice over Internet Protocol, VOIP) call application program, Email Application program, media play-back application, operation system function etc..These softwares can be used for executing some control operations, example Such as, based on the Image Acquisition of camera, the ambient light measurement based on ambient light sensor, based on proximity sensor close to sensing Device measurement, the information display function that the positioning indicators such as status indicator lamp based on light emitting diode are realized, based on touch The touch event of sensor detects, and in the associated function of multiple (such as layering) display information displayed on screen, with execution The associated operation of wireless communication function, operation associated with collecting and generating audio signal, is pressed with collection and treatment button Other functions etc. in the associated control operation of event data and electronic equipment 100 are pressed, the embodiment of the present application does not limit System.
Electronic equipment 100 may include input-output circuit 150.Input-output circuit 150 can be used for making electronic equipment 100 realization data are output and input, i.e. permission electronic equipment 100 allows electronic equipment from outer equipment receiving data and also 100 export data to external equipment from electronic equipment 100.Input-output circuit 150 may further include sensor 170. Sensor 170 includes infrared sensor, can also include ambient light sensor, the proximity sensor based on light and capacitor, fingerprint Identify mould group, touch sensor is (for example, be based on light touch sensor and/or capacitive touch sensors, wherein substance sensing For device for acquiring skin pricktest capacity, touch sensor can be a part of touching display screen, can also be used as a touch and passes Sensor structure independently uses), acceleration transducer, camera and other sensors etc., camera can for front camera or Person's rear camera, fingerprint recognition mould group can be integrated in below display screen, and for acquiring fingerprint image, fingerprint recognition mould group can be with For following at least one: optical finger print identifies that mould group or ultrasonic fingerprint identify mould group etc., is not limited thereto.It is above-mentioned The lower section of front display screen can be set in front camera, and above-mentioned rear camera can be set in the lower section of display screen below. Certain above-mentioned front camera or the rear camera display screen that can also get along well are integrally disposed, certainly in practical applications, above-mentioned Front camera or rear camera can also be lifting structure, and the application specific embodiment is not intended to limit above-mentioned preposition camera shooting The specific structure of head or rear camera.
Input-output circuit 150 can also include one or more display screens, when for multiple display screens, such as 2 aobvious When display screen, a display screen be can be set before electronic equipment, another display screen can be set after electronic equipment Face, such as display screen 130.Display screen 130 may include liquid crystal display, organic light-emitting diode (OLED) display screen, and electric ink is aobvious Display screen, plasma panel, one or several kinds of combination in the display screen using other display technologies.Display screen 130 can be with Including touch sensor array (that is, display screen 130 can be touching display screen).Touch sensor can be by transparent touch The capacitive touch sensors that sensor electrode (such as tin indium oxide (ITO) electrode) array is formed, or can be and use it The touch sensor that its touching technique is formed, such as sound wave touch-control, pressure sensible touch, resistive touch, optical touch etc., the application are real Apply example with no restriction.
Electronic equipment 100 can also include audio component 140.Audio component 140 can be used for providing for electronic equipment 100 Audio input and output function.Audio component 140 in electronic equipment 100 may include loudspeaker, microphone, buzzer, sound Adjust generator and other for generating and detecting the component of sound.
Telecommunication circuit 120 can be used for providing the ability with external device communication for electronic equipment 100.Telecommunication circuit 120 It may include analog- and digital- input-output interface circuit, and the radio communication circuit based on radiofrequency signal and/or optical signal. Radio communication circuit in telecommunication circuit 120 may include radio-frequency transceiver circuitry, power amplifier circuit, low noise amplification Device, switch, filter and antenna.For example, the radio communication circuit in telecommunication circuit 120 may include for passing through transmitting The circuit of near-field communication (Near Field Communication, NFC) is supported with near-field coupling electromagnetic signal is received.Example Such as, telecommunication circuit 120 may include near-field communication aerial and near-field communication transceiver.Telecommunication circuit 120 can also include honeycomb Telephone transceiver and antenna, wireless lan transceiver circuit and antenna etc..
Electronic equipment 100 can further include battery, power management circuitry and other input-output units 160.It is defeated Enter-output unit 160 may include button, control stick, click wheel, scroll wheel, touch tablet, keypad, keyboard, camera, hair Optical diode and other positioning indicators etc..
User can input a command for the operation of controlling electronic devices 100 by input-output circuit 150, and can be with Status information and other outputs from electronic equipment 100 are received using the output data of input-output circuit 150 to realize.
Based on electronic equipment described in above-mentioned Fig. 1, following function can be used to implement:
The storage and processing circuit 110 of the electronic equipment, for obtaining the first application program of first display screen With the second application program of the second display screen;Resource is determined according to first application program and second application program Allocation proportion;It is allocated to obtain first resource and Secondary resource according to current memory resource and the resource allocation ratio;Control It makes first display screen and is based on first resource operation first application program, control the second display screen and be based on institute It states Secondary resource and runs second application program.
Referring to Fig. 2, Fig. 2 is a kind of flow diagram of apparatus control method provided by the embodiments of the present application, it is applied to Electronic equipment, the electronic equipment includes: the first display screen and second display screen, as shown, this apparatus control method includes:
Step 201, the first application program for obtaining first display screen and the second display screen second apply journey Sequence;
Wherein, the first application program, the second application program can be video class application program, or game class application Program etc. is not limited thereto.
Wherein, the first application program and the second application program are different.
Step 202 determines resource allocation ratio according to first application program and second application program;
Wherein, determine that resource allocation ratio can be for according to the first application according to the first application program and the second application program Corresponding first application message of program and corresponding second application message of the second application program determine resource allocation ratio, can also be with To determine resource according to corresponding first application type of the first application program and corresponding second application type of the second application program Allocation proportion etc. is not limited thereto.
Step 203 is allocated to obtain first resource and second according to current memory resource and the resource allocation ratio Resource;
Wherein, the current memory source may include it is following one or more: network internal storage resource, Installed System Memory money Source.
Wherein, the first resource is corresponding with first application program, and the Secondary resource is corresponding with second application program.
Wherein, if the resource allocation ratio is a/b, can specifically include according to resource allocation pro rate: acquisition is worked as Preceding memory source k, the first resource are a/ (a+b), which is b/ (a+b).
Step 204, control first display screen are based on the first resource and run first application program, control institute It states second display screen and is based on Secondary resource operation second application program.
Optionally, under preset conditions, it also can control the first display screen and be based on Secondary resource operation second using journey Sequence, control second display screen are based on first resource and run the first application program.
It is described to determine resource according to first application program and second application program in a possible example Allocation proportion, comprising: obtain the second application of the first application message and second application program of first application program Information;The first allocation proportion is determined based on first application message and second application message;Determine first application Second application type of the first application type of program and second application program;According to first application type and described Second application type determines the second allocation proportion;First allocation proportion and second allocation proportion are calculated The resource allocation ratio.
Wherein, data are applied comprising at least one first application program corresponding first in first application message;This Data are applied comprising at least one second application program corresponding second in two application messages.
Wherein, first allocation proportion and second allocation proportion can correspond to same allocated weight, can also correspond to not With distribution weight, it is not limited thereto.
It is described to determine first based on first application message and second application message in a possible example Allocation proportion, comprising: obtain k first application data in first application message and the k in second application message A second applies data, wherein k is the integer greater than 0;Number is applied according to the k first application data and the k second According to generation k group application data, wherein any group in the k group application data includes one first using data and apply data Data are applied with one second;It determines the corresponding k weight of the k group application data, it is corresponding to calculate the k group application data K ratio;First allocation proportion is obtained based on the k ratio and the k weight calculation.
Wherein, this first using data include it is following one or more: the first application program of the first application program The of name, the first operating parameter of the first application program, the first processor occupancy of the first application program, the first application program One Installed System Memory occupancy etc., this second using data include it is following one or more: the second of the second application program answers Journey is applied with program name, the second operating parameter of the second application program, the second processor occupancy of the second application program, second Second system memory usage of sequence etc..
Wherein, the k first application data are classified with the k second application data based on the title of application data, For example, the first application name and entitled one group of the second application program, first processor occupancy and second processor occupancy It is one group.
Wherein, after generating k group application data, according to the data name of the k group application data, preset data name and power The mapping relations of weight determine that the corresponding k weight of k group application data, the k weight and the k group application data correspond.
Wherein, which is the numerical value that not all the same k is greater than zero, and, the k weight and be 1.
Wherein, the mapping relations according to preset application name and application level determine that first application name is corresponding The first estate the second grade corresponding with second application name, which is determined based on the first estate and the second grade The corresponding ratio of program name.
For example, if the first application data include: first processor occupancy 0.3% and the first memory usage 0.4%, the second application data include: second processor occupancy 0.8% and the second memory usage 1.4%, and processor accounts for Be 0.4 with the weight of rate, the weight of memory usage is 0.6, then according to the first application data and this second apply data meter Calculate obtain the calculation formula of the first allocation proportion can be with are as follows:
3/4*4/10+4/14*6/10=33/70.
It is described to determine second according to first application type and second application type in a possible example Allocation proportion, comprising: the mapping relations according to preset application type and network demand parameter determine first application type Corresponding first network demand parameter and the corresponding second network demand parameter of second application type, wherein the network Demand parameter includes: network bandwidth or network uplink speed or network downstream speed;Calculate the first network demand parameter with The ratio of the second network demand parameter obtains second allocation proportion.
Wherein, which can be with are as follows: game class application, video class application, audio class application, social category application etc. Deng being not limited thereto.
It is described to determine resource according to first application program and second application program in a possible example Allocation proportion, comprising: if first application program and second application program are non-video class application program;It obtains pre- If corresponding first operating frequency of the first display screen and corresponding second operating frequency of the second display screen in the time;Meter The ratio of first operating frequency and second operating frequency is calculated as the resource allocation ratio.
Wherein, first operating frequency and the second operating frequency are the operating frequency that user executes same operation, for example, should When operation is clicking operation, which can be click frequency, then first operating frequency indicates user in preset time The interior number that clicking operation is executed to the first display screen, the second operating frequency indicate that the user shows to second within a preset time Screen executes the number of clicking operation.
In a possible example, the method also includes: judge first application program and second application It whether include video class application program in program;If first application program is the video class application program, described in control First display screen runs first application program;If second application program is the video class method, described the is controlled One display screen runs second application program.
Optionally, if the first application program is video class application program, first resource is obtained, controls the first display screen with this First resource runs first application program;If second application program is video class application program, Secondary resource, control are obtained First display screen runs second application program with Secondary resource.
Optionally, if the first application program is game class application program and the second application program is non-video class application journey Sequence obtains first resource, controls the first display screen with the first resource and runs first application program;If second application program For game class application program and the using application program as non-video class application program, obtains Secondary resource, controls the first display screen Second application program is run with Secondary resource.
Optionally, if the first application program, the second application program are video class application program, this is obtained first using journey Sequence and corresponding second allocation proportion of the second application program, judge whether the ratio of second allocation proportion is greater than 1, if the ratio Greater than 1, first resource is obtained, then controls the first display screen with the first resource and runs first application program;If the ratio is not Greater than 1, Secondary resource is obtained, the first display screen is controlled with Secondary resource and runs second application program.
Optionally, if first application program is game class application program, which is video class application journey Sequence obtains first resource, controls the first display screen with the first resource and runs first application program, obtains Secondary resource, control Second display screen processed runs second application program with Secondary resource;If the first application program is video class application program, this Two application programs be game class application program, obtain Secondary resource, control the first display screen with the Secondary resource run this second Application program obtains first resource, controls second display screen with first resource and runs first application program.
In a possible example, the method also includes: obtain corresponding first configuration of first application program Parameter information and the corresponding second configuration parameter information of second application program;It is obtained from the first configuration parameter information First clarity obtains second clarity from the second configuration parameter information;Judge first clarity Whether it is greater than second clarity, if first clarity is not more than second clarity, controls first display Screen runs second application program, and controls the second display screen and run first application program.
Optionally, this method further include: first resolution is obtained from the first configuration parameter information, from second configuration Second resolution is obtained in parameter information, judges whether the first resolution is greater than the second resolution, if the first resolution Greater than the second resolution, the first display screen is controlled with the first resource and runs first application program, controls second display screen Second application program is run with Secondary resource;If the first resolution is not more than the second resolution, the first display screen is controlled Second application program is run with the Secondary resource, second display screen is controlled with first resource and runs first application program.
As can be seen that electronic equipment obtains the first application program and the institute of first display screen in the embodiment of the present application State the second application program of second display screen;Resource allocation is determined according to first application program and second application program Ratio;It is allocated to obtain first resource and Secondary resource according to current memory resource and the resource allocation ratio;Control institute It states the first display screen and is based on the first resource and run first application program, control the second display screen and be based on described the Two resources run second application program.As it can be seen that in the embodiment of the present application electronic equipment can according to the first application program and Second application program determines resource allocation ratio, is allocated according to resource allocation ratio to system resource, is conducive to ensure double The communication efficiency of face mobile phone improves user experience.
Referring to Fig. 3, Fig. 3 is the flow diagram of another apparatus control method provided by the embodiments of the present application, application In electronic equipment, the electronic equipment includes: the first display screen and second display screen, as shown, this apparatus control method packet It includes:
Step 301, the first application program for obtaining first display screen and the second display screen second apply journey Sequence;
Step 302, the first application message for obtaining first application program and second application program second are answered Use information;
Step 303 determines the first allocation proportion based on first application message and second application message;
Step 304, the first application type for determining first application program and second application program second are answered Use type;
Step 305 determines the second allocation proportion according to first application type and second application type;
Step 306 to first allocation proportion and second allocation proportion carries out that the resource allocation is calculated Ratio;
Step 307 is allocated to obtain first resource and second according to current memory resource and the resource allocation ratio Resource;
Step 308, control first display screen are based on the first resource and run first application program, control institute It states second display screen and is based on Secondary resource operation second application program.
Wherein, the specific descriptions of above-mentioned steps 301- step 308 are referred to apparatus control method described in above-mentioned Fig. 2 Corresponding steps, details are not described herein.
As can be seen that in the embodiment of the present application, electronic equipment obtains the first application program of first display screen and is somebody's turn to do Second application program of second display screen;Obtain first application program the first application message and second application program the Two application messages;The first allocation proportion is determined based on first application message and second application message;Determine first application First application type of program and the second application type of second application program;According to first application type and this second answer The second allocation proportion is determined with type;First allocation proportion and second allocation proportion are carried out that the resource allocation is calculated Ratio;It is allocated to obtain first resource and Secondary resource according to current memory resource and the resource allocation ratio;Control this One display screen is based on the first resource and runs first application program, and controlling the second display screen should based on Secondary resource operation Second application program.In this way, can determine resource allocation ratio based on the application message and application type of application program, money is improved The intelligence of source distribution is conducive to improve user experience.
Referring to Fig. 4, Fig. 4 is the flow diagram of another apparatus control method provided by the embodiments of the present application, application In electronic equipment, the electronic equipment includes: the first display screen and second display screen, as shown, this apparatus control method packet It includes:
Step 401, the first application program for obtaining first display screen and the second display screen second apply journey Sequence;
Step 402 determines resource allocation ratio according to first application program and second application program;
Step 403 is allocated to obtain first resource and second according to current memory resource and the resource allocation ratio Resource;
Step 404 obtains the corresponding first configuration parameter information of the first application program and second application program Corresponding second configuration parameter information;
Step 405 obtains first clarity from the first configuration parameter information, from second configuration parameter Second clarity is obtained in information;
Step 406 judges whether first clarity is greater than second clarity, if first clarity is little It in second clarity, controls first display screen and is based on Secondary resource operation second application program, and control It makes the second display screen and is based on first resource operation first application program.
Wherein, the specific descriptions of above-mentioned steps 401- step 406 are referred to apparatus control method described in above-mentioned Fig. 2 Corresponding steps, details are not described herein.
As can be seen that in the embodiment of the present application, electronic equipment obtains the first application program of first display screen and is somebody's turn to do Second application program of second display screen;Resource allocation ratio is determined according to first application program and second application program; It is allocated to obtain first resource and Secondary resource according to current memory resource and the resource allocation ratio;Obtain first application The corresponding first configuration parameter information of program the second configuration parameter information corresponding with second application program;From first configuration First clarity is obtained in parameter information, obtains second clarity from the second configuration parameter information;Judge this first Whether clarity is greater than second clarity, if first clarity is not more than second clarity, controls first display screen Second application program is run based on the Secondary resource, and controls the second display screen and is based on the first resource and runs this first answering Use program.In this way, the display screen of the first application program and the second application program can be controlled by clarity, double-sided screen fortune is improved The intelligence of row display, improves user experience.
Referring to Fig. 5, Fig. 5 is the structural schematic diagram of a kind of electronic equipment 500 provided by the embodiments of the present application, as schemed institute Show, the electronic equipment 500 includes: application processor 510, memory 520, communication interface 530, the first display screen 540, second Display screen 550 and one or more programs 521, wherein one or more of programs 521 are stored in above-mentioned memory In 520, and it is configured to be executed by above-mentioned application processor 510, one or more of programs 521 include following for executing The instruction of step:
Obtain the first application program of first display screen and the second application program of the second display screen;
Resource allocation ratio is determined according to first application program and second application program;
It is allocated to obtain first resource and Secondary resource according to current memory resource and the resource allocation ratio;
It controls first display screen and is based on first resource operation first application program, it is aobvious to control described second Display screen is based on the Secondary resource and runs second application program.
As can be seen that electronic equipment obtains the first application program and the institute of first display screen in the embodiment of the present application State the second application program of second display screen;Resource allocation is determined according to first application program and second application program Ratio;It is allocated to obtain first resource and Secondary resource according to current memory resource and the resource allocation ratio;Control institute It states the first display screen and is based on the first resource and run first application program, control the second display screen and be based on described the Two resources run second application program.As it can be seen that in the embodiment of the present application electronic equipment can according to the first application program and Second application program determines resource allocation ratio, is allocated according to resource allocation ratio to system resource, is conducive to ensure double The communication efficiency of face mobile phone improves user experience.
In a possible example, money is determined according to first application program and second application program described In terms of source allocation proportion, the instruction in described program is specifically used for executing following operation: obtaining the of first application program Second application message of one application message and second application program;Based on first application message and second application Information determines the first allocation proportion;Determine first application program the first application type and second application program Two application types;The second allocation proportion is determined according to first application type and second application type;To described first Allocation proportion and second allocation proportion carry out that the resource allocation ratio is calculated.
In a possible example, the is determined based on first application message and second application message described In terms of one allocation proportion, the instruction in described program is specifically used for executing following operation: obtaining the k in first application message K second in a first application data and second application message is applied data, wherein k is the integer greater than 0;Foundation The k first application data and the k second application data generate k group application data, wherein the k group application data In any group using data include one first application data and one second apply data;Determine the k group application data Corresponding k weight calculates the corresponding k ratio of the k group application data;Based on the k ratio and the k weight Calculation obtains first allocation proportion.
In a possible example, is determined according to first application type and second application type described In terms of two allocation proportions, the instruction in described program is specifically used for executing following operation: according to preset application type and network The mapping relations of demand parameter determine the corresponding first network demand parameter of first application type and described second using class The corresponding second network demand parameter of type, wherein the network demand parameter includes: network bandwidth or network uplink speed or net Network downstream rate;The ratio for calculating the first network demand parameter Yu the second network demand parameter, obtains described second Allocation proportion.
In a possible example, money is determined according to first application program and second application program described In terms of source allocation proportion, the instruction in described program is specifically used for executing following operation: if first application program and described Second application program is non-video class application program;It obtains first display screen corresponding first in preset time and operates frequency Rate and corresponding second operating frequency of the second display screen;Calculate first operating frequency and second operating frequency Ratio is as the resource allocation ratio.
In a possible example, the instruction in described program is also used to execute following operation: judging that described first answers It whether include video class application program in program and second application program;If first application program is the video Class application program controls first display screen and runs first application program;If second application program is the view Frequency class method controls first display screen and runs second application program.
In a possible example, the instruction in described program is also used to execute following operation: obtaining described first and answers With the corresponding first configuration parameter information of program and the corresponding second configuration parameter information of second application program;From described First clarity is obtained in one configuration parameter information, and it is clear that described second is obtained from the second configuration parameter information Degree;Judge whether first clarity is greater than second clarity, if first clarity is clear no more than described second Clear degree controls first display screen and runs second application program, and controls the second display screen operation described first Application program.
It is above-mentioned that mainly the scheme of the embodiment of the present application is described from the angle of method side implementation procedure.It is understood that , in order to realize the above functions, it comprises execute the corresponding hardware configuration of each function and/or software mould for electronic equipment Block.Those skilled in the art should be readily appreciated that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure And algorithm steps, the application can be realized with the combining form of hardware or hardware and computer software.Some function actually with Hardware or computer software drive the mode of hardware to execute, the specific application and design constraint item depending on technical solution Part.Professional technician can specifically realize described function to each using distinct methods, but this reality Now it is not considered that exceeding scope of the present application.
The embodiment of the present application can carry out the division of functional unit according to above method example to electronic equipment, for example, can With each functional unit of each function division of correspondence, two or more functions can also be integrated in a control unit In.Above-mentioned integrated unit both can take the form of hardware realization, can also realize in the form of software functional units.It needs It is noted that be schematical, only a kind of logical function partition to the division of unit in the embodiment of the present application, it is practical real It is current that there may be another division manner.
Fig. 6 is the functional unit composition block diagram of plant control unit 600 involved in the embodiment of the present application.The equipment control Device 600 processed is applied to electronic equipment, and the electronic equipment includes: the first display screen and second display screen, equipment control dress Setting 600 includes acquiring unit 601, determination unit 602, allocation unit 603 and execution unit 604, in which:
Acquiring unit, for obtaining the first application program of first display screen and second answering for the second display screen Use program;
Determination unit, for determining resource allocation ratio according to first application program and second application program;
Allocation unit, for according to current memory resource and the resource allocation ratio be allocated to obtain first resource and Secondary resource;
Execution unit is based on first resource operation first application program for controlling first display screen, It controls the second display screen and is based on Secondary resource operation second application program.
As can be seen that electronic equipment obtains the first application program and the institute of first display screen in the embodiment of the present application State the second application program of second display screen;Resource allocation is determined according to first application program and second application program Ratio;It is allocated to obtain first resource and Secondary resource according to current memory resource and the resource allocation ratio;Control institute It states the first display screen and is based on the first resource and run first application program, control the second display screen and be based on described the Two resources run second application program.As it can be seen that in the embodiment of the present application electronic equipment can according to the first application program and Second application program determines resource allocation ratio, is allocated according to resource allocation ratio to system resource, is conducive to ensure double The communication efficiency of face mobile phone improves user experience.
In a possible example, money is determined according to first application program and second application program described In terms of source allocation proportion, the determination unit 602 is specifically used for: obtain first application program the first application message and Second application message of second application program;First is determined based on first application message and second application message Allocation proportion;Determine the first application type of first application program and the second application type of second application program; The second allocation proportion is determined according to first application type and second application type;To first allocation proportion and institute The second allocation proportion is stated to carry out that the resource allocation ratio is calculated.
In a possible example, the is determined based on first application message and second application message described In terms of one allocation proportion, the determination unit 602 is specifically used for: obtaining k first in first application message using number Data are applied according to k second in second application message, wherein k is the integer greater than 0;It is answered according to the k first K group application data are generated with data and the k second application data, wherein any group of application in the k group application data Data include that one first application data and one second apply data;Determine the corresponding k weight of the k group application data, Calculate the corresponding k ratio of the k group application data;Described first is obtained based on the k ratio and the k weight calculation Allocation proportion.
In a possible example, is determined according to first application type and second application type described In terms of two allocation proportions, the determination unit 602 is specifically used for: according to reflecting for preset application type and network demand parameter The relationship of penetrating determines the corresponding first network demand parameter of first application type and second application type corresponding second Network demand parameter, wherein the network demand parameter includes: network bandwidth or network uplink speed or network downstream speed; The ratio for calculating the first network demand parameter Yu the second network demand parameter obtains second allocation proportion.
In a possible example, money is determined according to first application program and second application program described In terms of the allocation proportion of source, the determination unit 602 is specifically used for: if first application program and second application program It is non-video class application program;Obtain corresponding first operating frequency of first display screen and described second in preset time Corresponding second operating frequency of display screen;Described in the ratio conduct for calculating first operating frequency and second operating frequency Resource allocation ratio.
In a possible example, the execution unit 604 is also used to: judging first application program and described It whether include video class application program in second application program;If first application program is the video class application program, It controls first display screen and runs first application program;If second application program is the video class method, control It makes first display screen and runs second application program.
In a possible example, the execution unit 604 is also used to: it is corresponding to obtain first application program First configuration parameter information and the corresponding second configuration parameter information of second application program;Believe from first configuration parameter First clarity is obtained in breath, and second clarity is obtained from the second configuration parameter information;Judge described Whether one clarity is greater than second clarity, if first clarity is not more than second clarity, described in control First display screen runs second application program, and controls the second display screen and run first application program.
The embodiment of the present application also provides a kind of computer storage medium, wherein computer storage medium storage is for electricity The computer program of subdata exchange, the computer program make computer execute any as recorded in above method embodiment Some or all of method step, above-mentioned computer include electronic equipment.
The embodiment of the present application also provides a kind of computer program product, and above-mentioned computer program product includes storing calculating The non-transient computer readable storage medium of machine program, above-mentioned computer program are operable to that computer is made to execute such as above-mentioned side Some or all of either record method step in method embodiment.The computer program product can be a software installation Packet, above-mentioned computer includes electronic equipment.
It should be noted that for the various method embodiments described above, for simple description, therefore, it is stated as a series of Combination of actions, but those skilled in the art should understand that, the application is not limited by the described action sequence because According to the application, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art should also know It knows, the embodiments described in the specification are all preferred embodiments, related actions and modules not necessarily the application It is necessary.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed device, it can be by another way It realizes.For example, the apparatus embodiments described above are merely exemplary, such as the division of said units, it is only a kind of Logical function partition, there may be another division manner in actual implementation, such as multiple units or components can combine or can To be integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual Coupling, direct-coupling or communication connection can be through some interfaces, the indirect coupling or communication connection of device or unit, It can be electrical or other forms.
Above-mentioned unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If above-mentioned integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer-readable access to memory.Based on this understanding, the technical solution of the application substantially or Person says that all or part of the part that contributes to existing technology or the technical solution can body in the form of software products Reveal and, which is stored in a memory, including some instructions are used so that a computer equipment (can be personal computer, server or network equipment etc.) executes all or part of each embodiment above method of the application Step.And memory above-mentioned includes: USB flash disk, read-only memory (ROM, Read-Only Memory), random access memory The various media that can store program code such as (RAM, Random Access Memory), mobile hard disk, magnetic or disk.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can It is completed with instructing relevant hardware by program, which can store in a computer-readable memory, memory May include: flash disk, read-only memory (English: Read-Only Memory, referred to as: ROM), random access device (English: Random Access Memory, referred to as: RAM), disk or CD etc..
The embodiment of the present application is described in detail above, specific case used herein to the principle of the application and Embodiment is expounded, the description of the example is only used to help understand the method for the present application and its core ideas; At the same time, for those skilled in the art can in specific embodiments and applications according to the thought of the application There is change place, in conclusion the contents of this specification should not be construed as limiting the present application.

Claims (10)

1. a kind of apparatus control method, which is characterized in that be applied to electronic equipment, the electronic equipment includes: the first display screen And second display screen, which comprises
Obtain the first application program of first display screen and the second application program of the second display screen;
Resource allocation ratio is determined according to first application program and second application program;
It is allocated to obtain first resource and Secondary resource according to current memory resource and the resource allocation ratio;
It controls first display screen and is based on first resource operation first application program, control the second display screen Second application program is run based on the Secondary resource.
2. the method according to claim 1, wherein described answer according to first application program and described second Resource allocation ratio is determined with program, comprising:
Obtain the first application message of first application program and the second application message of second application program;
The first allocation proportion is determined based on first application message and second application message;
Determine the first application type of first application program and the second application type of second application program;
The second allocation proportion is determined according to first application type and second application type;
First allocation proportion and second allocation proportion are carried out that the resource allocation ratio is calculated.
3. according to the method described in claim 2, it is characterized in that, described answered based on first application message with described second The first allocation proportion is determined with information, comprising:
Obtain k first application data in first application message and the k in second application message second application Data, wherein k is the integer greater than 0;
K group application data are generated according to the k first application data and the k second application data, wherein the k group Include one first using data using any group in data and applies data using data and one second;
It determines the corresponding k weight of the k group application data, calculates the corresponding k ratio of the k group application data;
First allocation proportion is obtained based on the k ratio and the k weight calculation.
4. according to the method described in claim 2, it is characterized in that, described answer according to first application type and described second The second allocation proportion is determined with type, comprising:
First application type corresponding first is determined with the mapping relations of network demand parameter according to preset application type Network demand parameter and the corresponding second network demand parameter of second application type, wherein the network demand parameter packet It includes: network bandwidth or network uplink speed or network downstream speed;
The ratio for calculating the first network demand parameter Yu the second network demand parameter obtains second distribution ratio Example.
5. the method according to claim 1, wherein described answer according to first application program and described second Resource allocation ratio is determined with program, comprising:
If first application program and second application program are non-video class application program;
Obtain corresponding first operating frequency of the first display screen and the second display screen corresponding second in preset time Operating frequency;
The ratio of first operating frequency and second operating frequency is calculated as the resource allocation ratio.
6. method according to claim 1-5, which is characterized in that the method also includes:
Whether judge in first application program and second application program comprising video class application program;
If first application program is the video class application program, the first display screen operation first application is controlled Program;
If second application program is the video class method, controls the first display screen operation described second and apply journey Sequence.
7. method according to claim 1-6, which is characterized in that the method also includes:
It obtains the corresponding first configuration parameter information of first application program and second application program corresponding second is matched Set parameter information;
First clarity is obtained from the first configuration parameter information, obtains institute from the second configuration parameter information State the second clarity;
Judge whether first clarity is greater than second clarity, if first clarity is clear no more than described second Clear degree controls first display screen and runs second application program, and controls the second display screen operation described first Application program.
8. a kind of plant control unit, which is characterized in that be applied to electronic equipment, the electronic equipment includes: the first display screen And second display screen, described device include:
Acquiring unit, for obtain first display screen the first application program and the second display screen second using journey Sequence;
Determination unit, for determining resource allocation ratio according to first application program and second application program;
Allocation unit, for being allocated to obtain first resource and second according to current memory resource and the resource allocation ratio Resource;
Execution unit is based on first resource operation first application program, control for controlling first display screen The second display screen is based on the Secondary resource and runs second application program.
9. a kind of electronic equipment, which is characterized in that including processor, memory, communication interface, and one or more programs, One or more of programs are stored in the memory, and are configured to be executed by the processor, described program packet Include the instruction for executing the step in the method according to claim 1 to 7.
10. a kind of computer readable storage medium, which is characterized in that storage is used for the computer program of electronic data interchange, In, the computer program makes computer execute the method according to claim 1 to 7.
CN201910717732.5A 2019-08-05 2019-08-05 Equipment control method and related product Active CN110475020B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910717732.5A CN110475020B (en) 2019-08-05 2019-08-05 Equipment control method and related product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910717732.5A CN110475020B (en) 2019-08-05 2019-08-05 Equipment control method and related product

Publications (2)

Publication Number Publication Date
CN110475020A true CN110475020A (en) 2019-11-19
CN110475020B CN110475020B (en) 2021-09-24

Family

ID=68510007

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910717732.5A Active CN110475020B (en) 2019-08-05 2019-08-05 Equipment control method and related product

Country Status (1)

Country Link
CN (1) CN110475020B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111708633A (en) * 2020-05-28 2020-09-25 北京赛博云睿智能科技有限公司 Dynamic resource adjustment method and system
CN112911709A (en) * 2019-12-03 2021-06-04 深圳市万普拉斯科技有限公司 Uplink resource allocation method, device, terminal equipment and readable storage medium
CN113360440A (en) * 2020-03-06 2021-09-07 Oppo广东移动通信有限公司 Processor communication control method and related product
WO2024041328A1 (en) * 2022-08-22 2024-02-29 华为技术有限公司 Resource allocation method, apparatus, and carrier

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130339079A1 (en) * 2012-06-15 2013-12-19 International Business Machines Corporation Configurable resource policies
US20150149638A1 (en) * 2013-11-22 2015-05-28 Microsoft Corporation Resource Allocation
CN109144580A (en) * 2018-07-17 2019-01-04 努比亚技术有限公司 A kind of application progress control method, double screen terminal and computer readable storage medium
CN109976691A (en) * 2019-03-29 2019-07-05 联想(北京)有限公司 A kind of information processing method, device, equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130339079A1 (en) * 2012-06-15 2013-12-19 International Business Machines Corporation Configurable resource policies
US20150149638A1 (en) * 2013-11-22 2015-05-28 Microsoft Corporation Resource Allocation
CN109144580A (en) * 2018-07-17 2019-01-04 努比亚技术有限公司 A kind of application progress control method, double screen terminal and computer readable storage medium
CN109976691A (en) * 2019-03-29 2019-07-05 联想(北京)有限公司 A kind of information processing method, device, equipment and storage medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112911709A (en) * 2019-12-03 2021-06-04 深圳市万普拉斯科技有限公司 Uplink resource allocation method, device, terminal equipment and readable storage medium
CN112911709B (en) * 2019-12-03 2023-04-07 深圳市万普拉斯科技有限公司 Uplink resource allocation method, device, terminal equipment and readable storage medium
CN113360440A (en) * 2020-03-06 2021-09-07 Oppo广东移动通信有限公司 Processor communication control method and related product
CN111708633A (en) * 2020-05-28 2020-09-25 北京赛博云睿智能科技有限公司 Dynamic resource adjustment method and system
WO2024041328A1 (en) * 2022-08-22 2024-02-29 华为技术有限公司 Resource allocation method, apparatus, and carrier

Also Published As

Publication number Publication date
CN110475020B (en) 2021-09-24

Similar Documents

Publication Publication Date Title
CN110475020A (en) Apparatus control method and Related product
CN109583356A (en) Fingerprint identification method and Related product
CN108958696A (en) Principal and subordinate's earphone method for handover control and Related product
CN109241859A (en) Fingerprint identification method and Related product
CN109614865A (en) Fingerprint identification method and Related product
CN109274833A (en) The method of adjustment and Related product of electromagnetic interference
CN108683444A (en) Data transmission method and related product
CN109639367A (en) The method of adjustment and Related product of electromagnetic interference
CN109543570A (en) Fingerprint identification method and Related product
CN108769377A (en) Method of controlling antenna and Related product
CN108495049A (en) Filming control method and Related product
CN110363535A (en) Pay abnormity prompt method and Related product
CN109144454A (en) double-sided screen display control method and related product
CN109376700A (en) Fingerprint identification method and Related product
CN110427741A (en) Fingerprint identification method and Related product
CN109348528A (en) Display control method and Related product
CN110210395A (en) Vein image acquisition method and Related product
CN110191303A (en) Video call method and Related product based on screen sounding
CN109743129A (en) Electromagnetic interference control method and Related product
CN108769401A (en) Signal detecting method and related product
CN109815670A (en) Document handling method and Related product
CN109271312A (en) Game test method and Related product
CN108989546A (en) The proximity test method and Related product of electronic device
CN109032344A (en) Location processing method and Related product
CN108965583A (en) Proximity test method and relevant device

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
GR01 Patent grant
GR01 Patent grant