CN117707449A - Display control method and related equipment - Google Patents

Display control method and related equipment Download PDF

Info

Publication number
CN117707449A
CN117707449A CN202310576502.8A CN202310576502A CN117707449A CN 117707449 A CN117707449 A CN 117707449A CN 202310576502 A CN202310576502 A CN 202310576502A CN 117707449 A CN117707449 A CN 117707449A
Authority
CN
China
Prior art keywords
display
aod
display screen
coordinates
screen
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310576502.8A
Other languages
Chinese (zh)
Inventor
武玉瑶
张斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202310576502.8A priority Critical patent/CN117707449A/en
Publication of CN117707449A publication Critical patent/CN117707449A/en
Pending legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)

Abstract

The application provides a display control method and related equipment, wherein the method comprises the following steps: responding to a screen-off instruction, controlling a display screen of the electronic equipment to be screen-off, and creating an AOD view displayed all the day; controlling the display screen to enter a dormant state; acquiring initial display coordinates of an AOD region corresponding to the AOD view and display coordinates after each movement; and controlling the AOD area to carry out mobile display in a preset display range of the display screen based on the initial display coordinates and the display coordinates after each movement, wherein the preset display range is a display range corresponding to the image resolution supported by the display screen in the AOD mode. According to the embodiment of the application, the full-day display area can be controlled to be displayed in the moving mode in the display range corresponding to the image resolution supported by the display screen, so that the full-day display area is prevented from exceeding the designated display range, and the full-day display information is ensured to be displayed completely.

Description

