CN117971448A - Application starting method and electronic equipment - Google Patents

Application starting method and electronic equipment Download PDF

Info

Publication number
CN117971448A
CN117971448A CN202211317906.7A CN202211317906A CN117971448A CN 117971448 A CN117971448 A CN 117971448A CN 202211317906 A CN202211317906 A CN 202211317906A CN 117971448 A CN117971448 A CN 117971448A
Authority
CN
China
Prior art keywords
application
electronic device
value
starting
epp
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211317906.7A
Other languages
Chinese (zh)
Inventor
张茂飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co 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 Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202211317906.7A priority Critical patent/CN117971448A/en
Priority to PCT/CN2023/114027 priority patent/WO2024087830A1/en
Publication of CN117971448A publication Critical patent/CN117971448A/en
Pending legal-status Critical Current

Links

Abstract

The application provides an application starting method and electronic equipment, wherein the electronic equipment identifies a starting scene by detecting behavior data of an application, and provides higher performance parameters and more system resources for the starting scene by updating configuration items of the electronic equipment when the starting scene is identified, so that the application starting rate is improved.

Description

Application starting method and electronic equipment
Technical Field
The present application relates to the field of terminals, and in particular, to an application starting method and an electronic device.
Background
In the process of starting the application by the electronic equipment, each service module in the application starts and executes data initialization, database reading and writing, data resource loading and other operations, and the starting and executing time of the service modules belong to a part of the starting time of the application.
Therefore, how to accelerate the application starting speed in the application starting process is a problem to be solved.
Disclosure of Invention
The application provides an application starting method and electronic equipment, wherein the electronic equipment is used for identifying a starting scene by detecting the behavior of an application, and providing higher performance parameters and more system resources for the starting scene by updating configuration items of the electronic equipment when the starting scene is identified, so that the application starting rate is improved.
In a first aspect, the present application provides an application starting method, where the method is applied to an electronic device, and the method includes: the electronic equipment displays a first interface, the power limit PL of the electronic equipment is a first value, the energy efficiency ratio EPP of the electronic equipment is a second value, and the electronic equipment displays the first interface by using a first processor; responsive to a first operation at the first interface, the electronic device begins launching a first application; the electronic device displays a second interface including a window of the first application main interface. Wherein after starting to launch the first application, the electronic device adjusts at least one of the following three: after starting to start the first application, the electronic device adjusts the PL to a third value, and after displaying the second interface, the electronic device adjusts the PL to a fourth value, wherein the third value is larger than the first value and the third value is larger than the fourth value; after starting to start the first application, the electronic device adjusts the EPP to a fifth value, and after displaying the second interface, the electronic device adjusts the EPP to a sixth value, the fifth value being smaller than the second value and the fifth value being smaller than the sixth value; after starting to start the first application, the electronic device starts the first application by using a second processor, and after displaying the second interface, the first application is run by using the first processor, and the performance of the second processor is higher than that of the first processor.
After implementing the method provided in the first aspect, the electronic device adjusts the configuration item of the electronic device from the hardware parameter level in the process of starting the application, for example, any one or more of increasing the PL value and decreasing the EPP value by binding the electronic device to a processor with higher performance, where the processor with higher performance, the higher PL value or the lower EPP value can make the running performance of the electronic device higher, and provide more system resources for starting the application, so as to increase the speed of starting the application.
In combination with the method provided in the first aspect, after the electronic device starts to launch the first application and before the electronic device displays the second interface, the method further includes: the electronic device displays a third interface including a prompt window for the first application.
In this way, during the process of starting the application by the electronic device, the electronic device can also display a prompt window of the application for prompting the user that the first application is being started.
In combination with the method provided in the first aspect, if the electronic device adjusts PL, in a state in which the electronic device is powered on, PL adjusted in the process of starting the first application by the electronic device is greater than PL adjusted in the process of starting the first application by the electronic device in a state in which the electronic device is not powered on; if the electronic device adjusts PL, the EPP adjusted in the electronic device starting the first application process in a state in which the electronic device is powered on is smaller than the EPP adjusted in the electronic device starting the first application process in a state in which the electronic device is not powered on.
In this way, the value of PL adjusted in the process of starting the first application by the electronic equipment is larger than the value of PL adjusted in the process of starting the first application by the electronic equipment in the state that the electronic equipment is not powered on; and in the state that the electronic equipment is powered on, the adjusted EPP value in the process that the electronic equipment starts the first application is smaller than the adjusted EPP value in the process that the electronic equipment is not powered on. Therefore, under the condition of sufficient power supply, the first application is started with higher performance, and the speed of starting the first application by the electronic equipment is further improved.
In combination with the method provided in the first aspect, after the electronic device starts to launch the first application and before the electronic device adjusts PL to a third value and/or EPP to a fifth value and/or launches the first application with the second processor, the method further includes: the electronic device detects a first behavior of the first application, determines that the first application is in a launch process according to the first behavior, the first behavior including any one of: creating a process and creating a prompt window.
In this way, aiming at different behavior characteristics of different applications in the starting process, the electronic device can accurately detect that the applications are being started by detecting behaviors of various applications such as a creating process and a creating prompt window, so that a starting scene is identified, and the starting speed of the applications can be provided in time by adjusting the state value of the configuration item of the electronic device in time.
In combination with the method provided in the first aspect, after the electronic device displays the second interface and before the electronic device adjusts PL to the fourth value and/or EPP to the sixth value and/or launches the first application with the first processor, the method further includes: the electronic device detects a second behavior of the first application, determines that the first application is complete to launch according to the second behavior, and the second behavior comprises any one of the following: ending the process, creating a window of a first application main interface, destroying the window of the first application main interface, and hiding the window of the first application main interface.
In this way, aiming at a plurality of behavior characteristics of the application after the completion of the starting, the electronic device can accurately detect that the starting of the application is completed by detecting any one of the behaviors, so that the end of a starting scene is recognized, and the power consumption of the electronic device in a non-starting scene is reduced by adjusting the state value of the configuration item of the electronic device in time, so that the cruising ability of the electronic device is improved.
In combination with the method provided in the first aspect, after the electronic device starts to launch the first application and before the electronic device adjusts PL to a third value and/or EPP to a fifth value and/or launches the first application with the second processor, the method further includes: the electronic device determines that the first application belongs to a startup scene recognition object, wherein the startup scene recognition object comprises one or more applications preset by the electronic device.
Therefore, under the condition that the electronic equipment indifferently detects the behaviors of all the applications, the time consumption of the starting process of part of small-sized applications is extremely short, so that the electronic equipment does not need to incorporate the applications into the identification objects of the scene to be started, and better performance parameters or system resources are not needed to be provided for the starting process of the small-sized applications, and the waste of power consumption and resources of the electronic equipment can be avoided.
In combination with the method provided in the first aspect, after the electronic device starts to launch the first application and before the electronic device adjusts PL to a third value and/or EPP to a fifth value and/or launches the first application with the second processor, the method further includes: the method comprises the steps that a starting scene container of the electronic equipment is in a first state, and the first state indicates that the number of applications in the starting scene container is 0; the electronic device adding the first application to the startup scene container; the electronic equipment detects that the state of the starting scene container is switched from the first state to the second state, and the second state indicates that the number of applications in the starting scene container is N, and N is more than or equal to 1.
In this way, the electronic device may trigger the electronic device to determine the adjustment value corresponding to the configuration item when the number of applications in the startup process is switched from 0 to non-0. Specifically, when the electronic device detects that the first application is being started, if the scene container is started and no application exists before, the electronic device determines that only the first application is being started, so that the electronic device needs to adjust a value corresponding to the configuration item, and higher performance is provided for application starting; if the application exists before the scene container is started, the electronic equipment is indicated to have other applications which are started before, so that the electronic equipment adjusts the value corresponding to the configuration item and provides higher performance for application starting, and the electronic equipment does not need to recalculate the adjustment value corresponding to the configuration item at the moment, and continuously uses the adjustment value corresponding to the configuration item determined last time.
In combination with the method provided in the first aspect, after the electronic device displays the second interface and before the electronic device adjusts PL to the fourth value and/or EPP to the sixth value and/or launches the first application with the first processor, the method further includes: the starting scene container of the electronic equipment is in a second state, and the second state indicates that the number of applications in the starting scene container is N, wherein N is more than or equal to 1; the electronic device deletes the first application from the startup scene container; the electronic device detects that the state of the startup scene container is switched from the second state to a first state, and the first state indicates that the number of applications in the startup scene container is 0.
In this way, the electronic device may trigger the electronic device to determine the adjustment value corresponding to the configuration item when the number of applications in the startup process is switched from non-0 to 0. Specifically, after the electronic device detects that the first application is completely started, deleting the first application from the starting container, if no other application exists in the starting scene container, the electronic device needs to adjust the value corresponding to the configuration item to reduce the power consumption of the electronic device and waste of resources. If other applications exist in the startup scene container, the other applications are in the startup process, so that the electronic equipment does not need to adjust the values corresponding to the configuration items, and the startup speed of the other applications is prevented from being reduced.
In combination with the method provided in the first aspect, the electronic device stores a configuration policy, where the configuration policy includes: the corresponding relation between the state of the starting scene container and the PL, the corresponding relation between the state of the starting scene container and the EPP, and the corresponding relation between the state of the starting scene container and the processor; the configuration policy is used for determining the adjusted PL value and/or EPP and/or determining the processor used when the electronic device detects a state switch of the startup scene container.
In this way, the electronic device can determine the adjustment value of the corresponding configuration item according to the state of the starting scene container under the condition that the state of the starting scene container of the electronic device is switched according to the preset configuration strategy, so as to improve the performance of the electronic device in the starting scene and accelerate the starting of the application.
In combination with the method provided in the first aspect, when the electronic device is in the power saving mode, PL adjusted in the process of starting the first application by the electronic device is greater than PL adjusted in the process of starting the first application when the electronic device is not in the power saving mode; or when the electronic equipment is in the power saving mode, the EPP adjusted in the process of starting the first application by the electronic equipment is smaller than the EPP adjusted in the process of starting the first application by the electronic equipment when the electronic equipment is not in the power saving mode.
In this way, the electronic device also considers the factor of the working mode of the electronic device in the application starting process to determine the value corresponding to the adjusted configuration item, so that the application starting speed can be improved, and the electronic device can be ensured to work in the power saving mode to reduce the power consumption of the electronic device.
In combination with the method provided in the first aspect, if the load of the electronic device is a seventh value, the PL adjusted in the process of starting the first application by the electronic device is greater than the PL adjusted in the process of starting the first application by the electronic device if the load of the electronic device is an eighth value; the seventh value is smaller than the eighth value or the EPP adjusted in the process of starting the first application by the electronic device when the load of the electronic device is the seventh value is smaller than the EPP adjusted in the process of starting the first application by the electronic device when the load of the electronic device is the eighth value.
In this way, the electronic equipment also considers the factor of the load of the electronic equipment in the application starting process to determine the value corresponding to the adjusted configuration item, so that the application starting speed can be improved, the electronic equipment can be ensured to adjust the configuration item to a more adaptive state value under different loads, and the aim of accurately adjusting the configuration item is achieved.
In combination with the method provided in the first aspect, before the electronic device adjusts PL to the third value/EPP to the fifth value/launches the first application with the second processor, the method further includes: the electronic device runs a second application.
Thus, the electronic equipment can realize the purposes of identifying the starting scene and adjusting the state value corresponding to the configuration item of the electronic equipment by running a second application such as a computer manager.
In a second aspect, the present application provides an electronic device comprising a screen, a memory, one or more processors; the memory is coupled to the one or more processors, the memory for storing computer program code comprising computer instructions that the one or more processors call to cause the electronic device to perform the method as described in any of the first aspects.
In a third aspect, the present application provides a chip for application to an electronic device, the chip comprising one or more processors for invoking computer instructions to cause the electronic device to perform the method as described in any of the first aspects.
In a fourth aspect, the present application provides a computer readable storage medium comprising instructions which, when run on an electronic device, cause the electronic device to perform a method as described in any of the first aspects.
Drawings
Fig. 1 is a schematic diagram of a hardware architecture of an electronic device according to an embodiment of the present application;
fig. 2 is a schematic diagram of a system architecture of an electronic device according to an embodiment of the present application;
FIG. 3 is a flowchart of an application starting method according to an embodiment of the present application;
Fig. 4A is a schematic diagram of a desktop of an electronic device according to an embodiment of the present application;
fig. 4B is a schematic diagram of an operation interface for triggering application start according to an embodiment of the present application;
Fig. 4C-4E are schematic diagrams of relevant interfaces before and after the first office software is started according to an embodiment of the present application;
fig. 4F is a schematic diagram of a related interface before and after the second office software is started according to an embodiment of the present application.
Detailed Description
The technical solutions of the embodiments of the present application will be clearly and thoroughly described below with reference to the accompanying drawings. Wherein, in the description of the embodiments of the present application, unless otherwise indicated, "/" means or, for example, a/B may represent a or B; the text "and/or" is merely an association relation describing the associated object, and indicates that three relations may exist, for example, a and/or B may indicate: a exists alone, A and B exist together, and B exists alone.
The terms "first," "second," and the like, are used below for descriptive purposes only and are not to be construed as implying or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature, and in the description of embodiments of the application, unless otherwise indicated, the meaning of "a plurality" is two or more.
Reference in the specification to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the application. The appearances of such phrases 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. Those of skill in the art will explicitly and implicitly appreciate that the described embodiments of the application may be combined with other embodiments.
The term "User Interface (UI)" in the following embodiments of the present application is a media interface for interaction and information exchange between an application program or an operating system and a user, which enables conversion between an internal form of information and a form acceptable to the user. The user interface is a source code written in a specific computer language such as java, extensible markup language (extensible markup language, XML) and the like, and the interface source code is analyzed and rendered on the electronic equipment to finally be presented as content which can be identified by a user. A commonly used presentation form of a user interface is a graphical user interface (graphic user interface, GUI), which refers to a graphically displayed user interface that is related to computer operations. It may be a visual interface element of text, icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets, etc., displayed in a display of the electronic device.
With rapid development of terminal technology and improvement of user demands, users often install a plurality of applications on electronic devices to meet various demands of the users. When a user opens an application, if the application is not currently running in the background, the electronic device opens the application by using a cold start mode, and because in the process of starting the application by the electronic device, each service module in the application needs to execute operations such as data initialization, database reading and writing, data resource loading and the like, the electronic device needs a certain starting time to display an interface for successfully opening the application in a screen, and the phenomenon of slower starting speed of the application can influence the user experience.
In order to solve the problems, the application provides an application starting method and an electronic device, in the method, the electronic device identifies a starting scene by detecting behavior data of an application, and provides higher performance parameters and more system resources for the starting scene by updating configuration items of the electronic device when the starting scene is identified, so that the application starting rate is improved.
In an embodiment of the present application, behavior data of an application refers to data for characterizing a startup state (startup, startup completion) of the application, including but not limited to: application creation process, data of ending process, application creation window, destruction window, hidden window, etc.
In an embodiment of the present application, the configuration items of the electronic device include any one or more of the following: a Power Limit (PL) of a central processing unit (Central Processing Unit, CPU), an enhanced performance profile (Enhanced Performance Profile, EPP), a size core of a run, and the like. When the configuration items are in different values or states, the performances of the electronic devices are different, and the resources provided for the application starting are different, so that the influence on the application starting speed is different.
The specific definition and function of the above configuration items will be mainly described below.
(1) PL includes multiple levels, with increasing levels, the larger the PL value, the smaller the limit on CPU power is characterized. Illustratively, PL may include four levels, PL1, PL2, PL3, PL4, respectively, where PL1 refers to Thermal Design Power (TDP), which is also the default CPU Power consumption limit. In the case where PL includes four levels, PL1 is generally defined as the default power consumption of the CPU, because the operation thereof is unrestricted when the power consumption of the CPU is within PL 1. Starting from PL2 means that the CPU power consumption is beyond the range of TDP, at which time the CPU is typically fully loaded, and according to intel's specifications, the CPU can maintain a continuous operation time of up to 100 seconds at this power consumption, after which the CPU is limited in frequency until its power consumption returns to within PL 1. PL3 and PL4, in turn, mean higher power consumption states that can only be maintained for about 10ms of run time and are therefore disabled by default, and not all platforms can be manually disabled. Therefore, in the embodiment of the application, adjusting the PL value mainly improves the performance of the electronic apparatus by adjusting the value of PL 1.
(2) An energy efficiency ratio (energy performance preference, EPP) reflecting the scheduling tendency of the CPU, the smaller the EPP value, the higher the processor tends to be; when the value of EPP is greater, it indicates that the power consumption of the processor is smaller. Taking the value range of EPP as 0-255 as an example, when EPP is 0, the performance of CPU is best, when the EPP value is gradually increased from 0, the performance of EPP is gradually reduced but power consumption is saved, until the power consumption of CPU is smaller when EPP is 255.
(3) The size core refers to at least two core processors integrated by a Multi-core processor (Multi-core processor) when the electronic device is configured with the Multi-core processor, that is, a large core and a small core are integrated, and the performance and the power consumption of the large core are higher than those of the small core. When the running processor is bound to the large core, the electronic device is running faster than the small core. In embodiments of the present application, a large core may also be referred to as a second processor and a small core may also be referred to as a first processor.
Therefore, after the application starting method provided by the application is implemented, the following technical effects can be achieved:
The electronic device can accurately identify a starting scene in which the application is being started according to the behavior data of the application detected in real time, and determine a configuration item corresponding to the starting scene according to a configuration strategy corresponding to the starting scene, and adjust the configuration item of the electronic device from a hardware parameter level of the electronic device, for example, by adjusting any one or more of a Central Processing Unit (CPU) bound by the electronic device to be a big core/a small core, a programmable logic unit (PL) value and an enhanced processor (EPP) of the CPU, so that the electronic device adopts a big core processor in the starting scene, the PL value of the adopted big core processor is set to be a higher value, or the EPP value of the adopted big core processor is also set to be a lower value. The large core processor, the higher PL value or the lower EPP value can provide more system resources for application starting, and the application starting speed is improved.
Next, the form and the software and hardware architecture of the electronic device according to the present application will be described.
In the embodiment of the application, the electronic device may be a mounted deviceOr other operating system, such as notebook computers, tablet computers, desktop computers, laptop computers, handheld computers, ultra-mobile personal computers (UMPC), netbooks, cell phones, personal Digital Assistants (PDA), augmented reality (augmented reality, AR) devices, virtual Reality (VR) devices, artificial intelligence (ARTIFICIAL INTELLIGENCE, AI) devices, wearable devices, in-vehicle devices, smart home devices and/or smart city devices, and the like, as embodiments of the application are not limited in this regard.
Fig. 1 shows a schematic hardware configuration of an electronic device 100.
As shown in fig. 1, the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charge management module 140, a power management module 141, a battery 142, an antenna, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, keys 190, an indicator 192, a camera 193, a display 194, and a subscriber identity module (subscriber identification module, SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a touch sensor 180B, or may further include an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity sensor, a fingerprint sensor, a temperature sensor, a gyroscope sensor, an ambient light sensor, a bone conduction sensor, etc., which are not shown.
It should be understood that the illustrated structure of the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the application, electronic device 100 may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 110 may include one or more processing units, such as: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (IMAGE SIGNAL processor, ISP), a controller, a video codec, a digital signal processor (DIGITAL SIGNAL processor, DSP), a baseband processor, and/or a neural-Network Processor (NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby improving the efficiency of the system.
In the embodiment of the present application, the processor 110 may receive, through the sensor module 180, operation information that acts on an application and is input by a user, and control the application to perform a startup process according to the operation information, for example, control an application creation process, or further include creating, destroying a window, etc., during the application startup process, the processor 110 may further detect behavior data of the application (for example, create a process, end a process, or further include data of creating a window, destroying a window, hiding a window, etc.), and determine, according to the detected data, whether the electronic device is in a startup scenario, if so, control a corresponding module of the electronic device 100 to adjust a configuration item, so that the electronic device provides better performance parameters and more system resources for the startup scenario, thereby improving the speed of application startup.
The specific implementation method for detecting the start scene and adjusting the configuration item may refer to the detailed description of the method embodiments hereinafter, which is not repeated herein.
In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an integrated circuit (inter-INTEGRATED CIRCUIT, I2C) interface, an integrated circuit built-in audio (inter-INTEGRATED CIRCUIT SOUND, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, an external memory interface 120, and/or a universal serial bus (universal serial bus, USB) interface, etc.
The external memory interface 120 may be used to connect external non-volatile memory to enable expansion of the memory capabilities of the electronic device 100. The external nonvolatile memory communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music and video are stored in an external nonvolatile memory.
The electronic device 100 may also include an internal memory 121, and the internal memory 121 may include one or more random access memories (random access memory, RAM) and one or more non-volatile memories (NVM).
The random access memory may include a static random-access memory (SRAM), a dynamic random-access memory (dynamic random access memory, DRAM), a synchronous dynamic random-access memory (synchronous dynamic random access memory, SDRAM), a double data rate synchronous dynamic random-access memory (double data rate synchronous dynamic random access memory, DDR SDRAM, such as fifth generation DDR SDRAM is commonly referred to as DDR5 SDRAM), etc.; the random access memory may be read directly from and written to by the processor 110, may be used to store executable programs (e.g., machine instructions) for an operating system or other on-the-fly programs, may also be used to store data for users and applications, and the like.
The nonvolatile memory may include a disk storage device, a flash memory (flash memory). The FLASH memory may include NOR FLASH, NAND FLASH, 3D NAND FLASH, etc. divided according to an operation principle, may include single-level memory cells (SLC-LEVEL CELL), multi-level memory cells (multi-LEVEL CELL, MLC), triple-level memory cells (LEVEL CELL, TLC), quad-LEVEL CELL, QLC), etc. divided according to a memory cell potential order, may include general FLASH memory (english: universal FLASH storage, UFS), embedded multimedia memory card (eMMC) MEDIA CARD, eMMC), etc. divided according to a memory specification.
In an embodiment of the present application, the external nonvolatile memory connected to the external memory interface 120 and the nonvolatile memory in the internal memory 121 may also be generally referred to as external memory of the electronic device. These nonvolatile memories may be used to store executable programs, data for users and applications, and the like. Before the electronic device runs an application, that is, when the electronic device receives an operation for opening the application and starts a process of the application, the application needs to perform data initialization, read-write database and data resource loading, that is, the application needs to load the executable program stored in the nonvolatile memory, and the data of the user and the application program into the random access memory in advance, so that the processor 110 can directly read and write.
The USB interface 130 is an interface conforming to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 130 may be used to connect a charger to charge the electronic device 100, and may also be used to transfer data between the electronic device 100 and a peripheral device. And can also be used for connecting with a headset, and playing audio through the headset. The interface may also be used to connect other electronic devices, such as a mouse, keyboard, or AR device, etc.
It should be understood that the interfacing relationship between the modules illustrated in the embodiments of the present application is only illustrative, and is not meant to limit the structure of the electronic device 100. In other embodiments of the present application, the electronic device 100 may also employ different interfacing manners in the above embodiments, or a combination of multiple interfacing manners.
The charge management module 140 is configured to receive a charge input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charge management module 140 may receive a charging input of a wired charger through the USB interface 130. In some wireless charging embodiments, the charge management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. The charging management module 140 may also supply power to the electronic device through the power management module 141 while charging the battery 142.
The power management module 141 is used for connecting the battery 142, and the charge management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140 to power the processor 110, the internal memory 121, the display 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be configured to detect parameters such as battery capacity, battery cycle number, battery health (leakage, impedance), etc. In other embodiments, the power management module 141 may also be provided in the processor 110. In other embodiments, the power management module 141 and the charge management module 140 may be disposed in the same device.
The wireless communication function of the electronic device 100 may be implemented by an antenna, a wireless communication module 160, a modem processor, a baseband processor, and the like.
The antenna is used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 100 may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed into a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The wireless communication module 160 may provide solutions for wireless communication including wireless local area network (wireless local area networks, WLAN) (e.g., wireless fidelity (WIRELESS FIDELITY, wi-Fi) network), bluetooth (BT), global navigation satellite system (global navigation SATELLITE SYSTEM, GNSS), frequency modulation (frequency modulation, FM), near field communication (NEAR FIELD communication, NFC), infrared (IR), etc., applied to the electronic device 100. The wireless communication module 160 may be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via an antenna, modulates the electromagnetic wave signals, filters the electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, frequency modulate it, amplify it, and convert it to electromagnetic waves for radiation via an antenna.
In some embodiments, the antenna of the electronic device 100 and the wireless communication module 160 are coupled such that the electronic device 100 may communicate with a network and other devices through wireless communication techniques. The wireless communication techniques can include the Global System for Mobile communications (global system for mobile communications, GSM), general packet radio service (GENERAL PACKET radio service, GPRS), code division multiple access (code division multiple access, CDMA), wideband code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC, FM, and/or IR techniques, among others. The GNSS may include a global satellite positioning system (global positioning system, GPS), a global navigation satellite system (global navigation SATELLITE SYSTEM, GLONASS), a beidou satellite navigation system (beidou navigation SATELLITE SYSTEM, BDS), a quasi zenith satellite system (quasi-zenith SATELLITE SYSTEM, QZSS) and/or a satellite based augmentation system (SATELLITE BASED AUGMENTATION SYSTEMS, SBAS).
The electronic device 100 implements display functions through a GPU, a display screen 194, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
The display screen 194 is used to display images, videos, and the like. The display 194 includes a display panel. The display panel may employ a Liquid Crystal Display (LCD) CRYSTAL DISPLAY, an organic light-emitting diode (OLED), an active-matrix organic LIGHT EMITTING diode (AMOLED), a flexible light-emitting diode (FLED), miniled, microLed, micro-oLed, a quantum dot LIGHT EMITTING diode (QLED), or the like. In some embodiments, the electronic device 100 may include 1 or N display screens 194, N being a positive integer greater than 1.
In the embodiment of the present application, the display screen 194 may be used to display a window for prompting that an application is being started/loaded in the application starting process, and an interface provided by the application after the application is successfully started, and may specifically refer to the related description of the UI embodiment hereinafter, which is not described herein.
The pressure sensor 180A is used to sense a pressure signal, and may convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194. The pressure sensor 180A is of various types, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like. The capacitive pressure sensor may be a capacitive pressure sensor comprising at least two parallel plates with conductive material. The capacitance between the electrodes changes when a force is applied to the pressure sensor 180A. The electronic device 100 determines the strength of the pressure from the change in capacitance. When a touch operation is applied to the display screen 194, the electronic apparatus 100 detects the touch operation intensity according to the pressure sensor 180A. The electronic device 100 may also calculate the location of the touch based on the detection signal of the pressure sensor 180A. In some embodiments, touch operations that act on the same touch location, but at different touch operation strengths, may correspond to different operation instructions. For example: and executing an instruction for checking the short message when the touch operation with the touch operation intensity smaller than the first pressure threshold acts on the short message application icon. And executing an instruction for newly creating the short message when the touch operation with the touch operation intensity being greater than or equal to the first pressure threshold acts on the short message application icon.
The touch sensor 180B, also referred to as a "touch device". The touch sensor 180B may be disposed on the display 194, and the touch sensor 180B and the display 194 form a touch screen, which is also referred to as a "touch screen". The touch sensor 180B is used to detect a touch operation acting thereon or thereabout. The touch sensor may communicate the detected touch operation to the application processor to determine the touch event type. Visual output related to touch operations may be provided through the display 194. In other embodiments, the touch sensor 180B may also be disposed on the surface of the electronic device 100 at a different location than the display 194.
In other embodiments of the present application, the sensor, such as the pressure sensor 180A, and the touch sensor 180B may be disposed in the display 194 of the electronic device 100, or may be disposed in a touch pad area at a keyboard of the electronic device 100, for receiving an operation input by a user. Specifically, the pressure sensor 180A may detect an operation of clicking the touch panel by a user through a finger or a stylus, then the pressure sensor 180A may generate corresponding pressure information according to the operation input by the user, and send the pressure information to the processor 110, and the processor 110 may learn, according to the pressure information, coordinate information of the user acting on the display screen, and finally perform a corresponding operation according to the coordinate information.
The software system of the electronic device 100 may employ a layered architecture, an event driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. Embodiments of the application are configured in a layered mannerThe system is an example illustrating the software architecture of the electronic device 100.
Fig. 2 is a schematic diagram of a system architecture of the electronic device 100 according to an embodiment of the present application.
The layered architecture divides the software and hardware into several layers, each layer having distinct roles and branches. The layers communicate with each other through a software interface. In some embodiments, it willThe system is divided into three layers, namely an application layer, an operating system layer and a hardware layer from top to bottom.
The application layer may include a series of application packages.
As shown in FIG. 2, the application package may include applications for a computer manager, an execution scheduling module, office software (e.g., first office software, second office software, etc.), games, graphics drawing software, calendars, WLAN, bluetooth, etc.
The computer manager refers to an application installed in an electronic device for software management, and generally, the computer manager has functions of system acceleration, one-key cleaning, real-time protection, virus checking and killing, etc., but in the embodiment of the application, compared with a traditional computer manager, the updated computer manager can also be integrated with a scene recognition module, a configuration policy module, etc., that is, the two modules can be run in the computer manager in a plug-in mode.
The configuration policy module may send a request for querying a scene to the scene recognition module, and receive a scene query result reported by the scene recognition module, where the scene query result includes but is not limited to: the electronic device is in a startup scene, a specific type of the startup scene, and the like, and then the configuration policy module can determine a corresponding configuration policy according to the specific type of the startup scene and send the configuration policy to the execution scheduling module.
After receiving the request for querying the scene sent by the configuration policy module, the scene identifying module may determine whether there is an application start in the current electronic device according to the detected behavior data (for example, data of an application creation process, an application creation window, a destruction window, a hidden window, etc.) of the application in the electronic device, so as to identify a start scene, and report a result of the identified start scene to the configuration policy module.
That is, the upgraded computer manager has newly added a function of starting scene recognition and a function of determining a corresponding performance configuration policy according to the starting scene. It can be understood that the specific implementation of the two functions can be realized in the form of a single independent application program, service component and the like besides the mode of adding a corresponding scene recognition module and a configuration strategy module in a computer manager.
The execution scheduling module refers to a service installed in the electronic device, and the scene interaction sub-module in the service can be used for receiving the configuration items sent by the configuration policy module and returning receiving results to the configuration policy module, and in addition, the received configuration items are sent to the scheduling executor sub-module, and then the scheduling executor sub-module schedules corresponding hardware to modify and configure according to the corresponding configuration items and operate according to the modified configuration, so that better performance and more system resources are improved for the current starting scene.
An operating system layer, which may include device drivers, and a file system/storage manager, executives, and hardware abstraction layers, etc., not shown. Among them, there are three basic types of device drivers: plug-and-play drivers (i.e., WDM drivers), kernel extension drivers (non-plug-and-play drivers), file system drivers. Device drivers, for example, may include, but are not limited to: HNOS2EC drive, OS2SOC drive, display drive, audio drive or sensor drive, and so forth. The drivers can drive the underlying hardware modules to execute corresponding tasks, for example HNOS EC drivers can be used for detecting the behaviors of the application, including the behaviors of an application creation process, an ending process, a creation window, a destruction window, a hidden window and the like, and report the detected behavior data to a scene recognition module in the application layer; for example, the OS2SOC driver can be used for receiving configuration items including PL and/or EPP and the like sent by the execution scheduling module in the application layer, and controlling AMD PMF in the hardware layer to modify values of configuration parameters including PL, EPP and the like according to the configuration items; for another example, the display driver may control the display 194 of the electronic device to light up and display a corresponding user interface.
In the embodiment of the present application, the names of the above-mentioned drivers are only examples, the roles of which are described in the specification, and the present application is not limited to the names of the above-mentioned drivers.
Hardware layers include, but are not limited to: display screen, processor, memory, I/O ports. Wherein, when the processor is a Multi-core processor (Multi-core processor), the Multi-core processor integrates at least two core processors. The two core processors may be provided by different platforms or may be provided by the same platform. When the two processors are provided for different platforms, the platforms include, but are not limited to, the ultra-micro semiconductor company (Advanced Micro Devices, AMD) platform, the Intel (Intel) platform. The processor corresponding to the AMD platform further comprises an AMD PMF module, and the processor corresponding to the Intel platform further comprises an Intel DTT.
The multiple processors can be used for receiving information which indicates the bound big core/small core and is directly sent by an execution scheduling module of the application layer, so as to determine which processor starts working.
Wherein the AMD PMF is operable to receive a configuration item of PL, EPP, etc. of the driving layer OS2SOC driving launch, and modify the values of PL, EPP according to the configuration item, wherein the configuration item received by the AMD PMF may be in the form of, for example, a specific value of PL, EPP directly.
The Intel DTT may be directly used for receiving a configuration item corresponding to a start scene sent by the execution scheduling module of the application layer, and then the Intel DTT modifies the values of PL and EPP of the processor according to the configuration item, where the configuration item received by the Intel DTT may be in the form of an ID for indicating the values of PL and EPP parameters, and specific PL and EPP parameter values corresponding to different IDs are prestored in the Intel DTT.
In the embodiment of the present application, the names of the above-mentioned hardware are only examples, the roles of which are described in the specification, and the present application is not limited to the names of the above-mentioned drivers.
Based on the software and hardware architecture of the electronic device according to the present application described above, the application starting method provided by the present application is described in detail below with reference to the method flow shown in fig. 3.
As shown in fig. 3, the application starting method provided by the application comprises the following steps:
s310, the electronic device detects a behavior of the first application.
The electronic device may be adapted to continuously detect the behaviour of the first application, e.g. at certain periods. Wherein detecting the behavior of the first application may include: behavior data of a first application is obtained. In addition, the electronic device may detect the behavior of more other applications in addition to the behavior of the first application.
In a specific embodiment, the scene recognition module in the computer management home installed in the electronic device may obtain the behavior data of the first application detected by HNOS EC driver in the driver layer through a system probe software development kit (Software development kit, SDK) (e.g., a process detection probe, a window detection probe, etc.).
In an embodiment of the present application, the behavior of the application includes, but is not limited to, creating a process, ending a process, creating a window, destroying a window, hiding a window, and the like. The electronic device may detect different application behaviors at different time points, for example, after the electronic device receives an operation of starting the first application, the electronic device starts to start the first application (for example, after the electronic device displays fig. 4B), the behavior of the first application creation process is detected; for another example, during the startup process of the electronic device, if the electronic device displays a window (e.g., when the electronic device displays fig. 4C-4D) that prompts are being started and loaded, the electronic device may detect the behavior of creating the prompt window; for another example, after the electronic device is started, when the electronic device displays the interface of the first application (for example, when the electronic device displays fig. 4E), the electronic device may also detect a behavior of creating a window of the application main interface; for another example, when the electronic device switches the first application from the foreground to the background running, the electronic device may also detect a behavior of hiding a window of the application main interface; for another example, the electronic device may also detect the behavior of ending the process when the electronic device is to stop running, stopping starting the first application. It can be seen that the behavior of the electronic device to detect the application is continuously executed, i.e. the behavior of the application is continuously detected during the execution of the subsequent S320-S363 by the electronic device.
Where a process refers to an instance of a running program, the process differs from the program in that the program is a series of static instructions, and the process is a container that contains a series of resources used by threads running on the program instance, the program becomes a "process" when an executable program on an external memory is loaded into memory for execution. It can be seen that before a static application program runs, the application must start first, i.e. a process must be created, which performs the corresponding task.
Wherein the window comprises a plurality of types including, for example, but not limited to: prompt window, application main interface window. The prompt window is a prompt window which is displayed in the starting process of the application and used for prompting that the application is being started and loaded; the application main interface window refers to a window containing the content of the application main interface displayed by the application after the start is completed. In the embodiment of the application, some applications only comprise small applications such as calendars, bluetooth, second office software and the like, wherein a prompt window is not displayed in the starting process; while other applications may display a prompt window during startup, such as large applications like first office software, graphics rendering software, and games. Both types of applications typically display an application main interface window after the start-up is completed.
In the embodiment of the application, the condition for triggering the electronic device to continuously detect the behavior of the application may be that the electronic device detects the user operation, or that the electronic device defaults to continuously detect the behavior of the application after being started. The user operation that triggers the electronic device to continuously detect the behavior of the application may be, for example, an operation of starting a scene recognition function provided by a computer manager.
S320, the electronic device starts to start the first application.
Specifically, after the electronic device detects the first operation of triggering the first application to start, the first application starts to start, or the electronic device may start the first application automatically. Optionally, before the electronic device starts the first application, the configuration item of the electronic device is a first state value.
The above configuration items may include any one or more of the following: the core of the working CPU of the electronic device is a small core/a large core, the PL value of the working CPU of the electronic device and the EPP value of the working CPU of the electronic device. The configuration item being at the first state value may be, for example: PL is a first value and/or EPP is a third value and/or the flag of the processor being operated is 0, wherein a flag of the processor being operated is 0 indicates that the processor being operated in the electronic device is the first processor (also known as a corelet).
The method for determining the first state value may include the following steps:
The PL value or EPP value in the first state value may be a fixed value for the electronic device default, with the processor operating in the corelet/corelet by default. The default PL fixed value may specifically be an average power of a processor obtained by a developer through multiple tests of the electronic device in most of ordinary operation scenarios, and a limit power greater than the average power is defined, so as to ensure that the electronic device has enough performance to support the operation of the electronic device in most of operation scenarios. Illustratively, the default PL fixed value (also known as the first value) is 20. Similarly, the default EPP fixed value may specifically be an average energy efficiency ratio of the processor obtained by the developer through testing the electronic device multiple times in most of the common operation scenarios, and a value less than the average energy efficiency ratio is defined, so as to ensure that the electronic device has enough performance in most of the operation scenarios to support the operation of the electronic device. Illustratively, the default EPP fixed value (also known as the second value) is 150.
Or the PL value or EPP value of the first state value may be determined by the electronic device based on the current CPU load. The PL value and EPP value corresponding to different loads are different, and when the load is larger, the corresponding PL value (also called a first value) is larger, and the EPP value (also called a second value) is smaller. For example, when the load size is characterized by the CPU occupancy, the first value of PL is 9 and the second value of EPP is 255 when the CPU occupancy is 0-20%; when the CPU occupancy rate is 20% -50%, the first value of PL is 20, and the second value of EPP is 150; when the CPU occupancy rate is 50% -80%, the first value of PL is 25, and the second value of EPP is 50; when the CPU occupancy rate is 80% -100%, the first value of PL is 35, and the second value of EPP is 1. The embodiment of the application does not limit the specific values of the occupancy rate dividing method and the corresponding PL and EPP.
Or the PL value or EPP value of the first state value may be a configuration item determined by the electronic device according to the current operation stress scenario. The PL values and EPP values corresponding to different running scenes are different, when the running scenes are large scenes of office and game types, the corresponding PL values (also called first values) are larger, the EPP values (also called second values) are smaller, and the processor is bound as a small core; when the running scene is a large scene of a non-office and non-game class, the corresponding PL value (also called a first value) is smaller, the EPP value (also called a second value) is larger, and the processor is bound as a big core.
For the operation of triggering the first application to start, which is received by the electronic device, reference may be made specifically to fig. 4A to fig. 4B, where fig. 4A to fig. 4B schematically illustrate an operation interface for triggering the electronic device to start the first application.
Referring to fig. 4A, fig. 4A illustrates a desktop schematic of an electronic device.
As shown in fig. 4A, the desktop of the electronic device includes a cursor 411, a taskbar 412, and one or more application icons including, but not limited to, a first office software icon 413, a second office software icon 414. In embodiments per se, the first office software and the second office software may be collectively referred to as a first application.
Wherein the cursor 411 is an option, when the electronic device is a desktop computer or a notebook, the electronic device may display the cursor 411. The cursor may be displayed in the form of an icon, an image, etc., and may be different when the cursor is on a different page displayed on the display screen of the electronic device or at a different location on the same page, for example, when the cursor is on a desktop, the icon corresponding to the cursor may be an arrow or a hand icon, and when the cursor is on the search field 412B, the icon corresponding to the cursor may be a vertical line, and when the cursor is in a state of dragging a file, the image corresponding to the cursor may be a thumbnail of the file. In the embodiment of the application, the position of the cursor in the display screen can be moved according to the movement of an input body used together with the electronic device, such as a finger, a mouse, a handle, a glove and the like.
The taskbar 412 is a small bar located at the lowest portion of the desktop of the electronic device 100, and mainly includes: a start menu 412A, a search field 412B, a task view control 412C, an application area 412D, and a tray area 412E. The start menu 412A may provide most of installed applications, and services such as startup and shutdown restart for the user; search bar 412B provides the user with a quick search service; task view control 412C may provide a service for the user to browse recently performed tasks; application field 412D may display an icon for an application in electronic device 100 that is performing a task (if this field is empty, it means that the current electronic device is not an application that is performing a task); the tray area 412E is used for visually displaying important information of the computer software and hardware, such as time information, network status, etc., through various small icons;
The application program icon is an icon of a system application program or a third party application program installed on the electronic device, and the electronic device can provide a shortcut service for starting the corresponding application program for a user by detecting an operation acting on the icon of the application program.
It will be appreciated that fig. 4A is merely an exemplary illustration of a desktop of an electronic device, and that the desktop of the electronic device may also display more or less content than that shown in fig. 4A, as embodiments of the present application are not limited in this respect.
Referring to fig. 4B, fig. 4B schematically illustrates an operation interface for triggering the launching of a first application.
As shown in fig. 4B, when the electronic device detects an operation of the cursor 411 acting on the first office software icon 413, the first office software installed in the electronic device is triggered to start. The operation of the cursor 411 acting on the first office software icon 413 is specifically, a double click operation or other operation in which the user controls the cursor to move to the first office software icon 413 by moving an input body (e.g., a mouse), which is not limited in the embodiment of the present application.
The above-described operation of starting the first office software is described only by way of example in fig. 4B, and the operation of triggering the start of the first office software is only by way of example. In other examples of the present application, the operation for triggering the application launch may also be a voice command, or an operation by inputting the name of the application in the search field 412B and clicking on the searched application option, and the operation for launching other applications is similar to the operation for launching the first office software, which is not limited in this embodiment of the present application.
In embodiments of the present application, the interface illustrated in fig. 4A-4B may also be referred to as a first interface. When the electronic device displays a first interface as shown in fig. 4A-4B, the configuration item of the electronic device is at a first state value. Specifically, since the load of the electronic device is smaller at this time and there is no large application in the operation scenario, if the electronic device determines the first state value of the configuration item according to the load or determines the first state value of the configuration item according to the operation scenario, the performance of the first state value is lower, for example, in the first state value, the PL value (i.e., the first value) of the processor is 9, the epp value (i.e., the second value) is 255, and the processor of the electronic device is bound to be a small core.
S330, the electronic equipment displays a third interface, wherein the third interface comprises a prompt window of the first application.
In some embodiments, when the first application is the aforementioned first office software, after the electronic device starts to launch the first application, the electronic device may display a third interface, which includes a prompt window of the first application. In other embodiments, when the first application is the aforementioned second office software, the electronic device may not display the prompt window containing the first application after the electronic device starts to launch the first application.
Optionally, after the electronic device starts to start the first application, whether or not a prompt window of the first application is displayed, the electronic device may modify the configuration item to increase the speed of starting the first application by the electronic device, and for example, the electronic device may execute S341-S344.
S341, the electronic device determines whether the first application is a target application.
Optionally, after the electronic device detects any behavior of the first application, the electronic device is triggered to determine whether the first application is a target application. The description is given only by taking the example that the electronic device triggers the electronic device according to the detected first behavior of the first application to judge whether the first application is the target application, wherein the first behavior of the first application comprises data of a first application creation process or further comprises data of a first application creation prompt window. This is because, after the electronic device starts the first application, for example, when the electronic device displays the interface as shown in fig. 4B, the first application creation process loads the service module included in the first application to perform the corresponding task, and since the electronic device continuously executes S310, that is, continuously detects the behavior of the first application, the first behavior of the first application detected by the electronic device includes the first application creation process, in particular, when the first application is the first office software described above, the electronic device will display the prompt window as shown in fig. 4C-4D after starting to start the first application, and thus the first behavior may also include creating the prompt window.
In a specific example, a target application corresponding to a starting scene or a rule of the target application is preset in a scene recognition module in the electronic device, so that after the electronic device detects behavior data of the application each time, the electronic device is triggered to judge whether the application to which the behavior data detected each time belongs according to the preset target application or the preset rule, if yes, the electronic device can continuously judge whether the current application is being started or is started, namely the electronic device can execute a subsequent step S342; otherwise, the electronic device ends the processing of the behavior of the detected application. But the electronic device does not end the processing of the next detected behavior of the application.
The target application preset in the electronic device comprises one or more applications, which are usually large-scale applications with long starting process time, such as office software, games, graphic drawing software and the like; the rule for determining the target application may be, for example, a rule that the size of the application program is larger than a certain value, and the application type, the number of applications, and the rule of the target application included in the target application are not particularly limited in the present application.
In the embodiment of the present application, the electronic device determines whether the first application is a target application or not as an optional operation, in an implementation manner, the electronic device needs to determine whether the first application is a target application, in another implementation manner, the electronic device may not determine whether the first application is a target application, that is, the electronic device directly executes the following S342 after detecting the first behavior data of the first application. In the case that the electronic device determines whether the first application is the target application, if the system probe SDK of the electronic device is the behavior data of all applications in the process of executing S310, however, considering that the starting process of a part of the small-sized applications is extremely short, in order to avoid wasting the power consumption and resources of the electronic device, it is unnecessary to provide better performance parameters or system resources for the starting process of the small-sized applications, so that the electronic device does not need to incorporate the applications into the target application, which is the identification object of the scene to be started. Under the condition that the electronic equipment does not judge whether the first application is the target application or not, the electronic equipment can identify the starting scenes of all the applications, so that all the applications can be ensured to be started quickly, and a better application starting experience sense is provided for a user.
S342, the electronic device judges whether the first application is being started or the starting is completed.
The electronic equipment is preset with a matching rule, and the matching rule is used for judging whether the first application is being started or is completed according to the corresponding matching rule by the electronic equipment according to the first behavior of the first application.
In a specific implementation manner, one or more matching rules corresponding to the application are preset in the scene recognition module of the electronic device, and the matching rules are used for judging whether the first application is being started or completed based on the first data of the first application, and if the recognition module of the electronic device determines that the current application is being started, the configuration policy module of the electronic device is notified, so that the electronic device executes subsequent S343.
In the embodiment of the present application, the matching rule is determined by analyzing the behavior feature of each application in the starting process, so that the matching rule corresponding to different applications may be the same or may be different, and the specific matching rule of the different applications is described below by taking only the different behavior features of two different applications as examples:
1. For some applications that take longer to start up, the electronic device may immediately create a process for loading the services included in the application after detecting an operation that triggers the application to start up, and in order to timely feed back the start up result to the user, a window for prompting the user that the application is being started up and/or being loaded is also typically displayed first (see the description of fig. 4C-4D specifically below). The application interface after successful launch of such an application is not displayed until such application has been launched (see in particular the description of fig. 4E below).
Thus, for such applications, the matching rules are specifically:
when the electronic device detects that the behavior of the application is any one of the following, the application is determined to be in a starting process: the application creates a process and creates a prompt window when it has not been run before. When the electronic device detects that the behavior of the application is any one of the following, the application is determined to be in a starting process: creating a window of the application main interface, destroying the window of the application main interface, and ending the process.
2. For other applications where the starting process is less time consuming, the application will also create a process immediately after the electronic device detects an operation triggering the starting of the application, for loading the various services contained in the application, but such applications will typically be loaded successfully very quickly, and will therefore not display a window for prompting the user that the application is starting and loading, but will instead display the application interface immediately after a successful start (in particular as described below with respect to fig. 4F).
Thus, for these applications, the matching rules are specifically:
The application is determined to be in the start-up procedure only if the electronic device detects the behavior of a process created in the case where the application has not been run before. When the electronic device detects that the behavior of the application is any one of the following, the application is determined to be in a starting process: creating a window of the application main interface, destroying the window of the application main interface, and ending the process.
According to the analysis, the electronic device can determine that the first application is in the starting process according to the matching rule because the first behavior of the first application detected by the electronic device comprises the data of the first application creation process or further comprises the data of the first application creation prompt window.
It can be understood that the matching rules related to the present application are determined only by the different behavior features of the two applications in the starting process, and if other applications have different behavior features in the starting process, the matching rules corresponding to the two applications are preset in the electronic device.
Next, behavior features of the first application displayed by the electronic device after starting to start the first office software and before completing to start the first office software will be described in connection with the UI embodiment.
Referring to fig. 4C-4D, fig. 4C-4D schematically illustrate related interface diagrams before and after the first office software is started.
As shown in fig. 4C, the electronic device will typically first display a window 415 being started during the start-up of the first office software, where the window 415 is used to prompt the user that the first office software is being started, and does not have other contents related to the main functions, services, etc. provided by the first office software.
As shown in fig. 4D, after displaying the window 415 being started, the electronic device also displays the window 416 being loaded, where the window 416 is used to prompt the user that the first office software is being loaded, and does not have other contents related to the main functions, services, etc. provided by the first office software.
Fig. 4C-4D are merely illustrative of behavior features during a first office software start-up procedure, and in other examples of the application, the behavior features applied during a start-up procedure may include only displaying a prompt window that is being started up, or only displaying a prompt window that is being loaded, or the start-up procedure does not display any prompt window, as the application is not limited in this regard. For example, in the process of starting the second office software, the electronic device does not display a prompt window of the second office software, and thus is not illustrated with a UI here.
It will be appreciated that when the electronic device displays the interface shown in fig. 4C-4D, the electronic device may detect the behavior data of the first application creation window, where the window belongs to a prompt window for prompting the user that the electronic device is being started.
S343, under the condition that the first application is started, the electronic device determines a second state value corresponding to the configuration item.
In one implementation, the electronic device may directly determine the second state value corresponding to the configuration item when it is determined that the first application is being started. In another implementation manner, when the electronic device determines that the first application is being started, the electronic device further adds the first application to the startup scene container, then determines whether the state of the startup scene container is switched from the first state to the second state, and if so, the electronic device determines a second state value corresponding to the configuration item. The first state refers to that the number of applications in the startup scene container is 0, that is, before it is determined that the first application is being started, no other applications in the electronic device are being started, and the second state refers to that the number of applications in the startup scene container is N, where N is greater than or equal to 1.
The configuration item being in the second state value may be, for example: PL is a third value and/or EPP is a fourth value and/or the flag of the processor being operated is 1, wherein a flag of the processor being operated is 1 indicates that the processor being operated in the electronic device is a second processor (also known as a big core).
The specific implementation method for determining the second state value corresponding to the configuration item by the electronic equipment comprises the following steps:
1. the state value of the preset configuration item is stored in the electronic equipment, and the state value of the preset configuration item is directly determined to be a second state value.
Specifically, the electronic device stores a preset configuration policy, where the preset configuration policy includes: starting the corresponding relation between the state of the scene container and the PL, starting the corresponding relation between the state of the scene container and the EPP, and starting the corresponding relation between the state of the scene container and the processor; the configuration policy is used for determining the adjusted PL value and/or EPP and/or determining the processor used when the electronic device detects a state switch of the startup scene container. Specifically, the PL value of the operating CPU in the preset configuration policy is greater than the first threshold, for example, when the first threshold is 20, the PL fixed value is 30; the EPP value of the preset operating CPU is smaller than the second threshold, for example, when the second threshold is 150, the EPP fixed value is 100. The first threshold and the second threshold may specifically be average power and average energy efficiency ratio of the processor obtained by testing the electronic device for multiple times in most common operation scenarios, where the average power and the average energy efficiency ratio are defined as a value greater than a limit power of the average power and less than the average energy efficiency ratio.
In a specific implementation manner, the preset configuration item is stored in a configuration policy module of the electronic device, and the configuration policy module is used for determining a second state value according to the preset configuration item after receiving information sent by the scene recognition module and indicating that the first application is being started, or after determining that the state of the starting scene container is switched from the first state to the second state.
Therefore, when the first method is adopted to determine the second state value, the electronic device can ensure that the performance of the second state value is better than that of the first state value, that is, the third value of PL is greater than the first value of PL, and the fourth value of EPP is less than the second value of EPP under most common application scenarios, so that the first application can be continuously started by adopting higher performance parameters. The above-mentioned commonly used application scenario refers to a non-extreme application scenario such as a high-load, large-scale application running scenario, etc.
2. The electronic equipment is based on the state value of the preset configuration item, any one or more of factors such as whether the electronic equipment is powered on, the load of the electronic equipment, the operation scene, the working mode, the type and the number of the applications being started and the like are considered, corresponding adjustment values are overlapped on the basis of the state value of the preset configuration item, and the value after the adjustment values are overlapped is determined to be a second state value.
Taking as an example a factor of considering whether or not to power on, the PL adjustment value of the electronic apparatus in the power on state is larger than the PL adjustment value in the power off state and/or the EPP adjustment value of the electronic apparatus in the power on state is smaller than the EPP adjustment value in the power off state. In this way, it is ensured that the final PL value (also called a third value) obtained by superimposing the PL adjustment value on the preset fixed PL value when the power is turned on is larger than the final PL value (also called a third value) obtained by superimposing the PL adjustment value on the preset fixed PL value when the power is not turned on. And ensuring that the final EPP value (also called a fourth value) obtained by superposing the EPP adjustment value on the basis of the preset fixed EPP value when the power is turned on is smaller than the final EPP value (also called a fourth value) obtained by superposing the EPP adjustment value on the basis of the preset fixed EPP value when the power is not turned on.
Taking the factor of considering the load size as an example, the adjustment values corresponding to different loads are different. The smaller the load, the smaller the PL adjustment value and/or the larger the EPP adjustment value. When the load of the electronic equipment is a seventh value, the adjusted PL in the process of starting the first application by the electronic equipment is larger than the adjusted PL in the process of starting the first application by the electronic equipment when the load of the electronic equipment is an eighth value; the seventh value is less than the eighth value. Or when the load of the electronic device is the seventh value, the adjusted EPP in the process of starting the first application by the electronic device is smaller than the adjusted EPP in the process of starting the first application by the electronic device when the load of the electronic device is the eighth value. For example, when the load size is represented by the CPU occupancy rate, when the CPU occupancy rate is 0-20%, the PL adjustment value is-5, the EPP adjustment value is 20, the adjusted value of PL (also called a third value) is 30-5=25, and the adjusted value of EPP (also called a fourth value) is 100+20=120; when the CPU occupancy rate is 20% -50%, the PL adjustment value is 0, the EPP adjustment value is 0, the third value obtained after adjustment is 30, and the fourth value obtained after adjustment is 100; when the CPU occupancy rate is 50% -80%, the PL adjustment value is 2, the EPP adjustment value is-50, the third value obtained after adjustment is 30+2=32, and the fourth value obtained after adjustment is 100-50=50; when the CPU occupancy rate is 80% -100%, the PL adjustment value is 5, the EPP adjustment value is-99, the third value obtained after adjustment is 30+5=35, and the fourth value obtained after adjustment is 100-99=1. The embodiment of the application does not limit the above-mentioned occupancy rate division, the corresponding PL adjustment value and EPP adjustment value.
Taking the factor of considering the operation scene of the electronic device as an example, the adjustment values corresponding to different operation scenes are different. The operational scenario is determined from an application that the electronic device is already running. For example, when the electronic device is running office software, then the electronic device determines that the running scene is an office scene, and for example, when the electronic device is running a game application, then the electronic device determines that the running scene is a game scene, and for example, when the electronic device is running a social application, then the electronic device determines that the running scene is a social scene. The PL adjustment value in the office scene and the game scene is larger than the adjustment value in the leisure scene, and/or the EPP adjustment value in the office scene and the game scene is larger than the EPP adjustment value in the leisure scene.
Taking the factor of considering the working mode of the electronic device as an example, the adjustment values corresponding to different working modes are different, the PL adjustment value in the working mode is smaller than the PL adjustment value in the non-power saving mode, and/or the EPP adjustment value in the working mode is larger than the EPP adjustment value in the non-power saving mode.
Taking as an example the factor of considering the type of application being launched, the smaller the PL adjustment value and/or the larger the EPP adjustment value when the size of the first application being launched is larger. For example, when the application being started is a large application of office software or game class, the PL adjustment value thereof is larger than the PL adjustment value under the non-large application of social class being started, and/or when the application being started is a large application of office software or game class, the EPP adjustment value thereof is smaller than the EPP adjustment value under the non-large application of social class being started.
Taking as an example the factor of considering the number of applications being launched, the greater the number of applications the electronic device runs, the greater the PL adjustment value and/or the lesser the EPP adjustment value. For example, when the number of applications being launched is greater than 0 and less than or equal to 2, then the PL adjustment value is 0 and the epp adjustment value is 0; when the number of applications being launched is greater than 2, then the PL adjustment value is 5 and the EPP adjustment value is-100. The embodiment of the application does not limit the division of the application quantity, the corresponding PL adjustment value and the EPP adjustment value.
Therefore, when the second method is adopted to determine the second state value, the electronic device can ensure that the performance of the second state value is better than that of the first state value item described above under any application scene (including high load and low load), that is, the third value of PL is greater than the first value of PL, and the fourth value of EPP is less than the second value of EPP, so that the first application can be continuously started by adopting higher performance parameters.
S344, the electronic device changes the configuration item to the second state value, and continues to launch the first application using the configuration item of the second state value.
Specifically, after the configuration policy module of the electronic device determines that the configuration item corresponding to the starting scene is the second state value, the second state value is sent to the execution scheduling module, and the execution scheduling module schedules the corresponding hardware to modify the corresponding configuration item according to the second state value and operates according to the modified configuration, so that better performance and more system resources are improved for the current starting scene.
Optionally, when the configuration item of the electronic device is the first state value before the electronic device starts the first application, the electronic device starts the first application when the configuration item is the first state value at an initial stage of starting the first application, that is, before the electronic device determines that the configuration item is the second state value. After the electronic device determines the second state value, the electronic device continues to start the first application with the second state value. Since the value of PL in the second state value (third value) is greater than the value of PL in the first state value (first value) and/or the value of EPP in the second state value (fourth value) is less than the value of EPP in the first state value (second value), the actual operating power of the processor in the binding operation is greater than the operating power of the processor in the binding operation when the second state value is applied to start the first application, and the actual operating power of the processor in the binding operation is greater than the operating power of the processor in the first state value, so that the speed of starting the first application by the processor can be increased.
The specific implementation of the execution scheduling module of the electronic device for scheduling the corresponding hardware to modify the configuration according to the corresponding configuration item is as follows:
the execution scheduling module of the electronic equipment directly binds the running processor into a big core;
And/or, for an electronic device employing an ultra-micro semiconductor company (Advanced Micro Devices, AMD) platform, the execution scheduling module in the electronic device application layer sends the PL value and/or the EPP value in the second state value to the running CPU in the hardware layer through the driver layer OS2SOC driver, for example, the AMD PMF module in the CPU may be configured to receive a configuration item of the initiated PL, EPP, etc., and modify the value of the PL, EPP according to the configuration item, where the form of the configuration item received by the AMD PMF may be, for example, directly a specific value of the PL, EPP. For an electronic device adopting an Intel platform, an execution scheduling module of an application layer can directly send a PL value and/or an EPP value in a determined second state value to an Intel DTT module in a running CPU of a hardware layer, wherein the Intel DTT is used for modifying the PL and EPP values according to configuration items, the configuration items received by the Intel DTT can be in the form of IDs (identity) for indicating PL and EPP parameter values, and specific PL and EPP parameter values corresponding to different IDs are prestored in the Intel DTT.
S350, the electronic equipment displays a second interface, wherein the second interface comprises a window of the first application main interface.
After the electronic equipment finishes starting the first application, the electronic equipment displays a second interface, and the second interface comprises a window of the main interface of the first application. Specifically, after the first application of the electronic device successfully loads the service module of the first application into the memory from the external memory, the electronic device creates a window containing an application main interface, where services, functions, and the like contained in the first application that has been successfully loaded can be displayed in the window of the application main interface.
Next, a second interface displayed by the electronic device after the electronic device completes the start of the first application will be described in connection with the UI embodiment.
As shown in fig. 4E, after the first office software has been successfully loaded, i.e., after the first office software has been successfully started, the electronic device displays an interface of the first office software when running in the foreground, where the page contents (i.e., window 417) except for the taskbar 412 are page contents provided by Excel. The window 417 contains contents of main functions, services, and the like provided by the first office software, such as contents of browsing, opening a recently used document, creating a blank workbook, and the like.
It can be seen that window 417 shown in fig. 4E differs from the launch window 415 and the load window 416 described previously, including, but not limited to: window type, window display content, role of window, etc. Thus, the electronic device can identify whether the application has completed launching by the type of window created.
It can be understood that fig. 4E only takes the first application as the first office software as an example, when the first application is the second office software, the electronic device only directly displays an interface of the second application and does not display a window for prompting that the second application is being started in the process from receiving the operation of starting the second application to completing the starting of the second application, and in particular, referring to fig. 4F, fig. 4F is an exemplary diagram showing relevant interfaces before and after the starting of the second office software.
As shown in fig. 4F, when the electronic device detects an operation of the cursor 411 acting on the second office software icon 414, the second office software installed in the electronic device is triggered to start. And then, in the process of starting the second office software, no prompt information is displayed in the display screen of the electronic device, and page content (namely a window 418) provided by the second office software in the foreground operation is not displayed until the second office software is successfully started. The window 418 contains the contents of the main functions, services, etc. provided by the second office software, such as searching for documents, creating new documents, opening documents, etc.
It will be appreciated that when the electronic device displays the interface shown in fig. 4E-4F, the electronic device may detect the behavior data of the first application creation window, where the window belongs to a window showing the application function class, and is configured to provide the function of the first application for the user.
Optionally, after the first application is completely started, the electronic device further performs steps S361-S363.
S361, the electronic device judges whether the first application is a target application.
Optionally, similar to S341 described above, after the electronic device detects any behavior of the first application, the electronic device is triggered to determine whether the first application is a target application. The difference from the foregoing S341 is that the condition that triggers the electronic device to determine whether the first application is the target application is that the second behavior of the first application detected by the electronic device, where the second behavior of the first application includes any one of the following: creating a window of the application main interface, destroying the window of the application main interface, hiding the window of the application main interface, and ending the process.
The specific implementation method of the electronic device for determining whether the first application is the target application according to the second behavior of the first application may refer to the description of S341 above, which is not repeated herein. If the first application is the target application, the electronic device will continue to determine whether the first application is being started or is completed, i.e. the electronic device will execute the subsequent step S362; otherwise, the electronic device may end processing the second behavior of the first application detected this time.
S362, the electronic device determines whether the first application is being started or the starting is completed.
Specifically, the electronic device may trigger to determine whether the first application is being started or completed according to the second behavior data of the first application, where the determination method is similar to S342 described above, and is not repeated herein.
S363, the electronic device changes the configuration item to the third state value if the electronic device determines that the first application is completely started.
In one implementation, the electronic device may directly change the configuration item to the third state value upon determining that the first application is complete to launch. In another implementation manner, when the electronic device determines that the first application is completely started, the electronic device further deletes the first application from the startup scene container, then determines whether the state of the startup scene container is switched from the second state to the first state, and if so, the electronic device changes the configuration item to the third state value.
The configuration item being in the third state value may be, for example: PL is the fifth value and/or EPP is the sixth value and/or the flag of the operating processor is 0. The method of determining the third state value is the same as the method of determining the first state value described above. For the determination method of the third state value, reference may be made to the description herein for brevity.
In the embodiment of the present application, the third state value and the first state value described above may be the same or may be different, and if the electronic device determines, according to the current CPU load or the operation scenario (for example, a game scenario, an office scenario, etc.), a configuration item in a non-startup scenario, the first state value is a configuration item applied when the number of large applications running on the electronic device is smaller than a first threshold, for example, 1 (or the load is smaller than a second threshold), and the third state value is a configuration item applied when the number of large applications running on the electronic device is greater than or equal to the first threshold (or the load is greater than or equal to the second threshold), so that the performance of the third state value determined by the electronic device is higher than the first configuration information.
In summary, after the application starting method provided by the application is implemented, the electronic device can accurately detect whether the application is being started according to the behavior data of the application detected in real time, so as to identify a starting scene, determine the state value of the configuration item corresponding to the starting scene according to the configuration strategy corresponding to the starting scene, adjust the configuration item of the electronic device from the hardware parameter level of the electronic device, for example, by binding the electronic device on a processor with higher performance, one or more of the PL value is increased and the EPP value is decreased, wherein the processor with higher performance, the higher PL value or the lower EPP value can enable the running performance of the electronic device to be higher, so that the electronic device starts the application in the running state with optimal performance, and provide more system resources for the application starting, thereby improving the speed of the application starting. The application starting rate is improved.
Next, two specific scenarios are listed in conjunction with the foregoing fig. 4A-4F and steps S310-S363 to describe how to increase the application starting speed of the application starting method provided by the present application.
Scenario 1, takes as an example the starting of a first application with the electronic device on.
In the process of the electronic device displaying the first interface shown in fig. 4A, PL of the electronic device is a first value, denoted as pl1=9, EPP of the electronic device is a second value, denoted as epp1=255, and the flag of the processor in the operating state is 0 (the electronic device operates with a small core processor).
After the electronic device starts to start the first application, that is, in the process of displaying the third interface shown in fig. 4C-4D, PL of the electronic device is a third value, denoted as pl2=35, EPP of the electronic device is a fourth value, denoted as epp2=1, and the flag of the processor in the operating state is 1 (the electronic device starts the first application using the large core processor).
After the electronic device completes the first application starting, i.e. in the process of displaying the second interface shown in fig. 4E, PL of the electronic device is a fifth value, denoted as pl3=25, EPP of the electronic device is a fourth value, denoted as epp3=150, and the flag of the processor in the working state is 1 (the electronic device starts the first application using the large core processor).
Scenario 2, takes as an example the starting of a first application with the electronic device in the power on state.
In the process of the electronic device displaying the first interface shown in fig. 4A, PL of the electronic device is a first value, denoted as pl1=9, EPP of the electronic device is a second value, denoted as epp1=255, and the flag of the processor in the operating state is 0 (the electronic device operates with a small core processor).
After the electronic device starts to start the first application, that is, in the process of displaying the third interface shown in fig. 4C-4D, PL of the electronic device is a third value, denoted as pl2=30, EPP of the electronic device is a fourth value, denoted as epp2=10, and the flag of the processor in the operating state is 1 (the electronic device starts the first application using the large core processor).
After the electronic device completes the first application starting, i.e. in the process of displaying the second interface shown in fig. 4E, PL of the electronic device is a fifth value, denoted as pl3=25, EPP of the electronic device is a fourth value, denoted as epp3=150, and the flag of the processor in the working state is 1 (the electronic device starts the first application using the large core processor).
It can be seen that after the electronic device starts the first application, the electronic device may adjust the performance of the configuration item to be higher, for example, increase the PL value, decrease the EPP value, and bind the processor to a large core processor to perform work, so as to increase the speed of starting the first application by the electronic device. In addition, the PL2 adjusted in the process of starting the first application by the electronic equipment is larger than the PL2 adjusted in the process of starting the first application by the electronic equipment in the state that the electronic equipment is not powered on; and in the state that the electronic equipment is powered on, the EPP2 adjusted in the process of starting the first application by the electronic equipment is smaller than the EPP2 adjusted in the process of starting the first application by the electronic equipment in the state that the electronic equipment is not powered on. Therefore, under the condition of sufficient power supply, the first application is started with higher performance, and the speed of starting the first application by the electronic equipment is further improved.
It should be understood that each step in the above method embodiments provided by the present application may be implemented by an integrated logic circuit of hardware in a processor or an instruction in software form. The steps of the method disclosed in connection with the embodiments of the present application may be embodied directly in a hardware processor for execution, or in a combination of hardware and software modules in the processor for execution.
The present application also provides an electronic device, which may include: memory and a processor. Wherein the memory is operable to store a computer program; the processor may be operative to invoke a computer program in said memory to cause the electronic device to perform the method of any of the embodiments described above.
The application also provides a chip system comprising at least one processor for implementing the functions involved in the method performed by the electronic device in any of the above embodiments.
In one possible design, the system on a chip further includes a memory to hold program instructions and data, the memory being located either within the processor or external to the processor.
The chip system may be formed of a chip or may include a chip and other discrete devices.
Alternatively, the processor in the system-on-chip may be one or more. The processor may be implemented in hardware or in software. When implemented in hardware, the processor may be a logic circuit, an integrated circuit, or the like. When implemented in software, the processor may be a general purpose processor, implemented by reading software code stored in a memory.
Alternatively, the memory in the system-on-chip may be one or more. The memory may be integral with the processor or separate from the processor, and embodiments of the present application are not limited. The memory may be a non-transitory processor, such as a ROM, which may be integrated on the same chip as the processor, or may be separately provided on different chips, and the type of memory and the manner of providing the memory and the processor are not particularly limited in the embodiments of the present application.
Illustratively, the chip system may be a field programmable gate array (field programmable GATE ARRAY, FPGA), an Application Specific Integrated Chip (ASIC), a system on chip (SoC), a central processing unit (central processor unit, CPU), a network processor (network processor, NP), a digital signal processing circuit (DIGITAL SIGNAL processor, DSP), a microcontroller (micro controller unit, MCU), a programmable controller (programmable logic device, PLD) or other integrated chip.
The present application also provides a computer program product comprising: a computer program (which may also be referred to as code, or instructions), which when executed, causes a computer to perform the method performed by the electronic device in any of the embodiments described above.
The present application also provides a computer-readable storage medium storing a computer program (which may also be referred to as code, or instructions). The computer program, when executed, causes a computer to perform the method performed by the electronic device in any of the embodiments described above.
The embodiments of the present application may be arbitrarily combined to achieve different technical effects.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions in accordance with the present application are produced in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital subscriber line), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid state disk Solid STATE DISK), etc.
Those of ordinary skill in the art will appreciate that implementing all or part of the above-described method embodiments may be accomplished by a computer program to instruct related hardware, the program may be stored in a computer readable storage medium, and the program may include the above-described method embodiments when executed. And the aforementioned storage medium includes: ROM or random access memory RAM, magnetic or optical disk, etc.
In summary, the foregoing description is only exemplary embodiments of the present invention and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, improvement, etc. made according to the disclosure of the present invention should be included in the protection scope of the present invention.

