CN110475020B - Equipment control method and related product - Google Patents

Equipment control method and related product Download PDF

Info

Publication number
CN110475020B
CN110475020B CN201910717732.5A CN201910717732A CN110475020B CN 110475020 B CN110475020 B CN 110475020B CN 201910717732 A CN201910717732 A CN 201910717732A CN 110475020 B CN110475020 B CN 110475020B
Authority
CN
China
Prior art keywords
application
application program
resource
display screen
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.)
Active
Application number
CN201910717732.5A
Other languages
Chinese (zh)
Other versions
CN110475020A (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

Images

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 application discloses an equipment control method and a related product, which are applied to electronic equipment, wherein the electronic equipment comprises: a first display screen and a second display screen, the method comprising: acquiring a first application program of the first display screen and a second application program of the second display screen; determining a resource allocation proportion according to the first application program and the second application program; allocating according to the current memory resource and the resource allocation proportion to obtain a first resource and a second resource; and controlling the first display screen to run the first application program based on the first resource, and controlling the second display screen to run the second application program based on the second resource. By the embodiment of the application, the communication efficiency of the double-sided screen mobile phone is guaranteed, and the user experience is improved.

Description

Equipment control method and related product
Technical Field
The present application relates to the field of electronic device technologies, and in particular, to a device control method and a related product.
Background
With the widespread use of electronic devices (such as mobile phones, tablet computers, and the like), the electronic devices have more and more applications and more powerful functions, and the electronic devices are developed towards diversification and personalization, and become indispensable electronic products in the life of users.
At present, a double-sided screen is an important direction for the development of electronic equipment, and the double-sided screen can display application interfaces of two different applications through two display screens, but the electronic equipment only has one processor, so that the communication efficiency of the two applications is easily influenced when the double-sided screen is used, and the user experience is low.
Disclosure of Invention
The embodiment of the application provides an equipment control method and a related product, which are beneficial to guaranteeing the communication efficiency of a double-sided screen mobile phone and improving the user experience.
In a first aspect, an embodiment of the present application provides an apparatus control method, which is applied to an electronic apparatus, where the electronic apparatus includes: a first display screen and a second display screen, the method comprising:
acquiring a first application program of the first display screen and a second application program of the second display screen;
determining a resource allocation proportion according to the first application program and the second application program;
allocating according to the current memory resource and the resource allocation proportion to obtain a first resource and a second resource;
and controlling the first display screen to run the first application program based on the first resource, and controlling the second display screen to run the second application program based on the second resource.
In a second aspect, an embodiment of the present application provides an apparatus control device, which is applied to an electronic apparatus, where the electronic apparatus includes: a first display screen and a second display screen, the apparatus comprising:
the acquisition unit is used for acquiring a first application program of the first display screen and a second application program of the second display screen;
a determining unit, configured to determine a resource allocation ratio according to the first application program and the second application program;
the allocation unit is used for allocating according to the current memory resource and the resource allocation proportion to obtain a first resource and a second resource;
and the execution unit is used for controlling the first display screen to run the first application program based on the first resource and controlling the second display screen to run the second application program based on the second resource.
In a third aspect, an embodiment of the present application provides an electronic device, including a controller, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the controller, and the program includes instructions for executing steps in any method of the first aspect of the embodiment of the present application.
In a fourth aspect, the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, where the computer program makes a computer perform part or all of the steps described in any one of the methods of the first aspect of the present application.
In a fifth aspect, the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to perform some or all of the steps as described in any one of the methods of the first aspect of the embodiments of the present application. The computer program product may be a software installation package.
It can be seen that, in the embodiment of the present application, an electronic device obtains a first application program of a first display screen and a second application program of a second display screen; determining a resource allocation proportion according to the first application program and the second application program; allocating according to the current memory resource and the resource allocation proportion to obtain a first resource and a second resource; and controlling the first display screen to run the first application program based on the first resource, and controlling the second display screen to run the second application program based on the second resource. Therefore, in the embodiment of the application, the electronic device can determine the resource allocation proportion according to the first application program and the second application program, and allocate the system resources according to the resource allocation proportion, so that the communication efficiency of the double-sided screen mobile phone is favorably ensured, and the user experience degree is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of an apparatus control method according to an embodiment of the present application;
fig. 3 is a schematic flowchart of another apparatus control method provided in an embodiment of the present application;
fig. 4 is a schematic flowchart of another apparatus control method provided in an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;
fig. 6 is a block diagram of functional units of an apparatus control device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," "third," and "fourth," etc. in the description and claims of the invention and in the accompanying drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, result, or characteristic described in connection with the embodiment can be included in at least one embodiment of the invention. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
Electronic devices may include various handheld devices, vehicle-mounted devices, wearable devices (e.g., smartwatches, smartbands, pedometers, etc.), computing devices or other processing devices connected to wireless modems, as well as various forms of User Equipment (UE), Mobile Stations (MS), terminal Equipment (terminal device), and so forth, having wireless communication capabilities. For convenience of description, the above-mentioned devices are collectively referred to as electronic devices.
The following describes embodiments of the present application in detail.
Referring to fig. 1, fig. 1 is a schematic structural diagram of an electronic device disclosed in an embodiment of the present application, where the electronic device 100 includes a storage and processing circuit 110, and a sensor 170 connected to the storage and processing circuit 110, where:
the electronic device 100 may include control circuitry, which may include storage and processing circuitry 110. The storage and processing circuitry 110 may be a memory, such as a hard drive memory, a non-volatile memory (e.g., flash memory or other electronically programmable read-only memory used to form a solid state drive, etc.), a volatile memory (e.g., static or dynamic random access memory, etc.), etc., and the embodiments of the present application are not limited thereto. Processing circuitry in storage and processing circuitry 110 may be used to control the operation of electronic device 100. The processing circuitry may be implemented based on one or more microprocessors, microcontrollers, digital signal processors, baseband processors, power management units, audio codec chips, application specific integrated circuits, display driver integrated circuits, and the like.
The storage and processing circuitry 110 may be used to run software in the electronic device 100, such as an Internet browsing application, a Voice Over Internet Protocol (VOIP) telephone call application, an email application, a media playing application, operating system functions, and so forth. Such software may be used to perform control operations such as, for example, camera-based image capture, ambient light measurement based on an ambient light sensor, proximity sensor measurement based on a proximity sensor, information display functionality based on status indicators such as status indicator lights of light emitting diodes, touch event detection based on a touch sensor, functionality associated with displaying information on multiple (e.g., layered) display screens, operations associated with performing wireless communication functionality, operations associated with collecting and generating audio signals, control operations associated with collecting and processing button press event data, and other functions in the electronic device 100, to name a few.
The electronic device 100 may include input-output circuitry 150. The input-output circuit 150 may be used to enable the electronic device 100 to input and output data, i.e., to allow the electronic device 100 to receive data from an external device and also to allow the electronic device 100 to output data from the electronic device 100 to the external device. The input-output circuit 150 may further include a sensor 170. Sensor 170 includes an infrared sensor, and may further include an ambient light sensor, a proximity sensor based on light and capacitance, a fingerprint identification module, a touch sensor (e.g., based on a light touch sensor and/or a capacitive touch sensor, wherein the substance sensor is used for collecting skin capacitance, the touch sensor may be a part of a touch display screen, and may also be used independently as a touch sensor structure), an acceleration sensor, a camera, and other sensors, etc., the camera may be a front camera or a rear camera, the fingerprint identification module may be integrated below the display screen for collecting fingerprint images, and the fingerprint identification module may be at least one of: optical fingerprint identification module, or ultrasonic fingerprint identification module etc. do not do the restriction here. The front camera can be arranged below the front display screen, and the rear camera can be arranged below the rear display screen. Of course, the front camera or the rear camera may not be integrated with the display screen, and certainly in practical applications, the front camera or the rear camera may also be a lifting structure.
Input-output circuit 150 may also include one or more display screens, and when multiple display screens are provided, such as 2 display screens, one display screen may be provided on the front of the electronic device and another display screen may be provided on the back of the electronic device, such as display screen 130. The display 130 may include one or a combination of liquid crystal display, organic light emitting diode display, electronic ink display, plasma display, display using other display technologies. The display screen 130 may include an array of touch sensors (i.e., the display screen 130 may be a touch display screen). The touch sensor may be a capacitive touch sensor formed by a transparent touch sensor electrode (e.g., an Indium Tin Oxide (ITO) electrode) array, or may be a touch sensor formed using other touch technologies, such as acoustic wave touch, pressure sensitive touch, resistive touch, optical touch, and the like, and the embodiments of the present application are not limited thereto.
The electronic device 100 may also include an audio component 140. The audio component 140 may be used to provide audio input and output functionality for the electronic device 100. The audio components 140 in the electronic device 100 may include a speaker, a microphone, a buzzer, a tone generator, and other components for generating and detecting sound.
The communication circuit 120 may be used to provide the electronic device 100 with the capability to communicate with external devices. The communication circuit 120 may include analog and digital input-output interface circuits, and wireless communication circuits based on radio frequency signals and/or optical signals. The wireless communication circuitry in communication circuitry 120 may include radio-frequency transceiver circuitry, power amplifier circuitry, low noise amplifiers, switches, filters, and antennas. For example, the wireless Communication circuitry in Communication circuitry 120 may include circuitry to support Near Field Communication (NFC) by transmitting and receiving Near Field coupled electromagnetic signals. For example, the communication circuit 120 may include a near field communication antenna and a near field communication transceiver. The communications circuitry 120 may also include a cellular telephone transceiver and antenna, a wireless local area network transceiver circuitry and antenna, and so forth.
The electronic device 100 may further include a battery, power management circuitry, and other input-output units 160. The input-output unit 160 may include buttons, joysticks, click wheels, scroll wheels, touch pads, keypads, keyboards, cameras, light emitting diodes and other status indicators, and the like.
A user may input commands through input-output circuitry 150 to control the operation of electronic device 100, and may use output data of input-output circuitry 150 to enable receipt of status information and other outputs from electronic device 100.
The electronic device described above with reference to fig. 1 may be configured to implement the following functions:
the storage and processing circuit 110 of the electronic device is configured to obtain a first application program of the first display screen and a second application program of the second display screen; determining a resource allocation proportion according to the first application program and the second application program; allocating according to the current memory resource and the resource allocation proportion to obtain a first resource and a second resource; and controlling the first display screen to run the first application program based on the first resource, and controlling the second display screen to run the second application program based on the second resource.
Referring to fig. 2, fig. 2 is a schematic flowchart of a device control method provided in an embodiment of the present application, and the method is applied to an electronic device, where the electronic device includes: as shown in the figure, the device control method includes:
step 201, acquiring a first application program of the first display screen and a second application program of the second display screen;
the first application program and the second application program may be a video application program, a game application program, or the like, and are not limited herein.
Wherein the first application program and the second application program are different from each other.
Step 202, determining a resource allocation proportion according to the first application program and the second application program;
the determining of the resource allocation ratio according to the first application program and the second application program may be determining the resource allocation ratio according to first application information corresponding to the first application program and second application information corresponding to the second application program, or determining the resource allocation ratio according to a first application type corresponding to the first application program and a second application type corresponding to the second application program, and the like, which is not limited herein.
Step 203, allocating according to the current memory resource and the resource allocation proportion to obtain a first resource and a second resource;
wherein the current memory resource may include one or more of the following: network memory resources, system memory resources.
The first resource corresponds to the first application program, and the second resource corresponds to the second application program.
Wherein, if the resource allocation proportion is a/b, the allocating according to the resource allocation proportion may specifically include: and acquiring a current memory resource k, wherein the first resource is a/(a + b), and the second resource is b/(a + b).
And 204, controlling the first display screen to run the first application program based on the first resource, and controlling the second display screen to run the second application program based on the second resource.
Optionally, under a preset condition, the first display screen may also be controlled to run the second application program based on the second resource, and the second display screen may be controlled to run the first application program based on the first resource.
In one possible example, the determining a resource allocation ratio according to the first application and the second application includes: acquiring first application information of the first application program and second application information of the second application program; determining a first allocation ratio based on the first application information and the second application information; determining a first application type of the first application and a second application type of the second application; determining a second allocation proportion according to the first application type and the second application type; and calculating the first distribution proportion and the second distribution proportion to obtain the resource distribution proportion.
The first application information comprises first application data corresponding to at least one first application program; the second application information includes second application data corresponding to at least one second application program.
The first allocation ratio and the second allocation ratio may correspond to the same allocation weight or different allocation weights, which is not limited herein.
In one possible example, the determining a first allocation ratio based on the first application information and the second application information includes: acquiring k first application data in the first application information and k second application data in the second application information, wherein k is an integer larger than 0; generating k groups of application data according to the k first application data and the k second application data, wherein any one group of application data in the k groups of application data comprises a first application data and a second application data; determining k weights corresponding to the k groups of application data, and calculating k ratios corresponding to the k groups of application data; and calculating the first distribution proportion based on the k ratios and the k weights.
Wherein the first application data comprises one or more of: the first application data includes one or more of the following data: a second application program name of the second application program, a second operating parameter of the second application program, a second processor occupancy rate of the second application program, a second system memory occupancy rate of the second application program, and the like.
The k first application data and the k second application data are classified based on the names of the application data, for example, the first application program name and the second application program name are in a group, and the first processor occupancy rate and the second processor occupancy rate are in a group.
After k groups of application data are generated, k weights corresponding to the k groups of application data are determined according to the data names of the k groups of application data, a preset mapping relation between the data names and the weights, and the k weights correspond to the k groups of application data one to one.
Wherein the k weights are not all identical k values greater than zero, and the sum of the k weights is 1.
And determining a first grade corresponding to the first application program name and a second grade corresponding to the second application program name according to a preset mapping relation between the application program names and the application grades, and determining a proportion corresponding to the application program names based on the first grade and the second grade.
For example, if the first application data includes: the first processor occupancy rate is 0.3% and the first memory occupancy rate is 0.4%, and the second application data comprises: the second processor occupancy rate is 0.8% and the second memory occupancy rate is 1.4%, and the weight of the processor occupancy rate is 0.4, and the weight of the memory occupancy rate is 0.6, then the calculation formula for obtaining the first allocation ratio by calculation according to the first application data and the second application data may be:
3/4*4/10+4/14*6/10=33/70。
in one possible example, the determining a second allocation proportion according to the first application type and the second application type includes: determining a first network demand parameter corresponding to the first application type and a second network demand parameter corresponding to the second application type according to a preset mapping relation between the application type and the network demand parameter, wherein the network demand parameter comprises: network bandwidth or network uplink speed or network downlink speed; and calculating the ratio of the first network demand parameter to the second network demand parameter to obtain the second allocation proportion.
Wherein, the application type may be: game-like applications, video-like applications, audio-like applications, social-like applications, and the like, without limitation.
In one possible example, the determining a resource allocation ratio according to the first application and the second application includes: if the first application program and the second application program are both non-video application programs; acquiring a first operating frequency corresponding to the first display screen and a second operating frequency corresponding to the second display screen within a preset time; calculating a ratio of the first operating frequency to the second operating frequency as the resource allocation ratio.
For example, when the operation is a click operation, the operation frequency may be a click frequency, the first operation frequency represents the number of times that the user performs the click operation on the first display screen within a preset time, and the second operation frequency represents the number of times that the user performs the click operation on the second display screen within the preset time.
In one possible example, the method further comprises: judging whether the first application program and the second application program contain video application programs or not; if the first application program is the video application program, controlling the first display screen to run the first application program; and if the second application program is the video program, controlling the first display screen to operate the second application program.
Optionally, if the first application program is a video application program, acquiring a first resource, and controlling the first display screen to operate the first application program with the first resource; and if the second application program is a video application program, acquiring a second resource, and controlling the first display screen to operate the second application program by using the second resource.
Optionally, if the first application program is a game application program and the second application program is a non-video application program, acquiring a first resource, and controlling the first display screen to operate the first application program with the first resource; and if the second application program is a game application program and the first application program is a non-video application program, acquiring a second resource, and controlling the first display screen to operate the second application program by using the second resource.
Optionally, if the first application program and the second application program are both video-type application programs, obtaining a second allocation proportion corresponding to the first application program and the second application program, determining whether a ratio of the second allocation proportion is greater than 1, and if the ratio is greater than 1, obtaining a first resource, and controlling the first display screen to operate the first application program with the first resource; and if the ratio is not greater than 1, acquiring a second resource, and controlling the first display screen to run the second application program by using the second resource.
Optionally, if the first application program is a game application program and the second application program is a video application program, acquiring a first resource, controlling the first display screen to operate the first application program with the first resource, acquiring a second resource, and controlling the second display screen to operate the second application program with the second resource; and if the first application program is a video application program and the second application program is a game application program, acquiring a second resource, controlling the first display screen to operate the second application program by using the second resource, acquiring a first resource, and controlling the second display screen to operate the first application program by using the first resource.
In one possible example, the method further comprises: acquiring first configuration parameter information corresponding to the first application program and second configuration parameter information corresponding to the second application program; acquiring the first definition from the first configuration parameter information, and acquiring the second definition from the second configuration parameter information; and judging whether the first definition is greater than the second definition, if the first definition is not greater than the second definition, controlling the first display screen to operate the second application program, and controlling the second display screen to operate the first application program.
Optionally, the method further includes: acquiring a first resolution from the first configuration parameter information, acquiring a second resolution from the second configuration parameter information, judging whether the first resolution is greater than the second resolution, and if the first resolution is greater than the second resolution, controlling the first display screen to run the first application program by the first resource and controlling the second display screen to run the second application program by the second resource; and if the first resolution is not greater than the second resolution, controlling the first display screen to run the second application program by the second resource, and controlling the second display screen to run the first application program by the first resource.
It can be seen that, in the embodiment of the present application, an electronic device obtains a first application program of a first display screen and a second application program of a second display screen; determining a resource allocation proportion according to the first application program and the second application program; allocating according to the current memory resource and the resource allocation proportion to obtain a first resource and a second resource; and controlling the first display screen to run the first application program based on the first resource, and controlling the second display screen to run the second application program based on the second resource. Therefore, in the embodiment of the application, the electronic device can determine the resource allocation proportion according to the first application program and the second application program, and allocate the system resources according to the resource allocation proportion, so that the communication efficiency of the double-sided screen mobile phone is favorably ensured, and the user experience degree is improved.
Referring to fig. 3, fig. 3 is a schematic flowchart of another device control method provided in an embodiment of the present application, and the method is applied to an electronic device, where the electronic device includes: as shown in the figure, the device control method includes:
301, acquiring a first application program of the first display screen and a second application program of the second display screen;
step 302, acquiring first application information of the first application program and second application information of the second application program;
step 303, determining a first allocation ratio based on the first application information and the second application information;
step 304, determining a first application type of the first application program and a second application type of the second application program;
step 305, determining a second allocation proportion according to the first application type and the second application type;
step 306, calculating the first allocation proportion and the second allocation proportion to obtain the resource allocation proportion;
307, distributing according to the current memory resource and the resource distribution proportion to obtain a first resource and a second resource;
step 308, controlling the first display screen to run the first application program based on the first resource, and controlling the second display screen to run the second application program based on the second resource.
For the detailed description of steps 301 to 308, reference may be made to corresponding steps of the device control method described in fig. 2, and details are not repeated here.
It can be seen that, in the embodiment of the present application, the electronic device obtains a first application program of the first display screen and a second application program of the second display screen; acquiring first application information of the first application program and second application information of the second application program; determining a first allocation ratio based on the first application information and the second application information; determining a first application type of the first application program and a second application type of the second application program; determining a second allocation proportion according to the first application type and the second application type; calculating the first allocation proportion and the second allocation proportion to obtain the resource allocation proportion; allocating according to the current memory resource and the resource allocation proportion to obtain a first resource and a second resource; and controlling the first display screen to run the first application program based on the first resource, and controlling the second display screen to run the second application program based on the second resource. Therefore, the resource allocation proportion can be determined based on the application information and the application type of the application program, the intelligence of resource allocation is improved, and the improvement of user experience is facilitated.
Referring to fig. 4, fig. 4 is a schematic flowchart of another device control method provided in the embodiment of the present application, and the method is applied to an electronic device, where the electronic device includes: as shown in the figure, the device control method includes:
step 401, acquiring a first application program of the first display screen and a second application program of the second display screen;
step 402, determining a resource allocation proportion according to the first application program and the second application program;
step 403, allocating according to the current memory resource and the resource allocation proportion to obtain a first resource and a second resource;
step 404, acquiring first configuration parameter information corresponding to the first application program and second configuration parameter information corresponding to the second application program;
step 405, obtaining the first definition from the first configuration parameter information, and obtaining the second definition from the second configuration parameter information;
step 406, determining whether the first definition is greater than the second definition, and if the first definition is not greater than the second definition, controlling the first display screen to run the second application program based on the second resource, and controlling the second display screen to run the first application program based on the first resource.
For the detailed description of steps 401 to 406, reference may be made to corresponding steps of the device control method described in fig. 2, and details are not repeated here.
It can be seen that, in the embodiment of the present application, the electronic device obtains a first application program of the first display screen and a second application program of the second display screen; determining a resource allocation proportion according to the first application program and the second application program; allocating according to the current memory resource and the resource allocation proportion to obtain a first resource and a second resource; acquiring first configuration parameter information corresponding to the first application program and second configuration parameter information corresponding to the second application program; acquiring the first definition from the first configuration parameter information and the second definition from the second configuration parameter information; and judging whether the first definition is greater than the second definition, if the first definition is not greater than the second definition, controlling the first display screen to run the second application program based on the second resource, and controlling the second display screen to run the first application program based on the first resource. Therefore, the display screens of the first application program and the second application program can be controlled through the definition, the intelligence of running and displaying of the double-sided screen is improved, and the user experience degree is improved.
Referring to fig. 5, fig. 5 is a schematic structural diagram of an electronic device 500 according to an embodiment of the present disclosure, and as shown in the drawing, the electronic device 500 includes: an application processor 510, a memory 520, a communication interface 530, a first display 540, a second display 550, and one or more programs 521, wherein the one or more programs 521 are stored in the memory 520 and configured to be executed by the application processor 510, the one or more programs 521 including instructions for:
acquiring a first application program of the first display screen and a second application program of the second display screen;
determining a resource allocation proportion according to the first application program and the second application program;
allocating according to the current memory resource and the resource allocation proportion to obtain a first resource and a second resource;
and controlling the first display screen to run the first application program based on the first resource, and controlling the second display screen to run the second application program based on the second resource.
It can be seen that, in the embodiment of the present application, an electronic device obtains a first application program of a first display screen and a second application program of a second display screen; determining a resource allocation proportion according to the first application program and the second application program; allocating according to the current memory resource and the resource allocation proportion to obtain a first resource and a second resource; and controlling the first display screen to run the first application program based on the first resource, and controlling the second display screen to run the second application program based on the second resource. Therefore, in the embodiment of the application, the electronic device can determine the resource allocation proportion according to the first application program and the second application program, and allocate the system resources according to the resource allocation proportion, so that the communication efficiency of the double-sided screen mobile phone is favorably ensured, and the user experience degree is improved.
In one possible example, in the aspect of determining the resource allocation ratio according to the first application program and the second application program, the instructions in the programs are specifically configured to: acquiring first application information of the first application program and second application information of the second application program; determining a first allocation ratio based on the first application information and the second application information; determining a first application type of the first application and a second application type of the second application; determining a second allocation proportion according to the first application type and the second application type; and calculating the first distribution proportion and the second distribution proportion to obtain the resource distribution proportion.
In one possible example, in the determining a first allocation ratio based on the first application information and the second application information, the instructions in the program are specifically configured to: acquiring k first application data in the first application information and k second application data in the second application information, wherein k is an integer larger than 0; generating k groups of application data according to the k first application data and the k second application data, wherein any one group of application data in the k groups of application data comprises a first application data and a second application data; determining k weights corresponding to the k groups of application data, and calculating k ratios corresponding to the k groups of application data; and calculating the first distribution proportion based on the k ratios and the k weights.
In one possible example, in the aspect of determining the second allocation proportion according to the first application type and the second application type, the instructions in the program are specifically configured to perform the following operations: determining a first network demand parameter corresponding to the first application type and a second network demand parameter corresponding to the second application type according to a preset mapping relation between the application type and the network demand parameter, wherein the network demand parameter comprises: network bandwidth or network uplink speed or network downlink speed; and calculating the ratio of the first network demand parameter to the second network demand parameter to obtain the second allocation proportion.
In one possible example, in the aspect of determining the resource allocation ratio according to the first application program and the second application program, the instructions in the programs are specifically configured to: if the first application program and the second application program are both non-video application programs; acquiring a first operating frequency corresponding to the first display screen and a second operating frequency corresponding to the second display screen within a preset time; calculating a ratio of the first operating frequency to the second operating frequency as the resource allocation ratio.
In one possible example, the instructions in the program are further to perform the following operations: judging whether the first application program and the second application program contain video application programs or not; if the first application program is the video application program, controlling the first display screen to run the first application program; and if the second application program is the video program, controlling the first display screen to operate the second application program.
In one possible example, the instructions in the program are further to perform the following operations: acquiring first configuration parameter information corresponding to the first application program and second configuration parameter information corresponding to the second application program; acquiring the first definition from the first configuration parameter information, and acquiring the second definition from the second configuration parameter information; and judging whether the first definition is greater than the second definition, if the first definition is not greater than the second definition, controlling the first display screen to operate the second application program, and controlling the second display screen to operate the first application program.
The above description has introduced the solution of the embodiment of the present application mainly from the perspective of the method-side implementation process. It is understood that the electronic device comprises corresponding hardware structures and/or software modules for performing the respective functions in order to realize the above-mentioned functions. Those of skill in the art would readily appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiment of the present application, the electronic device may be divided into the functional units according to the method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one control unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit. It should be noted that the division of the unit in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
Fig. 6 is a block diagram of functional units of the device control apparatus 600 according to the embodiment of the present application. The device control apparatus 600 is applied to an electronic device including: a first display screen and a second display screen, the device control apparatus 600 includes an acquisition unit 601, a determination unit 602, an allocation unit 603, and an execution unit 604, wherein:
the acquisition unit is used for acquiring a first application program of the first display screen and a second application program of the second display screen;
a determining unit, configured to determine a resource allocation ratio according to the first application program and the second application program;
the allocation unit is used for allocating according to the current memory resource and the resource allocation proportion to obtain a first resource and a second resource;
and the execution unit is used for controlling the first display screen to run the first application program based on the first resource and controlling the second display screen to run the second application program based on the second resource.
It can be seen that, in the embodiment of the present application, an electronic device obtains a first application program of a first display screen and a second application program of a second display screen; determining a resource allocation proportion according to the first application program and the second application program; allocating according to the current memory resource and the resource allocation proportion to obtain a first resource and a second resource; and controlling the first display screen to run the first application program based on the first resource, and controlling the second display screen to run the second application program based on the second resource. Therefore, in the embodiment of the application, the electronic device can determine the resource allocation proportion according to the first application program and the second application program, and allocate the system resources according to the resource allocation proportion, so that the communication efficiency of the double-sided screen mobile phone is favorably ensured, and the user experience degree is improved.
In a possible example, in the aspect of determining the resource allocation ratio according to the first application and the second application, the determining unit 602 is specifically configured to: acquiring first application information of the first application program and second application information of the second application program; determining a first allocation ratio based on the first application information and the second application information; determining a first application type of the first application and a second application type of the second application; determining a second allocation proportion according to the first application type and the second application type; and calculating the first distribution proportion and the second distribution proportion to obtain the resource distribution proportion.
In a possible example, in the aspect of determining the first allocation ratio based on the first application information and the second application information, the determining unit 602 is specifically configured to: acquiring k first application data in the first application information and k second application data in the second application information, wherein k is an integer larger than 0; generating k groups of application data according to the k first application data and the k second application data, wherein any one group of application data in the k groups of application data comprises a first application data and a second application data; determining k weights corresponding to the k groups of application data, and calculating k ratios corresponding to the k groups of application data; and calculating the first distribution proportion based on the k ratios and the k weights.
In a possible example, in the aspect of determining the second allocation proportion according to the first application type and the second application type, the determining unit 602 is specifically configured to: determining a first network demand parameter corresponding to the first application type and a second network demand parameter corresponding to the second application type according to a preset mapping relation between the application type and the network demand parameter, wherein the network demand parameter comprises: network bandwidth or network uplink speed or network downlink speed; and calculating the ratio of the first network demand parameter to the second network demand parameter to obtain the second allocation proportion.
In a possible example, in the aspect of determining the resource allocation ratio according to the first application and the second application, the determining unit 602 is specifically configured to: if the first application program and the second application program are both non-video application programs; acquiring a first operating frequency corresponding to the first display screen and a second operating frequency corresponding to the second display screen within a preset time; calculating a ratio of the first operating frequency to the second operating frequency as the resource allocation ratio.
In one possible example, the execution unit 604 is further configured to: judging whether the first application program and the second application program contain video application programs or not; if the first application program is the video application program, controlling the first display screen to run the first application program; and if the second application program is the video program, controlling the first display screen to operate the second application program.
In one possible example, the execution unit 604 is further configured to: acquiring first configuration parameter information corresponding to the first application program and second configuration parameter information corresponding to the second application program; acquiring the first definition from the first configuration parameter information, and acquiring the second definition from the second configuration parameter information; and judging whether the first definition is greater than the second definition, if the first definition is not greater than the second definition, controlling the first display screen to operate the second application program, and controlling the second display screen to operate the first application program.
Embodiments of the present application also provide a computer storage medium, where the computer storage medium stores a computer program for electronic data exchange, the computer program enabling a computer to execute part or all of the steps of any one of the methods described in the above method embodiments, and the computer includes an electronic device.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods as described in the above method embodiments. The computer program product may be a software installation package, the computer comprising an electronic device.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the above-described division of the units is only one type of division of logical functions, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit may be stored in a computer readable memory if it is implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the above-mentioned method of the embodiments of the present application. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The foregoing detailed description of the embodiments of the present application has been presented to illustrate the principles and implementations of the present application, and the above description of the embodiments is only provided to help understand the method and the core concept of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (7)

1. An apparatus control method applied to an electronic apparatus, the electronic apparatus comprising: a first display screen and a second display screen, the method comprising:
acquiring a first application program of the first display screen and a second application program of the second display screen;
acquiring first application information of the first application program and second application information of the second application program; acquiring k first application data in the first application information and k second application data in the second application information, wherein k is an integer larger than 0; generating k groups of application data according to the k first application data and the k second application data, wherein any one group of application data in the k groups of application data comprises a first application data and a second application data; determining k weights corresponding to the k groups of application data, and calculating k ratios corresponding to the k groups of application data, wherein the k weights are not all the same k values larger than zero, and the sum of the k weights is 1; calculating to obtain a first distribution ratio based on the k ratios and the k weights; determining a first application type of the first application and a second application type of the second application; determining a second allocation proportion according to the first application type and the second application type; calculating the first distribution proportion and the second distribution proportion to obtain a resource distribution proportion;
allocating according to the current memory resource and the resource allocation proportion to obtain a first resource and a second resource;
and controlling the first display screen to run the first application program based on the first resource, and controlling the second display screen to run the second application program based on the second resource.
2. The method of claim 1, wherein the determining a second allocation fraction according to the first application type and the second application type comprises:
determining a first network demand parameter corresponding to the first application type and a second network demand parameter corresponding to the second application type according to a preset mapping relation between the application type and the network demand parameter, wherein the network demand parameter comprises: network bandwidth or network uplink speed or network downlink speed;
and calculating the ratio of the first network demand parameter to the second network demand parameter to obtain the second allocation proportion.
3. The method of claim 1, further comprising:
judging whether the first application program and the second application program contain video application programs or not;
if the first application program is the video application program, controlling the first display screen to run the first application program;
and if the second application program is the video application program, controlling the first display screen to operate the second application program.
4. The method according to any one of claims 1-3, further comprising:
acquiring first configuration parameter information corresponding to the first application program and second configuration parameter information corresponding to the second application program;
acquiring a first definition from the first configuration parameter information, and acquiring a second definition from the second configuration parameter information;
and judging whether the first definition is greater than the second definition, if the first definition is not greater than the second definition, controlling the first display screen to operate the second application program, and controlling the second display screen to operate the first application program.
5. An apparatus control device, applied to an electronic apparatus, the electronic apparatus including: a first display screen and a second display screen, the apparatus comprising:
the acquisition unit is used for acquiring a first application program of the first display screen and a second application program of the second display screen;
a determining unit, configured to acquire first application information of the first application and second application information of the second application; acquiring k first application data in the first application information and k second application data in the second application information, wherein k is an integer larger than 0; generating k groups of application data according to the k first application data and the k second application data, wherein any one group of application data in the k groups of application data comprises a first application data and a second application data; determining k weights corresponding to the k groups of application data, and calculating k ratios corresponding to the k groups of application data, wherein the k weights are not all the same k values larger than zero, and the sum of the k weights is 1; calculating to obtain a first distribution ratio based on the k ratios and the k weights; determining a first application type of the first application and a second application type of the second application; determining a second allocation proportion according to the first application type and the second application type; calculating the first distribution proportion and the second distribution proportion to obtain a resource distribution proportion;
the allocation unit is used for allocating according to the current memory resource and the resource allocation proportion to obtain a first resource and a second resource;
and the execution unit is used for controlling the first display screen to run the first application program based on the first resource and controlling the second display screen to run the second application program based on the second resource.
6. An electronic device comprising a processor, a memory, a communication interface, and one or more programs stored in the memory and configured to be executed by the processor, the programs comprising instructions for performing the steps in the method of any of claims 1-4.
7. A computer-readable storage medium, characterized in that a computer program for electronic data exchange is stored, wherein the computer program causes a computer to perform the method according to any one of claims 1-4.
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 CN110475020A (en) 2019-11-19
CN110475020B true 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)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN115470000A (en) * 2022-08-22 2022-12-13 华为技术有限公司 Resource allocation method and device and carrier

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2779993C (en) * 2012-06-15 2019-05-07 Ibm Canada Limited - Ibm Canada Limitee Configurable resource policies
GB201320667D0 (en) * 2013-11-22 2014-01-08 Microsoft Corp 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
CN109976691B (en) * 2019-03-29 2021-05-18 联想(北京)有限公司 Information processing method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN110475020A (en) 2019-11-19