Display control method and related equipment
Technical Field
The present disclosure relates to the field of display technologies, and in particular, to a display control method and related devices.
Background
When the display screen of the intelligent terminal such as the intelligent mobile phone, the tablet personal computer and the like is in a screen-off state, the display screen can enter an all-day display (AOD, always On Display) mode, so that information such as date, time and notification can be continuously displayed. In the whole-day display mode, in order to prevent screen burn, the whole-day display area needs to be moved on the display screen to perform dynamic display, however, the display screen of the intelligent terminal device generally adopts a display driving circuit (Ramless Integrated Circuit (IC)) without an independent memory, and because the display driving circuit without an independent memory does not set an independent display memory, the resolution of the image supported for display is smaller, and the whole-day display area easily exceeds the designated display range, so that part of information cannot be continuously displayed, thereby influencing the use experience of users.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a display control method and related apparatus, which solve the problem that the whole-day display area of a display screen using a display driving circuit without an independent memory is easy to exceed the designated display range, and thus part of whole-day display information cannot be continuously displayed.
In a first aspect, the present application provides a display control method, applied to an electronic device, where the method includes: responding to a screen-off instruction, controlling a display screen of the electronic equipment to be screen-off, and creating an AOD view displayed all the day; controlling the display screen to enter a dormant state; acquiring initial display coordinates of an AOD region corresponding to the AOD view and display coordinates after each movement; and controlling the AOD area to carry out mobile display in a preset display range of the display screen based on the initial display coordinates and the display coordinates after each movement, wherein the preset display range is a display range corresponding to the image resolution supported by the display screen in an AOD mode.
Based on the technical scheme, the whole-day display area can be controlled to be displayed in a moving mode in a display range corresponding to the image resolution supported by the display screen, so that the whole-day display area is ensured not to exceed the designated display range in the moving display process, and the whole-day display information is ensured to be displayed completely.
In a possible implementation manner, the display coordinates are pixel coordinates, and the obtaining the display coordinates of the AOD region corresponding to the AOD view after each movement includes: presetting the moving times and the moving direction of the AOD area in a moving period; and determining the number of the pixels of the AOD area moving each time according to the number of the pixels of the preset display range in the moving direction and the moving times.
Based on the technical scheme, the moving times and the moving direction of the AOD area can be preset so as to conveniently determine the number of pixel points of the AOD area moving each time, and further accurately determine the display coordinates of the AOD area, so that the AOD area cannot exceed a designated display range in the moving display process.
In a possible implementation manner, the obtaining the display coordinates of the AOD region corresponding to the AOD view after each movement further includes: and determining the display coordinates of the AOD region after each movement based on the number of pixel points of the AOD region moved each time and the display coordinates of the AOD region before the movement.
Based on the above technical scheme, the display position of the AOD region can be accurately determined by determining the display coordinates of the AOD region after each movement.
In one possible implementation manner, the AOD area is a rectangular area, the number of horizontal pixels of the AOD area is smaller than or equal to the number of horizontal pixels of the display screen, and the number of vertical pixels of the AOD area is smaller than or equal to a preset proportion of the number of vertical pixels of the display screen.
Based on the technical scheme, the AOD region can be ensured to be movably displayed in the display range of the display screen by setting the size of the AOD region, and the information of the AOD region can be ensured to be displayed completely without exceeding the preset display range.
In one possible implementation manner, the obtaining the initial display coordinates of the AOD region corresponding to the AOD view includes: establishing a rectangular coordinate system by taking the upper left corner of the AOD area as an original point, the transverse edge as an X axis and the longitudinal edge as a Y axis; and 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 at the initial position as the initial display coordinates of the AOD area.
Based on the technical scheme, the initial display coordinates of the AOD area can be determined by setting the rectangular coordinate system, so that the initial display position of the AOD area is determined based on the initial display coordinates, and the AOD area is controlled to start moving display from the initial display position.
In a possible implementation manner, the controlling the AOD area to perform mobile display within a preset display range of the display screen based on the initial display coordinate and the display coordinate after each movement includes: determining the size of the AOD region based on the resolution of the AOD region, determining the initial position of the AOD region 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 to display the AOD region based on the AOD drawing data by a display driving circuit of the electronic equipment; calculating display coordinates of the AOD region after each movement every first preset time, and determining the position of the AOD region after each movement based on the display coordinates after each movement; and determining 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 to move and display the AOD area based on the AOD drawing data after each movement by the display driving circuit.
Based on the above technical scheme, the drawing data of the AOD region can be determined through the display content and the display coordinates of the AOD region, so that the AOD region is accurately controlled to perform mobile display.
In one possible implementation manner, the controlling the AOD area to perform mobile display within a preset display range of the display screen includes: determining that the timing time of the timer of the AOD area mobile display reaches a first preset time; the AOD application of the electronic equipment acquires display coordinates of the AOD region; the power management service of the electronic equipment acquires display coordinates of the AOD region; and the display driving circuit of the electronic equipment drives the display screen to display the AOD region based on the display coordinates.
Based on the technical scheme, the first preset time can be timed through the timer, and when the time of each time reaches the first preset time, the software architecture of the system based on the electronic equipment issues the display coordinates of the AOD area layer by layer so as to improve the efficiency of mobile display of the AOD area.
In one possible implementation, the display driving circuit drives the display screen to display the AOD region based on the display coordinates, including: and the display driving circuit drives the display screen to determine the display screen pixel points corresponding to the AOD region based on the display coordinates, and lightens the display screen pixel points corresponding to the AOD region, so that the lightened display screen pixel points form the AOD region.
Based on the technical scheme, the display screen pixel points of the AOD area can be lightened through the AOD drawing data, so that the display screen accurately displays the AOD area at the appointed display position.
In one possible implementation, the method includes: and generating the screen-off instruction when an input event that the power key of the electronic equipment is triggered is generated or when the electronic equipment does not generate any input event within a second preset time.
Based on the technical scheme, the display screen can be controlled to be turned off in time by generating the screen-off instruction, so that the system power consumption is reduced, and the electric energy is saved.
In one possible implementation manner, the responding to the screen-off instruction controls the screen-off of the display screen of the electronic device, including: responding to the screen-off instruction, and sending a backlight power-off instruction to a display driving circuit by a power management service of the electronic equipment; the display driving circuit responds to the backlight powering-down instruction and turns off the backlight of the display screen; the power management service sends a first state switching instruction to the layer composition service; responding to the first state switching instruction, and sending a first power supply setting instruction to the display driving circuit by the layer combination service; responding to the first power supply setting instruction, the display driving circuit sends a closing state value to the display screen, and controls the display screen to enter a closing state; and the layer composition service returns the setting result of the display screen state to the power management service.
Based on the technical scheme, the display screen can be controlled to be turned off based on the software architecture of the electronic equipment system, so that the display screen can be ensured to be turned off normally.
In one possible implementation, the creating the AOD view includes: display information of the AOD area is acquired from an application program of the electronic device, and the AOD view is created based on the acquired display information.
Based on the technical scheme, 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 which the user needs to know, and the user experience is effectively improved.
In one possible implementation manner, the controlling the display screen to enter the sleep state includes: responding to the dormancy instruction, the power management service sends a second state switching instruction to the layer composition service; responding to the second state switching instruction, and sending a second power supply setting instruction to a display driving circuit by the layer combination service; responding to the second power supply setting instruction, the display driving circuit sends a dormant state value to the display screen and controls the display screen to enter a dormant state; and the layer composition service returns the setting result of the dormant state to the power management service.
Based on the technical scheme, the display screen can be controlled to enter the dormant state based on the software architecture of the electronic equipment system, so that the display screen can be ensured to enter the dormant state normally.
In one possible implementation manner, the preset display range is a display range corresponding to a maximum image resolution of the display screen supported for display in the AOD mode, where the maximum image resolution is smaller than the resolution of the display screen.
Based on the technical scheme, the preset display range can be set to be the display range corresponding to the maximum image resolution of the display screen supported to be displayed in the AOD mode, so that the AOD information can be displayed completely when the AOD area is used for mobile display.
In one possible implementation, the method further includes: and acquiring the backlight brightness of the AOD area.
Based on the above technical solution, the backlight of the AOD area can be set by obtaining the backlight brightness of the AOD area, so that the AOD area is visible.
In a possible implementation manner, the controlling the AOD area to perform mobile display within a preset display range of the display screen based on the initial display coordinate and the display coordinate after each movement includes: and controlling the AOD area to perform mobile display in the preset display range based on the initial display coordinates, the display coordinates after each movement and the backlight brightness of the AOD area.
Based on the above technical solution, the backlight of the AOD region can be set by the obtained backlight luminance so that the AOD region is visible.
In a second aspect, the present application provides an electronic device comprising a memory and a processor: wherein the memory is used for storing program instructions; the processor is configured to read and execute the program instructions stored in the memory, and when the program instructions are executed by the processor, cause the electronic device to execute the display control method described above.
In a third aspect, the present application provides a chip coupled to a memory in an electronic device, the chip configured to control the electronic device to perform the display control method described above.
In a fourth aspect, the present application provides a computer storage medium storing program instructions that, when executed on an electronic device, cause the electronic device to perform the above-described display control method.
In addition, the technical effects of the second aspect to the fourth aspect may be referred to in the description related to the method designed in the method section, and are not repeated here.
Drawings
Fig. 1 is a schematic diagram of an AOD region provided in an embodiment of the present application.
Fig. 2 is another schematic diagram of an AOD region provided in an embodiment of the present application.
Fig. 3 is a software architecture diagram of an electronic device according to an embodiment of the present application.
Fig. 4 is a flowchart of a display control method according to an embodiment of the present application.
Fig. 5 is another schematic diagram of an AOD region provided in an embodiment of the present application.
Fig. 6 is a schematic diagram of a movement state of an AOD area according to an embodiment of the present application.
Fig. 7 is a flowchart of a display control method according to another embodiment of the present application.
Fig. 8 is a schematic diagram of interaction of layers of a software architecture of an electronic device according to an embodiment of the present application.
Fig. 9 is a flowchart for controlling the screen-off of the display screen according to an embodiment of the present application.
Fig. 10 is a flowchart of controlling a display screen to enter a sleep state according to an embodiment of the present application.
FIG. 11 is a flow chart for controlling the mobile display of an AOD view within a preset display range according to one embodiment of the present application.
Fig. 12 is a flowchart of a display control method according to another embodiment of the present application.
Fig. 13 is a flow chart of lower coordinates provided in an embodiment of the present application.
Fig. 14 is a schematic view of interaction of layers of a software architecture of an electronic device according to another embodiment of the present application.
Fig. 15 is a hardware architecture diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The terms "first" and "second" in the embodiments of the present application are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature. In the description of embodiments of the present application, words such as "exemplary" or "such as" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "for example" should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used in the description of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. It should be understood that, "/" means or, unless otherwise indicated herein. For example, A/B may represent A or B. The term "and/or" in this application is merely an association relationship describing an association object, and means that three relationships may exist. For example, a and/or B may represent: a exists alone, A and B exist simultaneously, and B exists alone. "at least one" means one or more. "plurality" means two or more than two. For example, at least one of a, b or c may represent: seven cases of a, b, c, a and b, a and c, b and c, a, b and c. The following embodiments and features of the embodiments may be combined with each other without conflict.
For ease of understanding, a description of some of the concepts related to the embodiments of the present application are given by way of example for reference.
Ram IC: the Ram IC is a display driving circuit provided with an independent display memory for driving the display screen to display images, and comprises a compensation memory and a display memory, wherein the compensation memory is used for storing compensation data of uneven display of pictures, and the display memory is used for temporarily storing image data to be displayed.
Ramless IC: the Ramless IC is a display driving circuit without an independent display memory and is used for driving a display screen to display images, the Ramless IC comprises a compensation memory but does not comprise a display memory, and image data to be displayed can be temporarily stored in the compensation memory or directly transmitted to the display screen and is driven to display images.
AOD: the AOD is in an all-day display mode, the electronic equipment can enter the all-day display mode when the screen is turned off, an all-day display area is formed by lighting part of pixel points of the display screen, and important information such as date, time, notification, electric quantity and the like can be continuously displayed in the all-day display area, so that a user can browse the important information under the condition of not turning on the screen.
VDO mode, also called video mode: in one of the picture output modes of the display driving circuit, in the VDO mode, the application processor of the electronic device directly transmits the image data to the display screen for refreshing and displaying the interface through the display driving circuit. In the refreshing display process of the interface, because the image data cannot be stored in the register, the register command in the rendering process of the display interface cannot be stored, and the control command, the control parameter and the like of the refreshing display of the interface are sent to the display screen, the system power consumption in the video mode is higher.
CMD mode, also called command mode: in one of the frame output modes of the display driving circuit, in the CMD mode, the application processor of the electronic device transmits the image data to the storage block of the display driving circuit for buffering, and the display driving circuit transmits the image data to the display screen for displaying. In the refreshing display process of the interface, a register of the storage block can be initialized, and control commands, control parameters and the like of the refreshing display of the interface are stored in the storage block without being sent to a display screen, so that the system power consumption in a command mode is lower than that in a video mode.
Sleep doze mode: also known as a low power consumption mode or a doze mode, the electronic device may enter a sleep state after the screen is removed. In the sleep mode, the system of the electronic device saves power by limiting access to the network and use of the processor by the application, and may also limit synchronization of the application and use of the system alarm clock. Further, in sleep mode, the application whitelist may be set so that some applications may normally use hardware resources and software resources, for example, by the AOD application controlling the display screen to display the AOD area.
For detailed implementation of the display control method, reference is made to the description in the respective embodiments below.
In order to better understand the display control method provided in the embodiment of the present application, an application scenario of the display control method provided in the embodiment of the present application is described below with reference to fig. 1 and fig. 2.
When the Ram IC is adopted as the display screen of the electronic device, in the all-day display mode, the CMD mode is adopted by the display driving circuit to output the picture, the Ram IC includes an independent display memory, and the resolution of the image supported for display is the maximum resolution of the display screen, so that the image can be displayed in a full screen mode, and in the bright screen state and the off screen state, the CMD mode is adopted to output the picture. However, the cost of the display using Ram IC is high, and Ram ICs may be used for the display to reduce the cost. In the bright screen state, the electronic equipment outputs the picture 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 equipment outputs the picture through the CMD mode, and because the Ramless IC is not provided with an independent display memory, the whole memory is smaller, and the resolution of the image which supports display is also smaller. However, in the full-day display mode, in order to prevent screen burn, the full-day display area needs to be moved on the display screen to perform dynamic display, and under the condition that the resolution of the image supported by the Ramless IC for display is smaller, the full-day display area easily exceeds the designated display range in the moving display process, so that part of the AOD information cannot be continuously displayed, and further, the user cannot intuitively browse part of the AOD information when the display screen is turned off, thereby influencing the use experience of the user.
For example, the resolution of a display screen using a Ramless IC is 2368×1080, and in a bright screen state, the display screen uses a VDO mode to output a picture, and the resolution of a maximum image supported and displayed by the display screen using the Ramless IC is 2368×1080. In the all-day display mode in the off-screen state, the display screen adopts the CMD mode to output pictures, and the resolution of images supported and displayed by the display screen adopting the Ramless IC is smaller than that of the display screen because the memory of the Ramless IC is smaller, for example 1440 x 1080. Referring to fig. 1, in the all-day display mode, the display screen includes an all-day display area and a fingerprint unlocking area, the gray background area in fig. 1 is a 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 a screen saver area, a date, a time and an electric quantity, and the resolution of the fingerprint unlocking area is 200×1080. It will be appreciated that the division of the display screen area in fig. 1 is for illustration only, and in other embodiments, the display screen may not be provided with a fingerprint unlocking area in the full day display mode.
In the all-day display mode of the off-screen state, if the position of the all-day display area is kept unchanged, the pixel points of the display screen corresponding to the all-day display area are always in the lighted state, so that the temperature of a part of the area of the display screen is continuously overhigh, and the screen burning is easy to occur. In order to avoid screen burn, the whole day display area can be dynamically moved, and the whole day display area before and after each movement has no overlapping area or only partial overlapping area, so that the same display screen pixel point is ensured not to be continuously lightened. However, because the resolution of the image supported by the display screen adopting the Ramless IC is smaller, the display range corresponding to the whole-day display area is smaller, and the whole-day display area easily exceeds the display range in the moving process, so that part of the area is lost, and the information of the lost part cannot be continuously displayed, thereby influencing the use experience of a user.
Referring to fig. 2, in the off-screen state, when the full-day display area dynamically moves downward and moves beyond the display range corresponding to the full-screen display area, a part of the area is missing, for example, the date, time and electric quantity cannot be displayed normally, so that the user cannot know the date, time and electric quantity of the device in the off-screen state.
In order to solve the problem that a full-day display area of a display screen without an independent memory display driving circuit easily exceeds a designated display range in a mobile display process, so that part of AOD information cannot be continuously displayed, the embodiment of the application provides a display control method and related equipment, which can control the full-day display area to be in mobile display in a display range corresponding to the maximum image resolution supported by the display screen in a full-day display mode, so that the condition that the full-day display information cannot be completely displayed due to the fact that the full-day display area exceeds the designated display range in the mobile display process is avoided. The display control method is applied to electronic equipment, wherein the electronic equipment can be a smart phone, a personal computer, intelligent wearable equipment, an intelligent television and the like.
Referring to fig. 3, a software architecture diagram of an electronic device according to an embodiment of the present application is shown. The layered architecture divides the software into several layers, each with distinct roles and branches. The layers communicate with each other through a software interface. For example, the Android system is divided into four layers, namely, an application layer 101, a framework layer 102, an Android runtime (Android run) and system library 103, a hardware abstraction layer 104, a kernel layer 105 and a hardware layer 106 from top to bottom.
The application layer 101 may comprise a series of application packages. For example, the application package may include applications for cameras, gallery, calendar, phone calls, maps, navigation, WLAN, bluetooth, music, video, short messages, device control services, etc.
The framework layer 102 provides an application programming interface (Application Programming Interface, API) and programming framework for application programs of the application layer. The application framework layer includes a number of predefined functions. For example, the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, and the like.
Wherein the window manager is used for managing window programs. The window manager can acquire the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like. The content provider is used to store and retrieve data and make such data accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebooks, etc. The view system includes visual controls, such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, a display interface including a text message notification icon may include a view displaying text and a view displaying a picture. The telephony manager is for providing communication functions of the electronic device. Such as the management of call status (including on, hung-up, etc.). The resource manager provides various resources for the application program, such as localization strings, icons, pictures, layout files, video files, and the like. The notification manager allows the application to display notification information in a status bar, can be used to communicate notification type messages, can automatically disappear after a short dwell, and does not require user interaction. Such as notification manager is used to inform that the download is complete, message alerts, etc. The notification manager may also be a notification in the form of a chart or scroll bar text that appears on the system top status bar, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, a text message is prompted in a status bar, a prompt tone is emitted, the electronic device vibrates, and an indicator light blinks, etc.
Android run time includes a core library and virtual machines. Android run time is responsible for scheduling and management of the Android system. The core library consists of two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer 101 and the framework layer 102 run in virtual machines. The virtual machine executes java files of the application program layer and the framework layer as binary files. The virtual machine is used for executing the functions of object life cycle management, stack management, thread management, security and exception management, garbage collection and the like.
The system library 103 may include a plurality of functional modules. Such as surface manager (surface manager), media library (Media Libraries), three-dimensional graphics processing library (e.g., openGL ES), 2D graphics engine (e.g., SGL), etc.
The surface manager is used for managing the display subsystem and providing fusion of 2D and 3D layers for a plurality of application programs. Media libraries support a variety of commonly used audio, video format playback and recording, still image files, and the like. The media library may support a variety of audio and video encoding formats, such as MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, etc. The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like. The 2D graphics engine is a drawing engine for 2D drawing.
The hardware abstraction layer 104 runs in user space, encapsulates kernel layer drivers, and provides a call interface to upper layers.
The kernel layer 105 is a layer between hardware and software. The kernel layer 105 contains at least a display driver, a camera driver, an audio driver, and a sensor driver.
The kernel layer 105 is the core of the operating system of the electronic device, is a first layer of software expansion based on hardware, provides the most basic functions of the operating system, is the basis for the operating system to work, is responsible for managing the processes, the memory, the device drivers, the files and the network system of the system, and determines the performance and the stability of the system. For example, the kernel may determine the time an application is operating on a certain portion of hardware.
The kernel layer 105 includes hardware-closely related programs, such as interrupt handlers, device drivers, etc., and basic, common, higher frequency of operation modules, such as clock management modules, process scheduling modules, etc., and critical data structures. The kernel layer may be provided in the processor or cured in an internal memory.
The hardware layer 106 includes hardware of the electronic device, such as a display screen, keys, cameras, etc.
Referring to fig. 4, a flowchart of a display control method according to an embodiment of the present application is shown. The method is applied to the electronic equipment, and the display control method comprises the following steps:
S101, responding to the screen-off instruction, controlling the display screen to be screen-off, and creating an AOD view.
In an embodiment of the present application, if an input event generated after a power key of an electronic device is triggered is detected, an off-screen instruction is generated. If the power key is detected to be pressed and loosened, the power key is determined to be triggered by a user, so that a corresponding input event is generated, and then the display screen is controlled to be turned off in response to the input event. In another embodiment of the present application, the electronic device generates the off-screen instruction when no input event is generated within the second preset time. The second preset time may be an automatic screen locking time of the electronic device set by the user, for example, may be 30 seconds, 1 minute or 2 minutes, which is not limited in the embodiment of the present application. If the electronic device does not generate any input event within the second preset time, it is determined that the electronic device does not receive user operation (such as key operation, touch operation and the like) for a long time, so that power consumption of the system is reduced, electric energy is saved, a screen-killing instruction is automatically generated, and a display screen is controlled to be killed.
In an embodiment of the present application, in response to the power key being triggered, the power management service of the framework layer invokes the backlight setting function to control the backlight of the display screen to power down, turns off the backlight of the display screen, and also invokes the power mode setting function to control the display screen to enter a turned-off state.
In an embodiment of the present application, after the display screen is off and when 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 a screen saver control function (stream Controller), and creates an AOD view through the AOD application.
In an embodiment of the application, the AOD application obtains display information of the AOD region from an application program of the electronic device and creates the 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 latest notification information. For example, a user-selected screen saver image may be obtained at the AOD application, which also obtains the current date from the calendar application, the current time from the clock application, the current power from the power management service, obtains a plurality of notification messages from the application that received the notification messages, and determines the latest notification message from the obtained plurality of notification messages.
In an embodiment of the present application, the number of the horizontal pixels of the AOD area corresponding to the AOD view is smaller than or equal to the number of the horizontal pixels of the preset display range, and the number of the vertical pixels of the AOD area is smaller than or equal to the preset ratio of the number of the vertical pixels of the preset display range, for example, the preset ratio is 50%, that is, the number of the vertical pixels of the AOD area is smaller than or equal to one half of the number of the vertical pixels of the preset display range.
In an embodiment of the present application, the preset display range is a display range corresponding to an image resolution supported by the display screen in the AOD mode, the image resolution corresponding to the preset display range is smaller than or equal to a maximum image resolution supported by the display screen in the AOD mode, if the display screen includes a fingerprint unlocking area, the image resolution corresponding to the preset display range is smaller than the maximum image resolution supported by the display screen, and if the display screen does not include the 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, in the full-day display mode in the off-screen state, the maximum image resolution supported by the Ramless IC for display 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.
S102, controlling the display screen to enter a dormant doze state.
In an embodiment of the present application, after an AOD application creates an AOD view, a power management service is notified, after the power management service receives a notification from the AOD application, the AOD application is controlled to Start an AOD mode through a screen saver Start function (onstreamingstart), the AOD application performs initialization of a sleep mode through a sleep Start function (Start step), and a sleep instruction is sent to instruct the power management service to control a display screen to enter a sleep state.
S103, acquiring initial display coordinates of the AOD area corresponding to the AOD view and display coordinates after each movement.
In an embodiment of the present application, the AOD view includes AOD display information, the AOD view is located in an AOD area, the AOD area corresponding to the AOD view may be a rectangular area, the number of lateral pixels of the AOD area is 1080, that is, the lateral width of the AOD area may occupy the width of the display screen, the number of longitudinal pixels of the AOD area is less than or equal to a preset proportion, for example, one half, of the number of longitudinal pixels of the maximum image resolution supported by the display screen, the display coordinates of the AOD area are the coordinates of the middle point of the upper edge of the AOD area, and 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.
Referring to fig. 5, the resolution of the display screen is 2368×1080, 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 of the aod area is 1080, and the number of vertical pixels of the aod area is 620 in the full-day display mode in the off-screen state. In an initial state, the upper edge of the AOD area coincides with the upper edge of a preset display range, and in a rectangular coordinate system established by taking the upper left corner of the display screen as an original point, the transverse edge as an X axis and the longitudinal left edge as a Y axis, the display coordinates of the AOD area are pixel coordinates, and the initial display coordinates of the AOD area are preset as (540, 200). Wherein the display driving circuit stores initial display coordinates of the AOD region.
In an embodiment of the present application, the number of moving times and moving direction of the AOD area in a moving period are preset, the number of pixels of each moving of the AOD area is determined according to the number of pixels of the preset display range in the moving direction and the number of moving times, and the display coordinates of the AOD area after each moving are determined based on the number of pixels of each moving of the AOD area and the display coordinates of the AOD area before moving.
In an 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 one movement cycle of the AOD area, and the movement direction is longitudinal, that is, along the longitudinal axis direction of the rectangular coordinate system. Assuming that the number of movement of the AOD region in one movement period is a, if the AOD region needs to return to the initial position in one movement period, the AOD region needs to move up and down, and the number of downward movement and the number of upward movement of the AOD region are the same, the number of pixels of the AOD region moving along the longitudinal axis of the rectangular coordinate system each time is the same, the number of pixels of the AOD region moving along the longitudinal axis of the rectangular coordinate system in one movement period is 2 times the difference between the number of longitudinal pixels of the preset display range and the number of longitudinal pixels of the AOD region, and the number of pixels of the AOD region moving each time is the number of pixels of the AOD region moving along the longitudinal axis of the rectangular coordinate system in one movement period divided by the number of movements in one movement period. For example, assuming that the number of vertical pixels in the preset display range is 1240, the number of vertical pixels in the AOD area is 310, the number of pixels moving along the vertical axis of the rectangular coordinate system in the AOD area is 2 x (1240-310) =1860, the number of pixels moving each time in the AOD area is 1860/a, the display coordinates of the initial position in the AOD area are (540, 200+0 x 1860/a), the vertical axis values of the display coordinates in the AOD area are gradually increased, the first display coordinates after the first movement are (540, 200+1 x 1860/a), the second display coordinates after the second movement are (540, 200+2 x 1860/a), the third display coordinates after the third movement are (540, 200+3 x 1860/a), the fifth display coordinates after the fourth movement are (540, 200+4 x 1860/a), the fifth display coordinates after the fifth movement are (540, 200+5 x 1860/a), the vertical axis values after the first movement are gradually increased, the second display coordinates after the fourth movement are (540, 200+2 x 1860/a), the second display coordinates after the fourth movement are gradually increased, the second display coordinates are (540+2 x 1860/a), the second display coordinates after the sixth movement are gradually increased, the third movement are (540+2 x 1860/200 x), the second display coordinates after the fourth movement are gradually increased, the third display coordinates are the sixth display coordinates, and the fourth display coordinates are gradually increased, and the third display coordinates are gradually, and the fourth display coordinates are displayed after the fourth movement is 200+4 x 1 x 5 x 1 x 18 x 60/3 x 60/b. For example, if the number of movements a of the AOD region in one movement period is 10, the first display coordinates are (540, 386), the second display coordinates are (540, 572), and so on.
S104, controlling the AOD area to carry out mobile display in a preset display range based on the initial display coordinates of the AOD area and the display coordinates after each movement.
In an embodiment of the 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, the content of the AOD view is drawn based on the display information of the AOD view, the AOD drawing data is obtained, the AOD drawing data is rendered to a display screen, the display screen is driven by a display driving circuit of the electronic device to display the AOD area based on the AOD drawing data, the display coordinates of the AOD area after each movement are calculated every first preset time, the position of the AOD area after each movement is determined based on the display coordinates after each movement, the AOD drawing data after each movement is determined based on the position of the AOD area after each movement, the AOD drawing data after each movement is rendered to the display screen, and 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.
In an embodiment of the present application, after the AOD area is displayed at the initial position for a first preset time, the AOD area is displayed on the display screen in a moving manner based on the next display coordinates. In an embodiment of the present application, the first preset time is a time interval between two adjacent movements of the AOD area, and the first preset time is maintained after each movement of the AOD area to the next display position, and then the next movement is performed. For example, before moving, the next display coordinates of the AOD region are calculated, and after a first preset time, the AOD region is moved and displayed on the display screen based on the next display coordinates. Therefore, the AOD area is displayed in a moving mode within a preset display range, the same pixel points on the display screen can be prevented from being continuously lightened, screen burning is prevented, and the AOD area can be completely displayed. The preset display range is a display range corresponding to an image resolution supported by the display screen in the AOD mode, and can also be a display range corresponding to a maximum image resolution supported by the display screen in the AOD mode.
Referring to fig. 6, a schematic diagram of a moving state of an AOD area according to an embodiment of the present application is shown, where a solid line area is an initial position of the AOD area, and a dotted line area is a position of the AOD area after moving. The method for displaying the AOD area on the display screen based on the next display coordinate is the same as the method for displaying the AOD area on the display screen based on the initial display coordinate, and will not be described herein.
In an embodiment of the present application, after the AOD region is moved once for display, the next display coordinates of the AOD region continue to be calculated, based on the above example, the next display coordinates being (540, 572).
In an embodiment of the present application, the display control method further includes: and responding to the screen-lighting instruction, controlling the display screen to exit the AOD mode, and entering a screen-lighting state.
Based on the embodiment, the full-day display area can be controlled to be displayed in a moving mode in a display range corresponding to the maximum image resolution supported by the display screen, so that the condition that full-day display information cannot be displayed completely due to the fact that the full-day display area exceeds the designated display range is avoided.
Referring to fig. 7, a flowchart of a display control method according to another embodiment of the present application is shown. The method is applied to the electronic equipment, and the display control method comprises the following steps:
S201, responding to the screen-off instruction, controlling the screen to be turned off, and creating an AOD view.
S202, controlling the display screen to enter a dormant state.
S203, acquiring initial display coordinates of the AOD region corresponding to the AOD view, and controlling the AOD region to display in a preset display range based on the initial display coordinates.
S204, calculating display coordinates of the AOD area after the next movement.
In an embodiment of the application, when the AOD area is displayed in 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, so that the blockage to the display of the AOD area caused by the calculation of the display coordinates after the next movement is avoided, and the AOD area is ensured to be displayed in time.
S205, after a first preset time, controlling the AOD area to move and display in a preset display range based on the display coordinates after the next movement. Then, the flow returns to S204, the display coordinates of the AOD area after the next movement are continuously calculated, and S205 is executed to control the AOD area to move and display in the preset display range based on the display coordinates after the next movement after the first preset time. S204 and S205 are performed in this way until the display is lit.
The specific implementation of S201-S202 is the same as the specific implementation of S101-S102, and will not be described here again. The specific implementation of controlling the AOD region to be displayed within the preset display range based on the display coordinates in S203 and S205 is the same as the specific implementation of S104.
Fig. 8 is a schematic diagram of interaction between layers of a software architecture of an electronic device according to an embodiment of the present application. In one embodiment of the present application, application layer 101 includes AOD application 1010, framework layer 102 includes power management service (PowerManagerService, PMS) 1020, display management service (displaymanageervice) 1021, lock management service (keyguard manager) 1022, and layer composition service (SurfaceFlingerService) 1023, kernel layer (or driver layer) 105 includes display driver circuit 1050, and hardware layer 106 includes display 194.
S301, the power management service calls a backlight setting function and sends a backlight power-down instruction to the display driving circuit.
In an embodiment of the present application, the power management service generates a screen-off instruction in response to an input event generated by triggering the power key or no input event generated within a second preset time, and invokes a backlight setting function to send a backlight power-down instruction to the display driving circuit. Wherein the backlight setting function is setb lightnesssoff.
S302, the display driving circuit responds to a backlight power-down instruction to turn off the backlight of the display screen.
In an 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 down, and the backlight of the display screen is turned off.
S303, the power management service notifies the layer-by-layer service to control the display screen to enter a closed state.
In one embodiment of the present application, a power management service invokes a state switching function and sends a first state switching instruction to a layer composition service. The first state switching instruction instructs the layer composition service to set the display screen to a closed mode, and controls the display screen to enter a closed state, namely, an off-screen state. Wherein the state switching function is notify screen state.
S304, the layer combination service responds to the first state switching instruction and sends a first power supply setting instruction to the display driving circuit.
In an embodiment of the present application, the first power setting instruction instructs the display driving circuit to turn off the display screen. The layer combination service calls a power setting function set power mode and sets the value of the power setting function set power mode to 0 to generate a first power setting instruction.
S305, the display driving circuit responds to the first power supply setting instruction to control the display screen to enter a closed state.
In an 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, and sets the display screen to the off mode, so as to control the display screen to enter the off state.
S306, the layer combination service sends a first power supply setting instruction to the display management service.
In an embodiment of the present application, the first power setting instruction further instructs the display management service to set the display screen state to the off state.
S307, the layer composition service returns the switching result of the closing mode of the display screen to the power management service.
In an embodiment of the present application, the switching result of the off mode of the display screen is a finish return value, and the layer composition service sets the finish return value to 1 and sends the finish return value to the power management service.
S308, the power management service sends an AOD view creation instruction to the AOD application.
In one embodiment of the present application, the power management service invokes a screen saver control function to send an AOD view creation instruction to an AOD application. Wherein the screen saver control function is a stream Controller.
S309, the AOD application creates an AOD view.
S310, the AOD application notifies the power management service that the AOD view has been created.
S311, the power management service sends a screen saver start instruction to the AOD application.
In one embodiment of the present application, the power management service invokes a screen saver start function to send a screen saver start instruction to the AOD application. Wherein the screen saver Start function is onstreamingStart.
S312, the AOD application sends a sleep instruction to the power management service.
In one embodiment of the present application, the AOD application invokes a sleep start function, start, to generate a sleep instruction and sends the sleep instruction to the power management service.
S313, the power management service responds to the dormancy instruction and sends a second state switching instruction to the layer composition service. The second state switching instruction indicates the power management service to control the display screen to enter the dormant state.
In one embodiment of the present application, the power management service calls the state switching function notify screen state in response to the sleep instruction, and sends a second state switching instruction to the layer composition service. The second state switching instruction instructs the layer synthesis service to control the display screen to enter a dormant state.
S314, the layer combination service sends a second power supply setting instruction to the display driving circuit.
In an embodiment of the present application, the layer combination service responds to the second state switching command and sends a second power setting command to the display driving circuit. The second power setting instruction instructs the display driving circuit to turn on the display screen. The layer combination service calls a power setting function set power mode and sets the value of the power setting function set power mode to 1 to generate a second power setting instruction.
S315, the display driving circuit responds to the second power supply setting instruction to control the display screen to enter a dormant state.
In an 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, so as to control the display screen to enter the sleep state.
S316, the layer combination service sends a second power supply setting instruction to the display management service.
In an embodiment of the present application, the second power setting instruction further instructs the display management service to set the display screen state to the sleep state.
S317, the layer composition service returns the switching result of the sleep mode of the display screen to the display management service.
In an embodiment of the present application, the result of switching the sleep mode of the display screen is a finish return value, and the layer composition service sets the finish return value to 1 and sends the finish return value to the power management service.
S318, the AOD application monitors the display screen state of the display management service.
S319, the AOD application calculates display coordinates and backlight luminance of the AOD region.
S320, the AOD application issues display coordinates and backlight brightness of the AOD area to a power management service.
S321, the power management service transmits the display coordinates and backlight brightness of the AOD area to the display driving circuit.
S322, the display driving circuit drives the display screen to display the AOD area based on the display coordinates and the backlight brightness.
Based on the above embodiment, through interaction of the layers of the underlying software architecture of the electronic device, the display screen state can be accurately switched, and the AOD region can be accurately controlled to move and display within the preset display range, and meanwhile, partial AOD information is prevented from being invisible due to the lack of the AOD region.
Referring to fig. 9, a flowchart of controlling a display to be turned off is provided in an embodiment of the present application.
S1011, responding to the screen-off instruction, the power management service sends a backlight power-off instruction to the display driving circuit.
In an embodiment of the present application, the power management service generates the off-screen command when an input event is generated in which a power key of the electronic device is triggered, or when the electronic device does not generate any input event within a second preset time. If the power key is detected to be pressed and loosened, the power key is determined to be triggered by a user, corresponding input events are correspondingly generated, and the display screen is controlled to be turned off in response to the input events. The second preset time may be an automatic lock time of the electronic device set by the user, and may be 30 seconds, 1 minute, or 2 minutes, for example. If the electronic equipment does not generate an input event within the second preset time, determining that the electronic equipment does not receive user operation (such as key operation, touch operation and the like) for a long time, and automatically generating a screen-extinguishing instruction to control the display screen to extinguish in order to reduce the system power consumption and save electric energy.
As shown in fig. 8, in an embodiment of the present application, the power management service invokes the backlight setting function to generate a backlight power-down instruction, and sends the backlight power-down instruction to the display driving circuit.
S1012, the display driving circuit responds to the backlight power-down instruction to turn off the backlight of the display screen.
In an embodiment of the present application, the backlight of the display screen may 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-down instruction, sets the value of the backlight mode typealpm mode to 0, and controls the backlight power-down of the display screen, so that the backlight is turned off.
S1013, the power management service sends a first state switching instruction to the layer composition service.
In an 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 composition service. The state switching function is notify screen state, and the display screen states include, but are not limited to, off (off), on (on), doze (dormant). In the off state, the backlight of the display screen is turned off, and the electronic device is in a standby state. In the on state, the display screen displays a user interface. In the sleep mode, the electronic device is in a low power consumption state, and the display screen can be in an all-day display mode. Therefore, the target display screen state of the first state switching instruction generated by the state switching function is off.
S1014, in response to the first state switching instruction, the layer combination service sends a first power setting instruction to the display driving circuit.
In one embodiment of the present application, the graphics layer server 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, the value of the power setting function is 0 or 1, and if the value of the power setting function is 0, the power setting instruction is used for indicating to turn off the power supply of the display screen, and the display screen is controlled to enter a turned-off state; if the value of the power supply setting function is 1, the power supply setting instruction is used for indicating to start the power supply of the display screen, and the display screen is controlled to enter the on state.
S1015, responding to the first power supply setting instruction, and sending an off state value to the display screen by the display driving circuit to control the display screen to enter the off state.
In an embodiment of the present application, the off state of the display screen may be represented by setting an off state value, where 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 indicates that the display screen enters the off state, and if the off state value of the display screen is 0, the display driving circuit indicates that the display screen enters 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, so that the display screen is controlled to enter the off state.
S1016, the layer composition service returns the setting result of the off state to the power management service.
In an embodiment of the present application, the setting result of the display screen state is represented by a finish (finish) return value, where 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 is not set to be finished, and if the finish return value is 1, it is used to indicate that the display screen state is set to be finished. After the first power setting instruction is sent to the display driving circuit, the layer synthesis service sets the completion return value to 1, and returns the completion return value to 1 to the power management service so as to inform that the display screen has entered a closed state.
Based on the embodiment, through interaction of all layers of the bottom software architecture of the electronic equipment, the display screen can be rapidly controlled to enter the screen-off state, and the state switching efficiency of the display screen is improved.
Referring to fig. 10, a flowchart of controlling a display screen to enter a sleep state according to an embodiment of the present application is shown.
S1021, responding to the dormancy instruction, the power management service sends a second state switching instruction to the layer synthesis service.
In an embodiment of the present application, after an AOD application creates an AOD view, a power management service is notified, after the power management service receives a notification from the AOD application, the AOD application instructs, through a screen saver Start function (onstreaming Start), the AOD application to control a display screen to enter a sleep (doze) mode, and the AOD application may generate a sleep instruction through the sleep Start function (Start dozing) to instruct the power management service to control the display screen to enter a sleep state.
In an 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 notify screen state, and sends the second state switching instruction to the layer combining service, where the state of the target display screen of the state switching instruction is doze, and instructs the layer combining 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 an all-day display mode.
S1022, responding to the second state switching instruction, the layer combination service sends a second power supply setting instruction to the display driving circuit.
In an embodiment of the present application, the graphics layer 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. The value of the power mode corresponding to the power setting function is 1, so that the second power setting instruction instructs to start power supply of the display screen, and the display screen is controlled to enter a dormant state.
S1023, responding to the second power supply setting instruction, and sending a doze state value to the display screen by the display driving circuit to control the display screen to enter a dormant state.
In an embodiment of the present application, the doze mode of the display screen may be represented by a doze state value, where 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 configured to instruct the display screen to enter the sleep state, and if the doze state value of the display screen is 0, the display driving circuit is configured to instruct the display screen not to be in the sleep state. The display driving circuit sets the doze state value to 1 and sends the doze state value 1 to the display screen, so that the display screen is controlled to enter the dormant doze state. Wherein setting the doze state value to 1 may be accomplished by setting the value of the setdozemodeenfabled function to modify the sleep doze state value accordingly, e.g., setting the value of the setdozemodeenfabled function to 1.
S1024, the layer composition service returns the setting result of the sleep state to the power management service. The implementation of S1024 is the same as S1016, and will not be described here again.
Based on the embodiment, through interaction of all layers of the bottom software architecture of the electronic device, the display screen can be rapidly controlled to enter the dormant state, and the state switching efficiency of the display screen is improved.
Referring to fig. 11, a flowchart of controlling an AOD area to move and display within a preset display range according to an embodiment of the present application is shown.
S1041, determining that the timing time of the timer of the AOD area mobile display reaches the first preset time.
In an embodiment of the present application, a timer for the AOD area mobile display is set, and the timer starts from the screen off. The timer carries out cyclic timing, and resets and rechems after the timing time reaches the first preset time. And when the timing time of the timer for determining the mobile display of the AOD area reaches the first preset time, performing mobile display on the AOD area.
S1042, the AOD application acquires display coordinates of the AOD region.
In one embodiment of the present application, the AOD application obtains initial display coordinates of the AOD region and sends the initial display coordinates to the power management service prior to the move. 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. And if the timing time of the timer reaches the first preset time again, the AOD application acquires the display coordinates of the AOD area after the second movement, and transmits the display coordinates of the AOD area after the second movement to the power management service.
S1043, the power management service acquires display coordinates of the AOD region.
In one embodiment of the present application, a power management service receives display coordinates of an AOD region delivered by an AOD application and sends the display coordinates to a display driver circuit.
S1044, the display driving circuit drives the display screen to display the AOD area based on the display coordinates.
In an embodiment of the application, the display driving circuit drives the display screen to determine display screen pixel points corresponding to the AOD area based on the display coordinates, and lightens the display screen pixel points corresponding to the AOD area to form corresponding AOD view contents, so that the AOD area is displayed.
Based on the above embodiment, the underlying software architecture of the electronic device calculates and issues the display coordinates of the AOD area every a first preset time, so that the AOD area can be accurately controlled to move and display within the preset display range.
Referring to fig. 12, a flowchart of a display control method according to another embodiment of the present application is shown. The method is applied to the electronic equipment, and the display control method comprises the following steps:
s401, responding to the screen-off instruction, controlling the display screen to be screen-off, and creating an AOD view.
S402, controlling the display screen to enter a dormant state.
S403, acquiring initial display coordinates of the AOD area corresponding to the AOD view and display coordinates after each movement.
The specific embodiments of S401 to S403 are the same as those of S101 to S103, and will not be described here again.
S404, acquiring the backlight brightness of the AOD area.
In one embodiment of the present application, an AOD application communicates with an ambient light sensor of an electronic device, listens for ambient light levels sensed by the ambient light sensor, and determines backlight brightness for an AOD region based on the ambient light levels. In an embodiment of the present application, there is a correspondence between ambient light level, backlight brightness level of the AOD area, and backlight brightness of the AOD area. Before the AOD area is displayed, the AOD application acquires the ambient light level, determines the backlight brightness level of the AOD area corresponding to the ambient light level, and determines the backlight brightness of the AOD area based on the backlight brightness level of the AOD area. The backlight brightness level of the AOD area includes 1 level, 3 level and 6 level, which respectively correspond to low brightness, medium brightness and high brightness, the ambient light brightness range corresponding to the 1 level backlight brightness is less than 500lux (lux), the ambient light brightness range corresponding to the 3 level backlight brightness is more than or equal to 500lux and less than 10000lux, and the ambient light brightness range corresponding to the 6 level backlight brightness is more than or equal to 10000lux. The 1-level backlight luminance corresponds to 200nit (nit), the 3-level backlight luminance is 500nit, and the 6-level backlight luminance is 1000nit.
S405, controlling the AOD area to perform mobile display in a preset display range based on the initial display coordinates of the AOD area, the display coordinates after each movement and the backlight brightness of the AOD area.
In an embodiment of the present application, each time the AOD area is displayed in a moving manner based on the display coordinates, the display screen is controlled to turn on the backlight of the AOD area, and the backlight brightness of the AOD area is set so that the AOD area is visible. The method for setting the backlight brightness may be a pulse width modulation method.
Based on the above embodiment, the backlight brightness of the AOD area may be set based on the ambient light brightness, so that the AOD area is visible, and the brightness is matched with the ambient light brightness, so that the user can browse the information in the AOD area.
Referring to fig. 13, a flowchart of the lower coordinates is provided in an embodiment of the present application.
S501, acquiring a timer Ticker time.
S502, the AOD application sets display coordinates of the AOD area.
S503, the power management service sets the display coordinates of the AOD area.
S504, the display screen sets display coordinates of the AOD area.
S505, judging 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 does not successfully set the display coordinates of the AOD region, the flow returns to S506.
In an embodiment of the present application, if the received setting status value of the display coordinates of the AOD area is 0, determining that the display screen successfully sets the display coordinates of the AOD area; and if the received setting state value of the display coordinates of the AOD area is 1, determining that the display coordinates of the AOD area are not successfully set by the display screen.
S506, whether the number of times that the display screen does not successfully set the display coordinates of the AOD area reaches the preset number of times, for example, the preset number of times may be three, which is not limited in practical application. If the number of times that the display screen does not successfully set the display coordinates of the AOD area reaches the preset number of times, ending the flow; if the number of times that the display screen has not successfully set the display coordinates of the AOD area does not reach the preset number of times, the flow returns to S302, and the AOD application resets the display coordinates of the AOD area.
Based on the embodiment, when the timing time of the timer reaches the preset time of the AOD region interval display, the AOD display coordinates are issued from the application layer to the frame layer and then to the hardware layer, so that the AOD region can be timely displayed. In addition, by accumulating the number of failures of setting the display coordinates of the AOD area, a prompt message may be output to prompt the user that the AOD area is displayed abnormally when the number of failures is excessive.
Fig. 14 is a schematic view showing interaction of layers of a software architecture of an electronic device according to another embodiment of the present application.
The input service detects an input event and determines that a power key is triggered; the display screen is turned off; the power management service sends a screen saver starting instruction to the AOD application; the AOD application creates an AOD view; the power management service instructs the AOD application to initialize sleep mode setting; the AOD application sends a dormancy instruction to the power management service; the power management service sends a dormancy switching instruction to the layer composition service; the layer composition service switches the display screen to a dormant state; the layer combination service sends a power mode setting instruction to the display management service; the display management service switches the display screen state into a dormant state; the AOD application determines that the sleep state switching is successful; the AOD is used for calculating the display coordinates of the AOD area after the next movement and transmitting backlight brightness to the power management service; the power management service issues display coordinates and backlight to the display screen; setting backlight of a display screen, displaying an AOD area by the display screen, and entering an AOD mode by the display screen; when the timer reaches 1 minute, calculating the display coordinates of the AOD area after the AOD area moves next time; the AOD application sends the display coordinates of the AOD area after the next movement to the power management service; the power management service transmits the next display coordinates and backlight to the display screen; the display screen sets backlight and next display coordinates; the display screen displays the AOD region. And when the timer reaches 1 minute, calculating the display coordinates of the AOD area after the AOD area moves next time so as to circularly control the AOD area to move and display in the preset display range of the display screen.
Aiming at the problem that the display area is easy to move out of the displayable area in the whole-day display mode of the display screen adopting the Ramless IC, the embodiment of the application can synchronously move the display area along with the AOD view, and the problem of screen burning prevention at present can be solved. In addition, a good communication mechanism is established between the application layer and the bottom layer, so that the frame layer can send instructions to the display screen correctly, and meanwhile, the display screen can respond to and move the displayable area in time. When the AOD application issues backlight, the coordinate position of the next time is transmitted to the display screen through the power management service, the display screen is provided with the backlight, and then the displayable area is moved according to the coordinate of the next time.
After a power key is pressed, the display is turned off, the AOD application creates an AOD view, the power management service is notified to switch the DOZE state, and the power management service notifies the surfaceflinger to switch the DOZE state, and the surfaceflinger controls the display driving circuit and the display to switch to the DOZE mode. The AOD application calculates the next display area of the AOD area, calculates the backlight brightness from the ambient light brightness, and then transmits the calculated backlight brightness to the power management service (the initial display position of the AOD area is stored in advance by the display driving circuit, so that the first display position is not transmitted), and the power management service transmits the backlight command and the position of the next display area to the display driving circuit. Periodically, one minute of backlight command and the position of the next display area are issued. The existing ramless IC can only use a VDO mode, and has higher power consumption. The existing ram IC needs to issue a command to control the movement of an AOD area, does not need to issue coordinates, but needs to wake up the AOD application periodically.
The present embodiment further provides an electronic device 100, referring to fig. 15, where the electronic device 100 may be a mobile phone, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an Ultra-mobile personal computer (Ultra-mobile Personal Computer, UMPC), a netbook, a cellular phone, a personal digital assistant (Personal Digital Assistant, PDA), an augmented Reality (Augmented Reality, AR) device, a Virtual Reality (VR) device, an artificial intelligence (Artificial Intelligence, AI) device, a wearable device, a vehicle-mounted device, a smart home device, and/or a smart city device, and the specific type of the electronic device 100 is not particularly limited in the embodiments of the present application.
The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (Universal Serial Bus, USB) interface 130, a charge 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, keys 190, a motor 191, an indicator 192, a camera 193, a display 194, and a subscriber identity module (Subscriber Identification Module, SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
It should be understood that the illustrated structure of the embodiment of the present invention does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, electronic device 100 may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 110 may include one or more processing units, such as: the processor 110 may include an application processor (Application Processor, AP), a modem processor, a graphics processor (Graphics Processing Unit, GPU), an image signal processor (Image Signal Processor, ISP), a controller, a video codec, a digital signal processor (Digital Signal Processor, DSP), a baseband processor, and/or a Neural network processor (Neural-network Processing Unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby improving the efficiency of the system.
In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an integrated circuit (Inter-integrated Circuit, I2C) interface, an integrated circuit built-in audio (Inter-integrated Circuit Sound, I2S) interface, a pulse code modulation (Pulse Code Modulation, PCM) interface, a universal asynchronous receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (Mobile Industry Processor Interface, MIPI), a General-Purpose Input/Output (GPIO) interface, a subscriber identity module (Subscriber Identity Module, SIM) interface, and/or a universal serial bus (Universal Serial Bus, USB) interface, among others.
The I2C interface is a bi-directional synchronous Serial bus, comprising a Serial Data Line (SDA) and a Serial clock Line (Derail Clock Line, SCL). In some embodiments, the processor 110 may contain multiple sets of I2C buses. The processor 110 may be coupled to the touch sensor 180K, charger, flash, camera 193, etc., respectively, through different I2C bus interfaces. For example: the processor 110 may be coupled to the touch sensor 180K through an I2C interface, such that the processor 110 communicates with the touch sensor 180K through an I2C bus interface to implement a touch function of the electronic device 100.
The I2S interface may be used for audio communication. In some embodiments, the processor 110 may contain multiple sets of I2S buses. The processor 110 may be coupled to the audio module 170 via an I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 may transmit an audio signal to the wireless communication module 160 through the I2S interface, to implement a function of answering a call through the bluetooth headset.
PCM interfaces may also be used for audio communication to sample, quantize and encode analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface. In some embodiments, the audio module 170 may also transmit audio signals to the wireless communication module 160 through the PCM interface to implement a function of answering a call through the bluetooth headset. Both the I2S interface and the PCM interface may be used for audio communication.
The UART interface is a universal serial data bus for asynchronous communications. The bus may be a bi-directional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is typically used to connect the processor 110 with the wireless communication module 160. For example: the processor 110 communicates with a bluetooth module in the wireless communication module 160 through a UART interface to implement a bluetooth function. In some embodiments, the audio module 170 may transmit an audio signal to the wireless communication module 160 through a UART interface, to implement a function of playing music through a bluetooth headset.
The MIPI interface may be used to connect the processor 110 to peripheral devices such as a display 194, a camera 193, and the like. The MIPI interfaces include camera serial interfaces (Camera Serial Interface, CSI), display serial interfaces (Display Serial Interface, DSI), and the like. In some embodiments, processor 110 and camera 193 communicate through a CSI interface to implement the photographing functions of electronic device 100. The processor 110 and the display 194 communicate via a DSI interface to implement the display functionality of the electronic device 100.
The GPIO interface may be configured by software. The GPIO interface may be configured as a control signal or as a data signal. In some embodiments, a GPIO interface may 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, and the like. The GPIO interface may also be configured as an I2C interface, an I2S interface, a UART interface, an MIPI interface, etc.
The USB interface 130 is an interface conforming to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 130 may be used to connect a charger to charge the electronic device 100, and may also be used to transfer data between the electronic device 100 and a peripheral device. And can also be used for connecting with a headset, and playing audio through the headset. The interface may also be used to connect other electronic devices 100, such as AR devices, etc.
It should be understood that the interfacing relationship between the modules illustrated in the embodiments of the present invention is only illustrative, and is not meant to limit the structure of the electronic device 100. In other embodiments of the present application, the electronic device 100 may also use different interfacing manners, or a combination of multiple interfacing manners in the foregoing embodiments.
The charge management module 140 is configured to receive a charge input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charge management module 140 may receive a charging input of a wired charger through the USB interface 130. In some wireless charging embodiments, the charge management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. The charging management module 140 may also supply power to the electronic device 100 through the power management module 141 while charging the battery 142.
The power management module 141 is used for connecting the battery 142, and the charge management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140 to power the processor 110, the internal memory 121, the display 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be configured to monitor battery capacity, battery cycle number, battery health (leakage, impedance) and other parameters. In other embodiments, the power management module 141 may also be provided in the processor 110. In other embodiments, the power management module 141 and the charge management module 140 may be disposed in the same device.
The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 100 may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed into a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution for wireless communication including 2G/3G/4G/5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (Low Noise Amplifier, LNA), etc. The mobile communication module 150 may receive electromagnetic waves from the antenna 1, perform processes such as filtering, amplifying, and the like on the received electromagnetic waves, and transmit the processed electromagnetic waves to the modem processor for demodulation. The mobile communication module 150 can amplify the signal modulated by the modem processor, and convert the signal into electromagnetic waves through the antenna 1 to radiate. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be provided in the same device as at least some of the modules of the processor 110.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating 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. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs sound signals through an audio device (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or video through the display screen 194. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 150 or other functional module, independent of the processor 110.
The wireless communication module 160 may provide solutions for wireless communication including wireless local area network (Wireless Local Area Networks, WLAN) (e.g., wireless fidelity (Wireless Fidelity, wi-Fi) network), bluetooth (BT), global navigation satellite system (Global Navigation Satellite System, GNSS), frequency modulation (Frequency Modulation, FM), near field wireless communication technology (Near Field Communication, NFC), infrared technology (IR), etc., as applied to the electronic device 100. The wireless communication module 160 may be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signals, filters the electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, frequency modulate it, amplify it, and convert it to electromagnetic waves for radiation via the antenna 2.
In some embodiments, antenna 1 and mobile communication module 150 of electronic device 100 are coupled, and antenna 2 and wireless communication module 160 are coupled, such that electronic device 100 may communicate with a network and other devices through wireless communication techniques. The wireless communication techniques may include the Global System for Mobile communications (Global System For Mobile Communications, GSM), general packet radio service (General Packet Radio Service, GPRS), code division multiple access (Code Division Multiple Access, CDMA), wideband code division multiple access (Wideband Code Division Multiple Access, WCDMA), time division code division multiple access (Time-Division Code Division Multiple Access, TD-SCDMA), long term evolution (Long Term Evolution, LTE), BT, GNSS, WLAN, NFC, FM, and/or IR techniques, among others. The GNSS may include a global satellite positioning system (Global Positioning System, GPS), a global navigation satellite system (Global Navigation Satellite System, GLONASS), a beidou satellite navigation system (Beidou Navigation Satellite System, BDS), a Quasi zenith satellite system (Quasi-Zenith Satellite System, QZSS) and/or a satellite based augmentation system (Satellite Based Augmentation Systems, SBAS).
The electronic device 100 implements display functions through a GPU, a display screen 194, an application processor, and the like. The GPU is a microprocessor for display control, and is connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
The display screen 194 is used to display images, videos, and the like. The display 194 includes a display panel. The display panel may employ a liquid crystal display (Liquid Crystal Display, LCD), an Organic Light-Emitting Diode (OLED), an Active-matrix Organic Light-Emitting Diode (AMOLED) or an Active-matrix Organic Light-Emitting Diode (Matrix Organic Light Emitting Diode), a flexible Light-Emitting Diode (Flex), a mini, a Micro-OLED, a quantum dot Light-Emitting Diode (Quantum Dot Light Emitting Diodes, QLED), or the like. In some embodiments, the electronic device 100 may include 1 or N display screens 194, N being a positive integer greater than 1.
The electronic device 100 may implement photographing functions through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
The ISP is used to process data fed back by the camera 193. For example, when photographing, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electric signal, and the camera photosensitive element transmits the electric signal to the ISP for processing and is converted into an image visible to naked eyes. ISP can also optimize the noise, brightness and skin color of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in the camera 193.
The camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image onto the photosensitive element. The photosensitive element may be a charge coupled device (Charge Coupled Device, CCD) or a Complementary Metal Oxide Semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, which is then transferred 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 the like format. In some embodiments, electronic device 100 may include 1 or N cameras 193, N being a positive integer greater than 1.
The digital signal processor is used for processing digital signals, and can process other digital signals besides digital image signals. For example, when the electronic device 100 selects a frequency bin, the digital signal processor is used to fourier transform the frequency bin energy, or the like.
Video codecs are 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 may play or record video in a variety of encoding formats, such as: dynamic picture experts group (Moving Picture Experts Group, MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
The NPU is a Neural-Network (NN) computing processor, and can rapidly process input information by referencing a biological Neural Network structure, for example, referencing a transmission mode between human brain neurons, and can also continuously perform self-learning. Applications such as intelligent awareness of the electronic device 100 may be implemented through the NPU, for example: image recognition, face recognition, speech recognition, text understanding, etc.
The internal Memory 121 may include one or more random access memories (Random Access Memory, RAM) and one or more Non-Volatile memories (NVM).
The Random Access Memory may include Static Random-Access Memory (SRAM), dynamic Random-Access Memory (Dynamic Random Access Memory, DRAM), synchronous dynamic Random-Access Memory (Synchronous Dynamic Random Access Memory, SDRAM), double data rate synchronous dynamic Random-Access Memory (Double Data Rate Synchronous Dynamic Random Access Memory, DDR SDRAM, e.g., fifth generation DDR SDRAM is commonly referred to as DDR5 SDRAM), etc.;
the nonvolatile memory may include a disk storage device, a flash memory (flash memory).
The FLASH memory may include NOR FLASH, NAND FLASH, 3d nand FLASH, etc. divided according to an operation principle, may include Single-Level Cell (SLC), multi-Level Cell (MLC), triple-Level Cell (TLC), quad-Level Cell (QLC), etc. divided according to a storage specification, may include universal FLASH memory (Universal Flash Storage, UFS), embedded multimedia memory card (embedded Multi Media Card, eMMC), etc. divided according to a storage specification.
The random access memory may be read directly from and written to by the processor 110, may be used to store executable programs (e.g., machine instructions) for an operating system or other on-the-fly programs, may also be used to store data for users and applications, and the like.
The nonvolatile memory may store executable programs, store data of users and applications, and the like, and may be loaded into the random access memory in advance for the processor 110 to directly read and write.
The external memory interface 120 may be used to connect external non-volatile memory to enable expansion of the memory capabilities of the electronic device 100. The external nonvolatile 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 video are stored in an external nonvolatile memory.
The internal memory 121 or the external memory interface 120 is used to store one or more computer programs. One or more computer programs are configured to be executed by the processor 110. The one or more computer programs include a plurality of instructions that when executed by the processor 110, implement the screen display detection method performed on the electronic device 100 in the above embodiment to implement the screen display detection function of the electronic device 100.
The electronic device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playing, recording, etc.
The audio module 170 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be disposed in the processor 110, or a portion of the functional modules of the audio module 170 may be disposed in the processor 110.
The speaker 170A, also referred to as a "horn," is used to convert audio electrical signals into sound signals. The electronic device 100 may listen to music, or to hands-free conversations, through the speaker 170A.
A receiver 170B, also referred to as a "earpiece", is used to convert the audio electrical signal into a sound signal. When electronic device 100 is answering a telephone call or voice message, voice may be received by placing receiver 170B in close proximity to the human ear.
Microphone 170C, also referred to as a "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or transmitting voice information, the user can sound near the microphone 170C through the mouth, inputting a sound signal to the microphone 170C. The electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C, and may implement a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device 100 may also be provided with three, four, or more microphones 170C to enable collection of sound signals, noise reduction, identification of sound sources, directional recording functions, etc.
The earphone interface 170D is used to connect a wired earphone. The headset interface 170D may be a USB interface 130 or a 3.5mm open mobile electronic device 100 platform (Open Mobile Terminal Platform, OMTP) standard interface, a american cellular telecommunications industry association (Cellular Telecommunications Industry Association of the USA, CTIA) standard interface.
The keys 190 include a power-on key, a volume key, etc. The keys 190 may be mechanical keys. Or may be a touch key. The electronic device 100 may receive key inputs, generating key signal inputs related to user settings and function controls of the electronic device 100.
The motor 191 may generate a vibration cue. The motor 191 may be used for incoming call vibration alerting as well as for touch vibration feedback. For example, touch operations acting on different applications (e.g., photographing, audio playing, etc.) may correspond to different vibration feedback effects. The motor 191 may also correspond to different vibration feedback effects by touching different areas of the display screen 194. Different application scenarios (such as time reminding, receiving information, alarm clock, game, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect may also support customization.
The indicator 192 may be an indicator light, may be used to indicate a state of charge, a change in charge, a message indicating a missed call, a notification, etc.
The SIM card interface 195 is used to connect a SIM card. The SIM card may be inserted into the SIM card interface 195, or removed from the SIM card interface 195 to enable contact and separation with the electronic device 100. The electronic device 100 may support 1 or N SIM card interfaces, N being a positive integer greater than 1. The SIM card interface 195 may support Nano SIM cards, micro SIM cards, and the like. The same SIM card interface 195 may be used to insert multiple cards simultaneously. The types of the plurality of cards may be the same or different. The SIM card interface 195 may also be compatible with different types of SIM cards. The SIM card interface 195 may also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to realize functions such as communication and data communication. In some embodiments, the electronic device 100 employs esims, 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. The present embodiment also provides a computer storage medium having stored therein computer instructions that, when executed on the electronic device 100, cause the electronic device 100 to execute the above-described related method steps to implement the display control method in the above-described embodiment.
The present application also provides a computer program product, which when run on a computer, causes the computer to perform the above-mentioned related steps to implement the display control method in the above-mentioned embodiments.
In addition, embodiments of the present application also provide an apparatus, which may be specifically a chip, a component, or a module, and may include a processor and a memory connected to each other; the memory is used for storing computer-executable instructions, and when the device is running, the processor can execute the computer-executable instructions stored in the memory, so that the chip executes the display control method in each method embodiment.
The electronic device, the computer storage medium, the computer program product, or the chip provided in this embodiment are used to execute the corresponding methods provided above, so that the beneficial effects thereof can be referred to the beneficial effects in the corresponding methods provided above, and will not be described herein.
From the foregoing description of the embodiments, it will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of functional modules is illustrated, and in practical application, the above-described functional allocation may be implemented by different functional modules according to needs, i.e. the internal structure of the apparatus is divided into different functional modules to implement all or part of the functions described above.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another apparatus, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and the parts displayed as units may be one physical unit or a plurality of physical units, may be located in one place, or may be distributed in a plurality of different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated unit may be stored in a readable storage medium if implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the embodiments of the present application may be essentially or a part contributing to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, including several instructions to cause a device (may be a single-chip microcomputer, a chip or the like) or a processor (processor) to perform all or part of the steps of the methods of the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Finally, it should be noted that the above embodiments are merely for illustrating the technical solution of the present application and not for limiting, and although the present application has been described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that the technical solution of the present application may be modified or substituted without departing from the spirit and scope of the technical solution of the present application.

Claims (18)

1. A display control method applied to an electronic device, the method comprising:
responding to a screen-off instruction, controlling a display screen of the electronic equipment to be screen-off, and creating an AOD view displayed all the day;
controlling the display screen to enter a dormant state;
acquiring initial display coordinates of an AOD region corresponding to the AOD view and display coordinates after each movement;
and controlling the AOD area to carry out mobile display in a preset display range of the display screen based on the initial display coordinates and the display coordinates after each movement, wherein the preset display range is a display range corresponding to the image resolution supported by the display screen in an AOD mode.
2. The display control method according to claim 1, wherein the display coordinates are pixel coordinates, and the obtaining the display coordinates of the AOD region corresponding to the AOD view after each movement includes:
presetting the moving times and the moving direction of the AOD area in a moving period;
and determining the number of the pixels of the AOD area moving each time according to the number of the pixels of the preset display range in the moving direction and the moving times.
3. The display control method according to claim 2, wherein the obtaining the display coordinates of the AOD region corresponding to the AOD view after each movement further includes:
And determining the display coordinates of the AOD region after each movement based on the number of pixel points of the AOD region moved each time and the display coordinates of the AOD region before the movement.
4. The display control method according to claim 1, wherein the AOD region is a rectangular region, the number of horizontal pixels of the AOD region is smaller than or equal to the number of horizontal pixels of the preset display range, and the number of vertical pixels of the AOD region is smaller than or equal to a preset ratio of the number of vertical pixels of the preset display range.
5. The display control method according to claim 4, wherein the acquiring initial display coordinates of an AOD region corresponding to the AOD view includes:
establishing a rectangular coordinate system by taking the upper left corner of the display screen as an origin, the transverse edge as an X axis and the longitudinal edge as a Y axis;
and 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 at the initial position as the initial display coordinates of the AOD area.
6. The display control method according to claim 1, wherein the controlling the AOD area to perform the moving display within the preset display range of the display screen based on the initial display coordinates and the display coordinates after each movement includes:
Determining the size of the AOD region based on the resolution of the AOD region, determining the initial position of the AOD region 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 to display the AOD region based on the AOD drawing data by a display driving circuit of the electronic equipment;
calculating display coordinates of the AOD region after each movement every first preset time, and determining the position of the AOD region after each movement based on the display coordinates after each movement;
and determining 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 to move and display the AOD area based on the AOD drawing data after each movement by the display driving circuit.
7. The display control method according to claim 1, wherein the controlling the AOD region to perform mobile display within a preset display range of the display screen includes:
determining that the timing time of the timer of the AOD area mobile display reaches a first preset time;
The AOD application of the electronic equipment acquires display coordinates of the AOD region;
the power management service of the electronic equipment acquires display coordinates of the AOD region;
and the display driving circuit of the electronic equipment drives the display screen to display the AOD region based on the display coordinates.
8. The display control method according to claim 7, wherein the display driving circuit of the electronic device driving the display panel to display the AOD region based on the display coordinates, includes:
and the display driving circuit drives the display screen to determine the display screen pixel points corresponding to the AOD region based on the display coordinates, and lightens the display screen pixel points corresponding to the AOD region, so that the lightened display screen pixel points form the AOD region.
9. The display control method according to claim 1, characterized in that the method comprises:
and generating the screen-off instruction when an input event that the power key of the electronic equipment is triggered is generated or when the electronic equipment does not generate any input event within a second preset time.
10. The display control method of claim 9, wherein the controlling the display of the electronic device to be off-screen in response to the off-screen instruction comprises:
Responding to the screen-off instruction, and sending a backlight power-down instruction to a display driving circuit of the electronic equipment by a power management service of the electronic equipment;
the display driving circuit responds to the backlight powering-down instruction and turns off the backlight of the display screen;
the power management service sends a first state switching instruction to a layer composition service of the electronic equipment;
responding to the first state switching instruction, and sending a first power supply setting instruction to the display driving circuit by the layer combination service;
responding to the first power supply setting instruction, the display driving circuit sends a closing state value to the display screen, and controls the display screen to enter a closing state;
and the layer composition service returns the setting result of the display screen state to the power management service.
11. The display control method of claim 1, wherein the creating an AOD view comprises:
display information of the AOD area is acquired from an application program 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, wherein the controlling the display screen to enter a sleep state includes:
Responding to the dormancy instruction, the power management service of the electronic equipment sends a second state switching instruction to the layer composition service of the electronic equipment;
responding to the second state switching instruction, and sending a second power supply setting instruction to a display driving circuit of the electronic equipment by the layer combination service;
responding to the second power supply setting instruction, the display driving circuit sends a dormant state value to the display screen and controls the display screen to enter a dormant state;
and the layer composition service returns the setting result of the dormant state to the power management service.
13. The display control method according to claim 1, wherein a resolution of the preset display range is less than or equal to a maximum image resolution of the display screen that supports display in an AOD mode, the maximum image resolution being less than the resolution of the display screen.
14. The display control method according to claim 1, characterized in that the method further comprises:
and acquiring the backlight brightness of the AOD area.
15. The display control method according to claim 14, wherein the controlling the AOD area to perform the moving display within the preset display range of the display screen based on the initial display coordinates and the display coordinates after each movement includes:
And controlling the AOD area to perform mobile display in the preset display range based on the initial display coordinates, the display coordinates after each movement and the backlight brightness of the AOD area.
16. An electronic device, the electronic device comprising a memory and a processor:
wherein the memory is used for storing program instructions;
the processor configured to read and execute the program instructions stored in the memory, which when executed by the processor, cause the electronic device to perform the display control method according to any one of claims 1 to 15.
17. A chip coupled to a memory in an electronic device, wherein the chip is configured to control the electronic device to perform the display control method of any one of claims 1 to 15.
18. A computer storage medium storing program instructions which, when run on an electronic device, cause the electronic device to perform the display control method of any one of claims 1 to 15.
CN202310576502.8A 2023-05-19 2023-05-19 Display control method and related equipment Pending CN117707449A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310576502.8A CN117707449A (en) 2023-05-19 2023-05-19 Display control method and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310576502.8A CN117707449A (en) 2023-05-19 2023-05-19 Display control method and related equipment

Publications (1)

Publication Number Publication Date
CN117707449A true CN117707449A (en) 2024-03-15

Family

ID=90148588

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310576502.8A Pending CN117707449A (en) 2023-05-19 2023-05-19 Display control method and related equipment

Country Status (1)

Country Link
CN (1) CN117707449A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109840061A (en) * 2019-01-31 2019-06-04 华为技术有限公司 The method and electronic equipment that control screen is shown
US20190189048A1 (en) * 2017-12-20 2019-06-20 Samsung Electronics Co., Ltd. Electronic device and method for controlling output timing of signal corresponding to state in which content can be received based on display location of content displayed on display
WO2020168976A1 (en) * 2019-02-22 2020-08-27 华为技术有限公司 Method for always on display, and electronic device
CN113946398A (en) * 2021-10-19 2022-01-18 北京小米移动软件有限公司 Display control method and device of terminal and storage medium
CN114003319A (en) * 2020-07-28 2022-02-01 华为技术有限公司 Screen-off display method and electronic equipment
CN114375027A (en) * 2021-08-12 2022-04-19 荣耀终端有限公司 Method and device for reducing power consumption
CN116052261A (en) * 2022-05-31 2023-05-02 荣耀终端有限公司 Sight estimation method and electronic equipment
CN116048243A (en) * 2022-05-20 2023-05-02 荣耀终端有限公司 Display method and electronic equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190189048A1 (en) * 2017-12-20 2019-06-20 Samsung Electronics Co., Ltd. Electronic device and method for controlling output timing of signal corresponding to state in which content can be received based on display location of content displayed on display
CN109840061A (en) * 2019-01-31 2019-06-04 华为技术有限公司 The method and electronic equipment that control screen is shown
WO2020168976A1 (en) * 2019-02-22 2020-08-27 华为技术有限公司 Method for always on display, and electronic device
CN114003319A (en) * 2020-07-28 2022-02-01 华为技术有限公司 Screen-off display method and electronic equipment
CN114375027A (en) * 2021-08-12 2022-04-19 荣耀终端有限公司 Method and device for reducing power consumption
CN113946398A (en) * 2021-10-19 2022-01-18 北京小米移动软件有限公司 Display control method and device of terminal and storage medium
CN116048243A (en) * 2022-05-20 2023-05-02 荣耀终端有限公司 Display method and electronic equipment
CN116052261A (en) * 2022-05-31 2023-05-02 荣耀终端有限公司 Sight estimation method and electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
周明;: "移动目标监控终端***的设计", 计算机测量与控制, no. 04, 25 April 2010 (2010-04-25) *

Similar Documents

Publication Publication Date Title
WO2021169337A1 (en) In-screen fingerprint display method and electronic device
CN113704014B (en) Log acquisition system, method, electronic device and storage medium
CN114443277A (en) Memory management method and device, electronic equipment and computer readable storage medium
WO2020093988A1 (en) Image processing method and electronic device
CN113553130B (en) Method for executing drawing operation by application and electronic equipment
WO2022052897A1 (en) Method and device for adjusting memory configuration parameter
WO2022095744A1 (en) Vr display control method, electronic device, and computer readable storage medium
CN113986162B (en) Layer composition method, device and computer readable storage medium
CN115373777A (en) Display method and related device
CN113986369B (en) Internet of things equipment control method and system, electronic equipment and storage medium
CN115904297A (en) Screen display detection method, electronic device and storage medium
CN116389640A (en) Interface display method and electronic equipment
CN116048831B (en) Target signal processing method and electronic equipment
CN115482143B (en) Image data calling method and system for application, electronic equipment and storage medium
CN114691248B (en) Method, device, equipment and readable storage medium for displaying virtual reality interface
CN116939559A (en) Bluetooth audio coding data distribution method, electronic equipment and storage medium
CN116027877A (en) Screen-off display method and terminal equipment
CN117707449A (en) Display control method and related equipment
CN115686403A (en) Display parameter adjusting method, electronic device, chip and readable storage medium
CN115083400A (en) Voice assistant awakening method and device
CN116703691B (en) Image processing method, electronic device, and computer storage medium
CN116700578B (en) Layer synthesis method, electronic device and storage medium
WO2023051036A1 (en) Method and apparatus for loading shader
CN115529379B (en) Method for preventing Bluetooth audio Track jitter, electronic equipment and storage medium
CN117707405A (en) Display screen control method and related equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination