Transition animation playing method and device, equipment and storage medium
By playing transition animation during the wake-up process of the second system in a dual-system electronic device, the problem of delaying the application triggering in the non-running state of the second system is solved, and the user experience is improved.
Patent Information
- Application Number
- CN202411207774.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-29
- Publication Date
- 2024-12-27
AI Technical Summary
In dual-system electronic devices, when the second system is in a non-operating state, the delay of triggering the application running is longer, resulting in an increase in the delay of user operation response, affecting the user experience.
The first system plays a transition animation during the process of awakening the second system into the running state, thereby responding to user operations before the application displays the application interface, and shortening the response delay.
It effectively shortens the response delay of user operations, improves user experience, and realizes timely response to user operations in front of the application display application interface.
Smart Images

Figure CN119201311A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of electronic devices, and in particular to a method, device, equipment and storage medium for playing a transition animation. Background Art
[0002] Mobile electronic devices (such as wearable devices) have the advantage of being easy to carry and use, but are limited by their size and usually have poor battery life.
[0003] In order to improve the battery life of electronic devices, it is necessary to reduce the power consumption of electronic devices. In the related art, by setting up a dual system for the electronic device, a first processor with a weaker performance runs the first system with a lower complexity, and a second processor with a stronger performance runs the second system with a higher complexity. Through the cooperation of the two systems, the power consumption of the electronic device can be reduced.
[0004] During the cooperation between the two systems, there is a scenario where the first system is in operation and the second system is not in operation. If the application in the second system is triggered to run in this scenario, it is necessary to wait for the second system to wake up and enter the operation state before the transition animation of the application and the user interface of the application can be displayed through the second system, resulting in a long delay in responding to user operations. Summary of the invention
[0005] The present application provides a method, device, equipment and storage medium for playing a transition animation, which can shorten the response delay to user operations. The technical solution is as follows:
[0006] According to one aspect of the present application, a method for playing a transition animation is provided, the method comprising:
[0007] When the first system is in the running state and the second system is in the non-running state other than the shutdown state, in response to a switching operation, waking up the second system to enter the running state, the switching operation being used to trigger running of an application in the second system;
[0008] Playing the transition animation by the first system at a time between a first time and a second time, the first time being a time when the second system starts to be awakened, and the second time being a time when the second system is awakened completely to start running the application;
[0009] In response to completing the playing of the transition animation, the application interface of the application is displayed through the second system, and the application interface is a user interface obtained by the second system running the application in the running state.
[0010] According to another aspect of the present application, a method for playing a transition animation is provided, which is applied to an electronic device, wherein the electronic device includes a first system and a second system, and the method includes:
[0011] When the state of the first system is the running state, and the state of the second system is the first non-running state or the second non-running state other than the shutdown state, determining a transition animation according to a switching operation;
[0012] Determining a start time of playing the transition animation according to a playing duration of the transition animation and / or a state of the second system;
[0013] The first system plays the transition animation when the start playback time arrives; wherein, the power consumption of the first non-operating state is higher than the power consumption of the second non-operating state, and the wake-up time of the first non-operating state is shorter than the wake-up time of the second non-operating state.
[0014] According to another aspect of the present application, a transition animation playback device is provided, the device comprising:
[0015] a switching module, configured to, in response to a switching operation, wake up the second system to enter the running state when the first system is in the running state and the second system is in a non-running state other than the shutdown state, wherein the switching operation is used to trigger the running of an application in the second system;
[0016] A display module, configured to start playing a transition animation at a time between a first time and a second time through the first system, wherein the first time is a time when the second system starts to be awakened, and the second time is a time when the second system is awakened completely to start running the application;
[0017] The display module is further configured to display an application interface of the application program through the second system in response to completion of playing the transition animation, wherein the application interface is a user interface obtained by the second system running the application program in the running state.
[0018] In an optional design, different switching operations have their own corresponding transition animations; the device also includes a determination module, which is used to determine the starting playback time of the transition animation according to the playback duration of the transition animation corresponding to the switching operation, and the starting playback time is between the first time and the second time; the display module is used to play the transition animation at the starting playback time through the first system, and the ending playback time of the transition animation played at the starting playback time and the playback duration is equal to or later than the second time.
[0019] In an optional design, the determination module is used to determine the first moment as the starting playback moment when the playback duration of the transition animation is equal to or greater than the wake-up duration, and the wake-up duration is related to the state of the second system; and / or, when the playback duration of the transition animation is less than the wake-up duration, determine the starting playback moment as the moment after the first moment is added with an extended time, and the extended time is equal to or greater than the difference between the wake-up duration and the playback duration.
[0020] In an optional design, the determination module is used to determine the first moment as the starting playback moment when the second system is awakened from a first non-operating state to the operating state and the playback duration of the transition animation is equal to or greater than the first wake-up duration; and / or, to determine the first moment as the starting playback moment when the second system is awakened from a second non-operating state to the operating state and the playback duration of the transition animation is equal to or greater than the second wake-up duration; wherein the power consumption of the first non-operating state is higher than that of the second non-operating state, and the first wake-up duration of the first non-operating state is less than the second wake-up duration of the second non-operating state.
[0021] In an optional design, the determination module is used to determine that the starting playback time is the time after the first time is increased by a preset extension time; wherein the preset extension time is equal to or greater than the difference between the wake-up duration and the target playback duration, and the target playback duration is the playback duration of the transition animation with the shortest playback duration among all transition animations.
[0022] In an optional design, the determination module is used to determine the time difference between the wake-up duration and the playback duration; and determine the start playback time as the time after adding the time difference to the first time.
[0023] In an optional design, the determination module is used to determine the difference between the first wake-up duration and the playback duration when the second system is awakened from the first non-operating state to the operating state; and / or to determine the difference between the second wake-up duration and the playback duration when the second system is awakened from the second non-operating state to the operating state; wherein the power consumption of the first non-operating state is higher than that of the second non-operating state, and the first wake-up duration of the first non-operating state is less than the second wake-up duration of the second non-operating state.
[0024] In an optional design, the device also includes a determination module for determining, when the playback duration of the transition animation is less than the wake-up duration, that the starting playback time is the time after the third time is added to the extended time, and the third time is the time when the switching operation ends.
[0025] In an optional design, the display module is used to display a system interface when the first system is in the running state and the second system is in the non-running state, and the system interface includes any user interface obtained by running the first system.
[0026] According to another aspect of the present application, a transition animation playback device is provided, the device comprising a first system and a second system, the device comprising:
[0027] a determination module, configured to determine a transition animation according to a switching operation when the state of the first system is an operating state and the state of the second system is a first non-operating state or a second non-operating state other than a shutdown state;
[0028] The determination module is further used to determine the start playing time of the transition animation according to the playing time of the transition animation and / or the state of the second system;
[0029] A display module is used for the first system to play the transition animation when the starting playback time is reached; wherein, the power consumption of the first non-operating state is higher than the power consumption of the second non-operating state, and the wake-up time of the first non-operating state is shorter than the wake-up time of the second non-operating state.
[0030] In an optional design, the determination module is used to determine the transition animation according to the type of the switching operation and / or the object of the switching operation; wherein the type of the switching operation includes one or more of: clicking, double-clicking, sliding, long pressing, pressing once, pressing twice, and rotating; and / or the object of the switching operation is a display interface or hardware corresponding to the switching operation.
[0031] In an optional design, the start playback time is later than or equal to the time when the second system starts waking up; and / or, the start playback time is earlier than or equal to a first preset time, and playing the transition animation within the first preset time meets the operation response speed requirement.
[0032] In an optional design, the determination module is used to determine the start playback time of the transition animation according to the playback duration of the transition animation and the wake-up duration corresponding to the state of the second system.
[0033] According to another aspect of the present application, an electronic device is provided, comprising a processor and a memory, wherein the memory stores at least one program, and the at least one program is loaded and executed by the processor to implement the method for playing the transition animation as described above.
[0034] According to another aspect of the present application, a computer-readable storage medium is provided, in which at least one program is stored. The at least one program is loaded and executed by a processor to implement the method for playing the transition animation as described above.
[0035] According to another aspect of the present application, a computer program product or computer program is provided, the computer program product or computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. A processor of an electronic device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the electronic device executes the transition animation playback method provided in the above aspect.
[0036] The beneficial effects of the technical solution provided by this application include at least:
[0037] When the second system is in a non-running state and an application in the second system is triggered to run, the first system displays a transition animation. Since the transition animation can respond to the operation of triggering the running of the application, and the transition animation is displayed in the process of waking up the second system to enter the running state, it is possible to respond to the user operation before the application is run to display the application interface of the application, thereby shortening the response delay to the user operation and improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0039] Figure 1 is a schematic diagram of a process of displaying a transition animation provided by an exemplary embodiment of the present application;
[0040] Figure 2 is a flowchart of a method for playing a transition animation provided by an exemplary embodiment of the present application;
[0041] Figure 3 is a flowchart of a method for playing a transition animation provided by an exemplary embodiment of the present application;
[0042] Figure 4 is a flowchart of a method for playing a transition animation provided by an exemplary embodiment of the present application;
[0043] Figure 5 is a timing diagram of an application interface of a display application provided by an exemplary embodiment of the present application;
[0044] Figure 6 is a timing diagram of an application interface of a display application provided by an exemplary embodiment of the present application;
[0045] Figure 7 is a timing diagram of an application interface of a display application provided by an exemplary embodiment of the present application;
[0046] Figure 8 is a structural schematic diagram of a transition animation playback device provided by an exemplary embodiment of the present application;
[0047] Fig. 9 is a structural schematic diagram of a transition animation playback device provided by an exemplary embodiment of the present application;
[0048] Fig.10 is a structural schematic diagram of a transition animation playback device provided by an exemplary embodiment of the present application;
[0049] Fig.11 It is a schematic diagram of the structure of a terminal provided by an exemplary embodiment of the present application.
[0050] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application. DETAILED DESCRIPTION
[0051] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0052] First, the nouns involved in this application are introduced:
[0053] Dual system: The same electronic device has two processors and two different systems. For example, the electronic device has a first processor and a second processor, the first processor is used to run the first system, and the second processor is used to run the second system. The system in the dual system can be understood as a program running on the processor, such as an operating system. In some embodiments, the first processor and the second processor may be two independently packaged chips; in some embodiments, the first processor and the second processor may be packaged in the same chip.
[0054] Deep sleep state: For chips, deep sleep is an ultra-low power mode that electronic devices enter in order to save power. In some embodiments, deep sleep is a state of suspend to memory. When an electronic device is in a deep sleep state, most central processing units (CPUs) and hardware processes are suspended, device functionality is reduced, and the network connection may also be disconnected. In some embodiments, only the key hardware of the electronic device can interrupt the deep sleep state, such as waking up the electronic device by receiving a call or pressing the power button of the device to exit the deep sleep state. Compared with the normal standby state, the deep sleep state can reduce battery consumption (power consumption) more. In some embodiments, for dual-system electronic devices, deep sleep is a state that one or more systems can enter. In some embodiments, when one system of a dual-system electronic device enters a deep sleep state, its corresponding processor and hardware processes are suspended, the overall functionality of the device is reduced, and the corresponding network connection of the system may also be disconnected.
[0055] Standby state: For the chip, the standby state is a state in which some electronic components of the electronic device are turned off, such as a state entered when no business is processed. In some embodiments, some background processes can be kept running at this time. In some embodiments, the standby state can also be understood as a dormant state and / or a sleep state. In some embodiments, when in the standby state, the screen of the electronic device is turned off, and the network connection is disconnected, allowing background tasks to run. For electronic devices with dual systems, the standby state is a state that one or more of the systems can enter. Therefore, when one of the systems enters the standby state, the display device display can be controlled by the other system. In some embodiments, when one system of the electronic device with dual systems enters the standby state, the system will disconnect from the network. For example, compared with the deep sleep state, the standby state turns off fewer electronic components corresponding to the system, and / or the power consumption of the electronic components corresponding to the system in the standby state is higher than that in the deep sleep state.
[0056] It should be noted that the deep sleep state and standby state of different processors (such as chips) may be designed differently, and there is no limitation on which modules are shut down and which modules are retained in the deep sleep state and standby state. The deep sleep state and standby state can be understood as states with different power consumption and wake-up time. For example, the power consumption of the deep sleep state is higher than the shutdown power consumption and lower than the standby power consumption; for another example, the wake-up time of the deep sleep state is less than the startup time of the shutdown state and longer than the wake-up time of the standby state.
[0057] Wearable devices: Wearable devices are portable electronic devices that are worn directly on the user or integrated into the user's clothes or accessories, including but not limited to watches, bracelets, and rings. Wearable devices not only provide hardware devices, but also provide powerful functions through the support of the software (system) set in them, combined with data interaction and cloud interaction. For example, wearable devices support monitoring health indicators, making and receiving calls, providing information notifications, etc.
[0058] Smartwatch: A smartwatch is a wearable device that combines the form of a watch with an intelligent system. Smartwatches can realize functions such as data processing, information display, and interactive control through built-in systems, processors, memory and other components. For example, smartwatches not only have the basic function of indicating time, but also can synchronize calls, text messages, emails, photos, music, etc. in other electronic devices (such as mobile phones), and collect activity data and physiological data of users through various sensors (such as accelerometers, gyroscopes, heart rate sensors, etc.), and connect with mobile phones or other electronic devices through wireless communication technology to realize functions such as message synchronization and health management.
[0059] The following is an introduction to the switching process of different system states:
[0060] In some embodiments, in a deep sleep state, some processors only retain memory and other hardware is turned off. Therefore, when exiting the deep sleep state to start the system and put the system into the running state, information can be loaded directly from the memory. When the system is completely shut down, that is, the system is in the off state, it takes a long time to restart. Therefore, starting the system from a deep sleep state is faster than starting from the off state. In addition, since the deep sleep state turns off more functions than the standby state, the power consumption is lower than the standby state, but the time required to wake up from the deep sleep state to enter the running state is longer than the time required to wake up from the standby state to enter the running state.
[0061] In a possible practical example, the wearable device includes a small-core processor and a large-core processor, the small-core processor may be a microcontroller unit (MCU), and the large-core processor is a central processing unit (CPU) with stronger performance than the small-core processor. The small-core processor runs an embedded system (MCU system), and the large-core processor runs an Android system. Among them, when the wearable device is turned off, the MCU system and the Android system are in a shutdown state. When the wearable device is turned on, the MCU system is usually always in a running state due to the low power consumption of the MCU system, and may also be in a standby state in some cases. The Android system can switch between a running state, a standby state, a deep sleep state, and a shutdown state. When the MCU system is in a running state and the Android system is in a state other than the running state, the display screen of the electronic device is controlled by the MCU system; when both the Android system and the MCU system are in a running state, the display screen of the electronic device is controlled by the Android system or the MCU system.
[0062] By setting up a dual system for an electronic device, the power consumption of the electronic device can be reduced through the cooperation of the two systems. For example, when the display screen of the electronic device is controlled by the first system with lower power consumption, the power consumption of the electronic device can be effectively reduced by making the second system with higher power consumption enter a standby state or a deep sleep state. In this case, since the second system is in a standby state or a deep sleep state when the first system controls the display screen to display the user interface (UI), and it takes a certain amount of time for the second system to exit the standby state or the deep sleep state, it also takes a certain amount of time for the second system to start the application. At this time, when starting an application in the second system from the first system, it is necessary to wait for the second system to be awakened and enter the running state before the transition animation of the application and the user interface of the application can be displayed through the second system, resulting in a long response delay to the user operation and a poor user experience.
[0063] The method provided in the present application can realize that in the above scenario, the first system displays a transition animation in the process of waking up the second system to enter the running state. Since the transition animation can respond to the operation of triggering the running of the application in the second system, it can respond to the user operation before running the application to display the application interface of the application, thereby shortening the response delay to the user operation and improving the user experience.
[0064] Figure 1 FIG. 1 is a schematic diagram of a process of displaying a transition animation provided by an exemplary embodiment of the present application. Figure 1As shown, when the first system is in the running state and the second system is in the non-running state other than the shutdown state, in response to the switching operation of triggering the running of the application in the second system, the electronic device will wake up the second system to enter the running state. Optionally, the non-running state includes a first non-running state and / or a second non-running state, for example, the first non-running state is a standby state, and the second non-running state is a deep sleep state. After the second system switches to the running state, the application will start to run to draw / render the application interface of the application, and the application interface is the user interface obtained by running the application. When the first system is in the running state and the second system is in the non-running state, the display screen of the electronic device is controlled by the first system, for example, the system interface of the first system can be displayed, and the system interface includes any user interface obtained by running the first system, such as a dial interface and a user interface of the application of the first system. After waking up the second system to enter the running state, the display screen of the electronic device can be controlled by the second system or the first system to display the application interface of the application in the second system. Optionally, the first system is run by the first processor, and the second system is run by the second processor. The power consumption of the first non-running state is higher than that of the second non-running state, and the first wake-up time of the first non-running state is less than the second wake-up time of the second non-running state. In some embodiments, the first wake-up duration is the duration for waking up the second system from a first non-operating state to an operating state, and the second wake-up duration is the duration for waking up the second system from a second non-operating state to an operating state.
[0065] In the above process of waking up the second system to run the application in the second system, the electronic device will start playing the transition animation through the first system at a moment between the first moment 101 and the second moment 102. Among them, the first moment 101 is the moment of starting to wake up the second system, the second moment 102 is the moment of completing the wake-up of the second system to start running the application, and the transition animation is played by the first system. Optionally, different switching operations have their own corresponding transition animations, and different transition animations have their own corresponding playback durations. For example, a switching operation implemented by sliding and a switching operation implemented by clicking correspond to different transition animations. Exemplarily, the transition animation played between the first moment 101 and the second moment 102 includes but is not limited to the following. Figure 1Four situations are shown: in the first situation, the playing time of the transition animation is longer than the wake-up time required to wake up the second system. In this case, the transition animation can be played starting at the first moment 101. In the second situation, the playing time of the transition animation is equal to the wake-up time. In this case, the transition animation can be played starting at the first moment 101. In the third situation, the playing time of the transition animation is shorter than the wake-up time. In this case, the transition animation can be played starting at the moment after the extended time is added to the first moment 101. In this case, the extended time is used to make the end playing time of the transition animation at the second moment 102 or after the second moment 102. In the fourth situation, the playing time of the transition animation is shorter than the wake-up time. In this case, the transition animation can be played starting at the moment after the extended time is added to the first moment 101. In this case, the extended time is used to make the end playing time of the transition animation at the second moment 102.
[0066] When the second system is in a non-running state and an application in the second system is triggered to run, the first system displays a transition animation. Since the transition animation can respond to the operation of triggering the running of the application, and the transition animation is displayed in the process of waking up the second system to enter the running state, it is possible to respond to the user operation before the application is run to display the application interface of the application, thereby shortening the response delay to the user operation and improving the user experience.
[0067] Figure 2 FIG. 1 is a flow chart of a method for playing a transition animation provided by an exemplary embodiment of the present application. The method can be used in electronic devices. Figure 2 As shown, the method includes:
[0068] Step 202: When the first system is in the running state and the second system is in a non-running state other than the shutdown state, in response to a switching operation, wake up the second system and put it into the running state.
[0069] In some embodiments, the switching operation may include one or more actions, for example, clicking includes touching and releasing, and sliding includes touching, moving, and releasing. Therefore, it may be that an action in the switching operation (such as touching the application icon in a single-click operation) triggers waking up the second system, and another action (such as releasing the touch screen in a single-click operation) triggers running the application of the second system; of course, it may also be that one action triggers waking up the second system and triggers running the application of the second system, all of which fall within the scope of protection of the present application.
[0070] The electronic device supports dual systems, and the electronic device is provided with a first system and a second system. Optionally, the relationship between the first system and the second system includes one or more of the following relationships: the complexity of the second system is higher than that of the first system, the functions of the second system are more than those of the first system, and the power consumption of the first system in the running state is lower than that of the second system in the running state. The power consumption of the first system in the running state is higher than that of the first system in other states. The power consumption of the second system in the running state is higher than that of the second system in other states. Optionally, the other states of the first system include one or more of a standby state, a deep sleep state, and a shutdown state. The other states of the second system include one or more of a standby state, a deep sleep state, and a shutdown state. In some embodiments, the above-mentioned non-operating state can also be understood as a low power consumption state and an energy-saving state. The non-operating state is different from the operating state and the shutdown state.
[0071] The following is an exemplary introduction to different states of the system: In some embodiments, from the perspective of energy saving, the power consumption of the system in the running state is higher than that in the standby state, and the power consumption of the system in the standby state is higher than that in the deep sleep state, and the power consumption of the system in the deep sleep state is higher than that in the shutdown state. In some embodiments, the power consumption of the system in the shutdown state is 0, but when a shutdown timer task is set, such as a shutdown alarm, the power consumption of the system in the shutdown state is greater than 0. In terms of the functions provided by the system, the system provides more functions in the running state than in the standby state, and the system provides more functions in the standby state than in the deep sleep state, and the system provides more functions in the deep sleep state than in the shutdown state. For example, from the perspective of the activation of the electronic components corresponding to the system, for some processors, the system has more electronic components activated in the running state than in the standby state, and the system has more electronic components activated in the standby state than in the deep sleep state, and the system has more electronic components activated in the deep sleep state than in the shutdown state. From the dimension of the wake-up time to wake up the system to the running state, the wake-up time of the system from the standby state to the running state is less than that of the deep sleep state, and the wake-up time of the system from the deep sleep state to the running state is less than the time from the shutdown state to the running state. In some embodiments, in the running state, the system-related hardware works normally; in the standby state, most of the system-related hardware will be turned off; in the deep sleep state, most of the system-related hardware will be turned off, and only the most basic system functions will be provided; in the shutdown state, all the system-related hardware will be turned off and powered off, or only the scheduled task function will be provided.
[0072] In some embodiments, the running state is the state that can provide the most functions among the different states of the system, such as the state that provides all functions, and / or, the state in which the most electronic components are turned on among the electronic components used to run the system, and / or, the state that supports the system to run its corresponding application, such as the state that supports the system to run its corresponding application in the foreground. The deep sleep state is the state in which the number of electronic components corresponding to the second system is turned off, except for the shutdown state. For example, the deep sleep state is a state in which only the memory corresponding to the second system is powered on, and other electronic components corresponding to the second system are powered off. For example, the shutdown state may power off all electronic components corresponding to the second system, while in some embodiments, the deep sleep state will always power on the memory corresponding to the second system, so that the application can continue to run according to the information in the memory after the second system enters the running state. The number of electronic components turned off by the second system in the standby state is less than the number of electronic components turned off by the second system in the deep sleep state. For example, the standby state is a state in which the second system is disconnected from the network and some background processes of the second system can be kept running.
[0073] In some embodiments, the first system is an embedded system and the second system is a non-embedded system, for example, the first system is an MCU system and the second system is an Android system. It should be noted that in addition to supporting the first system and the second system, the electronic device can also support systems other than the first system and the second system, and this application does not limit this.
[0074] Optionally, the electronic device is provided with a first processor and a second processor, the first system is run by the first processor, and the second system is run by the second processor. The relationship between the first processor and the second processor includes one or more of the following relationships: the performance of the second processor is stronger than that of the first processor, the operating power consumption of the second processor is higher than that of the first processor, the power consumption of the second processor when running the second system is higher than that of the first processor when running the first system, and the energy efficiency of the second processor is stronger than that of the first processor. In some embodiments, the first processor is an MCU and the second processor is a CPU.
[0075] When the electronic device is powered on, if the first system is in operation and the second system is not in operation, the display screen of the electronic device is controlled by the first system. If the first system is not in operation and the second system is in operation, the display screen of the electronic device is controlled by the second system. If both the first system and the second system are in operation, the display screen of the electronic device is controlled by the first system or by the second system.
[0076] The switching operation is used to trigger the running of the application in the second system. The application in the second system includes an application pre-installed in the electronic device and run by the second system, and / or an application installed in the electronic device by the user and run by the second system. Optionally, the extension of the application in the second system belongs to the extension supported by the second system, for example, if the second system is an Android system, the extension of the application is .apk.
[0077] Since the application that triggers the operation is an application in the second system, the second system needs to be in the operating state to be able to run the application. Therefore, when the application is triggered to run, the electronic device will wake up the second system from the non-operating state to the operating state, thereby running the application in the second system. Optionally, the non-operating state of the second system includes a first non-operating state and / or a second non-operating state, for example, including a standby state and / or a deep sleep state. The application that is triggered to run by the switching operation includes any application in the second system.
[0078] In some embodiments, the electronic device includes a wearable device, for example, the electronic device includes a smart watch.
[0079] Step 204: Start playing the transition animation at a time between the first time and the second time through the first system.
[0080] The first moment is the moment of starting to wake up the second system, that is, the first moment is the starting moment of waking up the second system from a non-operating state to an operating state. The second moment is the moment of completing waking up the second system to start running the application corresponding to the switching operation. For example, the second moment can be the moment of completing waking up the second system from a non-operating state to an operating state, and the second moment can also be the moment when the second system starts running the application corresponding to the switching operation. In some embodiments, since the interval between the moment of completing waking up the second system from a non-operating state to an operating state and the moment of starting to run the application corresponding to the switching operation is short, the two moments can be regarded as the same moment.
[0081] The transition animation is provided by the first system, and the transition animation is preset in the first system. Optionally, the transition animation is an animation for transitioning the system interface displayed by the first system to the application interface of the application. For example, the switching operation is a sliding operation on the system interface, in which case the transition animation may be an animation of sliding the system interface out of the display area of the display screen and sliding the application interface into the display area of the display screen. For example, the switching operation is a click operation on the application icon in the system interface, in which case the transition animation may be an animation of enlarging the application icon and switching to display the application interface when the application icon is enlarged to a preset ratio. The system interface includes any user interface obtained by running the first system, such as a dial interface and a user interface of an application of the first system.
[0082] Optionally, different switching operations have their own corresponding transition animations, and different transition animations have their own corresponding playback durations. Different switching operations have different types and / or objects. Optionally, the types of switching operations include: one or more of click, double-click, slide, long press, press once, press twice, and rotate. Optionally, the object of the switching operation includes the display interface and / or hardware corresponding to the switching operation. For example, the switching operation is an operation on the display interface displayed on the display screen of the electronic device, and / or the switching operation is an operation on the physical buttons of the electronic device. For example, the click operation and the long press operation correspond to the transition animation of zooming, and the sliding operation corresponds to the transition animation of sliding left and right. The playback duration of the transition animation of the click operation is shorter or the same as the duration of the transition animation of the long press operation. For another example, there is also a difference between the transition animation of clicking an application icon in the user interface and the transition animation of clicking a component (widget) in the user interface; there is also a difference between the transition animation of clicking a component (widget) in the user interface and the transition animation of clicking an icon in the control center. Optionally, during the process of playing the transition animation, the first system determines the transition animation to be played this time from the preset transition animations according to the switching operation, so as to start playing the determined transition animation at a time between the first moment and the second moment.
[0083] Step 206: In response to completing the playing of the transition animation, displaying the application interface of the application program through the second system.
[0084] The application interface is a user interface obtained by running the application in the running state of the second system. The second system can render the application interface of the application by running the application, so as to display the application interface of the application through the second system. The moment when the transition animation is finished playing refers to the moment when the transition animation ends playing. In some embodiments, the moment when the transition animation ends playing is between the first moment and the second moment. In some embodiments, the moment when the transition animation ends playing is after the second moment. In some embodiments, the moment when the transition animation ends playing is at the second moment.
[0085] In some embodiments, when the application interface of the application is displayed through the second system, the electronic device transfers the control of the display screen from the first system to the second system. For example, when the application interface of the application needs to be displayed through the second system, the control of the display screen is transferred to the second system.
[0086] To summarize, the method provided in this embodiment is that when the second system is in a non-running state and an application in the second system is triggered to run, the first system displays a transition animation. Since the transition animation can respond to the operation of triggering the running of the application, and the transition animation is displayed in the process of waking up the second system to enter the running state, it is possible to respond to the user operation before the application is run to display the application interface of the application, thereby shortening the response delay to the user operation and improving the user experience.
[0087] Figure 3 FIG. 1 is a flow chart of a method for playing a transition animation provided by an exemplary embodiment of the present application. The method can be used in electronic devices. Figure 3 As shown, the method includes:
[0088] Step 302: When the state of the first system is the running state and the state of the second system is the first non-running state or the second non-running state other than the shutdown state, determine a transition animation according to a switching operation.
[0089] The electronic device supports dual systems, and a first system and a second system are provided in the electronic device. Optionally, the first non-operating state is a standby state, and the second non-operating state is a deep sleep state. In some embodiments, the power consumption of the first non-operating state is higher than that of the second non-operating state, and the first wake-up time of the first non-operating state is shorter than the second wake-up time of the second non-operating state. The first wake-up time is the time required to wake up the second system from the first non-operating state to the operating state, and the second wake-up time is the time required to wake up the second system from the second non-operating state to the operating state.
[0090] The switching operation is used to trigger the running of the application in the second system, and the types and / or objects of different switching operations may be different. Optionally, the types of switching operations include: one or more of clicking, double-clicking, sliding, long pressing, pressing once, pressing twice, and rotating. Optionally, the object of the switching operation includes a display interface and / or hardware corresponding to the switching operation. For example, the switching operation is an operation on a display interface displayed on a display screen of an electronic device, and / or the switching operation is an operation on a physical button of an electronic device.
[0091] The transition animation is provided by the first system, and the transition animation is preset in the first system. Optionally, the transition animation is an animation for transitioning the system interface displayed by the first system to the application interface of the application. For example, the switching operation is a sliding operation on the system interface, in which case the transition animation may be an animation of sliding the system interface out of the display area of the display screen and sliding the application interface into the display area of the display screen. For example, the switching operation is a click operation on the application icon in the system interface, in which case the transition animation may be an animation of enlarging the application icon and switching to display the application interface when the application icon is enlarged to a preset ratio. The system interface includes any user interface obtained by running the first system, such as a dial interface and a user interface of an application of the first system.
[0092] Different switching operations have their own corresponding transition animations. When receiving a switching operation, the first system will determine the transition animation corresponding to the switching operation in the preset transition animations according to the switching operation. For example, the click operation and the long press operation correspond to the transition animation of zooming, and the sliding operation corresponds to the transition animation of sliding left and right. The playback duration of the transition animation of the click operation is shorter than or the same as the duration of the transition animation of the long press operation. There is also a difference between the transition animation of clicking an application icon in the user interface and the transition animation of clicking a component in the user interface; there is also a difference between the transition animation of clicking a component in the user interface and the transition animation of clicking an icon in the control center.
[0093] Step 304: Determine the start time of playing the transition animation according to the playing duration of the transition animation and / or the state of the second system.
[0094] Different transition animations have their own corresponding playback durations, and the playback durations of different transition animations may be the same or different. After determining the transition animation corresponding to the switching operation, the playback duration of the transition animation may be obtained. The state of the second system refers to the second system being in a first non-operating state or a second non-operating state before being awakened. In some embodiments, when determining the start playback time of the transition animation based on the state of the second system, the start playback time determined for the second system in the first non-operating state and the second system in the second non-operating state may be different.
[0095] In some embodiments, the start playback time is later than or equal to the time when the second system starts waking up. In some embodiments, the time when the second system starts waking up can be understood as the second time. In some embodiments, the electronic device determines the start playback time of the transition animation based on the playback time of the transition animation and the wake-up time corresponding to the state of the second system. For the process of determining the start playback time of the transition animation, refer to the relevant contents in other embodiments, and this embodiment will not be described in detail.
[0096] In some embodiments, the start playback time is earlier than or equal to the first preset time, and the first system plays the transition animation within the first preset time to meet the operation response speed requirement. Optionally, the first preset time corresponds to a preset duration, and the preset duration is preset in the electronic device. When the electronic device receives a switching operation, the time after the switching operation is received plus the preset duration is determined as the first preset time, so that the transition animation is played before or at the first preset time. For example, the electronic device starts playing the transition animation 50ms after the switching operation is received.
[0097] In some embodiments, the end time of the transition animation is controlled to be no earlier than before the application corresponding to the second system is started, so as to ensure that the application interface can be switched to display after the transition animation is played. The end time is the time when the transition animation ends when the transition animation is played according to the start time.
[0098] Step 306: The first system plays the transition animation when the start playing time arrives.
[0099] It should be noted that this embodiment can be implemented alone or in combination with the contents of other embodiments, and this application does not limit this.
[0100] In summary, the method provided in this embodiment is that when the switching operation of triggering the running of the application in the second system is received while the second system is in a non-running state, the first system displays a transition animation. Since the transition animation can respond to the operation of triggering the running of the application, and the transition animation is provided by the first system, the transition animation can be displayed in the process of waking up the second system to enter the running state, so that the user operation can be responded to before the application is run to display the application interface of the application, thereby shortening the response delay to the user operation and improving the user experience.
[0101] Figure 4 FIG. 1 is a flow chart of a method for playing a transition animation provided by an exemplary embodiment of the present application. The method can be used in electronic devices. Figure 4 As shown, the method includes:
[0102] Step 402: When the first system is in the running state and the second system is in a non-running state other than the shutdown state, in response to a switching operation, wake up the second system and put it into the running state.
[0103] The electronic device supports dual systems, and a first system and a second system are provided in the electronic device. Optionally, the non-operating state of the second system includes a first non-operating state and / or a second non-operating state, for example, the first non-operating state is a standby state, and the second non-operating state is a deep sleep state. In some embodiments, the power consumption of the first non-operating state is higher than that of the second non-operating state, and the first wake-up duration of the first non-operating state is shorter than the second wake-up duration of the second non-operating state. The first wake-up duration is the duration required to wake up the second system from the first non-operating state to the operating state, and the second wake-up duration is the duration required to wake up the second system from the second non-operating state to the operating state.
[0104] In some embodiments, the first system is an embedded system and the second system is a non-embedded system, for example, the first system is an MCU system and the second system is an Android system. In some embodiments, the electronic device is provided with a first processor and a second processor, the first system is run by the first processor, and the second system is run by the second processor. In some embodiments, the electronic device includes a wearable device, for example, the electronic device includes a smart watch.
[0105] The switching operation is used to trigger the running of the application in the second system, and different switching operations have different types and / or objects. Optionally, the types of switching operations include: one or more of click, double-click, slide, long press, press once, press twice, and rotate. Optionally, the object of the switching operation includes a display interface and / or hardware corresponding to the switching operation. For example, the switching operation is an operation on the display interface displayed on the display screen of the electronic device, and / or the switching operation is an operation on the physical buttons of the electronic device. Since the application that triggers the running is an application in the second system, the second system needs to be in the running state to run the application. Therefore, when the running of the application is triggered, the electronic device will wake up the second system from the non-running state to the running state, thereby realizing the running of the application in the second system.
[0106] In some embodiments, when the first system is in operation and the second system is in non-operation, the display screen of the electronic device is controlled by the first system. In this case, if the electronic device is in a screen-on state, the electronic device can display a system interface, which includes any user interface obtained by running the first system, such as a dial interface and a user interface of an application of the first system. When both the first system and the second system are in operation, the display screen of the electronic device is controlled by the first system or the second system. In this case, if the electronic device is in a screen-on state, the electronic device can display a user interface obtained by running the second system, such as an application interface of the above application.
[0107] Step 404: Determine the start time of the transition animation according to the duration of the transition animation corresponding to the current switching operation.
[0108] The start playback moment is between the first moment and the second moment. Optionally, the moment between the first moment and the second moment includes the moment between the first moment and / or the moment between the first moment and the second moment. The first moment is the moment of starting to wake up the second system, that is, the first moment is the starting moment of waking up the second system from a non-operating state to an operating state. The second moment is the moment of completing the awakening of the second system to start running the application corresponding to the switching operation, that is, the second moment is the completion moment of waking up the second system from a non-operating state to an operating state, and the second moment may also be the moment when the second system starts running the application corresponding to the switching operation. In some embodiments, since the interval between the completion moment of waking up the second system from a non-operating state to an operating state and the moment of starting to run the application corresponding to the switching operation is short, the two moments can be regarded as the same moment.
[0109] The transition animation is provided by the first system, and the transition animation is preset in the first system. Optionally, the transition animation is an animation for transitioning the system interface displayed by the first system to the application interface of the application. The system interface includes any user interface obtained by running the first system, such as a dial interface and a user interface of the application of the first system. The application interface is a user interface obtained by the second system running the application corresponding to the switching operation. For example, the switching operation is a sliding operation on the system interface, in which case the transition animation can be an animation of sliding the system interface out of the display area of the display screen and sliding the application interface into the display area of the display screen. For example, the switching operation is a click operation on the application icon in the system interface, in which case the transition animation can be an animation of enlarging the application icon and switching the display of the application interface when the application icon is enlarged to a preset ratio.
[0110] Different switching operations have their own corresponding transition animations, and different transition animations have their own corresponding playback durations. In some embodiments, the above correspondence is preset in the electronic device. Different switching operations have different types and / or objects. For example, the click operation and the long press operation correspond to the transition animation of zooming, and the sliding operation corresponds to the transition animation of sliding left and right. The playback duration of the transition animation of the click operation is shorter or the same as the transition animation duration of the long press operation. For another example, there is also a difference between the transition animation of clicking the application icon in the user interface and the transition animation of clicking the component in the user interface; there is also a difference between the transition animation of clicking the component in the user interface and the transition animation of clicking the icon in the control center. In some embodiments, the starting playback time of the transition animation is determined according to the playback duration of the transition animation corresponding to the switching operation, so that the ending playback time of the transition animation played at the starting playback time and the playback duration is equal to or later than the second time. The ending playback time is the moment when the transition animation playback is completed in the case of a transition animation whose playback duration is the playback duration according to the starting playback time.
[0111] Optionally, when the playing time of the transition animation is equal to or greater than the wake-up time, the electronic device determines the first moment as the starting playing time of the transition animation. This situation can be understood as the playing time of the transition animation exceeds the time required to wake up the second system, and the first moment is determined as the starting playing time of the transition animation, so as to ensure that the second system has been awakened when the transition animation ends. In the case where the playing time of the transition animation is less than the wake-up time, the electronic device determines the starting playing time as the moment after the extension time is added to the first moment. This situation can be understood as the playing time of the transition animation is less than the time required to wake up the second system, and the moment after the first moment is extended is determined as the starting playing time of the transition animation, so as to ensure that the second system has been awakened when the transition animation ends. Among them, the wake-up time is related to the state of the second system, and the wake-up time is the time required to wake up the second system from a non-operating state to a running state. For example, the wake-up time of the second system in the first non-operating state is less than the wake-up time of the second system in the second non-operating state. Optionally, the wake-up time is determined by the developer based on the statistical results of multiple statistics on the time required to wake up the second system from a non-operating state to a running state, such as the average value of each statistical result. The extended time is equal to or greater than the difference between the wake-up time and the play time.
[0112] For the case where the playback duration of the transition animation is equal to or greater than the wake-up duration: Optionally, the non-operating state of the second system includes a first non-operating state and / or a second non-operating state. For example, the first non-operating state is a standby state, and the second non-operating state is a deep sleep state. When the second system is awakened from the first non-operating state to the operating state, and the playback duration of the transition animation is equal to or greater than the first wake-up duration, the electronic device will determine the first moment as the starting playback moment. When the second system is awakened from the second non-operating state to the operating state, and the playback duration of the transition animation is equal to or greater than the second wake-up duration, the electronic device will determine the first moment as the starting playback moment. Among them, the first wake-up duration is the duration of the second system being awakened from the first non-operating state to the operating state. The second wake-up duration is the duration of the second system being awakened from the second non-operating state to the operating state. In some embodiments, the power consumption of the first non-operating state is higher than that of the second non-operating state, and the first wake-up duration of the first non-operating state is less than the second wake-up duration of the second non-operating state.
[0113] For the case where the playback duration of the transition animation is less than the wake-up duration: in a possible implementation, the electronic device determines the starting playback moment as the moment after the preset extension time is added to the first moment. Among them, the preset extension time is equal to or greater than the difference between the wake-up duration and the target playback duration, and the target playback duration is the playback duration of the transition animation with the shortest playback duration among all the transition animations of the electronic device. That is, no matter which transition animation corresponds to the switching operation, when determining the starting playback moment of the transition animation, the moment after the preset extension time is added to the first moment will be determined as the starting playback moment of the transition animation. Since the preset extension time is equal to or greater than the difference between the wake-up duration and the target playback duration, for any transition animation corresponding to the switching operation, the starting playback moment determined by the above method can make the ending playback moment of the transition animation be located at the second moment or after the second moment. It should be noted that, when the second system is awakened by the first non-operating state, the above wake-up duration refers to the first wake-up duration; when the second system is awakened by the second non-operating state, the above wake-up duration refers to the second wake-up duration.
[0114] In another possible implementation, the electronic device determines the time difference between the wake-up duration and the playback duration, and determines the start playback time as the time after adding the time difference to the first time. In this case, the start playback time determined by the above method can make the end playback time of the transition animation at the second time. In some embodiments, the electronic device calculates the time difference based on the wake-up duration and the playback duration each time it needs to obtain the above time difference. In some embodiments, the electronic device obtains the time difference based on the state of the second system and the playback duration each time it needs to obtain the above time difference, without calculating the time difference. Optionally, combinations of different states of the second system and different playback durations, as well as time differences corresponding to different combinations, are preset in the electronic device. Different states of the second system refer to the types of non-operating states of the second system.
[0115] Optionally, the non-operating state of the second system includes a first non-operating state and / or a second non-operating state. For example, the first non-operating state is a standby state, and the second non-operating state is a deep sleep state. In the case where the second system is switched from the first non-operating state to the operating state, the electronic device will determine the time difference between the first wake-up duration and the playback duration as the time difference used for determining the start playback time. In the case where the second system is switched from the second non-operating state to the operating state, the electronic device will determine the time difference between the second wake-up duration and the playback duration as the time difference used for determining the start playback time. Among them, the power consumption of the first non-operating state is higher than that of the second non-operating state, and the first wake-up duration of the first non-operating state is less than the second wake-up duration of the second non-operating state.
[0116] In some embodiments, the electronic device can also determine that the start playback time of the transition animation is a third moment, and / or the moment after the third moment is added with the extended time. For example, when the playback duration of the transition animation is equal to or greater than the wake-up duration, the electronic device determines that the start playback time of the transition animation is the third moment; and / or, when the playback duration of the transition animation is less than the wake-up duration, the electronic device determines that the start playback time of the transition animation is the moment after the third moment is added with the extended time. Among them, the third moment is after the first moment and before the second moment, and the third moment is the moment when the switching operation ends. For example, the switching operation is a sliding operation. When the sliding distance of the sliding operation meets the distance threshold, it will trigger the awakening of the second system to run the application. However, after the trigger, the sliding operation may not end. In this case, the third moment is the end moment of the sliding operation. For example, the sliding operation is an operation in which a finger slides on the display screen, and the third moment is the moment when the finger leaves the display screen after sliding. For another example, the switching operation is a click operation, which can be an operation of clicking the display screen or an operation of clicking a physical button of the electronic device. When the click operation clicks the area on the display screen that triggers the awakening of the second system to run the application, it triggers the awakening of the second system to run the application. However, after the trigger, the click operation may not end, for example, the finger has not left the display screen. In this case, the third moment is the end moment of the click operation, for example, the moment when the finger leaves the display screen after clicking. In some embodiments, the extension time of the third moment can be the above-mentioned preset extension time, or it can be determined according to the difference between the duration between the third moment and the second moment and the playback duration of the transition animation, for example, the extension time is equal to the difference or greater than the difference.
[0117] Step 406: Play the transition animation at the start playing time through the first system.
[0118] After determining the start time of the transition animation, the first system controls the display screen of the electronic device to start playing the transition animation from the start time. According to the introduction in the previous text, the end time of the transition animation is at or after the second time, so when the transition animation is finished, the second system has been awakened to the running state, so that the second system can control the display screen of the electronic device and display the corresponding program interface by running the application.
[0119] Exemplarily, the switching operation includes but is not limited to one or more of the following: sliding operations, such as switching the displayed user interface by swiping right; operations on physical buttons, such as tapping, long pressing, or multiple consecutive pressings of physical buttons; operations of clicking on components (widgets) in the dial displayed by the electronic device; operations of clicking on the dial displayed by the electronic device; operations of long pressing the dial displayed by the electronic device; operations of clicking on a card button displayed by the electronic device; operations of clicking on a button in the control center interface displayed by the electronic device; operations of clicking on a notification message displayed by the electronic device; operations of clicking on an icon corresponding to an application displayed by the electronic device.
[0120] Figure 5 FIG. 1 is a timing diagram of an application interface of a display application provided by an exemplary embodiment of the present application. Figure 5 As shown, the first system is the MCU system, and the second system is the Android system. The first system is run by a small core, and the second system is run by a large core. The switching operation that triggers the running of the application in the Android system is a sliding operation, and the playing time of the transition animation corresponding to the switching operation is longer, which is greater than the wake-up time. When a finger touches the display screen of the electronic device and starts to slide, thereby triggering the switching operation, the electronic device starts to wake up the Android system, and starts to start the application in the Android system after the Android system wakes up. During this process, the screen is controlled by the MCU system. When a finger touches the display screen of the electronic device and starts to slide, the electronic device immediately starts to play the transition animation through the MCU system, and the starting playing time is time 501. When the transition animation ends, the electronic device will hand over the control of the display screen to the Android system, thereby displaying the application interface obtained by the Android system running the application.
[0121] Figure 6 FIG. 1 is a timing diagram of an application interface of a display application provided by an exemplary embodiment of the present application. Figure 6As shown, the first system is an MCU system, and the second system is an Android system. The first system is run by a small core, and the second system is run by a large core. The switching operation that triggers the running of an application in the Android system is a click operation, and the playing time of the transition animation corresponding to the switching operation is short, which is less than the wake-up time. When a finger clicks on the component area in the display screen of the electronic device to trigger the switching operation, the electronic device starts to wake up the Android system, and starts to start the application in the Android system after the Android system wakes up. At the end time 601 of the click operation, for example, when the finger is released, the electronic device will start to play the transition animation through the MCU system at time 602 after the extension time at time 601 is extended. The extension time is dynamically calculated based on the playing time of the transition animation, and the calculated extension time will not affect the user's experience of the response speed of clicking the screen. In this case, the end playing time of the transition animation is after the moment of completing the awakening of the Android system. When the transition animation ends, the electronic device will hand over the control of the display screen to the Android system, thereby displaying the application interface obtained by the Android system running the application.
[0122] Figure 7 FIG. 1 is a timing diagram of an application interface of a display application provided by an exemplary embodiment of the present application. Figure 7 As shown, the first system is an MCU system, and the second system is an Android system. The first system is run by a small core, and the second system is run by a large core. The switching operation that triggers the running of an application in the Android system is a click operation, and the playing time of the transition animation corresponding to the switching operation is shorter, less than the wake-up time. When a finger clicks on the component area in the display screen of the electronic device to trigger the switching operation, the electronic device starts to wake up the Android system, and starts to start the application in the Android system after the Android system wakes up. At the end time 701 of the click operation, for example, when the finger is released, the electronic device will start to play the transition animation through the MCU system at time 702 after the extension time at time 701. In this case, the end playback time of the transition animation is the moment when the Android system is awakened. When the transition animation ends, the electronic device will hand over the control of the display screen to the Android system, thereby displaying the application interface obtained by the Android system running the application.
[0123] Step 408: In response to completing the playing of the transition animation, displaying the application interface of the application program through the second system.
[0124] The application interface is the user interface obtained by the second system running the application in the running state. The second system can render the application interface of the application by running the application, so as to display the application interface of the application through the second system. According to the foregoing, the end time of the transition animation is after the second time, and / or the end time of the transition animation is at the second time, so when the transition animation is finished, the application interface of the application can be displayed through the second system.
[0125] To summarize, the method provided in this embodiment is that when the second system is in a non-running state and an application in the second system is triggered to run, the first system displays a transition animation. Since the transition animation can respond to the operation of triggering the running of the application, and the transition animation is displayed in the process of waking up the second system to enter the running state, it is possible to respond to the user operation before the application is run to display the application interface of the application, thereby shortening the response delay to the user operation and improving the user experience.
[0126] The method provided in this embodiment also formulates different transition animation playback durations for different scenarios (for example, switching operations), and selects the timing (starting playback time) of playing the transition animation according to the playback duration of the transition animation. This can achieve a seamless switching effect when switching from the first system to the second system by playing the transition animation before waking up the second system to display the application interface, thereby improving the system switching effect and achieving the ultimate user experience. By setting the wake-up duration and selecting the timing of playing the transition animation, it can be ensured that the end time of playing the transition animation is always at the moment of completing the wake-up of the second system or after the moment of completing the wake-up of the second system. By playing the transition animation according to the extended time, it can be ensured that the end time of playing the transition animation is always at the moment of completing the wake-up of the second system or after the moment of completing the wake-up of the second system even if the transition animation duration is shorter, thereby improving the user experience.
[0127] It should be noted that before collecting relevant data of users and during the process of collecting relevant data of users, this application can display a prompt interface, pop-up window or output voice prompt information, and the prompt interface, pop-up window or voice prompt information is used to prompt the user that its relevant data is currently being collected, so that this application only starts to execute the relevant steps of obtaining relevant data of users after obtaining the confirmation operation issued by the user to the prompt interface or pop-up window, otherwise (that is, when the confirmation operation issued by the user to the prompt interface or pop-up window is not obtained), the relevant steps of obtaining relevant data of users are terminated, that is, the relevant data of users are not obtained. In other words, all user data collected by this application are collected with the consent and authorization of the user, and the collection, use and processing of relevant user data need to comply with the relevant laws, regulations and standards of relevant countries and regions.
[0128] It should be noted that the sequence of the method steps provided in the embodiments of the present application can be appropriately adjusted, and the steps can be increased or decreased accordingly according to the circumstances. Any technician familiar with the technical field can easily think of the changed methods within the technical scope disclosed in the present application, and they should be included in the protection scope of the present application, so they will not be repeated here.
[0129] Figure 8 FIG. 1 is a schematic diagram of a structure of a transition animation playback device provided by an exemplary embodiment of the present application. Figure 8 As shown, the device comprises:
[0130] A switching module 801 is used for waking up the second system to enter the running state in response to a switching operation when the first system is in the running state and the second system is in a non-running state other than the shutdown state, wherein the switching operation is used to trigger the running of an application in the second system;
[0131] The display module 802 is used to start playing the transition animation at a time between a first time and a second time through the first system, the first time is the time when the second system starts to be awakened, and the second time is the time when the second system is awakened to start running the application;
[0132] The display module 802 is further configured to display an application interface of the application program through the second system in response to completion of playing the transition animation, wherein the application interface is a user interface obtained by the second system running the application program in the running state.
[0133] In an optional design, different switching operations have their own corresponding transition animations; Fig. 9 As shown, the device also includes a determination module 803, which is used to determine the starting playback time of the transition animation according to the playback duration of the transition animation corresponding to the switching operation this time, and the starting playback time is between the first time and the second time; the display module 802 is used to play the transition animation at the starting playback time through the first system, and the ending playback time of the transition animation played at the starting playback time and the playback duration is equal to or later than the second time.
[0134] In an optional design, the determination module 803 is used to determine the first moment as the starting playback moment when the playback duration of the transition animation is equal to or greater than the wake-up duration, and the wake-up duration is related to the state of the second system; and / or, when the playback duration of the transition animation is less than the wake-up duration, determine the starting playback moment as the moment after the first moment is added with an extended time, and the extended time is equal to or greater than the difference between the wake-up duration and the playback duration.
[0135] In an optional design, the determination module 803 is used to determine the first moment as the starting playback moment when the second system is awakened from a first non-operating state to the operating state and the playback duration of the transition animation is equal to or greater than the first wake-up duration; and / or, to determine the first moment as the starting playback moment when the second system is awakened from a second non-operating state to the operating state and the playback duration of the transition animation is equal to or greater than the second wake-up duration; wherein the power consumption of the first non-operating state is higher than that of the second non-operating state, and the first wake-up duration of the first non-operating state is less than the second wake-up duration of the second non-operating state.
[0136] In an optional design, the determination module 803 is used to determine that the starting playback time is the time after the first time is increased by a preset extension time; wherein the preset extension time is equal to or greater than the difference between the wake-up duration and the target playback duration, and the target playback duration is the playback duration of the transition animation with the shortest playback duration among all transition animations.
[0137] In an optional design, the determination module 803 is used to determine the time difference between the wake-up duration and the playback duration; and determine the start playback time as the time after adding the time difference to the first time.
[0138] In an optional design, the determination module 803 is used to determine the difference between the first wake-up duration and the playback duration when the second system is awakened from the first non-operating state to the operating state; and / or, to determine the difference between the second wake-up duration and the playback duration when the second system is awakened from the second non-operating state to the operating state; wherein the power consumption of the first non-operating state is higher than that of the second non-operating state, and the first wake-up duration of the first non-operating state is less than the second wake-up duration of the second non-operating state.
[0139] In an optional design, the device also includes a determination module 803, which is used to determine that the starting playback time is the time after the third time is added to the extended time when the playback time of the transition animation is less than the wake-up time, and the third time is the time when the switching operation ends.
[0140] In an optional design, the display module 802 is used to display a system interface when the first system is in the running state and the second system is in the non-running state, and the system interface includes any user interface obtained by running the first system.
[0141] Fig.10 is a schematic diagram of a structure of a transition animation playback device provided by an exemplary embodiment of the present application. The device includes a first system and a second system, such as Figure 8 As shown, the device comprises:
[0142] The determination module 1001 is used to determine the transition animation according to the switching operation when the state of the first system is the running state and the state of the second system is the first non-running state or the second non-running state other than the shutdown state;
[0143] The determining module 1001 is further used to determine the start playing time of the transition animation according to the playing time of the transition animation and / or the state of the second system;
[0144] Display module 1002 is used for the first system to play the transition animation when the starting playback time is reached; wherein, the power consumption of the first non-operating state is higher than the power consumption of the second non-operating state, and the wake-up time of the first non-operating state is shorter than the wake-up time of the second non-operating state.
[0145] In an optional design, the determination module 1001 is used to determine the transition animation according to the type of the switching operation and / or the object of the switching operation; wherein the type of the switching operation includes one or more of: clicking, double-clicking, sliding, long pressing, pressing once, pressing twice, and rotating; and / or the object of the switching operation is a display interface or hardware corresponding to the switching operation.
[0146] In an optional design, the start playback time is later than or equal to the time when the second system starts waking up; and / or, the start playback time is earlier than or equal to a first preset time, and playing the transition animation within the first preset time meets the operation response speed requirement.
[0147] In an optional design, the determination module 1001 is used to determine the start playback time of the transition animation according to the playback duration of the transition animation and the wake-up duration corresponding to the state of the second system.
[0148] It should be noted that the transition animation playback device provided in the above embodiment is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the transition animation playback device provided in the above embodiment and the transition animation playback method embodiment belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.
[0149] An embodiment of the present application also provides an electronic device, which includes: a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, at least one program, a code set or an instruction set is loaded and executed by the processor to implement the transition animation playback method provided by the above-mentioned method embodiments.
[0150] For example, Fig.11 FIG. 1 is a schematic diagram of a terminal provided by an exemplary embodiment of the present application. In some embodiments, the terminal is implemented as an electronic device, such as a wearable device.
[0151] Typically, the terminal 1100 includes a processor 1101 and a memory 1102 .
[0152] The processor 1101 may include one or more processing cores, such as a 4-core processor, an 11-core processor, etc. The processor 1101 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 1101 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 1101 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 1101 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0153] The memory 1102 may include one or more computer-readable storage media, which may be non-transitory. The memory 1102 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 1102 is used to store at least one instruction, which is used to be executed by the processor 1101 to implement the method for playing the transition animation provided in the method embodiment of the present application.
[0154] In some embodiments, the terminal 1100 may further optionally include: a peripheral device interface 1103 and at least one peripheral device. The processor 1101, the memory 1102 and the peripheral device interface 1103 may be connected via a bus or a signal line. Each peripheral device may be connected to the peripheral device interface 1103 via a bus, a signal line or a circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 1104, a display screen 1105, a camera assembly 1106, an audio circuit 1107 and a power supply 1108.
[0155] The peripheral device interface 1103 may be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 1101 and the memory 1102. In some embodiments, the processor 1101, the memory 1102, and the peripheral device interface 1103 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1101, the memory 1102, and the peripheral device interface 1103 may be implemented on a separate chip or circuit board, which is not limited in the embodiments of the present application.
[0156] The radio frequency circuit 1104 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 1104 communicates with the communication network and other communication devices through electromagnetic signals. The radio frequency circuit 1104 converts the electrical signal into an electromagnetic signal for transmission, or converts the received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 1104 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, and the like. The radio frequency circuit 1104 can communicate with other terminals through at least one wireless communication protocol. The wireless communication protocol includes but is not limited to: the World Wide Web, a metropolitan area network, an intranet, various generations of mobile communication networks (2G, 3G, 4G and 5G), a wireless local area network and / or a WiFi (Wireless Fidelity) network. In some embodiments, the radio frequency circuit 1104 may also include circuits related to NFC (Near Field Communication), which is not limited in this application.
[0157] The display screen 1105 is used to display a UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. When the display screen 1105 is a touch display screen, the display screen 1105 also has the ability to collect touch signals on the surface or above the surface of the display screen 1105. The touch signal can be input to the processor 1101 as a control signal for processing. At this time, the display screen 1105 can also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, the display screen 1105 can be one, and the front panel of the terminal 1100 is set; in other embodiments, the display screen 1105 can be at least two, which are respectively set on different surfaces of the terminal 1100 or are folded; in some other embodiments, the display screen 1105 can be a flexible display screen, which is set on the curved surface or folded surface of the terminal 1100. Even, the display screen 1105 can also be set to a non-rectangular irregular shape, that is, a special-shaped screen. The display screen 1105 can be made of materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).
[0158] The camera assembly 1106 is used to capture images or videos. Optionally, the camera assembly 1106 includes a front camera and a rear camera. Typically, the front camera is arranged on the front panel of the terminal 1100, and the rear camera is arranged on the back of the terminal. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth of field camera, a wide-angle camera, and a telephoto camera, so as to realize the fusion of the main camera and the depth of field camera to realize the background blur function, the fusion of the main camera and the wide-angle camera to realize the panoramic shooting and VR (Virtual Reality) shooting function or other fusion shooting functions. In some embodiments, the camera assembly 1106 may also include a flash. The flash can be a monochrome temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm light flash and a cold light flash, which can be used for light compensation at different color temperatures.
[0159] The audio circuit 1107 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals and input them into the processor 1101 for processing, or input them into the radio frequency circuit 1104 to achieve voice communication. For the purpose of stereo acquisition or noise reduction, there may be multiple microphones, which are respectively arranged at different parts of the terminal 1100. The microphone may also be an array microphone or an omnidirectional acquisition microphone. The speaker is used to convert the electrical signal from the processor 1101 or the radio frequency circuit 1104 into sound waves. The speaker may be a traditional film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signal into sound waves audible to humans, but also convert the electrical signal into sound waves inaudible to humans for purposes such as ranging. In some embodiments, the audio circuit 1107 may also include a headphone jack.
[0160] The power supply 1108 is used to power various components in the terminal 1100. The power supply 1108 can be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 1108 includes a rechargeable battery, the rechargeable battery can be a wired rechargeable battery or a wireless rechargeable battery. A wired rechargeable battery is a battery charged through a wired line, and a wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery can also be used to support fast charging technology.
[0161] In some embodiments, the terminal 1100 further includes one or more sensors 1109 , including but not limited to: an acceleration sensor 1110 , a gyroscope sensor 1111 , a pressure sensor 1112 , an optical sensor 1113 , and a proximity sensor 1114 .
[0162] The acceleration sensor 1110 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established by the terminal 1100. For example, the acceleration sensor 1110 can be used to detect the components of gravity acceleration on the three coordinate axes. The processor 1101 can control the touch display screen 1105 to display the user interface in a horizontal view or a vertical view according to the gravity acceleration signal collected by the acceleration sensor 1110. The acceleration sensor 1110 can also be used for collecting game or user motion data.
[0163] The gyro sensor 1111 can detect the body direction and rotation angle of the terminal 1100, and the gyro sensor 1111 can cooperate with the acceleration sensor 1110 to collect the user's 3D actions on the terminal 1100. The processor 1101 can implement the following functions based on the data collected by the gyro sensor 1111: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.
[0164] The pressure sensor 1112 can be set on the side frame of the terminal 1100 and / or the lower layer of the touch display screen 1105. When the pressure sensor 1112 is set on the side frame of the terminal 1100, the user's holding signal of the terminal 1100 can be detected, and the processor 1101 performs left and right hand recognition or shortcut operations according to the holding signal collected by the pressure sensor 1112. When the pressure sensor 1112 is set on the lower layer of the touch display screen 1105, the processor 1101 controls the operability controls on the UI interface according to the user's pressure operation on the touch display screen 1105. The operability controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.
[0165] The optical sensor 1113 is used to collect the ambient light intensity. In one embodiment, the processor 1101 can control the display brightness of the touch display screen 1105 according to the ambient light intensity collected by the optical sensor 1113. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 1105 is increased; when the ambient light intensity is low, the display brightness of the touch display screen 1105 is reduced. In another embodiment, the processor 1101 can also dynamically adjust the shooting parameters of the camera assembly 1106 according to the ambient light intensity collected by the optical sensor 1113.
[0166] The proximity sensor 1114, also called a distance sensor, is usually arranged on the front panel of the terminal 1100. The proximity sensor 1114 is used to collect the distance between the user and the front of the terminal 1100. In one embodiment, when the proximity sensor 1114 detects that the distance between the user and the front of the terminal 1100 is gradually decreasing, the processor 1101 controls the touch display screen 1105 to switch from the screen-on state to the screen-off state; when the proximity sensor 1114 detects that the distance between the user and the front of the terminal 1100 is gradually increasing, the processor 1101 controls the touch display screen 1105 to switch from the screen-off state to the screen-on state.
[0167] Those skilled in the art will understand that Fig.11 The structure shown in the figure does not constitute a limitation on the terminal 1100, and the terminal 1100 may include more or fewer components than those shown in the figure, or combine certain components, or adopt a different component arrangement.
[0168] A computer-readable storage medium is also provided in an embodiment of the present application, in which at least one instruction, at least one program, code set or instruction set is stored. When the at least one instruction, at least one program, code set or instruction set is loaded and executed by a processor of an electronic device, the method for playing the transition animation provided in the above-mentioned method embodiments is implemented.
[0169] The present application also provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of an electronic device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the electronic device executes the transition animation playback method provided by the above-mentioned method embodiments.
[0170] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned readable storage medium may be a read-only memory, a disk or an optical disk, etc.
[0171] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent switching, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. A method for playing a transition animation, characterized in that: The method comprises: When the first system is in the running state and the second system is in the non-running state other than the shutdown state, in response to a switching operation, waking up the second system to enter the running state, the switching operation being used to trigger running of an application in the second system; Playing the transition animation by the first system at a time between a first time and a second time, the first time being a time when the second system starts to be awakened, and the second time being a time when the second system is awakened completely to start running the application; In response to completing the playing of the transition animation, the application interface of the application is displayed through the second system, and the application interface is a user interface obtained by the second system running the application in the running state.
2. The method according to claim 1, characterized in that Different switching operations have respective corresponding transition animations; the playing of the transition animation by the first system at a time between the first time and the second time includes: Determining a start time of playing the transition animation according to the playing time of the transition animation corresponding to the current switching operation, wherein the start time of playing the transition animation is between the first time and the second time; The transition animation is played by the first system at the start playback time, and the end playback time of the transition animation played at the start playback time and the playback duration is equal to or later than the second time.
3. The method according to claim 2, characterized in that The determining the starting playing time of the transition animation according to the playing time of the transition animation corresponding to the current switching operation includes: In the case where the playing time of the transition animation is equal to or greater than the wake-up time, the first moment is determined as the starting playing time, and the wake-up time is related to the state of the second system; and / or, When the playing duration of the transition animation is less than the wake-up duration, the starting playing time is determined to be the time after the first time is added with an extended time, and the extended time is equal to or greater than the difference between the wake-up duration and the playing time.
4. The method according to claim 3, characterized in that When the playing time of the transition animation is equal to or greater than the wake-up time, determining the first moment as the starting playing time includes: When the second system is awakened from a first non-operating state to the operating state, and the playing time of the transition animation is equal to or greater than the first awakening time, the first moment is determined as the starting playing time; and / or, When the second system is awakened from the second non-operating state to the operating state, and the playing time of the transition animation is equal to or greater than the second awakening time, determining the first moment as the starting playing moment; The power consumption of the first non-operating state is higher than that of the second non-operating state, and the first wake-up time of the first non-operating state is shorter than the second wake-up time of the second non-operating state.
5. The method according to claim 3, characterized in that: The step of determining the start playback time as the time after the first time is increased by the extended time includes: Determine the start playback time as the time after adding a preset extension time to the first time; The preset extension time is equal to or greater than the difference between the wake-up duration and the target playback duration, and the target playback duration is the playback duration of the transition animation with the shortest playback duration among all transition animations.
6. The method according to claim 3, characterized in that The step of determining the start playback time as the time after the first time is increased by the extended time includes: Determine the time difference between the wake-up time and the playback time; The start playback time is determined to be the time obtained by adding the time difference to the first time.
7. The method according to claim 6, characterized in that The determining the time difference between the wake-up time and the play time includes: In the case where the second system is awakened from the first non-operating state to the operating state, determining a time difference between the first awakening time and the playing time; and / or, In the case where the second system is awakened from the second non-operating state to the operating state, determining a time difference between the second awakening time and the playing time; The power consumption of the first non-operating state is higher than that of the second non-operating state, and the first wake-up time of the first non-operating state is shorter than the second wake-up time of the second non-operating state.
8. The method according to any one of claims 3 to 7, characterized in that: The method further comprises: In the case that the playing duration of the transition animation is less than the wake-up duration, the starting playing time is determined to be the time after the extension time is added to the third time, and the third time is the time when the switching operation ends.
9. The method according to any one of claims 1 to 7, characterized in that: The method further comprises: When the first system is in the running state and the second system is in the non-running state, a system interface is displayed, and the system interface includes any user interface obtained by running the first system.
10. A method for playing a transition animation, characterized in that: Applied to an electronic device, the electronic device includes a first system and a second system, and the method includes: When the state of the first system is the running state, and the state of the second system is the first non-running state or the second non-running state other than the shutdown state, determining a transition animation according to a switching operation; Determining a start time of playing the transition animation according to a playing duration of the transition animation and / or a state of the second system; The first system plays the transition animation when the start playback time arrives; wherein, the power consumption of the first non-operating state is higher than the power consumption of the second non-operating state, and the wake-up time of the first non-operating state is shorter than the wake-up time of the second non-operating state.
11. The method according to claim 10, characterized in that The determining of the transition animation according to the switching operation includes: Determining the transition animation according to the type of the switching operation and / or the object of the switching operation; Among them, the types of switching operations include: one or more of: clicking, double-clicking, sliding, long pressing, pressing once, pressing twice, and rotating; and / or, the object of the switching operation is a display interface or hardware corresponding to the switching operation.
12. The method according to claim 10 or 11, characterized in that: The start playback time is later than or equal to the time when the second system starts waking up; and / or, the start playback time is earlier than or equal to the first preset time, and playing the transition animation within the first preset time meets the operation response speed requirement.
13. The method according to claim 10 or 11, characterized in that: The determining the starting playing time of the transition animation according to the playing time of the transition animation and / or the state of the second system includes: The starting playing time of the transition animation is determined according to the playing time of the transition animation and the wake-up time corresponding to the state of the second system.
14. A transition animation playback device, characterized in that: The device comprises: a switching module, configured to, in response to a switching operation, wake up the second system to enter the running state when the first system is in the running state and the second system is in a non-running state other than the shutdown state, wherein the switching operation is used to trigger the running of an application in the second system; A display module, configured to start playing a transition animation at a time between a first time and a second time through the first system, wherein the first time is a time when the second system starts to be awakened, and the second time is a time when the second system is awakened completely to start running the application; The display module is further configured to display an application interface of the application program through the second system in response to completion of playing the transition animation, wherein the application interface is a user interface obtained by the second system running the application program in the running state.
15. A transition animation playback device, characterized in that: The device comprises a first system and a second system, and the device comprises: a determination module, configured to determine a transition animation according to a switching operation when the state of the first system is an operating state and the state of the second system is a first non-operating state or a second non-operating state other than a shutdown state; The determination module is further used to determine the start playing time of the transition animation according to the playing time of the transition animation and / or the state of the second system; A display module is used for the first system to play the transition animation when the starting playback time is reached; wherein, the power consumption of the first non-operating state is higher than the power consumption of the second non-operating state, and the wake-up time of the first non-operating state is shorter than the wake-up time of the second non-operating state.
16. An electronic device, characterized in that: The electronic device includes a processor and a memory, wherein the memory stores at least one program, and the at least one program is loaded and executed by the processor to implement the transition animation playback method as described in any one of claims 1 to 13.
17. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one program, and the at least one program is loaded and executed by the processor to implement the transition animation playback method as described in any one of claims 1 to 13.
18. A computer program product, characterized in that The computer program product includes computer instructions, which are stored in a computer-readable storage medium. The processor of the electronic device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the electronic device executes the transition animation playback method as described in any one of claims 1 to 13.
Citation Information
Cited By
Method and apparatus for playing transition animation, and device and storage medium
WO2026046252A1
System switching method and apparatus, and electronic device, storage medium and program product
WO2026145233A1
