CN117348827A - Display method and electronic equipment during display mode switching - Google Patents

Display method and electronic equipment during display mode switching Download PDF

Info

Publication number
CN117348827A
CN117348827A CN202311225004.5A CN202311225004A CN117348827A CN 117348827 A CN117348827 A CN 117348827A CN 202311225004 A CN202311225004 A CN 202311225004A CN 117348827 A CN117348827 A CN 117348827A
Authority
CN
China
Prior art keywords
screen
information
display mode
change
configuration information
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
CN202311225004.5A
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 CN202311225004.5A priority Critical patent/CN117348827A/en
Publication of CN117348827A publication Critical patent/CN117348827A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1415Digital output to display device ; Cooperation and interconnection of the display device with other functional units with means for detecting differences between the image stored in the host and the images displayed on the displays
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses a display method and electronic equipment during display mode switching, and belongs to the technical field of terminals. The method comprises the following steps: acquiring display mode information of a terminal; obtaining changing information of display mode configuration information of the terminal under the condition that a switching event of a display mode occurs on the screen according to the display mode information; obtaining state information for representing a screen layout change event according to change information of display mode configuration information under the condition that the type of the switch event of the display mode is a first type; refreshing a target interface of an application displayed on a screen when it is determined that the state information for representing the screen layout change event indicates that the screen layout information of the screen is changed and the type of the switching event is a first type; and displaying the refreshed target interface on the screen according to the change information of the display mode configuration information. According to the embodiment of the application, the display problems of covering, white keeping and the like of the display interface can be improved when the display mode is switched.

Description

Display method and electronic equipment during display mode switching
Technical Field
The present disclosure relates to the field of electronic devices, and in particular, to a display method and an electronic device for switching display modes.
Background
Currently, with the increasing progress of terminal technology and equipment, the styles and kinds of terminals are also continuously enriched. For example, the conventional terminal adopts a flat screen design, and with popularization of various applications, demands for large-screen mobile phones are becoming stronger. But large-screen mobile terminals such as mobile phones have a problem of inconvenient carrying. Accordingly, a folding screen mobile terminal with an extendable and bendable screen is popular with users. For another example, the terminal can implement a plurality of screen displays by expanding the display device.
A switching event of the display mode may occur when the display contents of the terminal are switched from one screen to another screen or when one state of the screen is switched to another state for display. Before and after the display mode is switched, if there is a difference in the parameters of the display area (screen) in which the display content is located, there may be a problem in that the display content is abnormal.
Disclosure of Invention
According to the display method and the electronic device for switching the display modes, the problem that display content is abnormal during switching the display modes can be avoided.
In a first aspect, an embodiment of the present application provides a display method during switching a display mode, which is applied to a terminal, where the terminal includes a screen; the display method comprises the following steps:
Acquiring display mode information of a terminal;
obtaining changing information of display mode configuration information corresponding to a switching event of a display mode when the switching event of the display mode occurs on a screen according to the display mode information;
obtaining state information for representing a screen layout change event according to change information of display mode configuration information under the condition that the type of the switch event of the display mode is a first type;
refreshing a target interface of an application displayed on a screen when it is determined that the state information for representing the screen layout change event indicates that the screen layout information of the screen is changed and the type of the switching event is a first type;
and displaying the refreshed target interface on the screen according to the change information of the display mode configuration information.
In general, when a switching event of a display mode occurs, WMS module of an application Framework layer (Framework) of the terminal acquires change information of configuration information of the display mode, processes the change information of the configuration information of the display mode according to a pre-configured processing flow, and finally further determines or reports the processed change information. Through the steps of the display method, the judgment operation on whether to refresh the target interface is added on the basis of the original processing logic of the application framework layer of the terminal, so that the original processing logic of the application framework layer of the terminal is not required to be adjusted in a large scale, and the application convenience is improved.
When a switching event of a display mode occurs, state information is firstly determined according to changing information of display mode configuration information, whether a target interface is refreshed is determined according to changed data items in the display mode configuration information, so that when the target interface needs to be refreshed, the state information is recorded, when the changing information of the display mode configuration information and the type of the switching event meet the requirements corresponding to the refreshed target interface, the target interface is refreshed, visual perception of a user is prevented from being influenced due to insufficient adaptation degree of the target interface and the display mode after switching when the display mode is switched, and visual effect of the user in use is improved.
In one embodiment, the display method at the time of switching the display modes further includes:
filtering the change information of the display mode configuration information to obtain filtered first information when the state information for representing the screen layout change event indicates that the screen layout of the screen is not changed and the type of the switching event is the second type;
and sending the filtered first information to an application layer, wherein the filtered first information is used for indicating the interface parameters of the target interface displayed by the application modification screen.
The display mode switching event is not equivalent to a screen layout change event. The display mode switching event may cause a plurality of data items in the display mode configuration information to be changed, wherein the data items may include data items corresponding to the screen layout changing event, and if the data items corresponding to the screen layout changing event are not included in the change information of the display mode switching event, the screen layout is indicated not to be changed due to the switching of the display mode.
If the state information representing the screen layout change event indicates that the screen layout is not changed, the display mode before the switch event occurs is the same as the screen layout of the display mode after the switch event occurs, and a new screen layout is not required to be adapted by using a mode of refreshing the target interface. Therefore, when the screen layout is not changed and the type of the switching event is the second type, the target interface can not be refreshed, and the operation of the terminal system is reduced.
In one embodiment, the display method at the time of switching the display modes further includes:
filtering the change information of the display mode configuration information to obtain filtered second information;
under the condition that the state information for representing the screen layout changing event indicates that the screen layout of the terminal is changed and the type of the switching event is the first type, generating new changing information of the display mode configuration information according to the filtered second information;
obtaining second changing information of the display mode configuration information according to the changing information of the new display mode configuration information and the screen layout information; and the second change information of the display mode configuration information is used for obtaining the refreshed target interface.
In general, when a switching event of a display mode occurs, change information of display mode configuration information is acquired, then the change information of the display mode configuration information is filtered, data items which need to be focused by an application and refer to a modification target interface are determined, and the application is notified according to the data items which remain after the filtering, so that the application correspondingly modifies the target interface.
In the embodiment of the present application, when the state information for representing the screen layout modification event indicates that the screen layout of the terminal is modified, and the type of the switching event is the first type, it is considered that the difference between the display modes before and after the occurrence of the switching event belongs to the first type, that is, the target interface needs to be refreshed according to the display modes before and after the occurrence of the switching event. And then judging whether the target interface needs to be refreshed according to whether the display mode configuration information contains the appointed screen layout information or not, and further generating second change information for obtaining the refreshed target interface according to the double condition judgment result, so that the application can refresh the target interface according to the second change information.
In one embodiment, refreshing a target interface of an application of a screen display includes:
and sending a target interface refreshing request and second change information of the display mode configuration information to an application layer of the terminal, so that the application generates a refreshed target interface according to the second change information of the display mode configuration information.
The window management service of the terminal sends a refreshing request of the target interface to the application, and the refreshing request is sent and carries the second change information, so that the application of the terminal refreshes the target interface according to the second change information to obtain the target interface matched with the second change information of the display mode configuration information, and the problems that the target interface cannot be filled in a display area of a screen and cannot display all contents in the display area after the display mode is switched due to the fact that the target interface is displayed according to parameters in the display mode before the switching in the display mode after the switching of the target interface are avoided.
In one embodiment, obtaining second change information of the display mode configuration information according to the change information of the new display mode configuration information and the screen layout information includes:
adding the screen layout information into the change information of the new display mode configuration information to obtain second change information of the display mode configuration information.
In general, each application sets a corresponding filtering condition, and when the display mode configuration information changes, obtains change information of the display mode configuration information, and filters the change information according to the filtering condition. The filtering conditions of each application configuration are mainly used for screening the change information which does not need to be focused by the application, so that fewer adjustment operations are performed on the generated target interface as much as possible when a switching event of a display mode occurs in the running process of the application. However, there may be cases where after the display mode switching event occurs in the terminal, if some parameters of the target interface are not changed, a certain display problem may be caused.
In the embodiment of the present application, after the filtering step is performed, whether the obtained second modification information needs to be modified is determined according to the type of the switching event and whether the modification information includes a data item corresponding to the screen layout information, and if it is determined that the modification is needed, the screen layout information is added to the modification information of the new filtered display mode configuration information, so that it is ensured that the screen layout information affecting the display effect can be sent to the application under the condition that the target interface needs to be refreshed, so that the application does not ignore the modification of the screen layout information due to filtering.
In one embodiment, adding screen layout information to the change information of the new display mode configuration information includes:
the screen layout information is connected with the change information of the new display mode configuration information by an OR operation instruction, so that the screen layout information is added into the change information of the new display mode configuration information.
The screen layout information contained in the change information of the display mode configuration information before filtering is connected with the new display mode configuration information obtained after filtering by a OR operation instruction, so that the screen layout information connected by the OR operation instruction is received when the application can configure the new display mode configuration information, and the refreshed target interface is adjusted according to the screen layout information, so that the refreshed target interface is suitable for the display area after the display mode is switched.
In one embodiment, the display method at the time of switching the display modes further includes:
in the case where the change information of the display mode configuration information includes screen layout information, determining that the state information for representing the screen layout change event indicates that the screen layout of the terminal is changed;
and obtaining the type of the switching event of the display mode according to the display mode information.
Before determining to refresh the target interface, it is required to determine whether the terminal satisfies two conditions, one is a type of a switching event of the display mode, and the other is whether the screen layout information changes when the switching event of the display mode occurs. And under the condition that the two conditions are met, determining that the request application refreshes the target interface.
In one embodiment, determining status information for a screen layout modification event according to modification information of display mode configuration information includes:
generating a bit zone local variable as state information of a screen layout change event when the screen layout information is included in the change information of the display mode configuration information;
the flag bit local variable is assigned to a first value, and state information representing a screen layout change event indicates that the screen layout of the terminal is changed.
Since the type of the switching event has been determined to be the first type, in the case where it is further determined that the screen layout information is included in the change information of the display mode configuration information, that is, the switching event is determined to be an event requiring attention of the application, and at the same time, the screen layout information is changed, it is determined that the application can be requested to refresh the target interface. Since it is generally necessary to perform a series of processing operations including judgment, filtering, transmission, and the like on the change information of the display mode configuration information in the window management service module of the terminal. In the embodiment of the application, before filtering the change information of the display mode configuration information, the flag bit local variable is generated and used as the indication information of whether to refresh the target interface, so that the normal processing flow of the window management service on the change information of the display mode configuration information is not required to be changed, and the screen layout information and other information loss which has decisive effect on whether to refresh the target interface is avoided because of the filtering and other operations of the window management service module on the change information of the display mode configuration information, thereby being beneficial to accurately judging whether to refresh the target interface.
In one embodiment, obtaining status information representing a screen layout modification event according to modification information of display mode configuration information includes:
in the case where the screen layout information is not included in the change information of the display mode configuration information, the flag bit local variable is assigned to a second value to indicate that the state information for representing the screen layout change event indicates that the screen layout of the terminal has not been changed.
In a specific implementation manner, the flag bit local variable is assigned to the second value by default, which means that the refresh operation on the target interface is not required. Therefore, when the screen layout information is not included in the change information of the display mode configuration information, the local variable of the zone bit is not modified, so that the second value is reserved.
In one embodiment, the screen is a folding screen; the folding screen can be folded to form at least two screens, the at least two screens comprise a first screen and a second screen, and in the unfolded state, the first screen and the second screen are opposite; the screen switch event includes: the target interface is switched from being displayed on the first screen to being displayed on the second screen; displaying the refreshed target interface on a screen, including:
and displaying the refreshed target interface on the second screen.
Under the condition that the screen of the terminal is a folding screen, the positions of the screen displayed by the target interface are different before and after the switching event of the display mode, so that the configuration information of the display mode of the target interface in the terminal is different before and after the switching event of the display mode. The target interface is displayed on a first screen of the folded screen before the switching event occurs, and on a second screen opposite the first screen after the switching event occurs.
In one embodiment, in the case where the change information of the display mode configuration information includes screen layout information, the screen layout information includes screen size gradation information and wide screen indication information before a switching event of the display mode, and screen size gradation information and wide screen indication information after the switching event of the display mode.
When the folding screen switches the display mode in the source code, the values of the screen size, the minimum screen size and the screen layout information in the change information of the display mode configuration information are filtered according to the threshold value of the application configuration. If the screen layout information is filtered out, a part of application interfaces are not adapted to screen cutting after the display mode is switched to obtain a screen, in the embodiment of the application, the scene is judged, then the value of the screen layout information is added back to the change information of the display mode configuration information, and the window management service makes judgment on whether to refresh the target interfaces of the application or not based on the zone bit local variables, so that the adaptation of the application interfaces to the screen before and after the screen cutting is ensured.
In one embodiment, the display method at the time of switching the display modes further includes:
judging that the screen switching event is of a first type when the folding screen is converted from an unfolded state to a folded state or when the folding screen is converted from the folded state to the unfolded state;
in the event that the folding screen transitions from the unfolded state to the hovering state, or the folding screen transitions from the folded state to the hovering state, it is determined that a screen switch event is of the first type.
In this embodiment, the type of the screen switching event can be determined according to the characteristics of the terminal having the folding screen, so that it can be accurately determined whether to refresh the target interface when the folding and unfolding states of the folding screen are switched.
In one embodiment, the display method at the time of switching the display modes further includes:
filtering the change information of the display mode configuration information under the condition that the type of the switching event of the display mode is the second type, and obtaining filtered third information;
and reporting the filtered third information to an application layer of the terminal, wherein the filtered third information is used for indicating an application to change a target interface displayed on a screen.
When the type of the switching event accords with the condition of refreshing the target interface, but the screen layout information is not included in the change information of the display mode configuration information, the target interface is still considered to be unnecessary to refresh, and the filtered third information is directly reported.
In one embodiment, the change information of the display mode configuration information includes at least one of information, and the change information of each display mode configuration information records a parameter before a switching event of the display mode and a parameter after the switching event of the display mode; filtering change information of display mode configuration information, including:
for the change information of each display mode configuration information, filtering the parameters before the switching event of the display mode and the parameters after the switching event of the display mode when the parameters before the switching event of the display mode and the parameters after the switching event of the display mode are larger than a preset threshold;
for the change information of each display mode configuration information, filtering the parameters before the switching event of the display mode and the parameters after the switching event of the display mode when the parameters before the switching event of the display mode and the parameters after the switching event of the display mode are smaller than a preset threshold.
And carrying out unilateral filtering through a preset threshold value, so that when the change information amplitude of the display mode configuration information is not large enough, the application can ignore the change information, and unnecessary change operation of display parameters of the target interface is reduced as much as possible.
In one embodiment, the change information of the display mode configuration information includes: the screen size change information and the physical screen size change information are available.
In the embodiment of the application, the change information of the display mode configuration information may include a plurality of data items, and different data items are used for representing the changes of different dimensions of the display mode configuration information.
In a second aspect, an embodiment of the present application provides an electronic device, including a processor, where the processor is coupled to the memory, and the processor is configured to execute a computer program or instructions stored in the memory, so that the electronic device implements a display method when a display mode is switched as provided in any one embodiment of the present application.
In a third aspect, embodiments of the present application provide a computer-readable storage medium storing a computer program that, when executed on an electronic device, causes the electronic device to perform a display method at the time of display mode switching as provided in any embodiment of the present application.
It will be appreciated that the advantages of the second to third aspects may be found in the relevant description of the first aspect, and are not described in detail herein.
Drawings
Fig. 1 is a schematic diagram of a terminal related to a display method during display mode switching provided in an embodiment of the present application;
fig. 2 is another schematic diagram of a terminal related to a display method during display mode switching provided in an embodiment of the present application;
fig. 3 is a schematic diagram of a terminal related to a display method during display mode switching according to an embodiment of the present application;
fig. 4 is a schematic view of another product form of a terminal 41 with an inward folding screen 42 according to an embodiment of the present application;
fig. 5 is a schematic hardware structure of an electronic device according to an embodiment of the present application;
fig. 6 is a layered architecture diagram of a call module applicable to the embodiment of the present application;
fig. 7A is a schematic diagram of an application scenario of a display method during display mode switching according to an embodiment of the present application;
fig. 7B is a second application scenario schematic diagram of the display method during display mode switching provided in the embodiment of the present application;
fig. 7C is a third application scenario schematic diagram of a display method during display mode switching according to the embodiment of the present application;
fig. 8 is a flow chart of a display method during display mode switching according to an embodiment of the present application;
FIG. 9A is a schematic view of a target interface being occluded when a terminal of a folding screen is switched from a folded state to an unfolded state;
FIG. 9B is a schematic illustration of the screen showing white when the terminal of the folding screen is switched from the unfolded state to the folded state;
fig. 10 is a signaling interaction schematic diagram of a display method during display mode switching provided in the embodiment of the present application;
fig. 11 is a schematic structural diagram of a display device during display mode switching according to an embodiment of the present application;
fig. 12 is a schematic diagram of an electronic device according to an embodiment of the present application.
Reference numerals related to the above figures are as follows:
11. a terminal; 12. a screen; 13. a first region; 14. a second region; 15. a dividing line; 21. a first screen; 22. a second screen; 31. a terminal; 32. an outward folding screen; 33. a first screen; 34. a second screen; 35. folding edges; 41. a terminal; 42. an inward folding screen; 43. a first screen; 44. a second screen; 45. a third screen; 100. an electronic device; 110. a processor; 120. an external memory interface; 121. an internal memory; 130. a USB interface; 140. a charging management module; 141. a power management module; 142. a battery; 1. an antenna; 2. an antenna; 150. a mobile communication module; 160. a wireless communication module; 170. an audio module; 170A, a speaker; 170B, a receiver; 170C, a microphone; 170D, an earphone interface; 180. a sensor module; 190. a key; 191. a motor; 192. an indicator; 193. a camera; 194. a display screen; 195. a customer identification module card interface; 180. a sensor module; 180A, pressure sensor; 180B, a gyroscope sensor; 180C, an air pressure sensor; 180D, magnetic sensor; 180E, an acceleration sensor; 180F, a distance sensor; 180G, approaching the light sensor; 180H, a fingerprint sensor; 180J, a temperature sensor; 180K, touch sensor; 180L, ambient light sensor; 180M, bone conduction sensor; 71. a terminal; 72. folding the screen; 73. a fold line; 74. a first screen; 75. a second screen; 76. an application icon; 77. a third screen; 901. a shielding region; 902. a white area is reserved; 1101. a display mode information acquisition module; 1102. a change information acquisition module; 1103. a status information determination module; 1104. a refresh module; 1105. refreshing the display module; 1201. a processor; 1202. a memory; 1203. a communication interface; 1204. a communication line; 1205. a processor.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
It should be understood that reference herein to "a plurality" means two or more. In the description of the present application, "/" means or, unless otherwise indicated, for example, a/B may represent a or B; "and/or" herein is merely an association relationship describing an association object, and means that three relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist together, and B exists alone. In addition, for the purpose of facilitating the clear description of the technical solutions of the present application, the words "first", "second", etc. are used to distinguish between the same item or similar items having substantially the same function and effect. It will be appreciated by those of skill in the art that the words "first," "second," and the like do not limit the amount and order of execution, and that the words "first," "second," and the like do not necessarily differ.
In the embodiments of the present application, words such as "exemplary" or "such as" are used to mean serving as examples, illustrations, or descriptions. 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.
Before introducing embodiments of the present application, some terms or concepts related to the embodiments of the present application are first explained. It is to be understood that the nomenclature that follows is not specifically defined. Other designations are possible for the following terms. The renamed terms still satisfy the following related term explanations.
A screen is a device or an electric appliance for displaying images and colors, and may also be called a display screen. The method is widely applied to mobile phones, computers, displays, televisions and equipment with image or text display functions.
In the case where the screen of the mobile terminal includes two or more display areas, the display mode is switched, and the screen is switched from one display area to another. In the case that the mobile terminal is a folding screen, the screen of the mobile terminal may be implemented by being converted from a folded state to an unfolded state or from an unfolded state to a folded state. In the case that the mobile terminal includes one screen, the display mode switching may also be realized by externally connecting other screens and changing the display range of the screen of the mobile terminal.
The display mode, which may also be referred to as a display mode, the terminal may display through a plurality of different display modes. When the display mode is switched, the display mode is switched from one mode to another. For terminals with a folding screen, the display modes may include an extended mode, a folded mode. In addition, the display mode may further include: an extended mode, a mirror mode, a primary screen mode, a secondary screen mode, and the like. The expansion mode is that the terminal is connected with an external screen, and the external screen and the screen of the terminal display the same picture together. In the mirror image mode, the screen of the terminal and the external screen synchronously display the same picture, or at least two screens of the terminal synchronously display the same picture, and two or more screens generate mirror image effects.
The screen layout change event refers to an event of a change in the on-screen display area due to switching of the display mode or other reasons.
Folding screens, i.e. screens that can be bent, are typically flexible screens. In some cases, the folding screen may also be implemented by two or more rigid screens connected by hinges, and in the unfolded state, the two or more rigid screens are spliced into one larger screen. The folding screen may have a folded and unfolded state. In the unfolded state, the folding screen serves as a complete screen, and displays the picture (interface) of the terminal. In the folded state, a certain included angle exists between one part of the folding screen and the other part of the folding screen, and the folding screen and the other part of the folding screen are positioned on different planes.
Fig. 1 is a schematic diagram of a terminal related to a display method during display mode switching according to an embodiment of the present application. As shown in fig. 1, the terminal 11 includes a screen 12, and the screen 12 has two or more display modes. The area on the screen 12 for displaying pictures may be different in different display modes.
For example, in the full-screen display mode, the terminal 11 runs the target screen of the news application, and the screen 12 is used for displaying the first target screen to be displayed, and the first target screen displays the title of the news of the current day and the content abstract of the news in the news application.
In the split-screen display mode, the screen 12 is divided into two areas, each of which displays one target screen of the application, i.e., the first area 13 in fig. 1 displays a first target screen related to the title of the news application, and the second area 14 in fig. 1 displays a second target screen related to the text. When the terminal 11 switches from the full-screen display mode shown in fig. 1 to the split-screen display mode shown in fig. 1, a switching event of the display mode occurs, a dividing line 15 representing the split screen is generated on the screen 12, a first target picture originally displayed in the entire area of the screen 12 is switched to the first area 13, and a second target picture related to the first target picture can be displayed in the second area 14.
Also, in the case where the terminal 11 is shifted from the split display mode to the full-screen display mode, a switching event of the display mode occurs. Therefore, when the terminal 11 is monitored that a switching event of the display mode occurs, the display method for switching the display mode provided by any embodiment of the application can be operated, and the refreshed target interface is displayed on the screen after the display mode is switched.
With the continuous development of electronic equipment technology, more and more terminals with screens are widely used in daily life and work of people, such as mobile phones with screens. And it is not difficult to find that with the development of screen technology, the screen of the terminal becomes larger and larger to provide the user with richer information, and bring better use experience to the user. However, the screen of the terminal is too large, which may seriously affect portability thereof. Therefore, terminals with a folding screen (such as a folding screen mobile phone) proposed in recent years are the direction of development of future electronic devices. Fig. 2 is another schematic diagram of a terminal related to a display method during display mode switching provided in the embodiment of the present application, where the terminal shown in fig. 2 is a mobile terminal with a folding screen. The folding screen may be folded into at least two screens, such as a first screen 21 and a second screen 22 shown in fig. 2 (a), fig. 2 (b), and fig. 2 (c). After the folding screen is fully folded, as shown in fig. 2 (a), the first screen 21 and the second screen 22 are opposed. In general, the aspect ratio (i.e., aspect ratio) of the first screen 21 and the second screen 22 of the folded screen is similar to that of a conventional non-folded screen, such as an aspect ratio of 16:9, 18:9, 20:9, or 16:10, as may be conventional; some applications are designed for non-folding screens, and the interface layout of the application is matched with the non-folding screen. Therefore, after the folding screen is folded, the first screen or the second screen can normally display each application interface.
Referring to (b) of fig. 2, after the folding screen is unfolded, the display area of the folding screen includes at least two screens described above, which are formed by splicing the first screen 21 and the second screen 22. The aspect ratio of the unfolded folded screen may be 1:1 or 16:18, etc. When a user watches a movie or plays a game, the terminal can be fully unfolded in the form shown in (b) of fig. 2, and an immersive use experience is brought to the user. When a user wants to release both hands to use the terminal, the terminal can be folded at a certain angle and placed in a bracket shape, so that the user can use the terminal and process other transactions; for example, a user takes a picture while both hands participate in posing, etc.; the terminal may be in a cradle-type placement configuration as shown in fig. 2 (c).
Folding screens in embodiments of the present application may be divided into a number of different categories, including: a category of folding screens turned outwards (called outwards folding screens for short), and a category of folding screens turned inwards (called inwards folding screens for short). Taking an example that the folding screen can be folded to form a first screen and a second screen, after the outward folding screen is folded, the first screen and the second screen are opposite; after the folded inward folding screen is folded, the first screen is opposite to the second screen, and fig. 2 is a schematic diagram of the folded inward folding screen in the embodiment of the application.
Fig. 3 (a) is a schematic view of the terminal 31 with the folding screen 32 folded out when fully unfolded. The out-turned folding screen 32 can be turned over along the folding edge 35 in the directions 301a and 301b shown in fig. 3 (a), and can form a first screen 33 and a second screen 34 shown in fig. 3 (b). At the position where the planes of the first screen 33 and the second screen 34 intersect, a folded edge 35 is formed. The out-turned folding screen may continue to be turned along the folding edge 35 in the directions 302a and 302b shown in fig. 3 (b), forming the out-turned folding screen 32 in the folded state shown in fig. 3 (c). As shown in fig. 3 (c), the first screen 33 and the second screen 34 are opposite to each other after the out-folding screen 32 of the terminal 31 is completely folded, and are visible to the user.
It will be appreciated that for a terminal 31 having an accordion folding screen 32 as shown in fig. 3, an interface may be displayed on the first screen 33 and/or the second screen 34 when the accordion folding screen 32 is in the folded state; an interface may also be displayed on the first screen 33 and/or the second screen 34 when the out-folded screen 32 is in the unfolded state. The description of the unfolded state and the folded state of the folded screen may refer to or be combined with the description of other embodiments, which are not repeated herein.
Fig. 4 is a schematic view of another product form of a terminal 41 with an inward folding screen 42 according to an embodiment of the present application.
Fig. 4 (a) is a schematic view showing a state in which the terminal 41 having the inward folding screen 42 is fully unfolded. The terminal 41 may be folded along the folding edge in the direction of the curved arrow shown in fig. 4 (a) to form a first screen 43 and a second screen 44 shown in fig. 4 (b), the terminal 41 may be folded along the folding direction corresponding to the curved arrow, the terminal 41 may be formed into a fully folded terminal 41 shown in fig. 4 (c), the first screen 42 and the second screen 43 may be opposite to each other after the terminal 41 is fully folded, the first screen 43 and the second screen 44 may not be visible to the user, and the folding edge shown in fig. 4 (c) is a line on a plane where the first screen 43 and the second screen 44 are in contact. In addition, the terminal 41 having the inwardly folded screen 42 may further include a third screen 45, the third screen 45 being disposed on the opposite rear surface of the first screen 43 or the second screen 44. It will be appreciated that for a terminal 41 having an inwardly folded folding screen 42, the third screen 45 is visible to the user in the folded state. When the terminal 41 having the inward folding screen 42 is in the folded state, a target interface is displayed at the third screen 45, and when the terminal 41 having the inward folding screen 42 is in the unfolded state, a target interface may be displayed at the first screen 43 and the second screen 44.
The hardware configuration related to the above-described implementation environment is described below.
The embodiment of the application provides electronic equipment which can be used as a terminal according to any embodiment of the application.
Fig. 5 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application. As shown in fig. 5, the electronic device 100 may include: processor 110, external memory interface 120, internal memory 121, usb interface 130, charge management module 140, power management module 141, battery 142, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headset interface 170D, sensor module 180, keys 190, motor 191, indicator 192, camera 193, screen 194, and customer identification module (subscriber identity module, SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity 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 is to be understood that the structure illustrated in the present embodiment does not constitute a specific limitation on the electronic apparatus 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 (BP), a display processing unit (display process unit, DPU), 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.
In some embodiments, the electronic device 100 may also include one or more processors 110. The processor may be a neural hub and a command center of the electronic device 100, among others. The processor 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 uses or recycles. If the processor 110 needs to reuse the instruction or data, it may be called directly from memory. This avoids repeated accesses and reduces the latency of the processor 110, thereby improving the efficiency of the electronic device 100.
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 circuitsound, 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.
It should be understood that the interfacing relationship between the modules illustrated in the embodiments of the present application is only illustrative, and does not 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 can also supply power to the mobile phone 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 external memory, the screen 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, 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 audio devices (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or video through the 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), bluetooth (BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication (near field communication, NFC), infrared (IR), etc. applied on 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. Wireless communication technologies may include GSM (Global System for Mobile Communications ), GPRS (General Packet Radio Service, general packet radio service), CDMA (Code Division Multiple Access ), WCDMA (Wideband Code Division Multiple Access, wideband code Division multiple access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, time Division synchronous code Division multiple access), LTE (Long Term Evolution ), GNSS (Global Navigation Satellite System, global navigation satellite system), WLAN, NFC (Near Field Communication ), FM (Frequency Modulation, frequency modulation), and/or IR (Infrared) technologies, 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 (bei dou navigationsatellite 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 screen 194 is used to display images, videos, and the like. The screen 194 includes a display panel. The display panel may employ a liquid crystal screen (liquid crystal display, LCD), an organic light-emitting diode (OLED), an active-matrix organic light emitting diode (AMOLED), a flexible light-emitting diode (FLED), miniled, microLed, micro-OLED, or a quantum dot light-emitting diode (quantum dot light emitting diodes, QLED). In some embodiments, the electronic device 100 may include 1 or N screens 194, N being a positive integer greater than 1. In an embodiment of the present application, a display and a touch device (TP) may be included in the screen 194. The display is used to output display content to a user and the touch device is used to receive touch events entered by the user on the screen 194.
The electronic device 100 may implement photographing functions through an ISP, a camera 193, a video codec, a GPU, a 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 electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing, so that the electrical signal 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. In one example, camera 193 may include a wide angle camera, a photographic camera, a 3D deep-sensing camera (e.g., a structured light camera, a time-of-flight (ToF) camera), a tele camera, etc.
In the present embodiment, the camera 193 may include a front camera and a rear camera. The front camera may be disposed on the same side of the first screen 11 of the electronic device 100, and the rear camera may be disposed on a side of the electronic device 100 opposite to the first screen 11.
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 external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to enable expansion of the memory capabilities of the electronic device 100. The external memory card communicates with the processor 110 through an external memory interface 120 to implement data storage functions. For example, data files such as music, photos, videos, etc. are stored in an external memory card.
The internal memory 121 may be used to store one or more computer programs, including instructions. The processor 110 may cause the electronic device 100 to execute various functional applications, data processing, and the like by executing the above-described instructions stored in the internal memory 121. The internal memory 121 may include a storage program area and a storage data area. The storage program area can store an operating system; the storage area may also store one or more applications (e.g., gallery, contacts, etc.), and so forth. The storage data area may store data created during use of the electronic device 100 (e.g., photos, contacts, etc.), and so on. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and the like. In some embodiments, the processor 110 may cause the electronic device 100 to perform various functional applications and data processing by executing instructions stored in the internal memory 121, and/or instructions stored in a memory provided in the processor 110.
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 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 pressure sensor 180A is used to sense a pressure signal, and may convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be disposed on the screen 194. The pressure sensor 180A is of various types, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like. The capacitive pressure sensor may be a capacitive pressure sensor comprising at least two parallel plates with conductive material. The capacitance between the electrodes changes when a force is applied to the pressure sensor 180A. The electronic device 100 determines the strength of the pressure from the change in capacitance. When a touch operation is applied to the screen 194, the electronic apparatus 100 detects the touch operation intensity according to the pressure sensor 180A. The electronic device 100 may also calculate the location of the touch based on the detection signal of the pressure sensor 180A. In some embodiments, touch operations that act on the same touch location, but at different touch operation strengths, may correspond to different operation instructions. For example: and executing an instruction for checking the short message when the touch operation with the touch operation intensity smaller than the first pressure threshold acts on the short message application icon. And executing an instruction for newly creating the short message when the touch operation with the touch operation intensity being greater than or equal to the first pressure threshold acts on the short message application icon.
The air pressure sensor 180C is used to measure air pressure. In some embodiments, electronic device 100 calculates altitude from barometric pressure values measured by barometric pressure sensor 180C, aiding in positioning and navigation.
The gyro sensor 180B may be used to determine a motion gesture of the electronic device 100. In some embodiments, the angular velocity of electronic device 100 about three axes (i.e., x, y, and z axes) may be determined by gyro sensor 180B. The gyro sensor 180B may be used for photographing anti-shake. For example, when the shutter is pressed, the gyro sensor 180B detects the shake angle of the electronic device 100, calculates the distance to be compensated by the lens module according to the angle, and makes the lens counteract the shake of the electronic device 100 through the reverse motion, so as to realize anti-shake. The gyro sensor 180B may also be used for navigating, somatosensory game scenes.
The acceleration sensor 180D may detect the magnitude of acceleration of the electronic device 100 in various directions (typically three axes). The magnitude and direction of the gravitational acceleration may be detected when the electronic device 100 is stationary.
The magnetic sensor 180E includes a hall sensor, magnetometer, or the like. The Hall sensor can detect the magnetic field direction; magnetometers are used to measure the magnitude and direction of magnetic fields. The magnetometer may measure the ambient magnetic field strength, e.g. the magnetic field strength may be measured with the magnetometer to obtain azimuth information of the carrier of the magnetometer.
The touch device 180F may be used to detect a touch position of a user. In some embodiments, the touch point of the user on the electronic device 100 may be detected by the touch device 180F, and then the grip gesture of the user currently gripping the mobile phone may be determined using a preset grip algorithm according to the touch position.
A distance sensor 180G for measuring a distance. The electronic device 100 may measure the distance by infrared or laser. In some embodiments, the electronic device 100 may range using the distance sensor 180G to achieve quick focus.
The proximity light sensor 180H may include, for example, a Light Emitting Diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 100 emits infrared light outward through the light emitting diode. The electronic device 100 detects infrared reflected light from nearby objects using a photodiode. When sufficient reflected light is detected, it may be determined that there is an object in the vicinity of the electronic device 100. When insufficient reflected light is detected, the electronic device 100 may determine that there is no object in the vicinity of the electronic device 100. The electronic device 100 can detect that the user holds the electronic device 100 close to the ear by using the proximity light sensor 180H, so as to automatically extinguish the screen to achieve the purpose of saving power. The proximity light sensor 180H may also be used in holster mode, pocket mode to automatically unlock and lock the screen.
The ambient light sensor 180M is used to sense ambient light level. The electronic device 100 may adaptively adjust the brightness of the screen 194 based on the perceived ambient light level. The ambient light sensor 180M may also be used to automatically adjust white balance when taking a photograph. Ambient light sensor 180M may also cooperate with proximity light sensor 180H to detect whether electronic device 100 is in a pocket to prevent false touches.
The fingerprint sensor 180J is used to collect a fingerprint. The electronic device 100 may utilize the collected fingerprint feature to unlock the fingerprint, access the application lock, photograph the fingerprint, answer the incoming call, etc.
The temperature sensor 180K is used to detect temperature. In some embodiments, the electronic device 100 performs a temperature processing strategy using the temperature detected by the temperature sensor 180K. For example, when the temperature reported by temperature sensor 180K exceeds a threshold, electronic device 100 performs a reduction in the performance of a processor located in the vicinity of temperature sensor 180K in order to reduce power consumption to implement thermal protection. In other embodiments, when the temperature is below another threshold, the electronic device 100 heats the battery 142 to avoid the low temperature causing the electronic device 100 to be abnormally shut down. In other embodiments, when the temperature is below a further threshold, the electronic device 100 performs boosting of the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperatures.
The touch sensor 180L is also referred to as a "touch panel". The touch sensor 180L may be disposed on the screen 194, and the touch sensor 180L and the screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180L is for detecting a touch operation acting thereon or thereabout. The touch sensor may communicate the detected touch operation to the application processor to determine the touch event type. Visual output related to the touch operation may be provided through the screen 194. In other embodiments, the touch sensor 180L may also be disposed on the surface of the electronic device 100 at a different location than the screen 194.
The bone conduction sensor 180Q may acquire a vibration signal. In some embodiments, bone conduction sensor 180Q may acquire a vibration signal of a human vocal tract vibrating bone pieces. The bone conduction sensor 180Q may also contact the pulse of the human body to receive the blood pressure pulsation signal. In some embodiments, bone conduction sensor 180Q may also be provided in a headset, in combination with an osteoinductive headset. The audio module 170 may analyze the voice signal based on the vibration signal of the vocal part vibration bone piece obtained by the bone conduction sensor 180Q, and implement the voice function. The application processor can analyze heart rate information based on the blood pressure beat signals acquired by the bone conduction sensor 180Q, so that a heart rate detection function is realized.
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 touch operations applied to different areas of the 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 electronic equipment or the terminal has the least negligible function in the life of people, namely a call, and a call module (Telephony) in an android system is a core module of the call function and mainly provides functions of voice, short messages, data links, SIM card management, phonebooks and the like.
The call module adopts a layered architecture design, and service application spans an AP (Application Processor ) and a BP (Basehand Processor, baseband chip), wherein the AP and the BP communicate with each other. Fig. 6 is a layered structure diagram of a call module applicable to the embodiment of the present application. In the layered architecture, the call module spans an application program layer (application layer), an application program framework layer (application framework layer) and a hardware abstraction layer of the android system, and relates to a drive layer of the BP end, including a modem (modem) module.
The application layer faces the user, relying on the application framework layer to present specific functionality to the user by accessing business modules of the application framework layer. The application program layer comprises a call interface module (IncallUI) and a call management module, which are used for displaying and updating a call interface, inquiring call information, and simple logic, such as answering/hanging up and the like, and also used for starting ring playing. The application layer may include a series of application packages.
As shown in fig. 6, the application package may include applications for cameras, gallery, calendar, phone calls, maps, navigation, WLAN, bluetooth, music, video, short messages, etc.
The application framework layer provides an application programming interface (applicationprogramming interface, API) and programming framework for application programs of the application layer. The application framework layer includes a number of predefined functions.
As shown in fig. 6, the application framework layer may include a display policy management service, a power management service (powermanager service, PMS), a display management service (display manager service, DMS). Of course, timing management services (alarm manager service, AMS), window management services (windowmanager service, WMS), content providers, view systems, telephony managers, resource managers, notification managers, etc., may also be included in the application framework layer, which embodiments of the present application do not impose any limitations.
The display policy management service is used for controlling the display policy of the electronic equipment. In the embodiment of the application, when the display policy management service obtains that a screen (which may be a flexible screen) of the electronic device is in a bending state from the bottom layer, the WMS may be notified through the DMS, and an application program on the electronic device is controlled to display on the screen according to the method provided by the embodiment of the application.
The power management service may be used to control the lighting up or extinguishing of the screen of the electronic device. For example, in some cases, the power management service may control the first screen and/or the second screen and/or the third screen of the electronic device to be turned on or off.
The timing management service is used to manage timers, alarms, etc.
The window management service is used to manage window programs. The window manager may obtain the screen size, determine if there is a status bar, lock the screen, intercept the screen, etc.
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.
The system library may include a plurality of functional modules. For example: status monitoring services, sensor services, surface manager (surface manager), media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., openGL ES), 2D graphics engines (e.g., SGL), etc.
The state monitoring service may be used to identify various states of a terminal (such as a cell phone); such as the form of the terminal (including the unfolded state, the folded state, and the folded state of the terminal having the folding screen), the grip posture of the user gripping the terminal, the relative position of the terminal and the user, and the like.
The sensor service is used to store and process sensor related data. For example, output data of each sensor is provided, and fusion processing or the like is performed on the output data of a plurality of sensors.
The surface manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications.
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 kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
Fig. 7A is a schematic application scenario diagram of a display method during display mode switching according to an embodiment of the present application. The terminal 71 has a folding screen 72, which folding screen 72 is a flexible screen that can be folded about a folding line 73 in the direction indicated by the curved arrow. Further, the folding screen 72 includes a first screen 74, a second screen 75, and a third screen. In the unfolded state shown in fig. 7A, the first screen 74 and the second screen 75 are in the same plane, the angle between the first screen 74 and the second screen 75 is close to 0 °, and the third screen is opposite to the first screen 74 or the second screen 75. Correspondingly, the display mode of the terminal 71 is the display mode of the unfolded state. The first screen 74 and the second screen 75 form a complete large screen on which the content to be displayed is displayed. When the user switches the display screen of the terminal 71 to the desktop, the terminal 71 displays the desktop background and application icons 76 of a plurality of applications laid out on the desktop, and the user clicks one of the plurality of application icons 76 by touch to start the application, and displays an interface corresponding to the application on the large screen, as shown in fig. 7B.
In the expanded state shown in fig. 7B, the application-corresponding target interface may occupy the area of the entire large screen.
In another implementation, in the expanded state, as also shown in fig. 7B, the application-corresponding target interface may be displayed in a first region corresponding to the first screen 74, a second region corresponding to the second screen 75. In the first area, a home page, a menu presentation page, a tab page, etc. corresponding to the application may be displayed. And in the second area, the landing page corresponding to the specific option selected by the user in the first area can be displayed.
In the case where the folding screen 72 is an out-folded folding screen, the user folds the folding screen 72 outwardly along the folding line 73 such that the first screen 74 and the second screen 75 are opposed, and the terminal 71 is in a folded state. In the folded state, one of the first screen 74 and the second screen 75 is extinguished, and the other is in the lit state, and in the folded state, the lit first screen 74 or the second screen 75 displays the target interface of the application.
For a scenario in which the folding screen 72 is an inwardly folded screen, the folding screen 72 of the terminal 71 includes a third screen 77, as shown in fig. 7C. The user folds the folding screen 72 inwardly along the fold line such that the first and second screens are opposed (not shown in fig. 7C because of the occlusion) with the terminal 71 in a folded state. In the folded state, both the first screen and the second screen are extinguished, and the third screen 77 is lit and displays the target interface of the application, opposite to the first screen and the second screen.
Referring to fig. 8, an embodiment of the present application provides a display method during switching a display mode, which is applied to a terminal, where the terminal includes a screen; the display method includes steps S801 to S805 as shown in fig. 8.
In step S801, display mode information of a terminal is acquired.
In the embodiment of the application, the terminal includes, but is not limited to, electronic devices such as notebook computers, desktop computers, palm computers, tablet computers, mobile phones, wearable intelligent devices, and the like. The terminal has at least one screen, which may belong to the same display or to different displays. In one embodiment, the screen included in the terminal may be an external screen of the host device of the terminal, or the screen included in the terminal may be a screen of a display fixedly configured by the host device of the terminal.
The terminal is operated with a corresponding system, a certain target interface can be displayed, and the target interface can be started when the application is operated in the system of the terminal. The terminal is correspondingly provided with at least two display modes, and the areas for displaying the target interface are different in different display modes.
In a specific implementation, the terminal may include a first display mode and a second display mode. In the first display mode, the distance between the upper edge and the lower edge of the visual direction of the target interface in the use state of the user is larger than the distance between the left edge and the right edge. In the second display mode, the distance between the upper edge and the lower edge of the visual direction of the target interface in the use state of the user is smaller than the distance between the left edge and the right edge.
In another specific implementation, the terminal may include a third display mode and a fourth display mode. The resolution of the third display mode and the fourth display mode are different, resulting in a target interface covering different areas on the screen of the terminal. For example, in the third display mode, the screen resolution is 2560x1440. In the fourth display mode, the screen resolution is 3840x2160.
In another specific implementation, the terminal may include a fifth display mode and a sixth display mode. In the sixth display mode, one screen of the terminal is used for displaying the target picture, and when the application runs, the target interface of the application covers the whole area of the screen. In the fifth display mode, one screen of the terminal is partially used for displaying the target screen, and the other portion displays at least one of a keyboard, a touch pad operation interface, and a mouse operation interface. And displaying a target interface of the application currently running by the terminal in a first area of the screen, and displaying a black screen in a second area of the screen to show that the second area can be used as a touch pad.
In another specific implementation, the terminal may include a seventh display mode. In the seventh display mode, the screen is divided into a first divided screen and a second divided screen based on the fifth display mode. A split screen line is displayed between the first split screen and the second split screen, and the split screen line divides the display area of the screen so as to divide the screen into the first split screen and the second split screen. In the first split screen and the second split screen, the user can run different applications according to own will, for example, the first split screen runs a shopping application, and a target interface of the shopping application is displayed, wherein the target interface comprises a plurality of commodities and corresponding commodity brief information. And running the social application by the second split screen, and displaying a target interface of the social application, wherein the target interface comprises a plurality of social friends and chat lists corresponding to the social friends.
In another specific implementation, the terminal may include an eighth display mode and a ninth display mode. In the eighth display mode, the terminal uses a screen display target interface fixedly matched with the terminal host. The notebook computer displays a target interface of the desktop through a fixed matched screen. In the eighth display mode, the terminal may display the fixed screen in any one of the first display mode to the seventh display mode. In the ninth display mode, the terminal displays through a screen fixedly matched with the terminal host and an external screen of the terminal. The notebook computer can respectively realize the functions similar to the first split screen and the second split screen in the seventh display mode through the fixed matched screen, the screen externally connected with the display, the target interface of the desktop, the fixed matched screen and the screen externally connected with the display.
In another specific implementation, the screen of the terminal is a flexible screen. The flexible screen includes a first screen, a second screen, and the terminal may include a tenth display mode and an eleventh display mode. In the tenth display mode, the flexible screen is unfolded, the first screen and the second screen are substantially in the same plane, and the angle between the two screens is close to 0 °. The display areas of the first screen and the second screen are spliced to be used as a complete large screen. In the eleventh display mode, the flexible screen is folded outwardly, the first screen and the second screen are opposite, one of the first screen and the second screen is lighted for displaying the target interface, and the other is extinguished.
In another specific implementation manner, the screen of the terminal is a flexible screen, the flexible screen comprises a first screen, a second screen and a third screen, and the terminal may further have a twelfth display mode on the basis of the tenth display mode. In a tenth display mode, the flexible screen is unfolded, the large screen formed by the third screen, the first screen and the second screen is opposite to each other, and the large screen formed by the first screen and the second screen is lightened and used for displaying a target interface. In the twelfth display mode, the first screen and the second screen are folded inwardly and the first screen and the second screen face each other. And the third screen is lightened and used for displaying the target interface.
In other possible implementations, the terminal may also have more display modes, or a combination of two or more of the aforementioned first to twelfth display modes.
In step S802, when it is determined that a switching event of the display mode occurs on the screen based on the display mode information, change information of display mode configuration information corresponding to the switching event of the display mode is obtained.
The switching event of the display mode, which is an event generated when the display mode of the screen is switched from one to another, can be determined by monitoring the mode information displayed by the screen. When a switching event of the display mode occurs, the terminal may have a change of a screen-related hardware device, or may only have a change of a screen-related software parameter.
In order to monitor the screen related hardware device changes, multiple sets of sensors may be provided on the terminal. For example, in the case where the terminal has a folding screen, sensor modules are provided at a first screen and a second screen of the folding screen, respectively.
Illustratively, the folding screen of the terminal includes a first screen and a second screen. Wherein the first screen is provided with an acceleration sensor (ACC) 1 and a GYRO sensor (GYRO) 1, and the second screen of the terminal is provided with an acceleration sensor 2 and a GYRO sensor 2. The terminal can acquire the acceleration of the first screen motion and the angular speed of the first screen rotation by reading the data of ACC 1 and GYRO 1, and further acquire the magnitude and the direction of the gravity acceleration G1 of the first screen. The terminal can acquire the acceleration of the second screen motion and the angular speed of the second screen rotation by reading the data of ACC 2 and GYRO 2, further acquire the magnitude and the direction of the gravity acceleration G2 of the second screen, and detect the switching event of the display mode. The terminal can also acquire parameters such as an included angle alpha between the first screen and the second screen according to G1 and G2. The specific method for acquiring the gravitational acceleration G and the included angle α between the first screen and the second screen by the terminal according to the data of the ACC and the GYRO may refer to the description in the conventional technology, which is not repeated herein. Alternatively, if one sensor a is used to be able to detect the magnitude and direction of the gravitational acceleration G, the sensor a may be provided on the first screen and the second screen, respectively. For example, the acceleration sensor and the gyro sensor may be integrated into one sensor (a+g sensor) provided on the first screen and the second screen, respectively.
The first screen and the second screen of the terminal may be further provided with a plurality of groups of touch devices, so that a grasping gesture of a user when using the terminal may be determined, and a display mode of the terminal may be determined.
In each display mode, display mode configuration information is correspondingly arranged for determining parameters related to various displays in the display mode. By way of example, the display mode configuration information may include display region size, scale, resolution, layout information of the display region, and the like. After the terminal is started, the terminal can determine a display mode according to default display mode configuration information, or determine the display mode according to the state of a screen when the terminal is started, and determine the content of difference of the display mode configuration information, namely the change information of the display mode configuration information, under the condition that the display mode is changed. For example, in the first display mode, the display mode arrangement information includes vertical and horizontal direction information, screen size information, screen number information, and the like, and when the vertical and horizontal direction information is changed in the case of switching from the first display mode to the second display mode, the content corresponding to the vertical and horizontal direction information is regarded as change information of the display mode arrangement information.
In step S803, in the case where the type of the switching event of the display mode is the first type, status information for representing a screen layout change event is obtained according to the change information of the display mode configuration information.
In a specific embodiment, the type of switching event of the display mode indicates the display mode before switching and the display mode after switching. The types of switching events of the display modes may be divided in a defined manner. For example, when the display mode before switching is the tenth display mode and the display mode after switching is the eleventh display mode or the twelfth display mode, the type of the switching event of the display mode may be defined as the first type. For another example, when the display mode before switching is the first display mode and the display mode after switching is the second display mode, the type of the switching event of the display mode may be the second type.
In a specific embodiment, when a switching event of the display mode occurs, the screen layout will change correspondingly, but when certain types of switching events occur, the change of the screen layout is ignored, so that the visual experience of a user for watching the target interface is not affected. The state information is used for representing the screen layout changing event, and is used for representing whether the screen layout changing event needs to cause refreshing of the target interface or not according to the highest priority, if the current switching event occurs, the change of the screen layout is ignored to influence the visual experience of a user for watching the target interface, and then the state information indicates that the refreshing operation needs to be performed on the target interface because the current screen layout changing event occurs, so that abnormal display caused by displaying the target interface in a new display mode according to the display mode configuration information before switching is avoided.
Determining the status information for representing the screen layout modification event may include determining whether to refresh the target interface according to the screen layout modification event such that the target interface is displayed according to the display mode configuration information in the new display mode.
In step S804, in the case where it is determined that the state information indicating the screen layout change event indicates that the screen layout information of the screen is changed, and the type of the switching event is the first type, the target interface of the application of the screen display is refreshed.
For example, in the case where it is determined that the state information for representing the screen layout modification event indicates that the screen layout information of the screen is modified, and the type of the switching event is the first type, it is considered that the refresh operation is required for the target interface according to the screen layout modification event so that the target interface is displayed according to the display mode configuration information in the new display mode. The type of the switching event may be determined according to a display mode before the switching event occurs and a display mode after the switching event occurs. The Display Mode before and after the switching event occurs may be determined according to Display Mode information (Display Mode) of the terminal screen.
In a specific embodiment, refreshing a target interface of an application of a screen display includes: and sending a refreshing request to an application layer from the WMS module of the terminal, so that the application refreshes the target interface according to the change information of the display mode configuration information to obtain a refreshed target interface, and simultaneously, the parameters of the refreshed target interface are adapted to the change information of the display mode configuration information.
In general, when a switching event of a display mode occurs, WMS module of an application Framework layer (Framework) of the terminal acquires change information of configuration information of the display mode, processes the change information of the configuration information of the display mode according to a pre-configured processing flow, and finally further determines or reports the processed change information. Through steps S801 to S804, on the basis of the original processing logic of the application framework layer of the terminal, the judging operation of whether to refresh the target interface is added, so that the original processing logic of the application framework layer of the terminal does not need to be adjusted in a large scale, and the application convenience is improved.
By determining the status information, it is not necessary to separately record whether the screen layout event is changed or not, or the type of the switching event is the first type, the processing operation of data judgment can be reduced.
In step S805, the refreshed target interface is displayed on the screen according to the change information of the display mode configuration information.
In a specific embodiment, displaying the refreshed target interface on the screen according to the change information of the display mode configuration information includes: and displaying the refreshed target interface on the screen after the display mode is switched, wherein the refreshed target interface is regenerated by the application according to the change information of the display mode configuration information, and the screen after the display mode is switched is determined according to the display mode before the switching event and the display mode after the switching event.
In this embodiment, the target interface after refreshing is obtained by adjusting the target interface before refreshing according to the change information of the display mode configuration information.
Thus, in embodiments of the present application, the screen includes at least one screen for displaying the target interface before and after the switching event occurs.
In the embodiment of the application, under the condition that a switching event of a display mode occurs, state information is firstly determined according to the change information of the display mode configuration information, and whether to refresh a target interface is determined according to the changed data item in the display mode configuration information, so that when the target interface needs to be refreshed, the state information is recorded, and under the condition that the change information of the display mode configuration information and the type of the switching event meet the corresponding requirement of refreshing the target interface, the target interface is refreshed, and visual perception of a user is prevented from being influenced due to insufficient adaptation degree of the target interface and the display mode after switching during display mode switching, and visual effect of the user in use is improved.
In one embodiment, the display method at the time of switching the display modes further includes:
filtering the change information of the display mode configuration information to obtain filtered first information when the state information for representing the screen layout change event indicates that the screen layout of the screen is not changed and the type of the switching event is the second type;
and reporting the filtered first information to an application layer of the terminal, wherein the filtered first information is used for indicating the interface parameters of the target interface displayed by the application modification screen.
In a specific implementation, whether the screen layout has been changed may be determined by whether screen layout information is included in the display mode configuration information. The screen mode configuration information comprises a plurality of data items, and the change information of the screen mode configuration information comprises the data items changed when the screen mode is switched.
Filtering the change information of the display mode configuration information to obtain filtered first information, which may include, as the first information, filtering the data items of the remaining change information.
In this embodiment, the display mode switching event is not identical to the screen layout modification event. The display mode switching event may cause a plurality of data items in the display mode configuration information to be changed, wherein the data items may include data items corresponding to the screen layout changing event, and if the data items corresponding to the screen layout changing event are not included in the change information of the display mode switching event, the screen layout is indicated not to be changed due to the switching of the display mode.
If the state information representing the screen layout change event indicates that the screen layout is not changed, the display mode before the switch event occurs is the same as the screen layout of the display mode after the switch event occurs, and a new screen layout is not required to be adapted by using a mode of refreshing the target interface. Therefore, when the screen layout is not changed and the type of the switching event is the second type, the target interface can not be refreshed, and the operation of the terminal system is reduced.
In one embodiment, the display method at the time of switching the display modes further includes:
filtering the change information of the display mode configuration information to obtain filtered second information;
under the condition that the state information for representing the screen layout changing event indicates that the screen layout of the terminal is changed and the type of the switching event is the first type, generating new changing information of the display mode configuration information according to the filtered second information;
Obtaining second changing information of the display mode configuration information according to the changing information of the new display mode configuration information and the screen layout information; and the second change information of the display mode configuration information is used for obtaining the refreshed target interface.
In general, when a switching event of a display mode occurs, change information of display mode configuration information is acquired, then the change information of the display mode configuration information is filtered, data items which need to be focused by an application and refer to a modification target interface are determined, and the application is notified according to the data items which remain after the filtering, so that the application correspondingly modifies the target interface.
In the embodiment of the present application, when the state information for representing the screen layout modification event indicates that the screen layout of the terminal is modified, and the type of the switching event is the first type, it is considered that the difference between the display modes before and after the occurrence of the switching event belongs to the first type, that is, the target interface needs to be refreshed according to the display modes before and after the occurrence of the switching event. And then judging whether the target interface needs to be refreshed according to whether the display mode configuration information contains the appointed screen layout information or not, and further generating second change information for obtaining the refreshed target interface according to the double condition judgment result, so that the application can refresh the target interface according to the second change information.
In one embodiment, refreshing a target interface of an application of a screen display includes:
and sending a target interface refreshing request and second change information of the display mode configuration information to an application of the terminal, so that the application generates a refreshed target interface according to the second change information of the display mode configuration information.
In this embodiment, a refresh request of the target interface is sent to the application, and the refresh request is sent, and meanwhile, the second change information is carried, so that the application of the terminal refreshes the target interface according to the second change information, and obtains the target interface adapted to the second change information of the display mode configuration information, thereby avoiding the problems that the target interface is displayed in the display mode after switching according to the parameters in the display mode before switching, and the target interface cannot be filled in the display area of the screen, and the target interface cannot display all contents in the display area after switching of the display mode.
In one embodiment, obtaining second change information of the display mode configuration information according to the change information of the new display mode configuration information and the screen layout information includes:
adding the screen layout information into the change information of the new display mode configuration information to obtain second change information of the display mode configuration information.
In general, each application sets a corresponding filtering condition, and when the display mode configuration information changes, obtains change information of the display mode configuration information, and filters the change information according to the filtering condition. The filtering conditions of each application configuration are mainly used for screening the change information which does not need to be focused by the application, so that fewer adjustment operations are performed on the generated target interface as much as possible when a switching event of a display mode occurs in the running process of the application.
However, sometimes, after the display mode switching event occurs in the terminal, if some parameters of the target interface are not changed, a certain display problem may be caused. For example, as shown in fig. 9A, when the terminal is a folding screen, if the display mode is switched from the display mode corresponding to the folding state to the display mode of the unfolding state, the display is performed according to the display mode configuration information corresponding to the folding state, which may cause the target interface of the application to be blocked, and a blocking area 901 may appear. Referring to fig. 9B, if the terminal is switched from the display mode corresponding to the unfolded state to the display mode corresponding to the folded state, the display is performed according to the display mode configuration information corresponding to the unfolded state, which may cause the target interface of the application to fail to completely cover the display area and the blank area 902 to appear.
In the embodiment of the present application, after the filtering step is performed, whether the obtained second modification information needs to be modified is determined according to the type of the switching event and whether the modification information includes a data item corresponding to the screen layout information, and if it is determined that the modification is needed, the screen layout information is added to the modification information of the new filtered display mode configuration information, so that it is ensured that the screen layout information affecting the display effect can be sent to the application under the condition that the target interface needs to be refreshed, so that the application does not ignore the modification of the screen layout information due to filtering.
In one embodiment, adding screen layout information to the change information of the new display mode configuration information includes:
the screen layout information is connected with the change information of the new display mode configuration information by an OR operation instruction, so that the screen layout information is added into the change information of the new display mode configuration information.
In the embodiment of the application, the screen layout information contained in the change information of the display mode configuration information before filtering is connected with the new display mode configuration information obtained after filtering by using the OR operation instruction, so that the screen layout information connected by the OR operation instruction is ensured to be received when the application can configure the information in the new display mode, and the refreshed target interface is adjusted according to the screen layout information, so that the refreshed target interface is suitable for the display area after the display mode is switched.
In one embodiment, the display method at the time of switching the display modes further includes:
in the case where the change information of the display mode configuration information includes screen layout information, determining that the state information for representing the screen layout change event indicates that the screen layout of the terminal is changed;
and determining the type of the switching event of the display mode according to the display mode information.
In a specific implementation manner, before determining to refresh the target interface, it needs to determine whether the terminal satisfies two conditions, one is a type of a switching event of the display mode, and the other is whether the screen layout information changes when the switching event of the display mode occurs. And under the condition that the two conditions are met, determining that the request application refreshes the target interface.
In one embodiment, determining status information for a screen layout modification event according to modification information of display mode configuration information includes:
generating a bit zone local variable as state information of a screen layout change event when the screen layout information is included in the change information of the display mode configuration information;
the flag bit local variable is assigned to a first value, and state information representing a screen layout change event indicates that the screen layout of the terminal is changed.
In one embodiment, since the type of the switching event has been determined to be the first type, in a case where it is further determined that the screen layout information is included in the change information of the display mode configuration information, that is, the switching event is determined to be an event requiring attention of the application, and the screen layout information is changed, it is determined that the application can be requested to refresh the target interface. Since it is generally necessary to perform a series of processing operations including judgment, filtering, transmission, etc. on the change information of the display mode configuration information in the WMS module of the terminal. In the embodiment of the application, before filtering the change information of the display mode configuration information, the flag bit local variable is generated and used as the indication information of whether to refresh the target interface, so that the normal processing flow of the WMS on the change information of the display mode configuration information is not required to be changed, and the information loss of the screen layout information and the like which has decisive effect on whether to refresh the target interface is avoided because of the operations of the WMS on the change information of the display mode configuration information, and the like, thereby being beneficial to accurately judging whether to refresh the target interface.
In one embodiment, obtaining status information representing a screen layout modification event according to modification information of display mode configuration information includes:
In the case where the screen layout information is not included in the change information of the display mode configuration information, the flag bit local variable is assigned to a second value to indicate that the state information for representing the screen layout change event indicates that the screen layout of the terminal has not been changed.
In a specific implementation manner, the flag bit local variable is assigned to the second value by default, which means that the refresh operation on the target interface is not required. Therefore, when the screen layout information is not included in the change information of the display mode configuration information, the local variable of the zone bit is not modified, so that the second value is reserved.
In the case that the screen layout information is not included in the change information of the display mode configuration information, it is explained that although the type of the switching event accords with the first type, the screen layout is not changed before and after switching, so that the requirement of adapting the screen layout after switching to the target interface can be met without refreshing the target interface.
In one embodiment, the screen is a folding screen; the folding screen can be folded to form at least two screens, the at least two screens comprise a first screen and a second screen, and in the unfolded state, the first screen and the second screen are opposite; the screen switch event includes: the target interface is switched from being displayed on the first screen to being displayed on the second screen; displaying the refreshed target interface on a screen, including:
And displaying the refreshed target interface on the second screen. The first screen and the second screen in this embodiment do not completely correspond to the first screen and the second screen in the foregoing embodiments, but are named for distinguishing between the different screens.
In the case of a mobile phone comprising a folding screen, the state of the terminal may comprise an unfolded state and a folded state, the folding screen comprising a first screen and a second screen which are foldable. The unfolded state is used for displaying a target interface of the application through a large screen formed by the first screen and the second screen, the folded state is used as a target interface of the small screen display application through the first screen or the second screen, and the width of the small screen is about one half of that of the large screen. The display of the internal split screen is a characteristic of the mobile phone with a folding screen in the unfolded state, and in a large screen, two target interfaces of one application are displayed in a split screen mode, and the split screen proportion is generally one half. And in the unfolding state, two target interfaces of the application are displayed in the form of an internal screen of the application, in the folding state, a single target interface of the application is displayed, and in the display mode switching, the display mode of the target interface is switched. However, when the width of the small screen is different from one half of the width of the large screen, the phenomenon that the width of the target interface of the application is not adapted to the width of the screen before and after the screen mode is switched is taken as an example, and referring to fig. 9A, when the terminal is switched from the folded state to the unfolded state, the target interface of the application is blocked. When the terminal is switched from the unfolded state to the folded state, the target interface of the application may be left white, as shown in fig. 9B.
The reason for this problem is that when the screen is folded, WMS issues configuration change (change information of display mode configuration information), and the change information carries size change information (i.e., a plurality of data items in the foregoing embodiment), and the size change information includes screen size, smallstscreen size, screen layout information.
The screen size represents the change information of the currently available screen size, which value represents the change of the currently available size with respect to the current aspect ratio, which changes when the user switches between landscape mode and portrait mode.
smallstscreensize represents change information of the physical screen size. This value represents a direction-independent change in size, so that it will only change when the actual physical screen size changes (e.g. switches from the display of the terminal itself to an externally connected display).
Modification of the screen layout information may occur when other screens become active.
The screenLayout includes a plurality of sub-data items: screen size class, whether or not to widescreen indication information, screen direction information, whether or not to round corner screen indication information. Wherein, screen size class includes: four possible contents of screen_size_small (SMALL screen layout SIZE), screen_size_normal (NORMAL screen layout SIZE), screen_size_size (LARGE screen layout SIZE), and screen_size_size (oversized screen layout SIZE) correspond to four different SIZEs of preset screen levels. And whether the screen is wider or not is indicated by the information indicating whether the screen is wider or higher than the normal screen. The screen direction information is used to indicate whether the screen is displayed from left to right or from right to left. And whether the screen is round or not indicates information for indicating whether the screen is round or not.
The WMS may decide to refresh the target interface of the application or directly dispatch the change information of the display mode configuration information to the application, so that the application refreshes the interface according to the change information of the display mode configuration information sent by the WMS. However, the application configures screenSize, smallestScreenSize, screenLayout a threshold value for changing in order to receive the change information of the display mode configuration information only when necessary, and causes the WMS to filter a plurality of data items included in the change information of the display mode configuration information, thereby filtering out unnecessary received data items. Before and after the terminal is unfolded and folded, the WMS determines and filters according to the threshold provided by the application, if a change of a certain data item is on the same side of the corresponding threshold, the data item is filtered out in configuration change and is not sent to the application, and then the target interface is not refreshed according to the filtered out data item. If the filtered data items are screen layout information and there is a large screen layout change on the display screen of the terminal before and after the display mode is switched, the phenomenon that the application target interface is not updated before and after the display mode of the terminal is switched may be caused, and then the covering or white-keeping situation shown in fig. 9A and 9B may occur.
In this scheme, when the WMS determines that the current device is a folded screen and is a cut-screen scene, if there is screen size change screen layout information in configuration change, a FLAG bit local variable (FLAG 1) is set to true (i.e., a first value), and if no screen layout information is included, FLAG1 is set to false (i.e., a second value), and then a procedure for filtering the change information of the display mode configuration information is performed. If the folding screen is not satisfied and is a screen-cutting scene, such as multi-window deformation, full-screen suspension window change or full-screen split screen change, directly running a program for filtering the change information; after filtering new change information is calculated. If FLAG1 is true, CONFIG_SCREEN_LAYOUT is added to the calculated change based on filtering. Finally, the WMS judges whether to be a relatrch or directly send the change information of the new display mode configuration information to the application based on the latest change value.
When the folding screen switches display modes in the source code, the screenSize, smallestScreenSize, screenLayout value in configration change is filtered according to the threshold value of the application configuration. If screen is obtained after screen cutting is not adapted to part of application interfaces after display mode switching is caused by filtering out the screen, in the embodiment of the present application, the scene is judged, then the value of the screen layout is added back to the change information of the display mode configuration information, and WMS makes judgment on whether a target interface of a related application is selected based on a flag bit local variable, so that the size of the screen is ensured to be adapted to the application interfaces before and after the screen cutting.
In one embodiment, in the case where the change information of the display mode configuration information includes screen layout information, the screen layout information includes screen size gradation information and wide screen indication information before a switching event of the display mode, and screen size gradation information and wide screen indication information after the switching event of the display mode.
In a specific implementation, the screen layout information may further include more sub-data items as one data item included in the change information of the display mode configuration information. When the filtering operation is performed, a part of the sub data items in the screen layout information may be filtered, and the other part may not be filtered. In this case, if the target interface needs to be refreshed, the screen layout information before filtering is still added to the change information after filtering in an or operation manner.
In one embodiment, the display method for switching the display modes further includes:
determining that a screen switching event is of a first type in the event that the folding screen transitions from an unfolded state to a folded state, or the folding screen transitions from a folded state to an unfolded state;
in the event that the folding screen transitions from the unfolded state to the hovering state, or the folding screen transitions from the folded state to the hovering state, the occurrence of the screen switch event is determined to be of the first type.
In one embodiment, the display method for switching the display modes further includes:
filtering the change information of the display mode configuration information under the condition that the type of the switching event of the display mode is the second type, and obtaining filtered third information;
and reporting the filtered third information to an application layer of the terminal, wherein the filtered third information is used for indicating an application to change a target interface displayed on a screen.
In one embodiment, the change information of the display mode configuration information includes at least one of information, and the change information of each display mode configuration information records a parameter before a switching event of the display mode and a parameter after the switching event of the display mode; filtering change information of display mode configuration information, including:
for the change information of each display mode configuration information, filtering the parameters before the switching event of the display mode and the parameters after the switching event of the display mode when the parameters before the switching event of the display mode and the parameters after the switching event of the display mode are larger than a preset threshold;
for the change information of each display mode configuration information, filtering the parameters before the switching event of the display mode and the parameters after the switching event of the display mode when the parameters before the switching event of the display mode and the parameters after the switching event of the display mode are smaller than a preset threshold.
In one embodiment, the change information of the display mode configuration information includes: the screen size change information and the physical screen size change information are available.
Fig. 10 is a signaling interaction diagram, which illustrates a signaling interaction procedure of a display method according to an embodiment of the present application. Including steps S1001-S1013.
In step S1001: the system library of the terminal obtains the display mode information of the terminal.
In step S1002: the WMS determines that a display mode switching event occurs according to the display mode information.
In step S1003: the WMS obtains change information of the display mode configuration information.
In step S1004: the WMS determines the type of the display mode switching event according to the display modes before and after the display mode switching event.
In step S1005: the WMS determines that the type of the display mode switching event is a type of switching between folding and unfolding of the folding screen (i.e., the first type in the foregoing embodiment), and further determines whether the change information of the display mode configuration information includes screen layout information.
In step S1006: WMS generates a flag bit local variable.
In step S1007: when the change information of the display mode configuration information includes screen layout information, the WMS assigns a flag bit local variable to "true".
In step S1008: when the change information of the display mode configuration information does not include the screen layout information, the WMS assigns the flag bit local variable to "false".
In step S1009: the WMS filters the change information of the display mode configuration information.
In step S1010: and the WMS adds screen layout information into the filtered change information according to the value "true" of the flag bit local variable.
In step S1011: and the WMS sends a target interface refreshing request to the application according to the change information of the added screen layout information.
In step S1012: and the WMS reports the filtered change information to an application layer according to the assignment 'false' of the flag bit local variable.
In step S1013: and after receiving the target interface refreshing request, the application program refreshes the target interface according to the change information of the added screen layout information.
The embodiment of the application also provides a display device, which is applied to a terminal, wherein the terminal comprises a screen, as shown in fig. 11, and the display device comprises:
a display mode information obtaining module 1101, configured to obtain display mode information of a terminal;
a change information obtaining module 1102, configured to obtain change information of display mode configuration information corresponding to a switching event of a display mode when it is determined that the switching event of the display mode occurs on the screen according to the display mode information;
A state information determining module 1103, configured to obtain, according to the change information of the display mode configuration information, state information for representing a screen layout change event, in a case where the type of the switching event of the display mode is the first type;
a refresh module 1104 for refreshing a target interface of the application displayed on the screen in case the determined type is the first type;
the refresh display module 1105 displays the refreshed target interface on the screen according to the change information of the display mode configuration information.
In one embodiment, the display device further includes:
the first filtering module is used for filtering the change information of the display mode configuration information to obtain filtered first information when the state information for representing the screen layout change event indicates that the screen layout of the screen is not changed and the type of the switching event is the second type;
the first information sending module is used for reporting the filtered first information to an application layer of the terminal, and the filtered first information is used for indicating the application to change the interface parameters of the target interface displayed on the screen.
In one embodiment, the display device further includes:
the second filtering module is used for filtering the change information of the display mode configuration information to obtain filtered second information;
A change information generating module, configured to generate new change information of the display mode configuration information according to the filtered second information when the status information for representing the screen layout change event indicates that the screen layout of the terminal is changed and the type of the switching event is the first type;
a second change information obtaining module, configured to obtain second change information of the display mode configuration information according to the change information of the new display mode configuration information and the screen layout information; and the second change information of the display mode configuration information is used for obtaining the refreshed target interface.
In one embodiment, the refresh module includes:
and the second change information sending unit is used for sending a target interface refreshing request and second change information of the display mode configuration information to an application layer of the terminal, so that the application generates a refreshed target interface according to the second change information of the display mode configuration information.
In one embodiment, the second change information transmitting unit is further configured to:
adding the screen layout information into the change information of the new display mode configuration information to obtain second change information of the display mode configuration information.
In one embodiment, the second change information transmitting unit is further configured to:
The screen layout information is connected with the change information of the new display mode configuration information by an OR operation instruction, so that the screen layout information is added into the change information of the new display mode configuration information.
In one embodiment, the display device further includes:
a state information analysis module for determining that the state information indicating the screen layout change event indicates that the screen layout of the terminal is changed in the case where the change information of the display mode configuration information includes the screen layout information;
and the type determining module is used for determining the type of the switching event of the display mode according to the display mode information.
In one embodiment, the status information determination module includes:
a local variable generation unit configured to generate a flag bit local variable as status information of a screen layout modification event in a case where screen layout information is included in modification information of the display mode configuration information;
and the first assignment unit is used for assigning the local variable of the zone bit to be a first value so as to indicate that the screen layout of the terminal is changed by the state information representing the screen layout change event.
In one embodiment, the status information determination module includes:
And a second assignment unit configured to assign the flag bit local variable to a second value to indicate that the state information indicating the screen layout modification event indicates that the screen layout of the terminal has not been modified, in the case where the screen layout information is not included in the modification information of the display mode configuration information.
In one embodiment, the screen is a folding screen; the folding screen can be folded to form at least two screens, the at least two screens comprise a first screen and a second screen, and in the unfolded state, the first screen and the second screen are opposite; the screen switch event includes: the target interface is switched from being displayed on the first screen to being displayed on the second screen; the refresh display module includes:
and the second screen display unit is used for displaying the refreshed target interface on the second screen.
In one embodiment, in the case where the change information of the display mode configuration information includes screen layout information, the screen layout information includes screen size gradation information and wide screen indication information before a switching event of the display mode, and screen size gradation information and wide screen indication information after the switching event of the display mode.
In one embodiment, the display device further includes:
A first determining module for determining that a screen switching event is a first type when the folding screen is changed from an unfolded state to a folded state or when the folding screen is changed from the folded state to the unfolded state;
and the second determining module is used for determining that the screen switching event is of the first type when the folding screen is converted from the unfolded state to the hovering state or the folding screen is converted from the folded state to the hovering state.
In one embodiment, the display device further includes:
the third filtering module is used for filtering the change information of the display mode configuration information to obtain filtered third information when the type of the switching event of the display mode is the second type;
and the third information sending module is used for reporting the filtered third information to an application layer of the terminal, and the filtered third information is used for indicating a target interface displayed by the application modification screen.
In one embodiment, the change information of the display mode configuration information includes at least one of information, and the change information of each display mode configuration information records a parameter before a switching event of the display mode and a parameter after the switching event of the display mode; the first, second or third filter module further comprises:
The first filtering unit is used for filtering the parameters before the switching event of the display mode and the parameters after the switching event of the display mode according to the changing information of the configuration information of each display mode when the parameters before the switching event of the display mode and the parameters after the switching event of the display mode are all larger than a preset threshold;
the second filtering unit is configured to filter, for each piece of change information of the display mode configuration information, the parameter before the switching event of the display mode and the parameter after the switching event of the display mode when both the parameter before the switching event of the display mode and the parameter after the switching event of the display mode are smaller than a preset threshold.
In one embodiment, the change information of the display mode configuration information includes: the screen size change information and the physical screen size change information are available.
Fig. 12 is a schematic hardware structure of another electronic device according to an embodiment of the present application, as shown in fig. 12, where the electronic device includes a processor 1201, a communication line 1204, and at least one communication interface (illustrated in fig. 12 by taking the communication interface 1203 as an example).
The processor 1201 may be a general purpose central processing unit (central processing unit, CPU), microprocessor, application Specific Integrated Circuit (ASIC), or one or more integrated circuits for controlling the execution of the programs of the present application.
Communication line 1204 may include circuitry to transfer information between the above-described components.
The communication interface 1203 uses any transceiver-like device for communicating with other devices or communication networks, such as ethernet, wireless local area network (wireless local area networks, WLAN), etc.
Possibly, the electronic device may also comprise a memory 1202.
The memory 1202 may be, but is not limited to, read-only memory (ROM) or other type of static storage device that can store static information and instructions, random access memory (random access memory, RAM) or other type of dynamic storage device that can store information and instructions, but may also be electrically erasable programmable read-only memory (EEPROM), compact disc-read only memory (compact disc read-only memory) or other optical disk storage, optical disk storage (including compact disc, laser disc, optical disc, digital versatile disc, blu-ray disc, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer. The memory may be implemented separately and coupled to the processor via communication line 1204. The memory may also be integrated with the processor.
The memory 1202 is used for storing computer-executable instructions for executing aspects of the present application, and is controlled by the processor 1201 for execution. The processor 1201 is configured to execute computer-executable instructions stored in the memory 1202 to implement the methods provided by embodiments of the present application.
Possibly, the computer-executed instructions in the embodiments of the present application may also be referred to as application program code, which is not specifically limited in the embodiments of the present application.
In a particular implementation, the processor 1201 may include one or more CPUs, such as CPU0 and CPU1 in fig. 12, as one embodiment.
In a particular implementation, an electronic device may include multiple processors, such as processor 1201 and processor 1205 in fig. 12, as an embodiment. Each of these processors may be a single-core (single-CPU) processor or may be a multi-core (multi-CPU) processor. A processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (e.g., computer program instructions).
The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions in accordance with embodiments of the present application are produced in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wired (e.g., coaxial cable, fiber optic, digital subscriber line (digital subscriber line, DSL), or wireless (e.g., infrared, wireless, microwave, etc.), or semiconductor medium (e.g., solid state disk, SSD)) or the like.
Embodiments of the present application also provide a computer program product comprising instructions. The computer program product may be a software or program product containing instructions capable of running on a computing device or stored in any useful medium. The computer program product, when run on at least one computing device, causes the at least one computing device to perform the method provided by any of the embodiments described above.
Embodiments of the present application also provide a computer-readable storage medium. Computer readable storage media can be any available media that can be stored by a computing device or data storage device such as a data center containing one or more available media. Usable media may be magnetic media (e.g., floppy disks, hard disks, magnetic tape), optical media (e.g., DVD), or semiconductor media (e.g., solid state disk), among others. The computer-readable storage medium includes instructions that instruct a computing device to perform the method provided by any of the embodiments described above.
Computer readable media can include computer storage media and communication media and can include any medium that can transfer a computer program from one place to another. The storage media may be any target media that is accessible by a computer.
In one possible implementation, the computer readable medium may include random access memory (random access memory, RAM), read-only memory (ROM), compact disk (compact disc read-only memory, CD-ROM) or other optical disk memory, magnetic disk memory or other magnetic storage device, or any other medium targeted for carrying or storing the desired program code in the form of instructions or data structures, and accessible by a computer. Also, any connection is properly termed a computer-readable medium. For example, if the software is transmitted from a website, server, or other remote source using a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (digital subscriber line, DSL), or wireless technologies such as infrared, radio, and microwave, then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of medium. Disk and disc, as used herein, includes optical disc, laser disc, optical disc, digital versatile disc (digital versatiledisc, DVD), floppy disk and blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.
The embodiment of the application also provides a chip comprising a processor. The processor is configured to read and execute the computer program stored in the memory, so as to execute the call method provided in any embodiment of the present application.
Optionally, the chip further comprises a memory, and the memory is connected with the processor through a circuit or a wire.
The embodiment of the application also provides a chip system, which comprises a processor. The processor is configured to read and execute the computer program stored in the memory, so as to execute the call method provided in any embodiment of the present application.
Optionally, the chip system further comprises a memory, and the memory is connected with the processor through a circuit or a wire.
Embodiments of the present application are described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processing unit of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processing unit of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program for instructing relevant hardware, where the program may be stored in a computer readable storage medium, and the storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above embodiments are only for illustrating the technical solution of the present application, and are not limiting; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application.

Claims (17)

1. The display method during display mode switching is applied to a terminal, and the terminal comprises a screen; characterized in that the method comprises:
acquiring display mode information of the terminal;
obtaining changing information of display mode configuration information corresponding to a switching event of a display mode when the switching event of the display mode is judged to occur on the screen according to the display mode information;
Obtaining state information for representing a screen layout change event according to the change information of the display mode configuration information under the condition that the type of the switch event of the display mode is a first type;
refreshing a target interface of an application displayed on the screen when it is determined that the state information for representing a screen layout change event indicates that screen layout information of the screen is changed and the type of the switching event is a first type;
and displaying the refreshed target interface on the screen according to the change information of the display mode configuration information.
2. The method according to claim 1, wherein the method further comprises:
when the state information for representing the screen layout changing event indicates that the screen layout of the screen is not changed and the type of the switching event is the second type, the changing information of the display mode configuration information is filtered to obtain filtered first information;
and sending the filtered first information to an application layer, wherein the filtered first information is used for indicating the application to change the interface parameters of the target interface displayed on the screen.
3. The method according to claim 1, wherein the method further comprises:
filtering the change information of the display mode configuration information to obtain filtered second information;
generating new change information of display mode configuration information according to the filtered second information under the condition that the state information used for representing the screen layout change event indicates that the screen layout of the terminal is changed and the type of the switching event is the first type;
obtaining second changing information of the display mode configuration information according to the changing information of the new display mode configuration information and the screen layout information; and the second change information of the display mode configuration information is used for obtaining the refreshed target interface.
4. A method according to claim 3, wherein said refreshing a target interface of an application of said screen display comprises:
and sending a target interface refreshing request and second change information of the display mode configuration information to an application layer of the terminal, so that the application generates a refreshed target interface according to the second change information of the display mode configuration information.
5. A method according to claim 3, wherein said obtaining second change information of display mode configuration information from the change information of new display mode configuration information and the screen layout information comprises:
And adding the screen layout information into the change information of the new display mode configuration information to obtain second change information of the display mode configuration information.
6. The method of claim 5, wherein adding the screen layout information to the change information of the new display mode configuration information comprises:
and connecting the screen layout information with the change information of the new display mode configuration information by an OR operation instruction, so that the screen layout information is added into the change information of the new display mode configuration information.
7. A method according to claim 3, characterized in that the method further comprises:
in the case where the change information of the display mode configuration information includes screen layout information, determining that the state information for representing a screen layout change event indicates that a screen layout of the terminal is changed;
and according to the display mode information, obtaining the type of the switching event of the display mode.
8. The method according to claim 1, wherein the obtaining status information for representing a screen layout change event according to the change information of the display mode configuration information includes:
Generating a bit zone local variable as state information of the screen layout change event under the condition that the change information of the display mode configuration information comprises screen layout information;
and assigning the zone bit local variable to a first value so that the state information representing the screen layout changing event indicates that the screen layout of the terminal is changed.
9. The method according to claim 8, wherein the obtaining status information for representing a screen layout change event according to the change information of the display mode configuration information includes:
and under the condition that the screen layout information is not included in the change information of the display mode configuration information, the local variable of the zone bit is assigned to a second value so as to indicate that the state information used for indicating the screen layout change event indicates that the screen layout of the terminal is not changed.
10. The method of claim 1, wherein the screen is a folding screen; the folding screen can be folded to form at least two screens, the at least two screens comprise a first screen and a second screen, and in the unfolded state, the first screen and the second screen are opposite; the screen switch event includes: the target interface is switched from being displayed on the first screen to being displayed on the second screen; the method for displaying the refreshed target interface on the screen comprises the following steps:
And displaying the refreshed target interface on the second screen.
11. The method according to claim 10, wherein in the case where the change information of the display mode configuration information includes screen layout information, the screen layout information includes screen size gradation information and widescreen indication information before a switching event of the display mode, and screen size gradation information and widescreen indication information after the switching event of the display mode.
12. The method according to claim 10, wherein the method further comprises:
judging that the screen switching event is of a first type when the folding screen is converted from an unfolded state to a folded state or the folding screen is converted from the folded state to the unfolded state;
and judging that the screen switching event is of a first type under the condition that the folding screen is converted from an unfolding state to a hovering state or the folding screen is converted from the folding state to the hovering state.
13. The method according to claim 1, wherein the method further comprises:
filtering the change information of the display mode configuration information under the condition that the type of the switching event of the display mode is the second type, and obtaining filtered third information;
And reporting the filtered third information to an application layer of the terminal, wherein the filtered third information is used for indicating the application to change the target interface displayed on the screen.
14. The method according to any one of claims 2, 3 and 13, wherein the change information of the display mode configuration information includes at least one of information, the change information of each display mode configuration information recording a parameter before a switching event of the display mode and a parameter after the switching event of the display mode; the filtering the change information of the display mode configuration information includes:
for the change information of each display mode configuration information, filtering parameters before the switching event of the display mode and parameters after the switching event of the display mode when the parameters before the switching event of the display mode and the parameters after the switching event of the display mode are both larger than a preset threshold;
and filtering out the parameters before the switching event of the display mode and the parameters after the switching event of the display mode under the condition that the parameters before the switching event of the display mode and the parameters after the switching event of the display mode are smaller than a preset threshold value aiming at the changing information of the configuration information of each display mode.
15. The method of claim 14, wherein the changing information of the display mode configuration information includes: the screen size change information and the physical screen size change information are available.
16. An electronic device comprising a processor coupled to a memory, the processor for executing a computer program or instructions stored in the memory to cause the electronic device to implement the method of any one of claims 1-15.
17. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program which, when run on an electronic device, causes the electronic device to perform the method of any one of claims 1 to 15.
CN202311225004.5A 2023-09-19 2023-09-19 Display method and electronic equipment during display mode switching Pending CN117348827A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311225004.5A CN117348827A (en) 2023-09-19 2023-09-19 Display method and electronic equipment during display mode switching

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311225004.5A CN117348827A (en) 2023-09-19 2023-09-19 Display method and electronic equipment during display mode switching

Publications (1)

Publication Number Publication Date
CN117348827A true CN117348827A (en) 2024-01-05

Family

ID=89356596

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311225004.5A Pending CN117348827A (en) 2023-09-19 2023-09-19 Display method and electronic equipment during display mode switching

Country Status (1)

Country Link
CN (1) CN117348827A (en)

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20180015533A (en) * 2016-08-03 2018-02-13 삼성전자주식회사 Display control method, storage medium and electronic device for controlling the display
CN110389802A (en) * 2019-06-05 2019-10-29 华为技术有限公司 A kind of display methods and electronic equipment of flexible screen
CN112114912A (en) * 2019-06-19 2020-12-22 华为技术有限公司 User interface layout method and electronic equipment
CN112217923A (en) * 2018-06-29 2021-01-12 华为技术有限公司 Display method of flexible screen and terminal
US20210096887A1 (en) * 2019-10-01 2021-04-01 Microsoft Technology Licensing, Llc Positioning user interface components based on application layout and user workflows
CN112817675A (en) * 2021-01-22 2021-05-18 北京小米移动软件有限公司 Interface display processing method and device, electronic equipment and storage medium
WO2022022177A1 (en) * 2020-07-28 2022-02-03 华为技术有限公司 Display method and electronic device
US20220291818A1 (en) * 2019-12-11 2022-09-15 Samsung Electronics Co., Ltd. Electronic device and layout configuration method using same
CN115525180A (en) * 2022-10-14 2022-12-27 网易(杭州)网络有限公司 Screen switching method and device, computer readable storage medium and electronic equipment
US20230017891A1 (en) * 2019-12-31 2023-01-19 Lg Electronics Inc. Mobile terminal and method for controlling same
US20230038834A1 (en) * 2020-01-07 2023-02-09 Lg Electronics Inc. Mobile terminal and control method therefor
CN115756219A (en) * 2021-09-03 2023-03-07 Oppo广东移动通信有限公司 Content display method, device, terminal and storage medium
CN116521293A (en) * 2023-04-19 2023-08-01 维沃移动通信有限公司 Interface display method and device
CN116680023A (en) * 2022-03-25 2023-09-01 华为技术有限公司 Self-adaptive display method of interface and terminal equipment
CN116723256A (en) * 2022-02-28 2023-09-08 荣耀终端有限公司 Display method of electronic equipment with folding screen

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20180015533A (en) * 2016-08-03 2018-02-13 삼성전자주식회사 Display control method, storage medium and electronic device for controlling the display
CN112217923A (en) * 2018-06-29 2021-01-12 华为技术有限公司 Display method of flexible screen and terminal
CN110389802A (en) * 2019-06-05 2019-10-29 华为技术有限公司 A kind of display methods and electronic equipment of flexible screen
CN112114912A (en) * 2019-06-19 2020-12-22 华为技术有限公司 User interface layout method and electronic equipment
US20210096887A1 (en) * 2019-10-01 2021-04-01 Microsoft Technology Licensing, Llc Positioning user interface components based on application layout and user workflows
US20220291818A1 (en) * 2019-12-11 2022-09-15 Samsung Electronics Co., Ltd. Electronic device and layout configuration method using same
US20230017891A1 (en) * 2019-12-31 2023-01-19 Lg Electronics Inc. Mobile terminal and method for controlling same
US20230038834A1 (en) * 2020-01-07 2023-02-09 Lg Electronics Inc. Mobile terminal and control method therefor
WO2022022177A1 (en) * 2020-07-28 2022-02-03 华为技术有限公司 Display method and electronic device
CN112817675A (en) * 2021-01-22 2021-05-18 北京小米移动软件有限公司 Interface display processing method and device, electronic equipment and storage medium
CN115756219A (en) * 2021-09-03 2023-03-07 Oppo广东移动通信有限公司 Content display method, device, terminal and storage medium
CN116723256A (en) * 2022-02-28 2023-09-08 荣耀终端有限公司 Display method of electronic equipment with folding screen
CN116680023A (en) * 2022-03-25 2023-09-01 华为技术有限公司 Self-adaptive display method of interface and terminal equipment
CN115525180A (en) * 2022-10-14 2022-12-27 网易(杭州)网络有限公司 Screen switching method and device, computer readable storage medium and electronic equipment
CN116521293A (en) * 2023-04-19 2023-08-01 维沃移动通信有限公司 Interface display method and device

Similar Documents

Publication Publication Date Title
CN114397979B (en) Application display method and electronic equipment
AU2018430381B2 (en) Flexible screen display method and terminal
US11683850B2 (en) Bluetooth reconnection method and related apparatus
CN113961157B (en) Display interaction system, display method and equipment
US11972106B2 (en) Split screen method and apparatus, and electronic device
CN116009999A (en) Card sharing method, electronic equipment and communication system
US20230342106A1 (en) Collaborative display method, terminal device, and computer-readable storage medium
CN114691248B (en) Method, device, equipment and readable storage medium for displaying virtual reality interface
CN117348827A (en) Display method and electronic equipment during display mode switching
CN114397980B (en) Application display method and electronic equipment
CN117369914A (en) Display method and electronic equipment
CN117692693A (en) Multi-screen display method and related equipment
CN117311580A (en) Screen splitting method and foldable electronic equipment
CN116700556A (en) Card generation method and related device
CN117762281A (en) Method for managing service card and electronic equipment
CN118276730A (en) Interface display method of application program and electronic device
CN118689425A (en) Image synthesis method and device and electronic 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