Screen display method and system of multi-screen equipment and computer readable medium
By designing a mapping method between logical and physical screens in a multi-screen device, users are allowed to dynamically exchange the display modes of the main screen and the secondary screen, which solves the problem of fixed display modes in the existing technology and improves the user experience.
Patent Information
- Application Number
- CN202410849662.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-27
- Publication Date
- 2024-10-01
AI Technical Summary
The display methods of the main screen and secondary screen in existing multi-screen devices are fixed and users cannot freely change them, resulting in a poor user experience.
By designing the mapping method between the physical main screen, physical secondary screen, logical main screen, and logical secondary screen, users are allowed to dynamically exchange the display modes of the main screen and secondary screen, and the AOSP multi-monitor software architecture is redesigned using software methods to break through the limitations of hardware interfaces. Realize the main and secondary screen exchange function from the user's perspective.
It enables users to dynamically configure the display mode of the main screen and secondary screen according to actual needs, improving the experience of using multi-screen devices. Users can use the physical secondary screen as the main screen to switch between different display and co-display states.
Smart Images

Figure CN118732980A_ABST
Abstract
Description
Technical Field
[0001] The present invention mainly relates to the field of multi-screen display technology, and specifically relates to a screen display method, system and computer-readable medium of a multi-screen device. Background Art
[0002] A multi-screen device is a device that has multiple display screens. A multi-screen device usually includes several screen interfaces and several screens, and the screens are physically connected to the screen interfaces through cables. During the startup of a multi-screen device, the power-on order of the screen interfaces is fixed. The first screen that is powered on and mounted to the system is regarded as the main screen by the Android Open Source Project (AOSP), and the remaining powered-on and mounted screens are secondary screens. Figure 2 This is a schematic diagram of the screen architecture of an Android dual-screen device. Figure 2 As shown, the screen architecture 200 of the native system shows two screens, screen A is connected to screen interface 1, and screen B is connected to screen interface 2.
[0003] The main screen of a multi-screen device is the default screen for drawing the user interface; by default, the secondary screen is the screen that uses the main screen interface to display the screen in equal proportion. The main screen and the secondary screen can be in the same display mode or different display mode. In the same display mode, the secondary screen displays the same content as the main screen, which is equivalent to the mirror mode; in the different display mode, the secondary screen displays independent content, and the secondary screen is not related to the main screen content, which is equivalent to the demonstration mode.
[0004] In current multi-screen devices, the connection relationship between the main screen, the secondary screen and the hardware interface cannot be modified once it is determined, and the mounting order of the screens is determined by the power-on of the hardware screen interface. That is, from the user's perspective, the display mode of the main screen and the secondary screen cannot be freely changed, resulting in a poor user experience when using multi-screen devices. Summary of the invention
[0005] The technical problem to be solved by the present application is to provide a screen display method, system and computer-readable medium for a multi-screen device, which can allow users to dynamically and freely switch the display modes of the main screen and the secondary screen, thereby improving the user's experience of using the multi-screen device.
[0006] The technical solution adopted by the present application to solve the above technical problems is a screen display method for a multi-screen device, wherein the multi-screen device includes a physical main screen and a physical sub-screen, including: step S1: setting the logical display object of the physical main screen to the logical main screen, creating a main display interface using preset parameters of the logical main screen, and refreshing the main display interface to display on the physical main screen; setting the logical display object of the physical sub-screen to the logical sub-screen; step S2: judging whether it is necessary to exchange the logical main screen and the logical sub-screen according to the user instruction, and if it is judged that it is not necessary to exchange, then executing step S3; if it is judged that it is necessary If exchange is required, proceed to execute step S4; step S3: draw the first window using the preset parameters of the logical secondary screen or the preset parameters of the logical main screen according to the creation of the independent window of the secondary screen, refresh the first window to display on the physical secondary screen, and end the execution of the screen display method; step S4: exchange the mapping relationship between the logical main screen, the physical main screen, the logical secondary screen, and the physical secondary screen; draw the second window using the preset parameters of the logical secondary screen or the preset parameters of the logical main screen according to the creation of the independent window of the secondary screen, refresh the second window to display on the physical main screen, and end the execution of the screen display method.
[0007] In one embodiment of the present application, in step S1, the logical display object of the physical main screen is set to the logical main screen, the main display interface is created using the preset parameters of the logical main screen, and the step of refreshing the main display interface to display on the physical main screen further includes: step S1a1: in response to the power-on mount signal of the physical main screen, creating a display device object DisplayDevice of the physical main screen as a first display; step S1a2: setting the logical display object LogicalDisplay of the physical main screen as the logical main screen according to the first display; step S1a3: creating the main display interface using the preset parameters of the logical main screen; wherein the preset parameters of the logical main screen include a size parameter size; step S1a4: refreshing the main display interface to display on the physical main screen.
[0008] In one embodiment of the present application, in step S1, the step of setting the logical display object of the physical secondary screen to the logical secondary screen further includes: step S1b1: in response to the power-on mounting signal of the physical secondary screen, creating a display device object DisplayDevice of the physical secondary screen as a second display; step S1b2: setting the logical display object LogicalDisplay of the physical secondary screen to the logical secondary screen according to the second display.
[0009] In one embodiment of the present application, in step S3, the first window is drawn using the preset parameters of the logical secondary screen or the preset parameters of the logical main screen according to the creation of the independent window of the secondary screen, and the step of refreshing the first window to be displayed on the physical secondary screen includes: step S3a1: if an application creates an independent window of the secondary screen, the first window is drawn using the preset parameters of the logical secondary screen; wherein the preset parameters of the logical secondary screen include a size parameter size; step S3a2: refreshing the first window to be displayed on the physical secondary screen, so that the physical main screen and the physical secondary screen are in a different display state.
[0010] In one embodiment of the present application, in step S3, the first window is drawn using the preset parameters of the logical secondary screen or the preset parameters of the logical main screen according to the creation of the independent window of the secondary screen, and the step of refreshing the first window to display on the physical secondary screen includes: step S3b1: if no application creates an independent window for the secondary screen, the first window is drawn using the preset parameters of the logical main screen; wherein the preset parameters of the logical main screen include a size parameter size; step S3b2: scaling the first window and refreshing it to project it onto the physical secondary screen for display, so that the physical main screen and the physical secondary screen are in the same display state.
[0011] In one embodiment of the present application, in step S4, the step of exchanging the mapping relationship between the logical main screen, the physical main screen, the logical sub-screen, and the physical sub-screen includes: step S4a1: setting the logical display object of the physical main screen to the logical sub-screen, and setting the logical display object of the physical sub-screen to the logical main screen; step S4a2: redrawing the main display interface using the size parameter size of the logical main screen according to the size of the physical sub-screen; step S4a3: refreshing the redrawn main display interface to display on the physical sub-screen.
[0012] In one embodiment of the present application, in step S4, the second window is drawn using the preset parameters of the logical secondary screen or the preset parameters of the logical main screen according to the creation of the independent window of the secondary screen, and the step of refreshing the second window to display on the physical main screen includes: step S4b1: if an application creates an independent window of the secondary screen, the second window is drawn using the preset parameters of the logical secondary screen; wherein the preset parameters of the logical secondary screen include a size parameter size; step S4b2: refresh the second window to display on the physical main screen, so that the physical main screen and the physical secondary screen are in a different display state.
[0013] In one embodiment of the present application, in step S4, the second window is drawn using the preset parameters of the logical secondary screen or the preset parameters of the logical main screen according to the creation of the independent window of the secondary screen, and the step of refreshing the second window to display on the physical main screen includes: step S4c1: if no application creates an independent window for the secondary screen, the second window is drawn using the preset parameters of the logical main screen; wherein the preset parameters of the logical main screen include a size parameter size; step S4c2: scaling the second window and refreshing it to project it onto the physical main screen for display, so that the physical main screen and the physical secondary screen are in the same display state.
[0014] In order to solve the above technical problems, the present application also proposes a screen display system for a multi-screen device, including: a multi-screen device, including a physical main screen and at least one physical secondary screen; a memory, used to store instructions executable by a processor; a processor, used to execute instructions to implement the screen display method of the multi-screen device as above.
[0015] In order to solve the above technical problems, the present application also proposes a computer-readable medium storing computer program codes, and the computer program codes implement the screen display method of the multi-screen device as described above when executed by a processor.
[0016] The technical solution of the present application can correctly refresh the display interface of each logical screen and project it onto the corresponding physical screen for display by designing the mapping method between the physical main screen, the physical secondary screen, the logical main screen, and the logical secondary screen; if the user creates an independent window for the secondary screen, the physical main screen and the physical secondary screen will be displayed in a different display state; if the user does not create an independent window for the secondary screen, the physical main screen and the physical secondary screen will be displayed in the same display state. The present application adopts a software method, and breaks through the limitations of the original architecture by redesigning the AOSP multi-display software architecture. The user can dynamically configure the display mode of the main screen and the secondary screen according to actual needs, such as using the physical secondary screen as the main screen. The present application can realize the main-secondary screen swap function from the user's perspective, which improves the user's experience of using multi-screen devices. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are described in detail below with reference to the accompanying drawings, wherein:
[0018] Figure 1 is an exemplary flow chart of a screen display method for a multi-screen device according to an embodiment of the present application;
[0019] Figure 2 This is a schematic diagram of the screen architecture of an Android dual-screen device;
[0020] Figure 3 is a schematic diagram of a key software class in an embodiment of the present application;
[0021] Figure 4 It is a schematic diagram of the parameters in the main screen and the secondary screen and their software key classes in one embodiment of the present application;
[0022] Figure 5 It is a parameter diagram of the same display state and different display state between the physical main screen and the physical secondary screen in one embodiment of the present application;
[0023] Figure 6 It is a schematic diagram of parameters in the key classes of the main screen and the secondary screen software after the main screen and the secondary screen are exchanged in one embodiment of the present application;
[0024] Figure 7 It is a schematic diagram of parameters of the same display state and different display state between the physical main screen and the physical secondary screen after the main screen and the secondary screen are exchanged in one embodiment of the present application;
[0025] Figure 8 is an exemplary flow chart of a screen display method for a multi-screen device according to another embodiment of the present application;
[0026] Fig. 9 This is a system block diagram of a screen display system of a multi-screen device according to an embodiment of the present application. DETAILED DESCRIPTION
[0027] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are described in detail below with reference to the accompanying drawings.
[0028] In the following description, many specific details are set forth to facilitate a full understanding of the present application, but the present application may also be implemented in other ways different from those described herein, and therefore the present application is not limited to the specific embodiments disclosed below.
[0029] As shown in this application and claims, unless the context clearly indicates an exception, the words "a", "an", "an" and / or "the" do not refer to the singular and may also include the plural. Generally speaking, the terms "include" and "comprise" only indicate the inclusion of the steps and elements that have been clearly identified, and these steps and elements do not constitute an exclusive list. The method or device may also include other steps or elements.
[0030] Flowcharts are used in the present application to illustrate the operations performed by the system according to the embodiments of the present application. It should be understood that the preceding or following operations are not necessarily performed accurately in order. On the contrary, various steps may be processed in reverse order or simultaneously. At the same time, other operations may be added to these processes, or one or more operations may be removed from these processes.
[0031] The present application proposes a screen display method for a multi-screen device, which can be applied to a multi-screen interactive scenario of an Android multi-screen device, and can realize the exchange display of the main and secondary screens from the user's perspective. The screen display method for a multi-screen device of the present application can be run in a local multi-screen device, for example, in a controller of the multi-screen device, and can also be run in a cloud platform. When the screen display method for the multi-screen device is run on a cloud platform, the data of the local multi-screen device interacts with the cloud platform data through a wireless network. Exemplarily, the cloud platform may include a private cloud, a public cloud, a hybrid cloud, a community cloud, a distributed cloud, an interconnected cloud, and multiple clouds, or any combination thereof. The present application does not limit the operating environment of the screen display method for the multi-screen device.
[0032] Here, the software key classes defined in this application for implementing the screen display method of a multi-screen device are first introduced to facilitate understanding of the technical solution of this application. The screen display method of a multi-screen device of this application will be introduced later.
[0033] Figure 3 Schematic diagram of the key software class in an embodiment of the present application. Figure 3 As shown, the display device class DisplayDevice represents the physical screen, that is, the screen that the user sees; the parameter size in the DisplayDevice class represents the size of the physical screen. The logical display class LogicalDisplay represents the logical screen, that is, the screen on which the graphics system creates windows. Each DisplayDevice (physical screen) has a corresponding LogicalDisplay (logical screen). Parameters in the LogicalDisplay class: The parameter mDisplayId is equivalent to the mount order ID. The value of mDisplayId increases from 0, indicating its mount order in the system. The physical primary screen will be mounted first, with mDisplayId of 0, and the mDisplayId of other physical secondary screens increases from 1; the value of the parameter mLayerStack is consistent with the parameter mDisplayId; the parameter mPrimaryDisplayDevice indicates the corresponding physical screen, which is equivalent to the corresponding identifier of the physical screen; the parameter size indicates the corresponding size of the logical screen; the parameter mHasContent indicates whether the logical screen contains an independent window. If mHasContent = false, it means that the logical screen does not contain an independent window, and the primary and secondary screens are in the same display state; if mHasContent = true, it means that the logical screen contains an independent window, and the primary and secondary screens are in different display states.
[0034] Continue to refer Figure 3 As shown, exemplarily, the window class Layer represents an independent window; the parameter layerStack in the class Layer represents the window stack ID used when drawing the interface, that is, represents the window group to which the interface belongs.
[0035] Figure 4 Schematic diagram of the parameters in the main screen and the secondary screen and their software key classes in an embodiment of the present application. Figure 4 As shown, area 400 shows the parameters of screen A (physical primary screen) and screen B (physical secondary screen). Taking screen A as an example, class DisplayDevice is screen A; parameter Size is 1920x1080. Class LogicalDisplay is the logical primary screen; parameter mDisplayId is 0; parameter mLayerStack is 0; parameter size is 1920x1080; parameter mHasContent is true; parameter mPrimaryDisplay is screen A. The parameters of screen B are not described here.
[0036] Figure 5 is a parameter diagram of the same display state and different display state between the physical main screen and the physical secondary screen in an embodiment of the present application. Figure 5 As shown, in area 500, sub-area 501 shows the same display state, and sub-area 501 shows window 1, window 2, and window 3, and the parameter Size of these three windows is 1920x1080, and the parameter layerStack is 0. Sub-area 502 shows the different display state, and the parameter Size of window 1 and window 2 in sub-area 502 is 1920x1080, and the parameter layerStack is 0; while the parameter Size of window 4 is 800x1280, and the parameter layerStack is 1.
[0037] Figure 6 Schematic diagram of parameters in the main screen and secondary screen software key classes after the main screen and secondary screen are swapped in an embodiment of the present application. Figure 6 As shown, area 600 shows the parameters of screen A (physical primary screen) and screen B (physical secondary screen). Taking screen B as an example, class DisplayDevice is screen B; parameter Size is 800x1280. Class LogicalDisplay is the logical primary screen; parameter mDisplayId is 0; parameter mLayerStack is 0; parameter size is 800x1280; parameter mHasContent is true; parameter mPrimaryDisplay is screen B. The parameters of screen A are not repeated here.
[0038] Figure 7 Schematic diagram of parameters of the same display state and different display state between the physical main screen and the physical secondary screen after the main screen and the secondary screen are exchanged in an embodiment of the present application. Figure 7As shown, in area 700, sub-area 701 shows the same display state, and sub-area 701 shows window 1, window 2, and window 3, and the parameter Size of these three windows is 800x1280, and the parameter layerStack is 0. Sub-area 702 shows the different display state, and the parameter Size of window 1 and window 2 in sub-area 702 is 800x1280, and the parameter layerStack is 0; while the parameter Size of window 4 is 1920x1080, and the parameter layerStack is 1.
[0039] Here we introduce the key processes of the key software classes used in this application.
[0040] Exemplarily, in terms of window creation and removal: (1) confirm whether to specify a logical screen based on the parameters of the application window creation. By default, the window is created on the logical main screen; (2) create a window Layer object based on the size, direction and parameter mLayerStack of the logical screen; (3) when the first window is added to the logical screen, set the parameter mHasContent of the logical screen to true; when the last window of the logical screen is removed, set the parameter mHasContent of the logical screen to false.
[0041] For example, in terms of interface refresh, it is necessary to traverse and draw all physical screens, and for each physical screen, traverse all logical screens. Find the logical screen whose parameter mPrimaryDisplay is the same as the current physical screen: (1) If the parameter mHasContent of the logical screen is true, assign the parameter mLayerStack of the logical screen to the parameter layerStack of the physical screen; (2) If the parameter mHasContent of the logical screen is false, assign the parameter mLayerStack of the logical primary screen to the parameter layerStack of the physical screen; (3) Traverse all windows, if the parameter layerStack of the window is the same as the parameter layerStack of the current physical screen, draw the window on the currently refreshed display.
[0042] The screen display method of the multi-screen device of the present application will be introduced below.
[0043] Figure 1 is an exemplary flow chart of a screen display method for a multi-screen device according to an embodiment of the present application, with reference to Figure 1 As shown, the screen display method of the multi-screen device of this embodiment includes the following steps:
[0044] Step S1: Set the logical display object of the physical main screen as the logical main screen, create the main display interface using the preset parameters of the logical main screen, refresh the main display interface to display on the physical main screen; set the logical display object of the physical secondary screen to the logical secondary screen.
[0045] Step S2: Determine whether the logical main screen and the logical sub-screen need to be exchanged according to the user's instruction. If it is determined that the exchange is not necessary, proceed to step S3; if it is determined that the exchange is necessary, proceed to step S4.
[0046] Step S3: Draw the first window using the preset parameters of the logical secondary screen or the preset parameters of the logical main screen according to the creation of the independent window of the secondary screen, refresh the first window to display on the physical secondary screen, and end the screen display method.
[0047] Step S4: Exchange the mapping relationship between the logical main screen, the physical main screen, the logical sub-screen, and the physical sub-screen; draw the second window using the preset parameters of the logical sub-screen or the preset parameters of the logical main screen according to the creation of the independent window of the sub-screen, refresh the second window to display on the physical main screen, and end the execution of the screen display method.
[0048] The above steps S1 to S4 are described in detail below:
[0049] In step S1, the logical display object of the physical main screen is set as the logical main screen, the preset parameters of the logical main screen are used to create the main display interface, and the main display interface is refreshed to display on the physical main screen; the logical display object of the physical secondary screen is set as the logical secondary screen. Figure 4 As shown, the physical main screen is screen A, the logical display object is LogicalDisplay, and the preset parameters may include parameter size, parameter mDisplayId, parameter mLayerStack, parameter mHasContent, and parameter mPrimaryDisplay; the physical secondary screen is screen B.
[0050] In some embodiments, in step S1, the logical display object of the physical main screen is set as the logical main screen, the main display interface is created using preset parameters of the logical main screen, and the step of refreshing the main display interface to display on the physical main screen further includes:
[0051] Step S1a1: In response to the power-on mount signal of the physical main screen, create a display device object DisplayDevice of the physical main screen as the first display (ie Figure 4 Screen A) shown in FIG.
[0052] Step S1a2: setting the logical display object LogicalDisplay of the physical main screen as the logical main screen according to the first display;
[0053] Step S1a3: creating a main display interface using preset parameters of the logical main screen; wherein the preset parameters of the logical main screen include a size parameter size;
[0054] Step S1a4: Refresh the main display interface to display on the physical main screen.
[0055] In some embodiments, in step S1, the step of setting the logical display object of the physical secondary screen to the logical secondary screen further includes:
[0056] Step S1b1: In response to the power-on mount signal of the physical secondary screen, create a display device object DisplayDevice of the physical secondary screen as the second display (ie Figure 4 Screen B) shown in FIG.
[0057] Step S1b2: setting the logical display object LogicalDisplay of the physical secondary screen as the logical secondary screen according to the second display.
[0058] In step S2, it is determined whether the logical main screen and the logical sub-screen need to be exchanged according to the user instruction. If it is determined that the exchange is not necessary, the process proceeds to step S3; if it is determined that the exchange is necessary, the process proceeds to step S4.
[0059] In step S3, the first window is drawn using the preset parameters of the logical secondary screen or the preset parameters of the logical main screen according to the creation of the secondary screen independent window, and the first window is refreshed to be displayed on the physical secondary screen, and the screen display method is terminated. Figure 5 As shown, if an application creates an independent window for a secondary screen, the physical main screen and the physical secondary screen need to be in a different display state, as shown in sub-area 502; if no application creates an independent window for a secondary screen, the physical main screen and the physical secondary screen need to be in the same display state, as shown in sub-area 501.
[0060] In some embodiments, in step S3, the step of drawing the first window using the preset parameters of the logical secondary screen or the preset parameters of the logical main screen according to the creation of the secondary screen independent window, and refreshing the first window to be displayed on the physical secondary screen includes:
[0061] Step S3a1: if an application creates an independent window for the secondary screen, the first window is drawn using the preset parameters of the logical secondary screen; wherein the preset parameters of the logical secondary screen include a size parameter size;
[0062] Step S3a2: Refresh the first window to display on the physical secondary screen, so that the physical main screen and the physical secondary screen are in a different display state.
[0063] In some embodiments, in step S3, the step of drawing the first window using the preset parameters of the logical secondary screen or the preset parameters of the logical main screen according to the creation of the secondary screen independent window, and refreshing the first window to be displayed on the physical secondary screen includes:
[0064] Step S3b1: if no application creates an independent window for the secondary screen, the first window is drawn using the preset parameters of the logical main screen; wherein the preset parameters of the logical main screen include a size parameter size;
[0065] Step S3b2: scaling the first window and refreshing and projecting it onto the physical secondary screen for display, so that the physical main screen and the physical secondary screen are in the same display state.
[0066] In step S4, the mapping relationship between the logical main screen, the physical main screen, the logical sub-screen, and the physical sub-screen is exchanged; the second window is drawn using the preset parameters of the logical sub-screen or the preset parameters of the logical main screen according to the creation of the independent window of the sub-screen, and the second window is refreshed to be displayed on the physical main screen, thereby completing the execution of the screen display method.
[0067] For example, after exchanging the mapping relationship between the main screen and the secondary screen, the screen parameters are as follows: Figure 6 Reference Figure 7 As shown, if an application creates an independent window for a secondary screen, the physical main screen and the physical secondary screen need to be in a different display state, as shown in sub-area 702; if no application creates an independent window for a secondary screen, the physical main screen and the physical secondary screen need to be in the same display state, as shown in sub-area 701.
[0068] In some embodiments, in step S4, the step of exchanging the mapping relationship between the logical main screen, the physical main screen, and the logical secondary screen, the physical secondary screen includes:
[0069] Step S4a1: setting the logical display object of the physical main screen as the logical secondary screen, and setting the logical display object of the physical secondary screen as the logical main screen;
[0070] Step S4a2: redrawing the main display interface using the size parameter size of the logical main screen according to the size of the physical secondary screen;
[0071] Step S4a3: Refresh the redrawn main display interface to display on the physical secondary screen.
[0072] For example, reference Figure 6 and Figure 7 As shown, by exchanging the mapping relationship between the logical screen and the physical screen, the window with the parameter layerStack of 0 created according to the logical main screen is drawn to the physical secondary screen (i.e., screen B), and the window with the parameter layerStack of 1 created according to the logical secondary screen is drawn to the physical main screen (i.e., screen A). This setting of the present application can realize the main-sub-screen swapping function from the user's perspective.
[0073] In some embodiments, in step S4, the step of drawing the second window using the preset parameters of the logical secondary screen or the preset parameters of the logical primary screen according to the creation of the secondary screen independent window, and refreshing the second window to be displayed on the physical primary screen includes:
[0074] Step S4b1: if an application creates an independent window for the secondary screen, draw the second window using the preset parameters of the logical secondary screen; wherein the preset parameters of the logical secondary screen include a size parameter size;
[0075] Step S4b2: Refresh the second window to display on the physical main screen, so that the physical main screen and the physical sub-screen are in a different display state.
[0076] For example, by default, it can be set that all windows are created using the size and other attributes of the physical secondary screen, and then scaled and projected to the physical primary screen.
[0077] In some embodiments, in step S4, the step of drawing the second window using the preset parameters of the logical secondary screen or the preset parameters of the logical primary screen according to the creation of the secondary screen independent window, and refreshing the second window to be displayed on the physical primary screen includes:
[0078] Step S4c1: if no application creates an independent window for the secondary screen, the second window is drawn using the preset parameters of the logical main screen; wherein the preset parameters of the logical main screen include a size parameter size;
[0079] Step S4c2: scaling the second window and refreshing and projecting it onto the physical main screen for display, so that the physical main screen and the physical secondary screen are in the same display state.
[0080] The technical solution of the present application can correctly refresh the display interface of each logical screen and project it onto the corresponding physical screen for display by designing the mapping method between the physical main screen, the physical secondary screen, the logical main screen, and the logical secondary screen; if the user creates an independent window for the secondary screen, the physical main screen and the physical secondary screen will be displayed in a different display state; if the user does not create an independent window for the secondary screen, the physical main screen and the physical secondary screen will be displayed in the same display state. The present application adopts a software method, and breaks through the limitations of the original architecture by redesigning the AOSP multi-display software architecture. The user can dynamically configure the display mode of the main screen and the secondary screen according to actual needs, such as using the physical secondary screen as the main screen. The present application can realize the main-secondary screen swap function from the user's perspective, which improves the user's experience of using multi-screen devices.
[0081] The screen display method of the multi-screen device of the present application will be introduced using an embodiment below.
[0082] Figure 8is an exemplary flow chart of a screen display method of a multi-screen device according to another embodiment of the present application. Figure 8 As shown, in step S801, the multi-screen device is started; in step S802, the display system service is started and begins to listen for display screen mounting; in step S803, the physical main screen is powered on and mounted; in step S804, a DisplayDevice object of the physical main screen is created as display A (equivalent to the first display mentioned above); in step S805, a LogicalDisplay object of the physical main screen is created using display A as the logical main screen; in step S806, the size and other parameters of the logical main screen are used to create the main display interface of applications such as the desktop; in step S807, the main display interface is refreshed to be displayed on the physical main screen; in step S808, the physical secondary screen is powered on and mounted; in step S809, a DisplayDevice object of the physical secondary screen is created as display B (equivalent to the second display mentioned above); in step S810, a LogicalDisplay object of the physical secondary screen is created using display B as the logical secondary screen.
[0083] Continue to refer Figure 8 As shown, in step S811, determine whether the user sets the exchange of the main and sub-screens. If the judgment is yes, then proceed to step S812, and if the judgment is no, then proceed to step S818; in step S812, exchange the mapping relationship between the logical screen and the physical screen, and use the corresponding new physical screen size and other parameters to update the logical screen parameters; in step S813, redraw the existing display interfaces of the main screen and the sub-screen using the new logical screen size and other parameters; in step S814, refresh the display interface of the redrawn logical main screen to the physical sub-screen for display; in step S815, determine whether there is an application that has created an independent window interface for the sub-screen. If the judgment is yes, then proceed to step S816, and if the judgment is no, then proceed to step S817.
[0084] Continue to refer Figure 8 As shown, in step S816, the second window of the sub-screen independent drawn by the size parameter of the logical sub-screen (physical main screen) is refreshed to the physical main screen; in step S817, the second window drawn by the size parameter of the logical main screen (physical sub-screen) is scaled and projected to the physical main screen; in step S818, it is determined whether there is an application that has created an independent window interface for the sub-screen. If it is determined to be yes, the process proceeds to step S819; if it is determined to be no, the process proceeds to step S820; in step S819, the first window of the sub-screen independent drawn by the size parameter of the logical sub-screen (physical sub-screen) is refreshed to the physical sub-screen; in step S820, the first window drawn by the size parameter of the logical main screen (physical main screen) is scaled and projected to the physical sub-screen; in step S821, the frame refresh is ended.
[0085] The present application also includes a screen display system for a multi-screen device, including: a multi-screen device, including a physical main screen and at least one physical secondary screen; and a memory and a processor. The memory is used to store instructions executable by the processor; the processor is used to execute the instructions to implement the screen display method of the multi-screen device described above.
[0086] Fig. 9 is a system block diagram of a screen display system of a multi-screen device according to an embodiment of the present application. Fig. 9 As shown, the screen display system 900 of the multi-screen device may include an internal communication bus 901, a processor 902, a read-only memory (ROM) 903, a random access memory (RAM) 904, and a communication port 905. The screen display system 900 of the multi-screen device may also include a hard disk 906. The internal communication bus 901 can realize data communication between the components of the screen display system 900 of the multi-screen device. The processor 902 can make judgments and issue prompts. In some embodiments, the processor 902 can be composed of one or more processors. The communication port 905 can realize data communication between the screen display system 900 of the multi-screen device and the outside. In some embodiments, the screen display system 900 of the multi-screen device can send and receive information and data from the network through the communication port 905. The screen display system 900 of the multi-screen device may also include different forms of program storage units and data storage units, such as a hard disk 906, a read-only memory (ROM) 903 and a random access memory (RAM) 904, which can store various data files used for computer processing and / or communication, and possible program instructions executed by the processor 902. The processor executes these instructions to implement the main part of the method. The result processed by the processor is transmitted to the user device through the communication port and displayed on the user interface.
[0087] The screen display method of the multi-screen device described above may be implemented as a computer program, stored in the hard disk 906 , and loaded into the processor 902 for execution, so as to implement the screen display method of the multi-screen device of the present application.
[0088] The present application also includes a computer-readable medium storing a computer program code, which, when executed by a processor, implements the screen display method of the multi-screen device described above.
[0089] When the screen display method of a multi-screen device is implemented as a computer program, it can also be stored in a computer-readable storage medium as a product. For example, a computer-readable storage medium may include, but is not limited to, a magnetic storage device (e.g., a hard disk, a floppy disk, a magnetic strip), an optical disk (e.g., a compact disk (CD), a digital versatile disk (DVD)), a smart card, and a flash memory device (e.g., an electrically erasable programmable read-only memory (EPROM), a card, a stick, a key drive). In addition, the various storage media described herein can represent one or more devices and / or other machine-readable media for storing information. The term "machine-readable medium" may include, but is not limited to, wireless channels and various other media (and / or storage media) that can store, contain and / or carry code and / or instructions and / or data.
[0090] It should be understood that the embodiments described above are only illustrative. The embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or any combination thereof. For hardware implementation, the processor may be implemented in one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), processors, controllers, microcontrollers, microprocessors, and / or other electronic units designed to perform the functions described herein, or a combination thereof.
[0091] Some aspects of the present application may be performed entirely by hardware, entirely by software (including firmware, resident software, microcode, etc.), or by a combination of hardware and software. The above hardware or software may be referred to as "data blocks", "modules", "engines", "units", "components" or "systems". The processor may be one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DAPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), processors, controllers, microcontrollers, microprocessors, or combinations thereof. In addition, various aspects of the present application may be expressed as computer products located in one or more computer-readable media, which include computer-readable program codes. For example, computer-readable media may include, but are not limited to, magnetic storage devices (e.g., hard disks, floppy disks, tapes ...), optical disks (e.g., compact disks CDs, digital versatile disks DVDs ...), smart cards, and flash memory devices (e.g., cards, sticks, key drives ...).
[0092] A computer-readable medium may include a propagated data signal containing computer program code, such as in baseband or as part of a carrier wave. The propagated signal may have a variety of manifestations, including electromagnetic, optical, etc., or a suitable combination. A computer-readable medium may be any computer-readable medium other than a computer-readable storage medium, which may be connected to an instruction execution system, device or apparatus to communicate, propagate or transmit a program for use. The program code on the computer-readable medium may be propagated via any suitable medium, including radio, cable, fiber optic cable, radio frequency signal, or similar medium, or any combination of the above mediums.
[0093] The basic concepts have been described above. Obviously, for those skilled in the art, the above application disclosure is only an example and does not constitute a limitation of the present application. Although not explicitly stated herein, those skilled in the art may make various modifications, improvements and amendments to the present application. Such modifications, improvements and amendments are suggested in the present application, so such modifications, improvements and amendments still belong to the spirit and scope of the exemplary embodiments of the present application.
[0094] At the same time, the present application uses specific words to describe the embodiments of the present application. For example, "one embodiment", "an embodiment", and / or "some embodiments" refer to a certain feature, structure or characteristic related to at least one embodiment of the present application. Therefore, it should be emphasized and noted that "one embodiment" or "an embodiment" or "an alternative embodiment" mentioned twice or more in different positions in this specification does not necessarily refer to the same embodiment. In addition, some features, structures or characteristics in one or more embodiments of the present application can be appropriately combined.
[0095] In some embodiments, numbers describing the number of components and attributes are used. It should be understood that such numbers used in the description of the embodiments are modified by the modifiers "about", "approximately" or "substantially" in some examples. Unless otherwise specified, "about", "approximately" or "substantially" indicate that the numbers are allowed to vary by ±20%. Accordingly, in some embodiments, the numerical parameters used in the specification and claims are approximate values, which may change according to the required features of individual embodiments. In some embodiments, the numerical parameters should take into account the specified significant digits and adopt the general method of retaining digits. Although the numerical domains and parameters used to confirm the breadth of their range in some embodiments of the present application are approximate values, in specific embodiments, the setting of such numerical values is as accurate as possible within the feasible range.
Claims
1. A screen display method for a multi-screen device, It is characterized in that The multi-screen device includes a physical main screen and a physical secondary screen, including: Step S1: setting the logical display object of the physical main screen as the logical main screen, creating a main display interface using the preset parameters of the logical main screen, and refreshing the main display interface to display on the physical main screen; setting the logical display object of the physical secondary screen as the logical secondary screen; Step S2: judging whether the logical main screen and the logical sub-screen need to be exchanged according to the user instruction, if it is judged that the exchange is not necessary, then turning to step S3; if it is judged that the exchange is necessary, then turning to step S4; Step S3: according to the creation of the independent window of the secondary screen, the first window is drawn using the preset parameters of the logical secondary screen or the preset parameters of the logical main screen, the first window is refreshed to be displayed on the physical secondary screen, and the screen display method is terminated; Step S4: Exchange the mapping relationship between the logical main screen, the physical main screen, the logical sub-screen, and the physical sub-screen; draw a second window using the preset parameters of the logical sub-screen or the preset parameters of the logical main screen according to the creation of the independent window of the sub-screen, refresh the second window to display on the physical main screen, and end the execution of the screen display method.
2. The screen display method of a multi-screen device according to claim 1, It is characterized in that In the step S1, the logical display object of the physical main screen is set as the logical main screen, the main display interface is created using the preset parameters of the logical main screen, and the step of refreshing the main display interface to display on the physical main screen further includes: Step S1a1: in response to a power-on mount signal of the physical main screen, creating a display device object DisplayDevice of the physical main screen as a first display; Step S1a2: setting the logical display object LogicalDisplay of the physical main screen as the logical main screen according to the first display; Step S1a3: creating a main display interface using the preset parameters of the logical main screen; wherein the preset parameters of the logical main screen include a size parameter size; Step S1a4: Refresh the main display interface to display on the physical main screen.
3. The screen display method of a multi-screen device according to claim 1 or 2, It is characterized in that In the step S1, the step of setting the logical display object of the physical secondary screen to the logical secondary screen further includes: Step S1b1: in response to the power-on mounting signal of the physical secondary screen, creating a display device object DisplayDevice of the physical secondary screen as a second display; Step S1b2: setting the logical display object LogicalDisplay of the physical secondary screen as the logical secondary screen according to the second display.
4. The screen display method of a multi-screen device according to claim 1, It is characterized in that In step S3, the step of drawing the first window using the preset parameters of the logical secondary screen or the preset parameters of the logical main screen according to the creation of the secondary screen independent window, and refreshing the first window to be displayed on the physical secondary screen includes: Step S3a1: if an application has created the secondary screen independent window, the first window is drawn using the preset parameters of the logical secondary screen; wherein the preset parameters of the logical secondary screen include a size parameter size; Step S3a2: Refresh the first window to display on the physical secondary screen, so that the physical main screen and the physical secondary screen are in a different display state.
5. The screen display method of a multi-screen device according to claim 1 or 4, It is characterized in that In step S3, the step of drawing the first window using the preset parameters of the logical secondary screen or the preset parameters of the logical main screen according to the creation of the secondary screen independent window, and refreshing the first window to be displayed on the physical secondary screen includes: Step S3b1: if no application creates the secondary screen independent window, draw the first window using the preset parameters of the logical main screen; wherein the preset parameters of the logical main screen include a size parameter size; Step S3b2: scaling the first window, refreshing it and projecting it onto the physical secondary screen for display, so that the physical main screen and the physical secondary screen are in the same display state.
6. The screen display method of a multi-screen device according to claim 1, It is characterized in that In step S4, the step of exchanging the mapping relationship between the logical main screen, the physical main screen, the logical secondary screen, and the physical secondary screen includes: Step S4a1: setting the logical display object of the physical main screen as the logical secondary screen, and setting the logical display object of the physical secondary screen as the logical main screen; Step S4a2: redrawing the main display interface using the size parameter size of the logical main screen according to the size of the physical secondary screen; Step S4a3: Refresh the redrawn main display interface to display on the physical secondary screen.
7. The screen display method of a multi-screen device according to claim 1, It is characterized in that In step S4, the step of drawing the second window using the preset parameters of the logical secondary screen or the preset parameters of the logical main screen according to the creation of the secondary screen independent window, and refreshing the second window to be displayed on the physical main screen includes: Step S4b1: if an application has created the secondary screen independent window, the second window is drawn using the preset parameters of the logical secondary screen; wherein the preset parameters of the logical secondary screen include a size parameter size; Step S4b2: Refresh the second window to display on the physical main screen, so that the physical main screen and the physical sub-screen are in a different display state.
8. The screen display method of a multi-screen device according to claim 1 or 7, It is characterized in that In step S4, the step of drawing the second window using the preset parameters of the logical secondary screen or the preset parameters of the logical main screen according to the creation of the secondary screen independent window, and refreshing the second window to be displayed on the physical main screen includes: Step S4c1: if no application creates the secondary screen independent window, draw the second window using the preset parameters of the logical main screen; wherein the preset parameters of the logical main screen include a size parameter size; Step S4c2: scaling the second window, refreshing it and projecting it onto the physical main screen for display, so that the physical main screen and the physical sub-screen are in the same display state.
9. A screen display system for a multi-screen device, It is characterized in that include: A multi-screen device includes a physical main screen and at least one physical secondary screen; a memory for storing instructions executable by a processor; A processor, configured to execute the instructions to implement the screen display method for a multi-screen device as described in any one of claims 1-8.
10. A computer readable medium storing computer program code, It is characterized in that When the computer program code is executed by a processor, the screen display method of the multi-screen device according to any one of claims 1 to 8 is implemented.
