Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure have been shown in the accompanying drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustration purposes only and are not intended to limit the scope of the present disclosure.
It should be understood that the steps recited in the apparatus embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Furthermore, apparatus embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "including" and variations thereof as used herein are intended to be open-ended, i.e., including, but not limited to. The term "based on" is based at least in part on. The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments. The term "responsive to" and related terms mean that one signal or event is affected to some extent by another signal or event, but not necessarily completely or directly. If event x occurs "in response to" event y, x may be directly or indirectly in response to y. For example, the occurrence of y may ultimately lead to the occurrence of x, but other intermediate events and/or conditions may exist. In other cases, y may not necessarily result in the occurrence of x, and x may occur even though y has not yet occurred. Furthermore, the term "responsive to" may also mean "at least partially responsive to". The term "determining" broadly encompasses a wide variety of actions, which may include calculating, computing, processing, deriving, exploring, looking up (e.g., looking up in a table, database or other data structure), ascertaining, and the like, as well as receiving (e.g., receiving information), accessing (e.g., accessing data in memory), and the like, as well as parsing, selecting, choosing, establishing, and the like. Related definitions of other terms will be given in the description below. Related definitions of other terms will be given in the description below.
It should be noted that the terms "first," "second," and the like in this disclosure are merely used to distinguish between different devices, modules, or units and are not used to define an order or interdependence of functions performed by the devices, modules, or units.
It should be noted that references to "one", "a plurality" and "a plurality" in this disclosure are intended to be illustrative rather than limiting, and those of ordinary skill in the art will appreciate that "one or more" is intended to be understood as "one or more" unless the context clearly indicates otherwise.
For the purposes of this disclosure, the phrase "a and/or B" means (a), (B), or (a and B).
The names of messages or information interacted between the various devices in the embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
The display control method provided according to one or more embodiments of the present disclosure is applied to terminal devices, including, but not limited to, mobile terminals and fixed terminals such as digital TVs, desktop computers, notebook computers, PAD (tablet computers), smartwatches, mobile phones, digital broadcast receivers, PDAs (personal digital assistants), PMPs (portable multimedia players), and the like.
Referring to fig. 1, fig. 1 shows a flowchart of a display control method 100 according to an embodiment of the disclosure, including steps S101 to S104:
step S101: and running an external display system on the terminal equipment, and projecting a task interface running by the external display system to an external display device for display.
In this embodiment, the terminal device is configured to project the external display system running on the terminal device onto the external display device in a wired or wireless manner, so that the external display device mirrors the external display system running on the terminal device.
The external display system can be a preset operating system which is operated by the terminal equipment and is suitable for the external display device, for example, a large-screen display system customized based on an Android system can be a multi-window system or a single-window system.
Step S102: and storing the task information of the operation of the external display system.
In some embodiments, the task information includes application running information, application window information, application display information. By way of example, application execution includes which applications the external display system is executing; the application window information comprises windows to which each application program has jumped; the application display information includes application resolution, application DPI (Dots Per Inch), and the like.
Step S103: and if the external display system receives an instruction for displaying the external display system after stopping displaying, operating the external display system and acquiring task information operated when the external display system stops displaying.
The instruction for displaying the external display system is used for triggering the external display device to display the external display system, including but not limited to: the terminal equipment establishes connection with an external display device; or, when the terminal device is connected with the external display device, the display mode is switched to the external display system display mode by other display modes, such as a mirror image screen display mode. Cases where the external display system stops displaying include, but are not limited to: the terminal equipment is disconnected with the external display device; or, in the case that the terminal device is connected to the external display device, the display mode of the external display system is switched to other display modes, such as a mirror image projection display mode.
In this step, task information that is stored in the previous step and is operated when the external display system stops displaying may be obtained when the external display system displays again.
Step S104: and displaying a task interface corresponding to the task information through the external display device based on the task information.
Therefore, according to the display control method provided by the embodiment of the disclosure, by storing the task information operated by the external display system when the terminal device operates and projects the external display system, the corresponding task can be restored based on the task information operated when the external display system stops displaying when the external display system is displayed again, and further the task interface loss of the external display system which is operated at present due to the fact that the external display device stops displaying due to the reasons such as disconnection of the external display device or display mode switching is avoided.
In some embodiments, the external display system operates based on a virtual screen; step S102 includes: storing the task information in a data structure corresponding to the virtual screen; step S104 includes: displaying a task interface corresponding to the task information in the virtual screen based on the task information; and projecting the content displayed in the virtual screen to the external display device so that the external display device mirrors and displays the content displayed in the virtual screen.
For example, a virtual screen may be created in the Android platform by calling the createVirtualDisplay () method of the DisplayManager class.
According to the display control method provided by one or more embodiments of the present disclosure, by operating the external display system based on the virtual screen, tasks operated by the external display system are related to the virtual screen, task information is stored in a data structure corresponding to the virtual screen, and the external display device can mirror-image display contents in the virtual screen, so that the virtual screen still operates in the terminal device even when the terminal device is disconnected from the external display device or is switched to other display modes. Therefore, in the embodiment of the disclosure, by using the characteristic that the virtual screen is not affected by the connection state of the external physical screen, the task information is stored in the data structure corresponding to the virtual screen, so that when the external screen is disconnected or is switched to other display modes, the terminal device does not lose the current running process and task of the external display system, and the problem that the task information running by the external display system is strongly related to the screen display information of the currently connected external screen and cannot be separated from the external screen for use can be solved. The above-mentioned saving of the task information operated by the external display system by means of the virtual screen is only an example.
In some embodiments, the terminal device is configured to be capable of projecting the content displayed in the terminal screen to the external display apparatus, such that the external display apparatus mirrors the content displayed in the terminal screen; the method 100 further comprises:
step A1: and responding to a preset screen switching instruction, and projecting the content displayed in the screen corresponding to the screen switching instruction to an external display device for display by the terminal equipment.
Wherein the terminal screen is a screen of the terminal device itself for displaying the screen as a default of the terminal device.
For example, in the Android platform, the screen content projected by the terminal device can be switched by calling the DisplayManager class. Illustratively, the terminal screen is used to display the internal operating system of the terminal device, including but not limited to an Android operating system, an IOS operating system, and the like.
In some embodiments, step A1 comprises:
step a11: when the preset screen switching display instruction corresponds to the content displayed in the display terminal screen, projecting the content displayed in the terminal screen to an external display device; or,
step a21: when the preset screen switching display instruction corresponds to the content displayed in the display virtual screen, the content displayed in the virtual screen is projected to the external display device.
In one or more embodiments of the present disclosure, the terminal device may display the content in the terminal screen through the external display device, may display the content in the virtual screen through the external display device, and support switching display between the virtual screen and the terminal screen; the external display device can mirror the content projected by the display terminal equipment. In some embodiments, when the user switches from the virtual screen display mode to the terminal screen display mode, the task information is stored in the data structure corresponding to the virtual screen, so that the task information can be used for recovering the corresponding task when the user switches back to the virtual screen display mode, and further seamless switching among multiple display modes is realized, and the task operated by the external display system before switching is not lost.
It should be noted that, when the terminal device projects the content displayed in the terminal screen to the external display device for mirror image display, the terminal screen may display the corresponding content at the same time, or may be in a screen-off state, which is not limited in this embodiment.
Fig. 2 shows an exemplary system architecture diagram provided in accordance with an embodiment of the present disclosure. In the system shown in fig. 2, the terminal device 210 and the external display device 220 may be connected by wired or wireless means. Illustratively, the connection manner of the terminal device 210 and the external display device 220 includes, but is not limited to, a wired connection manner based on a high-definition multimedia interface (HDMI) or the like, or a wireless connection manner based on Wi-Fi or the like. The terminal device 210 has a terminal screen 211 and a virtual screen 212, and the terminal device 210 can project the content displayed in the terminal screen 211 or the virtual screen 212 to the wired connection means 221 or the wireless connection means 222 of the external display means 220, thereby causing the external display means 220 to mirror the content displayed in the terminal screen 211 or the virtual screen 212.
In some embodiments, an application corresponding to an operation instruction may be displayed in the virtual screen in response to the operation instruction of the user, and corresponding task information is stored in a data structure corresponding to the virtual screen.
In some embodiments, the method 100 further comprises: acquiring an operation instruction of a user; and distributing the event corresponding to the operation instruction to the virtual screen so as to respond to the event corresponding to the operation instruction and update the task interface displayed on the virtual screen.
In this embodiment, the operation instruction of the user includes, but is not limited to, a touch operation instruction, a voice instruction, a gesture instruction, an instruction triggered by a virtual key or an entity key, etc., which may be triggered based on the operation of the user on the terminal device or the external display device. For example, if the external display device is a touch screen display, the control instruction of the user may be a touch operation for the touch screen display, and the terminal device may acquire a corresponding operation instruction and distribute an event corresponding to the operation instruction to the virtual screen, so that the user may operate the content in the virtual screen by touching the external display device.
In some embodiments, the method 100 further comprises: and if the instruction for displaying the external display system is not received within a preset period after the external display system stops displaying, removing the virtual screen, and removing a background process and/or task corresponding to the external display system. In this way, the related tasks and processes of the mobile device after the mobile device is disconnected from the external display device can be prevented from consuming the system resources and power consumption of the mobile device for a long time.
In some embodiments, the method 100 further comprises: acquiring resolution and/or screen Density (Density) of an external display device; step S103 includes:
step b11: determining whether a virtual screen exists in the terminal equipment currently; if yes, executing step b12;
step b12: determining whether the resolution and/or screen density of the virtual screen are consistent with those of the currently connected external display device; if yes, executing a step b13;
step b13: and operating the external display system based on the virtual screen.
In this embodiment, by determining whether the virtual screen existing in the terminal device is adapted to the currently connected external display device, further, by reusing the adapted virtual screen, tasks and processes running based on the virtual screen can be restored.
In some embodiments, the method 100 further comprises: if no virtual screen exists in the terminal equipment currently, a new virtual screen is created based on the resolution and/or screen density of the external display device.
In some embodiments, the method 100 further comprises: and if the resolution and/or the screen density of the virtual screen are inconsistent with those of the currently connected external display device, removing the virtual screen, and creating a new virtual screen based on the resolution and/or the screen density of the external display device.
In some embodiments, the method 100 further comprises: and responding to an instruction for stopping displaying the external display system, freezing at least one process corresponding to the external display system, and switching at least one foreground task corresponding to the external display system to a background.
The instruction for stopping displaying the external display system is used for triggering stopping displaying the external display system on the external display device, including but not limited to: the terminal equipment is disconnected with the external display device; or, in the case that the terminal device is connected to the external display device, the display mode of the external display system is switched to other display modes, such as a mirror image projection display mode.
Further, in some embodiments, the method 100 further comprises: and thawing at least one process corresponding to the external display system in response to the instruction for displaying the external display system, and switching at least one background task corresponding to the external display system to a foreground.
Referring to fig. 3, fig. 3 shows a flowchart of a display control method 300 according to an embodiment of the disclosure, including steps S301 to S306:
step S301: in response to an instruction to display an external display system, a virtual screen is created.
Step S302: and running an external display system on the terminal equipment based on the virtual screen, and projecting a task interface running by the external display system to an external display device for display.
Step S303: and storing the task information corresponding to the task interface in a data structure corresponding to the virtual screen.
Step S304: and if the external display system receives an instruction for displaying the external display system after stopping displaying, operating the external display system on the terminal equipment based on the virtual screen and acquiring task information operated when the external display system stops displaying.
Step S305: and displaying a task interface corresponding to the task information in the virtual screen based on the task information.
Step S306: and projecting the content displayed in the virtual screen to the external display device.
Referring to fig. 4, fig. 4 shows a flowchart of a display control method 400 provided according to one embodiment of the present disclosure, including:
step S401: acquiring the resolution and screen density of the external display which is currently connected;
step S402: determining whether a virtual screen exists in the current terminal equipment;
if yes, step S403 is executed: determining whether the resolution and screen density of the virtual screen are consistent with those of the external display device which is currently connected;
If the determination is consistent, step S404 is executed: reusing the virtual screen; steps S405 to S407 are performed next;
step S405: operating an external display system based on the virtual screen;
step S406: thawing a process corresponding to the external display system, and switching a background task corresponding to the external display system to a foreground;
step S407: projecting the content displayed by the virtual screen to an external display device;
in step S403, if it is determined that the images are not identical, steps S414 to S416 are performed;
step S414: removing the virtual screen;
step S415: creating a new virtual screen based on the resolution and screen density of the currently connected external display;
step S416: operating an external display system based on the new virtual screen;
step S417: projecting the content displayed by the new virtual screen to an external display device;
in step S402, if it is determined that the virtual screen does not exist in the current terminal device, steps S415 to S417 are also performed.
Accordingly, as shown in fig. 5, an embodiment of the present disclosure provides a display control apparatus 500, including:
the first operation unit 501 is configured to operate an external display system on a terminal device, and project a task interface operated by the external display system to an external display device for display;
The information storage unit 502 is configured to store task information that the external display system operates;
a second operation unit 503, configured to operate the external display system and obtain task information that is operated when the external display system stops displaying if an instruction to display the external display system is issued after the external display system stops displaying;
and a projection display unit 504, configured to display a task interface corresponding to the task information through the external display device based on the task information.
For embodiments of the device, reference is made to the description of method embodiments for the relevant points, since they essentially correspond to the method embodiments. The apparatus embodiments described above are merely illustrative, wherein the modules illustrated as separate modules may or may not be separate. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
Therefore, according to the display control device provided by the disclosure, the task information of the external display system is saved when the terminal device runs and projects the external display system, so that corresponding tasks can be recovered based on the task information of the external display system which is operated when the external display system stops displaying when the external display system is displayed again, and further the task interface loss of the external display system which is operated at present due to the fact that the external display device stops displaying due to the reasons such as disconnection of the external display device or display mode switching is avoided.
In some embodiments, the external display system operates based on a virtual screen; the information storage unit 502 is configured to store the task information in a data structure corresponding to the virtual screen; the projection display unit 504 includes:
a virtual display subunit, configured to display a task interface corresponding to the task information in the virtual screen based on the task information;
and the projection subunit is used for projecting the content displayed in the virtual screen to the external display device so that the external display device can mirror and display the content displayed in the virtual screen.
For example, a virtual screen may be created in the Android platform by calling the createVirtualDisplay () method of the DisplayManager class.
According to the display control device provided by one or more embodiments of the present disclosure, by operating the external display system based on the virtual screen, tasks operated by the external display system are related to the virtual screen, task information is stored in a data structure corresponding to the virtual screen, and the external display device can mirror-image display contents in the virtual screen, so that the virtual screen still operates in the terminal device even when the terminal device is disconnected from the external display device or is switched to other display modes. Therefore, in the embodiment of the disclosure, by using the characteristic that the virtual screen is not affected by the connection state of the external physical screen, the task information is stored in the data structure corresponding to the virtual screen, so that when the external screen is disconnected or is switched to other display modes, the terminal device does not lose the current running process and task of the external display system, and the problem that the task information running by the external display system is strongly related to the screen display information of the currently connected external screen and cannot be separated from the external screen for use can be solved. The above-mentioned saving of the task information operated by the external display system by means of the virtual screen is only an example.
In some embodiments, the terminal device is configured to be capable of projecting the content displayed in the terminal screen to the external display apparatus, such that the external display apparatus mirrors the content displayed in the terminal screen; the display control apparatus 500 further includes:
and the switching display unit is used for responding to a preset screen switching instruction, and the terminal equipment projects the content displayed in the screen corresponding to the screen switching instruction to the external display device for display.
Wherein the terminal screen is a screen of the terminal device itself for displaying the screen as a default of the terminal device.
For example, in the Android platform, the screen content projected by the terminal device can be switched by calling the DisplayManager class. Illustratively, the terminal screen is used to display the internal operating system of the terminal device, including but not limited to an Android operating system, an IOS operating system, and the like.
In some embodiments, the switching display unit is configured to, when the preset screen switching display instruction corresponds to displaying content displayed in the terminal screen, project the content displayed in the terminal screen to the external display device; or when the preset screen switching display instruction corresponds to the content displayed in the virtual screen, projecting the content displayed in the virtual screen to the external display device.
In one or more embodiments of the present disclosure, the terminal device may display the content in the terminal screen through the external display device, may display the content in the virtual screen through the external display device, and support switching display between the virtual screen and the terminal screen; the external display device can mirror the content projected by the display terminal equipment. When the user switches from the virtual screen display mode to the terminal screen display mode, the task information is stored in the data structure corresponding to the virtual screen, so that the user can recover the corresponding task when switching back to the virtual screen display mode, seamless switching among multiple display modes is realized, and the task operated by the external display system before switching is not lost.
It should be noted that, when the terminal device projects the content displayed in the terminal screen to the external display device for mirror image display, the terminal screen may display the corresponding content at the same time, or may be in a screen-off state, which is not limited in this embodiment.
In some embodiments, the display control apparatus 500 further includes:
an operation instruction acquisition unit configured to acquire an operation instruction of a user;
and the event distribution unit is used for distributing the event corresponding to the operation instruction to the virtual screen so as to respond to the event corresponding to the operation instruction and update the task interface displayed on the virtual screen.
In this embodiment, the operation instruction of the user includes, but is not limited to, a touch operation instruction, a voice instruction, a gesture instruction, an instruction triggered by a virtual key or an entity key, etc., which may be triggered based on the operation of the user on the terminal device or the external display device. For example, if the external display device is a touch screen display, the control instruction of the user may be a touch operation for the touch screen display, and the terminal device may acquire a corresponding operation instruction and distribute an event corresponding to the operation instruction to the virtual screen, so that the user may operate the content in the virtual screen by touching the external display device.
In some embodiments, the display control apparatus 500 further includes:
the overtime removing unit is used for removing the virtual screen and removing background processes and/or tasks corresponding to the external display system if the instruction for displaying the external display system is not received within a preset period after the external display system stops displaying. In this way, the related tasks and processes of the mobile device after the mobile device is disconnected from the external display device can be prevented from consuming the system resources and power consumption of the mobile device for a long time.
In some embodiments, the display control apparatus 500 further includes:
A screen parameter obtaining subunit, configured to obtain resolution and/or screen Density (Density) of the external display device; the second operation unit 503 includes:
a virtual screen presence determination subunit configured to determine whether a virtual screen is currently present in the terminal device;
virtual screen parameter determination subunit: if the virtual screen exists, determining whether the resolution and/or the screen density of the virtual screen are consistent with those of the currently connected external display device;
and the virtual screen multiplexing subunit is used for operating the external display system based on the virtual screen if the resolution and/or screen density of the virtual screen are determined to be consistent with those of the currently connected external display device.
In this embodiment, by determining whether the virtual screen existing in the terminal device is adapted to the currently connected external display device, further, by reusing the adapted virtual screen, tasks and processes running based on the virtual screen can be restored.
In some embodiments, the display control apparatus 500 further includes:
and the virtual screen newly-built subunit is used for creating a new virtual screen based on the resolution and/or screen density of the external display device if the virtual screen does not exist in the terminal equipment currently.
In some embodiments, the virtual screen creation subunit is further configured to remove the virtual screen and create a new virtual screen based on the resolution and/or screen density of the external display device if it is determined that the resolution and/or screen density of the virtual screen is inconsistent with the currently connected external display device.
In some embodiments, the display control apparatus 500 further includes:
and the task freezing unit is used for responding to the instruction of stopping displaying the external display system, freezing at least one process corresponding to the external display system and switching at least one foreground task corresponding to the external display system to the background.
The instruction for stopping displaying the external display system is used for triggering stopping displaying the external display system on the external display device, including but not limited to: the terminal equipment is disconnected with the external display device; or, in the case that the terminal device is connected to the external display device, the display mode of the external display system is switched to other display modes, such as a mirror image projection display mode.
Further, in some embodiments, the display control apparatus 500 further includes:
and the thawing unit is used for thawing at least one process corresponding to the external display system in response to the instruction for displaying the external display system, and switching at least one background task corresponding to the external display system to a foreground.
Accordingly, according to one or more embodiments of the present disclosure, there is provided a terminal device comprising:
at least one memory and at least one processor;
wherein the memory is for storing program code, and the processor is for invoking the program code stored by the memory to perform a display control method provided in accordance with one or more embodiments of the present disclosure.
Accordingly, in accordance with one or more embodiments of the present disclosure, there is provided a non-transitory computer storage medium storing program code executable by a computer device to cause the computer device to perform a display control method provided in accordance with one or more embodiments of the present disclosure.
Fig. 6 shows a schematic structural diagram of a terminal device 800 used to implement an embodiment of the present disclosure. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), etc., and a fixed terminal such as a digital TV, a desktop computer, etc. The terminal device shown in fig. 6 is only one example, and should not impose any limitation on the functions and scope of use of the embodiments of the present disclosure.
As shown in fig. 6, the terminal device 800 may include a processing means (e.g., a central processor, a graphic processor, etc.) 801, which may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 802 or a program loaded from a storage means 808 into a Random Access Memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the terminal device 800 are also stored. The processing device 801, the ROM 802, and the RAM 803 are connected to each other by a bus 804. An input/output (I/O) interface 805 is also connected to the bus 804.
In general, the following devices may be connected to the I/O interface 805: input devices 806 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, and the like; an output device 807 including, for example, a Liquid Crystal Display (LCD), speakers, vibrators, etc.; storage 808 including, for example, magnetic tape, hard disk, etc.; communication means 809. For example, the storage 808 may store a first database and a second database, wherein the first database stores at least one first sub-program identification of a first program; the second database stores at least one second sub-program identification of the first program. The communication means 809 may allow the terminal device 800 to communicate wirelessly or by wire with other devices to exchange data. While fig. 6 shows a terminal device 800 having various means, it is to be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may be implemented or provided instead.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a non-transitory computer readable medium, the computer program comprising program code for executing an apparatus shown in a flowchart. In such an embodiment, the computer program may be downloaded and installed from a network via communication device 809, or installed from storage device 808, or installed from ROM 802. When being executed by the processing means 801, performs the above-described functions defined in the apparatus of the embodiments of the present disclosure.
It should be noted that the computer readable medium described in the present disclosure may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present disclosure, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
In some implementations, the clients, servers may communicate using any currently known or future developed network protocol, such as HTTP (HyperText Transfer Protocol ), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the internet (e.g., the internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed networks.
The computer readable medium may be contained in the terminal device; or may exist alone without being fitted into the terminal device.
The computer-readable medium carries one or more programs which, when executed by the terminal device, cause the terminal device to: operating an external display system on the terminal equipment, and projecting a task interface operated by the external display system to an external display device for display; storing task information of the external display system; if the external display system stops displaying and then the external display system is displayed, the external display system is operated and task information operated when the external display system stops displaying is obtained; and displaying a task interface corresponding to the task information through the external display device based on the task information.
Computer program code for carrying out operations of the present disclosure may be written in one or more programming languages, including, but not limited to, an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, apparatuses, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units involved in the embodiments of the present disclosure may be implemented by means of software, or may be implemented by means of hardware. Where the name of the unit does not constitute a limitation of the unit itself in some cases, for example, the instruction unit may be described as "a unit for receiving the first operation instruction".
The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), an Application Specific Standard Product (ASSP), a system on a chip (SOC), a Complex Programmable Logic Device (CPLD), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
According to one or more embodiments of the present disclosure, there is provided a display control method applied to a terminal device, the display control method including: operating an external display system on the terminal equipment, and projecting a task interface operated by the external display system to an external display device for display; storing task information of the external display system; if the external display system stops displaying and then the external display system is displayed, the external display system is operated and task information operated when the external display system stops displaying is obtained; and displaying a task interface corresponding to the task information through the external display device based on the task information.
According to one or more embodiments of the present disclosure, the external display system operates based on a virtual screen; the storing the task information of the external display system operation includes: storing the task information in a data structure corresponding to the virtual screen; the displaying, based on the task information, a task interface corresponding to the task information through the external display device includes: displaying a task interface corresponding to the task information in the virtual screen based on the task information; and projecting the content displayed in the virtual screen to the external display device.
According to one or more embodiments of the present disclosure, the terminal device is configured to be capable of projecting content displayed in a terminal screen to an external display apparatus; the display control method further includes: and responding to a preset screen switching display instruction, and the terminal equipment projects the content displayed in the screen corresponding to the screen switching display instruction to the external display device for display.
According to one or more embodiments of the present disclosure, the terminal device, in response to a preset screen switching display instruction, projects content displayed in a screen corresponding to the screen switching display instruction onto the external display device for display, including: when the preset screen switching display instruction is a content displayed in a display terminal screen, the content displayed in the terminal screen is projected to an external display device; or when the preset screen switching display instruction is to display the content displayed in the virtual screen, projecting the content displayed in the virtual screen to an external display device.
The display control method provided according to one or more embodiments of the present disclosure further includes: acquiring an operation instruction of a user; and distributing the event corresponding to the operation instruction to the virtual screen so as to respond to the event corresponding to the operation instruction and update the task interface displayed on the virtual screen.
The display control method provided according to one or more embodiments of the present disclosure further includes: and if the instruction for displaying the external display system is not received within a preset period after the external display system stops displaying, removing the virtual screen, and removing a background process and/or task corresponding to the external display system.
The display control method provided according to one or more embodiments of the present disclosure further includes: responding to the instruction for displaying the external display system, and acquiring the resolution and/or screen density of the currently connected external display device; the running the external display system includes: determining whether a virtual screen exists in the terminal equipment currently; if yes, determining whether the resolution and/or screen density of the virtual screen are consistent with those of the external display device; and if the virtual screen is consistent with the external display system, operating the external display system based on the virtual screen.
According to one or more embodiments of the present disclosure, if a virtual screen does not currently exist in the terminal device, a new virtual screen is created based on the resolution and/or screen density of the external display device.
According to one or more embodiments of the present disclosure, if it is determined that the resolution and/or screen density of the virtual screen is inconsistent with the currently connected display device, the virtual screen is removed and a new virtual screen is created based on the resolution and/or screen density of the external display device.
The display control method provided according to one or more embodiments of the present disclosure further includes: and responding to an instruction for stopping displaying the external display system, freezing at least one process corresponding to the external display system, and switching at least one foreground task corresponding to the external display system to a background.
The display control method provided according to one or more embodiments of the present disclosure further includes:
and thawing at least one process corresponding to the external display system in response to the instruction for displaying the external display system, and switching at least one background task corresponding to the external display system to a foreground.
According to one or more embodiments of the present disclosure, there is provided a display control apparatus, the display control method including: the first operation unit is used for operating the external display system on the terminal equipment and projecting a task interface operated by the external display system to the external display device for display; the information storage unit is used for storing task information of the external display system; the second operation unit is used for operating the external display system and acquiring task information operated when the external display system stops displaying if the external display system stops displaying and then the external display system stops displaying; and the projection display unit is used for displaying a task interface corresponding to the task information through the external display device based on the task information.
According to one or more embodiments of the present disclosure, there is provided a terminal including: at least one memory and at least one processor; wherein the memory is for storing program code, and the processor is for invoking the program code stored by the memory to perform a display control method provided in accordance with one or more embodiments of the present disclosure.
According to one or more embodiments of the present disclosure, there is provided a non-transitory computer storage medium storing program code executable by a computer device to cause the computer device to perform a display control method provided according to one or more embodiments of the present disclosure.
The foregoing description is only of the preferred embodiments of the present disclosure and description of the principles of the technology being employed. It will be appreciated by persons skilled in the art that the scope of the disclosure referred to in this disclosure is not limited to the specific combinations of features described above, but also covers other embodiments which may be formed by any combination of features described above or equivalents thereof without departing from the spirit of the disclosure. Such as those described above, are mutually substituted with the technical features having similar functions disclosed in the present disclosure (but not limited thereto).
Moreover, although operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. In certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of the present disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or apparatus logic acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are example forms of implementing the claims.