Claims (15)

1. An application launching method, wherein the method is applied to an electronic device, the method comprising:
The electronic equipment displays a first interface, the power limit PL of the electronic equipment is a first value, the energy efficiency ratio EPP of the electronic equipment is a second value, and the electronic equipment displays the first interface by using a first processor;
responsive to a first operation at the first interface, the electronic device begins launching a first application;
The electronic equipment displays a second interface, wherein the second interface comprises a window of the first application main interface;
Wherein, after starting to launch the first application, the electronic device adjusts at least one of the following three:
After starting to launch the first application, the electronic device adjusts PL to a third value, after displaying the second interface, the electronic device adjusts PL to a fourth value, the third value being greater than the first value and the third value being greater than the fourth value;
After starting to launch the first application, the electronic device adjusts EPP to a fifth value, after displaying the second interface, the electronic device adjusts EPP to a sixth value, the fifth value being less than the second value and the fifth value being less than the sixth value;
After starting to start the first application, the electronic device starts the first application by using a second processor, and after displaying the second interface, the first application is run by using the first processor, and the performance of the second processor is higher than that of the first processor.
2. The method of claim 1, wherein after the electronic device begins launching the first application and before the electronic device displays a second interface, the method further comprises:
and the electronic equipment displays a third interface, wherein the third interface comprises a prompt window of the first application.
3. A method according to claim 1 or 2, characterized in that,
If the electronic equipment adjusts the PL, in the state that the electronic equipment is powered on, the PL adjusted in the process that the electronic equipment starts the first application is larger than the PL adjusted in the process that the electronic equipment is not powered on;
If the electronic equipment adjusts EPP, in the state that the electronic equipment is powered on, the EPP adjusted in the process of starting the first application by the electronic equipment is smaller than the EPP adjusted in the process of starting the first application by the electronic equipment in the state that the electronic equipment is not powered on.
4. A method according to any of claims 1-3, characterized in that after the electronic device starts launching a first application and before the electronic device adjusts PL to a third value and/or EPP to a fifth value and/or launches the first application with a second processor, the method further comprises:
The electronic device detects a first behavior of the first application, determines that the first application is in a starting process according to the first behavior, and the first behavior comprises any one of the following steps: creating a process and creating a prompt window.
5. The method of any of claims 1-4, wherein after the electronic device displays the second interface and before the electronic device adjusts PL to a fourth value and/or EPP to a sixth value and/or launches the first application with the first processor, the method further comprises:
The electronic device detects a second behavior of the first application, determines that the first application is completely started according to the second behavior, and the second behavior comprises any one of the following steps: ending the process, creating a window of a first application main interface, destroying the window of the first application main interface, and hiding the window of the first application main interface.
6. The method according to any of claims 1-5, wherein after the electronic device starts launching a first application and before the electronic device adjusts PL to a third value and/or EPP to a fifth value and/or launches the first application with a second processor, the method further comprises:
The electronic device determines that the first application belongs to a starting scene recognition object, wherein the starting scene recognition object comprises one or more applications preset by the electronic device.
7. The method according to any of claims 1-6, wherein after the electronic device starts launching a first application and before the electronic device adjusts PL to a third value and/or EPP to a fifth value and/or launches the first application with a second processor, the method further comprises:
The method comprises the steps that a starting scene container of the electronic equipment is in a first state, and the first state indicates that the number of applications in the starting scene container is 0;
The electronic device adding the first application to the startup scene container;
the electronic equipment detects that the state of the starting scene container is switched from the first state to the second state, and the second state indicates that the number of applications in the starting scene container is N, and N is more than or equal to 1.
8. The method according to any of claims 1-7, wherein after the electronic device displays the second interface and before the electronic device adjusts PL to a fourth value and/or EPP to a sixth value and/or launches the first application with the first processor, the method further comprises:
The starting scene container of the electronic equipment is in a second state, and the second state indicates that the number of applications in the starting scene container is N, wherein N is more than or equal to 1;
the electronic device deletes the first application from the startup scene container;
the electronic device detects that the state of the starting scene container is switched from the second state to a first state, and the first state indicates that the number of applications in the starting scene container is 0.
9. The method of claim 7 or 8, wherein the electronic device stores a configuration policy, the configuration policy comprising: the corresponding relation between the state of the starting scene container and the PL, the corresponding relation between the state of the starting scene container and the EPP, and the corresponding relation between the state of the starting scene container and the processor;
the configuration strategy is used for determining the adjusted PL value and/or EPP and/or determining a used processor when the electronic device detects the state switching of the startup scene container.
10. The method according to any one of claims 1 to 9, wherein,
The PL adjusted in the process of starting the first application by the electronic equipment is larger than the PL adjusted in the process of starting the first application by the electronic equipment when the electronic equipment is in the power saving mode and the electronic equipment is not in the power saving mode;
Or when the electronic equipment is in the power saving mode, the EPP adjusted in the process of starting the first application by the electronic equipment is smaller than the EPP adjusted in the process of starting the first application by the electronic equipment when the electronic equipment is not in the power saving mode.
11. The method according to any one of claims 1 to 10, wherein,
The adjusted PL in the process of starting the first application by the electronic equipment is larger than the adjusted PL in the process of starting the first application by the electronic equipment when the load of the electronic equipment is a seventh value; the seventh value is smaller than the eighth value
Or if the load of the electronic device is the seventh value, the adjusted EPP in the process of starting the first application by the electronic device is smaller than the adjusted EPP in the process of starting the first application by the electronic device if the load of the electronic device is the eighth value.
12. The method of any of claims 1-11, wherein prior to the electronic device adjusting PL to a third value/EPP to a fifth value/launching the first application with a second processor, the method further comprises:
The electronic device runs a second application.
13. An electronic device comprising a screen, a memory, one or more processors; the memory is coupled with the one or more processors, the memory for storing computer program code comprising computer instructions that the one or more processors invoke to cause the electronic device to perform the method of any of claims 1-12.
14. A chip for application to an electronic device, wherein the chip comprises one or more processors for invoking computer instructions to cause the electronic device to perform the method of any of claims 1-12.
15. A computer readable storage medium comprising instructions which, when run on an electronic device, cause the electronic device to perform the method of any one of claims 1-12.
CN202211317906.7A 2022-10-26 2022-10-26 Application starting method and electronic equipment Pending CN117971448A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202211317906.7A CN117971448A (en) 2022-10-26 2022-10-26 Application starting method and electronic equipment
PCT/CN2023/114027 WO2024087830A1 (en) 2022-10-26 2023-08-21 Application starting method and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211317906.7A CN117971448A (en) 2022-10-26 2022-10-26 Application starting method and electronic equipment

