Method for application action synchronization, terminal device, and storage medium
First Claim
1. A method for synchronizing actions of foreground and background applications, comprising:
- receiving a request for synchronizing actions of foreground applications and/or background applications to a kernel space of an operating system, the request comprising action parameters of the foreground applications and/or background applications, the action parameters comprises a preset expiration time, or, the action parameters comprises a stopping action and a maximum value of the expiration time, wherein the request is sent by the applications;
obtaining action categories of the foreground applications and/or background applications and carrying out an action determination, according to the action parameters of the foreground applications and/or background applications, wherein the actions comprises at least one of an application launch action, a wake-up action, an animated picture switching action, a sliding operation action, a software download action or whether the action is stopped, in an open-loop action when the foreground applications and/or background applications being interacted with a user, and at least one of a software installation action, a software video capturing action, a photographing action, a video encoding action, a preview action, a video playback action, an audio playback action, or an input and output action, in a close-loop action; and
sending results of the action categories and the action determination of the foreground applications and/or background applications to the kernel space, thereby providing, a basis for processing task scheduling and system running core number/frequency, to the kernel space, and enabling the kernel to match with run requirements of the foreground applications and/or the background applications precisely;
wherein the request further comprises identifiers of the foreground applications and/or background applications, and the method further comprises;
determining whether the foreground applications and/or background applications have an authority to synchronize the actions of the applications to the kernel space, according to the identifiers of the foreground applications and/or the background applications;
carrying out the receiving the request for synchronizing the actions of the foreground applications and/or the background applications to the kernel space of the operating system when a determination result is that the foreground applications and/or the background applications have the authority to synchronize the actions of the applications to the kernel space, according to the identifiers of the foreground applications and/or the background applications; and
receiving the request for synchronizing the actions of the foreground applications and/or the background applications to the kernel space of the operating system via an action control service interface when the determination result is that the foreground applications and/or the background applications do not have the authority to synchronize the actions of the applications to the kernel space, according to the identifiers of the foreground applications and/or the background applications.
1 Assignment
0 Petitions
Accused Products
Abstract
A method and an apparatus for application synchronization are provided. Therein, a request for synchronizing actions of applications to the kernel space of the operating system is received, action categories of the applications are obtained and an action determination is carried out, according to action parameters of the applications, and results of the action categories and the action determination of the applications are sent to the kernel space, the actions of the applications to be synchronized to the kernel space would be achieved, thereby a basis for processing the task scheduling and system running core number/frequency is provided to the kernel space.
8 Citations
6 Claims
-
1. A method for synchronizing actions of foreground and background applications, comprising:
-
receiving a request for synchronizing actions of foreground applications and/or background applications to a kernel space of an operating system, the request comprising action parameters of the foreground applications and/or background applications, the action parameters comprises a preset expiration time, or, the action parameters comprises a stopping action and a maximum value of the expiration time, wherein the request is sent by the applications; obtaining action categories of the foreground applications and/or background applications and carrying out an action determination, according to the action parameters of the foreground applications and/or background applications, wherein the actions comprises at least one of an application launch action, a wake-up action, an animated picture switching action, a sliding operation action, a software download action or whether the action is stopped, in an open-loop action when the foreground applications and/or background applications being interacted with a user, and at least one of a software installation action, a software video capturing action, a photographing action, a video encoding action, a preview action, a video playback action, an audio playback action, or an input and output action, in a close-loop action; and sending results of the action categories and the action determination of the foreground applications and/or background applications to the kernel space, thereby providing, a basis for processing task scheduling and system running core number/frequency, to the kernel space, and enabling the kernel to match with run requirements of the foreground applications and/or the background applications precisely; wherein the request further comprises identifiers of the foreground applications and/or background applications, and the method further comprises; determining whether the foreground applications and/or background applications have an authority to synchronize the actions of the applications to the kernel space, according to the identifiers of the foreground applications and/or the background applications; carrying out the receiving the request for synchronizing the actions of the foreground applications and/or the background applications to the kernel space of the operating system when a determination result is that the foreground applications and/or the background applications have the authority to synchronize the actions of the applications to the kernel space, according to the identifiers of the foreground applications and/or the background applications; and receiving the request for synchronizing the actions of the foreground applications and/or the background applications to the kernel space of the operating system via an action control service interface when the determination result is that the foreground applications and/or the background applications do not have the authority to synchronize the actions of the applications to the kernel space, according to the identifiers of the foreground applications and/or the background applications. - View Dependent Claims (2, 3)
-
-
4. An apparatus for synchronizing actions of foreground and background applications, comprising:
-
a receiving module, configured to receive a request for synchronizing actions of foreground applications and/or background applications to a kernel space of an operating system, the request comprising action parameters of the foreground applications and/or background applications, the action parameters comprises a preset expiration time, or, the action parameters comprises a stopping action and a maximum value of the expiration time, wherein the request is sent by the applications; an analyzing module, configured to obtain action categories of the foreground applications and/or background applications and carry out an action determination, according to the action parameters of the foreground applications and/or background applications, wherein the actions comprises at least one of an application launch action, a wake-up action, an animated picture switching action, a sliding operation action, a software download action, or whether the action is stopped, in an open-loop action when the foreground applications and/or background applications being interacted with a user, and at least one of a software installation action, a software video capturing action, a photographing action, a video encoding action, a preview action, a video playback action, an audio playback action, or an input and output action, in a close-loop action; and a sending module, configured to send results of the action categories and the action determination of the foreground applications and/or background applications to the kernel space, thereby providing, a basis for processing task scheduling and system running core number/frequency, to the kernel space, and enabling the kernel to match with run requirements of the foreground applications and/or the background applications precisely; wherein the request further comprises identifiers of the foreground applications and/or background applications, and the apparatus further comprises; a determination module, configured to determine whether the foreground applications and/or the background applications have an authority to synchronize the actions of the applications to the kernel space, according to the identifiers of the foreground applications and/or the background applications; the receiving module is further configured to receive the request for synchronizing the actions of the foreground applications and/or background applications to the kernel space of the operating system when a determination result of the determination module is that the foreground applications and/or the background applications have the authority to synchronize the actions of the applications to the kernel space, according to the identifiers of the foreground applications and/or the background applications; and the receiving module is further configured to receive the request for synchronizing the actions of the foreground applications and/or background applications to the kernel space of the operating system via an action control service interface when the determination result of the determination module is that the foreground applications and/or the background applications do not have the authority to synchronize the actions of the applications to the kernel space, according to the identifiers of the foreground applications and/or the background applications. - View Dependent Claims (5, 6)
-
Specification