Display control method and related equipment
By responding to screen-destroying instructions and obtaining display coordinates on the display screen of the smart terminal device, we ensure that the full-day display area moves within the image resolution range supported by the display screen, solving the problem of over-the-day display area in the full-day display mode, and improving users Experience.
Patent Information
- Application Number
- CN202310576502.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-19
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2043-05-19
AI Technical Summary
In the all-day display mode, the display screen of the smart terminal device has no independent memory display driver circuit, and the whole day display area is prone to exceed the specified display range, and some information cannot be continuously displayed, affecting the user experience.
By responding to the screen-destroying command, control the screen-destroying screen and create a full-day display AOD view, obtain the initial and moving display coordinates of the AOD area, and move the display within the preset display range of the display based on these coordinates to ensure the AOD area Move within the image resolution range supported by the display to avoid exceeding the display range.
It realizes that the full-day display area does not exceed the specified range during the mobile display process, ensuring the integrity of the full-day display information and improving the user experience.
Smart Images

Figure CN117707449B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of display technology, and in particular to a display control method and related equipment. Background Art
[0002] When the screen of smart terminals such as smartphones and tablets is turned off, the display screen can enter the always-on display (AOD) mode, so that information such as date, time, and notifications can be displayed continuously. In the all-day display mode, in order to prevent screen burn-in, the all-day display area needs to be moved on the display screen for dynamic display. However, the display screen of smart terminal devices usually adopts a ramless integrated circuit (IC). Since the ramless integrated circuit does not have an independent display memory, the image resolution supported is small, and the all-day display area is easy to exceed the specified display range, resulting in some information cannot be displayed continuously, thus affecting the user experience. Summary of the invention
[0003] In view of the above, it is necessary to provide a display control method and related equipment to solve the problem that the all-day display area of a display screen without an independent memory display driving circuit easily exceeds the specified display range, resulting in part of the all-day display information being unable to be displayed continuously.
[0004] In a first aspect, the present application provides a display control method, which is applied to an electronic device, the method comprising: responding to a screen-off instruction, controlling the display screen of the electronic device to turn off the screen, and creating an AOD view that is displayed all day; controlling the display screen to enter a sleep state; obtaining the initial display coordinates of an AOD area corresponding to the AOD view and the display coordinates after each movement; based on the initial display coordinates and the display coordinates after each movement, controlling the AOD area to move and display within a preset display range of the display screen, wherein the preset display range is a display range corresponding to the image resolution supported by the display screen in AOD mode.
[0005] Based on the above technical solution, the all-day display area can be controlled to move and display within the display range corresponding to the image resolution supported by the display screen in the all-day display mode, thereby ensuring that the all-day display area will not exceed the specified display range during the mobile display process, thereby ensuring that the all-day display information is displayed completely.
[0006] In a possible implementation, the display coordinates are pixel coordinates, and obtaining the display coordinates of the AOD area corresponding to the AOD view after each movement includes: presetting the number of movements and the moving direction of the AOD area in a moving cycle; and determining the number of pixels of the AOD area each time it moves according to the number of pixels in the preset display range in the moving direction and the number of movements.
[0007] Based on the above technical solution, the number of movements and the direction of movement of the AOD area can be preset to determine the number of pixels that the AOD area moves each time, and then accurately determine the display coordinates of the AOD area to ensure that the AOD area does not exceed the specified display range during the moving display process.
[0008] In a possible implementation, obtaining the display coordinates of the AOD area corresponding to the AOD view after each movement further includes: determining the display coordinates of the AOD area after each movement based on the number of pixels of the AOD area each time and the display coordinates of the AOD area before movement.
[0009] Based on the above technical solution, the display position of the AOD area can be accurately determined by determining the display coordinates of the AOD area after each movement.
[0010] In a possible implementation, the AOD area is a rectangular area, the horizontal number of pixels in the AOD area is less than or equal to the horizontal number of pixels in the display screen, and the vertical number of pixels in the AOD area is less than or equal to a preset ratio of the vertical number of pixels in the display screen.
[0011] Based on the above technical solution, the size of the AOD area can be set to ensure that the AOD area can be moved and displayed within the display range of the display screen and does not exceed the preset display range, thereby ensuring that the information in the AOD area can be displayed completely.
[0012] In a possible implementation, obtaining the initial display coordinates of the AOD area corresponding to the AOD view includes: establishing a rectangular coordinate system with the upper left corner of the AOD area as the origin, the horizontal edge as the X-axis, and the longitudinal edge as the Y-axis; determining the coordinates of the middle point of the upper edge of the AOD area in the rectangular coordinate system, and determining the coordinates of the middle point when the AOD area is in the initial position as the initial display coordinates of the AOD area.
[0013] Based on the above technical solution, the initial display coordinates of the AOD area can be determined by setting a rectangular coordinate system, so as to determine the initial display position of the AOD area based on the initial display coordinates, and control the AOD area to move and display from the initial display position.
[0014] In a possible implementation, the AOD area is controlled to move and display within a preset display range of the display screen based on the initial display coordinates and the display coordinates after each movement, including: determining the size of the AOD area based on the resolution of the AOD area, determining the initial position of the AOD area based on the initial display coordinates, and drawing the content of the AOD view based on the display information of the AOD view to obtain AOD drawing data; rendering the AOD drawing data to the display screen, and driving the display screen by a display driving circuit of the electronic device to display the AOD area based on the AOD drawing data; calculating the display coordinates of the AOD area after each movement at first preset time intervals, and determining the position of the AOD area after each movement based on the display coordinates after each movement; determining the AOD drawing data after each movement based on the position of the AOD area after each movement, rendering the AOD drawing data after each movement to the display screen, and driving the display screen by the display driving circuit to move and display the AOD area based on the AOD drawing data after each movement.
[0015] Based on the above technical solution, the drawing data of the AOD area can be determined by the display content and display coordinates of the AOD area, so as to accurately control the AOD area to perform mobile display.
[0016] In one possible implementation, controlling the AOD area to move and display within a preset display range of the display screen includes: determining that the timing time of the timer for the mobile display of the AOD area reaches a first preset time; the AOD application of the electronic device obtains the display coordinates of the AOD area; the power management service of the electronic device obtains the display coordinates of the AOD area; and the display driving circuit of the electronic device drives the display screen to display the AOD area based on the display coordinates.
[0017] Based on the above technical solution, the first preset time can be measured by a timer, and each time the measured time reaches the first preset time, the display coordinates of the AOD area are sent down layer by layer based on the software architecture of the electronic device system to improve the efficiency of mobile display of the AOD area.
[0018] In a possible implementation, the display driving circuit drives the display screen to display the AOD area based on the display coordinates, including: the display driving circuit drives the display screen to determine the display screen pixels corresponding to the AOD area based on the display coordinates, and lights up the display screen pixels corresponding to the AOD area, so that the lit display screen pixels form the AOD area.
[0019] Based on the above technical solution, the display screen pixels in the AOD area can be lit up through the AOD drawing data, so that the display screen accurately displays the AOD area at the specified display position.
[0020] In one possible implementation, the method includes: generating the screen-off instruction when an input event of triggering a power button of the electronic device occurs, or when the electronic device does not generate any input event within a second preset time.
[0021] Based on the above technical solution, the screen-off instruction can be generated to timely control the screen-off to reduce system power consumption and save electricity.
[0022] In one possible implementation, responding to a screen-off instruction to control the display screen of the electronic device to turn off the screen includes: in response to the screen-off instruction, the power management service of the electronic device sends a backlight power-off instruction to a display driver circuit; the display driver circuit responds to the backlight power-off instruction to turn off the backlight of the display screen; the power management service sends a first state switching instruction to a layer synthesis service; in response to the first state switching instruction, the layer synthesis service sends a first power setting instruction to the display driver circuit; in response to the first power setting instruction, the display driver circuit sends an off state value to the display screen to control the display screen to enter an off state; the layer synthesis service returns the setting result of the display screen state to the power management service.
[0023] Based on the above technical solution, the display screen can be controlled to turn off based on the software architecture of the electronic device system, thereby ensuring that the display screen can be turned off normally.
[0024] In a possible implementation manner, the creating the AOD view includes: acquiring display information of the AOD area from an application of the electronic device, and creating the AOD view based on the acquired display information.
[0025] Based on the above technical solution, the AOD interface can be drawn based on the content to be displayed in the AOD area, so that the AOD view can display the content that the user needs to know, effectively improving the user experience.
[0026] In one possible implementation, controlling the display screen to enter a sleep state includes: in response to a sleep instruction, the power management service sends a second state switching instruction to the layer synthesis service; in response to the second state switching instruction, the layer synthesis service sends a second power setting instruction to the display driver circuit; in response to the second power setting instruction, the display driver circuit sends a sleep state value to the display screen to control the display screen to enter a sleep state; the layer synthesis service returns the sleep state setting result to the power management service.
[0027] Based on the above technical solution, the display screen can be controlled to enter the sleep state based on the software architecture of the electronic device system, thereby ensuring that the display screen can enter the sleep state normally.
[0028] In a possible implementation, the preset display range is a display range corresponding to a maximum image resolution supported by the display screen in the AOD mode, and the maximum image resolution is smaller than a resolution of the display screen.
[0029] Based on the above technical solution, the preset display range can be set to the display range corresponding to the maximum image resolution supported by the display screen in AOD mode, thereby ensuring that the AOD information can be displayed completely when the AOD area is moved and displayed.
[0030] In a possible implementation manner, the method further includes: acquiring the backlight brightness of the AOD area.
[0031] Based on the above technical solution, the backlight brightness of the AOD area can be obtained to set the backlight of the AOD area so that the AOD area is visible.
[0032] In a possible implementation, based on the initial display coordinates and the display coordinates after each movement, the AOD area is controlled to move and display within a preset display range of the display screen, including: based on the initial display coordinates, the display coordinates after each movement and the backlight brightness of the AOD area, the AOD area is controlled to move and display within the preset display range.
[0033] Based on the above technical solution, the backlight of the AOD area can be set by the acquired backlight brightness, so that the AOD area is visible.
[0034] In a second aspect, the present application provides an electronic device, comprising a memory and a processor: wherein the memory is used to store program instructions; the processor is used to read and execute the program instructions stored in the memory, and when the program instructions are executed by the processor, the electronic device executes the above-mentioned display control method.
[0035] In a third aspect, the present application provides a chip coupled to a memory in an electronic device, wherein the chip is used to control the electronic device to execute the above-mentioned display control method.
[0036] In a fourth aspect, the present application provides a computer storage medium storing program instructions, which, when executed on an electronic device, enables the electronic device to execute the above-mentioned display control method.
[0037] In addition, the technical effects brought about by the second to fourth aspects can be found in the descriptions related to the methods of each design in the above method part, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 Schematic diagram of the AOD region provided in one embodiment of the present application.
[0039] Figure 2 This is another schematic diagram of the AOD area provided in one embodiment of the present application.
[0040] Figure 3 It is a software architecture diagram of an electronic device provided in one embodiment of the present application.
[0041] Figure 4 It is a flow chart of a display control method provided by an embodiment of the present application.
[0042] Figure 5 This is another schematic diagram of the AOD area provided in one embodiment of the present application.
[0043] Figure 6 This is a schematic diagram of the movement status of the AOD area provided in an embodiment of the present application.
[0044] Figure 7 It is a flow chart of a display control method provided by another embodiment of the present application.
[0045] Figure 8 It is a schematic diagram of the interaction of various layers of the software architecture of an electronic device provided in one embodiment of the present application.
[0046] Fig. 9 This is a flow chart of controlling a display screen to turn off the display screen provided in one embodiment of the present application.
[0047] Fig.10 This is a flow chart of controlling a display screen to enter a sleep state provided by an embodiment of the present application.
[0048] Fig.11 This is a flowchart of controlling the AOD view to move and display within a preset display range provided by an embodiment of the present application.
[0049] Fig.12 It is a flow chart of a display control method provided by another embodiment of the present application.
[0050] Fig.13 It is a flowchart of the lower coordinate provided by an embodiment of the present application.
[0051] Fig.14 It is a schematic diagram of the interaction of various layers of the software architecture of an electronic device provided in another embodiment of the present application.
[0052] Fig.15This is a hardware architecture diagram of an electronic device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0053] The terms "first" and "second" involved in the embodiments of the present application are only used for descriptive purposes and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a concrete way.
[0054] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those generally understood by technicians in the technical field in this application. The terms used in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application. It should be understood that, unless otherwise specified in this application, " / " means or. For example, A / B can represent A or B. "And / or" in this application is only a description of the association relationship of associated objects, indicating that three relationships can exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. "At least one" refers to one or more. "Multiple" refers to two or more than two. For example, at least one of a, b or c can represent: a, b, c, a and b, a and c, b and c, a, b and c. In the absence of conflict, the following embodiments and the features in the embodiments can be combined with each other.
[0055] To facilitate understanding, some illustrations of concepts related to the embodiments of the present application are given by way of example for reference.
[0056] Ram IC: Ram IC is a display driver circuit with an independent display memory, which is used to drive the display screen to display images. Ram IC includes compensation memory and display memory. The compensation memory is used to store compensation data for uneven screen display, and the display memory is used to temporarily store image data to be displayed.
[0057] Ramless IC: Ramless IC is a display driver circuit without independent display memory, which is used to drive the display screen to display images. Ramless IC includes compensation memory but does not include display memory. It can temporarily store the image data to be displayed in the compensation memory, or directly transmit the image data to be displayed to the display screen, and drive the display screen to display images.
[0058] AOD: AOD is the all-day display mode. Electronic devices can enter the all-day display mode when the screen is off. By lighting up some pixels of the display screen, an all-day display area is formed. Important information such as date, time, notifications, and battery level can be continuously displayed in the all-day display area, allowing users to browse these important information without turning on the screen.
[0059] VDO mode, also known as video mode: is one of the screen output modes of the display driver circuit. In VDO mode, the application processor of the electronic device directly transmits the image data to the display screen via the display driver circuit to refresh the interface. During the refresh and display process of the interface, since the image data will not be stored in the register, the register commands in the display interface rendering process cannot be stored either. Instead, the control commands and control parameters of the interface refresh display are sent to the display screen. Therefore, the system power consumption in video mode is higher.
[0060] CMD mode, also known as command mode: It is one of the screen output modes of the display driver circuit. In CMD mode, the application processor of the electronic device transfers the image data to the storage block of the display driver circuit for caching, and the display driver circuit transfers the image data to the display screen for display. During the refresh display process of the interface, the register of the storage block can be initialized, and the control commands and control parameters of the interface refresh display can be stored in the storage block without being sent to the display screen. Therefore, the system power consumption in command mode is lower than that in video mode.
[0061] Doze mode: also known as low power consumption mode or nap mode, electronic devices can enter doze mode after the screen is turned off. In doze mode, the electronic device system saves power by limiting the application's access to the network and the use of the processor. It can also limit the application's synchronization processing and the use of the system alarm. In addition, in doze mode, you can set an application whitelist so that some applications can use hardware resources and software resources normally, for example, the AOD area can be displayed on the display screen through the AOD application.
[0062] For the detailed implementation process of the display control method, please refer to the description in each embodiment below.
[0063] In order to better understand the display control method provided in the embodiment of the present application, Figure 1 , Figure 2 The application scenario of the display control method provided in the embodiment of the present application is described.
[0064] When the display screen of an electronic device uses Ram IC, in the all-day display mode, the display driving circuit uses CMD mode for screen output. Ram IC includes an independent display memory, and the image resolution supported for display is the maximum resolution of the display screen. Therefore, the image can be displayed in full screen. In both the bright screen and the off screen state, the CMD mode is used for screen output. However, the cost of the display screen using Ram IC is relatively high. In order to reduce the cost, the display screen can use Ramless IC. In the bright screen state, the electronic device outputs the screen through the VDO mode. In the off screen state, in order to reduce the system power consumption, the Ramless IC display screen of the electronic device outputs the screen through the CMD mode. Since Ramless IC does not have an independent display memory, its overall memory is small, and the image resolution supported for display is also small. However, in the all-day display mode, in order to prevent screen burn-in, the all-day display area needs to be moved on the display screen for dynamic display. When the image resolution supported by Ramless IC is small, the all-day display area is easy to exceed the specified display range during the mobile display process, resulting in the inability of some AOD information to be continuously displayed, which in turn causes the user to be unable to intuitively browse some AOD information when the display screen is off, thereby affecting the user's experience.
[0065] For example, the resolution of a display screen using a Ramless IC is 2368*1080. When the screen is on, the display screen uses the VDO mode for image output. The maximum image resolution supported by the display screen using the Ramless IC is the same as the resolution of the display screen, which is 2368*1080. In the all-day display mode of the screen off state, the display screen uses the CMD mode for image output. Since the memory of the Ramless IC is small, the image resolution supported by the display screen using the Ramless IC is smaller than the resolution of the display screen, for example, 1440*1080. Figure 1 As shown, in the all-day display mode, the display screen includes an all-day display area and a fingerprint unlocking area. Figure 1 The gray background area in the figure is the display range of the all-day display area. The resolution of the all-day display area is 1240*1080. The display content of the all-day display area includes the screen saver area, date, time and power. The resolution of the fingerprint unlocking area is 200*1080. It can be understood that Figure 1 The division method of the display screen area is only for illustration. In other embodiments, in the all-day display mode, the display screen may not be provided with a fingerprint unlocking area.
[0066] In the all-day display mode with the screen off, if the position of the all-day display area remains unchanged, the display screen pixels corresponding to the all-day display area are always in a lit state, causing the temperature of some areas of the display screen to be continuously too high, which can easily lead to screen burn-in. In order to avoid screen burn-in, the all-day display area can be moved dynamically, and there is no overlapping area or only partial overlapping area between the all-day display areas before and after each movement, ensuring that the same display screen pixels will not be continuously lit. However, since the display screen using Ramless IC supports a smaller image resolution, the display range corresponding to the all-day display area is smaller. During the movement of the all-day display area, it is easy to exceed the display range and cause part of the area to be missing, which in turn causes the missing part of the information to be unable to be continuously displayed, thereby affecting the user experience.
[0067] See also Figure 2 As shown, in the screen-off state, the all-day display area dynamically moves downward, and when it moves beyond the display range corresponding to the full-screen display area, part of the area is missing. For example, the date, time, and battery level cannot be displayed normally, resulting in the user being unable to understand the date, time, and device battery level in the screen-off state.
[0068] In order to solve the problem that the all-day display area of a display screen without an independent memory display driving circuit is prone to exceed the specified display range during the mobile display process, resulting in the inability to continuously display some AOD information, the embodiment of the present application provides a display control method and related equipment, which can control the all-day display area to be mobile displayed within the display range corresponding to the maximum image resolution supported by the display screen in the all-day display mode, thereby avoiding the all-day display area exceeding the specified display range during the mobile display process, resulting in the inability to display the all-day display information completely, which will be explained in conjunction with multiple embodiments below. The display control method is applied to electronic devices, and the electronic devices can be smart phones, personal computers, smart wearable devices, smart TVs, etc.
[0069] See also Figure 3 As shown, it is a software architecture diagram of the electronic device provided 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. The layers communicate with each other through software interfaces. For example, the Android system is divided into four layers, from top to bottom, respectively, the application layer 101, the framework layer 102, the Android runtime (Androidruntime) and the system library 103, the hardware abstraction layer 104, the kernel layer 105, and the hardware layer 106.
[0070] The application layer 101 may include a series of application packages, such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, device control service and other applications.
[0071] The framework layer 102 provides an application programming interface (API) and a programming framework for the application programs of the application layer. The application framework layer includes some predefined functions. For example, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, etc.
[0072] Among them, the window manager is used to manage window programs. The window manager can obtain the size of the display screen, determine whether there is a status bar, lock the screen, capture the screen, etc. The content provider is used to store and obtain data and make the data accessible to the application. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phone books, etc. The view system includes visual controls, such as controls for displaying text, controls for displaying pictures, etc. The view system can be used to build applications. The display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying pictures. The phone manager is used to provide communication functions for electronic devices. 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, etc. 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 disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify the completion of downloads, message reminders, etc. The notification manager can also be a notification that appears in the top status bar of the system in the form of an icon 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 window. For example, a text message is prompted in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.
[0073] Android Runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system. The core library contains two parts: one is the function that the Java language needs to call, and the other is the Android core library.
[0074] The application layer 101 and the framework layer 102 run in a virtual machine. The virtual machine executes the Java files of the application layer and the 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.
[0075] The system library 103 may include multiple functional modules, such as a surface manager, a media library, a 3D graphics processing library (eg, OpenGL ES), a 2D graphics engine (eg, SGL), and the like.
[0076] Among them, the surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications. The media library supports playback and recording of multiple commonly used audio and video formats, as well as static image files. The media library can support multiple 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, synthesis, and layer processing. The 2D graphics engine is a drawing engine for 2D drawing.
[0077] The hardware abstraction layer 104 runs in the user space, encapsulates the kernel layer driver, and provides a calling interface to the upper layer.
[0078] The kernel layer 105 is a layer between hardware and software and includes at least a display driver, a camera driver, an audio driver, and a sensor driver.
[0079] The kernel layer 105 is the core of the operating system of the electronic device. It is the first layer of software expansion based on hardware, provides the most basic functions of the operating system, is the basis of the operating system, is responsible for managing the system's processes, memory, device drivers, files and network systems, and determines the performance and stability of the system. For example, the kernel can determine the operating time of an application on a certain part of the hardware.
[0080] The kernel layer 105 includes programs closely related to the hardware, such as interrupt handlers, device drivers, etc., and also includes basic, common, and high-frequency modules, such as clock management modules, process scheduling modules, etc., and also includes key data structures. The kernel layer can be set in the processor or solidified in the internal memory.
[0081] The hardware layer 106 includes the hardware of the electronic device, such as a display screen, buttons, a camera, etc.
[0082] See also Figure 4 FIG. 1 is a flow chart of a display control method provided in an embodiment of the present application. The method is applied in an electronic device, and the display control method includes:
[0083] S101, respond to the screen-off instruction, control the display screen to turn off, and create an AOD view.
[0084] In one embodiment of the present application, if an input event generated after the power button of the electronic device is triggered is detected, a screen-off instruction is generated. Wherein, if it is detected that the power button is pressed and released, it is determined that the power button is triggered by the user, thereby generating a corresponding input event, and then responding to the input event, the display screen is controlled to turn off. In another embodiment of the present application, when the electronic device does not generate any input event within the second preset time, a screen-off instruction is generated. Wherein, the second preset time can be the automatic screen lock time of the electronic device set by the user, for example, it can be 30 seconds, 1 minute or 2 minutes, and the embodiment of the present application is not limited to this. If the electronic device does not generate any input event within the second preset time, it is determined that the electronic device has not received user operations (such as key operations, touch operations, etc.) for a long time. In order to reduce system power consumption and save electricity, a screen-off instruction is automatically generated to control the display screen to turn off.
[0085] In one embodiment of the present application, in response to the power button being triggered, the power management service of the framework layer calls the backlight setting function to control the backlight of the display screen to power off and turn off the display screen backlight, and also calls the power mode setting function to control the display screen to enter the off state.
[0086] In one embodiment of the present application, after the display screen is turned off and the AOD function of the electronic device is turned on, the power management service sends an AOD view creation instruction to the AOD application through the screen saver control function (Dream Controller), and creates an AOD view through the AOD application.
[0087] In one embodiment of the present application, the AOD application obtains the display information of the AOD area from the application of the electronic device, and creates an AOD view based on the obtained display information. The display information of the AOD area includes, but is not limited to, screen saver images, date, time, power, and the latest notification information. For example, the screen saver image selected by the user can be obtained in the AOD application. The AOD application also obtains the current date from the calendar application, the current time from the clock application, the current power from the power management service, and multiple notification messages from the application that receives the notification message, and determines the latest notification message from the multiple notification messages obtained.
[0088] In one embodiment of the present application, the number of horizontal pixels in the AOD area corresponding to the AOD view is less than or equal to the number of horizontal pixels in the preset display range, and the number of vertical pixels in the AOD area is less than or equal to a preset ratio of the number of vertical pixels in the preset display range, for example, the preset ratio is 50%, that is, the number of vertical pixels in the AOD area is less than or equal to half of the number of vertical pixels in the preset display range.
[0089] In one embodiment of the present application, the preset display range is the display range corresponding to the image resolution supported by the display screen in the AOD mode, and the image resolution corresponding to the preset display range is less than or equal to the maximum image resolution supported by the display screen in the AOD mode. In the AOD mode, if the display screen includes a fingerprint unlocking area, the image resolution corresponding to the preset display range is less than the maximum image resolution supported by the display screen. If the display screen does not include a fingerprint unlocking area, the image resolution corresponding to the preset display range is equal to the maximum image resolution supported by the display screen. For example, the resolution of the display screen is 2368*1080, and in the all-day display mode in the screen-off state, the maximum image resolution supported by the Ramless IC is 1440*1080. If the image resolution corresponding to the fingerprint unlocking area is 200*1080, the image resolution corresponding to the preset display range is 1240*1080, the number of horizontal pixels in the AOD area is less than or equal to 1080, and the number of vertical pixels in the AOD view is less than or equal to 620.
[0090] S102, controlling the display screen to enter a doze state.
[0091] In one embodiment of the present application, after the AOD application creates the AOD view, it notifies the power management service. After receiving the notification from the AOD application, the power management service controls the AOD application to start the AOD mode through the screen saver start function (onDreaming Start). The AOD application initializes the dozing mode through the sleep start function (start dozing), and sends a sleep instruction to instruct the power management service to control the display screen to enter the sleep state.
[0092] S103, obtaining the initial display coordinates of the AOD area corresponding to the AOD view and the display coordinates after each movement.
[0093] In one embodiment of the present application, the AOD view includes AOD display information, the AOD view is located in the AOD area, the AOD area corresponding to the AOD view can be a rectangular area, the number of horizontal pixels in the AOD area is 1080, that is, the horizontal width of the AOD area can occupy the width of the display screen, the number of vertical pixels in the AOD area is less than or equal to a preset ratio of the number of vertical pixels of the maximum image resolution supported by the display screen, for example, one half, the display coordinates of the AOD area are the coordinates of the middle point of the upper edge of the AOD area, the embodiment of the present application does not limit the position of the display coordinates of the AOD area and the shape of the AOD area, in other embodiments, the display coordinates of the AOD area may also be the coordinates of the middle of the lower edge of the AOD area or the coordinates of any vertex of the AOD area.
[0094] See also Figure 5As shown, the resolution of the display screen is 2368*1080. In the all-day display mode with the screen off, the maximum image resolution supported by the display screen is 1440*1080, the resolution of the fingerprint unlocking area is 200*1080, the resolution of the preset display range is 1240*1080, the number of horizontal pixels in the AOD area is 1080, and the number of vertical pixels in the AOD area is 620. In the initial state, the upper edge of the AOD area coincides with the upper edge of the preset display range. In the rectangular coordinate system established with the upper left corner of the display screen as the origin, the horizontal upper edge as the X-axis, and the vertical left edge as the Y-axis, the display coordinates of the AOD area are pixel coordinates, and the initial display coordinates of the AOD area are pre-set to (540, 200). Among them, the display drive circuit stores the initial display coordinates of the AOD area.
[0095] In one embodiment of the present application, the number of movements and the moving direction of the AOD area in a moving cycle are preset, and the number of pixels that the AOD area moves each time is determined based on the number of pixels and the number of movements in the moving direction of a preset display range. The display coordinates of the AOD area after each movement are determined based on the number of pixels that the AOD area moves each time and the display coordinates of the AOD area before movement.
[0096] In one embodiment of the present application, the AOD area is moved from the initial position to the bottom of the preset display range and then returned to the initial position as a movement cycle of the AOD area, and the movement direction is longitudinal, that is, it moves along the longitudinal axis of the rectangular coordinate system. Assuming that the number of movements of the preset AOD area in a movement cycle is a, within a movement cycle, if the AOD area needs to return to the initial position, the AOD area needs to move up and down, and the number of downward movements of the AOD area is the same as the number of upward movements, the number of pixels of the AOD area moving along the longitudinal axis of the rectangular coordinate system each time is the same, the number of pixels of the AOD area moving along the longitudinal axis of the rectangular coordinate system within a movement cycle is twice the difference between the number of longitudinal pixels of the preset display range and the number of longitudinal pixels of the AOD area, and the number of pixels of the AOD area moving each time is the number of pixels of the AOD area moving along the longitudinal axis of the rectangular coordinate system within a movement cycle divided by the number of movements within a movement cycle. For example, assuming that the number of longitudinal pixels in the preset display range is 1240 and the number of longitudinal pixels in the AOD area is 310, the number of pixels moved by the AOD area along the longitudinal axis of the rectangular coordinate system is 2*(1240-310)=1860, the number of pixels moved by the AOD area each time is 1860 / a, the display coordinates of the initial position of the AOD area are (540, 200+0*1860 / a), and it starts to move downward. The longitudinal axis value of the display coordinates of the AOD area gradually increases. After the first movement, the first display coordinates are (540, 200+1*1860 / a), the second display coordinates after the second movement are (540, 200+2*1860 / a), the third display coordinates after the third movement are (540, 200+3*1860 / a), and the fourth display coordinates after the fourth movement are (540, 200+ 4*1860 / a), the fifth display coordinates after the fifth movement are (540, 200+5*1860 / a), at this time, the lower edge of the AOD area coincides with the lower edge of the preset display range. Since the AOD area moves downward, it will exceed the preset display range, and then the AOD area moves upward in the opposite direction. At this time, the vertical axis value of the display coordinates of the AOD area gradually decreases. After the sixth movement, the sixth display coordinates are (540, 200+4*1860 / a), the seventh display coordinates after the seventh movement are (540, 200+3*1860 / a), the eighth display coordinates after the eighth movement are (540, 200+2*1860 / a), the ninth display coordinates after the ninth movement are (540, 200+1*1860 / a), and the display coordinates returning to the initial position after the tenth movement are (540, 200+0*1860 / a). For example, the number of movement times a of the AOD area in one movement cycle is 10, then the first display coordinates are (540, 386), the second display coordinates are (540, 572), and so on.
[0097] S104, based on the initial display coordinates of the AOD area and the display coordinates after each movement, controlling the AOD area to move and display within a preset display range.
[0098] In one embodiment of the present application, the size of the AOD area is determined based on the resolution of the AOD area, the initial position of the AOD area is determined based on the initial display coordinates, and the content of the AOD view is drawn based on the display information of the AOD view to obtain AOD drawing data, and the AOD drawing data is rendered to a display screen, and a display driving circuit of an electronic device drives the display screen to display the AOD area based on the AOD drawing data, and at first preset time intervals, the display coordinates of the AOD area after each movement are calculated, and the position of the AOD area after each movement is determined based on the display coordinates after each movement, and the AOD drawing data after each movement is determined based on the position of the AOD area after each movement, and the AOD drawing data after each movement is rendered to the display screen, and the display driving circuit drives the display screen to move and display the AOD area based on the AOD drawing data after each movement.
[0099] In one embodiment of the present application, after the AOD area is displayed at the initial position for a first preset time, the AOD area is moved and displayed on the display screen based on the next display coordinates. In one embodiment of the present application, the first preset time is the time interval between two adjacent movements of the AOD area. Each time the AOD area moves to the next display position, it will maintain the first preset time before the next movement. For example, before moving, the next display coordinates of the AOD area are calculated first, and after the first preset time, the AOD area is moved and displayed on the display screen based on the next display coordinates. In this way, the AOD area is moved and displayed within the preset display range, which can not only avoid the same pixel points on the display screen from being continuously lit, thereby preventing screen burn-in, but also ensure that the AOD area can be fully displayed. Among them, the preset display range is the display range corresponding to the image resolution supported by the display screen in AOD mode, and it can also be the display range corresponding to the maximum image resolution supported by the display screen in AOD mode.
[0100] See also Figure 6 As shown, it is a schematic diagram of the movement state of the AOD area provided in an embodiment of the present application, the solid line area is the initial position of the AOD area, and the dotted line area is the position of the AOD area after movement. Among them, the method of moving the AOD area to display on the display screen based on the next display coordinates is the same as the method of displaying the AOD area on the display screen based on the initial display coordinates, which will not be repeated here.
[0101] In one embodiment of the present application, after the AOD area is moved and displayed once, the next display coordinates of the AOD area are calculated. Based on the above example, the next display coordinates are (540, 572).
[0102] In one embodiment of the present application, the display control method further includes: responding to a screen-on instruction, controlling the display screen to exit the AOD mode and enter a screen-on state.
[0103] Based on the above embodiments, the all-day display area can be controlled to move and display within the display range corresponding to the maximum image resolution supported by the display screen in the all-day display mode, thereby avoiding the all-day display area exceeding the specified display range and causing the all-day display information to be unable to be displayed completely.
[0104] See also Figure 7 FIG. 1 is a flow chart of a display control method provided by another embodiment of the present application. The method is applied in an electronic device, and the display control method includes:
[0105] S201, respond to the screen-off instruction, control the display screen to turn off, and create an AOD view.
[0106] S202, controlling the display screen to enter a sleep state.
[0107] S203: Acquire initial display coordinates of the AOD area corresponding to the AOD view, and control the AOD area to be displayed within a preset display range based on the initial display coordinates.
[0108] S204, calculating the display coordinates of the AOD area after the next movement.
[0109] In one embodiment of the present application, whenever the AOD area is displayed within a preset display range based on the current display coordinates of the AOD area, the display coordinates of the AOD area after the next movement are calculated in advance to avoid blockage of the display of the AOD area by the calculation of the display coordinates after the next movement, thereby ensuring that the AOD area can be displayed in a timely manner.
[0110] S205, after the first preset time, based on the display coordinates after the next movement, the AOD area is controlled to move and display within the preset display range. Then, the process returns to S204, continues to calculate the display coordinates after the next movement of the AOD area, and executes S205, after the first preset time, based on the display coordinates after the next movement, the AOD area is controlled to move and display within the preset display range. S204 and S205 are executed in a loop until the display screen is lit.
[0111] The specific implementation of S201-S202 is the same as that of S101-S102, and will not be described in detail. The specific implementation of S203 and S205 in controlling the AOD area to be displayed within the preset display range based on the display coordinates is the same as that of S104.
[0112] See also Figure 8As shown, it is a schematic diagram of the interaction of each layer of the software architecture of an electronic device provided in one embodiment of the present application. In one embodiment of the present application, the application layer 101 includes an AOD application 1010, the framework layer 102 includes a power management service (PowerManagerService, PMS) 1020, a display management service (DisplayManagerService) 1021, a lock screen management service (KeyguardManager) 1022, and a layer synthesis service (SurfaceFlingerService) 1023, the kernel layer (or driver layer) 105 includes a display driver circuit 1050, and the hardware layer 106 includes a display screen 194.
[0113] S301, the power management service calls the backlight setting function and sends a backlight power-off instruction to the display driving circuit.
[0114] In one embodiment of the present application, the power management service generates a screen-off instruction in response to an input event generated by the power button being triggered or no input event being generated within a second preset time, and calls a backlight setting function to send a backlight power-off instruction to the display driving circuit. The backlight setting function is setBrightnessOff.
[0115] S302, the display driving circuit responds to the backlight power-off instruction and turns off the backlight of the display screen.
[0116] In one embodiment of the present application, when the display driving circuit sets the value of the backlight mode typealpm mode to 0, the backlight is powered off and the backlight of the display screen is turned off.
[0117] S303, the power management service notifies the layer synthesis service to control the display screen to enter the off state.
[0118] In one embodiment of the present application, the power management service calls the state switching function and sends a first state switching instruction to the layer synthesis service. The first state switching instruction instructs the layer synthesis service to set the display screen to the off mode and control the display screen to enter the off state, that is, the screen off state. The state switching function is notify screen state.
[0119] S304: The layer synthesis service responds to the first state switching instruction and sends a first power setting instruction to the display driving circuit.
[0120] In one embodiment of the present application, the first power setting instruction instructs the display driving circuit to turn off the display screen. The layer composition service calls the power setting function set power mode and sets the value of the power setting function set power mode to 0 to generate the first power setting instruction.
[0121] S305, the display driving circuit responds to the first power setting instruction and controls the display screen to enter a closed state.
[0122] In one embodiment of the present application, the display driving circuit sets the off state value of the display screen to 1, and sends the off state value to the display screen, setting the display screen to an off mode, thereby controlling the display screen to enter the off state.
[0123] S306: The layer composition service sends a first power setting instruction to the display management service.
[0124] In one embodiment of the present application, the first power setting instruction further instructs the display management service to set the display screen state to an off state.
[0125] S307: The layer composition service returns the switching result of the display screen's off mode to the power management service.
[0126] In one embodiment of the present application, the switching result of the off mode of the display screen is a finish return value, the layer synthesis service sets the finish return value to 1, and sends the finish return value to the power management service.
[0127] S308: The power management service sends an AOD view creation instruction to the AOD application.
[0128] In one embodiment of the present application, the power management service calls the screen saver control function to send an AOD view creation instruction to the AOD application, wherein the screen saver control function is Dream Controller.
[0129] S309: The AOD application creates an AOD view.
[0130] S310 , the AOD application notifies the power management service that the AOD view has been created.
[0131] S311, the power management service sends a screen saver start instruction to the AOD application.
[0132] In one embodiment of the present application, the power management service calls the screen saver start function to send a screen saver start instruction to the AOD application, wherein the screen saver start function is onDreaming Start.
[0133] S312, the AOD application sends a sleep instruction to the power management service.
[0134] In one embodiment of the present application, the AOD application calls the dozing start function start dozing to generate a dozing instruction, and sends the dozing instruction to the power management service.
[0135] S313, the power management service responds to the sleep instruction and sends a second state switching instruction to the layer composition service, wherein the second state switching instruction instructs the power management service to control the display screen to enter the sleep state.
[0136] In one embodiment of the present application, the power management service responds to the sleep instruction, calls the state switching function notifyscreenstate, and sends a second state switching instruction to the layer composition service, wherein the second state switching instruction instructs the layer composition service to control the display screen to enter the sleep state.
[0137] S314: The layer synthesis service sends a second power setting instruction to the display driving circuit.
[0138] In one embodiment of the present application, the layer composition service responds to the second state switching instruction and sends a second power setting instruction to the display driving circuit. The second power setting instruction instructs the display driving circuit to turn on the display screen. The layer composition service calls the power setting function set power mode and sets the value of the power setting function set power mode to 1 to generate the second power setting instruction.
[0139] S315, the display driving circuit responds to the second power setting instruction and controls the display screen to enter a sleep state.
[0140] In one embodiment of the present application, the display driving circuit sets the sleep state value to 1 and sends the sleep state value to the display screen, thereby controlling the display screen to enter the sleep state.
[0141] S316: The layer composition service sends a second power setting instruction to the display management service.
[0142] In one embodiment of the present application, the second power setting instruction further instructs the display management service to set the display screen state to a sleep state.
[0143] S317: The layer composition service returns the switching result of the sleep mode of the display screen to the display management service.
[0144] In one embodiment of the present application, the switching result of the sleep mode of the display screen is a finish return value, the layer synthesis service sets the finish return value to 1, and sends the finish return value to the power management service.
[0145] S318, the AOD application monitors the display screen status of the display management service.
[0146] S319, the AOD application calculates the display coordinates and backlight brightness of the AOD area.
[0147] S320, the AOD application sends the display coordinates and backlight brightness of the AOD area to the power management service.
[0148] S321, the power management service sends the display coordinates and backlight brightness of the AOD area to the display driving circuit.
[0149] S322, the display driving circuit drives the display screen to display the AOD area based on the display coordinates and the backlight brightness.
[0150] Based on the above embodiments, through the interaction of various levels of the underlying software architecture of the electronic device, the display screen state can be accurately switched, and the AOD area can be accurately controlled to move and display within a preset display range, while avoiding the loss of the AOD area and causing some AOD information to be invisible.
[0151] See also Fig. 9 As shown, it is a flowchart of controlling the display screen to turn off provided in one embodiment of the present application.
[0152] S1011, in response to the screen off instruction, the power management service sends a backlight power off instruction to the display driver circuit.
[0153] In one embodiment of the present application, when an input event of the power button of the electronic device being triggered is generated, or when the electronic device does not generate any input event within the second preset time, the power management service generates a screen-off instruction. Among them, if it is detected that the power button is pressed and released, it is determined that the power button is triggered by the user, and a corresponding input event is generated accordingly, and in response to the input event, the display screen is controlled to turn off. The second preset time can be the automatic lock time of the electronic device set by the user, for example, it can be 30 seconds, 1 minute or 2 minutes. If the electronic device does not generate an input event within the second preset time, it is determined that the electronic device has not received user operations (such as key operations, touch operations, etc.) for a long time. In order to reduce system power consumption and save electricity, a screen-off instruction is automatically generated to control the display screen to turn off.
[0154] like Figure 8 As shown, in one embodiment of the present application, the power management service calls the backlight setting function to generate a backlight power-off instruction, and sends the backlight power-off instruction to the display driving circuit.
[0155] S1012, the display driving circuit responds to the backlight power-off instruction and turns off the backlight of the display screen.
[0156] In one embodiment of the present application, the backlight of the display screen can be turned on or off by setting the value of the backlight mode typealpm mode. For example, when the value of typealpm mode is set to 1, the backlight of the display screen is turned on, and when the value of typealpm mode is set to 0, the backlight of the display screen is turned off. Therefore, the display driving circuit responds to the backlight power-off instruction, sets the value of the backlight mode typealpm mode to 0, controls the backlight of the display screen to power off, and thus turns off the backlight.
[0157] S1013: The power management service sends a first state switching instruction to the layer synthesis service.
[0158] In one embodiment of the present application, the power management service generates a first state switching instruction through a state switching function, and sends the first state switching instruction to the layer synthesis service. The state switching function is notify screenstate, and the display screen state includes but is not limited to off, on, and doze. In the off state, the backlight of the display screen is turned off, and the electronic device is in standby mode. In the on state, the display screen displays the user interface. In sleep mode, the electronic device is in a low power consumption state, and the display screen can be in all-day display mode. Therefore, the target display screen state of the first state switching instruction generated by the state switching function is off.
[0159] S1014: In response to the first state switching instruction, the layer synthesis service sends a first power setting instruction to the display driving circuit.
[0160] In one embodiment of the present application, the layer composition service generates a first power setting instruction through a power setting function, and sends the first power setting instruction to the display driving circuit. The power setting function is set power mode, and the value of the power setting function is 0 or 1. If the value of the power setting function is 0, the power setting instruction is used to instruct to turn off the power supply of the display screen and control the display screen to enter the off state; if the value of the power setting function is 1, the power setting instruction is used to instruct to turn on the power supply of the display screen and control the display screen to enter the on state.
[0161] S1015, in response to the first power setting instruction, the display driving circuit sends a shutdown state value to the display screen to control the display screen to enter a shutdown state.
[0162] In one embodiment of the present application, the off state of the display screen can be represented by setting an off state value, the off state value of the display screen is 0 or 1, if the off state value of the display screen is 1, the display driving circuit instructs the display screen to enter the off state, if the off state value of the display screen is 0, the display driving circuit instructs the display screen to enter the on state. The display driving circuit sets the off state value to 1 and sends the off state value 1 to the display screen, thereby controlling the display screen to enter the off state.
[0163] S1016: The layer composition service returns the setting result of the closed state to the power management service.
[0164] In one embodiment of the present application, the setting result of the display screen state is represented by a finish return value, and the finish return value is 0 or 1. If the finish return value is 0, it is used to indicate that the display screen state has not been set, and if the finish return value is 1, it is used to indicate that the display screen state setting is completed. After sending the first power setting instruction to the display driving circuit, the layer synthesis service sets the finish return value to 1, and returns the finish return value 1 to the power management service to notify that the display screen has entered the off state.
[0165] Based on the above embodiments, through the interaction of various levels of the underlying software architecture of the electronic device, the display screen can be quickly controlled to enter the screen-off state, thereby improving the state switching efficiency of the display screen.
[0166] See also Fig.10 As shown, it is a flowchart of controlling the display screen to enter a sleep state provided by an embodiment of the present application.
[0167] S1021, in response to the sleep instruction, the power management service sends a second state switching instruction to the layer composition service.
[0168] In one embodiment of the present application, after the AOD application creates the AOD view, it notifies the power management service. After receiving the notification from the AOD application, the power management service instructs the AOD application to control the display screen to enter doze mode through the screen saver start function (onDreaming Start). The AOD application can generate a doze instruction through the doze start function (start dozing) to instruct the power management service to control the display screen to enter doze mode.
[0169] In one embodiment of the present application, in response to the sleep instruction, the power management service generates a second state switching instruction through the state switching function notifyscreenstate, and sends the second state switching instruction to the layer synthesis service, and the target display screen state of the state switching instruction is doze, instructing the layer synthesis service to switch the display screen to the sleep state. In the sleep state, the electronic device is in a low power consumption or low power consumption state, and the display screen can be in a full-day display mode.
[0170] S1022: In response to the second state switching instruction, the layer synthesis service sends a second power setting instruction to the display driving circuit.
[0171] In one embodiment of the present application, the layer composition service generates a second power setting instruction through a power setting function set power mode, and sends the second power setting instruction to the display driving circuit. Wherein, the value of the power mode corresponding to the power setting function is 1, so that the second power setting instruction instructs to turn on the power supply of the display screen and control the display screen to enter a dormant state.
[0172] S1023, in response to the second power setting instruction, the display driving circuit sends a doze state value to the display screen to control the display screen to enter a sleep state.
[0173] In one embodiment of the present application, the doze mode of the display screen can be represented by a doze state value, and the doze state value of the display screen is 0 or 1. If the doze state value of the display screen is 1, the display driving circuit is used to indicate that the display screen enters a doze state. If the doze state value of the display screen is 0, the display driving circuit is used to indicate that the display screen is not in a doze state. The display driving circuit sets the doze state value to 1 and sends the doze state value 1 to the display screen, thereby controlling the display screen to enter a doze state. Among them, the doze state value can be modified accordingly by setting the value of the setDozeModeEnabled function. For example, setting the value of the setDozeModeEnabled function to 1 can achieve setting the doze state value to 1.
[0174] S1024, the layer composition service returns the result of setting the sleep state to the power management service. The implementation method of S1024 is the same as S1016, and will not be repeated here.
[0175] Based on the above embodiments, through the interaction of various levels of the underlying software architecture of the electronic device, the display screen can be quickly controlled to enter the sleep state, thereby improving the state switching efficiency of the display screen.
[0176] See also Fig.11 As shown, it is a flowchart of controlling the AOD area to move and display within a preset display range provided by an embodiment of the present application.
[0177] S1041, determining whether the timing time of the timer for the AOD area mobile display reaches a first preset time.
[0178] In one embodiment of the present application, a timer for the mobile display of the AOD area is set, and the timing starts from when the display screen is turned off. The timer performs cyclic timing, and after the timing time reaches the first preset time, the timing is reset and restarted. When it is determined that the timing time of the timer for the mobile display of the AOD area reaches the first preset time, the AOD area is moved and displayed.
[0179] S1042: The AOD application obtains the display coordinates of the AOD area.
[0180] In one embodiment of the present application, before moving, the AOD application obtains the initial display coordinates of the AOD area and sends the initial display coordinates to the power management service. If the timing time of the timer reaches the first preset time, the AOD application obtains the display coordinates of the AOD area after the first movement, and sends the display coordinates after the first movement to the power management service. If the timing time of the timer reaches the first preset time again, the AOD application obtains the display coordinates of the AOD area after the second movement, and passes the display coordinates after the second movement to the power management service.
[0181] S1043: The power management service obtains the display coordinates of the AOD area.
[0182] In an embodiment of the present application, the power management service receives the display coordinates of the AOD area transmitted by the AOD application, and sends the display coordinates to the display driving circuit.
[0183] S1044: The display driving circuit drives the display screen to display the AOD area based on the display coordinates.
[0184] In one embodiment of the present application, the display driving circuit drives the display screen to determine the display screen pixel points corresponding to the AOD area based on the display coordinates, light up the display screen pixel points corresponding to the AOD area, form the corresponding AOD view content, and thus display the AOD area.
[0185] Based on the above embodiment, the underlying software architecture of the electronic device calculates and sends the display coordinates of the AOD area at a first preset time interval, and can accurately control the AOD area to move and display within a preset display range.
[0186] See also Fig.12 FIG. 1 is a flow chart of a display control method provided by another embodiment of the present application. The method is applied in an electronic device, and the display control method includes:
[0187] S401, respond to the screen-off instruction, control the display screen to turn off, and create an AOD view.
[0188] S402, controlling the display screen to enter a sleep state.
[0189] S403, obtaining the initial display coordinates of the AOD area corresponding to the AOD view and the display coordinates after each movement.
[0190] The specific implementation of S401-S403 is the same as that of S101-S103, and will not be repeated here.
[0191] S404, obtaining the backlight brightness of the AOD area.
[0192] In one embodiment of the present application, the AOD application communicates with the ambient light sensor of the electronic device, monitors the ambient light brightness sensed by the ambient light sensor, and determines the backlight brightness of the AOD area based on the ambient light brightness. In one embodiment of the present application, there is a corresponding relationship between the ambient light brightness, the backlight brightness level of the AOD area, and the backlight brightness of the AOD area. Before displaying the AOD area, the AOD application obtains the ambient light brightness, determines the backlight brightness level of the AOD area corresponding to the ambient light brightness, and determines the backlight brightness of the AOD area based on the backlight brightness level of the AOD area. Among them, the backlight brightness level of the AOD area includes level 1, level 3 and level 6, corresponding to low brightness, medium brightness and high brightness, respectively. The ambient light brightness range corresponding to level 1 backlight brightness is less than 500 lux (lux), the ambient light brightness range corresponding to level 3 backlight brightness is greater than or equal to 500 lux and less than 10000 lux, and the ambient light brightness range corresponding to level 6 backlight brightness is greater than or equal to 10000 lux. The backlight brightness corresponding to level 1 backlight brightness is 200 nit (nits), the backlight brightness corresponding to level 3 backlight brightness is 500 nit, and the backlight brightness corresponding to level 6 backlight brightness is 1000 nit.
[0193] S405 , based on the initial display coordinates of the AOD area, the display coordinates after each movement, and the backlight brightness of the AOD area, the AOD area is controlled to move and display within a preset display range.
[0194] In one embodiment of the present application, each time the AOD area is moved and displayed based on the display coordinates, the display screen is controlled to turn on the backlight of the AOD area and set the backlight brightness of the AOD area so that the AOD area is visible. The method for setting the backlight brightness may be a pulse width modulation method.
[0195] Based on the above embodiments, the backlight brightness of the AOD area can be set based on the ambient light brightness, so that the AOD area is visible and the brightness matches the ambient light brightness, which facilitates users to browse information in the AOD area.
[0196] See also Fig.13 As shown, it is a flowchart of the lower coordinate provided by an embodiment of the present application.
[0197] S501, obtaining the time of the timer TimeTicker.
[0198] S502: The AOD application sets the display coordinates of the AOD area.
[0199] S503: The power management service sets the display coordinates of the AOD area.
[0200] S504: The display screen sets the display coordinates of the AOD area.
[0201] S505, determining whether the display screen successfully sets the display coordinates of the AOD area. If the display screen successfully sets the display coordinates of the AOD area, the process returns to S501; if the display screen fails to successfully set the display coordinates of the AOD area, the process returns to S506.
[0202] In one embodiment of the present application, if the setting status value of the display coordinates of the received AOD area is 0, it is determined that the display screen has successfully set the display coordinates of the AOD area; if the setting status value of the display coordinates of the received AOD area is 1, it is determined that the display screen has not successfully set the display coordinates of the AOD area.
[0203] S506, whether the number of times the display screen fails to successfully set the display coordinates of the AOD area reaches a preset number, for example, the preset number can be three times, and is not limited to this in actual applications. If the number of times the display screen fails to successfully set the display coordinates of the AOD area reaches the preset number, the process ends; if the number of times the display screen fails to successfully set the display coordinates of the AOD area does not reach the preset number, the process returns to S302, and the AOD application resets the display coordinates of the AOD area.
[0204] Based on the above embodiment, when the timing time of the timer reaches the preset time for the interval display of the AOD area, the AOD display coordinates can be sent from the application layer to the framework layer and then to the hardware layer to ensure that the AOD area can be displayed in time. In addition, by accumulating the number of failures in setting the display coordinates of the AOD area, a prompt message can be output when the number of failures is too many to prompt the user that the AOD area display is abnormal.
[0205] See also Fig.14 , which is a schematic diagram of the interaction of various layers of the software architecture of an electronic device provided in another embodiment of the present application.
[0206] The input service detects input events and determines that the power button has been triggered; the display screen turns off; the power management service sends a screen saver startup instruction to the AOD application; the AOD application creates an AOD view; the power management service instructs the AOD application to initialize the sleep mode setting; the AOD application sends a sleep instruction to the power management service; the power management service sends a sleep switching instruction to the layer synthesis service; the layer synthesis service switches the display screen to sleep mode; the layer synthesis service sends a power mode setting instruction to the display management service; the display management service switches the display screen state to sleep mode; the AOD application determines that the sleep state switch is successful; AOD is used to calculate the display coordinates of the AOD area after the next move, and sends the backlight brightness to the power management service; the power management service sends the display coordinates and backlight to the display screen; the backlight of the display screen is set, the display screen displays the AOD area, and the display screen enters the AOD mode; when the timer reaches 1 minute, the display coordinates of the AOD area after the next move are calculated; the AOD application sends the display coordinates of the AOD area after the next move to the power management service; the power management service sends the next display coordinates and backlight to the display screen; the display screen sets the backlight and the next display coordinates; the display screen displays the AOD area. When the timer reaches 1 minute, the display coordinates of the AOD area after the next movement are calculated, so as to cyclically control the AOD area to move and display within the preset display range of the display screen.
[0207] In view of the problem that the AOD area is easily moved out of the displayable area in the all-day display mode of the display screen using Ramless IC, the embodiment of the present application moves the display area synchronously with the AOD view, which can solve the current anti-burn-in problem. In addition, the embodiment of the present application establishes a good communication mechanism between the application layer and the bottom layer to ensure that the framework layer can correctly send instructions to the display screen, and at the same time, the display screen can also respond and move the displayable area in time. That is, when the AOD application sends the backlight, the next coordinate position is transmitted to the display screen through the power management service. The display screen first sets the backlight, and then moves the displayable area according to the next coordinate.
[0208] In the embodiment of the present application, after pressing the power button, the display goes off, the AOD application creates an AOD view, notifies the power management service to switch to the DOZE state, the power management service notifies the surfaceflinger to switch to the DOZE state, and the surfaceflinger controls the display driver circuit and the display to switch to DOZE mode. The AOD application calculates the next display area of the AOD area, calculates the backlight brightness according to the ambient light brightness, and then transmits it to the power management service (the initial display position of the AOD area is stored in advance by the display driver circuit, so there is no need to transmit the first display position), and the power management service sends the backlight instruction and the position of the next display area to the display driver circuit. Periodically execute, send the backlight instruction and the position of the next display area once a minute. Existing ramless ICs can only use VDO mode, and have high power consumption. Existing ram ICs need to send instructions to control the movement of the AOD area, do not need to send coordinates, but need to periodically wake up the AOD application.
[0209] The present application also provides an electronic device 100. Fig.15 As shown, the electronic device 100 can be a mobile phone, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a personal digital assistant (PDA), an augmented reality (AR) device, a virtual reality (VR) device, an artificial intelligence (AI) device, a wearable device, a vehicle-mounted device, a smart home device and / or a smart city device. The embodiments of the present application do not impose any special restrictions on the specific type of the electronic device 100.
[0210] The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a Universal Serial Bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a Subscriber Identification Module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light 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.
[0211] It is to be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or separate some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0212] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0213] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.
[0214] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0215] In some embodiments, the processor 110 may include one or more interfaces. The interface 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.
[0216] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple groups of I2C buses. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces. For example: the processor 110 may be coupled to the touch sensor 180K through the I2C interface, so that the processor 110 communicates with the touch sensor 180K through the I2C bus interface to realize the touch function of the electronic device 100.
[0217] The I2S interface can be used for audio communication. In some embodiments, the processor 110 can include multiple I2S buses. The processor 110 can be coupled to the audio module 170 via the I2S bus to achieve communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 via the I2S interface to achieve the function of answering a call through a Bluetooth headset.
[0218] The PCM interface can also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled via a PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 via the PCM interface to realize the function of answering calls via a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
[0219] The UART interface is a universal serial data bus for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is generally used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 through the UART interface to implement the function of playing music through a Bluetooth headset.
[0220] The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc. In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to realize the shooting function of the electronic device 100. The processor 110 and the display screen 194 communicate via the DSI interface to realize the display function of the electronic device 100.
[0221] The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.
[0222] The USB interface 130 is an interface that complies with the USB standard specification, and can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transfer data between the electronic device 100 and a peripheral device. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other electronic devices 100, such as AR devices, etc.
[0223] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0224] The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive 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 may also power the electronic device 100 through the power management module 141.
[0225] The power management module 141 is used to connect 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, and supplies power to 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 number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.
[0226] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0227] 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 a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0228] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
[0229] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194. In some embodiments, the modem processor may be an independent device. In 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.
[0230] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0231] In some embodiments, 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 (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, and / or IR technology. The GNSS may include a Global Positioning System (GPS), a Global Navigation Satellite System (GLONASS), a Beidou Navigation Satellite System (BDS), a Quasi-Zenith Satellite System (QZSS) and / or a Satellite Based Augmentation System (SBAS).
[0232] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for display control, connecting the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
[0233] The display screen 194 is used to display images, videos, etc. 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 (AMOLED), a flexible light-emitting diode (FLED), Miniled, Microled, Micro-OLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
[0234] The electronic device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.
[0235] ISP is used to process the data fed back by camera 193. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to ISP for processing and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, ISP can be set in camera 193.
[0236] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal oxide semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
[0237] The digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the electronic device 100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
[0238] The video codec is used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. In this way, the electronic device 100 can play or record videos in multiple coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
[0239] NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can also continuously self-learn. Through NPU, applications such as intelligent cognition of the electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, etc.
[0240] The internal memory 121 may include one or more random access memories (RAM) and one or more non-volatile memories (NVM).
[0241] Random access memory may include static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM, for example, the fifth generation DDR SDRAM is generally referred to as DDR5 SDRAM), etc.;
[0242] Non-volatile memory may include disk storage devices and flash memory.
[0243] Flash memory can be divided into NOR FLASH, NAND FLASH, 3D NAND FLASH, etc. according to the operating principle. It can be divided into single-level cell (SLC), multi-level cell (MLC), triple-level cell (TLC), quad-level cell (QLC), etc. according to the storage unit potential level. It can be divided into universal flash storage (UFS), embedded Multi Media Card (eMMC), etc. according to the storage specification.
[0244] The random access memory can be directly read and written by the processor 110, and can be used to store executable programs (such as machine instructions) of the operating system or other running programs, and can also be used to store user and application data.
[0245] The non-volatile memory may also store executable programs and user and application data, etc., and may be loaded into the random access memory in advance for direct reading and writing by the processor 110 .
[0246] The external memory interface 120 can be used to connect to an external non-volatile memory to expand the storage capacity of the electronic device 100. The external non-volatile memory communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music and videos are stored in the external non-volatile memory.
[0247] The internal memory 121 or the external memory interface 120 is used to store one or more computer programs. The one or more computer programs are configured to be executed by the processor 110. The one or more computer programs include multiple instructions. When the multiple instructions are executed by the processor 110, the screen display detection method executed on the electronic device 100 in the above embodiment can be implemented to implement the screen display detection function of the electronic device 100.
[0248] The electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0249] 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 signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110.
[0250] The speaker 170A, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The electronic device 100 can listen to music or listen to a hands-free call through the speaker 170A.
[0251] The receiver 170B, also called a "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 100 receives a call or voice message, the voice can be received by placing the receiver 170B close to the human ear.
[0252] Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to microphone 170C to input the sound signal into microphone 170C. The electronic device 100 can be provided with at least one microphone 170C. In other embodiments, the electronic device 100 can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify the sound source, realize directional recording function, etc.
[0253] The earphone interface 170D is used to connect a wired earphone and can be a USB interface 130 or a 3.5 mm Open Mobile Terminal Platform (OMTP) standard interface or a Cellular Telecommunications Industry Association of the USA (CTIA) standard interface.
[0254] The key 190 includes a power key, a volume key, etc. The key 190 may be a mechanical key or a touch key. The electronic device 100 may receive key input and generate key signal input related to user settings and function control of the electronic device 100.
[0255] Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 194, motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
[0256] Indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, messages, missed calls, notifications, etc.
[0257] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to 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 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the electronic device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100. An embodiment of the present application also provides a computer storage medium, in which computer instructions are stored. When the computer instructions are executed on the electronic device 100, the electronic device 100 executes the above-mentioned related method steps to implement the display control method in the above-mentioned embodiment.
[0258] The embodiment of the present application also provides a computer program product. When the computer program product is run on a computer, the computer is enabled to execute the above-mentioned related steps to implement the display control method in the above-mentioned embodiment.
[0259] In addition, an embodiment of the present application also provides a device, which can specifically be a chip, component or module, and the device may include a connected processor and memory; wherein the memory is used to store computer execution instructions, and when the device is running, the processor can execute the computer execution instructions stored in the memory so that the chip executes the display control method in the above-mentioned method embodiments.
[0260] Among them, the electronic device, computer storage medium, computer program product or chip provided in this embodiment is used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above and will not be repeated here.
[0261] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned 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.
[0262] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0263] The unit described as a separate component may or may not be physically separated, and the component shown as a unit may be one physical unit or multiple physical units, that is, it may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiment.
[0264] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0265] If the integrated unit is implemented in the form of 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 solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of each embodiment method of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program code.
[0266] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present application and are not intended to limit it. Although the present application has been described in detail with reference to the preferred embodiments, a person of ordinary skill in the art should understand that the technical solution of the present application may be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present application.
Claims
1. A display control method, applied to an electronic device, characterized in that: The method comprises: In response to the screen-off instruction, the display screen of the electronic device is controlled to be off, and an all-day display AOD view is created; Controlling the display screen to enter a dormant state; Taking the vertex of the display screen as the origin, establishing a rectangular coordinate system based on the horizontal edge and the vertical edge of the display screen, and obtaining the initial display coordinates of the AOD area corresponding to the AOD view in the rectangular coordinate system and the display coordinates after each movement; Based on the initial display coordinates and the display coordinates after each movement, the AOD area is controlled to move and display within a preset display range of the display screen, including: calculating the display coordinates of the AOD area after each movement every first preset time, and determining the position of the AOD area after each movement based on the display coordinates after each movement, wherein the preset display range is a display range corresponding to an image resolution supported by the display screen in the AOD mode, the resolution of the preset display range is less than or equal to the maximum image resolution supported by the display screen in the AOD mode, and the maximum image resolution is less than the resolution of the display screen.
2. The display control method according to claim 1, characterized in that: The display coordinates are pixel coordinates, and obtaining the display coordinates of the AOD area corresponding to the AOD view after each movement includes: Preset the movement times and movement direction of the AOD area in a movement cycle; The number of pixels of the AOD area that moves each time is determined according to the number of pixels of the preset display range in the moving direction and the number of movements.
3. The display control method according to claim 2, characterized in that: The obtaining of the display coordinates of the AOD area corresponding to the AOD view after each movement also includes: The display coordinates of the AOD area after each movement are determined based on the number of pixels of the AOD area each time it moves and the display coordinates of the AOD area before the movement.
4. The display control method according to claim 1, wherein: The AOD area is a rectangular area, the horizontal pixel number of the AOD area is less than or equal to the horizontal pixel number of the preset display range, and the vertical pixel number of the AOD area is less than or equal to a preset ratio of the vertical pixel number of the preset display range.
5. The display control method according to claim 4, characterized in that: The obtaining of initial display coordinates of the AOD area corresponding to the AOD view in the rectangular coordinate system includes: The coordinates of the middle point of the upper edge of the AOD region in the rectangular coordinate system are determined, and the coordinates of the middle point when the AOD region is at an initial position are determined as the initial display coordinates of the AOD region.
6. The display control method according to claim 1, characterized in that: The controlling the AOD area to move and display within a preset display range of the display screen based on the initial display coordinates and the display coordinates after each movement also includes: Determining a size of the AOD area based on a resolution of the AOD area, determining an initial position of the AOD area based on the initial display coordinates, and drawing content of the AOD view based on display information of the AOD view to obtain AOD drawing data; Rendering the AOD drawing data to the display screen, and driving the display screen by a display driving circuit of the electronic device to display the AOD area based on the AOD drawing data; The AOD drawing data after each movement is determined based on the position of the AOD area after each movement, and the AOD drawing data after each movement is rendered to the display screen. The display screen is driven by the display driving circuit to move and display the AOD area based on the AOD drawing data after each movement.
7. The display control method according to claim 1, characterized in that: The controlling the AOD area to be displayed in a mobile manner within a preset display range of the display screen includes: Determine that the timing time of the timer for the AOD area mobile display reaches a first preset time; The AOD application of the electronic device obtains the display coordinates of the AOD area; The power management service of the electronic device obtains the display coordinates of the AOD area; The display driving circuit of the electronic device drives the display screen to display the AOD area based on the display coordinates.
8. The display control method according to claim 7, characterized in that: The display driving circuit of the electronic device drives the display screen to display the AOD area based on the display coordinates, including: The display driving circuit drives the display screen to determine the display screen pixels corresponding to the AOD area based on the display coordinates, and lights up the display screen pixels corresponding to the AOD area, so that the lit display screen pixels form the AOD area.
9. The display control method according to claim 1, characterized in that: The method comprises: When an input event of triggering the power button of the electronic device occurs, or when the electronic device does not generate any input event within a second preset time, the screen-off instruction is generated.
10. The display control method according to claim 9, characterized in that: The step of responding to the screen-off instruction and controlling the display screen of the electronic device to turn off the screen comprises: In response to the screen-off instruction, the power management service of the electronic device sends a backlight power-off instruction to the display driving circuit of the electronic device; The display driving circuit responds to the backlight power-off instruction to turn off the backlight of the display screen; The power management service sends a first state switching instruction to a layer synthesis service of the electronic device; In response to the first state switching instruction, the layer synthesis service sends a first power setting instruction to the display driving circuit; In response to the first power setting instruction, the display driving circuit sends a shutdown state value to the display screen to control the display screen to enter a shutdown state; The layer composition service returns the setting result of the display screen state to the power management service.
11. The display control method according to claim 1, characterized in that: The creating of the AOD view includes: The display information of the AOD area is acquired from an application of the electronic device, and the AOD view is created based on the acquired display information.
12. The display control method according to claim 1, characterized in that: The controlling the display screen to enter a dormant state comprises: In response to the sleep instruction, the power management service of the electronic device sends a second state switching instruction to the layer synthesis service of the electronic device; In response to the second state switching instruction, the layer synthesis service sends a second power setting instruction to the display driving circuit of the electronic device; In response to the second power setting instruction, the display driving circuit sends a sleep state value to the display screen to control the display screen to enter a sleep state; The layer composition service returns the setting result of the sleep state to the power management service.
13. The display control method according to claim 1, characterized in that: The method further comprises: The backlight brightness of the AOD area is obtained.
14. The display control method according to claim 13, characterized in that: The controlling the AOD area to move and display within a preset display range of the display screen based on the initial display coordinates and the display coordinates after each movement includes: Based on the initial display coordinates, the display coordinates after each movement, and the backlight brightness of the AOD area, the AOD area is controlled to move and display within the preset display range.
15. An electronic device, characterized in that: The electronic device comprises a memory and a processor: Wherein, the memory is used to store program instructions; The processor is used to read and execute the program instructions stored in the memory. When the program instructions are executed by the processor, the electronic device executes the display control method according to any one of claims 1 to 14.
16. A chip coupled to a memory in an electronic device, characterized in that: The chip is used to control the electronic device to execute the display control method according to any one of claims 1 to 14.
17. A computer storage medium, characterized in that The computer storage medium stores program instructions, and when the program instructions are executed on an electronic device, the electronic device executes the display control method according to any one of claims 1 to 14.