Similar Documents

Publication Publication Date Title
CN110475020B (en) Equipment control method and related product
CN109583356B (en) Fingerprint identification method and related product
CN108683444B (en) Data transmission method and related product
CN108834132B (en) Data transmission method and equipment and related medium product
CN109120683B (en) Data transmission method and related product
CN109348055B (en) Display control method, display control device, electronic apparatus, and readable storage medium
CN108777741B (en) Antenna switching control method and related product
CN110427741B (en) Fingerprint identification method and related product
EP3883157B1 (en) Electromagnetic interference control method and related product
CN110876184B (en) Carrier aggregation configuration method and related product
CN111580996A (en) Multi-operator selection method of URSP rule and related equipment
CN110827785B (en) Brightness adjusting method and related product
CN109117370B (en) Game testing method and related product
CN109359453B (en) Unlocking method and related product
CN108900385B (en) Network connection method and related product
CN109286414B (en) Antenna determination method and terminal
CN108966290B (en) Network connection method and related product
CN111522613A (en) Screen capturing method and electronic equipment
CN108845755A (en) split screen processing method, device, storage medium and electronic equipment
CN110611347B (en) Charging control method and related product
CN110443019B (en) Fingerprint identification method and related product
CN113170305B (en) Application downloading and installing method and related product
CN110876198B (en) Carrier aggregation configuration method and related products
CN111026298A (en) Account information processing method and electronic equipment
CN111601300A (en) Multi-card PDU session establishment method and related equipment

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