Publications (1)

Publication Number Publication Date
CN117971448A true CN117971448A (en) 2024-05-03

Family

ID=90829945

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211317906.7A Pending CN117971448A (en) 2022-10-26 2022-10-26 Application starting method and electronic equipment

Country Status (2)

Country Link
CN (1) CN117971448A (en)
WO (1) WO2024087830A1 (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106020987A (en) * 2016-05-31 2016-10-12 广东欧珀移动通信有限公司 Method and device for determining kernel running configurations in processor
CN112650541B (en) * 2019-10-09 2023-02-17 深圳Tcl新技术有限公司 Application program starting acceleration method, system, equipment and storage medium
CN115237583A (en) * 2021-04-22 2022-10-25 华为技术有限公司 Computing resource scheduling method and device
CN114443256B (en) * 2022-04-07 2022-08-30 荣耀终端有限公司 Resource scheduling method and electronic equipment

Also Published As

Publication number Publication date
WO2024087830A1 (en) 2024-05-02

Similar Documents

Publication Publication Date Title
US20210132779A1 (en) Electronic device and method for configuring display thereof
KR102148948B1 (en) Multi tasking method of electronic apparatus and electronic apparatus thereof
US10186244B2 (en) Sound effect processing method and device, plug-in unit manager and sound effect plug-in unit
CN108027706A (en) A kind of application interface display methods and terminal device
US10402222B2 (en) Task migration method and apparatus
CN106502703B (en) Function calling method and device
US20150128079A1 (en) Method for executing function in response to touch input and electronic device implementing the same
WO2021110133A1 (en) Control operation method and electronic device
US20220253207A1 (en) Display method and electronic device
US10545663B2 (en) Method for changing an input mode in an electronic device
WO2023024900A1 (en) Method for secure boot checking and electronic device
US20140304720A1 (en) Method for starting process of application and computer system
US20170285842A1 (en) Electronic device and method of receiving user input thereof
WO2021244459A1 (en) Input method and electronic device
US10599444B2 (en) Extensible input stack for processing input device data
KR102116984B1 (en) Method for controlling memory swap operation and data processing system adopting the same
US20140250251A1 (en) Automatically and transparently preserving testing state across sessions
US9600048B2 (en) Devices and methods for controlling operation of arithmetic and logic unit
CN117971448A (en) Application starting method and electronic equipment
WO2022188667A1 (en) Screen rotation processing method and apparatus, medium and electronic device
WO2021197242A1 (en) Copying and pasting method, electronic device and system
US9880874B2 (en) Process operating method and apparatus thereof
WO2019128545A1 (en) Process handling method, and electronic device and computer-readable storage medium
CN116028005B (en) Audio session acquisition method, device, equipment and storage medium
CN116027878B (en) Power consumption adjustment method and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication