Display methods and electronic devices
By displaying animated effects based on the user's real-time step count on electronic devices, the problem of monotonous display methods for dynamic wallpapers and transition animations is solved, enhancing the user's visual experience and the motivational effect for exercise.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-05-12
- Publication Date
- 2026-03-10
AI Technical Summary
The current display methods for live wallpapers and transition animations are relatively simple, which affects the user experience.
Electronic devices display different animation effects based on the user's real-time step count, and provide feedback on the user's movement through video playback progress, thereby enhancing the richness of the animation effects and the functionality.
By using animated displays that are linked to the user's step count, users are motivated to exercise, and the visual experience of electronic devices is enhanced.
Smart Images

Figure CN115344112B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of terminal devices, and more particularly to a display method and electronic device. Background Technology
[0002] Currently, as mobile phone applications become more and more powerful, mobile phones can provide users with live wallpapers and transition animations to enhance the user's visual experience when using the phone.
[0003] However, the current display methods for live wallpapers and transition animations are relatively simple, which affects the user experience. Summary of the Invention
[0004] To address the aforementioned technical problems, this application provides a display method and an electronic device. In this method, the electronic device can display different animation effects based on the user's real-time step count, thereby enriching the animation effects displayed on the electronic device while also motivating the user to exercise.
[0005] In a first aspect, this application provides an electronic device. The electronic device includes a memory and a processor; the processor is coupled to the memory; the memory stores program instructions, which, when executed by the processor, cause the electronic device to perform the following steps: In response to a received first user operation, acquiring a first real-time step count of the user at a first moment, the first real-time step count being the number of steps the user takes from the start time of a set period to the first moment; determining a first sub-video segment in a first video segment corresponding to the first real-time step count; displaying a first interface on the screen of the electronic device, and playing image frames from the first sub-video segment in the first interface; In response to a received second user operation, acquiring a second real-time step count of the user at a second moment, the second real-time step count being the number of steps the user takes from the start time of the period to the second moment, the second moment being after the first moment; determining a second sub-video segment in the first video segment corresponding to the second real-time step count; displaying the first interface on the screen of the electronic device, and playing image frames from the second sub-video segment in the first interface; wherein the last image frame of the second sub-video segment is after the last image frame of the first sub-video segment. Thus, the electronic device can acquire a video segment corresponding to the real-time step count based on the user's real-time step count. Therefore, when the electronic device displays the first interface, it can play image frames from the corresponding segment within the interface. This allows for real-time feedback of the user's step count through video playback progress, and also endows the video displayed on the electronic device with stronger functional attributes.
[0006] For example, the set period can be one day or one week, which can be set according to actual needs, and this application does not limit it.
[0007] For example, electronic devices can also associate video clips with reading time, mobile phone usage time, etc., so that the video clips played on the first interface can provide feedback on the user's current reading time, mobile phone usage time, etc.
[0008] For example, the first user action could be the user clicking the power button.
[0009] For example, the first sub-video clip could be the wallpaper of the first screen. For example, the first sub-video could be a transition animation of the first screen.
[0010] According to the first aspect, the first image frame of the first sub-video segment is the first image frame of the first video segment. Thus, the electronic device can achieve... Figures 5a to 5d The video playback method in the text.
[0011] According to the first aspect, or any implementation of the first aspect above, the first image frame of the second sub-video segment is the first image frame of the first video segment. Thus, the electronic device can achieve... Figures 5a to 5d The video playback method in the text.
[0012] According to the first aspect, or any implementation of the first aspect above, the first image frame of the second sub-video segment is the last image frame of the first sub-video segment. Thus, the electronic device can achieve... Figures 6b to 6f The video playback method in the text.
[0013] According to the first aspect, or any implementation of the first aspect above, the first image frame of the second sub-video segment precedes the last image frame of the first sub-video segment, and the number of image frames included in the second sub-video segment is greater than a first threshold. Thus, the electronic device can achieve... Figures 6b to 6f The video playback method in the text.
[0014] According to the first aspect, or any implementation thereof, when the program instructions are executed by the processor, the electronic device performs the following steps: in response to a received third user operation, it obtains the user's target number of steps within a set period; based on the target number of steps, it sets a correspondence between each step in the target number of steps and an image frame in a first video segment. In this way, the electronic device can provide an interface for setting the association between user steps and video segments, and can obtain different associations between target steps and video segments based on the user's needs.
[0015] According to the first aspect, or any implementation of the first aspect above, when the program instructions are executed by the processor, the electronic device performs the following steps: determining the first image frame corresponding to the first real-time step based on the correspondence between each step in the target step count and the image frames in the first video segment; the first image frame is the last image frame of the first sub-video segment. Thus, each time the electronic device displays the first interface, it can play the corresponding video segment on the first interface based on the current user real-time step count.
[0016] According to the first aspect, or any of the above implementations of the first aspect, the first interface is the desktop.
[0017] For example, when the first interface is the desktop, the first or second sub-video clip played on the desktop serves as the desktop's live wallpaper. For example, the size of each image frame displayed on the desktop is the same as the size of the desktop itself; that is, the desktop displays each image frame in full-screen mode.
[0018] According to the first aspect, or any of the above implementations of the first aspect, the first interface is the lock screen interface.
[0019] For example, when the first interface is a lock screen, the first or second sub-video clip played on the lock screen serves as the live wallpaper for the lock screen. For example, the size of each image frame displayed on the lock screen is the same as the size of the lock screen itself; that is, the lock screen displays each image frame in full-screen mode.
[0020] According to the first aspect, or any of the above implementations of the first aspect, the first interface is the always-on screen interface.
[0021] According to the first aspect, or any implementation of the first aspect above, the always-on display includes a first display frame, in which a first sub-video is played; the size of the first display frame is smaller than the size of the always-on display. This provides a way to display images on the always-on display, allowing the animation displayed on the always-on display to be associated with the user's step count, so that the animation played on the always-on display can be based on real-time step count changes each time the electronic device displays the always-on display.
[0022] Secondly, this application provides a display method. The method includes: an electronic device, in response to a received first user operation, acquiring a first real-time step count of the user at a first moment, the first real-time step count being the number of steps the user takes from the start time of a set period to the first moment; the electronic device determining a first sub-video segment in a first video segment corresponding to the first real-time step count; the electronic device displaying a first interface on its screen, playing image frames from the first sub-video segment in the first interface; the electronic device, in response to a received second user operation, acquiring a second real-time step count of the user at a second moment, the second real-time step count being the number of steps the user takes from the start time of the period to the second moment, the second moment being after the first moment; the electronic device determining a second sub-video segment in the first video segment corresponding to the second real-time step count; the electronic device displaying the first interface on its screen, playing image frames from the second sub-video segment in the first interface; wherein the last image frame of the second sub-video segment is after the last image frame of the first sub-video segment.
[0023] According to the second aspect, the first image frame of the first sub-video segment is the first image frame of the first video segment.
[0024] According to the second aspect, or any implementation of the second aspect above, the first image frame of the second sub-video segment is the first image frame of the first video segment.
[0025] According to the second aspect, or any implementation of the second aspect above, the first image frame of the second sub-video segment is the last image frame of the first sub-video segment.
[0026] According to the second aspect, or any implementation of the second aspect above, the first image frame of the second sub-video segment precedes the last image frame of the first sub-video segment, and the number of image frames included in the second sub-video segment is greater than the first threshold.
[0027] According to the second aspect, or any implementation of the second aspect above, before the electronic device obtains the first real-time step count of the user at the first moment in response to the received first user operation, the electronic device further includes: obtaining the target step count of the user within a set period in response to the received third user operation; and setting a correspondence between each step in the target step count and an image frame in the first video segment based on the target step count.
[0028] According to the second aspect, or any implementation of the second aspect above, the electronic device determines the first sub-video segment corresponding to the first real-time step number in the first video segment, including: the electronic device determines the first image frame corresponding to the first real-time step number based on the correspondence between each step number in the target step number and the image frame in the first video segment; the first image frame is the last image frame of the first sub-video segment.
[0029] According to the second aspect, or any of the implementation methods of the second aspect above, the first interface is the desktop.
[0030] According to the second aspect, or any of the implementation methods of the second aspect above, the first interface is the lock screen interface.
[0031] According to the second aspect, or any of the implementation methods of the second aspect above, the first interface is the screen-off interface.
[0032] According to the second aspect, or any implementation of the second aspect above, the always-on display includes a first display frame, in which a first sub-video is played; the size of the first display frame is smaller than the size of the always-on display.
[0033] The second aspect and any implementation thereof correspond to the first aspect and any implementation thereof, respectively. The technical effects of the second aspect and any implementation thereof are similar to those of the first aspect and any implementation thereof, and will not be repeated here.
[0034] Thirdly, this application provides a computer-readable medium for storing a computer program including instructions for performing the methods in the second aspect or any possible implementation thereof.
[0035] Fourthly, this application provides a computer program including instructions for performing the methods in the second aspect or any possible implementation thereof.
[0036] Fifthly, this application provides a chip including a processing circuit and transceiver pins. The transceiver pins and the processing circuit communicate with each other via an internal connection path. The processing circuit executes the method in the second aspect or any possible implementation of the second aspect to control the receiving pin to receive signals and to control the transmitting pin to transmit signals. Attached Figure Description
[0037] Figure 1 A schematic diagram of the hardware structure of an electronic device as an example;
[0038] Figure 2 A schematic diagram of the software structure of an electronic device as an example;
[0039] Figures 3a-3b This is an illustrative diagram showing how to set up a wallpaper;
[0040] Figures 4a-4b This is an illustrative diagram showing the correspondence between wallpapers and steps.
[0041] Figures 5a-5d This is an example of a display diagram of a growth wallpaper;
[0042] Figures 6a to 6f This is an example of how a growth wallpaper is displayed;
[0043] Figure 7 This is an example illustration of how to set up a growth theme;
[0044] Figure 8 A schematic diagram is shown for illustrative purposes, illustrating the growth theme.
[0045] Figures 9a-9b A schematic diagram is shown for illustrative purposes, illustrating the growth theme.
[0046] Figure 10 This is a schematic diagram of the structure of an exemplary device. Detailed Implementation
[0047] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0048] In this article, the term "and / or" is merely a description of the relationship between related objects, indicating that there can be three relationships. For example, A and / or B can represent three situations: A exists alone, A and B exist simultaneously, and B exists alone.
[0049] The terms "first" and "second," etc., used in the specification and claims of this application are used to distinguish different objects, not to describe a specific order of objects. For example, "first target object" and "second target object," etc., are used to distinguish different target objects, not to describe a specific order of target objects.
[0050] In the embodiments of this application, the terms "exemplary" or "for example" are used to indicate that something is an example, illustration, or description. Any embodiment or design that is described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design. Specifically, the use of the terms "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.
[0051] In the description of the embodiments in this application, unless otherwise stated, "multiple" means two or more. For example, multiple processing units means two or more processing units; multiple systems means two or more systems.
[0052] Figure 1 A schematic diagram of the electronic device 100 is shown. It should be understood that... Figure 1 The electronic device 100 shown is merely an example of an electronic device, and the electronic device 100 may have more or fewer components than those shown in the figure, may combine two or more components, or may have different component configurations. Figure 1 The various components shown can be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and / or application-specific integrated circuits.
[0053] Electronic device 100 may include: processor 110, external memory interface 120, internal memory 121, universal serial bus (USB) interface 130, charging management module 140, power management module 141, battery 142, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, and subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an accelerometer sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0054] Processor 110 may include one or more processing units, such as: application processor (AP), modem processor, graphics processing unit (GPU), image signal processor (ISP), controller, memory, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0055] The controller can be the nerve center and command center of the electronic device 100. The controller can generate operation control signals according to the instruction opcode and timing signals to complete the control of fetching and executing instructions.
[0056] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0057] In some embodiments, the processor 110 may include one or more interfaces. Interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0058] It is understood that the interface connection relationships between the modules illustrated in the embodiments of this application are merely illustrative and do not constitute a structural limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may also employ different interface connection methods or combinations of multiple interface connection methods as described in the above embodiments.
[0059] The charging management module 140 receives charging input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 receives charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 receives wireless charging input via the wireless charging coil of the electronic device 100. While charging the battery 142, the charging management module 140 can also supply power to the electronic device via the power management module 141.
[0060] The power management module 141 connects the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, providing power to the processor 110, internal memory 121, external memory, display screen 194, camera 193, and wireless communication module 160, etc. The power management module 141 can also monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage current, impedance). In some other embodiments, the power management module 141 may also be located within the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may be located in the same device.
[0061] The wireless communication function of electronic device 100 can be implemented through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor, and baseband processor.
[0062] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover one or more communication frequency bands. Different antennas can also be multiplexed to improve antenna utilization. For example, antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in conjunction with tuning switches.
[0063] The mobile communication module 150 can provide solutions for wireless communication, including 2G / 3G / 4G / 5G, applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1. In some embodiments, at least some functional modules of the mobile communication module 150 may be housed in the processor 110. In some embodiments, at least some functional modules of the mobile communication module 150 and at least some modules of the processor 110 may be housed in the same device.
[0064] Electronic device 100 implements display functions through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.
[0065] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel. The display panel may be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a miniature LED, a microLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, electronic device 100 may include one or N displays 194, where N is a positive integer greater than 1.
[0066] Electronic device 100 can perform shooting functions through ISP, camera 193, video codec, GPU, display 194 and application processor.
[0067] Camera 193 is used to capture still images or videos. An object is projected onto a photosensitive element by generating an optical image through the lens. The photosensitive element can be a charge-coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, which is then passed to an ISP for conversion into a digital image signal. The ISP outputs the digital image signal to a DSP for processing. The DSP converts the digital image signal into image signals in standard RGB, YUV, or other formats. In some embodiments, the electronic device 100 may include one or N cameras 193, where N is a positive integer greater than 1.
[0068] Digital signal processors (DSPs) are used to process digital signals. Besides digital image signals, they can also process other digital signals. For example, when electronic device 100 selects a frequency, the DSP can perform Fourier transforms on the frequency energy.
[0069] Video codecs are used to compress or decompress digital video. Electronic device 100 may support one or more video codecs. Thus, electronic device 100 can play or record videos in various encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
[0070] The external storage interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external storage interface 120 to perform data storage functions. For example, music, video, and other files can be saved on the external memory card.
[0071] Internal memory 121 can be used to store computer executable program code, which includes instructions. Processor 110 executes various functional applications and data processing of electronic device 100 by running the instructions stored in internal memory 121. Internal memory 121 may include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as sound playback function, image playback function, etc.), etc. The data storage area may store data created during the use of electronic device 100 (such as audio data, phone book, etc.). In addition, internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc. Exemplarily, in this embodiment, processor 110 can implement the display mode of growth wallpaper associated with user steps and the display mode of transition animation associated with user steps in this embodiment by running the instructions stored in internal memory 121.
[0072] Electronic device 100 can implement audio functions, such as music playback and recording, through audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, and application processor.
[0073] The audio module 170 is used to convert digital audio information into analog audio signals for output, and also to convert analog audio input into digital audio signals. The audio module 170 can also be used for encoding and decoding audio signals. In some embodiments, the audio module 170 may be located in the processor 110, or some functional modules of the audio module 170 may be located in the processor 110.
[0074] Pressure sensor 180A is used to sense pressure signals and convert them into electrical signals. In some embodiments, pressure sensor 180A can be disposed on display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors. A capacitive pressure sensor may include at least two parallel plates with conductive material. When force is applied to pressure sensor 180A, the capacitance between the electrodes changes. Electronic device 100 determines the pressure intensity based on the change in capacitance. When a touch operation is applied to display screen 194, electronic device 100 detects the intensity of the touch operation based on pressure sensor 180A. Electronic device 100 can also calculate the touch position based on the detection signal from pressure sensor 180A. In some embodiments, touch operations applied to the same touch position but with different touch operation intensities can correspond to different operation commands. For example, when a touch operation with an intensity less than a first pressure threshold is applied to the SMS application icon, a command to view an SMS is executed. When a touch operation with an intensity greater than or equal to the first pressure threshold is applied to the SMS application icon, a command to create a new SMS is executed.
[0075] Fingerprint sensor 180H is used to collect fingerprints. Electronic device 100 can utilize the collected fingerprint characteristics to achieve fingerprint unlocking, access application lock, fingerprint photography, fingerprint answering of calls, etc. For example, in this embodiment, fingerprint sensor 180H can collect the fingerprint of a user touching a touchscreen and transmit the collected fingerprint to processor 110. Exemplarily, processor 110 can unlock electronic device 100 based on the fingerprint information input by fingerprint sensor 180H.
[0076] Touch sensor 180K, also known as a "touch panel," can be located on display screen 194. The touch sensor 180K and display screen 194 together form a touchscreen, also known as a "touch screen." Touch sensor 180K detects touch operations applied to or near it. The touch sensor can transmit 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 display screen 194. In other embodiments, touch sensor 180K may also be located on the surface of electronic device 100, in a different position than display screen 194.
[0077] Button 190 includes a power button, volume buttons, etc. Button 190 can be a mechanical button or a touch button. Electronic device 100 can receive button input and generate key signal inputs related to user settings and function control of electronic device 100. For example, in this embodiment, when electronic device 100 is in screen-off mode, the user clicks the power button. Electronic device 100 can respond to the received user click on the power button and enter screen-lock mode from screen-off mode. For example, when electronic device 100 is in screen-lock mode or desktop mode, if electronic device 100 receives a user click on the power button, electronic device 100 enters screen-off mode from screen-lock mode or desktop mode.
[0078] For example, the software system of electronic device 100 can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. This application embodiment uses the layered architecture Android system as an example to illustrate the software structure of electronic device 100.
[0079] Figure 2 This is a software structure block diagram of the electronic device 100 according to an embodiment of this application.
[0080] The layered architecture of the electronic device 100 divides the software into several layers, each with a clear role and division of labor. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime and system libraries, and the kernel layer.
[0081] The application layer can include a series of application packages.
[0082] like Figure 2 As shown, the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, SMS, and wallpaper. For example, the wallpaper application can implement the display method of wallpapers or transition animations in the embodiments of this application. For instance, the wallpaper application can provide a user interface to allow users to change the wallpaper or the video displayed in the transition animation.
[0083] The application framework layer provides application programming interfaces (APIs) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions.
[0084] like Figure 2 As shown, the application framework layer may include a window manager, content provider, view system, phone manager, resource manager, notification manager, etc.
[0085] The window manager is used to manage windowed applications. It can retrieve screen size, determine the presence of a status bar, lock the screen, and capture screenshots, among other things.
[0086] Content providers store and retrieve data, making that data accessible to applications. This data may include videos, images, audio, made and received phone calls, browsing history and bookmarks, phone books, etc.
[0087] A view system includes visual controls, such as controls for displaying text and controls for displaying images. View systems can be used to build applications. A display interface can consist of one or more views. For example, a display interface including a text notification icon could include views for displaying text and views for displaying images.
[0088] The phone manager is used to provide communication functions for electronic device 100. For example, it manages call status (including connection and disconnection).
[0089] The file explorer provides applications with various resources, such as localized strings, icons, images, layout files, video files, and more.
[0090] The notification manager allows applications to display notifications in the status bar. These notifications can be used to deliver informational messages and can disappear automatically after a short pause, requiring no user interaction. For example, the notification manager can be used to notify users of completed downloads or message alerts. The notification manager can also display notifications as icons or scrolling text in the top status bar, such as notifications from background applications, or as dialog boxes on the screen. Examples include displaying text messages in the status bar, emitting sounds, vibrating electronic devices, and flashing indicator lights.
[0091] The Android Runtime consists of core libraries and a virtual machine. The Android runtime is responsible for the scheduling and management of the Android system.
[0092] The core library consists of two parts: one part is the functionalities that need to be called by the Java language, and the other part is the Android core library.
[0093] The application layer and application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection.
[0094] System libraries can include multiple functional modules. For example: surface manager, media libraries, 3D graphics processing libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), etc.
[0095] The Surface Manager is used to manage the display subsystem and provides the blending of 2D and 3D layers for multiple applications.
[0096] The media library supports playback and recording of various common audio and video formats, as well as still image files. It supports multiple audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, and PNG.
[0097] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0098] A 2D graphics engine is a graphics engine for 2D drawing.
[0099] The kernel layer is the layer between hardware and software. The kernel layer contains at least the display driver, camera driver, audio driver, and sensor driver.
[0100] Understandable, Figure 2 The components included in the system framework layer, system library, and runtime layer shown do not constitute a specific limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may include more or fewer components than shown, or combine some components, or split some components, or have different component arrangements.
[0101] This application provides a wallpaper display method and a transition animation display method. In this application embodiment, the phone's lock screen wallpaper and / or desktop wallpaper can be associated with the user's step count to reflect the user's step count within a preset period (e.g., one day) through dynamic wallpaper. In this application embodiment, the phone's transition animations (including transition animations from screen-off mode to lock screen mode and from lock screen mode to desktop mode) can be associated with the user's step count to reflect the user's step count within a preset period through transition animations. It should be noted that this application embodiment only describes an embodiment where wallpaper or transition animations are associated with user step counts. In other embodiments, wallpapers or transition animations can also be combined with other data such as reading time, phone usage time, and calories burned. The specific combination method is similar to the combination method of wallpapers or transition animations and user step counts, and will not be repeated in this application.
[0102] The following specific examples illustrate how wallpaper and user step count are displayed together. Figures 3a-3b This is an illustrative diagram showing how to set up a wallpaper. Please refer to... Figure 3a (1), for example, includes one or more controls in the desktop and wallpaper settings interface 301, such as, but not limited to: theme controls, always-on display controls, wallpaper controls, etc. The user can click the wallpaper control. The phone responds to the received user action by displaying the wallpaper settings interface. Please refer to... Figure 3a (2) For example, the wallpaper settings interface 303 includes one or more controls, such as, but not limited to, the growth wallpaper control 304, the gallery control, etc. The user clicks the growth wallpaper control 304. The mobile phone responds to the received user operation and displays the growth wallpaper settings interface. Please refer to Figure 3a (3) For example, the growth wallpaper 305 may include one or more growth wallpapers. It should be noted that each growth wallpaper includes multiple image frames. For example, taking growth wallpaper 306 as an example, growth wallpaper 306 may include 180 image frames. That is, when the mobile phone uses growth wallpaper 306 as the lock screen wallpaper, after the mobile phone enters the lock screen mode from other modes (such as screen-off mode or desktop mode), the lock screen interface of the mobile phone starts playing the 180 image frames in growth wallpaper 306. For example, the multiple image frames in the growth wallpaper may be generated based on static images stored in the mobile phone, or they may be generated based on videos stored in the mobile phone. This application does not limit this.
[0103] For example, the screen-off mode can optionally be a mode that the electronic device enters after receiving a user's click of the power button, in which the electronic device turns off the screen and displays a transition animation of the screen-off mode on the off display.
[0104] For example, the lock screen mode can optionally be the screen lock of the electronic device. For example, in screen-off mode, user touch or button operations on the phone can optionally cause the electronic device to enter lock screen mode. For example, lock screen mode locks the screen, requiring the user to unlock it before accessing the home screen. For example, lock screen mode can provide functions that do not require unlocking, such as camera functions and widgets. In other words, users can perform corresponding operations on the electronic device in lock screen mode, while in screen-off mode, when the user touches the electronic device, the electronic device will enter lock screen mode.
[0105] For example, desktop mode is the mode in which an electronic device is unlocked. For example, a user can operate the electronic device in desktop mode to use the corresponding functions provided by the device. For instance, a user can use chat applications, video applications, etc.
[0106] It should be noted that the mode switching in this application embodiment includes, for example, switching from screen-off mode to lock screen mode, switching from lock screen mode to desktop, or switching from desktop (or lock screen mode) to screen-off mode, optionally a switch of interfaces. For example, switching from screen-off mode to lock screen mode may optionally mean switching the screen-off interface displayed on the phone's screen to the lock screen interface. In this application embodiment, each interface (including the screen-off interface, lock screen interface, and desktop) is a full-screen display interface. That is, when the display switches from one interface (e.g., the screen-off interface) to another interface (e.g., the lock screen interface), the previous interface (i.e., the screen-off interface) is not displayed, and the switched interface (i.e., the lock screen interface) is displayed in full screen on the display.
[0107] It should be further noted that the growth wallpaper in this embodiment can be displayed full-screen on the lock screen or desktop. That is, the size of the growth wallpaper is the same as the size of the lock screen or desktop.
[0108] For example, a user can select Growth Wallpaper 306 as a live wallpaper linked to the user's step count. Please refer to... Figure 3b (1) The mobile phone responds to the received user operation and displays the step count setting interface 307. The step count setting interface 307 includes, but is not limited to: growth wallpaper preview window 308, prompt message 309, adjustment control 310 and confirmation control 311, etc.
[0109] For example, the growth wallpaper preview window 308 can display the growth wallpaper selected by the user, such as growth wallpaper 305. The adjustment control 310 is used to set the target number of steps. The user can set the target number of steps by moving the slider in the adjustment control 310. The prompt message 309 indicates the currently set target number of steps and prompts that the set target number and wallpaper will dynamically change according to the real-time step count.
[0110] Please refer to Figure 3b (2) For example, in this embodiment of the application, the user sets the target number of steps to 4000 steps by dragging the slider of the adjustment control 310. The mobile phone responds to the received user operation by indicating in the prompt message 309 that the target number of steps is set to 4000 steps. For example, the user can click the OK control 311. The mobile phone responds to the received user operation by obtaining the correspondence between the wallpaper and the number of steps. Optionally, the adjustment control 310 can be set with multiple levels, and the user can set the target number of steps to the corresponding level by moving the slider of the adjustment control 310. For example, the multiple levels may include: 4000 steps, 6000 steps, 8000 steps, 10000 steps, 12000 steps, etc. The number of levels and the corresponding number of steps can be set according to actual needs, and this application does not limit them.
[0111] Figures 4a-4bThis is an illustrative diagram showing the correspondence between wallpapers and steps. Please refer to... Figure 4a For example, as described above, the growth wallpaper includes multiple image frames. In this embodiment, the growth wallpaper has a frame rate (i.e., the number of image frames per second) of 120fps and a length of 5.5s as an example. That is to say, the growth wallpaper includes a total of 660 image frames. It should be noted that... Figure 4a The image frames shown are the image frames after being collapsed. For example, one image frame may include 60 image frames when unfolded.
[0112] For example, a mobile phone can establish a correspondence between the number of steps and the number of image frames based on a user-set target number of steps (e.g., 4,000 steps).
[0113] For example, as mentioned above, the target number of steps can include different levels, such as 4000 steps, 6000 steps, 8000 steps, 10000 steps, 12000 steps, etc. Taking the growth wallpaper with 660 frames as an example, the mobile phone can set the correspondence between each image frame and the real-time step count based on different target number of steps. As shown in Table 1:
[0114] Table 1
[0115]
[0116]
[0117] For example, when the target step count is 4000 steps, if the user's real-time step count is 0-800 steps, the lock screen will display frames 1-120 of the growth wallpaper. Image frame 121 corresponds to a real-time step count range of 801-807 steps. That is, when the user's real-time step count is between 801 and 807 steps, the lock screen will display frames 1-121 of the growth wallpaper. The specific playback process will be described in the following embodiments. Based on the above correspondence, the mobile phone can obtain the corresponding real-time step count range for each image frame. For example, as the user sets different target step counts, the step count range corresponding to each image frame is also different under different target step count levels. See Table 1 for details; they will not be described individually here.
[0118] It should be noted that, as mentioned above, the image frame may include 660 frames. In the embodiments of this application, image frames 1 to 600 can be used to establish a correspondence with the real-time step count. Image frames 601 to 660 can be set as reward animations. That is, when the user reaches the target step count (e.g., 4000 steps) within a preset period (in this application, the same day is used as an example, and will not be repeated below), the growth wallpaper can play a reward animation.
[0119] Figure 4bThis example illustrates the correspondence between real-time steps and image frames. Please refer to... Figure 4b For example, when the user's real-time step count is within 800 steps, the corresponding image frame is frame 120. For example, when the user's real-time step count is 2400 steps, the corresponding image frame is frame 360. For example, when the user's real-time step count is 3200 steps, the corresponding image frame is frame 480. For example, when the user's real-time step count is 4000 steps, the corresponding image frame is frame 600.
[0120] Combination Figure 4b , Figures 5a-5d This is an example illustration of a growing wallpaper display. Please refer to... Figure 5a For example, when the phone is in screen-off mode, the user can click the power button. The phone responds to the received user action and enters lock screen mode. It should be noted that this embodiment only uses a growth wallpaper as an example for lock screen mode. In other embodiments, the growth wallpaper can also be a desktop wallpaper; the specific implementation process is similar to that of the lock screen growth wallpaper, and will not be repeated here.
[0121] Still refer to Figure 5a For example, the mobile phone can obtain the user's real-time step count, taking a current real-time step count of 400 as an example. Based on Table 1, which shows the correspondence between real-time step count and image frames, the mobile phone can determine that the image frame corresponding to the user's current real-time step count (i.e., 400 steps) is frame 120 (also referred to as image frame 120). For example, after the mobile phone enters lock screen mode, each image frame from frame 1 to frame 120 can be played sequentially in the lock screen interface 501. Optionally, the lock screen interface 501 may also include one or more controls, such as a time control, a network control, a battery control, etc. It should be noted that in this embodiment, the size of the growth wallpaper is the same as the size of the lock screen interface; that is, the lock screen interface displays the corresponding image frame in full screen.
[0122] Please refer to Figure 5b For example, while the user is using the phone, the phone can acquire the user's step count in real time. When the user presses the power button again, causing the phone to enter lock screen mode from screen-off mode, the phone can acquire the user's real-time step count as 2400 steps. Accordingly, the phone can determine the corresponding image frame as frame 360 based on the correspondence between the real-time step count and image frames. For example, in response to the received user operation, the phone enters lock screen mode. The phone's lock screen interface 501 sequentially plays each image frame from frame 1 to frame 360.
[0123] Please refer to Figure 5cFor example, the phone continues to acquire the user's step count in real time. When the user presses the power button again to switch the phone from screen-off mode to lock screen mode, the phone acquires the user's real-time step count as 3200 steps. Accordingly, the phone can determine the image frame corresponding to the user's current real-time step count (i.e., 3200 steps) as frame 480 based on the saved correspondence between real-time step count and image frames. For example, in response to the received user operation, the phone enters lock screen mode. Each image frame from frame 1 to frame 480 is played sequentially in the phone's lock screen interface 501. Optionally, in this embodiment, to avoid the growth wallpaper playing for too long, when the image frame corresponding to the real-time step count is between frame 361 and frame 599, that is, when the number of video frames played is between 361 and 599, the phone can compress the played video segment to 360 frames, that is, compress the video playback duration to 3 seconds. For example, a method for compressing video may optionally involve deleting some image frames. Specific compression methods can be found in existing technical embodiments, and this application does not limit them. For instance, referring to... Figure 5c For example, the lock screen interface 501 needs to play image frames from frame 1 to frame 480, with a playback duration of 4 seconds. If the phone detects that the length of the video segment to be played exceeds a set threshold (e.g., 3 seconds), the phone can compress the video segment. For example, the phone can compress 480 image frames from the video segment to obtain a compressed video segment (e.g., including 360 image frames). Accordingly, the lock screen interface 501 can play each image frame from the compressed video segment (i.e., including 360 image frames).
[0124] Please refer to Figure 5d For example, the phone continues to acquire the user's step count in real time. When the user presses the power button again to switch the phone from screen-off mode to lock screen mode, the phone acquires the user's real-time step count as 4200 steps. Accordingly, the phone can determine the corresponding image frame as frame 600 based on the correspondence between the real-time step count and image frames. For example, in response to the received user operation, the phone enters lock screen mode. The phone's lock screen interface 501 plays each image frame from frame 1 to frame 600 sequentially. Furthermore, since the real-time step count exceeds the target step count (4000 steps), the lock screen interface can continue playing a reward animation, i.e., frames 601 to 660. Optionally, as described above, the phone can compress the video segment from frame 1 to frame 660 and play the compressed segment.
[0125] Figures 6a to 6f This is an example of another way to display wallpaper. Please refer to... Figure 6a For example, in this embodiment, the frame rate of the growth wallpaper is 120fps and the length is 10s, which includes 1200 image frames.
[0126] Please refer to Figure 6b For example, in this embodiment, the user-set target step count is still 4000. The mobile phone can divide the 1200 image frames included in the growth wallpaper according to a preset method to extract key frames. For example, the key frame may be the last frame of the animation played by the electronic device based on the user's real-time step count. For example, in this embodiment, the key frames in the 1200 image frames included in the growth wallpaper may include: frame 1, frame 60, frame 120, frame 240, frame 300, frame 360, frame 420, frame 480, frame 540, frame 600, frame 660, frame 720, frame 780, frame 840, frame 900, frame 960, and frame 1200. For example, frames 960 to 1200 can be used as reward animations (the specific concept can be referred to above). It should be noted that the above keyframe division method is only an illustrative example. In other embodiments, a keyframe may be selected every 30 frames or every 40 frames. This application does not limit this method.
[0127] For example, the mobile phone can obtain the correspondence between each keyframe and the real-time step count based on a user-set target step count (e.g., 4000 steps). Please refer to... Figure 6b For example, in this embodiment of the application, the minimum number of steps is 1 to 1000. That is, the keyframe corresponding to 1000 steps is frame 240. For example, the real-time step count corresponding to frame 360 is 1500 steps. The real-time step count corresponding to frame 480 is 2000 steps. The real-time step count corresponding to frame 600 is 2500 steps. The real-time step count corresponding to frame 720 is 3000 steps. The real-time step count corresponding to frame 840 is 3500 steps. The real-time step count corresponding to frame 960 is 4000 steps. Figure 6b The diagram below is merely an illustrative example to illustrate the correspondence between some keyframes and real-time steps. In practice, the mobile phone can obtain the real-time step count corresponding to each keyframe based on the following formula, which will not be illustrated here. The formula is:
[0128]
[0129] Combination Figure 6b The following examples illustrate how the growth wallpaper is displayed. Please refer to... Figure 6cFor example, the mobile phone acquires the user's step count in real time. When the phone is in screen-off mode, the user can press the power button. The phone responds to the received user action and enters lock screen mode. For example, the phone can determine the corresponding keyframe based on the acquired user step count. For instance, let's take a real-time step count of 400 steps. As mentioned above, if the user's real-time step count is less than 1000 steps, the corresponding keyframe is frame 240. That is, the phone can determine that the keyframe corresponding to 400 steps is frame 240. Accordingly, the lock screen interface 601 can sequentially play each image frame from frame 1 to frame 240.
[0130] Please refer to Figure 6d For example, the mobile phone continues to acquire the user's step count in real time. When the phone is in screen-off mode, the user can press the power button again. The phone responds to the received user operation and enters lock screen mode. For example, the phone can determine the corresponding keyframe based on the acquired real-time step count. For example, if the phone acquires 1667 real-time steps, the phone can find the 360th frame corresponding to the nearest keyframe before 1667 steps, which is 1500. Then, the keyframe corresponding to the current real-time step count (i.e., 1667 steps) is the 360th frame. For example, to prevent the growth wallpaper playback time from being too short, this embodiment uses a playback time of 2 seconds or more as an example. The specific threshold can be set according to actual needs and is not limited in this application. That is to say, the number of image frames included in the growth wallpaper played on the lock screen is at least 240. For example, the mobile phone obtains the difference (a difference of 120 frames) between the current real-time step count keyframe (i.e., 360 frames) and the previous keyframe (i.e., 240 frames). For example, as mentioned above, the video played by the growth wallpaper needs to be greater than or equal to 240 image frames (this can be set according to actual needs, for example, it could be 120 frames; this application does not limit this). If the mobile phone detects that the obtained difference is less than 240 frames, then if the video segment between the previous keyframe and the current keyframe is played, the playback duration will be less than 2 seconds. The mobile phone can look back at keyframes with a difference greater than or equal to 240 frames (e.g., 120 frames) from the current keyframe (i.e., 360 frames). Therefore, the growth wallpaper played on the lock screen is the video segment between frames 120 and 360. Still referring to... Figure 6d For example, the lock screen interface 601 sequentially plays each image frame from frame 120 to frame 360. This display method differs from that in Figure 5, where the growth wallpapers all start playing from frame 1. In this embodiment, the growth wallpapers can start playing from a specified position in the video clip.
[0131] Please refer to Figure 6eFor example, the mobile phone continues to acquire the user's step count in real time. When the phone is in screen-off mode, the user can press the power button again. The phone responds to the received user operation and enters lock screen mode. For example, the mobile phone can determine the corresponding keyframe based on the acquired user step count. For example, if the real-time step count acquired by the mobile phone is 3333 steps, the mobile phone can find the 780th frame corresponding to the nearest keyframe before 3333 steps, which is 3250 steps. Then, the keyframe corresponding to the current real-time step count (i.e., 3333 steps) is the 780th frame. For example, as mentioned above, to prevent the growth wallpaper playback time from being too short, this embodiment of the application takes a playback time of 2 seconds or more as an example. That is, the number of image frames played is at least 240. For example, the mobile phone acquires the difference (the difference is 420 frames) between the keyframe of the current real-time step count (i.e., 780 frames) and the previous keyframe (i.e., 360 frames). For example, as described above, the video played by the growth wallpaper needs to have 240 or more image frames. Accordingly, the phone can determine that the growth wallpaper to be played includes frames 360 to 780. Still referring to... Figure 6e For example, the lock screen 601 can sequentially play each image frame between the previous keyframe (i.e., frame 360) and the current keyframe (i.e., frame 780). Optionally, to prevent the playback time of the growth wallpaper from being too long, the phone can set a duration threshold, for example, optionally 3 seconds, meaning the number of image frames played must be less than or equal to 360 image frames. Similarly, the phone can compress a video segment (including 480 image frames, with a playback duration of 4 seconds) to obtain a video segment with a duration of less than or equal to 3 seconds (e.g., the compressed segment includes 360 image frames). The compressed video segment is then played on the lock screen 601.
[0132] Please refer to Figure 6f For example, the phone continues to acquire the user's step count. When the phone is in screen-off mode, the user can press the power button again. The phone responds to the received user action and enters lock screen mode. For example, the phone can determine the corresponding keyframe based on the acquired user step count. For instance, if the phone acquires a real-time step count of 4200 steps, the phone can find the nearest keyframe before 4200 steps, corresponding to frame 960 at step 4000. Therefore, the keyframe corresponding to the current real-time step count (i.e., 4200 steps) is frame 960. For example, the remaining... Figure 6fSimilarly, the phone obtains the difference (a difference of 180 frames) between the current real-time step count keyframe (i.e., frame 960) and the previous keyframe (i.e., frame 780). For example, as described above, the video played by the growth wallpaper needs to be greater than or equal to 240 image frames (this can be set according to actual needs, for example, it could be 120 frames; this application does not limit this). If the phone detects that the obtained difference is less than 240 frames, then if the video segment between the previous keyframe and the current keyframe is played, the playback duration will be less than 2 seconds. The phone can look back at keyframes with a difference greater than or equal to 240 frames (e.g., frame 720) from the current keyframe (i.e., frame 960). Therefore, the animation of the growth wallpaper is the video segment between frames 720 and 960. Correspondingly, the lock screen interface 601 plays each image frame from frame 720 to 960 sequentially. For example, since the current real-time step count has exceeded the target step count (i.e., 4000 steps), the lock screen interface 601 can continue playing the bonus animation from frame 961 to frame 1200 after playing frame 960. Optionally, the phone can compress the animation to be played and play the compressed video segment. Optionally, if the phone re-enters lock screen mode from screen-off mode, since the real-time step count has exceeded the target step count, the lock screen interface 601 can directly play the bonus animation from frame 960 to frame 1200.
[0133] The following specific examples illustrate how transition animations are combined with user step counts for display. Figure 7 This is an example illustration of how to set up a growth theme. Please refer to... Figure 7 For example, the desktop and wallpaper settings interface 701 includes one or more controls, such as, but not limited to, a theme control 702, an always-on display control, and a wallpaper control. The user can click the theme control 702. The phone responds to the received user action by displaying the wallpaper settings interface. Please refer to... Figure 7 (2) For example, the theme settings interface 703 includes one or more controls, such as, but not limited to: glacier theme control 704, deep sea theme control, etc. Optionally, the theme can be a system-provided theme or a theme generated by the mobile phone based on stored videos; this application does not limit the theme.
[0134] Still refer to Figure 7 (2) For example, the user clicks the Glacier theme control 704. The phone responds to the received user action by displaying the Glacier theme settings interface. Please refer to... Figure 7 (3), for example, the Glacier Theme Settings Interface 705 includes, but is not limited to: transition animation preview window 706, prompt message 707, prompt message 708, adjustment control 709, and confirmation control 710, etc.
[0135] For example, the transition animation preview window 706 can be used to preview the transition animations corresponding to each mode (including screen-off mode, lock screen mode, and desktop mode).
[0136] For example, message 707 can be used to indicate that the current theme is the Glacier theme. It can also be used to indicate the size of the Glacier theme (e.g., 6.26 MB).
[0137] For example, adjustment control 709 is used to set a target number of steps. The user can set the target number of steps by moving the slider in adjustment control 709.
[0138] For example, prompt message 708 is used to indicate the currently set target number of steps, and to indicate that the set target number of steps and the transition animation will dynamically change according to the real-time step count.
[0139] Please continue to refer to Figure 7 (3) For example, in this embodiment of the application, the user sets the target number of steps to 4000 steps by dragging the slider of the adjustment control 709. The mobile phone responds to the received user operation by indicating in the prompt message 308 that the target number of steps is 4000. For example, the user can click the OK control 710. The mobile phone responds to the received user operation by obtaining the correspondence between the transition animation and the number of steps.
[0140] For example, this application uses a transition animation in lock screen mode as an example for illustration. In other embodiments, the solution in this application can also be applied to transition animations from lock screen mode to desktop mode, and will not be described again in this application.
[0141] For example, a mobile phone can set a correspondence between the lock screen transition animation and real-time step count based on received user actions. For specific settings, please refer to [link / reference]. Figures 4a-4b The relevant descriptions will not be repeated here.
[0142] Combination Figure 4b , Figure 8 This is an example illustration of a growth theme display. Please refer to... Figure 8 For example, when the phone is in screen-off mode, the user can press the power button. The phone responds to the received user action and enters lock screen mode. The phone's lock screen can play a transition animation corresponding to the lock screen mode, which can also be understood as a transition animation from screen-off mode to lock screen mode.
[0143] Still refer to Figure 8For example, the mobile phone can obtain the user's real-time step count, taking a current real-time step count of 2400 steps as an example. Based on the correspondence between the real-time step count and image frames, the mobile phone can determine that the image frame corresponding to 2400 steps is frame 360 (also called image frame 360). For example, when the mobile phone enters lock screen mode, each image frame from frame 1 to frame 360 can be played sequentially on the lock screen interface 801. It should be noted that, unlike the dynamic wallpaper mentioned above, the transition animation in lock screen mode is used to connect the screen-off mode and lock screen mode. For example, referring to... Figure 8 For example, the transition animation display box 803 in the always-on display 802 shows... Figure 8 The image shown is a partial image of the first frame in the image frames shown. It should be noted that the partial image of the first frame displayed in the transition animation display box 803 is generated after cropping and resizing the first frame. When the phone enters lock screen mode, the lock screen interface 801 starts playing from the first frame. For example, the first to 20 frames displayed in the lock screen interface 801 (this is only an illustrative example and is not limited in this application) can optionally be achieved by gradually unfolding the image frame (i.e., the first frame) in the transition animation display box 803, and during the unfolding process, the transition animation display box 803 sequentially plays frames 2 to 20, thereby achieving an animation transition effect from the screen-off mode to the lock screen mode. It should be noted that during the unfolding process of the transition animation display box 803, the portion of the lock screen interface 801 excluding the transition animation display box 803 is a black screen.
[0144] For example, after the transition animation display box 803 is fully expanded, the size of the image frame displayed in the lock screen interface 801 is the same as that of the lock screen interface 801, meaning the image fills the entire lock screen interface 801. For example, the lock screen interface 801 can continue playing frames 21 to 360 (i.e., keyframes corresponding to the real-time step count), which can also be understood as video clips (or animation clips) corresponding to the real-time step count. For example, while playing the video clips corresponding to the real-time step count, the lock screen interface 801 can display controls such as time controls, network controls, and battery controls.
[0145] Still refer to Figure 8 For example, users can unlock the phone using methods such as swipe to unlock, fingerprint unlock, or face unlock. In response to the received user action, the phone enters desktop mode. In one example, the transition animation for desktop mode could be to add a magnification effect to the last frame displayed in lock screen mode, i.e., the keyframe corresponding to the real-time step count (e.g., frame 360). For example, the 360th frame could be magnified by 110% for 0.5 seconds, then restored to its original size. In another example, the transition animation for desktop mode could be to start from the last frame displayed in lock screen mode and continue playing an animation for 0.5 seconds (i.e., 60 image frames) (e.g., frames 360 to 420).
[0146] For example, in this embodiment of the application, if the mobile phone receives a user operation before the transition animation playing on the lock screen ends, instructing the phone to enter the desktop, launch a widget, or perform charging operations, the remaining video segments of the transition animation can continue to play on other interfaces. For example, please refer to... Figure 9a For example, assuming the phone has detected more than the target number of steps (e.g., 4000 steps) in real-time, the corresponding video segment for the transition animation on the lock screen is frames 1 to 660 (it could also be a compressed video segment; the concept is explained above and will not be repeated here). For example, in screen-off mode, the phone receives a user's tap on the power button. Responding to the received user action, the phone enters lock screen mode. For example, after the phone screen goes black, lock screen 901 is displayed. Lock screen 901 plays an unfolding animation from frames 1 to 20 (details are explained above). For example, lock screen 901 continues to play each image frame after frame 21, and one or more controls on lock screen 901 (e.g., time controls, network controls, etc.) can appear in a fly-in manner. When lock screen 901 plays frame 360, the user swipes up from the bottom of lock screen 901. In response to the received user operation, the phone displays a widget 902 on the lock screen 901. Simultaneously, the time and network controls on the lock screen 901 disappear. The lock screen 901 continues playing each image frame after frame 360 until frame 660. For example, when widget 902 is no longer in use, or when the user manually cancels widget 902, the image displayed on the lock screen 901 may remain at frame 660, and the time and network controls may still be displayed.
[0147] For further examples, please refer to... Figure 9bFor example, assume the transition animation to be played in lock screen mode is still frames 1 to 660. For example, in screen-off mode, the phone receives a user's tap on the power button. In response to the received user action, the phone enters lock screen mode. For example, after the phone screen goes black, lock screen interface 901 is displayed. The lock screen interface 901 plays an unfolding animation from frame 1 to frame 20 (details can be found above). For example, lock screen interface 901 continues to play each image frame after frame 21, and one or more controls in lock screen interface 901 (e.g., time controls, network controls, etc.) can appear in a fly-in manner. When lock screen interface 901 plays frame 360, the user slides to unlock the phone. In response to the received user action, the phone enters desktop mode. Optionally, the remaining video segments of the lock screen mode transition animation, i.e., frames 361 to 660, can be played as a transition animation from lock screen mode to desktop mode, or as a live wallpaper. This application is not limited to this. For example, if the remaining video clips are played as transition animations, they can be displayed on desktop 903 using methods such as gradually expanding, flying in, or fading in. If the remaining video clips are played as live wallpapers, frames 361 to 660 will be played directly on desktop 903. Optionally, one or more controls on desktop 903 (such as application icon controls) can be displayed using methods such as flying in or fading in; this application does not impose any limitations on this.
[0148] In one possible implementation, the phone can respond to user actions by replacing the transition animation of the lock screen mode linked to the user's step count with other static images. For example, the phone can play a video clip corresponding to the real-time step count on the desktop. Alternatively, the phone can respond to user actions by replacing the transition animation of the desktop wallpaper or desktop mode linked to the user's step count with other static images. For example, the phone can display keyframes corresponding to the real-time step count on the lock screen.
[0149] Optionally, in this embodiment of the application, while the mobile phone is playing a growth wallpaper or transition animation corresponding to the real-time step count, the user's real-time step count can be displayed in a designated area (e.g., the lower left corner of the screen) of the current interface (which can be the lock screen or the desktop).
[0150] It is understood that, in order to achieve the above-mentioned functions, electronic devices include hardware and / or software modules that perform the respective functions. Based on the algorithmic steps of the examples described in the embodiments disclosed herein, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed by hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in conjunction with the embodiments, but such implementation should not be considered beyond the scope of this application.
[0151] In one example, Figure 10 The schematic block diagram illustrating an embodiment of the present application shows an apparatus 1000. The apparatus 1000 may include a processor 1001 and a transceiver / transceiver pin 1002, and optionally, a memory 1003.
[0152] The various components of device 1000 are coupled together via bus 1004, which includes a data bus, a power bus, a control bus, and a status signal bus. However, for clarity, all buses are referred to as bus 1004 in the figure.
[0153] Optionally, the memory 1003 can be used for the instructions in the foregoing method embodiments. The processor 1001 can be used to execute the instructions in the memory 1003, control the receive pin to receive signals, and control the transmit pin to transmit signals.
[0154] The device 1000 may be an electronic device or a chip of an electronic device in the above method embodiments.
[0155] All relevant content of each step involved in the above method embodiments can be referenced from the functional description of the corresponding functional module, and will not be repeated here.
[0156] This embodiment also provides a computer storage medium storing computer instructions. When the computer instructions are executed on an electronic device, the electronic device performs the aforementioned related method steps to implement the display method in the above embodiment.
[0157] This embodiment also provides a computer program product that, when run on a computer, causes the computer to perform the aforementioned related steps to implement the display method described in the above embodiment.
[0158] In addition, embodiments of this application also provide an apparatus, which may specifically be a chip, component, or module. The apparatus may include a connected processor and a memory; wherein the memory is used to store computer execution instructions, and when the apparatus is running, the processor may execute the computer execution instructions stored in the memory to cause the chip to execute the display methods in the above-described method embodiments.
[0159] In this embodiment, the electronic device, computer storage medium, computer program product or chip are all used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can be referred to the beneficial effects of the corresponding method provided above, and will not be repeated here.
[0160] Through the above description of the embodiments, those skilled in the art will understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0161] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another device, or some features may be ignored or not executed. Furthermore, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.
[0162] The units described as separate components may or may not be physically separate. A component shown as a unit can be one or more physical units; that is, it can be located in one place or distributed in multiple different locations. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0163] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0164] Any content in the various embodiments of this application, as well as any content in the same embodiment, can be freely combined. Any combination of the above content is within the scope of this application.
[0165] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, in essence, or the parts that contribute to the prior art, or all or part of the technical solutions, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0166] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.
[0167] The steps of the methods or algorithms described in conjunction with the embodiments of this application can be implemented in hardware or by a processor executing software instructions. The software instructions can consist of corresponding software modules, which can be stored in random access memory (RAM), flash memory, read-only memory (ROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), registers, hard disks, portable hard disks, CD-ROMs, or any other form of storage medium well known in the art. An exemplary storage medium is coupled to a processor, enabling the processor to read information from and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can reside in an ASIC.
[0168] Those skilled in the art will recognize that the functions described in the embodiments of this application in one or more of the above examples can be implemented using hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or code on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein communication media include any medium that facilitates the transfer of a computer program from one place to another. Storage media can be any available medium that can be accessed by a general-purpose or special-purpose computer.
[0169] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.
Claims
1. An electronic device, comprising: Comprising: a memory and a processor; the processor is coupled with the memory; the memory stores program instructions, when the program instructions are executed by the processor, the electronic device executes the following steps: when the electronic device is in the screen-off mode, receiving a user's click-on key operation at a first time; in response to the user's click-on key operation at the first time, displaying a lock screen interface; obtaining a first real-time step number of the user at the first time, the first real-time step number being the walking step number of the user between a set period start time and the first time; determining a first key frame corresponding to the first real-time step number in a first video segment; playing each image frame between a first image frame and the first key frame in the first video segment in the lock screen interface of the electronic device in turn; when the electronic device is in the screen-off mode, receiving a user's click-on key operation at a second time, the second time being later than the first time; in response to the user's click-on key operation at the second time, displaying a lock screen interface; obtaining a second real-time step number of the user at the second time, the second real-time step number being the walking step number of the user between the period start time and the second time; determining a second key frame corresponding to the second real-time step number in the first video segment; the second key frame is after the first key frame; when the number of image frames between the first key frame and the second key frame is less than a first value, determining a third key frame in the first video segment before the second key frame and having a number of image frames between the second key frame greater than or equal to the first value; playing each image frame between the third key frame and the second key frame in the first video segment in the lock screen interface of the electronic device in turn; when the number of image frames between the first key frame and the second key frame is greater than a second value, compressing the image frames between the first key frame and the second key frame in the first video segment, so that the number of image frames between the compressed first key frame and the second key frame is less than or equal to the second value, and playing the image frames between the compressed first key frame and the second key frame in the lock screen interface of the electronic device in turn.
2. The electronic device of claim 1, wherein, when the program instructions are executed by the processor, the electronic device executes the following steps: in response to the received user operation, obtaining a target step number of the user within the set period; based on the target step number, setting a correspondence between each step number in the target step number and an image frame in the first video segment.
3. The electronic device of claim 2, wherein, when the program instructions are executed by the processor, the electronic device executes the following steps: determining the first key frame corresponding to the first real-time step number according to the correspondence between each step number in the target step number and an image frame in the first video segment.
4. The electronic device of claim 1, wherein, The screen-off interface includes a first display box, and the first sub-video is played in the first display box; the size of the first display box is smaller than the size of the screen-off interface.
5. A display method characterized by comprising: Comprising: when the electronic device is in the screen-off mode, receiving a user's click-on key operation at a first time; The electronic device displays a lock screen interface in response to a user's click-on key operation at a first time; The electronic device acquires a first real-time step number of the user between a set period start time and the first time; The electronic device determines a first key frame in the first video segment corresponding to the first real-time step number; The electronic device plays each image frame between a first image frame and the first key frame in the first video segment in sequence in the lock screen interface of the electronic device; The electronic device receives a user's click-on key operation at a second time when the electronic device is in a screen-off mode, the second time being later than the first time; The electronic device displays a lock screen interface in response to a user's click-on key operation at a second time; The electronic device acquires a second real-time step number of the user between the set period start time and the second time; The electronic device determines a second key frame in the first video segment corresponding to the second real-time step number; The second key frame is after the first key frame; When the number of image frames between the first key frame and the second key frame is less than a first value, the electronic device determines a third key frame in the first video segment before the second key frame and having a number of image frames between the third key frame and the second key frame greater than or equal to the first value, and plays each image frame between the third key frame and the second key frame in the first video segment in sequence in the lock screen interface of the electronic device; When the number of image frames between the first key frame and the second key frame is greater than a second value, the electronic device compresses the image frames between the first key frame and the second key frame in the first video segment, so that the number of image frames between the compressed first key frame and the second key frame is less than or equal to the second value, and plays the image frames between the compressed first key frame and the second key frame in sequence in the lock screen interface of the electronic device.
6. The method of claim 5, wherein, The electronic device acquires a first real-time step number of the user before the first time in response to the received first user operation, and the method further comprises: The electronic device acquires a target step number of the user within the set period in response to the received user operation; The electronic device sets a correspondence between each step number in the target step number and an image frame in the first video segment based on the target step number.
7. The method of claim 6, wherein, The electronic device determines a first sub-video segment in the first video segment corresponding to the first real-time step number, and the method further comprises: The electronic device determines a first key frame corresponding to the first real-time step number according to the correspondence between each step number in the target step number and an image frame in the first video segment.
8. The method of claim 5, wherein, The screen-off interface comprises a first display box in which a first sub-video is played, and the size of the first display box is less than the size of the screen-off interface.
9. A computer readable storage medium comprising a computer program, characterized in that, When the computer program runs on the electronic device, the electronic device performs the display method according to any one of claims 5-8.
Citation Information
Patent Citations
Wallpaper display method and device and electronic equipment
CN112099683A