WO2024067149A1 - 显示屏切换方法和电子设备 - Google Patents

显示屏切换方法和电子设备 Download PDF

Info

Publication number
WO2024067149A1
WO2024067149A1 PCT/CN2023/118950 CN2023118950W WO2024067149A1 WO 2024067149 A1 WO2024067149 A1 WO 2024067149A1 CN 2023118950 W CN2023118950 W CN 2023118950W WO 2024067149 A1 WO2024067149 A1 WO 2024067149A1
Authority
WO
WIPO (PCT)
Prior art keywords
display screen
screen
information
power
hwc
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.)
Ceased
Application number
PCT/CN2023/118950
Other languages
English (en)
French (fr)
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
Publication of WO2024067149A1 publication Critical patent/WO2024067149A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/0206Portable telephones comprising a plurality of mechanically joined movable body parts, e.g. hinged housings
    • H04M1/0208Portable telephones comprising a plurality of mechanically joined movable body parts, e.g. hinged housings characterized by the relative motions of the body parts
    • H04M1/0214Foldable telephones, i.e. with body parts pivoting to an open position around an axis parallel to the plane they define in closed position
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • H04M1/0266Details of the structure or mounting of specific components for a display module assembly
    • H04M1/0268Details of the structure or mounting of specific components for a display module assembly including a flexible display panel
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/12Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion

Definitions

  • the present application relates to the technical field of display screen switching, and in particular to a display screen switching method and an electronic device.
  • the electronic device may need to switch the display screens during the interface display process.
  • the display screen switching may include a process in which one display screen turns off from being on, and another display screen turns on from being off.
  • the present application provides a display screen switching method and an electronic device, which can improve the switching speed of the display screen.
  • an embodiment of the present application provides a display screen switching method, the method is applied to an electronic device, the electronic device includes a first display screen and a second display screen; the method includes: when switching from the first display screen to the second display screen, controlling the first display screen to start a power-off process; before the power-off process of the first display screen is completed, controlling the second display screen to start a power-on process.
  • the method controls the second display screen to start a power-on process, thereby there is no need to wait for the power-off process of the first display screen to be completed before starting the power-on process of the second display screen, thereby shortening the switching time from the first display screen to the second display screen and improving the switching speed of the display screen.
  • controlling the first display screen to start a power-off process includes: the HWC receives first information, the first information is used to instruct to power off the first display screen; in response to the first information, the HWC sends second information to the first display screen driver, the second information is used to instruct the first display screen driver to start the power-off process of the first display screen, and the first display screen driver is used to drive the first display screen;
  • the power-off process of the first display screen includes: before the HWC receives the third information sent by the first display screen driver, the third information is sent by the first display screen driver after the power-off of the first display screen is completed, and the third information is used to indicate to the HWC that the power-off of the first display screen is completed.
  • controlling the second display screen to start the power-on process includes: the HWC sends fourth information to the second display screen driver, the fourth information is used to instruct the second display screen driver to start the power-on process of the second display screen, and the second display screen driver is used to drive the second display screen.
  • the first information is sent by the display manager to control the second display to start the power-on process, and also includes: the HWC sends the fifth information to the display manager in response to the first information, and the fifth information is used to indicate that the power-off of the first display is completed; the HWC receives the sixth information sent by the display manager, and the sixth information is used to instruct the HWC to power on the second display.
  • the method also includes: the HWC receives the seventh information sent by the second display driver, the seventh information is sent by the second display driver after the second display is powered on, and the seventh information is used to indicate to the HWC that the second display is powered on; the HWC responds to the seventh information and sends the eighth information to the display manager, and the eighth information is used to indicate to the display manager that the second display is powered on.
  • the information transmitted between the HWC and the display manager is forwarded through Surfaceflinger.
  • the method further includes: the HWC updates the state of the second display screen in the HWC to a power-on state in response to the seventh information.
  • the method further includes: after receiving the third information, the HWC updates the state of the first display screen in the HWC to a power-off state.
  • the electronic device is a foldable device; the first display screen is an inner screen of the foldable device, and the second display screen is an outer screen of the foldable device; the method also includes: when the folding angle of the electronic device gradually changes from greater than or equal to a first threshold to less than the first threshold, determining to switch from the first display screen to the second display screen.
  • the electronic device is a foldable device; the first display screen is an outer screen of the foldable device, and the second display screen is an inner screen of the foldable device; the method further includes: when the folding angle of the electronic device gradually changes from less than or equal to a second threshold value to greater than the second threshold value, Confirm the switch from the first display to the second display.
  • an embodiment of the present application provides an electronic device, comprising: a first display screen; a second display screen; a processor; a memory; and one or more computer programs, wherein the computer program is stored in the memory, and when the computer program is executed by the processor, the electronic device executes any one of the methods of the first aspect.
  • an embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored.
  • the computer-readable storage medium is run on a computer, the computer executes any one of the methods of the first aspect or the second aspect.
  • the present application provides a computer program, which, when executed by a computer, is used to execute any one of the methods of the first aspect.
  • the program in the fourth aspect may be stored in whole or in part on a storage medium packaged together with the processor, or may be stored in whole or in part on a memory not packaged together with the processor.
  • FIG1 is a schematic diagram of a structure of an electronic device according to an embodiment of the present application.
  • FIG2 is a schematic diagram of a software structure of an electronic device according to an embodiment of the present application.
  • FIG3A is a schematic diagram of a folding process of a foldable device according to an embodiment of the present application.
  • FIG3B is a schematic diagram of the arrangement positions of inner and outer screens on a foldable device according to an embodiment of the present application.
  • FIG4 is a schematic diagram of a flow chart of a display screen switching method according to an embodiment of the present application.
  • FIG5 is another schematic diagram of the structure of an electronic device according to an embodiment of the present application.
  • FIG6 is another schematic flow chart of a display screen switching method provided in an embodiment of the present application based on the structure shown in FIG5 ;
  • FIG7A is a schematic diagram of the folding process of the foldable mobile phone in an embodiment of the present application.
  • FIG. 7B is a schematic diagram of the unfolding process of the foldable mobile phone in an embodiment of the present application.
  • the user when using the foldable device, the user can choose whether the foldable device is in a folded state or an unfolded state according to different usage scenarios, which can greatly enhance the user experience.
  • the foldable mobile phone can trigger the switching of the display screen on the foldable mobile phone during the process of folding or unfolding.
  • the foldable mobile phone can switch the display screen of the display interface from the inner screen to the outer screen during the folding process.
  • the inner screen switches from the on screen to the off screen, and the outer screen switches from the off screen to the on screen.
  • the display screen of the display interface can be switched from the outer screen to the inner screen.
  • the inner screen switches from the off screen to the on screen, and the outer screen switches from the on screen to the off screen.
  • the display screen when the display screen is switched, after the power-off process of one display screen is completed, the power-on process of another display screen is executed, and after the power-on process of the other display screen is completed, the display screen switching is completed.
  • the display screen there is a large time interval from the screen turning off from one display screen to the screen turning on of another display screen, which affects the user experience.
  • the display screen switching method and electronic device provided in the present application can improve the switching speed of the display screen.
  • FIG1 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
  • the electronic device 100 may include: a processor 110, an internal memory 120, a display screen 130, a folding angle detection component 140, etc.
  • the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100.
  • the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently.
  • the components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and/or a neural-network processing unit (NPU). Different processing units may be independent.
  • the device may also be integrated into one or more processors.
  • the controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.
  • the processor 110 may also be provided with a memory for storing instructions and data.
  • the memory in the processor 110 is a cache memory.
  • the memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
  • the processor 110 may include one or more interfaces.
  • the interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (SIM) interface, and/or a universal serial bus (USB) interface, etc.
  • I2C inter-integrated circuit
  • I2S inter-integrated circuit sound
  • PCM pulse code modulation
  • UART universal asynchronous receiver/transmitter
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB universal serial bus
  • the electronic device 100 implements the display function through a GPU, a display screen 130, and an application processor.
  • the GPU is a microprocessor for image processing, which connects the display screen 130 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations for graphics rendering.
  • the processor 110 may include one or more GPUs, which execute program instructions to generate or change display information.
  • the display screen 130 is used to display images, videos, etc.
  • the display screen 130 includes a display panel.
  • the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diodes (QLED), etc.
  • the electronic device 100 may include 1 or N display screens 130, where N is a positive integer greater than 1.
  • the internal memory 120 can be used to store computer executable program codes, which include instructions.
  • the internal memory 120 may include a program storage area and a data storage area.
  • the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.
  • the data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc.
  • the internal memory 120 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.
  • the processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the internal memory 120 and/or instructions stored in a memory provided in the processor.
  • the folding angle detection component 140 is used to detect the folding angle of the electronic device.
  • the folding angle detection component 140 can be implemented by an angle detection sensor.
  • FIG2 is a block diagram of the software structure of an electronic device provided in an embodiment of the present application.
  • the layered architecture divides the software into several layers, each with clear roles and division of labor.
  • the layers communicate with each other through software interfaces.
  • the present application embodiment takes the Android system as an example to illustrate the software structure of an electronic device of the Android system.
  • the Android system is divided into five layers, namely, from top to bottom, the application layer, the application framework layer (also called: system framework layer), the system library and Android runtime layer, the hardware abstraction layer (HAL) and the kernel layer.
  • the application layer also called: system framework layer
  • the system library and Android runtime layer the hardware abstraction layer (HAL) and the kernel layer.
  • HAL hardware abstraction layer
  • the application layer may include several applications (hereinafter referred to as applications), such as camera, gallery, calendar, WLAN, etc.
  • applications such as camera, gallery, calendar, WLAN, etc.
  • the application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer, including various components and services to support developers' Android development.
  • the application framework layer also includes some predefined functions.
  • the application framework layer may include: a display manager, a layer synthesizer (SurfaceFlinger), etc.
  • the display manager is used to manage the display.
  • SurfaceFlinger is used to synthesize layers that require GPU processing, and send the synthesized layers and layers that require HWC processing to HWC.
  • the system library and Android runtime layer include the system library and Android runtime (Android Runtime).
  • the system library can include multiple functional modules. For example: surface manager, two-dimensional graphics engine, three-dimensional graphics processing library (for example: OpenGL ES), etc.
  • the two-dimensional graphics engine is used to implement two-dimensional graphics drawing, image rendering, synthesis and layer processing, etc.
  • the three-dimensional graphics processing library is used to implement three-dimensional graphics drawing, image rendering, synthesis and layer processing, etc.
  • the Android runtime is responsible for the scheduling and management of the Android system, specifically including the core library and the virtual machine.
  • the core library contains two parts: one part is the function function that needs to be called by the Java language, and the other part is the Android core library; the virtual machine is used to run Run Android applications developed using Java language.
  • the HAL layer is an interface layer between the operating system kernel and the hardware circuit.
  • the HAL layer includes but is not limited to: hardware compositor (hwcomposer, HWC). HWC is used to synthesize layers and provide hardware support for SurfaceFlinger services.
  • the kernel layer is a layer between hardware and software.
  • the kernel layer may include: display driver, folding angle detection driver, etc.
  • the display driver is used to drive the display.
  • the HWC may instruct the display driver to power on or off the display. For example, the HWC may send a blank command or an unblank command to the display driver, the blank command is used to instruct the display to power off, and the unblank command is used to instruct the display to power off.
  • the folding angle detection driver is used to drive the folding angle detection component.
  • the display screen switching method of the embodiment of the present application can be applied to an electronic device provided with at least two display screens.
  • the electronic device can be a foldable device provided with at least two display screens, such as a foldable mobile phone provided with an inner screen and an outer screen.
  • the foldable device may include a first component 101 and a second component 102, wherein the first component 101 and the second component 102 are connected via a folding component 100, and the folding component 100 may support the first component 101 and the second component 102 to be folded or unfolded with the folding component 100 as an axis.
  • the foldable device Based on the folding angle ⁇ of the first component 101 and the second component 102, the foldable device is divided into three states, in other words, the positional relationship between the first component 101 and the second component 102 can be divided into three states, namely:
  • the folding angle ⁇ of the first component 101 and the second component 102 is 180 degrees;
  • the folding angle ⁇ between the first component 101 and the second component 102 is less than 180 degrees and greater than 0 degrees;
  • the folding angle ⁇ between the first component 101 and the second component 102 is 0 degrees.
  • the surface of the foldable device can be divided into an outer surface and an inner surface.
  • the outer surface refers to the surface that the user can see when the foldable device is in a fully folded state, and from the perspective of user viewing and use, it can include the front, back and sides that the user can see when the foldable device is in a fully folded state.
  • the inner surface refers to the surface that the user cannot see when the foldable device is in a fully folded state.
  • the front, back and sides mentioned above can be considered as the front, back and sides from the perspective of user viewing and use.
  • the inner surface of the foldable device may include: a first surface of the first component 101 and a second surface of the second component 102.
  • the first surface of the first component 101 is a surface of the first component 101 that cannot be seen by a user when the foldable device is in a fully folded state
  • the second surface of the second component 102 is a surface of the second component 102 that cannot be seen by a user when the foldable device is in a fully folded state.
  • the outer surface of the foldable device may be provided with a display screen, referred to as an outer screen, and the inner surface of the foldable device may be provided with a display screen, referred to as an inner screen.
  • the outer screen may be a foldable screen or a non-foldable screen.
  • the location of the outer screen on the outer surface is not limited in the present embodiment of the application. For example,
  • the external screen is a non-foldable screen
  • the external screen can be set on the front or back of the foldable device in the fully folded state
  • the outer screen is a foldable screen
  • the outer screen can be set on the front and back of the foldable device in a fully folded state, so that as the first component 101 and the second component 102 are folded or unfolded, the outer screen is folded or unfolded accordingly.
  • the inner screen may be a foldable screen or a non-foldable screen.
  • the location of the inner screen on the inner surface is not limited in the present embodiment. For example,
  • the inner screen may be disposed on the first surface of the first component 101, or may be disposed on the second surface of the second component 102;
  • the inner screen is a foldable screen
  • the inner screen may be disposed on the first surface of the first component 101 and the second surface of the second component 102 , so that as the first component 101 and the second component 102 are folded or unfolded, the inner screen is folded or unfolded accordingly.
  • the outer screen 1011 of the foldable device is disposed on the front of the foldable device in a fully folded state
  • the inner screen 1021 is a foldable screen, which is disposed on the first surface of the first component 101 and the second surface of the second component 102.
  • the foldable device shown in FIG3B may be a foldable mobile phone.
  • the sizes of the outer screen 1011 and the inner screen 1021 are not limited in this embodiment of the application.
  • the electronic device includes two display screens.
  • the electronic device such as a foldable device, may also include a display screen other than the above-mentioned external screen and internal screen, and the embodiments of the present application are not limited thereto.
  • a foldable device including an outer screen and an inner screen as shown in FIG. 3B is taken as an example.
  • FIG4 is a flow chart of a display screen switching method according to an embodiment of the present application, which can be applicable to an electronic device including two or more display screens provided in an embodiment of the present application, such as the foldable device shown in FIG3A and FIG3B above.
  • the electronic device includes a first display screen and a second display screen.
  • the first display screen can be the external screen or the internal screen mentioned above. If the first display screen is the external screen, the second display screen can be the internal screen. If the first display screen is the internal screen, the second display screen can be the external screen.
  • the method may include:
  • Step 401 when switching from the first display screen to the second display screen, controlling the first display screen to start a power-off process
  • Step 402 Before the power-off process of the first display screen is completed, control the second display screen to start the power-on process.
  • the above steps 401 and 402 may be performed by a HWC in the electronic device.
  • the second display screen is controlled to start the power-on process, thereby eliminating the need to wait for the power-off process of the first display screen to be completed before controlling the second display screen to start the power-on process, thereby shortening the switching time from the first display screen to the second display screen and improving the switching speed of the display screens.
  • FIG5 is a schematic diagram of the structure of another embodiment of the electronic device of the present application.
  • the structure of the electronic device can be used to implement the display screen switching method shown in FIG4. As shown in FIG5, it includes:
  • a display manager is used to manage a display screen that displays a user interface based on the folding angle of the electronic device, etc.
  • HWC for layer merging based on the display on which the user interface is displayed.
  • Internal screen driver used to drive the internal screen.
  • External screen driver used to drive the external screen.
  • the folding angle detection driver is used to drive the folding angle detection component.
  • the display manager and Surfacefling can be set in the application framework layer of the electronic device.
  • the HWC can be set in the HAL layer of the electronic device, and the inner screen driver, outer screen driver and folding angle detection driver can be set in the kernel layer of the electronic device.
  • the structure shown in FIG. 5 is only an example.
  • the modules in the above structure may be merged or split, or the layer where the above modules are located may also be adaptively adjusted based on the software structure of the electronic device, etc.
  • the following is an exemplary description of the implementation of the display screen switching method shown in FIG. 4 based on the electronic device structure shown in FIG. 5 .
  • Figure 6 is another flow chart of the display screen switching method according to an embodiment of the present application.
  • the electronic device is a foldable mobile phone
  • the foldable mobile phone includes an inner screen and an outer screen.
  • Step 601 The display screen manager receives the detection data of the folding angle sent by the angle detection component driver.
  • the angle detection component driver can periodically send the detected folding angle to the display manager, and the specific value of the period is not limited in the embodiment of the present application.
  • the display manager can more accurately determine the triggering timing of subsequent display switching.
  • Step 602 The display screen manager determines, based on the detection data of the folding angle, that a first switching condition for switching the display screen from the inner screen to the outer screen is satisfied, and determines to switch from the inner screen to the outer screen.
  • switching of the display screen may be triggered during the folding or unfolding process of the electronic device.
  • the display screen can be switched from the inner screen to the outer screen, that is, the inner screen is powered off and the outer screen is powered on.
  • a first angle threshold ⁇ 1 can be preset.
  • the display screen is triggered to switch from the inner screen to the outer screen.
  • the above first switching condition is that the folding angle changes from greater than or equal to ⁇ 1 to less than ⁇ 1.
  • the display screen can be switched from the outer screen to the inner screen, that is, the outer screen is powered off and the inner screen is powered on.
  • a second angle threshold ⁇ 2 can be preset.
  • the display screen is triggered to switch from the outer screen to the inner screen.
  • the second switching condition for switching from the outer screen to the inner screen is that the folding angle changes from less than or equal to ⁇ 2 to greater than ⁇ 2.
  • ⁇ 1 and ⁇ 2 may be equal or unequal, which is not limited in the embodiment of the present application.
  • Step 603 The display manager sends a first indication message to Surfaceflinger, where the first indication message is used to instruct the internal screen to power off.
  • Step 604 Surfaceflinger sends a second indication message to the HWC, where the second indication message is used to instruct the internal screen to power off.
  • Step 605 HWC sends a third indication message to the internal screen driver, and the third indication message is used to instruct the internal screen driver to power off the internal screen, and execute step 606; HWC sends a first feedback message to Surfaceflinger, and the first feedback message is used to indicate to Surfaceflinger that the internal screen power-off is completed, and execute step 608.
  • the third indication information may be a blank command.
  • the HWC after the HWC sends the third indication information to the internal screen driver, it is necessary to wait for the internal screen driver to complete the internal screen power-off process and then feedback the second feedback information to the HWC to indicate that the internal screen power-off is completed. After receiving the above-mentioned second feedback information, the HWC sends the above-mentioned first feedback information to Surfaceflinger. In the embodiment of the present application shown in Figure 6, after the HWC receives the third indication information, it can send the first feedback information to Surfaceflinger.
  • the first feedback information can be sent to Surfaceflinger, which saves the time for the HWC to wait for the internal screen driver to control the internal screen to execute the power-off process and send the first feedback information to the HWC, shortens the time for the internal screen to power off and the external screen to power on, that is, shortens the display screen switching time, and improves the display screen switching speed.
  • a thread may be preset to send feedback information that the display screen is powered off to Surfaceflinger.
  • the HWC may call the thread to send the first feedback information to Surfaceflinger through the thread.
  • the execution order between the above-mentioned steps of HWC sending the third indication information to the internal screen driver and HWC sending the first feedback information to Surfaceflinger is not limited in the embodiment of the present application, as long as the step of HWC sending the first feedback information to Surfaceflinger is executed before HWC receives the second feedback information sent by the internal screen driver.
  • HWC can directly send the first feedback information to Surfaceflinger without waiting, thereby minimizing the time that HWC waits for the internal screen driver to control the internal screen to execute the power-off process and send the first feedback information to HWC, thereby shortening the display screen switching time.
  • Step 606 the inner screen driver starts the power-off process of the inner screen. After the power-off process is completed, the second feedback information is sent to the HWC. The second feedback information is used to indicate to the HWC that the power-off process of the inner screen is completed, and step 607 is executed.
  • the display driver controls the power on and off of the display screen, and there are corresponding processes. Different display screens may have different power on and off processes.
  • the power off process of the display driver may include: powering off the backlight IC, powering off the bias IC, powering off the MIPI, powering off the display panel (for example, LCD), etc. The power off process of the display screen is completed.
  • the process of the internal screen driver controlling the internal screen power-off may include but is not limited to: powering off the backlight IC, powering off the bias IC, powering off the MIPI, powering off the LCD, etc. in sequence.
  • Step 607 HWC updates the internal screen to a power-off state, and this branch process ends.
  • the HWC can save the power-on and power-off status of the display screen, which can be achieved by setting corresponding power-on and power-off status parameters for each display screen.
  • Different parameter values of the power-on and power-off status parameters can respectively indicate that the display screen is in a power-on state (for example, the parameter value is 0) or a power-off state (for example, the parameter value is 1).
  • the power on and off status parameters of the display screen in the HWC can be: inner screen: 0, outer screen: 1; after receiving the second feedback information, the power on and off status parameters of the display screen in the HWC can be: inner screen: 1, outer screen: 1.
  • Step 608 Surfaceflinger updates the inner screen to a power-off state, and sends a third feedback message to the display manager, where the third feedback message is used to indicate to the display manager that the inner screen has been powered off.
  • Surfaceflinger can save the power-on and power-off states of the display screen, which can be achieved by setting corresponding power-on and power-off state parameters for each display screen, and using different parameter values to identify whether the display screen is in the power-on state (for example, the parameter value is 0) or the power-off state (for example, the parameter value is 1).
  • the power status parameters of the display screen in Surfaceflinger can be: inner screen: 0, outer screen: 1; after receiving the third feedback information, the power status parameters of the display screen in Surfaceflinger can be: inner screen: 1, outer screen: 1.
  • Step 609 The display manager sends fourth indication information to Surfaceflinger, where the fourth indication information is used to instruct the external screen to power on.
  • Step 610 Surfaceflinger sends fifth indication information to HWC, where the fifth indication information is used to instruct the external screen to power on.
  • Step 611 The HWC sends sixth indication information to the external screen driver, where the sixth indication information is used to instruct the external screen driver to power on the external screen.
  • Step 612 The external screen driver starts the power-on process of the external screen. After the power-on process is completed, the fourth feedback information is sent to the HWC. The fourth feedback information is used to indicate to the HWC that the power-on of the external screen is completed.
  • Step 613 HWC updates the external screen to a powered-on state, and sends fifth feedback information to Surfaceflinger, where the fifth feedback information is used to indicate to Surfaceflinger that the external screen is powered-on.
  • the power on and off status parameters of the display screen in the HWC may be: inner screen: 1, outer screen: 1; after receiving the fifth feedback information, the power on and off status parameters of the display screen in the HWC may be: inner screen: 1, outer screen: 0.
  • Step 614 Surfaceflinger updates the external screen to a powered-on state, and sends sixth feedback information to the display manager, where the sixth feedback information is used to indicate to the display manager that the external screen is powered-on successfully.
  • the power status parameters of the display screen in Surfaceflinger can be: inner screen: 1, outer screen: 1; after receiving the sixth feedback information, the power status parameters of the display screen in Surfaceflinger can be: inner screen: 1, outer screen: 0.
  • An embodiment of the present application also provides an electronic device, including a first display screen, a second display screen, a processor, and a memory, wherein the processor is used to execute the method provided in any embodiment of the present application.
  • An embodiment of the present application also provides an electronic device, which includes a storage medium and a central processing unit.
  • the storage medium may be a non-volatile storage medium, in which a computer executable program is stored.
  • the central processing unit is connected to the non-volatile storage medium and executes the computer executable program to implement the method provided in any embodiment of the present application.
  • An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored.
  • the computer-readable storage medium is run on a computer, the computer executes a method provided in any embodiment of the present application.
  • An embodiment of the present application also provides a computer program product, which includes a computer program.
  • the computer program When the computer program is run on a computer, the computer executes a method provided by any embodiment shown in the present application.
  • “at least one” refers to one or more, and “more than one” refers to two or more.
  • “And/or” describes the association relationship of associated objects, indicating that three relationships may exist.
  • a and/or B can represent the existence of A alone, the existence of A and B at the same time, and the existence of B alone. Among them, A and B can be singular or plural.
  • the character “/” generally indicates that the previous and next associated objects are in an "or” relationship.
  • “At least one of the following” and similar expressions refer to any combination of these items, including any combination of single or plural items.
  • At least one of a, b and c can be represented by: a, b, c, a and b, a and c, b and c, or a and b and c, where a, b, c can be single or multiple.
  • any function can be stored in a computer-readable storage medium if it is implemented in the form of a software functional unit and sold or used as an independent product.
  • the technical solution of the present application or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application.
  • the aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory; hereinafter referred to as: ROM), random access memory (Random Access Memory; hereinafter referred to as: RAM), disk or optical disk, and other media that can store program codes.
  • ROM read-only memory
  • RAM random access memory
  • disk or optical disk and other media that can store program codes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Environmental & Geological Engineering (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

一种显示屏切换方法和电子设备,所述方法应用于电子设备,所述电子设备包括第一显示屏和第二显示屏;所述方法包括:在从第一显示屏切换到第二显示屏时,控制所述第一显示屏启动下电流程;在所述第一显示屏的下电流程完成之前,控制所述第二显示屏启动上电流程。本申请能够提高显示屏的切换速度。

Description

显示屏切换方法和电子设备
本发明要求于2022年09月30日提交中国专利局、申请号为202211209641.9、申请名称为“显示屏切换方法和电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及显示屏切换技术领域,尤其涉及显示屏切换方法和电子设备。
背景技术
目前,如果电子设备上设置有2个或者2个以上的显示屏,电子设备可能需要在界面显示过程中进行显示屏的切换。显示屏切换可以包括一个显示屏从亮屏到灭屏,另一个显示屏从灭屏到亮屏的过程。
目前,显示屏的切换速度较慢,影响用户体验。
发明内容
本申请提供了一种显示屏切换方法和电子设备,能够提高显示屏的切换速度。
第一方面,本申请实施例提供一种显示屏切换方法,方法应用于电子设备,电子设备包括第一显示屏和第二显示屏;方法包括:在从第一显示屏切换到第二显示屏时,控制第一显示屏启动下电流程;在第一显示屏的下电流程完成之前,控制第二显示屏启动上电流程。该方法在控制第一显示屏启动下电流程之后,第一显示屏的下电流程完成之前,控制第二显示屏启动上电流程,从而无需等待第一显示屏的下电流程完成才启动第二显示屏的上电流程,从而缩短从第一显示屏到第二显示屏的切换时间,提高显示屏的切换速度。
在一种可能的实现方式中,控制第一显示屏启动下电流程,包括:HWC接收第一信息,第一信息用于指示对第一显示屏下电;响应于第一信息,HWC向第一显示屏驱动发送第二信息,第二信息用于指示第一显示屏驱动启动第一显示屏的下电流程,第一显示屏驱动用于驱动第一显示屏;
在第一显示屏的下电流程完成之前,包括:在HWC接收到第一显示屏驱动发送的第三信息之前,第三信息由第一显示屏驱动对第一显示屏下电完成后发送,第三信息用于向HWC指示第一显示屏下电完成。
在一种可能的实现方式中,控制第二显示屏启动上电流程,包括:HWC向第二显示屏驱动发送第四信息,第四信息用于指示第二显示屏驱动启动第二显示屏的上电流程,第二显示屏驱动用于驱动第二显示屏。
在一种可能的实现方式中,第一信息由显示屏管理器发送,控制第二显示屏启动上电流程,还包括:HWC响应于第一信息,向显示屏管理器发送第五信息,第五信息用于指示第一显示屏下电完成;HWC接收显示屏管理器发送的第六信息,第六信息用于指示HWC对第二显示屏上电。
在一种可能的实现方式中,方法还包括:HWC接收第二显示屏驱动发送的第七信息,第七信息由第二显示屏驱动对第二显示屏上电完成后发送,第七信息用于向HWC指示第二显示屏上电完成;HWC响应于第七信息,向显示屏管理器发送第八信息,第八信息用于向显示屏管理器指示第二显示屏上电完成。
在一种可能的实现方式中,HWC和显示屏管理器之间传输的信息通过Surfaceflinger转发。
在一种可能的实现方式中,方法还包括:HWC响应于第七信息,更新HWC中第二显示屏的状态为上电状态。
在一种可能的实现方式中,方法还包括:HWC在接收到第三信息后,更新HWC中第一显示屏的状态为下电状态。
在一种可能的实现方式中,电子设备是可折叠设备;第一显示屏是可折叠设备的内屏,第二显示屏是可折叠设备的外屏;方法还包括:在电子设备的折叠角度从大于等于第一阈值渐变为小于第一阈值时,确定从第一显示屏切换至第二显示屏。
在一种可能的实现方式中,电子设备是可折叠设备;第一显示屏是可折叠设备的外屏,第二显示屏是可折叠设备的内屏;方法还包括:在电子设备的折叠角度从小于等于第二阈值渐变为大于第二阈值时, 确定从第一显示屏切换至第二显示屏。
第二方面,本申请实施例提供一种电子设备,包括:第一显示屏;第二显示屏;处理器;存储器;以及一个或多个计算机程序,其中计算机程序被存储在存储器中,计算机程序被处理器执行时,使得电子设备执行第一方面任一项的方法。
第三方面,本申请实施例提供一种计算机可读存储介质,计算机可读存储介质中存储有计算机程序,当其在计算机上运行时,使得计算机执行第一方面或者第二方面任一项的方法。
第四方面,本申请提供一种计算机程序,当计算机程序被计算机执行时,用于执行第一方面任一项的方法。
在一种可能的设计中,第四方面中的程序可以全部或者部分存储在与处理器封装在一起的存储介质上,也可以部分或者全部存储在不与处理器封装在一起的存储器上。
附图说明
为了更清楚地说明本发明实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。
图1为本申请实施例电子设备的一种结构示意图;
图2为本申请实施例电子设备的一种软件结构示意图;
图3A为本申请实施例可折叠设备的折叠过程示意图;
图3B为本申请实施例可折叠设备上内外屏的设置位置示意图;
图4为本申请实施例显示屏切换方法的一种流程示意图;
图5为本申请实施例电子设备的另一种结构示意图;
图6为本申请实施例基于图5所示结构提供的显示屏切换方法的另一种流程示意图;
图7A为本申请实施例中可折叠手机的折叠过程示意图;
图7B为本申请实施例中可折叠手机的展开过程示意图。
具体实施方式
本申请的实施方式部分使用的术语仅用于对本申请的具体实施例进行解释,而非旨在限定本申请。
以电子设备是可折叠设备为例,用户在使用可折叠设备时,可以根据不同的使用场景,选择可折叠设备处于折叠态或者展开态,能够极大的提升用户体验。
以可折叠设备是设置有内屏和外屏的可折叠手机为例,可折叠手机可以在折叠或者展开的过程中触发可折叠手机上的显示屏切换,具体而言,可折叠手机在折叠过程中可以将显示界面的显示屏从内屏切换至外屏,此时,内屏从亮屏切换到灭屏,外屏从灭屏切换到亮屏,在展开过程中可以将显示界面的显示屏从外屏切换至内屏,此时,内屏从灭屏切换到亮屏,外屏从亮屏切换到灭屏。
在一个实例中,显示屏切换是一个显示屏的下电流程执行完成后,执行另一个显示屏的上电流程,在上述另一个显示屏的上电流程完成后,显示屏的切换完成。但是,该实例中从一个显示屏灭屏到另一个显示屏亮屏,会存在较大的时间间隔,从而影响用户的使用体验。
而本申请提供的显示屏切换方法和电子设备,能够提高显示屏的切换速度。
图1为本申请实施例提供的电子设备的一种结构示意图,如图1所示,电子设备100可以包括:处理器110,内部存储器120,显示屏130,折叠角度检测部件140,等。
可以理解的是,本发明实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立 的器件,也可以集成在一个或多个处理器中。
控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。
电子设备100通过GPU,显示屏130,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏130和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏130用于显示图像,视频等。显示屏130包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏130,N为大于1的正整数。
内部存储器120可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。内部存储器120可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器120可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。处理器110通过运行存储在内部存储器120的指令,和/或存储在设置于处理器中的存储器的指令,执行电子设备100的各种功能应用以及数据处理。
折叠角度检测部件140,用于检测电子设备的折叠角度。可选地,折叠角度检测部件140可以通过角度检测传感器实现。
图2所示为本申请实施例提供的一种电子设备的软件结构框图。分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。本申请实施例以安卓(Android)系统为例,对Android系统的电子设备的软件结构进行说明。在一些实施例中,将Android系统分为五层,从上至下分别为应用程序层、应用程序框架层(也称:系统框架层)、系统库和安卓运行时层、硬件抽象层(hardware abstraction layer,HAL)和内核层。
应用程序层可以包括若干个应用程序(下文简称为应用),例如相机,图库,日历,WLAN等。
应用程序框架层为应用程序层的应用提供应用编程接口(Application Programming Interface,API)和编程框架,包括各种组件和服务来支持开发者的安卓开发。应用程序框架层还包括一些预先定义的函数。本申请实施例中,应用程序框架层可以包括:显示屏管理器,图层合成器(SurfaceFlinger),等。
显示屏管理器用于管理显示屏。
SurfaceFlinger用于对需要GPU处理的图层(Layer)进行合成,将合成得到的图层和需要HWC处理的图层发送至HWC。
系统库和安卓运行时层包括系统库和安卓运行时(Android Runtime)。系统库可以包括多个功能模块。例如:表面管理器、二维图形引擎、三维图形处理库(例如:OpenGL ES)等。其中,二维图形引擎用于实现二维图形绘图,图像渲染,合成和图层处理等;三维图形处理库用于实现三维图形绘图,图像渲染,合成和图层处理等。安卓运行时负责安卓系统的调度和管理,具体包括核心库和虚拟机。其中,核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库;虚拟机用于运 行使用java语言开发的Android应用。
HAL层为位于操作系统内核与硬件电路之间的接口层。HAL层包括但不限于:硬件合成器(hwcomposer,HWC)。HWC用于进行图层的合成,为SurfaceFlinger服务提供硬件支持。
内核层是硬件和软件之间的层。内核层可以包括:显示屏驱动,折叠角度检测驱动等。显示屏驱动用于驱动显示屏。HWC可以向显示屏驱动指示进行显示屏的上电或者下电。例如,HWC可以向显示屏驱动发送blank命令或者unblank命令,blank命令用于指示显示屏下电,unblank命令用于指示显示屏下电。折叠角度检测驱动用于驱动折叠角度检测部件。
以下实施例中,将结合上述电子设备的软件结构对本申请实施例显示屏切换方法进行详细说明。
本申请实施例显示屏切换方法可以适用于设置有至少2个显示屏的电子设备。举例来说,该电子设备可以是设置有至少2个显示屏的可折叠设备,例如设置有内屏和外屏的可折叠手机。
在一个实施例中,如图3A所示,可折叠设备可以包括第一部件101和第二部件102,第一部件101和第二部件102通过折叠部件100连接,折叠部件100可以支持第一部件101和第二部件102以折叠部件100为轴折叠或者展开。基于第一部件101和第二部件102的折叠角度θ,可折叠设备分为三种状态,换言之,第一部件101和第二部件102的位置关系可以分为三种状态,分别是:
完全展开状态,此时,第一部件101和第二部件102的折叠角度θ为180度;
不完全折叠状态,此时,第一部件101和第二部件102的折叠角度θ小于180度,大于0度;
完全折叠状态,此时,第一部件101和第二部件102的折叠角度θ为0度。
基于可折叠设备处于完全折叠状态时用户是否可见,可以将可折叠设备的表面划分为外表面和内表面。外表面是指可折叠设备在完全折叠状态下用户可以看到的表面,以用户观看和使用角度而言,可以包括可折叠设备在完全折叠状态下用户可以看到的正面、背面和侧面。内表面是指可折叠设备在完全折叠状态时用户无法看到的表面。上述的正面、背面和侧面可以认为是以用户观看和使用角度而言的正面、背面和侧面。
其中,可折叠设备的内表面可以包括:第一部件101的第一表面和第二部件102的第二表面。第一部件101的第一表面是可折叠设备在完全折叠状态时第一部件101的表面中用户无法看到的表面,第二部件102的第二表面是可折叠设备在完全折叠状态时第二部件102的表面中用户无法看到的表面。
以可折叠设备设置有2个显示屏为例。
可折叠设备的外表面可以设置有一显示屏,称为外屏,可折叠设备的内表面可以设置有一显示屏,称为内屏。
外屏可以是可折叠屏或者不可折叠屏。外屏在外表面上的设置位置本申请实施例不作限定。例如,
如果外屏是不可折叠屏,外屏可以设置于可折叠设备在完全折叠状态下的正面或者背面;
如果外屏是可折叠屏,外屏可以设置于可折叠设备在完全折叠状态下的正面和背面,从而随着第一部件101和第二部件102的折叠或展开,外屏随之折叠或展开。
内屏可以是可折叠屏或者不可折叠屏。内屏在内表面上的设置位置本申请实施例不作限定。例如,
如果内屏是不可折叠屏,内屏可以设置于第一部件101的第一表面,或者可以设置于第二部件102的第二表面;
如果内屏是可折叠屏,内屏可以设置于第一部件101的第一表面和第二部件102的第二表面,从而随着第一部件101和第二部件102的折叠或展开,内屏随之折叠或展开。
例如,图3B所示的可折叠设备中,可折叠设备的外屏1011设置于可折叠设备在完全折叠状态下的正面,内屏1021是可折叠屏,同时设置于第一部件101的第一表面和第二部件102的第二表面,随着第一部件101和第二部件102以折叠部件100为轴折叠或者展开,内屏1021随之折叠或者展开。在一些实施例中,图3B所示的可折叠设备可以是可折叠手机。
需要说明的是,上述外屏1011和内屏1021的尺寸本申请实施例不作限定。
需要说明的是,以上实施例中以电子设备包括2个显示屏为例,在本申请的其他实施例中,电子设备例如可折叠设备还可以包括上述外屏和内屏之外的显示屏,本申请实施例不作限定。
本申请实施例中,以图3B所示的包括外屏和内屏的可折叠设备为例。
图4是本申请实施例显示屏切换方法的一种流程示意图,可以适用于本申请实施例提供的包括2个或2个以上显示屏的电子设备,例如上述图3A和图3B所示的可折叠设备等。
图4中假设电子设备包括第一显示屏和第二显示屏。第一显示屏可以是上述的外屏或者内屏,如果第一显示屏是外屏,第二显示屏可以是内屏,如果第一显示屏是内屏,第二显示屏可以是外屏。
如图4所示,该方法可以包括:
步骤401:在从第一显示屏切换至第二显示屏时,控制第一显示屏启动下电流程;
步骤402:在第一显示屏的下电流程完成之前,控制第二显示屏启动上电流程。
可选地,上述步骤401和步骤402可以由电子设备中的HWC执行。
图4所示的显示屏切换方法中,在控制第一显示屏启动下电流程之后,第一显示屏的下电流程完成之前,控制第二显示屏启动上电流程,从而无需等待第一显示屏的下电流程完成才控制第二显示屏启动上电流程,从而缩短从第一显示屏到第二显示屏的切换时间,提高显示屏的切换速度。
图5为本申请电子设备另一个实施例的结构示意图,以电子设备是图3B所示的包括内屏和外屏的可折叠手机为例,该电子设备的结构可以用于实现图4所示显示屏切换方法。如图5所示,包括:
显示屏管理器,用于基于电子设备的折叠角度等管理显示用户界面的显示屏。
Surfaceflinger,用于进行图层合成。
HWC,用于根据显示用户界面的显示屏进行图层合并。
内屏驱动,用于驱动内屏。
外屏驱动,用于驱动外屏。
折叠角度检测驱动,用于驱动折叠角度检测部件。
显示屏管理器和Surfacefling可以设置于电子设备的应用程序框架层。HWC可以设置于电子设备的HAL层,内屏驱动、外屏驱动和折叠角度检测驱动可以设置于电子设备的内核层。
需要说明的是,图5所示结构仅为示例,在本申请提供的其他实施例中,可以将上述结构中的模块进行合并或者拆分,或者,上述模块所在的层也可以基于电子设备的软件结构适应性调整,等。
以下基于图5所示的电子设备结构对图4所示的显示屏切换方法的实现进行示例性说明。
图6为本申请实施例显示屏切换方法的另一种流程示意图,该方法中,以电子设备是可折叠手机,可折叠手机包括内屏和外屏为例。
步骤601:显示屏管理器接收角度检测组件驱动发送的折叠角度的检测数据。
角度检测组件驱动可以周期性地向显示屏管理器发送检测到的折叠角度,周期的具体取值本申请实施例不作限定。
需要说明的是,周期值越小,角度检测组件驱动对于折叠角度检测的精确度越高,相应的,显示屏管理器对于后续显示屏切换的触发时机的确定更为精确。
步骤602:显示屏管理器根据折叠角度的检测数据确定满足显示屏从内屏切换至外屏的第一切换条件,确定从内屏切换至外屏。
可选地,显示屏的切换可以在电子设备折叠的过程或者展开的过程中触发。
对于电子设备的折叠过程,如图7A所示,在电子设备处于完全展开状态时,第一部件和第二部件相向运动,折叠角度从180度开始逐渐减小,直到最终减小至0度,变为完全折叠状态,在这一折叠过程中,可以将显示屏从内屏切换至外屏,也即内屏下电,外屏上电,具体的,可以预设第一角度阈值θ1,在上述折叠过程中,折叠角度从大于等于θ1变化为小于θ1时,也即从折叠角度为180度折叠至图7A中中间附图所示的折叠角度θ1后再继续折叠时,触发显示屏从内屏切换至外屏,在该实现方式下,上述第一切换条件为折叠角度从大于等于θ1变化为小于θ1。
对于电子设备的展开过程,如图7B所示,在电子设备处于完全折叠状态时,第一部件和第二部件背向运动,折叠角度从0度开始逐渐增加,直到最终增加至180度,变为完全展开状态,在这一展开过程中,可以将显示屏从外屏切换至内屏,也即外屏下电,内屏上电,具体的,可以预设第二角度阈值θ2,在上述展开过程中,折叠角度从小于等于θ2变化为大于θ2时,也即从折叠角度为0度展开至图7B中中间附图所示的折叠角度θ2后再继续折叠时,触发显示屏从外屏切换至内屏,在该实现方式下,从外屏切换至内屏的第二切换条件为折叠角度从小于等于θ2变化为大于θ2。
其中,θ1和θ2可以相等或者不相等,本申请实施例不作限定。
步骤603:显示屏管理器向Surfaceflinger发送第一指示信息,第一指示信息用于指示内屏下电。
步骤604:Surfaceflinger向HWC发送第二指示信息,第二指示信息用于指示内屏下电。
步骤605:HWC向内屏驱动发送第三指示信息,第三指示信息用于指示内屏驱动对内屏下电,执行步骤606;HWC向Surfaceflinger发送第一反馈信息,第一反馈信息用于向Surfaceflinger指示内屏下电完成,执行步骤608。
举例来说,第三指示信息可以是blank命令。
在其他实施例中,HWC向内屏驱动发送第三指示信息后,需要等待内屏驱动完成内屏下电流程后,向HWC反馈第二反馈信息,以指示内屏下电完成,HWC接收到上述第二反馈信息后,向Surfaceflinger发送上述第一反馈信息,而图6所示的本申请实施例中,HWC接收到第三指示信息后,即可以向Surfaceflinger发送第一反馈信息,从而相比于上述其他实施例,本步骤中在HWC接收到内屏驱动反馈的第二反馈信息之前,即可以向Surfaceflinger发送第一反馈信息,节省了HWC等待内屏驱动控制内屏执行下电流程并向HWC发送第一反馈信息的时间,缩短了内屏下电、外屏上电的时间,也即缩短了显示屏切换时间,提升了显示屏切换速度。
可选地,可以预设一线程,用于向Surfaceflinger发送显示屏下电完成的反馈信息,则本步骤中,HWC可以通过调用该线程,通过该线程向Surfaceflinger发送上述第一反馈信息。
上述HWC向内屏驱动发送第三指示信息和HWC向Surfaceflinger发送第一反馈信息这两个步骤之间的执行顺序,本申请实施例不作限定,只要HWC向Surfaceflinger发送第一反馈信息的步骤在HWC接收到内屏驱动发送的第二反馈信息之前执行即可。
可选地,HWC接收到上述第二指示信息后,可以无需等待,直接向Surfaceflinger发送第一反馈信息,从而最大限度减少HWC等待内屏驱动控制内屏执行下电流程并向HWC发送第一反馈信息的时间,缩短显示屏切换时间。
步骤606:内屏驱动启动内屏的下电流程,在下电流程执行完毕后,向HWC发送第二反馈信息,第二反馈信息用于向HWC指示内屏的下电流程完成,执行步骤607;
显示屏驱动控制显示屏上下电有相应的流程,不同的显示屏可能具有不同的上下电流程,举例来说,显示屏驱动的下电流程可以包括:进行背光IC下电、偏压IC下电、MIPI下电、显示面板(例如,LCD)下电等等,显示屏的下电流程执行完成,
举例来说,内屏驱动控制内屏下电的流程可以包括但不限于:依次进行背光IC的下电,偏压IC的下电,MIPI下电,LCD下电,等。
步骤607:HWC更新内屏为下电状态,本分支流程结束。
其中,HWC中可以保存显示屏的上下电状态,具体可以通过为每个显示屏设置对应的上下电状态参数实现,该上下电状态参数的不同参数值可以分别标识显示屏处于上电状态(例如,参数值为0)或者下电状态(例如,参数值为1)。
举例来说,HWC在接收到第二反馈信息之前,HWC中显示屏的上下电状态参数可以为:内屏:0,外屏:1;接收到第二反馈信息之后,HWC中显示屏的上下电状态参数可以为:内屏:1,外屏:1。
步骤608:Surfaceflinger更新内屏为下电状态,并且,向显示屏管理器发送第三反馈信息,第三反馈信息用于向显示屏管理器指示内屏下电完成。
其中,Surfaceflinger中可以保存显示屏的上下电状态,具体可以通过为每个显示屏设置对应的上下电状态参数实现,使用不同的参数值来标识显示屏处于上电状态(例如,参数值为0)或者下电状态(例如,参数值为1)。
举例来说,Surfaceflinger在接收到第三反馈信息之前,Surfaceflinger中显示屏的上下电状态参数可以为:内屏:0,外屏:1;接收到第三反馈信息之后,Surfaceflinger中显示屏的上下电状态参数可以为:内屏:1,外屏:1。
步骤609:显示屏管理器向Surfaceflinger发送第四指示信息,第四指示信息用于指示外屏上电。
步骤610:Surfaceflinger向HWC发送第五指示信息,第五指示信息用于指示外屏上电。
步骤611:HWC向外屏驱动发送第六指示信息,第六指示信息用于指示外屏驱动对外屏上电。
步骤612:外屏驱动启动外屏的上电流程,上电流程执行完毕后,向HWC发送第四反馈信息,第四反馈信息用于向HWC指示外屏上电完成。
步骤613:HWC更新外屏为上电状态,并且,向Surfaceflinger发送第五反馈信息,第五反馈信息用于向Surfaceflinger指示外屏上电完成。
举例来说,HWC在接收到第五反馈信息之前,HWC中显示屏的上下电状态参数可以为:内屏:1,外屏:1;接收到第五反馈信息之后,HWC中显示屏的上下电状态参数可以为:内屏:1,外屏:0。
步骤614:Surfaceflinger更新外屏为上电状态,并且,向显示屏管理器发送第六反馈信息,第六反馈信息用于向显示屏管理器指示外屏上电完成。
举例来说,Surfaceflinger在接收到第六反馈信息之前,Surfaceflinger中显示屏的上下电状态参数可以为:内屏:1,外屏:1;接收到第六反馈信息之后,Surfaceflinger中显示屏的上下电状态参数可以为:内屏:1,外屏:0。
至此,由显示屏管理器触发的从内屏到外屏的切换完成。
本申请实施例还提供一种电子设备,包括第一显示屏,第二显示屏,处理器,和存储器,处理器用于执行本申请任一实施例提供的方法。
本申请实施例还提供一种电子设备,所述设备包括存储介质和中央处理器,所述存储介质可以是非易失性存储介质,所述存储介质中存储有计算机可执行程序,所述中央处理器与所述非易失性存储介质连接,并执行所述计算机可执行程序以实现本申请任一实施例提供的方法。
本申请实施例还提供一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,当其在计算机上运行时,使得计算机执行本申请任一实施例提供的方法。
本申请实施例还提供一种计算机程序产品,该计算机程序产品包括计算机程序,当其在计算机上运行时,使得计算机执行本申请所示任一实施例提供的方法。
本申请实施例中,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示单独存在A、同时存在A和B、单独存在B的情况。其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项”及其类似表达,是指的这些项中的任意组合,包括单项或复数项的任意组合。例如,a,b和c中的至少一项可以表示:a,b,c,a和b,a和c,b和c或a和b和c,其中a,b,c可以是单个,也可以是多个。
本领域普通技术人员可以意识到,本文中公开的实施例中描述的各单元及算法步骤,能够以电子硬件、计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,任一功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory;以下简称:ROM)、随机存取存储器(Random Access Memory;以下简称:RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本申请的具体实施方式,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本申请的保护范围之内。本申请的保护范围应以所述权利要求的保护范围为准。

Claims (12)

  1. 一种显示屏切换方法,其特征在于,所述方法应用于电子设备,所述电子设备包括第一显示屏和第二显示屏;所述方法包括:
    在从第一显示屏切换到第二显示屏时,控制所述第一显示屏启动下电流程;
    在所述第一显示屏的下电流程完成之前,控制所述第二显示屏启动上电流程。
  2. 根据权利要求1所述的方法,其特征在于,所述控制所述第一显示屏启动下电流程,包括:
    HWC接收第一信息,所述第一信息用于指示对所述第一显示屏下电;
    响应于所述第一信息,所述HWC向第一显示屏驱动发送第二信息,所述第二信息用于指示所述第一显示屏驱动启动所述第一显示屏的下电流程,所述第一显示屏驱动用于驱动所述第一显示屏;
    所述在所述第一显示屏的下电流程完成之前,包括:
    在所述HWC接收到所述第一显示屏驱动发送的第三信息之前,所述第三信息由所述第一显示屏驱动对所述第一显示屏下电完成后发送,所述第三信息用于向所述HWC指示所述第一显示屏下电完成。
  3. 根据权利要求2所述的方法,其特征在于,所述控制所述第二显示屏启动上电流程,包括:
    所述HWC向第二显示屏驱动发送第四信息,所述第四信息用于指示所述第二显示屏驱动启动所述第二显示屏的上电流程,所述第二显示屏驱动用于驱动所述第二显示屏。
  4. 根据权利要求3所述的方法,其特征在于,所述第一信息由显示屏管理器发送,所述控制所述第二显示屏启动上电流程,还包括:
    所述HWC响应于所述第一信息,向所述显示屏管理器发送第五信息,所述第五信息用于指示所述第一显示屏下电完成;
    所述HWC接收所述显示屏管理器发送的第六信息,所述第六信息用于指示所述HWC对所述第二显示屏上电。
  5. 根据权利要求4所述的方法,其特征在于,所述方法还包括:
    所述HWC接收所述第二显示屏驱动发送的第七信息,所述第七信息由所述第二显示屏驱动对所述第二显示屏上电完成后发送,所述第七信息用于向所述HWC指示所述第二显示屏上电完成;
    所述HWC响应于所述第七信息,向所述显示屏管理器发送第八信息,所述第八信息用于向所述显示屏管理器指示所述第二显示屏上电完成。
  6. 根据权利要求4或5所述的方法,其特征在于,所述HWC和所述显示屏管理器之间传输的信息通过Surfaceflinger转发。
  7. 根据权利要求5所述的方法,其特征在于,所述方法还包括:
    所述HWC响应于所述第七信息,更新HWC中所述第二显示屏的状态为上电状态。
  8. 根据权利要求2至5任一项所述的方法,其特征在于,所述方法还包括:
    所述HWC在接收到所述第三信息后,更新HWC中所述第一显示屏的状态为下电状态。
  9. 根据权利要求1至8任一项所述的方法,其特征在于,所述电子设备是可折叠设备;所述第一显示屏是所述可折叠设备的内屏,所述第二显示屏是所述可折叠设备的外屏;所述方法还包括:
    在所述电子设备的折叠角度从大于等于第一阈值渐变为小于所述第一阈值时,确定从所述第一显示屏切换至所述第二显示屏。
  10. 根据权利要求1至8任一项所述的方法,其特征在于,所述电子设备是可折叠设备;所述第一显示屏是所述可折叠设备的外屏,所述第二显示屏是所述可折叠设备的内屏;所述方法还包括:
    在所述电子设备的折叠角度从小于等于第二阈值渐变为大于所述第二阈值时,确定从所述第一显示屏切换至所述第二显示屏。
  11. 一种电子设备,其特征在于,包括:第一显示屏;第二显示屏;处理器;存储器;以及一个或多个计算机程序,其中所述计算机程序被存储在所述存储器中,所述计算机程序被所述处理器执行时,使得所述电子设备执行权利要求1至10任一项所述的方法。
  12. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有计算机程序,当其在计算机上运行时,使得计算机执行权利要求1至10任一项所述的方法。
PCT/CN2023/118950 2022-09-30 2023-09-15 显示屏切换方法和电子设备 Ceased WO2024067149A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211209641.9A CN117812181A (zh) 2022-09-30 2022-09-30 显示屏切换方法和电子设备
CN202211209641.9 2022-09-30

Publications (1)

Publication Number Publication Date
WO2024067149A1 true WO2024067149A1 (zh) 2024-04-04

Family

ID=90420461

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/118950 Ceased WO2024067149A1 (zh) 2022-09-30 2023-09-15 显示屏切换方法和电子设备

Country Status (2)

Country Link
CN (1) CN117812181A (zh)
WO (1) WO2024067149A1 (zh)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109144441A (zh) * 2018-06-29 2019-01-04 努比亚技术有限公司 一种屏幕调节方法、终端及计算机可读存储介质
CN110134471A (zh) * 2019-04-01 2019-08-16 努比亚技术有限公司 一种屏幕切换动画控制方法、终端及计算机可读存储介质
WO2021040098A1 (ko) * 2019-08-30 2021-03-04 엘지전자 주식회사 이동 단말기, 이동 단말기를 구비한 전자 장치, 및 전자 장치의 제어 방법
CN114257671A (zh) * 2022-02-28 2022-03-29 荣耀终端有限公司 一种图像显示方法及电子设备

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109144441A (zh) * 2018-06-29 2019-01-04 努比亚技术有限公司 一种屏幕调节方法、终端及计算机可读存储介质
CN110134471A (zh) * 2019-04-01 2019-08-16 努比亚技术有限公司 一种屏幕切换动画控制方法、终端及计算机可读存储介质
WO2021040098A1 (ko) * 2019-08-30 2021-03-04 엘지전자 주식회사 이동 단말기, 이동 단말기를 구비한 전자 장치, 및 전자 장치의 제어 방법
CN114257671A (zh) * 2022-02-28 2022-03-29 荣耀终端有限公司 一种图像显示方法及电子设备

Also Published As

Publication number Publication date
CN117812181A (zh) 2024-04-02

Similar Documents

Publication Publication Date Title
US20070101325A1 (en) System and method for utilizing a remote memory to perform an interface save/restore procedure
JP2013521581A (ja) 多重プロセッサを用いて状態情報を失わずにビデオ及び/又はグラフィクスデータを処理するための方法、システム及び装置
US9563466B2 (en) Method and apparatus for supporting programmable software context state execution during hardware context restore flow
CN114995629B (zh) 振动方法和振动装置
CN115033333B (zh) 一种悬浮窗显示方法、电子设备和存储介质
US20080082803A1 (en) Saving/Restoring Task State Data From/To Device Controller Host Interface Upon Command From Host Processor To Handle Task Interruptions
JP2005284491A (ja) 計算機の起動時間短縮方式
EP4325340A1 (en) Display method and terminal device
US20110066836A1 (en) Operating system booting method, computer, and computer program product
WO2024114051A1 (zh) 显示方法与装置、电子设备
JPH01147681A (ja) 図形表示装置及び図形表示方法
US12423145B2 (en) Hardware accelerators using shared interface registers
WO2025148999A1 (zh) 图像显示方法及电子设备
WO2023221822A1 (zh) 数据处理方法、电子设备和可读存储介质
CN117812181A (zh) 显示屏切换方法和电子设备
CN114827510A (zh) 图片矩阵背光的方法、装置、设备及计算机存储介质
US10156976B2 (en) System and method in managing low-latency direct control feedback
CN119271280B (zh) 亮屏处理方法、装置、芯片、电子设备及介质
CN118409839B (zh) 应用程序启动方法与电子设备
US20260056594A1 (en) Always On Display Control Method, Electronic Device, and Storage Medium
US12367019B2 (en) Method and apparatus for implementing batch system call
CN120821518B (zh) 显示状态的确定方法和电子设备
CN110825292B (zh) 字符信息展示方法、装置、存储介质及控制终端
CN116009803A (zh) 一种控制方法、设备和计算机可读存储介质
WO2024212549A1 (zh) 一种窗口动画处理方法及电子设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23870383

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 23870383

Country of ref document: EP

Kind code of ref document: A1