WO2022252816A1 - 显示方法及电子设备 - Google Patents
显示方法及电子设备 Download PDFInfo
- Publication number
- WO2022252816A1 WO2022252816A1 PCT/CN2022/085825 CN2022085825W WO2022252816A1 WO 2022252816 A1 WO2022252816 A1 WO 2022252816A1 CN 2022085825 W CN2022085825 W CN 2022085825W WO 2022252816 A1 WO2022252816 A1 WO 2022252816A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- application
- window
- layer
- icon
- electronic device
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 167
- 230000000694 effects Effects 0.000 claims abstract description 264
- 230000015654 memory Effects 0.000 claims description 40
- 230000004044 response Effects 0.000 claims description 27
- 238000004590 computer program Methods 0.000 claims description 20
- 230000004913 activation Effects 0.000 claims description 10
- 230000005856 abnormality Effects 0.000 abstract description 5
- 230000000875 corresponding effect Effects 0.000 description 333
- 239000010410 layer Substances 0.000 description 310
- 238000007726 management method Methods 0.000 description 78
- 230000008569 process Effects 0.000 description 66
- 230000006870 function Effects 0.000 description 30
- 238000004891 communication Methods 0.000 description 22
- 230000002159 abnormal effect Effects 0.000 description 17
- 238000010586 diagram Methods 0.000 description 16
- 238000010295 mobile communication Methods 0.000 description 11
- 230000015572 biosynthetic process Effects 0.000 description 9
- 230000008859 change Effects 0.000 description 9
- 238000003786 synthesis reaction Methods 0.000 description 9
- 230000007246 mechanism Effects 0.000 description 8
- 238000005516 engineering process Methods 0.000 description 5
- 229920001621 AMOLED Polymers 0.000 description 4
- 230000005236 sound signal Effects 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000008014 freezing Effects 0.000 description 3
- 238000007710 freezing Methods 0.000 description 3
- 239000004973 liquid crystal related substance Substances 0.000 description 3
- 239000011159 matrix material Substances 0.000 description 3
- 230000002194 synthesizing effect Effects 0.000 description 3
- 230000007704 transition Effects 0.000 description 3
- 230000000007 visual effect Effects 0.000 description 3
- 238000013473 artificial intelligence Methods 0.000 description 2
- 238000013528 artificial neural network Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 2
- 239000011230 binding agent Substances 0.000 description 2
- 239000002131 composite material Substances 0.000 description 2
- 238000005562 fading Methods 0.000 description 2
- 230000014509 gene expression Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 230000007774 longterm Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 239000002096 quantum dot Substances 0.000 description 2
- 230000005855 radiation Effects 0.000 description 2
- 238000009877 rendering Methods 0.000 description 2
- 239000002356 single layer Substances 0.000 description 2
- 239000000725 suspension Substances 0.000 description 2
- 241000287828 Gallus gallus Species 0.000 description 1
- 230000001133 acceleration Effects 0.000 description 1
- 230000003044 adaptive effect Effects 0.000 description 1
- 230000003416 augmentation Effects 0.000 description 1
- 230000002457 bidirectional effect Effects 0.000 description 1
- 210000000988 bone and bone Anatomy 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000000295 complement effect Effects 0.000 description 1
- 239000004020 conductor Substances 0.000 description 1
- 230000001276 controlling effect Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 230000004927 fusion Effects 0.000 description 1
- 230000003862 health status Effects 0.000 description 1
- 230000001939 inductive effect Effects 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/04817—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T13/00—Animation
- G06T13/80—2D [Two Dimensional] animation, e.g. using sprites
Definitions
- the embodiments of the present application relate to the field of terminal technologies, and in particular, to a display method and an electronic device.
- the electronic device will display the application program icon and the application program window according to the preset animation effect, so as to provide the user with a better visual effect for starting the application program.
- the desktop application process displays the animation of the application icon
- the window management service draws the application window and calls the system service process to display the animation of the application window after the application icon animation. effect to complete the process of displaying the application startup animation effect.
- the present application provides a display method and an electronic device.
- the window management service creates a layer for displaying the application icon animation, and controls the application icon animation and window animation through the window management service, so as to ensure the display effect of the application startup animation and avoid freezes Abnormal, improve user experience.
- a display method which is applied to an electronic device.
- the method includes: receiving an application starting instruction from a user.
- the first layer is a layer corresponding to the application window; or, the first window information includes a second layer corresponding to the application window, and the first layer is located under the second layer.
- the user's starting instruction is used to instruct the electronic device to start the corresponding application, for example, may include an operation of clicking the application icon on the display screen.
- the window management service creates a layer specially used for displaying the dynamic effect of the application icon, so that the electronic device can control the dynamic effect of the application icon through the window management service.
- the desktop controls the dynamic effect of the application icon, and the window management service does not create a layer corresponding to the application icon. Based on this, if the data in the application icon layer is acquired during the application startup animation process, the application icon data can be acquired in the layer corresponding to the application icon.
- the animation effect of application startup is to display the animation effect of the application icon first, and then display the animation effect of the application window. Therefore, you can create a layer corresponding to the application icon and place it under the layer corresponding to the application window, so that the image corresponding to the application window can be displayed. When layering, the layer corresponding to the application icon can be covered to realize the switching connection of the application startup animation effect.
- the window management service does not create a corresponding layer for the application icon, but reuses the layer corresponding to the application window.
- the window management service can also obtain the bitmap corresponding to the application icon, and fill the bitmap into the layer corresponding to the application window.
- the window management service has not obtained the content data of the application window (that is, the application window has not yet Dynamic effect), therefore, only the bitmap corresponding to the filled application icon is included in the application window layer, so that the application icon dynamic effect can be controlled by the window management service.
- the desktop controls the dynamic effect of the application icon, and the application window layer created by the window management service does not contain application icon data. Based on this, if the data in the application window layer during the dynamic display of the application icon is obtained, the application icon data can be obtained.
- the electronic device after the electronic device receives the application start instruction from the user, it can create a layer for displaying the dynamic effect of the application icon through the window management service (WMS), generate the layer data corresponding to the application icon through the window management service, and use the window management service (WMS).
- the service generates the layer data corresponding to the application window, and then realizes the creation of the application icon animation and the application window animation by using the window management service, and realizes the display of the application startup animation including the application icon animation and the application window animation.
- the application startup animation created by the window management service can avoid the abnormal connection of animation effects caused by the animation of the application icon created by the desktop and the animation of the application window created by the window management service. Use experience.
- the first window information also includes the first window content corresponding to the window of the application, and the first window content includes any one or more of the following items: Interface content, background cache interface content corresponding to the application, and startup window content corresponding to the application.
- the window management service in the electronic device receives the first window content sent by the application, and the first window content may be the content data displayed on the main interface of the application, or the content data displayed on the background application interface, or the picture data of the startup window, Corresponding to launching different types of applications, the data types of the application window contents are different.
- the window management service can be used to create application icon animations and application window animations. Effect, improve the fluency of application startup animation.
- the first layer when the first layer is under the second layer, obtain the first window information corresponding to the application, and display the application window startup animation, including: Acquiring the first window information corresponding to the application; displaying the window activation effect of the application according to the first window information and the first icon data.
- the window management service when the first layer is the layer corresponding to the application icon, which is located under the layer corresponding to the application window, after receiving the application icon data (such as the bitmap corresponding to the application icon), the window management service, according to The bitmap corresponding to the application icon determines the icon information corresponding to the application icon, and uses the icon information to clip the content data of the application window. For example, the transparent area of the application icon is cropped, and the layer data corresponding to the application window is determined, so that in the process of displaying the animation effect of the application icon and the animation effect of the application window, the fade-out display effect of the application icon is realized. In turn, better display effects can be provided for users, and user experience can be improved.
- the method when the first layer is below the second layer, the method further includes: determining a display resolution change, and deleting the first layer.
- the window management service when the window management service determines that the electronic device satisfies the preset condition, it deletes the layer corresponding to the created application icon.
- the preset condition includes, for example, a change in the resolution of the electronic device, so as to avoid an abnormal display of the dynamic effect of the application icon caused by still using the original application icon layer to create the dynamic effect of the application icon due to the change in resolution.
- the window management service when the resolution of the electronic device application is resolution 1, the window management service creates a layer A corresponding to the application icon and saves the layer A for displaying the dynamic effect of the application icon. Subsequently, if the resolution of the application on the electronic device is resolution 1, and other operations for starting the application are detected, the window management service still uses layer A to generate the layer data of the corresponding application icon. In addition, after determining that the resolution of the application of the electronic device changes, for example, the resolution changes from resolution 1 to resolution 2, the window management service deletes layer A. After detecting the operation of starting the application, the window management service creates a new layer such as layer B, and uses layer B to generate the layer data of the corresponding application icon.
- the method when the first layer is below the second layer, the method further includes: receiving an application closing instruction from a user. Responding to the application closing instruction, acquiring the second window information corresponding to the application and the second icon data corresponding to the application; displaying the window exit animation effect of the application according to the second window information and the second icon data; determining whether the first layer exists; If it exists, according to the first layer and the second icon data, display the icon of the application to exit; if not, create the first layer, and display the application icon to exit according to the first layer and the second icon data Motion.
- the window management service will create a layer corresponding to the application icon, and will not delete the layer when the electronic device does not meet the preset conditions. Therefore, after receiving the bitmap corresponding to the application icon (that is, the second icon data), the window management service needs to determine whether there is a layer corresponding to the application icon. If it exists, use this layer directly to generate the layer data corresponding to the application icon; if it does not exist, you need to create the layer corresponding to the application icon first, and then generate the layer data corresponding to the application icon.
- the electronic device in response to the user's operation of closing the application, can create an application window animation effect through the window management service, and create an application icon animation effect based on the obtained bitmap corresponding to the application icon through the window management service, so as to realize the application window animation effect and App icon animation is used to turn off the display of the animation.
- the application closing animation created by the window management service can avoid abnormal joints of animations caused by the application window animation created by the window management service and the application icon animation created on the desktop. Use experience.
- the second window information includes the second layer and the second window content corresponding to the application, and the second window content includes the application when the electronic device receives the application closing instruction.
- the content of the display interface; the second icon data includes the first icon data and/or folder data corresponding to the icon of the application.
- some application program icons are displayed in the desktop folder of the electronic device, so the application icon motion effect in the application closing motion effect for this part of the application should also include the folder motion effect of the folder corresponding to the application icon.
- the electronic device can provide the user with an adaptive application closing motion effect according to the application type, thereby improving user experience.
- the method further includes: deleting the first icon data in the first layer.
- obtaining the first window information corresponding to the application, and displaying the window activation effect of the application includes: obtaining the first window information corresponding to the application; according to the first window information , showing the app's window startup animation.
- the application window information obtained by the window management service includes, for example, the received application window content data sent by the application program.
- the window management service determines that the application window animation needs to be displayed, but currently The application window layer is occupied by the bitmap corresponding to the application icon (ie, the first icon data), so the bitmap corresponding to the application icon needs to be deleted.
- the content data of the application window is filled into the application window layer of the bitmap corresponding to the deleted application icon to obtain the layer data corresponding to the application window.
- the method further includes: receiving an application closing instruction from the user.
- the application closing instruction obtain the second window information corresponding to the application and the second icon data corresponding to the application; display the window exit animation effect of the application according to the second window information; display the application window according to the first layer and the second icon data icon exits the animation.
- the electronic device in response to the user's operation of closing the application, can create an application window dynamic effect through the window management service, and create an application icon dynamic effect based on the bitmap corresponding to the obtained application icon through the window management service, so as to realize the application window dynamic effect and App icon animation is used to turn off the display of the animation.
- the application closing animation created by the window management service can avoid abnormal joints of animations caused by the application window animation created by the window management service and the application icon animation created on the desktop. Use experience.
- a display method which is applied to an electronic device.
- the method includes: receiving an application starting instruction from a user.
- the electronic device creates the first layer corresponding to the icon of the application through the window management service.
- the electronic device determines the layer data corresponding to the icon of the application according to the first layer and the first icon data of the application through the window management service, and displays the icon of the application to start a dynamic effect.
- the electronic device obtains the first window information corresponding to the application through the window management service, determines the layer data corresponding to the application window according to the first window information, and displays the application window activation effect.
- the first layer is a layer corresponding to the window of the application; or the first window information includes the second layer corresponding to the window of the application, and the first layer is located under the second layer.
- the method when the first layer is under the second layer, the method further includes: receiving an application closing instruction from a user.
- the electronic device acquires the second window information corresponding to the application and the second icon data corresponding to the application through the window management service.
- the electronic device determines the layer data corresponding to the application window according to the second window information and the second icon data through the window management service, and displays the application window exit animation effect.
- the electronic device determines the layer data corresponding to the icon of the application according to the first layer and the second icon data through the window management service, and displays the exit animation effect of the icon of the application.
- the method further includes: receiving an application closing instruction from a user.
- the electronic device acquires the second window information corresponding to the application and the second icon data corresponding to the application through the window management service.
- the electronic device determines the layer data corresponding to the window of the application according to the second window information through the window management service, and displays the motion effect of exiting the window of the application.
- the electronic device determines the layer data corresponding to the icon of the application according to the first layer and the second icon data through the window management service, and displays the exit animation effect of the icon of the application.
- an electronic device in a third aspect, includes: a processor, a memory, and a computer program, wherein the computer program is stored in the memory, and when the computer program is executed by the processor, the electronic device executes: receiving an application start instruction from a user. In response to the application start instruction, create a first layer corresponding to the application icon; display the start motion effect of the application icon according to the first layer and the first icon data of the application; obtain the first window information corresponding to the application, and display the application's The window starts a dynamic effect; the first layer is a layer corresponding to the window of the application; or, the first window information includes a second layer corresponding to the window of the application, and the first layer is located under the second layer.
- the first window information also includes the first window content corresponding to the window of the application, and the first window content includes any one or more of the following items: main interface content corresponding to the application, background cache interface content corresponding to the application, application The corresponding startup window content.
- the first layer when the first layer is under the second layer, obtain the first window information corresponding to the application, and display the application window activation effect, including: Acquiring the first window information corresponding to the application; displaying the window activation effect of the application according to the first window information and the first icon data.
- the electronic device when the first layer is below the second layer, the electronic device further executes: determining a change in the resolution of the display screen, and deleting the first layer.
- the electronic device when the first layer is below the second layer, the electronic device further executes: receiving an application closing instruction from the user. Responding to the application closing instruction, acquiring the second window information corresponding to the application and the second icon data corresponding to the application; displaying the window exit animation effect of the application according to the second window information and the second icon data; determining whether the first layer exists; If it exists, according to the first layer and the second icon data, display the icon of the application to exit; if not, create the first layer, and display the application icon to exit according to the first layer and the second icon data Motion.
- the second window information includes the second layer and the second window content corresponding to the application, and the second window content includes the application when the electronic device receives the application closing instruction.
- the content of the display interface; the second icon data includes the first icon data and/or folder data corresponding to the icon of the application.
- the electronic device when the first layer is the layer corresponding to the window of the application, after obtaining the first window information corresponding to the application, display the window of the application to start Before taking effect, the electronic device further executes: deleting the first icon data in the first layer.
- obtaining the first window information corresponding to the application and displaying the window activation effect of the application, including: obtaining the first window information corresponding to the application; according to the first window information , showing the app's window startup animation.
- the electronic device when the first layer is a layer corresponding to the window of the application, the electronic device further performs: receiving an application closing instruction from the user.
- the application closing instruction In response to the application closing instruction, the second window information corresponding to the application and the second icon data corresponding to the application are acquired; according to the second window information, a window exit animation effect of the application is displayed. According to the data of the first layer and the second icon, the icon of the application is displayed to exit the dynamic effect.
- an electronic device in a fourth aspect, includes: a processor, a memory, and a computer program, wherein the computer program is stored in the memory, and when the computer program is executed by the processor, the electronic device executes: receiving an application start instruction from a user. In response to the application start instruction, the electronic device creates the first layer corresponding to the icon of the application through the window management service. The electronic device determines the layer data corresponding to the icon of the application according to the first layer and the first icon data of the application through the window management service, and displays the icon of the application to start a dynamic effect.
- the electronic device obtains the first window information corresponding to the application through the window management service, determines the layer data corresponding to the application window according to the first window information, and displays the start-up effect of the application window.
- the first layer is a layer corresponding to the application window; or the first window information includes a second layer corresponding to the application window, and the first layer is located under the second layer.
- the electronic device when the first layer is under the second layer, the electronic device further performs: receiving an application closing instruction from the user. In response to the application closing instruction, the electronic device acquires the second window information corresponding to the application and the second icon data corresponding to the application through the window management service. The electronic device determines the layer data corresponding to the application window according to the second window information and the second icon data through the window management service, and displays the application window exit animation effect. The electronic device determines the layer data corresponding to the icon of the application according to the first layer and the second icon data through the window management service, and displays the exit animation effect of the icon of the application.
- the electronic device when the first layer is a layer corresponding to an application window, the electronic device further executes: receiving an application closing instruction from the user. In response to the application closing instruction, the electronic device acquires the second window information corresponding to the application and the second icon data corresponding to the application through the window management service. The electronic device determines the layer data corresponding to the window of the application according to the second window information through the window management service, and displays the motion effect of exiting the window of the application. The electronic device determines the layer data corresponding to the icon of the application according to the first layer and the second icon data through the window management service, and displays the exit animation effect of the icon of the application.
- the embodiment of the present application provides an electronic device, the electronic device has the function of realizing the display method described in the above first aspect and any possible implementation; or, the electronic device has the function of realizing the display method as described in The function of the display method described in the above second aspect and any possible implementation manner thereof.
- This function can be realized by hardware, and can also be realized by executing corresponding software by hardware.
- the hardware or software includes one or more modules corresponding to the above functions.
- a computer-readable storage medium stores a computer program (also referred to as an instruction or code), and when the computer program is executed by the electronic device, the electronic device executes the first aspect or the method in any one of the implementation manners of the first aspect; or , so that the electronic device executes the second aspect or the method in any one implementation manner of the second aspect.
- a computer program also referred to as an instruction or code
- the embodiments of the present application provide a computer program product.
- the electronic device When the computer program product is run on the electronic device, the electronic device is made to execute the method in the first aspect or any one of the implementation manners in the first aspect; or, to make the electronic device The device executes the second aspect or the method in any one implementation manner of the second aspect.
- the embodiment of the present application provides a circuit system, the circuit system includes a processing circuit, and the processing circuit is configured to execute the method in the first aspect or any one of the implementation manners in the first aspect; or, the processing circuit is configured to execute The second aspect or the method in any one of the implementation manners in the second aspect.
- the embodiment of the present application provides a chip system, including at least one processor and at least one interface circuit, at least one interface circuit is used to perform the function of sending and receiving, and send instructions to at least one processor, when at least one processor When executing the instruction, at least one processor executes the method of the first aspect or any one of the implementation manners of the first aspect; or, at least one processor executes the second aspect or the method of any one of the implementation manners of the second aspect.
- Figure 1 is a schematic interface diagram 1 provided by the embodiment of the present application.
- Fig. 2 is the interface schematic diagram 2 provided by the embodiment of the present application.
- FIG. 3 is a schematic diagram of a hardware structure of an electronic device provided in an embodiment of the present application.
- FIG. 4 is a schematic diagram of a software structure block diagram of an electronic device provided in an embodiment of the present application.
- Fig. 5 is a flow chart of the display method provided by the embodiment of the present application.
- Fig. 6 is a specific flow chart of the first embodiment of the step of displaying the application startup motion effect in the display method provided by the embodiment of the present application;
- Fig. 7 is a schematic diagram of the third interface provided by the embodiment of the present application.
- Fig. 8 is a specific flow chart of the second embodiment of the step of displaying the application startup motion effect in the display method provided by the embodiment of the present application;
- Fig. 9 is a schematic diagram of the fourth interface provided by the embodiment of the present application.
- Figure 10 is a schematic diagram of the fifth interface provided by the embodiment of the present application.
- Fig. 11 is a specific flow chart of the first embodiment of the step of displaying the closing motion effect of the application in the display method provided by the embodiment of the present application;
- Figure 12 is the sixth schematic diagram of the interface provided by the embodiment of this application.
- Figure 13 is the seventh schematic diagram of the interface provided by the embodiment of this application.
- Fig. 14 is a specific flow chart of the second embodiment of the step of displaying the closing motion effect of the application in the display method provided by the embodiment of the present application;
- Figure 15 is the eighth schematic diagram of the interface provided by the embodiment of the present application.
- FIG. 16 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
- references to "one embodiment” or “some embodiments” or the like in this specification means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application.
- appearances of the phrases “in one embodiment,” “in some embodiments,” “in other embodiments,” “in other embodiments,” etc. in various places in this specification are not necessarily All refer to the same embodiment, but mean “one or more but not all embodiments” unless specifically stated otherwise.
- the terms “including”, “comprising”, “having” and variations thereof mean “including but not limited to”, unless specifically stated otherwise.
- the term “connected” includes both direct and indirect connections, unless otherwise stated. "First” and “second” are used for descriptive purposes only, and should not be understood as indicating or implying relative importance or implicitly specifying the quantity of indicated technical features.
- the preset animation effect for starting an application in the electronic device includes two parts of animation elements, one part is an application icon (Icon) animation effect, and the other part is an application window (window) animation effect.
- the electronic device After the electronic device detects that the user starts the application program, it calls the desktop process to execute the display application icon animation, and then calls the system service (SystemServer) process to execute the display application window animation.
- SystemServer system service
- Due to the connection problem between the desktop process and the system service process which may lead to connection problems between the application icon animation and the application window animation, resulting in image flashing, image misalignment and other abnormalities caused by the application startup animation freezing during the application startup process, affecting the user experience.
- the desktop invokes a desktop process to display a dynamic effect of the application icon, such as enlarging the icon for display.
- the icon indicated by the reference numeral 12 is the icon display effect at a certain moment in the process of the icon zooming in and moving effect.
- the window manager service (window manager service, WMS) calls the system service process to display the application window (that is, the window of the first interface to be displayed) dynamic effects, such as enlarging the application window for display.
- WMS window manager service
- the application window indicated by reference numeral 13 is the display effect of the application window at a certain moment during the animation process of the application window.
- the electronic device After the electronic device finishes displaying the dynamic effect of the application window, it displays an interface 104 as shown in (d) in FIG.
- the embodiment of the present application provides a display method.
- the WMS can obtain the application icon data, control the application icon animation and the application window animation, and display the application startup animation by a single module, ensuring The fluency of the application startup animation display improves the user experience.
- some or all of the applications in the electronic device are configured with a starting window (Starting Window) mechanism.
- the Starting Window mechanism includes, for example, presetting a picture for the application program in the electronic device, and displaying the motion effect of the preset picture before the drawing of the first display interface of the application program to be displayed is completed. Then, the window animation in the application startup animation can be the animation of the first display interface of the application to be displayed, or the animation of the Starting Window.
- the Smart Life application adopts the Starting Window mechanism and is configured with a Starting Window picture corresponding to the activation effect, as shown in the interface 201 shown in (a) in FIG. 2 . If it is determined to start the smart life application, then draw the window content of the corresponding first display interface (that is, display the main interface of smart life), and start to display the start motion effect.
- the startup motion effect includes the icon motion effect at a certain moment during the icon enlargement process indicated by the reference number 22 in the interface 202 as shown in (b) in Figure 2, and the reference number in the interface 203 as shown in Figure 2 (c)
- the electronic device displays the preset picture until the window content of the first display interface is drawn, and displays the interface 205 shown in (e) in FIG. interface to complete the startup of the smart life application. Then, in the display method provided in the embodiment of the present application, the WMS should control the dynamic display of the application icon shown in the interface 202, the dynamic display of the Starting Window shown in the interface 203, and the dynamic display of the Starting Window shown in the interface 204.
- the application program to be started may also be a background application.
- the electronic device does not start the gallery application before detecting the operation of clicking the gallery icon 11, then after detecting the operation of clicking the gallery icon 11, the electronic device opens the gallery application, and the gallery application becomes the foreground application .
- the electronic device has started the gallery application before detecting the operation of clicking the gallery icon 11, then after detecting the operation of clicking the gallery icon 11, the electronic device opens the gallery application, and the gallery application is activated from the background. The application transitions to the foreground application.
- the application program can be divided into: a foreground application and a background application.
- the foreground application and the background application describe the running state of the application program, wherein the foreground application is an application program placed in the foreground by the user and can be directly interacted with, and the background application is an application program placed in the background by the user and cannot be directly interacted with.
- it can be determined whether the application is a foreground application or a background application according to whether the application is directly visible. Specifically, when the application program is visible, it is a foreground application, and when the application program is not visible, it is a background application.
- the application when the interface of the application is displayed on the screen of the electronic device, the application is a foreground application; when the interface of the application is not displayed on the screen of the electronic device, the application is a background application.
- the application interface does not include the top status bar and notification bar of the operating system.
- the user's operation of starting an application detected by the electronic device can be an operation of starting an application that has not been started, or an operation of starting a background application, and the WMS determines to draw the corresponding application window data and control the corresponding application window dynamic effect .
- the electronic device after the electronic device detects the operation of closing the application program, it displays the motion effect of closing the application program.
- WMS can obtain the icon data sent by the desktop, so that the WMS can control and display the application window animation and application icon animation, avoiding the application closing animation caused by the desktop controlling the application icon animation Abnormal freezing, affecting user experience.
- the electronic device 100 may include, but not limited to, mobile phones, tablet computers, wearable devices, vehicle-mounted devices, notebook computers, ultra-mobile personal computers (ultra-mobile personal computers, UMPCs), netbooks, personal digital assistants (personal digital assistant (PDA), artificial intelligence (artificial intelligence) equipment and other terminal equipment with display functions.
- the operating system installed on the electronic device 100 includes but is not limited to or other operating systems.
- the electronic device 100 may be a fixed device or a portable device. The present application does not limit the specific type of the electronic device 100 or the installed operating system.
- FIG. 3 is a schematic structural diagram of an electronic device 100 provided in an embodiment of the present application.
- the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, and an antenna 2 , mobile communication module 150, wireless communication module 160, audio module 170, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, and subscriber identification module (subscriber identification module, SIM) card interface 195 Wait.
- a processor 110 an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, and an antenna 2 , mobile communication module 150, wireless communication module 160, audio module 170, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, and subscriber identification module (subscriber identification module, SIM) card interface 195 Wait.
- SIM subscriber identification module
- the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100 .
- the electronic device 100 may include more or fewer components than shown in the figure, or combine certain components, or separate certain components, or arrange different components.
- the illustrated components can be realized in hardware, software or a combination of software and hardware.
- the processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU), etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
- application processor application processor, AP
- modem processor graphics processing unit
- GPU graphics processing unit
- image signal processor image signal processor
- ISP image signal processor
- controller video codec
- digital signal processor digital signal processor
- baseband processor baseband processor
- neural network processor neural-network processing unit
- the controller can generate an operation control signal according to the instruction opcode and timing signal, and complete the control of fetching and executing the instruction.
- a memory may also be provided in the processor 110 for storing instructions and data.
- the memory in processor 110 is a cache memory.
- the memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated access is avoided, and the waiting time of the processor 110 is reduced, thus improving the efficiency of the system.
- processor 110 may include one or more interfaces.
- the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transmitter (universal asynchronous receiver/transmitter, UART) interface, mobile industry processor interface (mobile industry processor interface, MIPI), general-purpose input and output (general-purpose input/output, GPIO) interface, subscriber identity module (subscriber identity module, SIM) interface, and /or universal serial bus (universal serial bus, USB) interface, etc.
- I2C integrated circuit
- I2S integrated circuit built-in audio
- PCM pulse code modulation
- PCM pulse code modulation
- UART universal asynchronous transmitter
- MIPI mobile industry processor interface
- GPIO general-purpose input and output
- subscriber identity module subscriber identity module
- SIM subscriber identity module
- USB universal serial bus
- the I2C interface is a bidirectional synchronous serial bus, including a serial data line (serial data line, SDA) and a serial clock line (derail clock line, SCL).
- processor 110 may include multiple sets of I2C buses.
- the processor 110 can be respectively coupled to a touch sensor, a charger, a flashlight, a camera 193 and the like through different I2C bus interfaces.
- the processor 110 may be coupled to the touch sensor through an I2C interface, so that the processor 110 communicates with the touch sensor through the I2C bus interface to realize the touch function of the electronic device 100 .
- the MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193 .
- MIPI interface includes camera serial interface (camera serial interface, CSI), display serial interface (display serial interface, DSI), etc.
- the processor 110 communicates with the camera 193 through the CSI interface to realize the shooting function of the electronic device 100 .
- the processor 110 communicates with the display screen 194 through the DSI interface to realize the display function of the electronic device 100 .
- the USB interface 130 is an interface conforming to the USB standard specification, specifically, it can be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like.
- the USB interface 130 can be used to connect a charger to charge the electronic device 100 , and can also be used to transmit data between the electronic device 100 and peripheral devices. It can also be used to connect headphones and play audio through them. This interface can also be used to connect other electronic devices, such as AR devices.
- the interface connection relationship among the modules shown in the embodiment of the present application is only a schematic illustration, and does not constitute a structural limitation of the electronic device 100 .
- the electronic device 100 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
- the charging management module 140 is configured to receive a charging input from a charger.
- the charger may be a wireless charger or a wired charger.
- the charging management module 140 can receive charging input from the wired charger through the USB interface 130 .
- the charging management module 140 may receive a wireless charging input through a wireless charging coil of the electronic device 100 . While the charging management module 140 is charging the battery 142 , it can also provide power for electronic devices through the power management module 141 .
- the power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 .
- the power management module 141 receives the input from the battery 142 and/or the charging management module 140 to provide power for the processor 110 , the internal memory 121 , the display screen 194 , the camera 193 , and the wireless communication module 160 .
- the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance).
- the power management module 141 may also be disposed in the processor 110 .
- the power management module 141 and the charging management module 140 may also be set in the same device.
- the wireless communication function of the electronic device 100 can be realized by the antenna 1 , the antenna 2 , the mobile communication module 150 , the wireless communication module 160 , a modem processor, a baseband processor, and the like.
- Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
- Each antenna in electronic device 100 may be used to cover single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas.
- Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
- the antenna may be used in conjunction with a tuning switch.
- the mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G applied on the electronic device 100 .
- the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA) and the like.
- the mobile communication module 150 can receive electromagnetic waves through the antenna 1, filter and amplify the received electromagnetic waves, and send them to the modem processor for demodulation.
- the mobile communication module 150 can also amplify the signals modulated by the modem processor, and convert them into electromagnetic waves through the antenna 1 for radiation.
- at least part of the functional modules of the mobile communication module 150 may be set in the processor 110 .
- at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be set in the same device.
- a modem processor may include a modulator and a demodulator.
- the modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal.
- the demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator sends the demodulated low-frequency baseband signal to the baseband processor for processing.
- the low-frequency baseband signal is passed to the application processor after being processed by the baseband processor.
- the application processor outputs sound signals through audio equipment, or displays images or videos through the display screen 194 .
- the modem processor may be a stand-alone device. In some other embodiments, the modem processor may be independent of the processor 110, and be set in the same device as the mobile communication module 150 or other functional modules.
- the wireless communication module 160 can provide wireless local area networks (wireless local area networks, WLAN) (such as wireless fidelity (Wireless Fidelity, Wi-Fi) network), bluetooth (bluetooth, BT), global navigation satellite, etc. applied on the electronic device 100.
- System global navigation satellite system, GNSS
- frequency modulation frequency modulation, FM
- near field communication technology near field communication, NFC
- infrared technology infrared, IR
- the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
- the wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency-modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
- the wireless communication module 160 can also receive the signal to be sent from the processor 110 , frequency-modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
- the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
- the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC , FM, and/or IR techniques, etc.
- GSM global system for mobile communications
- GPRS general packet radio service
- code division multiple access code division multiple access
- CDMA broadband Code division multiple access
- WCDMA wideband code division multiple access
- time division code division multiple access time-division code division multiple access
- TD-SCDMA time-division code division multiple access
- the GNSS may include a global positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a Beidou navigation satellite system (beidou navigation satellite system, BDS), a quasi-zenith satellite system (quasi -zenith satellite system (QZSS) and/or satellite based augmentation systems (SBAS).
- GPS global positioning system
- GLONASS global navigation satellite system
- Beidou navigation satellite system beidou navigation satellite system
- BDS Beidou navigation satellite system
- QZSS quasi-zenith satellite system
- SBAS satellite based augmentation systems
- the electronic device 100 realizes the display function through the GPU, the display screen 194 , and the application processor.
- the GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering.
- Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
- the display screen 194 is used to display images, videos and the like.
- the display screen 194 includes a display panel.
- the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode (active-matrix organic light emitting diode, AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diodes (quantum dot light emitting diodes, QLED), etc.
- the electronic device 100 may include 1 or N display screens 194 , where N is a positive integer greater than 1.
- Camera 193 is used to capture still images or video.
- the object generates an optical image through the lens and projects it to the photosensitive element.
- the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
- CMOS complementary metal-oxide-semiconductor
- the photosensitive element converts the light signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal.
- the ISP outputs the digital image signal to the DSP for processing.
- DSP converts digital image signals into standard RGB, YUV and other image signals.
- the electronic device 100 may include 1 or N cameras 193 , where N is a positive integer greater than 1.
- the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, so as to expand the storage capacity of the electronic device 100.
- the external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. Such as saving music, video and other files in the external memory card.
- the internal memory 121 may be used to store computer-executable program codes including instructions.
- the internal memory 121 may include an area for storing programs and an area for storing data.
- the stored program area can store an operating system, at least one application program required by a function (such as a sound playing function, an image playing function, etc.) and the like.
- the storage data area can store data created during the use of the electronic device 100 (such as audio data, phonebook, etc.) and the like.
- the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (universal flash storage, UFS) and the like.
- the processor 110 executes various functional applications and data processing of the electronic device 100 by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
- the audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signal.
- the audio module 170 may also be used to encode and decode audio signals.
- the audio module 170 may be set in the processor 110 , or some functional modules of the audio module 170 may be set in the processor 110 .
- the electronic device 100 can use the audio module 170, such as music playback, recording and so on.
- the audio module 170 may include a speaker, a receiver, a microphone, an earphone interface, and an application processor to implement audio functions.
- the sensor module 180 may include a pressure sensor, a gyro sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, and the like.
- the pressure sensor is used to sense the pressure signal and convert the pressure signal into an electrical signal.
- a pressure sensor may be located on the display screen 194 .
- pressure sensors such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors.
- a capacitive pressure sensor may be comprised of at least two parallel plates with conductive material. When a force is applied to the pressure sensor, the capacitance between the electrodes changes.
- the electronic device 100 determines the intensity of pressure according to the change in capacitance.
- the electronic device 100 detects the intensity of the touch operation according to the pressure sensor.
- the electronic device 100 may also calculate the touched position according to the detection signal of the pressure sensor.
- touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view short messages is executed. When a touch operation whose intensity is greater than or equal to the first pressure threshold acts on the icon of the short message application, the instruction of creating a new short message is executed.
- Touch sensor also known as "touch device”.
- the touch sensor can be arranged on the display screen 194, and the touch sensor and the display screen 194 form a touch screen, also called “touch screen”.
- the touch sensor is used to detect a touch operation on or near it.
- the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
- Visual output related to the touch operation can be provided through the display screen 194 .
- the touch sensor can also be disposed on the surface of the electronic device 100 , which is different from the position of the display screen 194 .
- an application icon is displayed on the display screen 194 of the electronic device 100, and after the touch sensor detects an operation of clicking the application icon, the electronic device 100 determines that the application needs to be started. Afterwards, the electronic device invokes the WMS in the system service to execute and display the application startup animation, including the application icon animation and the application window animation.
- an application interface is displayed on the display screen 194 of the electronic device 100, and after the touch sensor detects an operation to close the application, the electronic device 100 determines that the application needs to be closed. Afterwards, the electronic device invokes the WMS in the system service to execute and display the application closing animation, including the application window animation and the application icon animation.
- the keys 190 include a power key, a volume key and the like.
- the key 190 may be a mechanical key. It can also be a touch button.
- the electronic device 100 can receive key input and generate key signal input related to user settings and function control of the electronic device 100 .
- the motor 191 can generate a vibrating reminder.
- the motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback.
- touch operations applied to different applications may correspond to different vibration feedback effects.
- the motor 191 may also correspond to different vibration feedback effects for touch operations acting on different areas of the display screen 194 .
- Different application scenarios for example: time reminder, receiving information, alarm clock, games, etc.
- the touch vibration feedback effect can also support customization.
- the indicator 192 can be an indicator light, and can be used to indicate charging status, power change, and can also be used to indicate messages, missed calls, notifications, and the like.
- the SIM card interface 195 is used for connecting a SIM card.
- the SIM card can be connected and separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195 .
- the electronic device 100 may support 1 or N SIM card interfaces, where N is a positive integer greater than 1.
- the software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture.
- the embodiment of the present application takes the Android system with a layered architecture as an example to illustrate the software structure of the electronic device 100 .
- FIG. 4 is a schematic block diagram of a software structure of the electronic device 100 in the embodiment of the present application.
- the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate through software interfaces.
- the system is divided into four layers, which are application program layer, application program framework layer, runtime and system library, and kernel layer from top to bottom.
- the application layer can consist of a series of application packages.
- the application package may include application programs (also called applications) such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, and short message.
- application programs also called applications
- the application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer.
- the application framework layer includes some predefined functions.
- the application framework layer can include window manager, content provider, view system, phone manager, resource manager, notification manager, local profile management assistant (Local Profile Assistant, LPA) and so on.
- LPA Local Profile Assistant
- a window manager is used to manage window programs.
- the window manager can get the size of the display screen, determine whether there is a status bar, lock the screen, capture the screen, etc.
- the window manager can provide a window manager service (window manager service, WMS), and the WMS can obtain application icon data, and perform dynamic display of the application icon. And it can implement dynamic effect display of the application window.
- WMS window manager service
- Content providers are used to store and retrieve data and make it accessible to applications.
- Said data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebook, etc.
- the phone manager is used to provide communication functions of the electronic device 100 . For example, the management of call status (including connected, hung up, etc.).
- the resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and so on.
- the notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and can automatically disappear after a short stay without user interaction.
- the notification manager is used to notify the download completion, message reminder, etc.
- the notification manager can also be a notification that appears on the top status bar of the system in the form of a chart or scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog interface. For example, prompting text information in the status bar, issuing a prompt sound, vibrating the electronic device, and flashing the indicator light, etc.
- the view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and so on.
- the view system can be used to build applications.
- a display interface can consist of one or more views.
- a display interface including a text message notification icon may include a view for displaying text and a view for displaying pictures.
- the runtime includes the core library and virtual machine.
- the runtime is responsible for the scheduling and management of the Android system.
- the core library consists of two parts: one part is the function function that the java language needs to call, and the other part is the core library.
- the application layer and the application framework layer run in virtual machines.
- the virtual machine executes the java files of the application program layer and the application program framework layer as binary files.
- the virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
- a system library can include multiple function modules. For example: surface manager (surface manager), media library (Media Libraries), 3D graphics processing library (eg: OpenGL ES), 2D graphics engine (eg: SGL), etc.
- the surface manager is used to manage the display subsystem, and provides fusion of two-dimensional (2-Dimensional, 2D) and three-dimensional (3-Dimensional, 3D) layers for multiple applications.
- the media library supports playback and recording of various commonly used audio and video formats, as well as still image files, etc.
- the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
- the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing, etc.
- 2D graphics engine is a drawing engine for 2D drawing.
- the kernel layer is the layer between hardware and software.
- the kernel layer includes at least a display driver, a camera driver, an audio driver, a sensor driver, and a virtual card driver.
- FIG. 5 is a schematic diagram of a display method provided by an embodiment of the present application.
- the method can be applied to electronic equipment, as shown in Figure 5, the method can include S501-S503:
- the application starting operation includes, for example, the user's clicking operation on the application icon displayed on the display screen of the electronic device, an operation of starting the application program by voice, and the like.
- the application closing operation includes, for example, an operation of clicking a preset control displayed on the application interface (such as a close control, a return control, etc.), a preset gesture operation on a display screen (such as an operation of sliding up to return to the desktop), and the like.
- the electronic device may convert the foreground application into a background application after detecting the closing operation of the application.
- the electronic device after the electronic device detects the application startup operation, it sends an activity start (StartActivity) message to the system service process through the desktop process to trigger the system service process to create a layer corresponding to the corresponding application startup motion effect for Display the corresponding animation.
- an activity start (StartActivity) message after the electronic device detects the application closing operation, it sends an activity shutdown (StopActivity) message or an activity suspension (PauseActivity) message to the system service process through the desktop process, so as to trigger the system service process to create a layer corresponding to the corresponding application closing motion effect , used to display the corresponding animation effect.
- the application start animation or the application close animation includes, for example, two parts of animation elements.
- the application startup animation includes the application icon zoom-in and fade-out animation, followed by the application window zoom-in and fade-in animation;
- the application closing animation includes the application window zoom-out and fade-out animation, and then the application icon zoom-in and fade-in animation.
- an activity is one of the basic components of the Android operating system, and can be used to provide a user with an interactive interface or view in an application program.
- an application program can have multiple activities, and the application loads activities through the task stack, and the activity at the top of the task stack is an activity that the user can directly interact with.
- the activity itself has a lifecycle, and the activity management service (activity manager service, AMS) provided by the operating system can be used to monitor the lifecycle of the activity of the currently running application.
- the electronic device determines the start status and suspension status of the activity through AMS. .
- the AMS monitors the activity corresponding to the application, and after the application exits, suspends or stops the activity corresponding to the application.
- FIG. 6 is a specific flow chart of the first embodiment of the step of displaying the application startup motion effect in the display method provided by the embodiment of the present application.
- S502 can be specifically implemented as any of S601-S608 as shown in FIG. 6 A combination of one or more steps.
- the desktop determines a bitmap (bitmap) corresponding to the application icon.
- the desktop detects the application startup operation, such as detecting the user's click on the application icon, and obtains the application icon information, for example, including the location, size, shape, and content of the application icon.
- Information such as the size of the transparent area determines the bitmap corresponding to the application icon.
- the application icon may be a single-layer icon, or a double-layer icon or a multi-layer icon.
- Bitmap can also be described as raster graphics or dot matrix, which is an image represented by a pixel array (Pixel-array/Dot-matrix dot matrix).
- the desktop sends the bitmap corresponding to the application icon to the WMS.
- the desktop after determining the bitmap corresponding to the application icon, the desktop sends the bitmap corresponding to the application icon to the WMS to instruct the WMS to generate a layer corresponding to the bitmap.
- the desktop implements information interaction through inter-process communication (inter-process communication, IPC) by invoking the desktop process and the system service process invoked by the WMS.
- IPC inter-process communication
- the desktop process sends the bitmap corresponding to the application icon to the system service process through binder IPC.
- the WMS receives the bitmap corresponding to the application icon sent by the desktop.
- the WMS creates a layer corresponding to the application icon, and determines layer data corresponding to the application icon according to the bitmap corresponding to the application icon and the layer corresponding to the application icon.
- the application startup animation effect is to first display the application icon animation effect, and then display the application window animation effect, so the layer corresponding to the application icon can be created and placed under the layer corresponding to the application window, so that When the layer corresponding to the application window is displayed, the layer corresponding to the application icon can be overlaid, so as to realize the switching and connection of the application startup animation effect.
- the WMS creates a buffer layer (buffer layer) 1 (that is, the layer corresponding to the application icon), and mounts the buffer layer 1 to the bottom layer among the multiple layers currently drawn for dynamic display.
- the multiple layers used for dynamic display include the application window layer. After that, fill the bitmap corresponding to the received application icon into buffer layer 1, and generate the layer data corresponding to the application icon, which is used to display the dynamic effect of the application icon.
- the WMS creates a layer specially used to display the dynamic effect of the application icon, so that the electronic device can control the dynamic effect of the application icon through the WMS.
- the desktop controls the dynamic effect of the application icon, and the WMS does not create a layer corresponding to the application icon. Based on this, if the data in the application icon layer is acquired during the application startup animation process, the application icon data can be acquired in the layer corresponding to the application icon.
- the multiple layers used for dynamic display include layers corresponding to other control data and/or layout data during the dynamic display process, and the electronic device can only display user-visible data after combining multiple layers. Motion.
- the multiple layers used for dynamic display reference may be made to the prior art, which is not limited in this embodiment of the present application.
- the WMS when the WMS determines that the electronic device meets the preset condition, it deletes the layer corresponding to the created application icon.
- the preset condition includes, for example, a change in the resolution of the electronic device, so as to avoid an abnormal display of the dynamic effect of the application icon caused by still using the original application icon layer to create the dynamic effect of the application icon due to the change in resolution.
- the WMS when the resolution of the electronic device application is resolution 1, the WMS creates a layer A corresponding to the application icon and saves the layer A for displaying the dynamic effect of the application icon. Subsequently, if the resolution of the application of the electronic device is resolution 1, other operations for starting the application are detected, and the WMS still uses the layer A to generate the layer data of the corresponding application icon. And, after determining that the resolution applied by the electronic device changes, for example, the resolution changes from resolution 1 to resolution 2, the WMS deletes layer A. After detecting the operation of starting the application, the WMS creates a new layer such as layer B, and uses layer B to generate layer data corresponding to the application icon.
- the WMS sends layer data corresponding to the application icon to SurfaceFlinger.
- the WMS after determining the layer data corresponding to the application icon, the WMS sends the determined layer data to SurfaceFlinger for synthesis, so as to obtain image frames visible to the user.
- SurfaceFlinger receives the layer data corresponding to the application icon.
- SurfaceFlinger after SurfaceFlinger receives the layer data corresponding to the application icon, it calls the composition thread to perform layer synthesis on the layer data corresponding to the received application icon to obtain a corresponding image frame, and the electronic device uses a liquid crystal display panel (liquid crystal display, LCD) driver can receive the synthesized image frame, and display the synthesized image frame by LCD. After the LCD displays the image frame, the image displayed on the LCD can be perceived by human eyes, so as to realize the dynamic effect of displaying the application icon.
- LCD liquid crystal display
- the dynamic effect corresponding to the icon of the gallery application is displayed.
- the enlarged icon indicated by the reference numeral 72 in the interface 702 is the display effect of the application icon at a certain moment in the animation effect of the application icon.
- an application in a non-background application state and not configured with a Starting Window mechanism is taken as an example to describe the application starting effect of the embodiment of the present application. It can be understood that the method provided in the embodiment of the present application can be applied to the startup process of an unstarted application, the application startup process of a background application clicking an application icon, the startup process of an application configured with the Starting Window mechanism, and the application startup process of an application not configured with the Starting Window mechanism.
- the startup process of various types of applications, such as the startup process should not be limited to the above example scenario, which will not be described below.
- the WMS acquires the application window information, and determines layer data corresponding to the application window according to the application window information and the bitmap corresponding to the application icon.
- the application window information includes, for example, the layer corresponding to the application window and the received content data of the application window sent by the application program.
- the WMS determines the icon information corresponding to the application icon according to the bitmap corresponding to the application icon, and uses the icon information to clip the content data of the application window. For example, crop the transparent area of the application icon, and determine the layer data corresponding to the application window, so that in the process of displaying the animation effect of the application icon and the animation effect of the application window, the fade-out display effect of the application icon can be realized.
- the interface 705 is used for the dynamic effect of the displayed application window.
- the buffer layer 1 corresponding to the application icon is located under the layer corresponding to the application window (such as buffer layer 2), so after the WMS clips the window content data according to the bitmap corresponding to the application icon, it can obtain Transitional display effect, for example, the user can see the application icon content indicated by reference numeral 74 through the application window content indicated by reference numeral 73 .
- buffer layer 2 covers buffer layer 1
- the content of the application window can completely cover the content of the application icon, so as to realize the fade-out display effect of the application icon and the fade-in display effect of the application window.
- the transition from the animation effect displayed on the interface 702 to the animation effect displayed on the interface 703 is all created by WMS, there will be no stuck abnormality, which improves the user experience.
- the content data of the application window sent by the application program can be the content data displayed on the main interface of the application, or the content data displayed on the background application interface, or the image data of the Starting Window, which corresponds to the start of different types of applications, and the data types of the application window content are different. .
- the WMS sends layer data corresponding to the application window to SurfaceFlinger.
- the WMS after determining the layer data corresponding to the application window, the WMS sends the layer data corresponding to the application window to SurfaceFlinger.
- SurfaceFlinger receives the layer data corresponding to the application window.
- SurfaceFlinger after SurfaceFlinger receives the layer data corresponding to the application window, it calls the synthesis thread to perform layer synthesis on the layer data corresponding to the received application window to obtain the corresponding image frame, and the electronic device can receive the synthesized image frame by using the LCD driver.
- Image frame the composite image frame is displayed by the LCD to realize the dynamic effect of displaying the application window.
- the electronic device can display application window motion effects after acquiring window information.
- the main interface of the gallery application is displayed, and the display of the application startup animation ends, and the startup of the gallery application is completed.
- the electronic device in response to the operation of the user starting the application, can create the application icon animation effect based on the obtained bitmap corresponding to the application icon through the WMS, and create the application window animation effect through the WMS, so as to realize the dynamic effect including the application icon animation effect and the application window animation effect.
- the application startup animation created by WMS can avoid the abnormal connection of animation effects caused by the animation of application icons created on the desktop and the animation of application windows created by WMS, resulting in abnormal jamming problems such as flashing and dislocation, and improve user experience.
- the electronic device configures all the animation effects of the application icon and the animation of the application window to be created by WMS, which can avoid the abnormality of the WMS drawing application window layer caused by the abnormal delay of drawing the application icon layer on the desktop. For example, when the WMS draws the layer of the application window, a frame loss exception occurs because the user interface (UI) thread cannot be scheduled in time.
- UI user interface
- WMS after WMS receives the bitmap corresponding to the application icon, it does not need to create a layer, but directly uses the layer corresponding to the application window to generate the layer data corresponding to the application icon, reducing the layer creation steps and improving the dynamic effect Show efficiency.
- FIG. 8 is a specific flow chart of the second embodiment of the step of displaying the application startup motion effect in the display method provided by the embodiment of the present application.
- S502 can also be specifically implemented as S801-S809 as shown in FIG. 8 Any combination of one or more steps.
- the desktop determines a bitmap (bitmap) corresponding to an application icon.
- the desktop sends the bitmap corresponding to the application icon to the WMS.
- the WMS determines layer data corresponding to the application icon according to the bitmap corresponding to the application icon and the layer corresponding to the application window.
- the WMS after receiving the bitmap corresponding to the application icon, the WMS obtains the layer corresponding to the application window, fills the bitmap corresponding to the application icon into the layer corresponding to the application window, and obtains the layer data corresponding to the application icon .
- the WMS does not create a corresponding layer for the application icon, but the WMS can obtain the bitmap corresponding to the application icon, and fill the bitmap into the layer corresponding to the application window.
- the content data of the application window has not been obtained (that is, the animation effect of the application window has not yet started to be displayed). Therefore, only the bitmap corresponding to the filled application icon is included in the application window layer, and the application icon animation effect is controlled by the WMS.
- the desktop controls the dynamic effect of the application icon, and the application window layer created by the WMS does not contain application icon data. Based on this, if the data in the application window layer during the dynamic display of the application icon is obtained, the application icon data can be obtained.
- the WMS sends layer data corresponding to the application icon to SurfaceFlinger.
- the WMS acquires the application window information, and deletes the bitmap corresponding to the application icon.
- the WMS determines layer data corresponding to the application window according to the application window information.
- the application window information obtained by the WMS includes, for example, the received application window content data sent by the application program.
- the WMS determines that the application window animation needs to be displayed, However, the current application window layer is occupied by the bitmap corresponding to the application icon, so the bitmap corresponding to the application icon needs to be deleted. Afterwards, the content data of the application window is filled into the application window layer of the bitmap corresponding to the deleted application icon to obtain the layer data corresponding to the application window.
- the electronic device displays the animation effect of the application icon
- it will display the animation effect of the application window as shown in the interface 901 shown in FIG. 9 .
- the application window indicated by reference numeral 91 is the display effect of the application window at a certain moment in the application window animation process. It can be seen that since the WMS generates the layer data corresponding to the application window after deleting the bitmap corresponding to the application icon, the application icon animation will not be overwritten during the animation display process of the application window.
- the WMS sends layer data corresponding to the application window to SurfaceFlinger.
- the electronic device in response to the operation of the user starting the application, can create the application icon animation effect based on the obtained bitmap corresponding to the application icon through the WMS, and create the application window animation effect through the WMS, so as to realize the dynamic effect including the application icon animation effect and the application window animation effect.
- the startup animation created by WMS can avoid the abnormal connection of animation effects caused by the animation of desktop application icons and the application window animation of WMS, resulting in abnormal lag problems such as flashing and dislocation, and improve user experience.
- the application startup motion effect is introduced through S502 as above, and the application shutdown motion effect is introduced through S503 as follows.
- the electronic device after the electronic device detects the closing operation of the application, it closes or suspends (such as turning into a background application) the corresponding activity (activity) of the application through the desktop, and calls WMS to create the dynamic effect of the application window and the application icon , to realize the closing animation of the display application.
- the application closing motion effect corresponds to and is opposite to the application starting motion effect.
- the application closing motion effect includes, for example, the shrinking and fading motion effect of the application window and the shrinking and fading motion effect of the application icon.
- some application program icons are displayed in the desktop folder of the electronic device, so the application icon motion effect in the application closing motion effect for this part of the application should also include the folder motion effect of the folder corresponding to the application icon.
- the control 101 is an open control corresponding to the utility folder.
- the electronic device detects that the user clicks on the control 101, it opens the utility folder, as shown in FIG. 10 Interface 1002 shown in (b).
- a utility card 102 is displayed on the interface 1002 , and icons of applications classified as utility applications, such as a calculator application icon 103 , are displayed on the utility card 102 .
- the electronic device opens the calculator application and displays the calculator main interface 1003 as shown in (c) of FIG. 10 . Based on this, if the calculator application needs to be closed, the animation of the utility card (that is, the folder corresponding to the application) should also be displayed during the process of displaying the animation of closing the application.
- FIG. 11 is a specific flow chart of the first embodiment of the step of displaying the application closing motion effect in the display method provided by the embodiment of the present application.
- S503 can be specifically implemented as any of S1101-S1110 as shown in FIG. 11 A combination of one or more steps.
- the desktop determines a bitmap (bitmap) corresponding to the application icon.
- the desktop detects an application closing operation, such as detecting the user's operation of sliding up on the application display interface to return to the desktop, and obtains information corresponding to the application icon, for example, including the location of the application icon, Information such as size, shape, and size of the transparent area included in the icon determines the bitmap corresponding to the application icon.
- the information corresponding to the application icon may also include folder information corresponding to the application icon (such as folder location, size, shape, etc.), then the bitmap determined by the WMS includes the bitmap corresponding to the folder.
- the application icon can be a single-layer icon, or a double-layer icon or a multi-layer icon.
- the desktop sends the bitmap corresponding to the application icon to the WMS.
- the desktop after determining the bitmap corresponding to the application icon, the desktop sends the bitmap corresponding to the application icon to the WMS to instruct the WMS to generate layer data corresponding to the bitmap.
- the desktop sends the bitmap corresponding to the application icon to the system service process invoked by the WMS through binder IPC by calling the desktop process.
- the WMS receives the bitmap corresponding to the application icon sent by the desktop.
- the WMS acquires the application window information, and determines layer data corresponding to the application window according to the application window information and the bitmap corresponding to the application icon.
- the application window information includes, for example, the layer corresponding to the application window and the received content data of the application window sent by the application program.
- the WMS determines the icon information corresponding to the application icon according to the bitmap corresponding to the application icon, and uses the icon information to clip the content data of the application window, for example, clipping the transparent area of the application icon to determine the layer data corresponding to the application window. In this way, in the process of linking the dynamic effect of the application icon with the dynamic effect of the application window, the fade-in display effect of the application icon is realized.
- the WMS sends layer data corresponding to the application window to SurfaceFlinger.
- the WMS after determining the layer data corresponding to the application window, the WMS sends the layer data corresponding to the application window to SurfaceFlinger.
- SurfaceFlinger receives the layer data corresponding to the application window.
- SurfaceFlinger after SurfaceFlinger receives the layer data corresponding to the application window, it calls the synthesis thread to perform layer synthesis on the layer data corresponding to the received application window to obtain the corresponding image frame, and the electronic device can receive the synthesized image frame by using the LCD driver.
- Image frame the composite image frame is displayed by the LCD to realize the dynamic effect of displaying the application window.
- the WMS determines that there is a layer corresponding to the application icon. If not, execute S1107; if yes, execute S1108.
- the WMS will create a layer corresponding to the application icon, and will not delete the layer when the electronic device does not meet the preset conditions. Therefore, after receiving the bitmap corresponding to the application icon, the WMS needs to determine whether there is a layer corresponding to the application icon. If it exists, use this layer directly to generate the layer data corresponding to the application icon; if it does not exist, you need to create the layer corresponding to the application icon first, and then generate the layer data corresponding to the application icon.
- the WMS creates a layer corresponding to the application icon.
- WMS determines that the layer corresponding to the application icon is not stored in the electronic device, then creates the layer, and mounts the layer to the bottom layer among the multiple layers currently drawn for dynamic display .
- the WMS stores the layer corresponding to the created application icon, which is used in the subsequent process of displaying the dynamic effect of the application startup or the process of displaying the dynamic effect of the application closing.
- the WMS determines layer data corresponding to the application icon according to the bitmap corresponding to the application icon and the layer corresponding to the application icon.
- the WMS determines that there is a layer corresponding to the application icon, or creates a layer corresponding to the application icon, it fills the bitmap corresponding to the application icon received in the above S1102 into the layer corresponding to the application icon, and generates The layer data corresponding to the application icon, which is used to display the animation effect of the application icon.
- the WMS sends layer data corresponding to the application icon to SurfaceFlinger.
- the WMS after determining the layer data corresponding to the application icon, the WMS sends the determined layer data to SurfaceFlinger for synthesis, so as to obtain image frames visible to the user.
- SurfaceFlinger receives the layer data corresponding to the application icon.
- SurfaceFlinger after SurfaceFlinger receives the layer data corresponding to the application icon, it calls the synthesis thread to perform layer synthesis on the layer data corresponding to the received application icon to obtain the corresponding image frame, and the electronic device can receive the synthesized image frame by using the LCD driver.
- Image frame the LCD displays the synthesized image frame to realize the dynamic effect of displaying the application icon.
- the electronic device displays a gallery application interface.
- the electronic device detects the user's upward swipe operation on the interface 1201 along the direction indicated by the arrow 121, determines to close the gallery application, obtains the content information of the application window to create the corresponding layer data, and after synthesizing the layer data, displays the image corresponding to the gallery application window.
- Motion The reduced application window indicated by the reference numeral 122 in the interface 1202 shown in (b) in FIG. 12 is the display effect of the application window at a certain moment in the application window animation.
- WMS creates corresponding layer data according to the bitmap corresponding to the obtained gallery application icon, and displays the dynamic effect corresponding to the gallery icon after synthesizing the layer data.
- the reduced application window indicated by the reference numeral 123 in the interface 1203 shown in (c) in FIG. 12 is the display effect of the application window at a certain moment in the application window animation, and the user can see the shrinking process indicated by the reference numeral 124
- the application icon in the application window realizes the zoom-out and fade-out animation of the application window and the zoom-in and fade-in animation of the application icon.
- the user can see the application icon dynamic effect indicated by reference numeral 125 until the application icon is reduced to a preset size, and the interface 1205 shown in (e) in FIG. 12 is displayed. , to complete the display of the closing animation of the gallery application, and close the gallery application.
- the information corresponding to the application icon may include folder information, so the folder animation should be displayed during the process of displaying the application closing animation.
- the scenario of closing the calculator application is shown in FIG. 13 .
- the electronic device displays a calculator interface 1301 as shown in (a) of FIG. 13 , and after detecting the operation of closing the calculator application, determines to close the calculator application. Obtain the window content information to create the corresponding layer data. After the layer data is synthesized, the animation corresponding to the calculator application window will be displayed. As shown in (b) of FIG. 13 , the reduced application window indicated by reference numeral 131 in the interface 1302 is the display effect of the application window at a certain moment in the animation of the application window.
- WMS creates the corresponding layer data according to the bitmap corresponding to the obtained calculator application icon (such as the bitmap corresponding to the utility folder), and displays the animation effect corresponding to the utility folder after synthesizing the layer data.
- the reduced utility folder card indicated by reference numeral 132 in the interface 1303 is the display effect of the utility folder card at a certain moment in the animation effect of the utility folder.
- the interface 1304 shown in (d) in Figure 13 until the utility folder card is reduced to the preset size, the interface 1304 shown in (d) in Figure 13 is displayed, and the display of the closing motion effect of the calculator application is completed, and the application is closed.
- an interface including a calculator icon dynamic effect may also be displayed between the interface 1303 and the interface 1304 .
- the above S1106-S1110 can also be executed before S1103, that is to say, after receiving the bitmap corresponding to the application icon, the WMS first confirms whether there is a layer corresponding to the application icon, and creates a dynamic effect of the application icon, but this The image frame corresponding to the displayed application icon is invisible to the user (for example, it has a fade-in display effect).
- the application window animation is created, the application window layer is overlaid and displayed on the application icon layer. For example, as shown in interface 1202 in (b) of FIG. 12 , under the application window animation indicated by reference numeral 122 , an application icon animation invisible to the user may be displayed.
- the above S1106 and S1107 can also be executed before S1103, that is to say, after receiving the bitmap corresponding to the application icon, the WMS first confirms whether there is a layer corresponding to the application icon, and confirms whether it is necessary to create a layer corresponding to the application icon. layer. After that, WMS creates the application window animation. In the current scenario, the WMS executes S1103 after executing S1107.
- the electronic device in response to the user's operation of closing the application, can create an application window animation through the WMS, and create an application icon animation based on the obtained bitmap corresponding to the application icon through the WMS, so as to realize a dynamic effect including the application window animation and the application icon animation. Used to turn off the display of the animation.
- the application closing animation created by WMS can avoid abnormal joints of animations caused by WMS creating application window animations and desktop creating application icon animations, resulting in abnormal jamming problems such as flashing and dislocation, and improves user experience.
- the WMS does not create the layer corresponding to the application icon, but directly uses the layer corresponding to the application window to generate the layer data corresponding to the application icon, then in In the process of creating the application closing animation in WMS, it is not necessary to confirm whether there is a layer corresponding to the application icon, but to directly use the application window layer to create the application icon animation.
- FIG. 14 is a specific flow chart of the second embodiment of the step of displaying the application closing motion effect in the display method provided by the embodiment of the present application.
- S502 can also be specifically implemented as S1401-S1408 as shown in FIG. 14 Any combination of one or more steps.
- the WMS acquires application window information in response to an activity close or pause message, and determines layer data corresponding to the application window according to the application window information.
- the electronic device after the electronic device detects the application closing operation, it sends an activity closing (StopActivity) message or an activity suspending (PauseActivity) message to the system service process through the desktop process.
- the WMS determines that it needs to start creating the application closing animation.
- the bitmap corresponding to the application icon and the content data of the application window both correspond to the same layer. Based on this, when the WMS determines that the application window animation needs to be displayed, it obtains the application window information and fills the application window content data into the application The layer corresponding to the window generates the layer data corresponding to the application window.
- the WMS sends layer data corresponding to the application window to SurfaceFlinger.
- the desktop determines a bitmap (bitmap) corresponding to the application icon.
- the desktop sends the bitmap corresponding to the application icon to the WMS.
- the WMS determines layer data corresponding to the application icon according to the bitmap corresponding to the application icon and the layer corresponding to the window.
- the WMS deletes the application window content data filled in the above S1401 in the layer corresponding to the application window, fills the acquired bitmap corresponding to the application icon into the layer corresponding to the application window, and generates the application icon corresponding layer data for .
- the electronic device detects the operation of closing the gallery application, it will display the application window motion effect shown in the interface 1501 shown in (a) in FIG. 15 ,
- the application icon animation is not covered under the application window animation.
- the application window indicated by reference numeral 151 is the display effect of the application window at a certain moment in the application window animation process.
- the application icon animation is created by the WMS, the display of the application window animation is finished, and the application icon animation shown in the interface 1502 shown in (b) of FIG. 15 is directly displayed.
- the application icon indicated by reference numeral 152 is the display effect of the application icon at a certain moment in the application icon animation process.
- the WMS sends layer data corresponding to the application icon to SurfaceFlinger.
- the above S1404 and S1405 can also be executed before S1401, that is to say, the WMS can create the layer data corresponding to the application window after receiving the bitmap corresponding to the application icon.
- the electronic device in response to the user's operation of closing the application, can create an application window animation through the WMS, and create an application icon animation based on the obtained bitmap corresponding to the application icon through the WMS, so as to realize a dynamic effect including the application window animation and the application icon animation. Turn off the animation display.
- the application closing animation created by WMS can avoid abnormal joints of animations caused by WMS creating application window animations and desktop creating application icon animations, resulting in abnormal jamming problems such as flashing and dislocation, and improves user experience.
- the display method provided by the embodiment of the present application has been described in detail above with reference to FIGS. 5-15 .
- the display device provided by the embodiment of the present application will be described in detail below with reference to FIG. 16 .
- FIG. 16 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
- an electronic device 1600 may include: a transceiver unit 1601 , a processing unit 1602 and a display unit 1603 .
- the electronic device 1600 may be used to implement the functions of the electronic device involved in the foregoing method embodiments.
- the transceiver unit 1601 is configured to support the electronic device 1600 to execute S501 in FIG. 5 .
- the processing unit 1602 is configured to support the electronic device 1600 to execute S61-S608 in FIG. 6; and/or, support the electronic device 1600 to execute S801-S809 in FIG. S1101-S1110 in 11; and/or, support the electronic device 1600 to execute S1401-S1408 in FIG. 14 .
- the display unit 1603 is configured to support the electronic device 1600 to display interface content; and/or, support the electronic device 1600 to execute S502 or S503 in FIG. 5 .
- the transceiving unit may include a receiving unit and a transmitting unit, may be implemented by a transceiver or a transceiver-related circuit component, and may be a transceiver or a transceiver module.
- the operation and/or function of each unit in the electronic device 1600 is to realize the corresponding flow of the display method described in the above method embodiment, and all relevant content of each step involved in the above method embodiment can be referred to the corresponding functional unit. For the sake of brevity, the function description will not be repeated here.
- the electronic device 1600 shown in FIG. 16 may further include a storage unit (not shown in FIG. 16 ), where programs or instructions are stored.
- a storage unit not shown in FIG. 16
- the processing unit 1602 and the transceiver unit 1601 execute the program or instruction
- the electronic device 1600 shown in FIG. 16 can execute the display method described in the above method embodiment.
- the technical solution provided in this application may also be a functional unit or chip in the electronic device, or a device used in conjunction with the electronic device.
- the embodiment of the present application also provides a chip system, including: a processor, the processor is coupled with a memory, and the memory is used to store programs or instructions, and when the programs or instructions are executed by the processor, the The system on chip implements the method in any one of the foregoing method embodiments.
- processors in the chip system there may be one or more processors in the chip system.
- the processor can be realized by hardware or by software.
- the processor may be a logic circuit, an integrated circuit, or the like.
- the processor may be a general-purpose processor implemented by reading software codes stored in a memory.
- the memory may be integrated with the processor, or may be configured separately from the processor, which is not limited in this embodiment of the present application.
- the memory can be a non-transitory processor, such as a read-only memory ROM, which can be integrated with the processor on the same chip, or can be respectively arranged on different chips.
- the arrangement manner of the memory and the processor is not specifically limited.
- the chip system may be a field programmable gate array (field programmable gate array, FPGA), may be an application specific integrated circuit (ASIC), or may be a system chip (system on chip, SoC), It can also be a central processing unit (central processor unit, CPU), it can also be a network processor (network processor, NP), it can also be a digital signal processing circuit (digital signal processor, DSP), it can also be a microcontroller (micro controller unit, MCU), and can also be a programmable logic device (programmable logic device, PLD) or other integrated chips.
- FPGA field programmable gate array
- ASIC application specific integrated circuit
- SoC system chip
- CPU central processing unit
- NP network processor
- DSP digital signal processing circuit
- MCU microcontroller
- PLD programmable logic device
- each step in the foregoing method embodiments may be implemented by an integrated logic circuit of hardware in a processor or instructions in the form of software.
- the method steps disclosed in connection with the embodiments of the present application may be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules in the processor.
- the embodiment of the present application also provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is run on the computer, the computer is made to perform the above-mentioned related steps, so as to realize the above-mentioned embodiment. display method.
- An embodiment of the present application further provides a computer program product, which, when running on a computer, causes the computer to execute the above-mentioned related steps, so as to realize the display method in the above-mentioned embodiment.
- the embodiment of the present application further provides a device.
- the apparatus may specifically be a component or a module, and the apparatus may include one or more processors and memory associated therewith.
- the memory is used to store computer programs.
- the device is made to execute the display methods in the above method embodiments.
- the apparatus, computer-readable storage medium, computer program product or chip provided in the embodiments of the present application are all used to execute the corresponding method provided above. Therefore, the beneficial effects that it can achieve can refer to the beneficial effects in the corresponding method provided above, and will not be repeated here.
- the steps of the methods or algorithms described in connection with the disclosure of the embodiments of the present application may be implemented in the form of hardware, or may be implemented in the form of a processor executing software instructions.
- the software instructions can be composed of corresponding software modules, and the software modules can be stored in random access memory (random access memory, RAM), flash memory, read only memory (read only memory, ROM), erasable programmable read-only memory (erasable programmable ROM, EPROM), electrically erasable programmable read-only memory (electrically EPROM, EEPROM), registers, hard disk, removable hard disk, CD-ROM, or any other form of storage medium known in the art.
- An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium.
- the storage medium may also be a component of the processor.
- the processor and the storage medium may be located in an application specific integrated circuit (ASIC).
- ASIC application specific integrated circuit
- the disclosed method may be implemented in other ways.
- the device embodiments described above are illustrative only.
- the division of the modules or units is only a logical function division, and there may be other division methods in actual implementation; for example, multiple units or components can be combined or integrated into another system, or some features can be ignored, or not.
- the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of modules or units may be in electrical, mechanical or other forms.
- each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
- the above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
- Computer-readable storage media include but are not limited to any of the following: U disk, mobile hard disk, read-only memory (ROM), random access memory (random access memory, RAM), magnetic disk or optical disk, etc.
- ROM read-only memory
- RAM random access memory
- magnetic disk or optical disk etc.
- Various media that can store program code include but are not limited to any of the following: U disk, mobile hard disk, read-only memory (ROM), random access memory (random access memory, RAM), magnetic disk or optical disk, etc.
- Various media that can store program code include but are not limited to any of the following: U disk, mobile hard disk, read-only memory (ROM), random access memory (random access memory, RAM), magnetic disk or optical disk, etc.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
本申请提供显示方法及电子设备,涉及终端技术领域。本申请能够创建用于显示应用图标动效的图层,通过窗口管理服务控制应用图标动效以及窗口动效,从而保证应用启动动效的显示效果,避免出现卡顿异常,提升用户使用体验。该方法包括:在接收到应用启动指令后,创建用于显示应用图标动效的第一图层,基于第一图层显示应用图标动效。获取应用对应的窗口信息,显示窗口动效;第一图层是应用的窗口对应的图层;或者,窗口信息包括应用的窗口对应的第二图层,第一图层位于第二图层之下。
Description
本申请要求于2021年05月29日提交国家知识产权局、申请号为202110595998.4、发明名称为“显示方法及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本申请实施例涉及终端技术领域,尤其涉及一种显示方法及电子设备。
应用程序启动过程中,电子设备会按照预先设定的动画效果,显示应用程序图标以及应用程序窗口,从而为用户提供更好的启动应用程序的视觉效果。
比如,电子设备检测到用户点击应用程序图标的操作后,桌面应用进程显示应用程序图标的动效,窗口管理服务绘制应用程序窗口并调用系统服务进程在应用程序图标动效之后显示应用程序窗口动效,完成应用程序启动动效的显示过程。
基于此,若桌面应用进程显示的动效与系统服务进程显示的动效衔接异常,则会导致应用程序启动动效的显示过程中出现卡顿异常,影响用户使用体验。
发明内容
为了解决上述的技术问题,本申请提供了一种显示方法及电子设备。本申请提供的技术方案,窗口管理服务创建用于显示应用图标动效的图层,通过窗口管理服务控制应用图标动效以及窗口动效,从而保证应用启动动效的显示效果,避免出现卡顿异常,提升用户使用体验。
为了实现上述的技术目的,本申请实施例提供了如下技术方案:
第一方面,提供一种显示方法,应用于电子设备。该方法包括:接收来自用户的应用启动指令。响应于应用启动指令,创建应用的图标对应的第一图层;根据第一图层和应用的第一图标数据,显示应用的图标启动动效;获取应用对应的第一窗口信息,显示应用的窗口启动动效。其中,第一图层是应用的窗口对应的图层;或者,第一窗口信息包括应用的窗口对应的第二图层,第一图层位于第二图层之下。
其中,用户的启动指令用于指示电子设备启动对应的应用,例如可以包括在显示屏上点击该应用图标的操作。
在一些实施例中,窗口管理服务创建专门用于显示应用图标动效的图层,从而实现电子设备通过窗口管理服务控制应用图标动效。而现有技术中,桌面控制应用图标动效,窗口管理服务不会创建应用图标对应的图层。基于此,若在应用启动动效过程中,对应用图标图层内的数据进行获取,则可以在该应用图标对应的图层内,获取到应用图标数据。
此外,应用启动动效应为先显示应用图标动效,再显示应用窗口动效,因此可以创建应用图标对应的图层,置于应用窗口对应的图层之下,从而在显示应用窗口对应的图层时能够将应用图标对应的图层覆盖,实现应用启动动效的切换衔接。
在另一些实施例中,窗口管理服务没有为应用图标建立对应的图层,而是复用应 用窗口对应的图层。但是,窗口管理服务同样能够获取到应用图标对应的位图,将该位图填入应用窗口对应的图层,此时窗口管理服务还未获取到应用窗口内容数据(即还未开始显示应用窗口动效),因此,在应用窗口图层内仅包含填入的应用图标对应的位图,实现由窗口管理服务控制应用图标动效。相比于现有技术,桌面控制应用图标动效,窗口管理服务创建的应用窗口图层内不会包含应用图标数据。基于此,若对应用图标动效显示过程中的应用窗口图层内的数据进行获取,则可以获取到应用图标数据。
这样,电子设备在接收到用户的应用启动指令后,能够通过窗口管理服务(WMS)创建用于显示应用图标动效的图层,通过窗口管理服务生成应用图标对应的图层数据以及通过窗口管理服务生成应用窗口对应的图层数据,进而实现利用窗口管理服务创建应用图标动效以及应用窗口动效,实现包含应用图标动效和应用窗口动效的应用启动动效的显示。进而由窗口管理服务创建应用启动动效,能够避免出现由于桌面创建应用图标动效以及窗口管理服务创建应用窗口动效导致的动效衔接异常,造成的闪现、错位等异常卡顿问题,提升用户使用体验。
根据第一方面,或者以上第一方面的任意一种实现方式,第一窗口信息还包括应用的窗口对应的第一窗口内容,第一窗口内容包括如下任一项或几项:应用对应的主界面内容、应用对应的后台缓存界面内容、应用对应的启动窗口内容。
在一些实施例中,电子设备中的窗口管理服务接收应用发送的第一窗口内容,该第一窗口内容可以为应用主界面显示内容数据、或者后台应用界面显示内容数据、或者启动窗口图片数据,对应于启动不同类型的应用,应用窗口内容数据类型不同。
这样,对于在接收到应用启动指令之前未启动的应用,后台应用,配置有启动窗口机制的应用,未配置启动窗口机制的应用,均能够利用窗口管理服务实现创建应用图标动效以及应用窗口动效,提升应用启动动效的流畅性。
根据第一方面,或者以上第一方面的任意一种实现方式,当第一图层在第二图层之下时,获取应用对应的第一窗口信息,显示应用的窗口启动动效,包括:获取应用对应的第一窗口信息;根据第一窗口信息和第一图标数据,显示应用的窗口启动动效。
在一些实施中,当第一图层为应用图标对应的图层,位于应用窗口对应的图层之下时,窗口管理服务在接收到应用图标数据(如应用图标对应的位图)后,根据应用图标对应的位图确定应用图标对应的图标信息,利用图标信息对应用窗口内容数据进行裁剪。比如,裁剪应用图标透明区域,确定应用窗口对应的图层数据,从而使得在显示应用图标动效和应用窗口动效衔接过程中,实现应用图标的淡出显示效果。进而能够为用户提供更好的显示效果,提升用户使用体验。
根据第一方面,或者以上第一方面的任意一种实现方式,当第一图层在第二图层之下时,方法还包括:确定显示屏分辨率变化,删除第一图层。
在一些实施例中,窗口管理服务在确定电子设备满足预设条件时,删除创建的应用图标对应的图层。其中,预设条件例如包括电子设备分辨率变化,从而避免由于分辨率变化导致仍利用原应用图标图层创建应用图标动效导致的应用图标动效显示异常。
例如,电子设备应用的分辨率为分辨率1时,窗口管理服务创建应用图标对应的图层A并保存该图层A,用于显示应用图标动效。后续,若电子设备应用的分辨率为 分辨率1的过程中,检测到其他启动应用的操作,窗口管理服务仍利用图层A生成对应的应用图标的图层数据。并且,在确定电子设备应用的分辨率变化后,如分辨率由分辨率1变化为分辨率2,窗口管理服务删除图层A。在检测到启动应用的操作后,窗口管理服务创建新图层如图层B,利用图层B生成对应的应用图标的图层数据。
根据第一方面,或者以上第一方面的任意一种实现方式,当第一图层在第二图层之下时,方法还包括:接收来自用户的应用关闭指令。响应于应用关闭指令,获取应用对应的第二窗口信息以及应用对应的第二图标数据;根据第二窗口信息和第二图标数据,显示应用的窗口退出动效;确定是否存在第一图层;若存在,则根据第一图层和第二图标数据,显示应用的图标退出动效;若不存在,则创建第一图层,根据第一图层和第二图标数据,显示应用的图标退出动效。
在一些实施例中,在应用启动过程中,窗口管理服务会建立应用图标对应的图层,并且在电子设备未满足预设条件的情况下,不会删除该图层。因此,窗口管理服务在接收到应用图标对应的位图(即第二图标数据)后,需要确定是否存在应用图标对应的图层。若存在,则直接利用该图层生成应用图标对应的图层数据;若不存在,则需要先创建应用图标对应的图层,再生成应用图标对应的图层数据。
如此,响应于用户关闭应用的操作,电子设备能够通过窗口管理服务创建应用窗口动效,并且通过窗口管理服务基于获得的应用图标对应的位图创建应用图标动效,实现包含应用窗口动效和应用图标动效的用于关闭动效的显示。进而由窗口管理服务创建应用关闭动效,能够避免出现由于窗口管理服务创建应用窗口动效以及桌面创建应用图标动效导致的动效衔接异常,造成的闪现、错位等异常卡顿问题,提升用户使用体验。
根据第一方面,或者以上第一方面的任意一种实现方式,第二窗口信息包括第二图层和应用对应的第二窗口内容,第二窗口内容包括电子设备在接收到应用关闭指令时应用的显示界面内容;第二图标数据包括第一图标数据和/或应用的图标对应的文件夹数据。
在一些实施例中,部分应用程序图标在电子设备桌面文件夹内显示,那么对于这部分应用的应用关闭动效中的应用图标动效还应包括应用图标对应的文件夹的文件夹动效。
这样,电子设备在显示应用关闭动效的过程中,能够根据应用类型,为用户提供适应的应用关闭动效,提升用户使用体验。
根据第一方面,或者以上第一方面的任意一种实现方式,当第一图层是所述应用的窗口对应的图层时,在获取应用对应的第一窗口信息,显示应用的窗口启动动效之前,方法还包括:删除第一图层内的第一图标数据。
根据第一方面,或者以上第一方面的任意一种实现方式,获取应用对应的第一窗口信息,显示应用的窗口启动动效,包括:获取应用对应的第一窗口信息;根据第一窗口信息,显示应用的窗口启动动效。
在一些实施例中,窗口管理服务获得的应用窗口信息例如包括接收到的应用程序发送的应用窗口内容数据,窗口管理服务在接收到应用窗口内容数据后,确定需要显示应用窗口动效,但当前应用窗口图层被应用图标对应的位图(即第一图标数据)占 用,因此需要删除应用图标对应的位图。之后,将应用窗口内容数据填入已删除应用图标对应的位图的应用窗口图层中,获得应用窗口对应的图层数据。
根据第一方面,或者以上第一方面的任意一种实现方式,当第一图层是所述应用的窗口对应的图层时,方法还包括:接收来自用户的应用关闭指令。响应于应用关闭指令,获取应用对应的第二窗口信息以及应用对应的第二图标数据;根据第二窗口信息,显示应用的窗口退出动效;根据第一图层和第二图标数据,显示应用的图标退出动效。
这样,响应于用户关闭应用的操作,电子设备能够通过窗口管理服务创建应用窗口动效,并且通过窗口管理服务基于获得的应用图标对应的位图创建应用图标动效,实现包含应用窗口动效和应用图标动效的用于关闭动效的显示。进而由窗口管理服务创建应用关闭动效,能够避免出现由于窗口管理服务创建应用窗口动效以及桌面创建应用图标动效导致的动效衔接异常,造成的闪现、错位等异常卡顿问题,提升用户使用体验。
第二方面,提供一种显示方法,应用于电子设备。该方法包括:接收来自用户的应用启动指令。响应于应用启动指令,电子设备通过窗口管理服务创建应用的图标对应的第一图层。电子设备通过窗口管理服务根据第一图层和应用的第一图标数据确定应用的图标对应的图层数据,显示应用的图标启动动效。电子设备通过窗口管理服务获取应用对应的第一窗口信息,根据第一窗口信息确定应用的窗口对应的图层数据,显示应用的窗口启动动效。其中,第一图层是应用的窗口对应的图层;或者第一窗口信息包括应用的窗口对应的第二图层,第一图层位于第二图层之下。
根据第二方面,当第一图层在第二图层之下时,该方法还包括:接收来自用户的应用关闭指令。响应于应用关闭指令,电子设备通过窗口管理服务获取应用对应的第二窗口信息以及应用对应的第二图标数据。电子设备通过窗口管理服务根据第二窗口信息和第二图标数据确定应用的窗口对应的图层数据,显示应用的窗口退出动效。电子设备通过窗口管理服务根据第一图层和第二图标数据确定应用的图标对应的图层数据,显示应用的图标退出动效。
根据第二方面,或者以上第二方面的任意一种实现方式,当第一图层是应用的窗口对应的图层时,该方法还包括:接收来自用户的应用关闭指令。响应于应用关闭指令,电子设备通过窗口管理服务获取应用对应的第二窗口信息以及应用对应的第二图标数据。电子设备通过窗口管理服务根据第二窗口信息确定应用的窗口对应的图层数据,显示应用的窗口退出动效。电子设备通过窗口管理服务根据第一图层和第二图标数据确定应用的图标对应的图层数据,显示应用的图标退出动效。
第二方面以及第二方面中任意一种实现方式所对应的技术效果,可参见上述第一方面及第一方面中任意一种实现方式所对应的技术效果,此处不再赘述。
第三方面,提供一种电子设备。该电子设备包括:处理器、存储器以及计算机程序,其中计算机程序存储在存储器上,当计算机程序被处理器执行时,使得电子设备执行:接收来自用户的应用启动指令。响应于应用启动指令,创建应用的图标对应的第一图层;根据第一图层和应用的第一图标数据,显示应用的图标启动动效;获取应用对应的第一窗口信息,显示应用的窗口启动动效;第一图层是所述应用的窗口对应 的图层;或者,第一窗口信息包括应用的窗口对应的第二图层,第一图层位于第二图层之下。
根据第三方面,第一窗口信息还包括应用的窗口对应的第一窗口内容,第一窗口内容包括如下任一项或几项:应用对应的主界面内容、应用对应的后台缓存界面内容、应用对应的启动窗口内容。
根据第三方面,或者以上第三方面的任意一种实现方式:当第一图层在第二图层之下时,获取应用对应的第一窗口信息,显示应用的窗口启动动效,包括:获取应用对应的第一窗口信息;根据第一窗口信息和第一图标数据,显示应用的窗口启动动效。
根据第三方面,或者以上第三方面的任意一种实现方式:当第一图层在第二图层之下时,电子设备还执行:确定显示屏分辨率变化,删除第一图层。
根据第三方面,或者以上第三方面的任意一种实现方式:当第一图层在第二图层之下时,电子设备还执行:接收来自用户的应用关闭指令。响应于应用关闭指令,获取应用对应的第二窗口信息以及应用对应的第二图标数据;根据第二窗口信息和第二图标数据,显示应用的窗口退出动效;确定是否存在第一图层;若存在,则根据第一图层和第二图标数据,显示应用的图标退出动效;若不存在,则创建第一图层,根据第一图层和第二图标数据,显示应用的图标退出动效。
根据第三方面,或者以上第三方面的任意一种实现方式:第二窗口信息包括第二图层和应用对应的第二窗口内容,第二窗口内容包括电子设备在接收到应用关闭指令时应用的显示界面内容;第二图标数据包括第一图标数据和/或应用的图标对应的文件夹数据。
根据第三方面,或者以上第三方面的任意一种实现方式:当第一图层是所述应用的窗口对应的图层时,在获取应用对应的第一窗口信息,显示应用的窗口启动动效之前,电子设备还执行:删除第一图层内的第一图标数据。
根据第三方面,或者以上第三方面的任意一种实现方式:获取应用对应的第一窗口信息,显示应用的窗口启动动效,包括:获取应用对应的第一窗口信息;根据第一窗口信息,显示应用的窗口启动动效。
根据第三方面,或者以上第三方面的任意一种实现方式:当第一图层是所述应用的窗口对应的图层时,电子设备还执行:接收来自用户的应用关闭指令。响应于应用关闭指令,获取应用对应的第二窗口信息以及应用对应的第二图标数据;根据第二窗口信息,显示应用的窗口退出动效。根据第一图层和第二图标数据,显示应用的图标退出动效。
第三方面以及第三方面中任意一种实现方式所对应的技术效果,可参见上述第一方面及第一方面中任意一种实现方式所对应的技术效果,此处不再赘述。
第四方面,提供一种电子设备。该电子设备包括:处理器、存储器以及计算机程序,其中计算机程序存储在存储器上,当计算机程序被处理器执行时,使得电子设备执行:接收来自用户的应用启动指令。响应于应用启动指令,电子设备通过窗口管理服务创建应用的图标对应的第一图层。电子设备通过窗口管理服务根据第一图层和应用的第一图标数据确定应用的图标对应的图层数据,显示应用的图标启动动效。电子设备通过窗口管理服务获取应用对应的第一窗口信息,根据第一窗口信息确定应用的 窗口对应的图层数据,显示应用的窗口启动动效。第一图层是应用的窗口对应的图层;或者第一窗口信息包括应用的窗口对应的第二图层,第一图层位于第二图层之下。
根据第四方面,当第一图层在第二图层之下时,电子设备还执行:接收来自用户的应用关闭指令。响应于应用关闭指令,电子设备通过窗口管理服务获取应用对应的第二窗口信息以及应用对应的第二图标数据。电子设备通过窗口管理服务根据第二窗口信息和第二图标数据确定应用的窗口对应的图层数据,显示应用的窗口退出动效。电子设备通过窗口管理服务根据第一图层和第二图标数据确定应用的图标对应的图层数据,显示应用的图标退出动效。
根据第四方面,或者以上第四方面的任意一种实现方式,当第一图层是应用的窗口对应的图层时,电子设备还执行:接收来自用户的应用关闭指令。响应于应用关闭指令,电子设备通过窗口管理服务获取应用对应的第二窗口信息以及应用对应的第二图标数据。电子设备通过窗口管理服务根据第二窗口信息确定应用的窗口对应的图层数据,显示应用的窗口退出动效。电子设备通过窗口管理服务根据第一图层和第二图标数据确定应用的图标对应的图层数据,显示应用的图标退出动效。
第四方面以及第四方面中任意一种实现方式所对应的技术效果,可参见上述第二方面及第二方面中任意一种实现方式所对应的技术效果,此处不再赘述。
第五方面,本申请实施例提供一种电子设备,该电子设备具有实现如上述第一方面及其中任一种可能的实现方式中所述的显示方法的功能;或者,该电子设备具有实现如上述第二方面及其中任一种可能的实现方式中所述的显示方法的功能。该功能可以通过硬件实现,也可以通过硬件执行相应地软件实现。该硬件或软件包括一个或多个与上述功能相对应的模块。
第五方面以及第五方面中任意一种实现方式所对应的技术效果,可参见上述第一方面及第一方面中任意一种实现方式所对应的技术效果,此处不再赘述。
第六方面,提供一种计算机可读存储介质。计算机可读存储介质存储有计算机程序(也可称为指令或代码),当该计算机程序被电子设备执行时,使得电子设备执行第一方面或第一方面中任意一种实施方式的方法;或者,使得电子设备执行第二方面或第二方面中任意一种实施方式的方法。
第六方面以及第六方面中任意一种实现方式所对应的技术效果,可参见上述第一方面及第一方面中任意一种实现方式所对应的技术效果,此处不再赘述。
第七方面,本申请实施例提供一种计算机程序产品,当计算机程序产品在电子设备上运行时,使得电子设备执行第一方面或第一方面中任意一种实施方式的方法;或者,使得电子设备执行第二方面或第二方面中任意一种实施方式的方法。
第七方面以及第六方面中任意一种实现方式所对应的技术效果,可参见上述第一方面及第一方面中任意一种实现方式所对应的技术效果,此处不再赘述。
第八方面,本申请实施例提供一种电路系统,电路系统包括处理电路,处理电路被配置为执行第一方面或第一方面中任意一种实施方式的方法;或者,处理电路被配置为执行第二方面或第二方面中任意一种实施方式的方法。
第八方面以及第八方面中任意一种实现方式所对应的技术效果,可参见上述第一方面及第一方面中任意一种实现方式所对应的技术效果,此处不再赘述。
第九方面,本申请实施例提供一种芯片系统,包括至少一个处理器和至少一个接口电路,至少一个接口电路用于执行收发功能,并将指令发送给至少一个处理器,当至少一个处理器执行指令时,至少一个处理器执行第一方面或第一方面中任意一种实施方式的方法;或者,至少一个处理器执行第二方面或第二方面中任意一种实施方式的方法。
第九方面以及第九方面中任意一种实现方式所对应的技术效果,可参见上述第一方面及第一方面中任意一种实现方式所对应的技术效果,此处不再赘述。
图1为本申请实施例提供的界面示意图一;
图2为本申请实施例提供的界面示意图二;
图3为本申请实施例提供的电子设备的硬件结构示意图;
图4为本申请实施例提供的电子设备的软件结构框图示意图;
图5为本申请实施例提供的显示方法流程图;
图6为本申请实施例提供的显示方法中,显示应用启动动效步骤的第一种实施方式的具体流程图;
图7为本申请实施例提供的界面示意图三;
图8为本申请实施例提供的显示方法中,显示应用启动动效步骤的第二种实施方式的具体流程图;
图9为本申请实施例提供的界面示意图四;
图10为本申请实施例提供的界面示意图五;
图11为本申请实施例提供的显示方法中,显示应用关闭动效步骤的第一种实施方式的具体流程图;
图12为本申请实施例提供的界面示意图六;
图13为本申请实施例提供的界面示意图七;
图14为本申请实施例提供的显示方法中,显示应用关闭动效步骤的第二种实施方式的具体流程图;
图15为本申请实施例提供的界面示意图八;
图16为本申请实施例提供的电子设备的结构示意图。
下面结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。其中,在本申请实施例的描述中,以下实施例中所使用的术语只是为了描述特定实施例的目的,而并非旨在作为对本申请的限制。如在本申请的说明书和所附权利要求书中所使用的那样,单数表达形式“一个”、“一种”、“所述”、“上述”、“该”和“这一”旨在包括例如“一个或多个”这种表达形式,除非其上下文中明确地有相反指示。还应当理解,在本申请以下各实施例中,“至少一个”、“一个或多个”是指一个或两个以上(包含两个)。
在本说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多 个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。术语“连接”包括直接连接和间接连接,除非另外说明。“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。
在本申请实施例中,“示例性地”或者“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性地”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性地”或者“例如”等词旨在以具体方式呈现相关概念。
在一些场景中,电子设备中预置的应用启动动效包含两部分动效元素,一部分为应用图标(Icon)动效,另一部分为应用窗口(window)动效。电子设备在检测到用户启动应用程序的操作后,调用桌面进程执行显示应用图标动效,之后调用系统服务(SystemServer)进程执行显示应用窗口动效,由于桌面进程和系统服务进程之间的衔接问题,可能导致应用图标动效和应用窗口动效之间出现衔接问题,造成应用启动过程中应用启动动效卡顿导致的图像闪现、图像错位等异常,影响用户使用体验。
示例性的,如图1中(a)所示界面101,电子设备检测到用户点击图库图标11的操作后,桌面调用桌面进程显示应用图标动效,如将图标放大显示。如图1中(b)所示界面102,附图标记12指示的图标为图标放大动效过程中的某一时刻的图标显示效果。之后,窗口管理服务(window manager service,WMS)调用系统服务进程显示应用窗口(即待显示的第一个界面的窗口)动效,如将应用窗口放大显示。如图1中(c)所示界面103,附图标记13指示的应用窗口为应用窗口动效过程中某一时刻的应用窗口显示效果。电子设备完成应用窗口动效的显示后,显示如图1中(d)所示界面104,即全屏显示图库窗口,完成显示应用启动动效,完成图库应用的启动。
可以看出,在上述图1所示场景中,界面102和界面103对应的动效分别由桌面和WMS控制,导致两个阶段的动效衔接效果较差。在界面102和界面103切换显示过程中,易出现闪现、错位异常。
基于此,本申请实施例提供一种显示方法,在检测到应用启动操作后,WMS能够获得应用图标数据,控制应用图标动效以及应用窗口动效,由单一模块执行显示应用启动动效,保证应用启动动效显示的流畅性,提升用户使用体验。
在一些实施例中,电子设备中的部分或全部应用配置有启动窗口(Starting Window)机制。其中,Starting Window机制例如包括在电子设备中为应用程序预置一张图片,在待显示的应用程序第一个显示界面绘制完成之前,显示该预置图片动效。那么,应用启动动效中的窗口动效可以为待显示的应用的第一显示界面的动效,也可以为Starting Window动效。
示例性的,假设智慧生活应用采用Starting Window机制,配置有启动动效对应的Starting Window图片,如图2中(a)所示界面201,电子设备检测到用户点击智慧生活图标21的操作后,确定启动智慧生活应用,则绘制对应的第一个显示界面(即显示智慧生活主界面)的窗口内容,并开始显示启动动效。启动动效包含如图2中(b)所示界面202中附图标记22指示的图标放大过程中某一时刻的图标动效,以及如图2中(c)所示界面203中附图标记23指示的预置图片放大过程中某一时刻的预置图片 对应的应用窗口动效。之后,如图2中(d)所示界面204,电子设备显示预置图片直至第一个显示界面的窗口内容绘制完成,显示如图2中(e)所示界面205,即显示智慧生活主界面,完成智慧生活应用的启动。那么在本申请实施例提供的显示方法中,WMS应控制界面202所示的应用图标动效显示、界面203所示的Starting Window动效显示以及界面204所示的Starting Window动效显示。
在一些实施例中,待启动的应用程序还可以为后台应用。假设在上述图1所示场景中,电子设备在检测到点击图库图标11的操作之前未启动图库应用,则在检测到点击图库图标11的操作后,电子设备打开图库应用,图库应用成为前台应用。假设在上述图1所示场景中,电子设备在检测到点击图库图标11的操作之前已启动图库应用,则在检测到点击图库图标11的操作后,电子设备打开图库应用,将图库应用由后台应用转变为前台应用。
可选的,根据应用程序是否可以直接与用户交互,可以将应用程序分为包括:前台应用、后台应用。前台应用和后台应用为对应用程序运行状态的描述,其中,前台应用为用户放置在前台的、可以直接交互的应用程序,后台应用为用户放置在后台的、不可以直接交互的应用程序。在本申请的实施例中,可以根据应用程序是否直接可见,可以确定该应用是前台应用或后台应用。具体的,当应用程序可见时为前台应用,当应用程序不可见时为后台应用。例如,当电子设备的屏幕上显示应用的界面时,该应用为前台应用;当电子设备的屏幕上没有显示应用的界面时,该应用为后台应用。其中,应用的界面不包括操作系统的顶部状态栏、通知栏。
也就是说,电子设备检测到的用户启动应用的操作可以为启动未启动过的应用的操作,也可以为启动后台应用的操作,WMS确定绘制对应的应用窗口数据以及控制对应的应用窗口动效。
在一些实施例中,电子设备在检测到关闭应用程序的操作后,显示应用关闭动效。同样的,在应用关闭动效过程中,WMS能够获得桌面发送的图标数据,从而由WMS控制显示应用窗口动效以及应用图标动效,避免出现由于桌面控制应用图标动效导致的应用关闭动效卡顿异常,影响用户使用体验。
下面介绍本申请提供的电子设备:
本申请实施例中电子设备100例如可以包括但不限于手机、平板电脑、可穿戴设备、车载设备、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、个人数字助理(personal digital assistant,PDA)、人工智能(artificial intelligence)设备等具有显示功能的终端设备。电子设备100安装的操作系统包括但不限于
或者其它操作系统。在一些实施例中,电子设备100可以为固定式设备,也可以为便携式设备。本申请对电子设备100的具体类型、所安装的操作系统均不作限制。
示例性的,图3为本申请实施例提供的电子设备100的一个结构示意图。
电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户 标识模块(subscriber identification module,SIM)卡接口195等。
可以理解的是,本申请实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器,使处理器110与触摸传感器通过I2C总线接口通信,实现电子设备100的触摸功能。
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现电子设备100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现电子设备100的显示功能。
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。
可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明, 并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处 理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等) 等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。处理器110通过运行存储在内部存储器121的指令,和/或存储在设置于处理器中的存储器的指令,执行电子设备100的各种功能应用以及数据处理。
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。电子设备100可以通过音频模块170,例如音乐播放,录音等。音频模块170可以包括扬声器,受话器,麦克风,耳机接口,以及应用处理器等实现音频功能。
传感器模块180可以包括压力传感器,陀螺仪传感器,气压传感器,磁传感器,加速度传感器,距离传感器,接近光传感器,指纹传感器,温度传感器,触摸传感器,环境光传感器,骨传导传感器等。
压力传感器用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器可以设置于显示屏194。压力传感器的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏,电子设备100根据压力传感器检测所述触摸操作强度。电子设备100也可以根据压力传感器的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。
触摸传感器,也称“触控器件”。触摸传感器可以设置于显示屏194,由触摸传感器与显示屏194组成触摸屏,也称“触控屏”。触摸传感器用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器也可以设置于电子设备100的表面,与显示屏194所处的位置不同。
在一些实施例中,电子设备100显示屏194上显示有应用程序图标,通过触摸传感器检测到点击应用图标的操作后,电子设备100确定需要启动该应用。之后,电子设备调用系统服务中的WMS执行显示应用启动动效,包括应用图标动效以及应用窗口动效。
在另一些实施例汇总,电子设备100显示屏194上显示有应用界面,通过触摸传感器检测到关闭应用的操作后,电子设备100确定需要关闭该应用。之后,电子设备调用系统服务中的WMS执行显示应用关闭动效,包括应用窗口动效以及应用图标动效。
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。
电子设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本申请实施例以分层架构的Android系统为例,示例性说明电子设备100的软件结构。
示例性的,图4为本申请实施例中电子设备100的一个软件结构示意框图。
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将系统分为四层,从上至下分别为应用程序层,应用程序框架层,运行时和系统库,以及内核层。
应用程序层可以包括一系列应用程序包。
如图4所示,应用程序包可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等应用程序(也可以称为应用)。
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。
如图4所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器,本地Profile管理助手(Local Profile Assistant,LPA)等。
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。
在一些实施例中,窗口管理器能够提供窗口管理服务(window manager service,WMS),WMS能够获得应用图标数据,执行应用图标动效显示。并且能够执行应用窗口动效显示。
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。
电话管理器用于提供电子设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状 态栏的通知,例如后台运行的应用程序的通知,还可以是以对话界面形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。
运行时包括核心库和虚拟机。运行时负责安卓系统的调度和管理。
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是核心库。
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),二维图形引擎(例如:SGL)等。
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了二维(2-Dimensional,2D)和三维(3-Dimensional,3D)图层的融合。
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。
三维图形处理库用于实现3D图形绘图,图像渲染,合成,和图层处理等。
2D图形引擎是2D绘图的绘图引擎。
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动,虚拟卡驱动。
示例性地,图5为本申请实施例提供的一种显示方法示意图。该方法可以应用于电子设备,如图5所示,该方法可以包括S501-S503:
S501、检测到应用启动操作或应用关闭操作。若检测到应用启动操作,则执行S502;若检测到应用关闭操作,则执行S503。
其中,应用启动操作例如包括用户对电子设备显示屏上显示的应用图标的点击操作、语音启动应用程序的操作等。应用关闭操作例如包括点击应用界面显示的预设控件(如关闭控件、返回控件等)的操作、在显示屏上的预设手势操作(如上滑返回桌面的操作)等。可选的,电子设备检测到应用关闭操作后,可以将前台应用转换为后台应用。
在一些实施例中,电子设备检测到应用启动操作后,则通过桌面进程向系统服务进程发送活动启动(StartActivity)消息,以触发系统服务进程创建相应的应用启动动效对应的图层,用于显示相应的动效。或者,电子设备检测到应用关闭操作后,则通过桌面进程向系统服务进程发送活动关闭(StopActivity)消息或活动暂停(PauseActivity)消息,以触发系统服务进程创建相应的应用关闭动效对应的图层,用于显示相应的动效。可选的,应用启动动效或应用关闭动效例如包含两部分动效元素。比如,应用启动动效例如包括应用图标放大淡出动效,之后衔接应用窗口放大淡入动效;应用关闭动效例如包括应用窗口的缩小淡出动效,之后衔接应用图标的缩小淡入动效。
如下通过S502详细介绍应用启动动效的实现方式,以及通过S503详细介绍应用关闭动效的实现方式。
S502、显示应用启动动效。
在一些实施例中,电子设备检测到应用启动操作后,则通过桌面创建该应用对应的活动(activity),并调用WMS创建应用图标动效以及应用窗口动效,实现显示应用启动动效。其中,活动(activity)是Android操作系统的基本组件之一,可以用于在应用程序中为用户提供可交互的界面或视图。其中,一个应用程序可以有多个活动,应用通过任务栈装载活动,其中任务栈顶端的活动为用户可以直接交互的活动。活动本身具有生命周期,可以通过操作系统提供的活动管理服务(activity manager service,AMS)去监控当前正在运行的应用程序的活动的生命周期,例如电子设备通过AMS确定活动的开始状态和暂停状态等。例如,桌面建立应用对应的活动后,由AMS监控该应用对应的活动,在应用退出后,暂停或停止该应用对应的活动。
可选的,图6为本申请实施例提供的显示方法中,显示应用启动动效步骤的第一种实施方式的具体流程图,S502可以具体实现为如图6所示的S601-S608中任意一个或多个步骤的组合。
S601、响应于应用启动操作,桌面确定应用图标对应的位图(bitmap)。
在一些实施例中,如上述S501所述,桌面检测到应用启动操作,如检测到用户点击应用图标的操作后,获取应用图标信息,例如包括应用图标的位置、大小、形状、图标中包含的透明区域尺寸等信息,确定应用图标对应的bitmap。其中,应用图标可以为单层图标,也可以为双层图标或多层图标。bitmap也可以描述为栅格图(raster graphics)或点阵图,是使用像素阵列(Pixel-array/Dot-matrix点阵)来表示的图像。
S602、桌面向WMS发送应用图标对应的位图。
在一些实施例中,桌面在确定应用图标对应的bitmap后,将该应用图标对应的bitmap发送至WMS,用于指示WMS生成bitmap对应的图层。可选的,桌面通过调用桌面进程与WMS调用的系统服务进程通过进程间通信(inter-process communication,IPC)的方式实现信息的交互。例如,桌面进程通过binder IPC方式向系统服务进程发送应用图标对应的位图。相应的,WMS接收桌面发送的应用图标对应的bitmap。
S603、WMS创建应用图标对应的图层,根据应用图标对应的位图和应用图标对应的图层,确定应用图标对应的图层数据。
在一些实施例中,如上所述应用启动动效应为先显示应用图标动效,再显示应用窗口动效,因此可以创建应用图标对应的图层,置于应用窗口对应的图层之下,从而在显示应用窗口对应的图层时能够将应用图标对应的图层覆盖,实现应用启动动效的切换衔接。
示例性的,WMS创建缓冲图层(buffer layer)1(即应用图标对应的图层),将buffer layer 1挂载到当前绘制的用于动效显示的多个图层中的最底层。其中,用于动效显示的多个图层包括应用窗口图层。之后,将接收到的应用图标对应的bitmap填充进buffer layer 1,生成应用图标对应的图层数据,用于显示应用图标动效。
如此,WMS创建专门用于显示应用图标动效的图层,从而实现电子设备通过WMS控制应用图标动效。而现有技术中,桌面控制应用图标动效,WMS不会创建应用图标 对应的图层。基于此,若在应用启动动效过程中,对应用图标图层内的数据进行获取,则可以在该应用图标对应的图层内,获取到应用图标数据。
需要说明的是,用于动效显示的多个图层包含在动效显示过程中其他控件数据和/或布局数据对应的图层,将多个图层合成后电子设备才能够显示用户可见的动效。其中,对于用于动效显示的多个图层可以参考现有技术,本申请实施例对此不做限制。
在一些实施例中,WMS在确定电子设备满足预设条件时,删除创建的应用图标对应的图层。其中,预设条件例如包括电子设备分辨率变化,从而避免由于分辨率变化导致仍利用原应用图标图层创建应用图标动效导致的应用图标动效显示异常。
例如,电子设备应用的分辨率为分辨率1时,WMS创建应用图标对应的图层A并保存该图层A,用于显示应用图标动效。后续,若电子设备应用的分辨率为分辨率1的过程中,检测到其他启动应用的操作,WMS仍利用图层A生成对应的应用图标的图层数据。并且,在确定电子设备应用的分辨率变化后,如分辨率由分辨率1变化为分辨率2,WMS删除图层A。在检测到启动应用的操作后,WMS创建新图层如图层B,利用图层B生成对应的应用图标的图层数据。
S604、WMS向SurfaceFlinger发送应用图标对应的图层数据。
在一些实施例中,WMS在确定应用图标对应的图层数据后,将确定的图层数据发送至SurfaceFlinger进行合成,以获得用户可见的图像帧。相应的,SurfaceFlinger接收应用图标对应的图层数据。
S605、SurfaceFlinger合成应用图标对应的图层数据,以显示应用图标动效。
在一些实施例中,SurfaceFlinger接收到应用图标对应的图层数据后,调用合成线程对接收的应用图标对应的图层数据进行图层合成得到对应的图像帧,电子设备利用液晶显示面板(liquid crystal display,LCD)驱动可接收合成的图像帧,由LCD显示合成的图像帧。LCD显示图像帧后,LCD显示的图像可被人眼感知,以实现显示应用图标动效。
示例性的,如图7中(a)所示界面701,电子设备检测到用户点击图库应用图标71的操作后,WMS获取图库应用图标对应的bitmap,创建对应的图层数据,合成图层数据后显示图库应用图标对应的动效。如图7中(b)所示界面702中附图标记72指示的放大后的图标为应用图标动效中某一时刻的应用图标的显示效果。
需要说明的是,在上述步骤中以非后台应用状态且未配置Starting Window机制的应用为例对本申请实施例的应用启动效果进行说明。可以理解的是,本申请实施例提供的方法可以应用于未启动的应用启动过程、后台应用点击应用图标的应用启动过程、配置Starting Window机制的应用的启动过程、未配置Starting Window机制的应用的启动过程等多种类型的应用的启动过程,应不局限于上述示例场景,对此下文不再进行说明。
S606、WMS获取应用窗口信息,根据应用窗口信息和应用图标对应的位图,确定应用窗口对应的图层数据。
在一些实施例中,应用窗口信息例如包括应用窗口对应的图层以及接收到的应用程序发送的应用窗口内容数据。WMS根据应用图标对应的bitmap确定应用图标对应的图标信息,利用图标信息对应用窗口内容数据进行裁剪。比如,裁剪应用图标透明 区域,确定应用窗口对应的图层数据,从而使得在显示应用图标动效和应用窗口动效衔接过程中,实现应用图标的淡出显示效果。
示例性的,如图7中(c)所示界面703,界面705用于显示的应用窗口动效。其中,如S603所述,应用图标对应的buffer layer 1位于应用窗口对应的图层(如buffer layer 2)之下,因此在WMS根据应用图标对应的位图对窗口内容数据进行裁剪后,能获得过渡的显示效果,如用户透过附图标记73指示的应用窗口内容能够看到附图标记74指示的应用图标内容。并且由于buffer layer 2覆盖buffer layer 1,因此在应用窗口动效显示过程中,应用窗口内容能够完全覆盖应用图标内容,实现应用图标的淡出显示效果以及应用窗口的淡入显示效果。并且,由于界面702上显示的动效过渡到界面703上显示的动效过程均为WMS创建,因此不会出现卡顿异常,提升用户使用体验。
需要说明的是,应用程序发送的应用窗口内容数据可以为应用主界面显示内容数据、或者后台应用界面显示内容数据、或者Starting Window图片数据,对应于启动不同类型的应用,应用窗口内容数据类型不同。
S607、WMS向SurfaceFlinger发送应用窗口对应的图层数据。
在一些实施例中,WMS在确定应用窗口对应的图层数据后,向SurfaceFlinger发送应用窗口对应的图层数据。相应的,SurfaceFlinger接收应用窗口对应的图层数据。
S608、SurfaceFlinger合成应用窗口对应的图层数据,以显示应用窗口动效。
在一些实施例中,SurfaceFlinger接收到应用窗口对应的图层数据后,调用合成线程对接收的应用窗口对应的图层数据进行图层合成得到对应的图像帧,电子设备利用LCD驱动可接收合成的图像帧,由LCD显示合成的图像帧,以实现显示应用窗口动效。
示例性的,如图7中(c)所示界面703,电子设备在获取窗口信息后,能够显示应用窗口动效。并且,如图7中(d)所示界面704,显示图库应用主界面,结束应用启动动效的显示,完成图库应用的启动。
如此,响应于用户启动应用的操作,电子设备能够通过WMS基于获得的应用图标对应的bitmap创建应用图标动效,并且通过WMS创建应用窗口动效,实现包含应用图标动效和应用窗口动效的应用启动动效的显示。进而由WMS创建应用启动动效,能够避免出现由于桌面创建应用图标动效以及WMS创建应用窗口动效导致的动效衔接异常,造成的闪现、错位等异常卡顿问题,提升用户使用体验。
此外,电子设备将应用图标动效和应用窗口动效全部配置为由WMS创建,则能够避免出现由于桌面绘制应用图标图层的延时异常导致的WMS绘制应用窗口图层异常。比如,WMS在绘制应用窗口图层过程中,由于用户界面(user interface,UI)线程没能及时得到调度导致出现丢帧异常。
在一些场景中,WMS在接收到应用图标对应的bitmap后,可以不创建图层,而是直接利用应用窗口对应的图层生成应用图标对应的图层数据,减少图层创建步骤,提升动效显示效率。
可选的,图8为本申请实施例提供的显示方法中,显示应用启动动效步骤的第二种实施方式的具体流程图,S502还可以具体实现为如图8所示的S801-S809中任意一 个或多个步骤的组合。
S801、响应于应用启动操作,桌面确定应用图标对应的位图(bitmap)。
S802、桌面向WMS发送应用图标对应的位图。
其中,S801-S802可以参考上述S601-S602的相关描述,在此不再赘述。
S803、WMS根据应用图标对应的位图和应用窗口对应的图层,确定应用图标对应的图层数据。
在一些实施例中,WMS在接收到应用图标对应的位图后,获取应用窗口对应的图层,将应用图标对应的位图填入应用窗口对应的图层,获得应用图标对应的图层数据。
需要说明的是,虽然在S803中,WMS没有为应用图标建立对应的图层,但是WMS能够获取到应用图标对应的位图,将该位图填入应用窗口对应的图层,此时WMS还未获取到应用窗口内容数据(即还未开始显示应用窗口动效),因此,在应用窗口图层内仅包含填入的应用图标对应的位图,实现由WMS控制应用图标动效。相比于现有技术,桌面控制应用图标动效,WMS创建的应用窗口图层内不会包含应用图标数据。基于此,若对应用图标动效显示过程中的应用窗口图层内的数据进行获取,则可以获取到应用图标数据。
S804、WMS向SurfaceFlinger发送应用图标对应的图层数据。
S805、SurfaceFlinger合成应用图标对应的图层数据,以显示应用图标动效。
其中,S804-S805可以参考上述S604-S605的相关描述,在此不再赘述。
S806、WMS获取应用窗口信息,删除应用图标对应的位图。
S807、WMS根据应用窗口信息,确定应用窗口对应的图层数据。
在一些实施例中,在S806和S807中,WMS获得的应用窗口信息例如包括接收到的应用程序发送的应用窗口内容数据,WMS在接收到应用窗口内容数据后,确定需要显示应用窗口动效,但当前应用窗口图层被应用图标对应的位图占用,因此需要删除应用图标对应的位图。之后,将应用窗口内容数据填入已删除应用图标对应的位图的应用窗口图层中,获得应用窗口对应的图层数据。
示例性的,如图7中(b)所示界面702,电子设备在显示应用图标动效后,会显示如图9所示界面901中所示的应用窗口动效。其中,如附图标记91指示的应用窗口为应用窗口动效过程中某一时刻的应用窗口显示效果。可以看出,由于WMS在删除应用图标对应的位图后,生成应用窗口对应的图层数据,因此在应用窗口动效显示过程中,不会覆盖显示应用图标动效。
S808、WMS向SurfaceFlinger发送应用窗口对应的图层数据。
S809、SurfaceFlinger合成应用窗口对应的图层数据,以显示应用窗口动效。
其中,S808-S809可以参考上述S607-S608的相关描述,在此不再赘述。
如此,响应于用户启动应用的操作,电子设备能够通过WMS基于获得的应用图标对应的bitmap创建应用图标动效,并且通过WMS创建应用窗口动效,实现包含应用图标动效和应用窗口动效的启动动效的显示。鸡儿,由WMS创建启动动效,能够避免出现由于桌面创建应用图标动效以及WMS创建应用窗口动效导致的动效衔接异常,导致的闪现、错位等异常卡顿问题,提升用户使用体验。
如上通过S502介绍了应用启动动效,如下通过S503介绍应用关闭动效。
S503、显示应用关闭动效。
在一些实施例中,电子设备检测到应用关闭操作后,则通过桌面关闭或暂停(如转为后台应用)该应用对应的活动(activity),并调用WMS创建应用窗口动效以及应用图标动效,实现显示应用关闭动效。可以理解的是,应用关闭动效应与应用启动动效相对应且相反。比如,应用关闭动效例如包括应用窗口的缩小淡出动效以及应用图标的缩小淡入动效。
在一些实施例中,部分应用程序图标在电子设备桌面文件夹内显示,那么对于这部分应用的应用关闭动效中的应用图标动效还应包括应用图标对应的文件夹的文件夹动效。
示例性的,如图10中(a)所示界面1001,控件101为实用工具文件夹对应的打开控件,电子设备检测到用户点击控件101的操作后,打开实用工具文件夹,显示如图10中(b)所示界面1002。在界面1002上显示有实用工具卡片102,并在实用工具卡片102上显示有分类为实用工具应用的应用的图标,如计算器应用图标103。电子设备检测到用户点击计算器应用图标103的操作后,打开计算器应用并显示如图10中(c)所示的计算器主界面1003。基于此,如需关闭计算器应用,在显示应用关闭动效的过程中,还应显示实用工具卡片(即应用对应的文件夹)动效。
可选的,图11为本申请实施例提供的显示方法中,显示应用关闭动效步骤的第一种实施方式的具体流程图,S503可以具体实现为如图11所示的S1101-S1110中任意一个或多个步骤的组合。
S1101、响应于应用关闭操作,桌面确定应用图标对应的位图(bitmap)。
在一些实施例中,如上述S501所述,桌面检测到应用关闭操作,如检测到用户在应用显示界面上的上滑返回桌面的操作,获取应用图标对应的信息,例如包括应用图标的位置、大小、形状、图标中包含的透明区域尺寸等信息,确定应用图标对应的bitmap。可选的,应用图标对应的信息还可以包括应用图标对应的文件夹信息(如文件夹位置、大小、形状等信息),那么WMS确定的bitmap包括文件夹对应的bitmap。应用图标可以为单层图标,也可以为双层图标或多层图标。
S1102、桌面向WMS发送应用图标对应的位图。
在一些实施例中,桌面在确定应用图标对应的bitmap后,将该应用图标对应的bitmap发送至WMS,用于指示WMS生成bitmap对应的图层数据。可选的,桌面通过调用桌面进程通过binder IPC方式向WMS调用的系统服务进程发送应用图标对应的bitmap。相应的,WMS接收桌面发送的应用图标对应的bitmap。
S1103、WMS获取应用窗口信息,根据应用窗口信息和应用图标对应的位图,确定应用窗口对应的图层数据。
在一些实施例中,应用窗口信息例如包括应用窗口对应的图层以及接收到的应用程序发送的应用窗口内容数据。WMS根据应用图标对应的bitmap确定应用图标对应的图标信息,利用图标信息对应用窗口内容数据进行裁剪,比如裁剪应用图标透明区域,确定应用窗口对应的图层数据。从而使得在显示应用图标动效和应用窗口动效衔接过程中,实现应用图标的淡入显示效果。
其中,S1103的其他内容可以参考上述S606的相关描述,在此不再赘述。
S1104、WMS向SurfaceFlinger发送应用窗口对应的图层数据。
在一些实施例中,WMS在确定应用窗口对应的图层数据后,向SurfaceFlinger发送应用窗口对应的图层数据。相应的,SurfaceFlinger接收应用窗口对应的图层数据。
S1105、SurfaceFlinger合成应用窗口对应的图层数据,以显示应用窗口动效。
在一些实施例中,SurfaceFlinger接收到应用窗口对应的图层数据后,调用合成线程对接收的应用窗口对应的图层数据进行图层合成得到对应的图像帧,电子设备利用LCD驱动可接收合成的图像帧,由LCD显示合成的图像帧,以实现显示应用窗口动效。
S1106、WMS确定存在应用图标对应的图层。若否,则执行S1107;若是,则执行S1108。
在一些实施例中,如上述S603所述,在应用启动过程中,WMS会建立应用图标对应的图层,并且在电子设备未满足预设条件的情况下,不会删除该图层。因此,WMS在接收到应用图标对应的bitmap后,需要确定是否存在应用图标对应的图层。若存在,则直接利用该图层生成应用图标对应的图层数据;若不存在,则需要先创建应用图标对应的图层,再生成应用图标对应的图层数据。
S1107、WMS创建应用图标对应的图层。
在一些实施例中,WMS确定电子设备中未存储应用图标对应的图层,则创建图层,并将该图层挂载于当前绘制的用于动效显示的多个图层中的最底层。可选的,WMS存储该创建的应用图标对应的图层,用于后续应用启动动效显示过程或应用关闭动效显示过程。
S1108、WMS根据应用图标对应的位图和应用图标对应的图层,确定应用图标对应的图层数据。
在一些实施例中,WMS确定存在应用图标对应的图层,或者创建应用图标对应的图层后,将在上述S1102中接收到的应用图标对应的bitmap填入应用图标对应的图层中,生成应用图标对应的图层数据,用于显示应用图标动效。
S1109、WMS向SurfaceFlinger发送应用图标对应的图层数据。
在一些实施例中,WMS在确定应用图标对应的图层数据后,将确定的图层数据发送至SurfaceFlinger进行合成,以获得用户可见的图像帧。相应的,SurfaceFlinger接收应用图标对应的图层数据。
S1110、SurfaceFlinger合成应用图标对应的图层数据,以显示应用图标对应的动效。
在一些实施例中,SurfaceFlinger接收到应用图标对应的图层数据后,调用合成线程对接收的应用图标对应的图层数据进行图层合成得到对应的图像帧,电子设备利用LCD驱动可接收合成的图像帧,由LCD显示合成的图像帧,以实现显示应用图标动效。
示例性的,如图12所示,以关闭图库应用为例,对上述图11所示的方法的实现方式进行说明。如图12中(a)所示界面1201,电子设备显示图库应用界面。电子设备检测到用户在界面1201上沿箭头121所示方向的上滑操作,确定关闭图库应用,获取应用窗口内容信息创建对应的图层数据,合成图层数据后,则显示图库应用窗口对 应的动效。如图12中(b)所示界面1202中附图标记122指示的缩小后的应用窗口为应用窗口动效中某一时刻的应用窗口的显示效果,此时应用图标对应的图层数据还未创建,用户不可见应用图标。之后,WMS根据获取到的图库应用图标对应的bitmap,创建对应的图层数据,合成图层数据后显示图库图标对应的动效。如图12中(c)所示界面1203中附图标记123指示的缩小后的应用窗口为应用窗口动效中某一时刻的应用窗口的显示效果,用户可见如附图标记124指示的缩小过程中的应用图标,实现应用窗口的缩小淡出动效以及应用图标的缩小淡入动效。之后,如图12中(d)所示界面1204,此时用户可见附图标记125指示的应用图标动效,直至应用图标缩小至预设大小,显示如图12中(e)所示界面1205,完成图库应用关闭动效的显示,关闭图库应用。
可以看出,在上述图库应用关闭过程中,均由WMS创建应用关闭动效,因此在如图12中(b)至如图12中(d)所示应用关闭动效显示过程中,不会出现卡顿异常,提升用户使用体验。
在一些场景中,如上述S1101所述,应用图标对应的信息可能包括文件夹信息,那么在显示应用关闭动效的过程中,应显示文件夹动效。
示例性的,对应于图10所示的计算器应用启动场景,如图13所示为计算器应用关闭场景。电子设备显示如图13中(a)所示计算器界面1301,检测到关闭计算器应用的操作后,确定关闭计算器应用。获取窗口内容信息创建对应的图层数据,合成图层数据后,则显示计算器应用窗口对应的动效。如图13中(b)所示界面1302中附图标记131指示的缩小后的应用窗口为应用窗口动效中某一时刻的应用窗口的显示效果。之后,WMS根据获取到的计算器应用图标对应的bitmap(如实用工具文件夹对应的bitmap),创建对应的图层数据,合成图层数据后显示实用工具文件夹对应的动效。如图13中(c)所示界面1303中附图标记132指示的缩小后的实用工具文件夹卡片为实用工具文件夹动效中某一时刻的实用工具文件夹卡片的显示效果。之后,如图13中(d)所示界面1304,直至实用工具文件夹卡片缩小至预设大小,显示如图13中(d)所示界面1304,完成计算器应用关闭动效的显示,关闭计算器应用。可选的,在界面1303和界面1304之间还可以显示包含计计算器图标动效的界面。
可以看出,在上述计算器应用关闭过程中,均由WMS创建应用关闭动效,因此在如图13中(b)至如图13中(d)所示应用关闭动效显示过程中,不会出现卡顿异常,提升用户使用体验。
在一些场景中,上述S1106-S1110还可以在S1103之前执行,也就是说WMS在接收到应用图标对应的位图后,先确认是否存在应用图标对应的图层,创建应用图标动效,但此时显示的应用图标对应的图像帧用户不可见(例如为淡入显示效果)。在创建应用窗口动效后,应用窗口图层在应用图标图层之上覆盖显示。比如,如12中(b)所示界面1202,在附图标记122指示的应用窗口动效之下可以显示有用户不可见的应用图标动效。
在另一些场景中,上述S1106和S1107还可以在S1103之前执行,也就是说WMS在接收到应用图标对应的位图后,先确认是否存在应用图标对应的图层,确认是否需要创建应用图标对应的图层。之后,WMS再创建应用窗口动效。在当前场景中,WMS 在执行S1107后执行S1103。
如此,响应于用户关闭应用的操作,电子设备能够通过WMS创建应用窗口动效,并且通过WMS基于获得的应用图标对应的bitmap创建应用图标动效,实现包含应用窗口动效和应用图标动效的用于关闭动效的显示。进而由WMS创建应用关闭动效,能够避免出现由于WMS创建应用窗口动效以及桌面创建应用图标动效导致的动效衔接异常,造成的闪现、错位等异常卡顿问题,提升用户使用体验。
在一些场景中,对应于图8所示的应用启动动效显示方法,WMS不创建应用图标对应的图层,而是直接利用应用窗口对应的图层生成应用图标对应的图层数据,那么在WMS创建应用关闭动效过程中,也不必确认是否存在应用图标对应的图层,而是直接利用应用窗口图层创建应用图标动效。
可选的,图14为本申请实施例提供的显示方法中,显示应用关闭动效步骤的第二种实施方式的具体流程图,S502还可以具体实现为如图14所示的S1401-S1408中任意一个或多个步骤的组合。
S1401、WMS响应于活动关闭或暂停消息,获取应用窗口信息,根据应用窗口信息,确定应用窗口对应的图层数据。
在一些实施例中,如上述S501所述,电子设备在检测到应用关闭操作后,则通过桌面进程向系统服务进程发送活动关闭(StopActivity)消息或活动暂停(PauseActivity)消息。相应的,WMS在接收到StopActivity消息或PauseActivity消息后,确定需要开始创建应用关闭动效。在当前场景中,应用图标对应的bitmap与应用窗口内容数据均对应于同一个图层,基于此,WMS在确定需要显示应用窗口动效时,获取应用窗口信息,将应用窗口内容数据填入应用窗口对应的图层,生成应用窗口对应的图层数据。
S1402、WMS向SurfaceFlinger发送应用窗口对应的图层数据。
S1403、SurfaceFlinger合成应用窗口对应的图层数据,以显示应用窗口动效。
其中,S1402-S1403可以参考上述S1104-S1105的相关描述,在此不再赘述。
S1404、响应于应用关闭操作,桌面确定应用图标对应的位图(bitmap)。
S1405、桌面向WMS发送应用图标对应的位图。
其中,S1404-S1405可以参考上述S1101-S1102的相关描述,在此不再赘述。
S1406、WMS根据应用图标对应的位图和窗口对应的图层,确定应用图标对应的图层数据。
在一些实施例中,WMS将应用窗口对应的图层中在上述S1401中填入的应用窗口内容数据删除,将获取到的应用图标对应的bitmap填入应用窗口对应的图层,生成应用图标对应的图层数据。
示例性的,如图12中(a)所示界面1201,电子设备在检测到关闭图库应用的操作后,会显示如图15中(a)所示界面1501中所示的应用窗口动效,在该应用窗口动效之下未覆盖应用图标动效。其中,如附图标记151指示的应用窗口为应用窗口动效过程中某一时刻的应用窗口的显示效果。之后,在WMS创建应用图标动效后,结束显示应用窗口动效,直接显示如图15中(b)所示的界面1502中所示的应用图标动效。其中,如附图标记152指示的应用图标为应用图标动效过程中某一时刻的应用图标的显示效果。
S1407、WMS向SurfaceFlinger发送应用图标对应的图层数据。
S1408、SurfaceFlinger合成应用图标对应的图层数据,以显示应用图标对应的动效。
其中,S1407-S1408可以参考上述S1109-S1110的相关描述,在此不再赘述。
在一些场景中,上述S1404和S1405还可以在S1401之前执行,也就是说WMS可以在接收到应用图标对应的位图后,再创建应用窗口对应的图层数据。
如此,响应于用户关闭应用的操作,电子设备能够通过WMS创建应用窗口动效,并且通过WMS基于获得的应用图标对应的bitmap创建应用图标动效,实现包含应用窗口动效和应用图标动效的关闭动效的显示。进而由WMS创建应用关闭动效,能够避免出现由于WMS创建应用窗口动效以及桌面创建应用图标动效导致的动效衔接异常,造成的闪现、错位等异常卡顿问题,提升用户使用体验。
以上结合图5-图15详细说明了本申请实施例提供的显示方法。以下结合图16详细说明本申请实施例提供的显示装置。
在一种可能的设计中,图16为本申请实施例提供的电子设备的结构示意图。如图16所示,电子设备1600可以包括:收发单元1601、处理单元1602以及显示单元1603。电子设备1600可用于实现上述方法实施例中涉及的电子设备的功能。
可选地,收发单元1601,用于支持电子设备1600执行图5中的S501。
可选地,处理单元1602,用于支持电子设备1600执行图6中的S61-S608;和/或,支持电子设备1600执行图8中的S801-S809;和/或,支持电子设备1600执行图11中的S1101-S1110;和/或,支持电子设备1600执行图14中的S1401-S1408。
可选地,显示单元1603,用于支持电子设备1600显示界面内容;和/或,支持电子设备1600执行图5中的S502或S503。
其中,收发单元可以包括接收单元和发送单元,可以由收发器或收发器相关电路组件实现,可以为收发器或收发模块。电子设备1600中的各个单元的操作和/或功能分别为了实现上述方法实施例中所述的显示方法的相应流程,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能单元的功能描述,为了简洁,在此不再赘述。
可选地,图16所示的电子设备1600还可以包括存储单元(图16中未示出),该存储单元中存储有程序或指令。当处理单元1602以及收发单元1601执行该程序或指令时,使得图16所示的电子设备1600可以执行上述方法实施例中所述的显示方法。
图16所示的电子设备1600的技术效果可以参考上述方法实施例中所述的显示方法的技术效果,此处不再赘述。
除了以电子设备1600的形式以外,本申请提供的技术方案也可以为电子设备中的功能单元或者芯片,或者与电子设备匹配使用的装置。
本申请实施例还提供一种芯片系统,包括:处理器,所述处理器与存储器耦合,所述存储器用于存储程序或指令,当所述程序或指令被所述处理器执行时,使得该芯片系统实现上述任一方法实施例中的方法。
可选地,该芯片系统中的处理器可以为一个或多个。该处理器可以通过硬件实现也可以通过软件实现。当通过硬件实现时,该处理器可以是逻辑电路、集成电路等。 当通过软件实现时,该处理器可以是一个通用处理器,通过读取存储器中存储的软件代码来实现。
可选地,该芯片系统中的存储器也可以为一个或多个。该存储器可以与处理器集成在一起,也可以和处理器分离设置,本申请实施例并不限定。示例性地,存储器可以是非瞬时性处理器,例如只读存储器ROM,其可以与处理器集成在同一块芯片上,也可以分别设置在不同的芯片上,本申请实施例对存储器的类型,以及存储器与处理器的设置方式不作具体限定。
示例性地,该芯片系统可以是现场可编程门阵列(field programmable gate array,FPGA),可以是专用集成芯片(application specific integrated circuit,ASIC),还可以是系统芯片(system on chip,SoC),还可以是中央处理器(central processor unit,CPU),还可以是网络处理器(network processor,NP),还可以是数字信号处理电路(digital signal processor,DSP),还可以是微控制器(micro controller unit,MCU),还可以是可编程控制器(programmable logic device,PLD)或其他集成芯片。
应理解,上述方法实施例中的各步骤可以通过处理器中的硬件的集成逻辑电路或者软件形式的指令完成。结合本申请实施例所公开的方法步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。
本申请实施例还提供一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,当该计算机程序在计算机上上运行时,使得计算机执行上述相关步骤,以实现上述实施例中的显示方法。
本申请实施例还提供一种计算机程序产品,当该计算机程序产品在计算机上运行时,使得计算机执行上述相关步骤,以实现上述实施例中的显示方法。
另外,本申请实施例还提供一种装置。该装置具体可以是组件或模块,该装置可包括相连的一个或多个处理器和存储器。其中,存储器用于存储计算机程序。当该计算机程序被一个或多个处理器执行时,使得装置执行上述各方法实施例中的显示方法。
其中,本申请实施例提供的装置、计算机可读存储介质、计算机程序产品或芯片均用于执行上文所提供的对应的方法。因此,其所能达到的有益效果可参考上文所提供的对应的方法中的有益效果,此处不再赘述。
结合本申请实施例公开内容所描述的方法或者算法的步骤可以硬件的方式来实现,也可以是由处理器执行软件指令的方式来实现。软件指令可以由相应地软件模块组成,软件模块可以被存放于随机存取存储器(random access memory,RAM)、闪存、只读存储器(read only memory,ROM)、可擦除可编程只读存储器(erasable programmable ROM,EPROM)、电可擦可编程只读存储器(electrically EPROM,EEPROM)、寄存器、硬盘、移动硬盘、只读光盘(CD-ROM)或者本领域熟知的任何其它形式的存储介质中。一种示例性的存储介质耦合至处理器,从而使处理器能够从该存储介质读取信息,且可向该存储介质写入信息。当然,存储介质也可以是处理器的组成部分。处理器和存储介质可以位于专用集成电路(application specific integrated circuit,ASIC)中。
通过以上的实施方式的描述,本领域技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明。实际应用中,可以根据需要而将 上述功能分配由不同的功能模块完成;即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的方法,可以通过其它的方式实现。以上所描述的装置实施例仅仅是示意性的。例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式;例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,模块或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
计算机可读存储介质包括但不限于以下的任意一种:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。
Claims (14)
- 一种显示方法,其特征在于,应用于电子设备,所述方法包括:接收来自用户的应用启动指令;响应于所述应用启动指令,创建所述应用的图标对应的第一图层;根据所述第一图层和所述应用的第一图标数据,显示所述应用的图标启动动效;获取所述应用对应的第一窗口信息,显示所述应用的窗口启动动效;其中,所述第一图层是所述应用的窗口对应的图层;或者,所述第一窗口信息包括所述应用的窗口对应的第二图层,所述第一图层位于所述第二图层之下。
- 根据权利要求1所述的方法,其特征在于,所述第一窗口信息还包括所述应用的窗口对应的第一窗口内容,所述第一窗口内容包括如下任一项或几项:所述应用对应的主界面内容、所述应用对应的后台缓存界面内容、所述应用对应的启动窗口内容。
- 根据权利要求1或2所述的方法,其特征在于,当所述第一图层在所述第二图层之下时,所述获取所述应用对应的第一窗口信息,显示所述应用的窗口启动动效,包括:获取所述应用对应的第一窗口信息;根据所述第一窗口信息和所述第一图标数据,显示所述应用的窗口启动动效。
- 根据权利要求1-3任一项所述的方法,其特征在于,当所述第一图层在所述第二图层之下时,所述方法还包括:确定显示屏分辨率变化,删除所述第一图层。
- 根据权利要求1-4任一项所述的方法,其特征在于,当所述第一图层在所述第二图层之下时,所述方法还包括:接收来自用户的应用关闭指令;响应于所述应用关闭指令,获取所述应用对应的第二窗口信息以及所述应用对应的第二图标数据;根据所述第二窗口信息和所述第二图标数据,显示所述应用的窗口退出动效;确定是否存在所述第一图层;若存在,则根据所述第一图层和所述第二图标数据,显示所述应用的图标退出动效;若不存在,则创建所述第一图层,根据所述第一图层和所述第二图标数据,显示所述应用的图标退出动效。
- 根据权利要求5所述的方法,其特征在于,所述第二窗口信息包括所述第二图层和所述应用对应的第二窗口内容,所述第二窗口内容包括所述电子设备在接收到所述应用关闭指令时所述应用的显示界面内容;所述第二图标数据包括所述第一图标数据和/或所述应用的图标对应的文件夹数据。
- 根据权利要求1或2所述的方法,其特征在于,当所述第一图层是所述应用的窗口对应的图层时,在所述获取所述应用对应的第一窗口信息,显示所述应用的窗口启动动效之前,所述方法还包括:删除所述第一图层内的所述第一图标数据。
- 根据权利要求7所述的方法,其特征在于,所述获取所述应用对应的第一窗口 信息,显示所述应用的窗口启动动效,包括:获取所述应用对应的第一窗口信息;根据所述第一窗口信息,显示所述应用的窗口启动动效。
- 根据权利要求1-2和7-8任一项所述的方法,其特征在于,当所述第一图层是所述应用的窗口对应的图层时,所述方法还包括:接收来自用户的应用关闭指令;响应于所述应用关闭指令,获取所述应用对应的第二窗口信息以及所述应用对应的第二图标数据;根据所述第二窗口信息,显示所述应用的窗口退出动效;根据所述第一图层和所述第二图标数据,显示所述应用的图标退出动效。
- 一种显示方法,其特征在于,应用于电子设备,所述方法包括:接收来自用户的应用启动指令;响应于所述应用启动指令,所述电子设备通过窗口管理服务创建所述应用的图标对应的第一图层;所述电子设备通过所述窗口管理服务根据所述第一图层和所述应用的第一图标数据确定所述应用的图标对应的图层数据,显示所述应用的图标启动动效;所述电子设备通过所述窗口管理服务获取所述应用对应的第一窗口信息,根据所述第一窗口信息确定所述应用的窗口对应的图层数据,显示所述应用的窗口启动动效;其中,所述第一图层是所述应用的窗口对应的图层;或者所述第一窗口信息包括所述应用的窗口对应的第二图层,所述第一图层位于所述第二图层之下。
- 根据权利要求10所述的方法,其特征在于,当所述第一图层在所述第二图层之下时,所述方法还包括:接收来自用户的应用关闭指令;响应于所述应用关闭指令,所述电子设备通过所述窗口管理服务获取所述应用对应的第二窗口信息以及所述应用对应的第二图标数据;所述电子设备通过所述窗口管理服务根据所述第二窗口信息和所述第二图标数据确定所述应用的窗口对应的图层数据,显示所述应用的窗口退出动效;所述电子设备通过所述窗口管理服务根据所述第一图层和所述第二图标数据确定所述应用的图标对应的图层数据,显示所述应用的图标退出动效。
- 根据权利要求10所述的方法,其特征在于,当所述第一图层是所述应用的窗口对应的图层时,所述方法还包括:接收来自用户的应用关闭指令;响应于所述应用关闭指令,所述电子设备通过所述窗口管理服务获取所述应用对应的第二窗口信息以及所述应用对应的第二图标数据;所述电子设备通过所述窗口管理服务根据所述第二窗口信息确定所述应用的窗口对应的图层数据,显示所述应用的窗口退出动效;所述电子设备通过所述窗口管理服务根据所述第一图层和所述第二图标数据确定所述应用的图标对应的图层数据,显示所述应用的图标退出动效。
- 一种电子设备,其特征在于,包括:处理器、存储器和显示屏,所述存储器、 所述显示屏与所述处理器耦合,所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,当所述处理器从所述存储器中读取所述计算机指令,使得所述电子设备执行如权利要求1-9中任意一项所述的方法;或者,使得所述电子设备执行如权利要求10-12中任意一项所述的方法。
- 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质包括计算机程序,当所述计算机程序在电子设备上运行时,使得所述电子设备执行如权利要求1-9中任意一项所述的方法;或者,使得所述电子设备执行如权利要求10-12中任意一项所述的方法。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110595998.4A CN115480833A (zh) | 2021-05-29 | 2021-05-29 | 显示方法及电子设备 |
CN202110595998.4 | 2021-05-29 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2022252816A1 true WO2022252816A1 (zh) | 2022-12-08 |
Family
ID=84323861
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2022/085825 WO2022252816A1 (zh) | 2021-05-29 | 2022-04-08 | 显示方法及电子设备 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN115480833A (zh) |
WO (1) | WO2022252816A1 (zh) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2024152676A1 (zh) * | 2023-01-17 | 2024-07-25 | 华为技术有限公司 | 一种窗口管理方法以及电子设备 |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118519730A (zh) * | 2023-02-17 | 2024-08-20 | 荣耀终端有限公司 | 应用启动方法、设备及存储介质 |
CN117724783A (zh) * | 2023-07-12 | 2024-03-19 | 荣耀终端有限公司 | 动效显示方法及电子设备 |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130117689A1 (en) * | 2011-01-06 | 2013-05-09 | Research In Motion Limited | Electronic device and method of displaying information in response to a gesture |
CN106371692A (zh) * | 2016-08-22 | 2017-02-01 | 暴风集团股份有限公司 | 对系统启动图标进行互动展现的方法 |
CN106406924A (zh) * | 2015-07-31 | 2017-02-15 | 深圳创锐思科技有限公司 | 应用程序启动和退出画面的控制方法、装置及移动终端 |
CN109976861A (zh) * | 2019-03-28 | 2019-07-05 | 北京小米移动软件有限公司 | 交互界面显示方法、装置及存储介质 |
CN111857474A (zh) * | 2020-07-17 | 2020-10-30 | 维沃移动通信有限公司 | 应用程序控制方法、装置及电子设备 |
-
2021
- 2021-05-29 CN CN202110595998.4A patent/CN115480833A/zh active Pending
-
2022
- 2022-04-08 WO PCT/CN2022/085825 patent/WO2022252816A1/zh active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130117689A1 (en) * | 2011-01-06 | 2013-05-09 | Research In Motion Limited | Electronic device and method of displaying information in response to a gesture |
CN106406924A (zh) * | 2015-07-31 | 2017-02-15 | 深圳创锐思科技有限公司 | 应用程序启动和退出画面的控制方法、装置及移动终端 |
CN106371692A (zh) * | 2016-08-22 | 2017-02-01 | 暴风集团股份有限公司 | 对系统启动图标进行互动展现的方法 |
CN109976861A (zh) * | 2019-03-28 | 2019-07-05 | 北京小米移动软件有限公司 | 交互界面显示方法、装置及存储介质 |
CN111857474A (zh) * | 2020-07-17 | 2020-10-30 | 维沃移动通信有限公司 | 应用程序控制方法、装置及电子设备 |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2024152676A1 (zh) * | 2023-01-17 | 2024-07-25 | 华为技术有限公司 | 一种窗口管理方法以及电子设备 |
Also Published As
Publication number | Publication date |
---|---|
CN115480833A (zh) | 2022-12-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2021027747A1 (zh) | 一种界面显示方法及设备 | |
WO2021103981A1 (zh) | 分屏显示的处理方法、装置及电子设备 | |
WO2021036571A1 (zh) | 一种桌面的编辑方法及电子设备 | |
WO2022252816A1 (zh) | 显示方法及电子设备 | |
EP4224831A1 (en) | Image processing method and electronic device | |
US11687235B2 (en) | Split-screen method and electronic device | |
US20230055623A1 (en) | Video shooting method and electronic device | |
WO2021121052A1 (zh) | 一种多屏协同方法、系统及电子设备 | |
CN112217923A (zh) | 一种柔性屏幕的显示方法及终端 | |
US11861382B2 (en) | Application starting method and apparatus, and electronic device | |
WO2021036770A1 (zh) | 一种分屏处理方法及终端设备 | |
WO2022252805A1 (zh) | 显示方法及电子设备 | |
US20230353862A1 (en) | Image capture method, graphic user interface, and electronic device | |
WO2020155875A1 (zh) | 电子设备的显示方法、图形用户界面及电子设备 | |
CN112068907A (zh) | 一种界面显示方法和电子设备 | |
WO2023005751A1 (zh) | 渲染方法及电子设备 | |
US20230236714A1 (en) | Cross-Device Desktop Management Method, First Electronic Device, and Second Electronic Device | |
WO2021042878A1 (zh) | 一种拍摄方法及电子设备 | |
CN115119048B (zh) | 一种视频流处理方法及电子设备 | |
WO2023040670A1 (zh) | 桌面动效显示方法及电子设备 | |
US20240295905A1 (en) | Screen display method and electronic device | |
US20240236485A9 (en) | Operation mode switching control method, electronic device, and readable storage medium | |
WO2023000746A1 (zh) | 增强现实视频的处理方法与电子设备 | |
WO2021204103A1 (zh) | 照片预览方法、电子设备和存储介质 | |
WO2023045774A1 (zh) | 显示方法及电子设备 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 22814863 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 22814863 Country of ref document: EP Kind code of ref document: A1 |