Method for Controlling Application and Terminal Device
First Claim
1. A method for controlling application, comprising:
- obtaining a reference startup time length of a target application of a mobile terminal when a control instruction of starting the target application is detected;
accelerating startup of the target application when the reference startup time length is greater than or equal to a preset time length, obtaining a reference percentage of idle resources of cores of the mobile terminal, and determining, according to a pre-stored mapping relationship between accelerating startup time lengths of the target application and percentages of idle resources of the cores, an accelerating startup time length corresponding to the reference percentage of the idle resources of the cores; and
stopping accelerating the startup of the target application based on a determination that a time length of accelerating the startup of the target application is greater than or equal to the accelerating startup time length;
obtaining the reference percentage of the idle resources of the cores of the mobile terminal comprises;
determining the reference percentage of the idle resources of the cores of the mobile terminal according to m idle cores of n cores of the mobile terminal;
or determining the reference percentage of the idle resources of the cores of the mobile terminal according to the m idle cores of the n cores of the mobile terminal and a percentage of remaining idle resources of each of n-m running cores.
3 Assignments
0 Petitions
Accused Products
Abstract
A method for controlling application includes following operations. Startup of a target application of a terminal device is accelerated in response a control instruction of starting the target application. Accelerating the startup of the target application is stopped when a duration of accelerating the startup of the target application reaches a preset value, based on that a time length required for successfully starting the target application is greater than or equal to a preset time length, or accelerating the startup of the target application is stopped when a refresh rate of frames of a main thread of the target application reaches or exceeds a preset refresh rate, based on that the time length required for successfully starting the target application is less than the preset time length. A related terminal device is also provided.
3 Citations
20 Claims
-
1. A method for controlling application, comprising:
-
obtaining a reference startup time length of a target application of a mobile terminal when a control instruction of starting the target application is detected; accelerating startup of the target application when the reference startup time length is greater than or equal to a preset time length, obtaining a reference percentage of idle resources of cores of the mobile terminal, and determining, according to a pre-stored mapping relationship between accelerating startup time lengths of the target application and percentages of idle resources of the cores, an accelerating startup time length corresponding to the reference percentage of the idle resources of the cores; and stopping accelerating the startup of the target application based on a determination that a time length of accelerating the startup of the target application is greater than or equal to the accelerating startup time length; obtaining the reference percentage of the idle resources of the cores of the mobile terminal comprises; determining the reference percentage of the idle resources of the cores of the mobile terminal according to m idle cores of n cores of the mobile terminal;
or determining the reference percentage of the idle resources of the cores of the mobile terminal according to the m idle cores of the n cores of the mobile terminal and a percentage of remaining idle resources of each of n-m running cores. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A mobile terminal comprising:
-
a time length obtaining unit, configured to obtain a reference startup time length of a target application of the mobile terminal when a control instruction of starting the target application of the mobile terminal is detected; a first accelerating startup unit, configured to accelerate startup of the target application when the reference startup time length is greater than or equal to a preset time length, obtain a reference percentage of idle resources of cores of the mobile terminal, and determine, according to a pre-stored mapping relationship between accelerating startup time lengths of the target application and percentages of idle resources of the cores, an accelerating startup time length corresponding to the reference percentage of the idle resources of the cores; and a first accelerating stop unit, configured to stop accelerating the startup of the target application when a time length of accelerating the startup of the target application is greater than or equal to the accelerating startup time length; the first accelerating startup unit configured to obtain the reference percentage of the idle resources of the cores of the mobile terminal is configured to; determine the reference percentage of the idle resources of the cores of the mobile terminal according to m idle cores of n cores of the mobile terminal;
ordetermine the reference percentage of the idle resources of the cores of the mobile terminal according to the m idle cores of the n cores of the mobile terminal and a percentage of remaining idle resources of each of n-m running cores. - View Dependent Claims (10, 11, 12, 13)
-
-
14. A mobile terminal comprising:
-
a processor; a memory; a communication interface; and a communication bus; the processor, the memory, and the communication interface being coupled with and communicating with each other via the communication bus; the memory storing executable program codes; the communication interface being configured for wireless communication; the processor being configured to invoke the executable program codes in the memory to perform following acts; obtaining a reference startup time length of a target application of a mobile terminal when a control instruction of starting the target application is detected; accelerating startup of the target application when the reference startup time length is greater than or equal to a preset time length, obtaining a reference percentage of idle resources of cores of the mobile terminal, and determining, according to a pre-stored mapping relationship between accelerating startup time lengths of the target application and percentages of idle resources of the cores, an accelerating startup time length corresponding to the reference percentage of the idle resources of the cores; and stopping accelerating the startup of the target application based on a determination that a time length of accelerating the startup of the target application is greater than or equal to the accelerating startup time length; and the processor being configured to invoke the executable program codes in the memory to perform obtaining the reference percentage of the idle resources of the cores of the mobile terminal is configured to perform following acts; determining the reference percentage of the idle resources of the cores of the mobile terminal according to m idle cores of n cores of the mobile terminal;
ordetermining the reference percentage of the idle resources of the cores of the mobile terminal according to the m idle cores of the n cores of the mobile terminal and a percentage of remaining idle resources of each of n-m running cores. - View Dependent Claims (15, 16, 17, 18, 19, 20)
-
Specification