WO2022052662A1 - 显示方法及电子设备 - Google Patents
显示方法及电子设备 Download PDFInfo
- Publication number
- WO2022052662A1 WO2022052662A1 PCT/CN2021/109989 CN2021109989W WO2022052662A1 WO 2022052662 A1 WO2022052662 A1 WO 2022052662A1 CN 2021109989 W CN2021109989 W CN 2021109989W WO 2022052662 A1 WO2022052662 A1 WO 2022052662A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- interface
- window
- display
- window interface
- security
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/72409—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
- H04M1/724092—Interfacing with an external cover providing additional functionalities
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/606—Protecting data by securing the transmission between two devices or processes
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/70—Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
- G06F21/82—Protecting input, output or interconnection devices
- G06F21/83—Protecting input, output or interconnection devices input devices, e.g. keyboards, mice or controllers thereof
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/70—Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
- G06F21/82—Protecting input, output or interconnection devices
- G06F21/84—Protecting input, output or interconnection devices output devices, e.g. displays or monitors
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/14—Digital output to display device ; Cooperation and interconnection of the display device with other functional units
- G06F3/1454—Digital output to display device ; Cooperation and interconnection of the display device with other functional units involving copying of the display data of a local workstation or window to a remote workstation or window so that an actual copy of the data is displayed simultaneously on two or more displays, e.g. teledisplay
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/72409—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
- H04M1/72412—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories using two-way short-range wireless interfaces
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G2354/00—Aspects of interface with display user
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G2358/00—Arrangements for display data security
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G5/00—Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
- G09G5/14—Display of multiple viewports
Definitions
- the embodiments of the present application relate to the field of display, and in particular, to a display method and an electronic device.
- Screen projection is a technology in which device 1 transmits the window interface of device 1 to device 2 for display.
- the mobile phone can transmit the window interface of the mobile phone to the computer for display.
- the computer can display the screen projection interface 01 of the mobile phone window interface on the screen.
- the user can operate the application (application, APP) of the mobile phone through the screen projection interface 01 .
- the APPs running on the mobile phone terminal include APPs with security requirements, such as APPs that require the user to input a password.
- security requirements such as APPs that require the user to input a password.
- the password entered on the mobile phone side will be displayed on the computer, such as the visible password/password number/biometric password, etc., which brings the hidden danger of privacy leakage to users.
- the embodiments of the present application provide a display method and an electronic device, which can solve the problem of poor user experience caused by the existing display method.
- the first device may project a plurality of window interfaces of the first device to the second device.
- an embodiment of the present application provides a display method, the method includes: a first device receives a screen projection instruction input by a user; in response to the screen projection instruction, the first device displays the first window The interface is projected to the second device; the first device responds to the command to run the second window interface; the first device determines that the second window interface contains a security flag; the first device sends a message to the second device A task number corresponding to the second window interface and a security protection instruction, where the security protection instruction is used to instruct the second device to display the screen projection interface of the second window interface as a security interface.
- the first device may configure an application display area (display), and configure a display policy of the window interface that is moved by the first device in the display, and further, the first device may project a screen to the second device based on the display.
- the first device configures a taskID for the APP that moves on the first device side to represent the window interface of each APP.
- the first device determines whether each window interface has security requirements before screen projection, and then the first device sends the taskID of each window interface and the screen projection information of the window interface to the second device according to the detection result. equipment.
- the second device displays a security interface and a screen projection interface including window interface content based on the taskID, where the security interface is a screen projection interface of a window interface with security requirements. In this way, the second device can safely display the interface with security requirements, and can also ensure that the user operates normally on the interface without security requirements.
- the first device running the second window interface in response to the instruction includes: the first device receives a first operation instruction from the second device, and the first operation instruction is associated with the first operation instruction.
- An application program APP the second window interface is a window interface of the first APP; the first device runs the first APP to start the second window interface.
- the first device may communicate with the second device based on the WiFi Direct technology. In this way, the user can operate the APP of the first device on the second device side.
- the first device running the second window interface in response to the instruction includes: the first device receives a second operation instruction input by the user, and the second operation instruction corresponds to the first application program APP,
- the second window interface is a window interface of the first APP; the first device runs the first APP and displays the second window interface.
- the method further includes: the first device receives a message from the second device.
- the third operation instruction of the second device includes the task number corresponding to the second window interface; in response to the third operation instruction, the first device displays the second window interface; the The first device receives the operation information input by the user based on the second window interface; the first device updates the second window interface to a third window interface; the first device projects the third window interface to the screen to the second device.
- the user can trigger the display of the second window interface on the display screen of the first device through the second device, so as to continue to the second window on the first device side operate.
- the first device can determine the second window interface through the task number.
- the first device associates the window interface with the task ID, so that both the first device and the second device can determine the window interface through the task ID, so that the user can easily switch the window interface displayed on the first device and the second device. , so as to improve the user experience.
- the first device determining that the second window interface contains a security flag includes: the first device invoking the window management service of the first device to traverse the second window interface. Window state; if the window state of the second window interface includes a security flag, the first device determines that the second window interface includes a security flag.
- the security flag includes a first flag flag, a second flag and a third flag, the first flag indicates the application security lock, the second flag indicates that the application is actively set, and the third flag indicates the call security keyboard.
- an embodiment of the present application provides a display method, the method includes: a second device receives a video stream from a first window interface of a first device; the second device displays a video stream corresponding to the video stream image to obtain the screen projection interface of the first window interface; the second device receives the task number and security protection instruction from the first device; the second device displays the screen projection interface and security interface of the first window interface .
- the method further includes: the second device receives a click instruction input by the user, and the click instruction corresponds to the the security interface; the second device generates an operation instruction, and the operation instruction includes a task number; the second device sends the operation instruction to the first device.
- an embodiment of the present application provides an electronic device, and the electronic device has the function of implementing the first device in the above method.
- the functions can be implemented by hardware, or can be implemented by hardware executing corresponding software.
- the hardware or software includes one or more modules corresponding to the above functions.
- the structure of the above electronic device includes a processor and a transceiver, and the processor is configured to process the electronic device to execute the corresponding function of the first device in the above method.
- the transceiver is used to implement information interaction with the second device.
- the electronic device may also include a memory for coupling with the processor that holds program instructions and data necessary for the electronic device.
- an embodiment of the present application provides an electronic device, and the electronic device has the function of implementing the second device in the above method.
- the functions can be implemented by hardware, or can be implemented by hardware executing corresponding software.
- the hardware or software includes one or more modules corresponding to the above functions.
- the structure of the above electronic device includes a processor, a receiver and a display, and the processor is configured to process the electronic device to perform corresponding functions in the above method.
- the transceiver is used to implement information interaction with the first device.
- the display is used to realize the display of the screen projection interface and the security interface.
- the electronic device may also include a memory for coupling with the processor that holds program instructions and data necessary for the electronic device.
- embodiments of the present application provide a computer storage medium, where instructions are stored in the computer storage medium, and when the instructions are executed on a computer, the computer is made to execute the first aspect, the second aspect, and the first aspect. Part or all of the steps of the display method in the first possible implementation manner and in the various possible implementation manners of the second aspect.
- embodiments of the present application provide a computer program product, which, when running on a computer, enables the computer to execute the first aspect, the second aspect, various possible implementations of the first aspect, and the second Some or all of the steps of the display method in various possible implementations of the aspect.
- FIG. 1 is a scene schematic diagram of a typical screen projection scene provided by an embodiment of the present application
- FIG. 2A is a schematic diagram of an exemplary hardware structure of a first device 100 according to an embodiment of the present application
- FIG. 2B is a schematic diagram of an exemplary software architecture of the first device 100 according to an embodiment of the present application.
- FIG. 2C is a schematic diagram of an exemplary architecture of a second device 200 according to an embodiment of the present application.
- FIG. 3 is an exemplary schematic plan view of an application display area (display) provided by an embodiment of the present application
- FIG. 4A is a schematic diagram of a first exemplary signaling interaction of a display method provided by an embodiment of the present application.
- 4B is a schematic diagram of a second exemplary signaling interaction of the display method provided by the embodiment of the present application.
- 5A is a schematic diagram of a first exemplary interface of a screen projection scene provided by an embodiment of the present application.
- 5B is a schematic diagram of a second exemplary interface of a screen projection scene provided by an embodiment of the present application.
- 5C is a schematic diagram of a third exemplary interface of a screen projection scene provided by an embodiment of the present application.
- FIG. 5C-1 is an exemplary schematic diagram of display corresponding to the scene shown in FIG. 5C provided by an embodiment of the application;
- FIG. 5C-2 is a schematic diagram of an exemplary interface of a mobile phone in the scenario shown in FIG. 5C provided by an embodiment of the present application;
- FIG. 6 is an exemplary interface schematic diagram of a security interface provided by an embodiment of the present application.
- FIG. 7 is an exemplary interface schematic diagram of a first group of screen projection interfaces provided by an embodiment of the present application.
- FIG. 8 is an exemplary schematic diagram of display corresponding to the display interface of FIG. 7 according to an embodiment of the present application.
- FIG. 9 is an exemplary interface diagram of a second group of screen projection interfaces provided by an embodiment of the present application.
- FIG. 10 is an exemplary schematic diagram of display corresponding to the display interface of FIG. 9 according to an embodiment of the present application.
- FIG. 11 is an exemplary interface diagram of a third group of screen projection interfaces provided by an embodiment of the present application.
- FIG. 12 is an exemplary interface schematic diagram of a mailbox login interface provided by an embodiment of the present application.
- FIG. 13 is an exemplary schematic diagram of a display provided by an embodiment of the present application.
- FIG. 14A is a schematic diagram of a first exemplary screen projection interface of the display shown in FIG. 13 according to an embodiment of the present application;
- FIG. 14B is a schematic diagram of a second exemplary screen projection interface of the display shown in FIG. 13 according to an embodiment of the application;
- FIG. 15 is a schematic diagram of a third exemplary signaling interaction of the display method provided by the embodiment of the present application.
- An embodiment of the present application provides a display method, and the display method is applied to a scenario where a first device projects a screen of at least two window interfaces to a second device. Wherein, corresponding to a window interface without security requirements, the second device displays the content of the window interface, and corresponding to a window interface with security requirements, the second device displays a security interface. In this way, the second device can not only safely display the interface with security requirements, but also ensure the normal operation of the interface without security requirements by the user.
- first devices second devices
- user interfaces UIs
- the interface displayed by the first device is referred to as a "window interface” in this specification, and the “window interface” is a display interface in which the size of the display screen of the first device is a window.
- the interface displayed by the second device is called “screen projection interface”, and each "screen projection interface” corresponds to a “window interface”.
- the first device involved in the embodiment of the present application may be an electronic device including a wireless communication module and a display function, such as a mobile phone, a tablet computer, a wearable device (for example, a watch, a wristband, a helmet, etc.), a vehicle-mounted device, an augmented reality (augmented reality) device reality, AR)/virtual reality (VR) devices, laptops, ultra-mobile personal computers (UMPCs), netbooks, personal digital assistants (PDAs), smart home devices (e.g. , smart TV, etc.) and other electronic devices.
- a wireless communication module for example, a watch, a wristband, a helmet, etc.
- a vehicle-mounted device such as a mobile phone, a tablet computer, a wearable device (for example, a watch, a wristband, a helmet, etc.), a vehicle-mounted device, an augmented reality (augmented reality) device reality, AR)/virtual reality (VR) devices, laptops, ultra-mobile personal computers (UMPCs),
- FIG. 2A shows a schematic diagram of the hardware structure of the first device 100 .
- the first device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2.
- Mobile communication module 150 wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, sensor module 180, buttons 190, motor 191, indicator 192, camera 193, display screen 194, And a subscriber identification module (subscriber identification module, SIM) card interface 195 and so on.
- SIM subscriber identification module
- the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light. Sensor 180L, bone conduction sensor 180M, etc.
- the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the first device 100 .
- the first device 100 may include more or less components than shown, or combine some components, or separate some components, or arrange different components.
- the illustrated components may be implemented in hardware, software, or a combination of software and hardware.
- the processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU) Wait. Wherein, different processing units may be independent devices, or may be integrated in one or more processors. In some embodiments, the first device 100 may also include one or more processors 110 .
- the controller may be the nerve center and command center of the first device 100 .
- the controller can generate the operation control signal according to the instruction operation code and the timing signal, and complete the control of the detection instruction and the like.
- a memory may also be provided in the processor 110 for storing instructions and data.
- the memory in processor 110 is cache memory. This memory may hold instructions or data that have just been used or recycled by the processor 110 . If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated accesses are avoided and the waiting time of the processor 110 is reduced, thereby improving the efficiency of the first device 100 .
- the processor 110 may include one or more interfaces.
- the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transceiver (universal asynchronous transmitter) receiver/transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and / or universal serial bus (universal serial bus, USB) interface, etc.
- I2C integrated circuit
- I2S integrated circuit built-in audio
- PCM pulse code modulation
- PCM pulse code modulation
- UART universal asynchronous transceiver
- MIPI mobile industry processor interface
- GPIO general-purpose input/output
- SIM subscriber identity module
- USB universal serial bus
- the I2C interface is a bidirectional synchronous serial bus that includes a serial data line (SDA) and a serial clock line (SCL).
- the processor 110 may contain multiple sets of I2C buses.
- the processor 110 can be respectively coupled to the touch sensor 180K, the charger, the flash, the camera 193 and the like through different I2C bus interfaces.
- the processor 110 may couple the touch sensor 180K through the I2C interface, so that the processor 110 and the touch sensor 180K communicate through the I2C bus interface, so as to realize the touch function of the first device 100 .
- the I2S interface can be used for audio communication.
- the processor 110 may contain multiple sets of I2S buses.
- the processor 110 may be coupled with the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170 .
- the audio module 170 can transmit audio signals to the wireless communication module 160 through the I2S interface, so as to realize the function of listening to the sound through the Bluetooth headset.
- the PCM interface can also be used for audio communications, sampling, quantizing and encoding analog signals.
- the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface.
- the audio module 170 can also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of listening to the sound through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
- the UART interface is a universal serial data bus used for asynchronous communication.
- the bus may be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication.
- a UART interface is typically used to connect the processor 110 with the wireless communication module 160 .
- the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function.
- the audio module 170 can transmit audio signals to the wireless communication module 160 through the UART interface, so as to realize the function of playing music through the Bluetooth headset.
- the MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193 .
- MIPI interfaces include camera serial interface (CSI), display serial interface (DSI), etc.
- the processor 110 communicates with the camera 193 through a CSI interface to implement the shooting function of the first device 100.
- the processor 110 communicates with the display screen 194 through the DSI interface to implement the display function of the first device 100 .
- the GPIO interface can be configured by software.
- the GPIO interface can be configured as a control signal or as a data signal.
- the GPIO interface may be used to connect the processor 110 with the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like.
- the GPIO interface can also be configured as I2C interface, I2S interface, UART interface, MIPI interface, etc.
- the USB interface 130 is an interface that conforms to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like.
- the USB interface 130 can be used to connect a charger to charge the first device 100, and can also be used to transmit data between the first device 100 and peripheral devices. It can also be used to connect headphones to play audio through the headphones.
- the interface can also be used to connect other electronic devices, such as AR devices.
- the interface connection relationship between the modules illustrated in the embodiments of the present application is only a schematic illustration, and does not constitute a structural limitation of the first device 100 .
- the first device 100 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
- the charging management module 140 is used to receive charging input from the charger.
- the charger may be a wireless charger or a wired charger.
- the charging management module 140 may receive charging input from the wired charger through the USB interface 130 .
- the charging management module 140 may receive wireless charging input through the wireless charging coil of the first device 100 . While charging the battery 142 by the charging management module 140 , the first device 100 can also be powered by the power management module 141 .
- the power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 .
- the power management module 141 receives input from the battery 142 and/or the charging management module 140 and supplies power to the processor 110 , the internal memory 121 , the external memory, the display screen 194 , the camera 193 , and the wireless communication module 160 .
- the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, battery health status (leakage, impedance).
- the power management module 141 may also be provided in the processor 110 .
- the power management module 141 and the charging management module 140 may also be provided in the same device.
- the wireless communication function of the first device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modulation and demodulation processor, the baseband processor, and the like.
- Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
- Each antenna in the first device 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
- the antenna 1 can be multiplexed as a diversity antenna of the wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
- the mobile communication module 150 may provide a wireless communication solution including 2G/3G/4G/5G etc. applied on the first device 100 .
- the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA) and the like.
- the mobile communication module 150 can receive electromagnetic waves from the antenna 1, filter and amplify the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation.
- the mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and then turn it into an electromagnetic wave for radiation through the antenna 1 .
- at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110 .
- at least part of the functional modules of the mobile communication module 150 may be provided in the same device as at least part of the modules of the processor 110 .
- the modem processor may include a modulator and a demodulator.
- the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal.
- the demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal.
- the demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
- the low frequency baseband signal is processed by the baseband processor and passed to the application processor.
- the application processor outputs sound signals through the audio device (not limited to the speaker 170A, the receiver 170B, etc.), or displays the operation interface of the APP through the display screen 194 .
- the modem processor may be a stand-alone device.
- the modem processor may be independent of the processor 110, and may be provided in the same device as the mobile communication module 150 or other functional modules.
- the wireless communication module 160 may provide applications on the first device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation Satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions.
- WLAN wireless local area networks
- BT wireless fidelity
- GNSS global navigation Satellite system
- frequency modulation frequency modulation, FM
- NFC near field communication technology
- infrared technology infrared, IR
- the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
- the wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
- the wireless communication module 160 can also receive the signal to be sent from the processor 110 , perform frequency modulation on it, amplify it, and convert it into electromagnetic waves
- the antenna 1 of the first device 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the first device 100 can communicate with the network and other devices through wireless communication technology.
- the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc.
- the GNSS may include a global positioning system (global positioning system, GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite based augmentation systems (SBAS).
- GPS global positioning system
- GLONASS global navigation satellite system
- BDS Beidou navigation satellite system
- QZSS quasi-zenith satellite system
- SBAS satellite based augmentation systems
- the wireless communication solution provided by the mobile communication module 150 may enable the first device 100 to communicate with a device (eg, a cloud server) in the network.
- the WLAN wireless communication solution provided by the wireless communication module 160 can also enable the first device 100 to communicate with a device (such as the second device 200 ) in the network, so that the first device 100 transmits a video stream to the second device 200 , thereby achieving The function of the first device 100 to cast a screen to the second device 200 .
- the first device 100 implements a display function through a GPU, a display screen 194, an application processor, and the like.
- the GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor.
- the GPU is used to perform mathematical and geometric calculations for graphics rendering.
- the GPU can render an image as a secure interface.
- the processor 110 may include one or more GPUs that execute program instructions to generate or change interface display effects.
- the display screen 194 may include a display and a touch device.
- the display is used to output display content to the user, for example, the desktop page of the first device 100 and various operation interfaces of the APP.
- the touch device is used for receiving operation instructions input by the user on the display screen 194 .
- Display screen 194 includes a display panel.
- the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (active-matrix organic light).
- LCD liquid crystal display
- OLED organic light-emitting diode
- active-matrix organic light-emitting diode active-matrix organic light.
- emitting diode AMOLED
- flexible light-emitting diode flex light-emitting diode, FLED
- Miniled MicroLed, Micro-oLed, quantum dot light-emitting diode (quantum dot light emitting diodes, QLED) and so on.
- the display screen 194 when the display panel adopts materials such as OLED, AMOLED, FLED, etc., the display screen 194 may be bent.
- the display screen 194 can be bent means that the display screen can be bent to any angle at any position, and can be maintained at the angle, for example, the display screen 194 can be folded in half from the middle. It can also be folded up and down from the middle.
- the first device 100 may implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
- the ISP is used to process the data fed back by the camera 193 .
- the shutter is opened, the light is transmitted to the camera photosensitive element through the lens, the light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye.
- ISP can also perform algorithm optimization on image noise, brightness, and skin tone.
- ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
- the ISP may be provided in the camera 193 .
- Camera 193 is used to capture still images or video.
- the object is projected through the lens to generate an optical image onto the photosensitive element.
- the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
- CMOS complementary metal-oxide-semiconductor
- the photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal.
- the ISP outputs the digital image signal to the DSP for processing.
- DSP converts digital image signals into standard RGB, YUV and other formats of image signals.
- a digital signal processor is used to process digital signals, in addition to processing digital image signals, it can also process other digital signals. For example, when the first device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy, and the like.
- Video codecs are used to compress or decompress digital video.
- the video codec may compress the video stream that needs to be projected to the second device 200 , and then send the compressed video file to the second device 200 .
- the first device 100 may support one or more video codecs.
- the NPU is a neural-network (NN) computing processor.
- NN neural-network
- Applications such as intelligent cognition of the first device 100 can be implemented through the NPU, for example, image recognition, face recognition, speech recognition, text understanding, and the like.
- the external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the first device 100.
- the external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example, save data such as music, photos, videos, etc. in an external memory card.
- Internal memory 121 may be used to store one or more computer programs including instructions.
- the processor 110 may execute the above-mentioned instructions stored in the internal memory 121, thereby causing the first device 100 to execute the display methods, various functional applications, and data processing provided in some embodiments of the present application.
- the internal memory 121 may include a storage program area and a storage data area. Wherein, the stored program area may store the operating system; the stored program area may also store one or more application programs (such as mailbox, gallery, contacts, etc.) and the like.
- the storage data area may store data (such as window interface identifiers, etc.) created during the use of the first device 100 .
- the internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (UFS), and the like.
- the first device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playback, recording, etc.
- the audio module 170 is used for converting digital audio information into analog audio signal output, and also for converting analog audio input into digital audio signal. Audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be provided in the processor 110 , or some functional modules of the audio module 170 may be provided in the processor 110 .
- Speaker 170A also referred to as a "speaker" is used to convert audio electrical signals into sound signals.
- the first device 100 can listen to music through the speaker 170A, or listen to a hands-free call.
- the receiver 170B also referred to as "earpiece" is used to convert audio electrical signals into sound signals.
- the voice can be answered by placing the receiver 170B close to the human ear.
- the microphone 170C also called “microphone” or “microphone” is used to convert sound signals into electrical signals.
- the user can make a sound by approaching the microphone 170C through a human mouth, and input the sound signal into the microphone 170C.
- the first device 100 may be provided with at least one microphone 170C.
- the first device 100 may be provided with two microphones 170C, which may implement a noise reduction function in addition to collecting sound signals.
- the first device 100 may further be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and implement directional recording functions.
- the earphone jack 170D is used to connect wired earphones.
- the earphone interface 170D can be the USB interface 130, or can be a 3.5mm open mobile terminal platform (OMTP) standard interface, a cellular telecommunications industry association of the USA (CTIA) standard interface.
- OMTP open mobile terminal platform
- CTIA cellular telecommunications industry association of the USA
- the pressure sensor 180A is used to sense pressure signals, and can convert the pressure signals into electrical signals.
- the pressure sensor 180A may be provided on the display screen 194 .
- the capacitive pressure sensor may be comprised of at least two parallel plates of conductive material. When a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes.
- the first device 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the first device 100 detects the intensity of the touch operation according to the pressure sensor 180A.
- the first device 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions.
- the gyro sensor 180B may be used to determine the motion attitude of the first device 100 .
- the angular velocity of the first device 100 about three axes ie, the x, y and z axes
- the gyro sensor 180B can be used for image stabilization. Exemplarily, when the shutter is pressed, the gyro sensor 180B detects the angle at which the first device 100 shakes, calculates the distance that the lens module needs to compensate for according to the angle, and allows the lens to counteract the shake of the first device 100 through reverse motion, so as to prevent the camera from shaking. shake.
- the gyro sensor 180B can also be used for navigation and somatosensory game scenarios.
- the air pressure sensor 180C is used to measure air pressure.
- the first device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist in positioning and navigation.
- the magnetic sensor 180D includes a Hall sensor.
- the first device 100 may detect the orientation of the display screen 194 of the first device 100 using the magnetic sensor 180D.
- the first device 100 may detect the folded and unfolded states of the screen according to the magnetic sensor 180D.
- the acceleration sensor 180E can detect the magnitude of the acceleration of the first device 100 in various directions (generally three axes). When the first device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used for recognizing the posture of the first device 100, and is applied to switching between horizontal and vertical screens, pedometers and other applications.
- the first device 100 may measure the distance through infrared or laser. In some embodiments, when shooting a scene, the first device 100 can use the distance sensor 180F to measure the distance to achieve fast focusing.
- Proximity light sensor 180G may include, for example, light emitting diodes (LEDs) and light detectors, such as photodiodes.
- the light emitting diodes may be infrared light emitting diodes.
- the first device 100 emits infrared light to the outside through light emitting diodes.
- the first device 100 detects infrared reflected light from nearby objects using photodiodes. When sufficient reflected light is detected, it may be determined that there is an object near the first device 100 . When insufficient reflected light is detected, the first device 100 may determine that there is no object near the first device 100 .
- the first device 100 can use the proximity light sensor 180G to detect that the user holds the first device 100 close to the ear to talk, so as to automatically turn off the screen to save power.
- Proximity light sensor 180G can also be used in holster mode, pocket mode automatically unlocks and locks the screen.
- the ambient light sensor 180L is used to sense ambient light brightness.
- the first device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness.
- the ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures.
- the ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the first device 100 is in a pocket, so as to prevent accidental touch.
- the fingerprint sensor 180H is used to collect fingerprints.
- the first device 100 can use the collected fingerprint characteristics to unlock the fingerprint, access the application lock, take a picture with the fingerprint, answer the incoming call with the fingerprint, and the like.
- the temperature sensor 180J is used to detect the temperature.
- the first device 100 uses the temperature detected by the temperature sensor 180J to execute the temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold value, the first device 100 reduces the performance of the processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection.
- the first device 100 when the temperature is lower than another threshold, the first device 100 heats the battery 142 to avoid abnormal shutdown of the first device 100 caused by the low temperature.
- the first device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
- the touch sensor 180K may also be referred to as a touch panel or a touch sensitive surface.
- the touch sensor 180K may be disposed on the display screen 194 , and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”.
- the touch sensor 180K is used to detect a touch operation on or near it.
- the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
- Visual output related to touch operations may be provided through display screen 194 .
- the touch sensor 180K may also be disposed on the surface of the first device 100 , which is different from the position where the display screen 194 is located.
- the bone conduction sensor 180M can acquire vibration signals.
- the bone conduction sensor 180M can acquire the vibration signal of the vibrating bone mass of the human voice.
- the bone conduction sensor 180M can also contact the pulse of the human body and receive the blood pressure beating signal.
- the bone conduction sensor 180M can also be disposed in the earphone, combined with the bone conduction earphone.
- the audio module 170 can analyze the voice signal based on the vibration signal of the vocal vibration bone block obtained by the bone conduction sensor 180M, so as to realize the voice function.
- the application processor can analyze the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 180M, and realize the function of heart rate detection.
- the keys 190 include a power-on key, a volume key, and the like. Keys 190 may be mechanical keys. It can also be a touch key.
- the first device 100 may receive key inputs, and generate key signal inputs related to user settings and function control of the first device 100 .
- Motor 191 can generate vibrating cues.
- the motor 191 can be used for vibrating alerts for incoming calls, and can also be used for touch vibration feedback.
- touch operations acting on different applications can correspond to different vibration feedback effects.
- the motor 191 can also correspond to different vibration feedback effects for touch operations on different areas of the display screen 194 .
- Different application scenarios for example: time reminder, receiving information, alarm clock, games, etc.
- the touch vibration feedback effect can also support customization.
- the indicator 192 can be an indicator light, which can be used to indicate the charging state, the change of the power, and can also be used to indicate a message, a missed call, a notification, and the like.
- the SIM card interface 195 is used to connect a SIM card.
- the SIM card can be contacted and separated from the first device 100 by inserting into the SIM card interface 195 or pulling out from the SIM card interface 195 .
- the first device 100 may support 1 or N SIM card interfaces, where N is a positive integer greater than 1.
- the SIM card interface 195 can support Nano SIM card, Micro SIM card, SIM card and so on. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the plurality of cards may be the same or different.
- the SIM card interface 195 can also be compatible with different types of SIM cards.
- the SIM card interface 195 is also compatible with external memory cards.
- the first device 100 interacts with the network through the SIM card to implement functions such as call and data communication.
- the first device 100 employs an eSIM, ie an embedded SIM card.
- the eSIM card can be embedded in the first device 100 and cannot be separated from the first device 100 .
- the software system of the first device 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture.
- the embodiments of the present application take an Android system with a layered architecture as an example to exemplarily describe the software structure of the first device 100 .
- FIG. 2B is a schematic diagram of a software structure of the first device 100 according to an embodiment of the present application.
- the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate with each other through software interfaces.
- the Android system from top to bottom is an application layer, an application framework layer, an Android runtime (Android runtime) and a system library, and a kernel layer.
- the application layer can include a series of application packages.
- the application package may include applications such as gallery, calendar, map, WLAN, music, SMS, call, navigation, Bluetooth, video, etc.
- the application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer.
- the application framework layer includes some predefined functions.
- the application framework layer may include a display management service (display manager service, DMS), an activity management service (activity manager service, AMS), and a window management service (window manager service, WMS). Window management services can also be called window managers.
- the application framework layer may also include a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like, which are not limited in this embodiment of the present application.
- the WMS can be used to determine the display strategy of the APP in the first device 100. After that, the WMS can control the APP to display on the display screen 194 of the first device 100 according to the display strategy through the display driver and the surface manager of the underlying display system. show.
- the DMS can be used to configure the display strategy of the window interface to be projected to the second device 200 in the application display area (display) of the first device 100, so that the second device 200 can display the window interface based on the display strategy in the display The corresponding screen projection interface.
- display is the display area of the application running on the first device, and it can also be understood from the perspective of screen projection as the presentation area configured by WMS for the window interface to be projected.
- WMS can tile the window interface to be projected.
- the WMS can configure the aforementioned display with the upper left corner of the first device 100 as the origin of the coordinate system and the width of the display screen 194 of the first device 100 as the unit.
- the WMS can be extended in the x-axis direction to obtain the aforementioned display.
- the size of the display is associated with the number of window interfaces to be projected. For example, in the embodiment shown in (a) of FIG.
- the display area of the display screen 194 can accommodate the window interface to be projected, and the WMS will display the window interface of the display screen 194
- the display area is configured as display30.
- the display area of the display screen 194 cannot accommodate the two window interfaces displayed in tiles.
- WMS A display area of the width of the display screen 194 is extended in the x-axis direction.
- the WMS configures one window interface to be projected to be displayed in the display area of the display screen 194 , and another window interface to be projected to be displayed in the extended area.
- the display 31 includes a first display 311 and a second display 312 , the first display 311 is configured on the display screen 194 of the first device 100 and is the display visible to the user, and the second display 312 is the first display 312 .
- An extended display of the display 311 is a display that is invisible to the user, and the extended display is also referred to as a "virtual display (virtual display)" in this embodiment of the present application. It should be understood that the size of the virtual display is associated with the number of window interfaces to be projected.
- the WMS expands a display area with the width of two display screens 194 in the x-axis direction.
- the width of the virtual display is the width of the two display screens 194 .
- the AMS can be used to manage the running process of the APP.
- the running process of the APP includes the start, pause and termination of the APP process.
- an APP usually consists of multiple activities, and the AMS is specifically used to manage different activities of the APP in different processes of the APP. For example, when the login interface of the mailbox APP is running, the AMS calls an Activity corresponding to the mailbox APP. In the process of displaying the mailbox main interface, AMS calls another Activity corresponding to the mailbox APP.
- the AMS can also be used to set a task ID (task identity, taskID) for the started APP after an APP process is started, so that all activities of the APP correspond to the set taskID, so that the first device 100 can distinguish each window interface , and the second device 200 distinguishes each screen projection interface.
- the AMS may set a taskID for an APP according to the number of APPs running on the first device 100 .
- the AMS may set the task number of the main interface of the first device 100 as task0.
- the AMS sets a task number "task1" for the mailbox APP.
- the AMS can also be used to delete the task number corresponding to the corresponding APP after the termination of an APP process.
- WMS can be used to manage window programs. For example, WMS can obtain the size of the display screen, the size of the display, and the position and coordinates of each window interface. In addition, WMS can also traverse whether the current interface of the running APP contains the security flag (implemented by viewing the parameter of windowstate). After traversing to the current interface (Activity) of the APP that contains the security flag, trigger the first device 100 to send a security protection instruction to the second device 200, so that the second device 200 is displayed at the front end of the screen projection interface of the APP window interface The security interface is terminated, and the display where the application is located is terminated to the second device 200 at the same time.
- the security protection instruction includes the task number of the corresponding window interface.
- the security flag bits may be implemented as security flags, for example.
- the security flag may include multiple types of flags, and different types of flags may indicate different security requirement scenarios.
- the first flag may indicate that a security lock is applied, for example.
- the security mode of the application security lock will be triggered.
- the second flag may be actively set by the application, for example.
- the implementation scenarios of biometric identification eg, face unlock
- a display interface containing private information eg, ID card photo
- some applications are currently in a certain Activity and cannot take screenshots or record the screen, which triggers a safe mode that is actively set by the application.
- the third flag can indicate to invoke the secure keyboard.
- the implementation scenario of bank card account number and/or password input triggers the security mode of calling the security keyboard. It can be understood that, in some embodiments, a flag is associated with an Activity, that is, an Activity corresponds to a flag.
- whether there is a flag referred to in this application may be understood as judging the value of the flag. For example, if flag is 1, it is judged to exist, and if flag is 0, it is judged not to exist. For another example, if the flag is 0, it is judged that it exists, and if the flag is 1, it is judged that it does not exist. This application does not limit this.
- the window interface may correspond to multiple activities.
- the Window state of the corresponding APP is updated.
- it can be updated to at least one of the aforementioned flags.
- WMS can determine whether the window interface contains a security flag by traversing whether the Window state of the window interface contains the flag. If the Window state corresponding to the corresponding Activity includes any of the aforementioned flags, it indicates that the current window interface of the APP includes a security flag, and the first device 100 sends a security protection instruction to the second device 200.
- Content providers are used to store and retrieve data and make these data accessible to applications.
- the data may include video, images, audio, calls made and received, browsing history and bookmarks, phone book, etc.
- the view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and so on. View systems can be used to build applications.
- a display interface can consist of one or more views. For example, a display interface that includes a camera icon.
- the phone manager is used to provide the communication function of the first device 100 .
- the management of call status including connecting, hanging up, etc.).
- the resource manager provides various resources for the application, such as localization strings, icons, pictures, layout files, video files and so on.
- the notification manager enables applications to display notification information in the status bar, which can be used to convey notification-type messages, and can disappear automatically after a brief pause without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc.
- the notification manager can also display notifications in the status bar at the top of the system in the form of graphs or scroll bar text, such as notifications of applications running in the background, and notifications on the screen in the form of dialog windows. For example, text information is prompted in the status bar, a prompt sound is issued, the first device 100 vibrates, and an indicator light flashes.
- the Android Runtime includes core libraries and a virtual machine. Android runtime is responsible for scheduling and management of the Android system.
- the core library consists of two parts: one is the function functions that the java language needs to call, and the other is the core library of Android.
- the application layer and the application framework layer run in virtual machines.
- the virtual machine executes the java files of the application layer and the application framework layer as binary files.
- the virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, safety and exception management, and garbage collection.
- the system library and the kernel layer below the application framework layer can be referred to as the underlying system, and the underlying system includes the underlying display system for providing display services, for example, the underlying display system includes the display driver in the kernel layer and surface manager in the system library, etc.
- a system library can include multiple functional modules. For example: surface manager (surface manager), media library (media library), 3D graphics processing library (eg: OpenGL ES), 2D graphics engine (eg: SGL), etc.
- surface manager surface manager
- media library media library
- 3D graphics processing library eg: OpenGL ES
- 2D graphics engine eg: SGL
- the Surface Manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications.
- the media library supports playback and recording of a variety of commonly used audio and video formats, as well as still image files.
- the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
- the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
- 2D graphics engine is a drawing engine for 2D drawing.
- the kernel layer is the layer between hardware and software.
- the kernel layer contains at least display drivers, camera drivers, audio drivers, and sensor drivers.
- the second device involved in the embodiment of the present application may be an electronic device including a wireless communication module and a display function, such as a display, a smart TV, a tablet computer, a notebook computer, a UMPC, a netbook, and other electronic devices. It can be understood that, the embodiment of the present application does not impose any limitation on the specific type of the second device.
- the second device may be onboard Or other operating system devices.
- FIG. 2C shows an exemplary architectural schematic diagram of the second device 200 .
- the second device 200 may include a processor 210, a memory 220, a wireless communication module 230, a display screen 240, a power supply 250, and the like.
- the structure illustrated in this application does not constitute a specific limitation on the second device 200 .
- the second device 200 may include more or less components than shown, or combine some components, or separate some components, or arrange different components.
- the illustrated components may be implemented in hardware, software, or a combination of software and hardware.
- the processor 210 may be configured to call the display screen 240 to display the screen-casting interface and the security interface and the like from the first device 100 .
- the processor 210 may also be configured to generate an operation instruction, where the operation instruction is used to instruct the user to operate the APP on the first device 100 side.
- the communication solution provided by the wireless communication module 230 is similar to that of the wireless communication module 160, and will not be described in detail here.
- the communication solution provided by the wireless communication module 230 can enable the second device 200 to communicate with the first device 100 , so that the interaction function of video streaming and instructions can be realized between the second device 200 and the first device 100 .
- the wireless communication module 230 implements the function of the second device 200 receiving the video stream to be projected from the first device 100 .
- Memory 220 may be used to store one or more computer programs including instructions.
- the processor 210 may execute the above-mentioned instructions stored in the memory 220, thereby causing the second device 200 to execute the display methods and the like provided in some embodiments of the present application.
- the memory 220 may also be used to cache data involved in the second device 200 performing the display method, for example, data of a security interface and the like.
- the display screen 240 is used to display controls, information, images, videos, etc. of the second device 200 , as well as screen projection interface information from the first device 100 .
- the second device 200 may trigger the display screen 240 to display the security interface at the front end of the screen projection interface corresponding to the security protection instruction.
- the hardware composition of the display screen 240 is similar to the hardware composition of the aforementioned display screen 194, and will not be described in detail here.
- the power supply 240 may be used to power the processor 210, the memory 220, the display screen 240, and the like.
- the UI for realizing the display function involved in the embodiments of the present application is a medium interface for interaction and information exchange between an application program or an operating system and a user, and it realizes the conversion between the internal form of the information and the form acceptable to the user.
- the user interface of the application is the source code written in a specific computer language such as java and extensible markup language (XML).
- the interface source code is parsed and rendered on the terminal device, and finally presented as content that the user can recognize.
- Controls also known as widgets, are the basic elements of the user interface. Typical controls include toolbars, menu bars, text boxes, buttons, and scroll bars. (scrollbar), pictures and text.
- the attributes and content of controls in the interface are defined by tags or nodes.
- XML specifies the controls contained in the interface through nodes such as ⁇ Textview>, ⁇ ImgView>, and ⁇ VideoView>.
- a node corresponds to a control or property in the interface, and the node is rendered as user-visible content after parsing and rendering.
- applications such as hybrid applications, often contain web pages in their interface.
- a web page, also known as a page can be understood as a special control embedded in an application program interface.
- a web page is source code written in a specific computer language, such as hypertext markup language (HTML), cascading styles Tables (cascading style sheets, CSS), java scripts (JavaScript, JS), etc.
- the source code of the web page can be loaded and displayed as user-identifiable content by a browser or a web page display component similar in function to a browser.
- the specific content contained in a web page is also defined by tags or nodes in the source code of the web page. For example, HTML defines the elements and attributes of web pages through ⁇ p>, ⁇ img>, ⁇ video>, and ⁇ canvas>.
- GUI graphical user interface
- GUI refers to a user interface related to computer operations that is displayed graphically. It can be an icon, window, control and other interface elements displayed on the display screen of the electronic device, wherein the control can include icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, Widgets, etc. visual interface elements.
- the first device 100 projects a screen to the second device 200, usually in units of display, and the second device 200 displays in units of window interfaces Security interface.
- the second device 200 can correspondingly display at least two screen projected interfaces.
- the second device 200 displays the security interface in the unit of the window interface, so that the at least two screen projection interfaces both display the security interface or a black screen (the first The device's display data will not be passed to the second device). In this way, the user cannot operate the screen projection interface without security requirements, and the user experience is poor.
- the display method involved in the embodiment of the present application includes: the first device receives a screen projection instruction input by the user.
- the first device projects the first window interface to the second device, and correspondingly, the second device displays the screen projection interface of the first window interface.
- the second window interface is projected to the second device (this command comes from the second device, for example, when the first window interface is the main interface, the command is double-clicking action to run the app).
- the first device After traversing the Window state, the first device confirms that the second window interface contains the security flag, and sends the task number and security protection instruction of the second window.
- the second device displays the screen projection interface and the security interface of the first window interface (the security interface is used to replace the display of the original second window interface).
- the trigger for the first device to traverse the Window state may be a periodic trigger, or may be triggered by a change in the position of the Activity in the stack, or may be triggered by a change in the Activity at the top of the stack.
- the flag corresponding to the Activity of the second window interface presented by the second window interface in response to the start instruction is 1.
- the second window interface is the login interface of the bank APP
- the security keyboard is triggered.
- the first device immediately determines that the second window contains a security sign, and further, the first device sends the task number of the second window and the security protection instruction to the second device, so that the second device displays the first window
- the screen projection interface and security interface of the interface is the first device starts the second window interface.
- the embodiments of the present application further provide another exemplary display method.
- the first device receives a screen projection instruction input by the user.
- the first device projects the first window interface to the second device.
- the first device determines in the first traversal cycle that the second window interface does not contain a security flag, and then projects the second window interface to the second device.
- the first device detects that the second window interface contains a security flag, and then the first device sends the task number and security protection instruction of the second window interface to the second device. corresponding.
- the second device displays the screen projection interface and the security interface of the first window interface.
- the first device can project the content of the second window interface to the second device, so that the second device displays the screen-casting interface of the first window interface and the screen-casting interface of the second window interface.
- the second window interface is changed, thereby triggering the change of the Activity of the changed interface, so that the changed second window interface has security requirements, and the corresponding Window state flag is set to 1.
- the first device can determine that the second window interface at this time includes a security flag, and the first device triggers the second device to display the second window interface as a security interface, so that the second device displays the screen-casting interface of the first window interface and security interface.
- the main interface of the wallet APP is displayed.
- the main interface of the wallet APP is, for example, a photo without security requirements
- the first device projects the wallet APP to the second device.
- the second device can display the screen projection interface of the main interface of the wallet APP.
- the second window interface enters the payment interface of the wallet APP.
- the second window interface includes a payment password input control, which is an interface with security requirements.
- the first device sends the task number of the second window interface (the interface of the wallet APP) and the security protection instruction to the second device, so that the second device displays the screencasting interface of the second window interface as safe interface.
- the flag of the corresponding Window state is set to 0. Then, in the process of periodically traversing the Window state, the first device can determine that the second window interface has no security flag based on the Window state, and then the first device can project the updated second window interface to the second device. .
- the second device hides the security interface, and displays the screen-casting interface updated by the second window interface.
- the content projected by the first device to the second device is the window interface included in the display of the first device, that is, the first window interface and the second window interface are included in the display of the first device.
- Window desktop the first device should also detect whether the third window interface and the fourth window interface contain a security flag, and then the first device will detect As a result, the screen projection information of the third window interface and the fourth window interface is sent to the second device. I won't go into details here.
- the first device every time the display of the first device is updated, the first device performs screen projection once. Among them, the increase and decrease of the window interface in the display, as well as the change of any window interface, are considered to be the display update.
- the first device projects a screen to the second device
- the first device sends the interface to be displayed to the second device in the form of a video stream.
- the second device can cut the video stream based on the parameter information sent by the first device (such as the size of the window interface, the position of the window interface, and the relative position between the window interfaces), and then display the first device in the form of a window respectively.
- the various interfaces of the projection screen are described below.
- the WMS is configured to tile the display to display the window interface to be projected, and the AMS adds a taskID to each window interface to be projected, so that the first device corresponds to each window to be projected.
- the interface generates a video stream and identifies each window interface to be projected.
- the display includes the window interfaces of all the APPs running on the first device, and the window interface to be projected may be all the window interfaces in the display, or part of the window interfaces in the display.
- the first device determines whether each window interface has security requirements before screen projection, and then the first device sends the taskID of each window interface and the screen projection information of the window interface to the second device according to the detection result. equipment.
- the second device displays a security interface and a screen projection interface including window interface content based on the taskID, where the security interface is a screen projection interface of a window interface with security requirements. In this way, the second device can safely display the interface with security requirements, and can also ensure that the user operates normally on the interface without security requirements.
- the mobile phone with the structure shown in FIG. 2A and FIG. 2B is taken as an example
- the notebook computer with the structure shown in FIG. 2C is taken as an example
- the screen projection scene provided by the embodiment of the present application is combined with the drawings.
- the display method is explained in detail below.
- the actual implementation process can be divided into the following three stages: the stage of initiating the screen projection function, the display stage in the security requirement scenario, and the display stage after the operation of the security interface. examples are introduced.
- the mobile phone and the notebook computer can establish a communication connection through respective wireless communication modules.
- the mobile phone may, for example, based on the WiFi Direct technology, send the video stream that needs to be projected to the notebook computer, so as to realize the screen projection function.
- the mobile phone and the notebook computer may establish a communication connection through, for example, respective NFC modules or Bluetooth modules.
- the screen projection function of the mobile phone is enabled. In a scenario where the distance between the mobile phone and the laptop computer is less than or equal to the communication transmission distance, the mobile phone projects the first group of window interfaces to the laptop computer.
- FIGS. 5A to 5C-2 The display interfaces related to the first group of window interfaces when the mobile phone projects the screen to the laptop computer are shown in FIGS. 5A to 5C-2 .
- the aforementioned module for establishing a communication connection between the mobile phone and the notebook computer and the interface for enabling the screen projection function of the mobile phone are all schematic descriptions and do not constitute limitations to the embodiments of the present application.
- the mobile phone and the notebook computer may also establish a connection based on other communication modules.
- the interface for enabling the screen projection function of the mobile phone may vary according to the model of the mobile phone and the version of the operating system of the mobile phone, which is not limited here.
- the GUI 51 shown in FIG. 5A is the first exemplary display interface of the notebook computer after the screen of the mobile phone is projected to the notebook computer.
- the GUI 51 includes a screen projection interface 510, which is a screen projection interface of the mobile phone desktop, including images of various interface elements on the mobile phone desktop, such as gallery, mailbox, wallet, and the like.
- the mobile phone calls the wireless communication module to send the video stream of the mobile phone desktop to laptop. Further, the notebook computer decodes the corresponding video stream, and displays the screen projection interface 510 corresponding to the video stream.
- the APPs running on the mobile phone are optionally run in the form of free-floating windows.
- the aspect ratio of the screen projection interface may be the same as that of the window interface.
- the size of the screen-casting interface depends on the size of the screen of the second device.
- the size of the screen of the second device is 285.7 millimeters (mm) in width and 214.3 mm in height, and the size of the screen projection interface may be 110 mm in width and 210 mm in height.
- the size of the screen of the second device is 1456.4mm wide*850.9mm high, and the size of the screen projection interface may be 450mm wide*800mm high.
- the GUI 52 shown in FIG. 5B is an exemplary display interface of the mobile phone during the screen projection process of the mobile phone
- the GUI 53 shown in FIG. 5B is a second exemplary display interface of the notebook computer after the mobile phone is projected to the notebook computer.
- the GUI 52 is, for example, a display interface of a gallery APP running on the mobile phone, and the GUI 52 includes an image 521 and an image 522 .
- the GUI 53 includes a screen projection interface 530 , which is the screen projection interface of the GUI 52 , and the screen projection interface 530 includes a screen projection image 531 of the image 521 and a screen projection image 532 of the image 532 .
- the mobile phone is displaying a window interface during the period of receiving the screen projection instruction. Further, WMS traverses whether the Activity corresponding to the window interface contains the flag. If the Activity corresponding to the window interface does not contain a flag, the GPU of the mobile phone can render the interface video stream currently being displayed by the mobile phone. After that, the mobile phone calls the wireless communication module to send the video stream of the interface being displayed by the mobile phone to the laptop. Furthermore, the notebook computer decodes the corresponding video stream, and displays the screen projection interface 530 corresponding to the video stream.
- the mobile phone can display the desktop of the mobile phone to the laptop computer.
- the GUI of the notebook computer can be shown as GUI51. After the mobile phone receives the user's operation and the mobile phone updates the window interface, the mobile phone can project the updated window interface to the laptop computer. Please refer to the descriptions of the following related embodiments for details, and will not be described in detail here.
- the mobile phone if the mobile phone does not display any APP interface, the mobile phone projects the desktop of the mobile phone to the laptop computer.
- the GUI of the notebook computer can be shown as GUI51.
- the GUI 54 shown in FIG. 5C is another exemplary display interface of the mobile phone when the mobile phone performs screen projection
- the GUI 55 shown in FIG. 5C is the third example of the notebook computer after the mobile phone is projected to the notebook computer.
- Sexual display interface The GUI 54 is, for example, a display interface of a window interface where the mobile phone is running and has security requirements.
- An exemplary display interface of the GUI 54 is shown in FIG. 5C-2 in detail, and will not be described in detail here.
- the GUI 55 includes a screen projection interface 551 and a screen projection interface 552 .
- the screen-casting interface 551 is a screen-casting interface of a window interface where the mobile phone is running and has no security requirements
- the screen-casting interface 552 is a screen-casting interface of the mobile phone desktop.
- the mobile phone is running several APPs, for example.
- the mobile phone can respectively detect whether the window interfaces that the several APPs are running contain a security flag, and then the mobile phone can project the window interface that does not contain the security flag and the desktop of the mobile phone to the laptop computer, and in the The display screen of the mobile phone is stacked to display a window interface (as shown in GUI 54 in FIG. 5C ) containing the security flag, so that the user can perform the next operation.
- the notebook computer displays a screen-casting interface of a window interface without security requirements (as shown in GUI 55 in FIG. 5C ).
- the mobile phone is running three APPs, such as mailbox, wallet and gallery, wherein the current window interface of the mailbox is, for example, the login interface, and the current window interface of the wallet is, for example, the interface for managing bank cards.
- the WMS traverses the activities corresponding to the three window interfaces to determine whether each activity contains a flag. For example, WMS determines that the activity corresponding to the current window interface of the mailbox contains the first flag, the activity corresponding to the current window interface of the wallet contains the second flag, and the activity corresponding to the current window interface of the gallery does not contain the flag.
- the WMS can report the traversal result to the DMS.
- the DMS configures the display of the mobile phone and the display strategy of each window interface based on the traversal result.
- the display interface of the display is shown in Figure 5C-1.
- the display50 shown in Figure 5C-1 includes display501 and display502.
- the display 501 is deployed on the display screen of the mobile phone and is a display visible to the user.
- display502 is an extended display of display501, and is a virtual display invisible to the user.
- the desktop of the mobile phone and the window interface of the gallery have no security requirements, so the mobile phone can project the window interface of the desktop and the gallery to the laptop computer.
- AMS can configure taskIDs for the phone's desktop and the gallery's window interface respectively. For example, AMS configures task 0 for the desktop of the mobile phone, and AMS configures task 1 for the window interface of the gallery.
- the DMS can configure the desktop of the mobile phone to be presented on display 501 , and the window interface of the configuration gallery to be presented on display 502 .
- the GPU of the mobile phone can render the video stream of the desktop of the mobile phone and the window interface of the gallery.
- the mobile phone calls the wireless communication module to send the video streams of task 0 and the mobile phone desktop, as well as the video streams of task 1 and the window interface of the gallery to the laptop.
- the notebook computer decodes the corresponding video stream, and divides the decoded image, and then displays the GUI 55 in FIG. 5C.
- the screen-casting interface 551 in the GUI 55 is, for example, the screen-casting interface of the mobile phone desktop, the screen-casting interface 551 corresponds to task 0, the screen-casting interface 552 is, for example, the screen-casting interface of the window interface of the gallery, and the screen-casting interface 552 corresponds to task 1.
- the window interface of the mailbox and the window interface of the wallet are interfaces with security requirements. Even if the screen is projected to the laptop, the laptop is not allowed to display the contents of the two window interfaces. Based on this, the mobile phone may not project the two window interfaces to the notebook computer, but display the two window interfaces on the display screen of the mobile phone.
- the DMS can configure the display strategy of the two-window interface on the mobile phone display screen based on the traversal result of the WMS, and then the DMS can display the two window interfaces on the mobile phone display screen through the display driver and the surface manager.
- the display interfaces of the two window interfaces are shown in Figure 5C-2.
- the GUI 56 illustrated in FIG. 5C-2 is an exemplary display interface of the GUI 54 .
- the GUI 56 is a display interface for the image of the window interface 561 and the image of the window interface 562.
- the image of the window interface 561 and the image of the window interface 562 are stacked and displayed, and the bottom of the GUI 56 also includes a delete icon 563 and the like.
- the window interface 561 is, for example, the login interface of the mailbox, and the window interface 561 is, for example, the management bank card interface of the wallet. After receiving the instruction that the user clicks the delete icon 563, the AMS ends the process of the mailbox and the process of the wallet.
- the DMS After receiving the instruction of the user to click the image of the window interface 561, the DMS controls the login interface of the mailbox to be displayed on the front end of the display screen of the mobile phone, so that the user can input the account and password of the mailbox. Similarly, after receiving the user's instruction to click the image of the window interface 562, the DMS controls the wallet management bank card interface to be displayed on the front end of the mobile phone display screen, so that the user can perform the next operation, such as payment operation. It will not be described in detail here.
- the mobile phone may display the GUI 56 after the display 50 shown in FIG. 5C-1 is projected onto the laptop computer.
- the mobile phone displays GUI 56 and other subsequent displays, all of which have triggered the update of the window interface, and accordingly, triggered the display 50 to be updated to other displays.
- the WMS traverses whether the window interface in the updated display contains a security flag, and then the mobile phone can cast a screen on the updated display according to the detection result.
- the mobile phone selects a group of interfaces without security requirements as the first group of window interfaces to project the screen to the laptop.
- at least one operable interface can be projected onto the notebook computer, so that the user can continue to operate, the security of the window interface with security requirements can be ensured, and transmission resources can be saved.
- the mobile phone may send the secure interface to the laptop at this stage.
- the laptop computer can store the security interface locally, and after receiving the security protection instruction from the mobile phone, display the security protection instruction instructing the screen-casting interface to be the security interface.
- FIG. 6 illustrates a security interface 60 .
- Security interface 60 includes icon 61 and icon 62 .
- the icon 61 displays the following information: "Operation on the mobile terminal is required to protect your privacy”.
- the icon 62 displays the following information: "Display the application on the mobile phone", the icon 62 can optionally receive the user's click on the computer, and send it to the mobile phone side through, for example, the Miracst UIBC (user input back control, user input back control) protocol .
- the background color of the security interface 60 may be a solid color, such as black. In other embodiments, in order to optimize the user's look and feel, the background of the security interface 60 may be a Gaussian blurred mobile phone wallpaper.
- the context of the secure interface is optionally generated by the computer side.
- the security interface is optionally generated by the mobile phone side.
- the mobile phone performs Gaussian blurring on its wallpaper and sends it to the computer, and the computer stores the processing. After the wallpaper.
- the computer receives the display security interface sent by the mobile phone, the wallpaper is locally read and displayed. It can be understood that when the mobile phone side detects that the local wallpaper has been changed, the mobile phone will perform the above operations so that the background of the computer side and the security interface can be consistent with the wallpaper on the mobile phone side.
- FIG. 6 is only a schematic description, and does not limit the embodiments of the present application.
- the security interface may also contain other information.
- the information contained in the security interface can be flexibly set. It will not be described in detail here.
- the user may continue to operate on the mobile phone or continue to operate on the laptop, which may trigger the display of an interface with security requirements.
- the following describes an embodiment of displaying a security interface from the perspectives of two scenarios in which the user triggers the mobile phone and the user triggers the notebook computer.
- Scenario 1 The user operates on the laptop
- the laptop computer after the laptop computer receives the instruction of the user to click on the screen projection interface, the laptop computer can generate the first operation instruction, and the first operation instruction is associated with the first APP.
- the first APP is the APP indicated by the image clicked by the user.
- the notebook computer sends the first operation instruction to the mobile phone based on the WiFi Direct technology.
- the mobile phone performs an operation on the first APP, thereby triggering the modification of the interface of the window displayed on the first APP, and then updating the display of the mobile phone.
- the mobile phone performs the operation of detecting the security flag position and re-projecting the screen corresponding to the updated display, so that the notebook computer displays the screen-casting interface of the APP triggered by the user, and realizes the function of the user operating the APP of the mobile phone based on the screen-casting interface.
- FIG. 7 illustrate an exemplary display method in scene one.
- FIG. 8 illustrate a schematic change process of the display on the mobile phone terminal along with the implementation process illustrated in FIG. 7 .
- the GUI 70 is the display interface of the notebook computer after the mobile phone projects the display 80 shown in (a) of FIG. 8 to the notebook computer.
- the GUI 70 includes a screen-casting interface 701 and a screen-casting interface 702.
- the screen-casting interface 701 is, for example, a screen-casting interface of a mobile phone desktop, including images of APPs such as mailboxes and memos.
- the screen-casting interface 702 is, for example, a screen-casting interface of the window interface of the memo.
- the screen projection interface 701 corresponds to the identification task 0
- the screen projection interface 702 corresponds to the identification task 1.
- the notebook computer After receiving the instruction of the user to click on the mailbox, the notebook computer generates a first operation instruction, and the first operation instruction is used to trigger the mobile phone to run the mailbox APP (an example of the aforementioned first APP). After that, the notebook computer sends the first operation instruction to the mobile phone. The mobile phone runs the mailbox APP in response to the first operation instruction, thereby starting the login interface of the mailbox.
- the login interface of the mailbox is shown in Figure 12, which will not be described in detail here.
- the display80 on the mobile phone is updated to the display81 shown in (b) of FIG. 8 .
- the mobile phone projects the display 81 to the notebook computer, so that the GUI 70 of the notebook computer is updated to the GUI 71 shown in (b) of FIG. 7 .
- the notebook computer can identify the first APP identifier corresponding to the image clicked by the user, and the first APP identifier is used to indicate the first APP. After that, the notebook computer generates a first operation instruction, where the first operation instruction includes the first APP identifier. Further, the mobile phone may determine the first APP according to the first APP identifier.
- the first APP identifier may be, for example, the name of the first APP.
- the GUI 71 shown in (b) in Figure 7 is the display interface of the notebook computer after the mobile phone projects the display 81 shown in (b) in Figure 8 to the notebook computer.
- the GUI 71 includes a screen projection interface 711 , a screen projection interface 712 and a screen projection interface 713 .
- the screen projection interface 711 corresponds to the identification task 0, the screen projection interface 712 corresponds to the identification task 1, and the screen projection interface 713 corresponds to the identification task 2.
- the screen projection interface 711 is, for example, a screen projection interface of a mobile phone desktop, and the screen projection interface 711 is the same as the screen projection interface 701 in the GUI 70 .
- the screen-casting interface 712 is, for example, a screen-casting interface of the window interface of the memo, and the screen-casting interface 712 is the same as the screen-casting interface 702 in the GUI 70 .
- the screen-casting interface 713 is, for example, a screen-casting interface of a window interface of a mailbox, and the screen-casting interface 713 is a security interface as shown in FIG. 6 . Not detailed here.
- the display 80 includes a window interface 71 and a window interface 72 .
- the window interface 71 is the mobile phone desktop, and the screen projection interface 701 in the GUI 70 is obtained by projection.
- the window interface 72 is the window interface of the memo, and the projection interface 702 in the GUI 70 is obtained by projection. Since the window interface 71 and the window interface 72 are displayed, WMS extends a virtual display based on the width of the mobile phone display screen, so that display80 includes display801 and display802, display801 is the display area corresponding to the display screen of the mobile phone, display802 is a virtual display, and display802 is a virtual display.
- the width can be the same as the width of display801.
- the WMS deploys the window interface 71 to display in display801, and deploys the window interface 72 to display in display802.
- AMS sets the identification task 0 for the window interface 71, and sets the identification task 1 for the window interface 72.
- the mobile phone after determining that the window interface 71 and the window interface 72 have no security requirements, the mobile phone sends task 0, task 1, and the video streams of the window interface 71 and the window interface 72 to the notebook computer, so that the notebook computer presents the GUI 70. .
- a window interface is added to the display of the mobile phone on the basis of display80, and further, display80 is updated to display81.
- display 81 is a schematic display interface for obtaining GUI 71 through screen projection.
- the display 81 includes a window interface 71 , a window interface 72 and a window interface 73 .
- the window interface 71 is projected to obtain the projection interface 711 in the GUI 71 .
- the window interface 72 is projected to obtain the projection interface 712 in the GUI 71 .
- the window interface 73 is projected to obtain the projection interface 713 in the GUI 71 .
- the DMS extends a virtual display based on the display screen of the mobile phone to obtain display81 .
- display81 includes display811 and display812.
- display811 is the display screen of the mobile phone
- display812 is a virtual display
- the width of display812 can be twice the width of display811.
- WMS deploys the window interface 71 to display in display811, and sets the identification task 0 for the window interface 71, and deploys the window interface 72 and the window interface 73 for tiled display in the display812, and sets the identification task 1 for the window interface 72, Set the flag task 2 for the window interface 73.
- display81 may be obtained by the mobile phone continuing to operate display80.
- the WMS of the mobile phone traverses the Activity of the window interface 71, the Activity of the window interface 72, and the Activity of the window interface 73 to determine whether each Activity contains a flag (it can be understood as judging whether the flag is set). Exemplarily, the WMS determines that neither the Activity of the window interface 71 nor the Activity of the window interface 72 contains a flag, while the Activity of the window interface 73 contains the first flag.
- the mobile phone sends task 0, task 1, task 2, the video streams of the window interface 71 and the window interface 72, and security protection instructions to the laptop computer. Wherein, the video stream of the window interface 71 corresponds to task 0, the video stream of the window interface 72 corresponds to task 1, and the security protection instruction corresponds to task 2.
- the laptop computer divides the video streams of the window interface 71 and the window interface 72 , and displays the screen projection interface 711 and the screen projection interface 712 .
- the notebook computer displays the screen projection interface of the window interface 73 as a security interface in response to the security protection instruction, so as to obtain the screen projection interface 713 .
- the display screen of the mobile phone can always display the mobile phone desktop.
- the window interface displayed by the mobile phone in response to the operation instruction from the notebook computer can be displayed on the virtual display.
- Scenario 2 The user operates on the mobile phone
- the second APP interface triggered by the instruction is usually displayed on the desktop of the mobile phone.
- the desktop of the mobile phone is updated, and the display of the mobile phone is also updated accordingly.
- the mobile phone can project the screen to the notebook computer based on the updated display, so that the screen projection interface of the notebook computer is updated accordingly.
- the GUI 90 is the display interface of the notebook computer after the mobile phone projects the display 101 shown in (a) of FIG. 10 to the notebook computer.
- the GUI 90 includes a screen-casting interface 901 and a screen-casting interface 902, and the screen-casting interface 901 is, for example, a screen-casting interface of a mobile phone desktop.
- the screen-casting interface 902 is, for example, a screen-casting interface of the window interface of the memo.
- the screen projection interface 701 corresponds to the identification task 0
- the screen projection interface 701 corresponds to the identification task 1.
- the GUI 91 is the desktop of the mobile phone, and the GUI 91 includes interface elements such as mailboxes.
- the mobile phone receives, for example, a second operation instruction input by the user by clicking, and the second operation instruction is, for example, used to start the second APP.
- the second APP is, for example, a mailbox APP.
- the mobile phone displays the login interface of the mailbox on the display screen.
- the login interface of the mailbox is shown in Figure 12, which will not be described in detail here.
- the window interface corresponding to the mobile phone desktop is updated to the login interface of the mailbox, and the display 101 is updated to the display 102 shown in (a) of FIG. 10 .
- the mobile phone projects the display 102 to the notebook computer, so that the GUI 91 of the notebook computer is updated to the GUI 92 shown in (c) of FIG. 9 .
- the GUI 92 shown in (c) of FIG. 9 is a display interface of the notebook computer after the mobile phone projects the display 102 shown in (b) of FIG. 10 to the notebook computer.
- the GUI 92 includes a screen-casting interface 921 and a screen-casting interface 922.
- the screen-casting interface 921 is a screen-casting interface of a window interface of a mailbox, for example, a security interface as shown in FIG. 6 .
- the screen-casting interface 922 is, for example, a screen-casting interface of the window interface of the memo.
- the screen projection interface 921 corresponds to the identification task 0
- the screen projection interface 922 corresponds to the identification task 1.
- the display 101 includes a window interface 1011 and a window interface 1012 .
- the DMS sets the identification task 0 for the window interface 1011, and sets the identification task 1 for the window interface 1012.
- the window interface 1011 is screen-cast to obtain the screen-casting interface 901 in the GUI 90 .
- the window interface 1012 is screen-cast to obtain the screen-casting interface 90 in the GUI 90 .
- the display 101 is similar to the display 80 shown in (a) of FIG. 8 and will not be described in detail here.
- the display 102 includes a window interface 1021 , a window interface 1022 and a window interface 1023 .
- the window interface 1021 is the same as the window desktop 1011, which is the desktop of the mobile phone
- the window interface 1022 is the same as the window interface 1012, and is the interface of the memorandum
- the window interface 1023 is the login interface of the mailbox, corresponding to the identification task 2. That is, after the mobile phone displays the login interface of the mailbox in response to the second operation instruction, the AMS starts the mailbox APP, enters the mailbox login interface, and configures the mailbox APP with the label task 2.
- the DMS performs expansion on the basis of display101 to obtain display102, which can accommodate window interface 1023.
- the mobile phone can project the window interface 1022 and the window interface 1023 to the laptop computer.
- the mobile phone can determine through the WMS that the window interface 1023 is an interface with security requirements, while the window interface 1022 has no security requirements.
- the mobile phone sends the video stream of task 1, task 2, security protection instructions and window interface 1012 to the laptop.
- task 2 corresponds to the security protection instruction
- task 1 corresponds to the video stream of the window interface 1012.
- the notebook computer displays GUI 92 .
- the mobile phone when the mobile phone receives an instruction that the user triggers the display of the window interface 561 , or the user triggers the instruction displayed on the window interface 561 , the The desktop interface is updated to a window interface with security requirements. Furthermore, the mobile phone casts the screen again based on the updated window interface, so that the screen-casting interface corresponding to task 0 on the laptop computer is a secure interface.
- the display screen of the mobile phone displays a window interface without security requirements, and further, the mobile phone can project the image of the corresponding window interface to the notebook. computer.
- the notebook computer can display the screen projection interface of the corresponding window interface and the screen projection interface of the memo window interface.
- the mobile phone associates the window interface to be projected with the task ID. After the window interface is updated, the mobile phone can instruct the laptop to display the projection interface of each window interface through the task ID, so that the laptop can use the task ID to display the projected interface of each window interface.
- the window interface displays the screen projection interface in units, which can not only safely display the interface with security requirements, but also ensure that the user can operate the interface without security requirements normally.
- the laptop computer displays the screen projection interface of the first APP as a security interface
- the user can trigger the corresponding window interface to be displayed on the display screen of the mobile phone through the laptop computer, so as to continue to operate the first APP on the mobile phone.
- the display of the window interface of the first APP on the display screen of the mobile phone and the user's continued operation will trigger the update of the display on the mobile phone, and then trigger the change of the screen projection interface displayed on the notebook computer.
- the GUI of the notebook computer in (a) of FIG. 11 is, for example, GUI 71, wherein the screen projection interface 713 includes an icon 1101, which is the same as the icon 62 in FIG. 6, and will not be described here.
- the notebook computer After receiving the user's operation of clicking the icon 1101, the notebook computer generates a third operation instruction, which is used to trigger the mobile phone to display the login interface of the mailbox shown in FIG. 12 on the display screen, so that the user can execute the mailbox on the mobile phone Login action.
- the window interface 73 in the display 81 of the mobile phone is displayed on the display screen of the mobile phone, so that the mobile phone presents the interface shown in FIG. 12 .
- the mobile phone can project the window interface 72 and the window interface 73 to the notebook computer again based on display81, so that the GUI 71 of the notebook computer is updated to the GUI 111 shown in (b) of FIG. 11 .
- the laptop computer after receiving the click operation of the user, can obtain the identification task 2 corresponding to the screen projection interface 713. After that, the notebook computer generates a third operation instruction, and the third operation instruction includes the identifier task 2. Further, the mobile phone can determine the login interface of the mailbox according to the identification task 2.
- the GUI 111 shown in (b) of FIG. 11 is a display interface of the notebook computer after the mobile phone projects the display 81 shown in (b) of FIG. 8 to the notebook computer.
- the GUI 111 includes a screen projection interface 1111 and a screen projection interface 1112 .
- the screen projection interface 1111 corresponds to the identification task 0, and the screen projection interface 1112 corresponds to the identification task 1.
- the screen-casting interface 1111 is a screen-casting interface of the mailbox login interface, and the screen-casting interface 1111 is a security interface as shown in FIG. 6 .
- the screen-casting interface 1112 is a screen-casting interface of the window interface of the memo, and the screen-casting interface 1112 is the same as the screen-casting interface 712 in the GUI 71 , and will not be described in detail here.
- the mobile phone can acquire and render the video stream of the window interface 72 based on the starting coordinates of the upper left corner of the window interface 72, and then render task 1, task 2, and render to obtain
- the video stream and the security protection instruction are sent to the laptop, where task 1 corresponds to the video stream, and task 2 corresponds to the security protection instruction.
- the laptop displays the screen projection interface 1112 corresponding to task1 and the screen projection interface 1111 corresponding to task2.
- the screen projection information sent by the mobile phone does not include task0 in display81 and the information corresponding to task0 (that is, the interface of the mobile phone desktop), so the screen projection interface corresponding to task 0 is not included in GUI111.
- the laptop computer deletes the screen projection interface 713 and updates the screen projection interface 711 to a security interface.
- the GUI 120 shown in FIG. 12 is the mailbox login interface of the mobile phone.
- the GUI 120 includes interface elements such as a control 1201 for inputting "email account”, a control 1202 for inputting "password”, and a "login” button 1203 .
- the control 1202 includes prompt information "input password”, and the font gray value of the prompt information "input password” is low to remind the user to input the login password of the mailbox in the control.
- the prompt message "Enter password” is hidden.
- the control 1201 includes prompt information "enter email account number”, and the prompt information "enter email account number” has a lower font gray value to remind the user to input the login account of the mailbox in the control.
- the control 1201 includes the login account of the mailbox, and the control 1202 includes the reminder message "input password”.
- the display of the mobile phone is updated from display81 to display142.
- the mobile phone can receive a login instruction input by the user by clicking the button 1203 , and the login instruction includes the email account and password input by the user.
- the AMS After confirming that the corresponding mailbox account and password are correct, the AMS calls the Activity of the main interface of the mailbox, and accordingly, the mobile phone displays the main interface of the mailbox.
- the main interface of the mailbox is shown in the window interface identified by task 2 in Figure 13.
- the display 142 shown in FIG. 13 includes a window interface 1421, a window interface 1422, and a window interface 1423.
- the window interface 1421 corresponds to the identification task 0, which is the mobile phone desktop.
- the window interface 1422 corresponds to the window interface of task 1 which is a memo.
- the window interface 1423 corresponds to task 2, which is the window interface of the main interface of the mailbox.
- the DMS can control the login interface corresponding to task 0 in display81 to close or hide, and display the main mailbox interface through a new window interface.
- the window interface identified by task 0 is updated to the mobile phone desktop, and a new window interface is added.
- the AMS configures the identification task 2 for the new window interface, so as to obtain the display142 shown in FIG. 13 .
- the mobile phone can project the window interface 1422 and the window interface 1423 in the display 142 to the notebook computer to obtain the GUI 151 shown in FIG. 14A . In other embodiments, the mobile phone can project all the window interfaces in the display 142 to the notebook computer to obtain the GUI 152 shown in FIG. 14B .
- the GUI 151 includes a screen projection interface 1511 and a screen projection interface 1512 .
- the screen projection interface 1511 corresponds to task 1, which is the screen projection interface of the window interface 1422 in the display142.
- the screen projection interface 1512 corresponds to task 2, and is the screen projection interface of the window interface 1423 in the display142.
- the GUI 152 includes a screen projection interface 1521 , a screen projection interface 1522 and a screen projection interface 1523 .
- the screen projection interface 1521 corresponds to task 0, which is the screen projection interface of the window interface 1421 in the display142.
- the screen projection interface 1522 corresponds to task 1, and is the screen projection interface of the window interface 1422 in the display142.
- the screen projection interface 1523 corresponds to task 2, and is the screen projection interface of the window interface 1423 in the display142.
- FIG. 5A to FIG. 14B are only schematic descriptions, and do not limit the embodiments of the present application.
- the above-mentioned embodiments of the display method are also applicable to the display of other APPs on the mobile phone, which will not be described one by one here.
- the GUI in each of the above scenarios may vary according to the model of the mobile phone, the version of the installed system, and the like. It will not be described in detail here.
- the above embodiments are only described by taking a mobile phone and a notebook computer as examples, and do not limit the embodiments of the present application.
- the first device involved in the embodiments of the present application may also be implemented as a folding screen device, a tablet computer, or the like
- the second device involved in the embodiments of the present application may also be implemented as a smart screen or the like. No limit here.
- the overall process of the display method involved in the embodiments of the present application is described below by taking the example that the first device is implemented as a mobile phone and the second device is implemented as a PC.
- FIG. 15 illustrates a third exemplary display method of the present application.
- the mobile phone side performs multi-screen collaboration.
- the mobile phone side first determines whether the current multi-screen collaboration is in place. If not, the default app lock policy is adopted (that is, the mobile phone side will not send the video stream to the PC side). If the mobile phone side determines whether it is in the secure input interface, if not, the default window display is used , if yes, the task ID corresponding to the application in the safe input interface and the cover screen (the cover screen is also optionally pre-stored on the PC) are sent to the PC. After the user finishes entering the password (the flag corresponding to the window state is reset), the mobile phone notifies the PC. The PC cancels the covering of the application window corresponding to the safe input interface.
- the content on the display will not be cast to the peer device when the security flag bit is encountered.
- the solution of the embodiment of the present application will cast the content on the display to the peer device regardless of whether there is a security flag bit flag, and at the same time transmit the security flag bit flag to tell the PC to cover the security layer with the security flag bit. Multi-screen collaborative multi-window security.
- the first device determines whether each window interface has security requirements before screen projection, and further, the first device according to the detection result, the taskID of each window interface and the screen projection of the window interface
- the information is sent to the second device.
- the second device displays a security interface and a screen projection interface including window interface content based on the taskID, where the security interface is a screen projection interface of a window interface with security requirements. In this way, the second device can safely display the interface with security requirements, and can also ensure that the user operates normally on the interface without security requirements.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Computer Hardware Design (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Health & Medical Sciences (AREA)
- Bioethics (AREA)
- General Health & Medical Sciences (AREA)
- Telephone Function (AREA)
- User Interface Of Digital Computer (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
一种显示方法及电子设备。具体的,第一设备接收用户输入的投屏指令之后,将第一窗口界面投屏到第二设备;所述第一设备接收到运行第二窗口界面的指令,可以在确定所述第二窗口界面包含安全标志位之后,向所述第二设备发送所述第二窗口界面的任务号以及安全保护指令;进而,所述第二设备显示所述第一窗口界面和安全界面,该安全界面是所述第二窗口界面的投屏界面。这样,所述第二设备既能够安全显示有安全要求的界面,也能够确保用户对无安全要求的界面正常操作,提高用户的使用体验。
Description
本申请要求于2020年9月10日提交中国国家知识产权局、申请号为202010949251.X,发明名称为“显示方法及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本申请实施例涉及显示领域,尤其涉及一种显示方法及电子设备。
投屏是设备1将设备1的窗口界面传输到设备2端显示的技术。示例性的,如图1所示,手机可以将手机的窗口界面传输到电脑端显示。这样,电脑可以在屏幕端显示手机窗口界面的投屏界面01。用户能够通过投屏界面01对手机的应用程序(application,APP)进行操作。
其中,手机端运行的APP包括具备安全要求的APP,例如需要用户输入密码的APP。基于此,在投屏的场景下,在手机侧输入的密码会在电脑上显示,例如可见密码/密码的位数/生物特性密码等,给用户带来了隐私泄露的隐患。
发明内容
本申请实施例提供了一种显示方法及电子设备,能够解决现有显示方法导致用户使用体验差的问题。
本申请实施例中,第一设备可以向第二设备投屏多个第一设备端的窗口界面。
第一方面,本申请实施例提供了一种显示方法,所述方法包括:第一设备接收用户输入的投屏指令;响应于所述投屏指令,所述第一设备将所述第一窗口界面投屏到第二设备;所述第一设备响应指令运行第二窗口界面;所述第一设备确定所述第二窗口界面包含安全标志位;所述第一设备向所述第二设备发送所述第二窗口界面对应的任务号以及安全保护指令,所述安全保护指令用于指示所述第二设备将所述第二窗口界面的投屏界面显示为安全界面。
其中,第一设备可以配置的应用显示区域(display),以及配置第一设备端运动的窗口界面在display内的显示策略,进而,第一设备可以基于display向第二设备投屏。此外,第一设备为第一设备端运动的APP配置taskID,以表示各个APP的窗口界面。
本申请实施例中,第一设备在投屏之前确定各个窗口界面是否具备安全需求,进而,第一设备根据检测结果,将每个窗口界面的taskID以及该窗口界面的投屏信息发送到第二设备。第二设备基于taskID显示安全界面和包含窗口界面内容的投屏界面,其中,安全界面是有安全需求的窗口界面的投屏界面。这样,第二设备既能够安全显示有安全要求的界面,也能够确保用户对无安全要求的界面正常操作。
在一种可能的设计中,所述第一设备响应指令运行第二窗口界面,包括:所述第一设备接收来自于所述第二设备的第一操作指令,所述第一操作指令关联第一应用程序APP, 所述第二窗口界面是所述第一APP的一个窗口界面;所述第一设备运行所述第一APP,以启动所述第二窗口界面。其中,第一设备可以基于WiFi Direct技术与第二设备之间通信。这样能够实现用户在第二设备端对第一设备的APP进行操作。
在一种可能的设计中,所述第一设备响应指令运行第二窗口界面,包括:所述第一设备接收用户输入的第二操作指令,所述第二操作指令对应第一应用程序APP,所述第二窗口界面是所述第一APP的一个窗口界面;所述第一设备运行所述第一APP,以及显示所述第二窗口界面。
在一种可能的设计中,所述第一设备向所述第二设备发送所述第二窗口界面对应的任务号以及安全保护指令之后,还包括:所述第一设备接收来自于所述第二设备的第三操作指令,所述第三操作指令包含所述第二窗口界面对应的任务号;响应于所述第三操作指令,所述第一设备显示所述第二窗口界面;所述第一设备接收用户基于所述第二窗口界面输入的操作信息;所述第一设备将所述第二窗口界面更新为第三窗口界面;所述第一设备将所述第三窗口界面投屏到所述第二设备。当第二设备将第二窗口界面的投屏界面显示为安全界面之后,用户可以通过第二设备触发第二窗口界面在第一设备的显示屏显示,以在第一设备端对第二窗口继续操作。而第一设备可以通过任务号确定第二窗口界面。采用本实现方式,第一设备将窗口界面和task ID关联,使得第一设备和第二设备均可以通过task ID确定窗口界面,使得用户便于切换第一设备端和第二设备端显示的窗口界面,从而提高用户的使用体验。
在一种可能的设计中,所述第一设备确定所述第二窗口界面包含安全标志位,包括:所述第一设备调用所述第一设备的窗口管理服务遍历所述第二窗口界面的窗口状态;若所述第二窗口界面的窗口状态包含安全旗flag,所述第一设备确定所述第二窗口界面包含安全标志位。
在一种可能的设计中,所述安全旗包括第一旗flag、第二flag和第三flag,所述第一flag指示应用安全锁,第二flag指示应用主动设置、第三flag指示调用安全键盘。
第二方面,本申请实施例提供了一种显示方法,所述方法包括:第二设备接收来自于第一设备的第一窗口界面的视频流;所述第二设备显示所述视频流对应的图像,得到所述第一窗口界面的投屏界面;第二设备接收来自于第一设备的任务号和安全保护指令;所述第二设备显示所述第一窗口界面的投屏界面和安全界面。
在一种可能的设计中,所述第二设备显示所述第一窗口界面的投屏界面和安全界面之后,还包括:所述第二设备接收用户输入的点击指令,所述点击指令对应所述安全界面;所述第二设备生成操作指令,所述操作指令包括任务号;所述第二设备向第一设备发送所述操作指令。
第三方面,本申请实施例提供了一种电子设备,该电子设备具有实现上述方法中第一设备的功能。所述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。所述硬件或软件包括一个或多个与上述功能相对应的模块。在一个可能的设计中,上述电子设备的结构中包括处理器和收发器,所述处理器被配置为处理该电子设备执行上述方法中第一设备相应的功能。所述收发器用于实现与第二设备的信息交互。所述电子设备还可以包括存储器,所述存储器用于与处理器耦合,其保存该电子设备必要的程序指令和数据。
第四方面,本申请实施例提供了一种电子设备,该电子设备具有实现上述方法中第二 设备的功能。所述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。所述硬件或软件包括一个或多个与上述功能相对应的模块。在一个可能的设计中,上述电子设备的结构中包括处理器、接收器和显示器,所述处理器被配置为处理该电子设备执行上述方法中相应的功能。所述收发器用于实现与第一设备的信息交互。所述显示器用于实现投屏界面和安全界面的显示。所述电子设备还可以包括存储器,所述存储器用于与处理器耦合,其保存该电子设备必要的程序指令和数据。
第五方面,本申请实施例提供了一种计算机存储介质,该计算机存储介质中存储有指令,当所述指令在计算机上运行时,使得计算机执行第一方面、第二方面、第一方面各种可能的实现方式中及第二方面各种可能的实现方式中的显示方法的部分或全部步骤。
第六方面,本申请实施例提供了一种计算机程序产品,该计算机程序产品在计算机上运行时,使得计算机执行第一方面、第二方面、第一方面各种可能的实现方式中及第二方面各种可能的实现方式中的显示方法的部分或全部步骤。
图1为本申请实施例提供的一种典型投屏场景的场景示意图;
图2A为本申请实施例提供的第一设备100的示例性硬件结构示意图;
图2B为本申请实施例提供的第一设备100的示例性软件架构示意图;
图2C为本申请实施例提供的第二设备200的示例性架构示意图;
图3为本申请实施例提供的应用显示区域(display)的示例性平面示意图;
图4A为本申请实施例提供的显示方法的第一种示例性信令交互示意图;
图4B为本申请实施例提供的显示方法的第二种示例性信令交互示意图;
图5A为本申请实施例提供的投屏场景的第一种示例性界面示意图;
图5B为本申请实施例提供的投屏场景的第二种示例性界面示意图;
图5C为本申请实施例提供的投屏场景的第三种示例性界面示意图;
图5C-1为本申请实施例提供的图5C示意的场景对应的display的示例性示意图;
图5C-2为本申请实施例提供的图5C示意的场景中手机的一种示例性界面示意图;
图6为本申请实施例提供的安全界面的示例性界面示意图;
图7为本申请实施例提供的第一组投屏界面的示例性界面示意图;
图8为本申请实施例提供的图7的显示界面对应的display的示例性示意图;
图9为本申请实施例提供的第二组投屏界面的示例性界面示意图;
图10为本申请实施例提供的图9的显示界面对应的display的示例性示意图;
图11为本申请实施例提供的第三组投屏界面的示例性界面示意图;
图12为本申请实施例提供的邮箱登录界面的示例性界面示意图;
图13为本申请实施例提供的一种display的示例性示意图;
图14A为本申请实施例提供的图13示意的display的第一种示例性投屏界面示意图;
图14B为本申请实施例提供的图13示意的display的第二种示例性投屏界面示意图;
图15为本申请实施例提供的显示方法的第三种示例性信令交互示意图。
下面将结合本申请实施例中的附图,对本申请实施例的技术方案进行清楚地描述。
本申请以下实施例中所使用的术语只是为了描述特定实施例的目的,而并非旨在作为对本申请的限制。如在本申请的说明书和所附权利要求书中所使用的那样,单数表达形式“一个”、“一种”、“所述”、“上述”、“该”和“这一”旨在也包括复数表达形式,除非其上下文中明确地有相反指示。还应当理解,尽管在以下实施例中可能采用术语第一、第二等来描述某一类对象,但所述对象不应限于这些术语。这些术语仅用来将该类对象的具体对象进行区分。例如,以下实施例中可能采用术语第一、第二等来描述设备,但设备不应限于这些术语。这些术语仅用来将不同的电子设备进行区分。以下实施例中可能采用术语第一、第二等来描述的其他类对象同理,此处不再赘述。
本申请实施例提供了一种显示方法,该显示方法应用于第一设备向第二设备投屏至少两个窗口界面的场景。其中,对应无安全需求的窗口界面,第二设备显示该窗口界面的内容,对应有安全需求的窗口界面,第二设备显示安全界面。这样,使得第二设备既能够安全显示有安全要求的界面,也能够确保用户对无安全要求的界面正常操作。
以下介绍第一设备、第二设备、用于这样的第一设备和这样的第二设备的用户界面(user interface,UI)、以及用于使用这样的第一设备和这样的第二设备的实施例。
为了清楚的描述本申请的实施例,本说明书中将第一设备显示的界面称为“窗口界面”,所述“窗口界面”是以第一设备的显示屏大小为一个窗口的显示界面。本说明书中将第二设备显示的界面称为“投屏界面”,每个“投屏界面”对应一个“窗口界面”。
本申请实施例涉及的第一设备可以是包含无线通信模块和显示功能的电子设备,诸如手机、平板电脑、可穿戴设备(例如,手表、手环、头盔等)、车载设备、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、个人数字助理(personal digital assistant,PDA)、智能家居设备(例如,智能电视等)等电子设备。可以理解的是,本申请实施例对第一设备的具体类型不作任何限制。第一设备可以是搭载
或者其它操作系统的设备。
图2A示出了第一设备100的硬件结构示意图。第一设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。
可以理解的是,本申请实施例示意的结构并不构成对第一设备100的具体限定。在本申请另一些实施例中,第一设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit, GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。在一些实施例中,第一设备100也可以包括一个或多个处理器110。
其中,控制器可以是第一设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成检测指令等的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了第一设备100的效率。
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现第一设备100的触摸功能。
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机听声音的功能。
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机听声音的功能。所述I2S接口和所述PCM接口都可以用于音频通信。
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实 现第一设备100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现第一设备100的显示功能。
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为第一设备100充电,也可以用于第一设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。
可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对第一设备100的结构限定。在另一些实施例中,第一设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过第一设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为第一设备100供电。
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,外部存储器,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。
第一设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。第一设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在第一设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器 将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示APP的操作界面。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。
无线通信模块160可以提供应用在第一设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
在一些实施例中,第一设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得第一设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。
在一些实施例中,移动通信模块150提供的无线通信的解决方案可使得第一设备100可以与网络中的设备(如云服务器)通信。无线通信模块160提供的WLAN无线通信的解决方案也可使得第一设备100可以与网络中的设备(如第二设备200)通信,以使第一设备100向第二设备200传输视频流,实现第一设备100向第二设备200投屏的功能。
第一设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。例如,GPU可以渲染得到作为安全界面的图像。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变界面显示效果。在本申请实施例中,显示屏194中可包括显示器和触控器件。显示器用于向用户输出显示内容,例如第一设备100的桌面页面,以及APP的各类操作界面等。触控器件用于接收用户在显示屏194上输入的操作指令。
显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed, Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。
在本申请的一些实施例中,当显示面板采用OLED、AMOLED、FLED等材料时,显示屏194可以被弯折。这里,显示屏194可以被弯折是指显示屏可以在任意部位被弯折到任意角度,并可以在该角度保持,例如,显示屏194可以从中部左右对折。也可以从中部上下对折。
第一设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当第一设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。
视频编解码器用于对数字视频压缩或解压缩。一些实施例中,第一设备100连接第二设备200之后,视频编解码器可以将需要投屏到第二设备200的视频流进行压缩,进而,向第二设备200发送压缩后的视频文件。第一设备100可以支持一种或多种视频编解码器。
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现第一设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展第一设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐、照片、视频等数据保存在外部存储卡中。
内部存储器121可以用于存储一个或多个计算机程序,该一个或多个计算机程序包括指令。处理器110可以通过运行存储在内部存储器121的上述指令,从而使得第一设备100执行本申请一些实施例中所提供的显示方法,以及各种功能应用以及数据处理等。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统;该存储程序区还可以存储一个或多个应用程序(比如邮箱、图库、联系人等)等。存储数据区可存储第一设备100使用过程中所创建的数据(比如窗口界面标识等)。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。
第一设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳 机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。第一设备100可以通过扬声器170A收听音乐,或收听免提通话。
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当第一设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。第一设备100可以设置至少一个麦克风170C。在另一些实施例中,第一设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,第一设备100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。第一设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,第一设备100根据压力传感器180A检测所述触摸操作强度。第一设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。
陀螺仪传感器180B可以用于确定第一设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定第一设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测第一设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消第一设备100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。
气压传感器180C用于测量气压。在一些实施例中,第一设备100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。
磁传感器180D包括霍尔传感器。第一设备100可以利用磁传感器180D检测第一设备100显示屏194的朝向。在一些实施例中,当第一设备100是柔性屏设备时,第一设备100可以根据磁传感器180D检测屏幕的折叠和展开状态。
加速度传感器180E可检测第一设备100在各个方向上(一般为三轴)加速度的大小。当第一设备100静止时可检测出重力的大小及方向。还可以用于识别第一设备100的姿态, 应用于横竖屏切换,计步器等应用。
距离传感器180F,用于测量距离。第一设备100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,第一设备100可以利用距离传感器180F测距以实现快速对焦。
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。第一设备100通过发光二极管向外发射红外光。第一设备100使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定第一设备100附近有物体。当检测到不充分的反射光时,第一设备100可以确定第一设备100附近没有物体。第一设备100可以利用接近光传感器180G检测用户手持第一设备100贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。
环境光传感器180L用于感知环境光亮度。第一设备100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测第一设备100是否在口袋里,以防误触。
指纹传感器180H用于采集指纹。第一设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。
温度传感器180J用于检测温度。在一些实施例中,第一设备100利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,第一设备100执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,第一设备100对电池142加热,以避免低温导致第一设备100异常关机。在其他一些实施例中,当温度低于又一阈值时,第一设备100对电池142的输出电压执行升压,以避免低温导致的异常关机。
触摸传感器180K,也可称触控面板或触敏表面。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于第一设备100的表面,与显示屏194所处的位置不同。
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器180M也可以设置于耳机中,结合成骨传导耳机。音频模块170可以基于所述骨传导传感器180M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器180M获取的血压跳动信号解析心率信息,实现心率检测功能。
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。第一设备100可以接收按键输入,产生与第一设备100的用户设置以及功能控制有关的键信号输入。
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动 反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和第一设备100的接触和分离。第一设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。第一设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,第一设备100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在第一设备100中,不能和第一设备100分离。
第一设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本申请实施例以分层架构的Android系统为例,示例性说明第一设备100的软件结构。
图2B是本申请实施例的第一设备100的软件结构示意图。
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,Android系统从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。
应用程序层可以包括一系列应用程序包。
如图2B所示,应用程序包可以包括图库,日历,地图,WLAN,音乐,短信,通话,导航,蓝牙,视频等应用程序。
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。
如图2B所示,应用程序框架层可以包括显示管理服务(display manager service,DMS),活动管理服务(activity manager service,AMS),窗口管理服务(window manager service,WMS)。窗口管理服务又可以叫窗口管理器。当然,应用程序框架层中还可以包括内容提供器,视图系统,电话管理器,资源管理器,通知管理器等,本申请实施例对此不作任何限制。
其中,WMS可用于确定第一设备100中APP的显示策略,之后,WMS可以通过底层显示系统的显示驱动和表面管理器(surface manager),控制APP按照显示策略在第一设备100的显示屏194显示。
其中,DMS可用于配置待投屏到第二设备200的窗口界面在第一设备100的应用显示区域(display)内的显示策略,以便于第二设备200基于窗口界面在display内的显示策略显示相应投屏界面。
其中,display是在第一设备上运行的应用程序的显示区域,也可以从投屏的角度理解是WMS为待投屏的窗口界面配置的呈现区域,WMS可以根据待投屏的窗口界面平铺显示时占用的区域大小配置display。如图3所示,WMS可以将第一设备100的左上角作为坐 标系的原点,将第一设备100显示屏194的宽度作为单位,配置前述display。示例性的,WMS可以在x轴方向上进行扩展,以得到前述display。其中,display的尺寸与待投屏窗口界面的数量关联。例如,图3中的(a)示意的实施例中,待投屏的窗口界面是一个的场景下,显示屏194的显示区域即可容纳该待投屏的窗口界面,WMS将显示屏194的显示区域配置为display30。再如,图3中的(b)示意的实施例中,待投屏的窗口界面是两个的场景下,显示屏194的显示区域无法容纳平铺显示的两个窗口界面,基于此,WMS在x轴方向上扩展出一个显示屏194宽度的显示区域。进而,WMS配置一个待投屏的窗口界面在显示屏194的显示区域显示,另一个待投屏的窗口界面在扩展区域显示。即,图3中的(b)示意的实施例中,display31包括第一display311和第二display312,第一display311配置在第一设备100的显示屏194,为用户可见的display,第二display312为第一display311的扩展display,为用户不可见的display,本申请实施例也将该扩展的display称为“虚拟display(virtual display)”。应理解,虚拟display的尺寸与待投屏窗口界面的数量关联。例如,待投屏的窗口界面是三个的场景下,WMS在x轴方向上扩展出两个显示屏194宽度的显示区域,相应的,虚拟display的宽度即为两个显示屏194宽度。
AMS可用于管理APP的运行进程,APP的运行进程包括APP进程的启动、暂停和终止等。其中,一个APP通常由多个Activity组成,AMS具体用于在APP的不同进程管理APP的不同的Activity。例如,邮箱APP的登录界面运行时,AMS调用邮箱APP相对应的一个Activity。在显示邮箱主界面的进程中,AMS调用邮箱APP相对应的另一个Activity。
AMS还可以用于在一个APP进程启动之后,为该启动的APP设置任务号(task identity,taskID),使得该APP的所有Activity均对应所设置的taskID,以便于第一设备100区分各个窗口界面,以及第二设备200区分各个投屏界面。示例性的,AMS可以按照第一设备100正在运行的APP的数量,为APP设置taskID。例如,AMS可以将第一设备100的主界面的任务号设置为task0。在第一设备100中邮箱APP的进程启动之后,AMS为邮箱APP设置任务号“task1”。另一些实施例中,AMS还可以用于在一个APP进程终止之后,删除相应APP对应的任务号。
WMS可用于管理窗口程序。例如,WMS可以获取显示屏大小,display的大小,以及各个窗口界面的位置和坐标等。另外,WMS还可以遍历正在运行的APP当前的界面是否包含安全标志位(通过查看windowstate的参数实现)。当遍历到APP当前的界面(Activity)包含安全标志位之后,触发第一设备100向第二设备200发送安全保护指令,以使第二设备200在该APP窗口界面的投屏界面的最前端显示安全界面,同时终止向第二设备200投屏该应用所在的display。该安全保护指令中例如包含相应窗口界面的任务号。
一些实施例中,安全标志位例如可以实现为安全旗(flag)。实际实现中,安全旗可以包括多个类型的flag,不同类型的flag可以指示不同性质的安全需求场景。例如,第一flag例如可以指示应用安全锁。实际操作中,具有安全锁的应用在接收用户操作打开时,会触发应用安全锁的安全模式。第二flag例如可以由应用主动设置。在一些实施例中,生物识别(例如人脸解锁),或者包含隐私信息的显示界面(例如身份证照片)等的实施场景,触发应用主动设置的安全模式。在另一些实施例中,一些应用设置当前处于某个Activity不可以截屏或录屏,触发应用主动设置的安全模式。第三flag可以指示调用 安全键盘。实际操作中,银行卡账号和/或密码输入的实施场景,触发调用安全键盘的安全模式。可以理解的是,在一些实施例中,flag与Activity关联,即一个Activity对应着一个flag。
在一些实施例中,本申请所指的是否存在flag可以理解为对flag的值进行判断。例如,若flag为1,判断存在,若flag为0,判断不存在。又例如,若flag为0,判断存在,若flag为1,判断不存在。本申请对此不做限定。
基于前述实施例的描述,窗口界面可以对应多个Activity。窗口界面的Activity被调用过程中,相应APP的Window state被更新,一些实施例中,在更新Window state的实施过程中,可以更新为前述的至少一个flag。基于此,WMS可以通过遍历窗口界面的Window state是否包含flag,确定窗口界面是否包含安全标志位。若相应Activity对应的Window state包含前述任一flag,则指示该APP当前窗口界面包含安全标志位,第一设备100则向第二设备200发送安全保护指令。
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括照相机图标的显示界面。
电话管理器用于提供第一设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,第一设备100振动,指示灯闪烁等。
安卓运行时(Android Runtime)包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。
继续参见图2B,应用程序框架层以下的系统库和内核层等可称为底层系统,底层系统中包括用于提供显示服务的底层显示系统,例如,底层显示系统包括内核层中的显示驱动以及系统库中的surface manager等。
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(media libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的 融合。
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。
2D图形引擎是2D绘图的绘图引擎。
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。
本申请实施例涉及的第二设备可以是包含无线通信模块和显示功能的电子设备,例如显示器、智能电视、平板电脑、笔记本电脑、UMPC、上网本等电子设备。可以理解的是,本申请实施例对第二设备的具体类型不作任何限制。第二设备可以是搭载
或者其它操作系统的设备。
图2C示出了第二设备200的示例性架构示意图。第二设备200可以包括处理器210,存储器220,无线通信模块230,显示屏240以及电源250等。
可以理解的是,本申请示意的结构并不构成对第二设备200的具体限定。在本申请另一些实施例中,第二设备200可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
本实施例中,处理器210所包含的硬件和软件以及各硬件和软件的功能,与处理器110类似。本申请此处不再详述。处理器210可以用于调用显示屏240显示来自于第一设备100的投屏界面和安全界面等。一些实施例中,处理器210还可以用于生成操作指令,该操作指令用于指示用户在第一设备100端对APP进行操作。
无线通信模块230提供的通信的解决方案与无线通信模块160类似,此处不再详述。无线通信模块230提供的通信的解决方案可使得第二设备200与第一设备100通信,以使第二设备200与第一设备100之间实现视频流以及指令的交互功能。例如,无线通信模块230实现第二设备200接收来自于第一设备100的待投屏的视频流的功能。
存储器220可以用于存储一个或多个计算机程序,该一个或多个计算机程序包括指令。处理器210可以通过运行存储在存储器220的上述指令,从而使得第二设备200执行本申请一些实施例中所提供的显示方法等。存储器220还可以用于缓存第二设备200执行显示方法过程中涉及的数据,例如,安全界面的数据等。
显示屏240用于显示第二设备200的控件、信息、图像、视频等,以及来自于第一设备100的投屏界面信息。另一些实施例中,当第二设备200接收到来自于第一设备100的安全保护指令之后,可以触发显示屏240在安全保护指令对应的投屏界面最前端显示安全界面。本实施例中,显示屏240的硬件组成与前述显示屏194的硬件组成类似,此处不详述。
电源240可以用于为处理器210,存储器220,显示屏240等供电。
本申请实施例涉及的用于实现显示功能的UI,是应用程序或操作系统与用户之间进行交互和信息交换的介质接口,它实现信息的内部形式与用户可以接受形式之间的转换。应用程序的用户界面是通过java、可扩展标记语言(extensible markup language,XML)等特定计算机语言编写的源代码,界面源代码在终端设备上经过解析,渲染,最终呈现为 用户可以识别的内容,比如视频、图片、文字、按钮等控件。控件(control)也称为部件(widget),是用户界面的基本元素,典型的控件有工具栏(toolbar)、菜单栏(menu bar)、文本框(text box)、按钮(button)、滚动条(scrollbar)、图片和文本。界面中的控件的属性和内容是通过标签或者节点来定义的,比如XML通过<Textview>、<ImgView>、<VideoView>等节点来规定界面所包含的控件。一个节点对应界面中一个控件或属性,节点经过解析和渲染之后呈现为用户可视的内容。此外,很多应用程序,比如混合应用(hybrid application)的界面中通常还包含有网页。网页,也称为页面,可以理解为内嵌在应用程序界面中的一个特殊的控件,网页是通过特定计算机语言编写的源代码,例如超文本标记语言(hyper text markup language,HTML),层叠样式表(cascading style sheets,CSS),java脚本(JavaScript,JS)等,网页源代码可以由浏览器或与浏览器功能类似的网页显示组件加载和显示为用户可识别的内容。网页所包含的具体内容也是通过网页源代码中的标签或者节点来定义的,比如HTML通过<p>、<img>、<video>、<canvas>来定义网页的元素和属性。
用户界面常用的表现形式是图形用户界面(graphic user interface,GUI),是指采用图形方式显示的与计算机操作相关的用户界面。它可以是在电子设备的显示屏中显示的一个图标、窗口、控件等界面元素,其中控件可以包括图标、按钮、菜单、选项卡、文本框、对话框、状态栏、导航栏、Widget等可视的界面元素。
需要指出的是,一种典型的基于投屏场景的安全保护机制中,第一设备100向第二设备200投屏,通常以display为单位进行投屏,第二设备200以窗口界面为单位显示安全界面。基于此,若第一设备100投屏的display中包含至少两个窗口界面,第二设备200可以对应显示至少两个投屏界面。当该至少两个窗口界面中任一窗口界面需要安全保护,第二设备200均以窗口界面为单位显示安全界面,从而使得该至少两个投屏界面均显示安全界面或黑屏(此时第一设备的display数据不会被传递到第二设备)。这样,导致用户对无安全需求的投屏界面也无法正常操作,用户体验较差。
为了解决上述问题,本申请实施例提供了一种显示方法及电子设备。如图4A所示,本申请实施例涉及的显示方法包括:第一设备接收用户输入的投屏指令。响应于该投屏指令,第一设备将第一窗口界面投屏到第二设备,相应的,第二设备显示第一窗口界面的投屏界面。进而,第一设备响应指令运行第二窗口界面之后,将第二窗口界面投屏至第二设备(此指令来源于第二设备,例如,当第一窗口界面为主界面时,该指令为双击运行应用的操作)。第一设备遍历Window state后确认第二窗口界面包含安全标志位,发送第二窗口的任务号和安全保护指令。第二设备显示第一窗口界面的投屏界面和安全界面(安全界面用于替代原第二窗口界面显示)。
其中,第一设备遍历Window state的触发可以是周期性触发,还有可能是Activity在栈中的位置发生变化触发,还有可能是栈顶的Activity发生变化触发。
基于此,图4A示意的实施场景中,第一设备启动第二窗口界面之后,第二窗口界面响应启动指令呈现的第二窗口界面的Activity对应的flag即为1。例如,第二窗口界面是银行APP的登录界面,第二窗口启动之后,即触发安全键盘。这样,第一设备在投屏之前,即刻确定第二窗口包含安全标志,进而,第一设备将第二窗口的任务号和安全保护指令发送到第二设备,以使第二设备显示第一窗口界面的投屏界面和安全界面。
另一些实施例中,本申请实施例还提供了另一种示例性的显示方法。如图4A所示,本实施例中,第一设备接收用户输入的投屏指令。响应于该投屏指令,第一设备将第一窗口界面投屏到第二设备。第一设备响应指令运行第二窗口界面之后,在第一个遍历周期内确定第二窗口界面中不包含安全标志位,进而,将第二窗口界面投屏至第二设备。进而,第一设备在之后的遍历周期中,检测到第二窗口界面包含安全标志位,然后,第一设备向第二设备发送第二窗口界面的任务号和安全保护指令。相应的。第二设备显示第一窗口界面的投屏界面和安全界面。
图4B示意的实施场景中,第一设备启动第二窗口界面之后,当前启动的第二窗口界面的内容无安全需求,相应的,第二窗口界面当前的Window state的flag置0。那么,第一设备可以将该第二窗口界面的内容投屏到第二设备,以使第二设备显示第一窗口界面的投屏界面和第二窗口界面的投屏界面。而响应于用户的触发,第二窗口界面的变更,从而触发变更后界面的Activity变化,使得变更后的第二窗口界面存在安全需求,相应Window state的flag置1。进而,第一设备能够确定此时的第二窗口界面包含安全标志位,第一设备触发第二设备将第二窗口界面显示为安全界面,以使第二设备显示第一窗口界面的投屏界面和安全界面。
例如,第二窗口界面启动后,显示的是钱包APP的主界面。钱包APP的主界面例如无安全需求的照片,那么,第一设备将钱包APP投屏到第二设备。第二设备可以显示钱包APP主界面的投屏界面。进而,响应于用户的触发,第二窗口界面进入钱包APP的支付界面。此时,第二窗口界面包含支付密码输入控件,为有安全需求的界面。第一设备在检测到安全标志位之后,向第二设备发送第二窗口界面(钱包APP的界面)任务号及安全保护指令,以使第二设备将第二窗口界面的投屏界面显示为安全界面。
进一步的,上述图4A或图4B示意的实施例中,若第二窗口界面进一步响应用户的操作指令更新了所显示的内容,且相应的内容无安全需求,相应Window state的flag置0。那么,第一设备在周期性遍历Window state的过程中,能够基于该Window state确定第二窗口界面无安全标识位,进而,第一设备可以将更新后的第二窗口界面投屏到第二设备。相对应的,第二设备隐藏安全界面,以及显示第二窗口界面更新后的投屏界面。
根据前述对投屏的描述可知,第一设备向第二设备投屏的内容是第一设备display内包含的窗口界面,即,第一窗口界面和第二窗口界面是第一设备display内包含的窗口桌面。应理解,若第一设备display内还包含第三窗口界面和第四窗口界面等,第一设备还应当检测第三窗口界面和第四窗口界面是否包含安全标志位,之后,第一设备按照检测结果向第二设备发送第三窗口界面和第四窗口界面的投屏信息。此处不赘述。此外,本申请实施例中,第一设备的display每更新一次,第一设备执行一次投屏。其中,display内的窗口界面增加、减少、以及任意窗口界面的更改,均认为是display更新。
需要说明的是,第一设备向第二设备投屏,可以实现为第一设备与第二设备建立网络连接后,第一设备将待显示的界面以视频流的方式发送到第二设备。之后,第二设备可以基于第一设备发送的参数信息(例如窗口界面的大小、窗口界面的位置、窗口界面间的相对位置)对视频流进行切割,进而,以窗口的形式分别显示第一设备投屏的各个界面。基于此,在投屏的实施场景中,WMS配置用于平铺显示待投屏窗口界面的display,以及AMS为每个待投屏窗口界面添加taskID,以便于第一设备对应各个待投屏窗口界面生成视频 流,并标识各个待投屏窗口界面。
需要说明的是,display中包含第一设备正在运行的全部APP的窗口界面,而其中的待投屏窗口界面可以是display中的全部窗口界面,也可以是display中的部分窗口界面。
在一些实施方式中,第一设备在投屏之前确定各个窗口界面是否具备安全需求,进而,第一设备根据检测结果,将每个窗口界面的taskID以及该窗口界面的投屏信息发送到第二设备。第二设备基于taskID显示安全界面和包含窗口界面内容的投屏界面,其中,安全界面是有安全需求的窗口界面的投屏界面。这样,第二设备既能够安全显示有安全要求的界面,也能够确保用户对无安全要求的界面正常操作。
为了便于理解,本申请以下实施例将以具有图2A和图2B所示结构的手机为例,以具有图2C所示结构的笔记本电脑为例,结合附图对本申请实施例提供的投屏场景下的显示方法进行具体阐述。
本申请实施例可以将实际实施过程划分为以下三个阶段:启动投屏功能的阶段、安全需求场景中的显示阶段、以及对安全界面操作之后的显示阶段,以下结合该三个阶段对显示方法的实施例进行介绍。
启动投屏功能的阶段:
本申请实施例中,手机与笔记本电脑可以通过各自的无线通信模块建立通信连接。在接收到用户输入的开启投屏功能的指令之后,手机例如可以基于无线直连(WiFi Direct)技术,向笔记本电脑发送需要投屏的视频流,以实现投屏功能。一些实施例中,手机与笔记本电脑例如可以通过各自的NFC模块或者蓝牙模块建立通信连接。在接收到用户点击开启“多设备协同”的指令之后,手机的投屏功能开启。在手机与笔记本电脑的距离小于或者等于通信传输距离的场景下,手机向笔记本电脑投屏第一组窗口界面。满足前述投屏的场景需求,则认为手机接收到投屏指令。此处不详述。手机向笔记本电脑投屏第一组窗口界面相关的显示界面如图5A至5C-2所示。
可以理解的是,前述手机与笔记本电脑建立通信连接的模块,以及开启手机投屏功能的接口,均是示意性描述,不构成对本申请实施例的限制。在另一些实施例中,手机与笔记本电脑还可以基于其他通信模块建立连接。另外,开启手机投屏功能的接口,可以根据手机的型号以及手机操作系统版本的不同而不同,此处不限制。
如图5A所示,图5A示意的GUI51是手机投屏到笔记本电脑之后,笔记本电脑的第一种示例性显示界面。其中,GUI51包括投屏界面510,投屏界面510是手机桌面的投屏界面,包括手机桌面中各个界面元素的图像,例如,图库、邮箱、钱包等。
图5A对应的实施例中,在接收到投屏指令期间,无论手机的显示屏正在显示的是什么界面,以及无论手机前台运行什么APP,手机调用无线通信模块,将手机桌面的视频流发送到笔记本电脑。进而,笔记本电脑解码相应视频流,以及显示该视频流对应的投屏界面510。此时,手机运行的APP可选地均以自由悬浮窗的形式运行。
一些实施例中,投屏界面的宽高比可以与窗口界面的宽高比相同。投屏界面的尺寸取决于第二设备屏幕的尺寸。例如,第二设备屏幕的尺寸是宽285.7毫米(mm)*高214.3mm,投屏界面的尺寸可以是宽110mm*高210mm。第二设备屏幕的尺寸是宽1456.4mm*高850.9mm,投屏界面的尺寸可以是宽450mm*高800mm。
如图5B所示,图5B示意的GUI52是手机执行投屏过程中,手机的一种示例性显示界 面,图5B示意的GUI53是手机投屏到笔记本电脑之后,笔记本电脑的第二种示例性显示界面。其中,GUI52例如是手机正在运行的图库APP的显示界面,GUI52中包括图像521和图像522。GUI53包括投屏界面530,投屏界面530是GUI52的投屏界面,投屏界面530包括图像521的投屏图像531,和图像532的投屏图像532。
图5B对应的实施例中,在接收到投屏指令期间,手机正在显示窗口界面。进而,WMS遍历该窗口界面对应的Activity是否包含flag。若该窗口界面对应的Activity不包含flag,手机的GPU可以渲染手机当前正在显示的界面视频流。之后,手机调用无线通信模块,将手机正在显示的界面的视频流发送到笔记本电脑。进而,笔记本电脑解码相应视频流,以及显示该视频流对应的投屏界面530。
另一些实施例中,若该窗口界面对应的Activity包含flag,手机可以向笔记本电脑投屏手机的桌面。相应的,笔记本电脑的GUI可以如GUI51所示。在手机接收到用户的操作,且手机更新窗口界面之后,手机可以将更新后窗口界面投屏到笔记本电脑。详见下述相关实施例的描述,此处不详述。
另一些实施例中,若手机未显示任何APP的界面,手机向笔记本电脑投屏手机的桌面。相应的,笔记本电脑的GUI可以如GUI51所示。
如图5C所示,图5C示意的GUI54是手机执行投屏过程中,手机的另一种示例性显示界面,图5C示意的GUI55是手机投屏到笔记本电脑之后,笔记本电脑的第三种示例性显示界面。其中,GUI54例如是手机正在运行且有安全需求的窗口界面的显示界面。GUI54的一种示例性显示界面详见图5C-2所示,此处不详述。GUI55包括投屏界面551和投屏界面552。其中,投屏界面551是手机正在运行且无安全需求的窗口界面的投屏界面,投屏界面552是手机桌面的投屏界面。
图5C对应的实施例中,在接收到投屏指令期间,手机例如正在运行若干个APP。本实施例中,手机可以分别检测该若干个APP正在运行的窗口界面是否包含安全标志位,之后,手机可以将其中不包含安全标志位的窗口界面以及手机的桌面投屏到笔记本电脑,且在手机的显示屏堆叠显示其中包含安全标志位的窗口界面(如图5C中的GUI54所示),以便于用户执行下一步操作。而笔记本电脑显示无安全需求的窗口界面的投屏界面(如图5C中的GUI55所示)。
示例性的,在接收到投屏指令期间,手机例如正在运行邮箱、钱包和图库三个APP,其中,邮箱当前的窗口界面例如是登陆界面,钱包当前的窗口界面例如是管理银行卡的界面。进而,WMS遍历该三个窗口界面对应的Activity,以确定每个Activity中是否包含flag。例如,WMS确定邮箱当前窗口界面对应的Activity中包含第一flag,钱包当前窗口界面对应的Activity中包含第二flag,图库当前窗口界面对应的Activity中不包含flag。之后,WMS可以将遍历的结果上报DMS。DMS基于遍历结果配置手机的display以及各个窗口界面的显示策略。所述display的显示界面如图5C-1所示。
如图5C-1所示,图5C-1示意的display50包括display501和display502。其中,display501部署在手机的显示屏,是用户可见的display。display502是display501的扩展display,是用户不可见的虚拟display。本实施例中,手机的桌面和图库的窗口界面无安全需求,所以,手机可以将桌面和图库的窗口界面投屏到笔记本电脑。基于此,AMS可以为手机的桌面和图库的窗口界面分别配置taskID。例如,AMS为手机的桌面配置task 0,AMS为图库的窗口界面配置task 1。且,DMS可以配置手机的桌面在display501呈现,以及配置图库的窗口界面在display502呈现。进而,手机的GPU可以渲染手机的桌面和图库的窗口界面的视频流。之后,手机调用无线通信模块,将task 0和手机桌面的视频流,以及task 1和图库的窗口界面的视频流发送到笔记本电脑。进而,笔记本电脑解码相应视频流,以及分割解码得到的图像,然后显示图5C中的GUI55。GUI55中投屏界面551例如是手机桌面的投屏界面,投屏界面551对应task 0,投屏界面552例如是图库的窗口界面的投屏界面,投屏界面552对应task 1。
进一步的,邮箱的窗口界面和钱包的窗口界面是具备安全需求的界面,即使投屏到笔记本电脑,笔记本电脑也不被允许显示该两窗口界面的内容。基于此,手机可以不将该两个窗口界面投屏到笔记本电脑,而是在手机的显示屏显示该两个窗口界面。其中,DMS可以基于WMS的遍历结果,配置该两窗口界面在手机显示屏的显示策略,之后,DMS可以通过显示驱动和表面管理器该两个窗口界面在手机的显示屏显示。该两个窗口界面的显示界面如图5C-2所示。
图5C-2示意的GUI56是GUI54的一种示例性显示界面。GUI56是窗口界面561的图像和窗口界面562的图像的显示界面,窗口界面561的图像和窗口界面562的图像堆叠显示,且,GUI56的底端还包括删除图标563等。窗口界面561例如是邮箱的登录界面,窗口界面561例如是钱包的管理银行卡界面。在接收到用户点击删除图标563的指令后,AMS结束邮箱的进程和钱包的进程。在接收到用户点击窗口界面561的图像的指令后,DMS控制邮箱的登录界面在手机显示屏的最前端显示,以便于用户基于输入邮箱的账号和密码。同理,在接收到用户点击窗口界面562的图像的指令后,DMS控制钱包的管理银行卡界面在手机显示屏的最前端显示,以便于用户执行下一步操作,例如支付操作等。此处不再详述。
一些实施例中,手机可以在将图5C-1示意的display50投屏到笔记本电脑之后,显示GUI56。
进一步的,手机将display50投屏到笔记本电脑之后,手机显示GUI56以及其他后续显示,均已经触发窗口界面的更新,相应的,触发display50更新为其他display。之后,WMS遍历更新后的display中的窗口界面是否包含安全标志位,进而,手机可以根据检测结果,对更新后的display进行投屏。
采用本实现方式,手机在接收到投屏指令之后,无论当前运行APP的窗口界面是否有安全需求,手机均选择一组无安全需求的界面,作为第一组窗口界面投屏到笔记本电脑。这样,既能向笔记本电脑投屏至少一个可操作界面,使得用户能够继续操作,又能够确保有安全需求的窗口界面的安全性,并且能够节省传输资源。
需要说明的是,在一些可能的实施方案中,手机可以在本阶段将安全界面发送到笔记本电脑。相应的,笔记本电脑可以将安全界面存储在本地,以及在接收到来自于手机的安全保护指令之后,将安全保护指令指示投屏界面显示为该安全界面。
图6示意了一种安全界面60。安全界面60包含图标61和图标62。图标61例如显示以下信息:“需要在手机端操作,以保护您的隐私”。图标62例如显示以下信息:“在手机上显示该应用”,图标62可选的接收用户在电脑上的点击,通过例如Miracst UIBC(user input back control,用户输入反向控制)协议发送至手机侧。安全界面60的背景颜色可以纯色,例如黑色。另一些实施例中,为了优化用户的观感,安全界面60的背景可以是高斯模糊 化的手机壁纸。
在一些实施方案中,安全界面的背景可选地由电脑侧产生。在一些实施方案中,为了更好地给用户在手机和电脑上的体验一致性,安全界面可选地由手机侧产生,例如手机对其壁纸进行高斯模糊处理后发送至电脑,电脑存储该处理后的壁纸。电脑在接收到手机发送的显示安全界面的时候从本地读取该壁纸并显示。可以理解的是,当手机侧检测到本机壁纸更换,手机会执行上面的操作以使得电脑侧和安全界面的背景能够和手机侧的壁纸保持一致。
可以理解的是,图6仅是示意性描述,对本申请实施例不构成限制。在另一些实施例中,安全界面还可以包含其他信息。另外,安全界面包含的信息可以灵活设置。此处不再详述。
出现安全需求界面的显示阶段:
在手机向笔记本电脑投屏第一组窗口界面之后,用户在手机端继续操作或者在笔记本电脑端继续操作,均可能触发显示具备安全需求的界面。以下从用户触发手机和用户触发笔记本电脑两种的场景的角度,对显示安全界面的实施例进行描述。
场景一:用户在笔记本电脑端操作
本申请实施例中,笔记本电脑接收到用户点击投屏界面的指令后,该笔记本电脑可以生成第一操作指令,该第一操作指令与第一APP关联。第一APP是用户所点击图像指示的APP。之后,笔记本电脑基于WiFi Direct技术将该第一操作指令发送到手机。手机响应该第一操作指令,对第一APP执行操作,从而触发第一APP所显示窗口界面更改,进而,使得手机的display更新。进而,手机对应更新后的display执行安全标志位检测及再次投屏的操作,从而使得笔记本电脑显示用户触发的APP的投屏界面,实现用户基于投屏界面对手机的APP进行操作的功能。图7中的(a)至(b)示意了场景一中的一种示例性显示方法。图8中的(a)至(b)示意了随图7示意的实施过程,手机端display的示意性变化过程。
如图7中的(a)所示,GUI70是手机将图8中的(a)示意的display80投屏到笔记本电脑之后,笔记本电脑的显示界面。GUI70包括投屏界面701和投屏界面702,投屏界面701例如是手机桌面的投屏界面,包括邮箱和备忘录等APP的图像。投屏界面702例如是备忘录的窗口界面的投屏界面。其中,投屏界面701对应标识task 0,投屏界面702对应标识task 1。在接收到用户点击邮箱的指令后,笔记本电脑生成第一操作指令,该第一操作指令用于触发手机运行邮箱APP(前述第一APP的实例)。之后,笔记本电脑将第一操作指令发送到手机。手机响应第一操作指令运行邮箱APP,从而启动邮箱的登录界面。邮箱的登录界面如图12所示,此处不详述。进而,手机端的display80更新为图8中的(b)示意的display81。之后,手机将display81投屏到笔记本电脑,使得笔记本电脑的GUI70更新为图7中的(b)示意的GUI71。
其中,笔记本电脑接收用户的点击操作之后,可以识别用户点击的图像对应的第一APP标识,第一APP标识用于指示第一APP。之后,笔记本电脑生成第一操作指令,该第一操作指令中包含第一APP标识。进而,手机可以根据第一APP标识确定第一APP。第一APP标识例如可以是第一APP的名称。
图7中的(b)示意的GUI71是手机将图8中的(b)示意的display81投屏到笔记本 电脑之后,笔记本电脑的显示界面。GUI71包括投屏界面711、投屏界面712和投屏界面713。投屏界面711对应标识task 0,投屏界面712对应标识task 1,投屏界面713对应标识task 2。其中,投屏界面711例如是手机桌面的投屏界面,投屏界面711与GUI70中的投屏界面701相同。投屏界面712例如是备忘录的窗口界面的投屏界面,投屏界面712与GUI70中的投屏界面702相同。投屏界面713例如是邮箱的窗口界面的投屏界面,投屏界面713是如图6所示的安全界面。此处不详述。
如图8中的(a)所示,display80中包括窗口界面71和窗口界面72。窗口界面71是手机桌面,投屏得到GUI70中的投屏界面701。窗口界面72是备忘录的窗口界面,投屏得到GUI70中的投屏界面702。由于显示窗口界面71和窗口界面72,WMS以手机显示屏的宽度为单位扩展出一个虚拟display,使得display80包括display801和display802,display801是手机的显示屏对应的显示区域,display802是虚拟display,display802的宽度可以与display801的宽度相同。进而,WMS将窗口界面71部署在display801内显示,将窗口界面72部署在display802内显示。另外,为了便于识别窗口界面71和窗口界面72,AMS为窗口界面71设置标识task 0,以及为窗口界面72设置标识task 1。进而,本实施例中,手机在确定窗口界面71和窗口界面72均无安全需求之后,将task 0、task 1以及窗口界面71和窗口界面72的视频流发送到笔记本电脑,使得笔记本电脑呈现GUI70。
进一步的,手机响应第一操作指令打开显示邮箱的登录界面之后,手机的display在display80的基础上增加了一个窗口界面,进而,display80更新为display81。
如图8中的(b)所示,display81是投屏得到GUI71的示意性显示界面。display81中包括窗口界面71、窗口界面72和窗口界面73。窗口界面71投屏得到GUI71中的投屏界面711。窗口界面72投屏得到GUI71中的投屏界面712。窗口界面73投屏得到GUI71中的投屏界面713。本实施例中,为了容纳窗口界面71、窗口界面72和窗口界面73,DMS基于手机的显示屏扩展出虚拟display,以得到display81。display81包括display811和display812。display811是手机的显示屏,display812是虚拟display,display812的宽度可以是display811宽度的两倍。进而,WMS将窗口界面71部署在display811内显示,并为窗口界面71设置标识task 0,以及将窗口界面72和窗口界面73部署在display812内平铺显示,并为窗口界面72设置标识task 1,为窗口界面73设置标识task 2。
一些实施例中,display81可以是手机对display80继续操作得到的。
进而,手机的WMS遍历窗口界面71的Activity,窗口界面72的Activity,以及窗口界面73的Activity,以确定每个Activity中是否包含flag(可以理解为判断flag是否置位)。示例性的,WMS确定窗口界面71的Activity和窗口界面72的Activity均不包含flag,而窗口界面73的Activity中包含第一flag。之后,手机向笔记本电脑发送task 0、task 1、task 2、窗口界面71和窗口界面72的视频流、以及安全保护指令。其中,窗口界面71的视频流与task 0对应,窗口界面72的视频流与task 1对应,安全保护指令与task 2对应。进而,笔记本电脑分割窗口界面71和窗口界面72的视频流,以及显示投屏界面711、投屏界面712。并且,笔记本电脑响应安全保护指令将窗口界面73的投屏界面显示为安全界面,以得到投屏界面713。
一些实施例中,手机向笔记本电脑投屏第一组窗口界面之后,手机的显示屏可以始终 显示手机桌面。手机响应来自于笔记本电脑的操作指令显示的窗口界面,可以在虚拟display显示。
场景二:用户在手机端操作
本申请实施例中,手机接收用户输入的第二操作指令之后,通常在手机的桌面显示指令触发的第二APP界面。这样,手机的桌面更新,进而手机的display也随之更新。那么,手机可以基于更新后的display向笔记本电脑投屏,使得笔记本电脑的投屏界面随之更新。图9中的(a)至(c)示意了场景二中的一种示例性显示方法。图10中的(a)至(b)示意了随图9示意的实施过程,手机端display的示意性变化过程。
如图9中的(a)所示,GUI90是手机将图10中的(a)示意的display101投屏到笔记本电脑之后,笔记本电脑的显示界面。GUI90包括投屏界面901和投屏界面902,投屏界面901例如是手机桌面的投屏界面。投屏界面902例如是备忘录的窗口界面的投屏界面。其中,投屏界面701对应标识task 0,投屏界面701对应标识task 1。
如图9中的(b)所示,GUI91是手机的桌面,GUI91包含邮箱等界面元素。在将display101投屏到笔记本电脑之后,手机例如接收到用户点击输入的第二操作指令,该第二操作指令例如用于启动第二APP。第二APP例如是邮箱APP。进而,由于用户需要在手机端对邮箱进行操作,所以,本实施例中,手机在显示屏显示邮箱的登录界面。邮箱的登录界面如图12所示,此处不详述。相应的,手机桌面对应的窗口界面更新为邮箱的登录界面,display101更新为图10中的(a)示意的display102。之后,手机将display102投屏到笔记本电脑,使得笔记本电脑的GUI91更新为图9中的(c)示意的GUI92。
图9中的(c)示意的GUI92是手机将图10中的(b)示意的display102投屏到笔记本电脑之后,笔记本电脑的显示界面。GUI92包括投屏界面921和投屏界面922,投屏界面921是邮箱的窗口界面的投屏界面,例如是如图6所示的安全界面。投屏界面922例如是备忘录的窗口界面的投屏界面。其中,投屏界面921对应标识task 0,投屏界面922对应标识task 1。
如图10中的(a)所示,display101中包括窗口界面1011和窗口界面1012。DMS为窗口界面1011设置标识task 0,以及为窗口界面1012设置标识task 1。窗口界面1011投屏得到GUI90中的投屏界面901。窗口界面1012投屏得到GUI90中的投屏界面90。display101与图8中的(a)所示的display80类似,此处不详述。
如图10中的(b)所示,display102中包括窗口界面1021、窗口界面1022和窗口界面1023。其中,窗口界面1021与窗口桌面1011相同,是手机的桌面,窗口界面1022与窗口界面1012相同,是备忘录的界面,窗口界面1023是邮箱的登录界面,对应标识task 2。即,手机响应第二操作指令显示邮箱的登录界面之后,AMS启动邮箱APP,以及进入邮箱登录界面,并为邮箱APP配置标号task 2。DMS在display101基础上执行扩展,得到display102,以能够容纳窗口界面1023。进而,本实施例中,手机可以值将窗口界面1022和窗口界面1023投屏到笔记本电脑。具体实现时,手机通过WMS可以确定窗口界面1023是具备安全需求的界面,而窗口界面1022无安全需求。之后,手机将task 1、task 2、安全保护指令和窗口界面1012的视频流发送到笔记本电脑。其中,task2与安全保护指令对应,task 1与窗口界面1012的视频流对应。进而,笔记本电脑显示GUI92。
基于与图9和图10示意的实施例同样的原理,在图5C-2对应的实施例中,手机接收 到用户触发窗口界面561显示的指令,或者用户触发窗口界面561显示的指令,手机的桌面界面更新为具备安全需求的窗口界面。进而,手机基于更新后的窗口界面再次投屏,使得笔记本电脑端task 0对应的投屏界面是安全界面。
另一些实施例中,若手机响应第二操作指令显示的界面无安全需求,那么,手机的显示屏显示的是无安全要求的窗口界面,进而,手机可以将相应窗口界面的图像投屏到笔记本电脑。相应的,笔记本电脑可以显示相应窗口界面的投屏界面和备忘录窗口界面的投屏界面。
可见,采用本实现方式,手机将待投屏的窗口界面和task ID关联,在窗口界面更新之后,手机可以通过task ID指示笔记本电脑显示每个窗口界面的投屏界面,从而使得笔记本电脑能够以窗口界面为单位显示投屏界面,既能够安全显示有安全要求的界面,也能够确保用户对无安全要求的界面正常操作。
对安全界面操作之后的显示阶段:
对应上述场景一,当笔记本电脑将第一APP的投屏界面显示为安全界面之后,用户可以通过该笔记本电脑触发相应窗口界面在手机的显示屏显示,以在手机端对第一APP继续操作。其中,第一APP的窗口界面在手机的显示屏显示,以及用户继续操作,均会触发手机端display的更新,进而,触发笔记本电脑端所显示的投屏界面的变化。
以下结合图11和图12,对第一APP的窗口界面在手机的显示屏显示的场景中,笔记本电脑的显示方法以及手机端display的变化过程进行描述。
接前述场景一,图11中的(a)中笔记本电脑的GUI例如是GUI71,其中,投屏界面713包括图标1101,图标1101与图6中的图标62相同,此处不赘述。在接收到用户点击图标1101的操作后,笔记本电脑生成第三操作指令,该第三操作指令用于触发手机在显示屏显示图12示意的邮箱的登录界面,以便于用户在手机端对邮箱执行登录操作。进而,手机端的display81中的窗口界面73在手机的显示屏显示,使得手机呈现图12的界面。进而,手机可以基于display81,将窗口界面72和窗口界面73再次投屏到笔记本电脑,使得笔记本电脑的GUI71更新为图11中的(b)示意的GUI111。
其中,笔记本电脑接收用户的点击操作之后,可以获取投屏界面713对应的标识task 2。之后,笔记本电脑生成第三操作指令,该第三操作指令中包含标识task 2。进而,手机可以根据标识task 2确定邮箱的登录界面。
图11中的(b)示意的GUI111是手机将图8中的(b)示意的display81投屏到笔记本电脑之后,笔记本电脑的显示界面。GUI111包括投屏界面1111和投屏界面1112。投屏界面1111对应标识task 0,投屏界面1112对应标识task 1。其中,投屏界面1111是邮箱登录界面的投屏界面,投屏界面1111是如图6所示的安全界面。投屏界面1112是备忘录的窗口界面的投屏界面,投屏界面1112与GUI71中的投屏界面712相同,此处不详述。
结合图8中的(b)示意的display81,本实施例中,手机可以基于窗口界面72左上角的起始坐标获取窗口界面72的视频流并渲染,然后,将task 1、task 2、渲染得到的视频流以及安全保护指令发送到笔记本电脑,其中,task 1对应视频流,task 2对应安全保护指令。进而,笔记本电脑显示task1对应的投屏界面1112,以及task2对应的投屏界面1111。需要指出的是,本实施例中,手机发送的投屏信息中不包含display81内task0以及与task0对应的信息(即手机桌面的界面),所以,GUI111中不包含task 0对应的投 屏界面。从用户视觉效果上看,GUI71更新为GUI111过程中,笔记本电脑删除了投屏界面713,并将投屏界面711更新为安全界面。
图12示意的GUI120是手机端的邮箱登录界面。GUI120包括输入“邮箱帐号”的控件1201、输入“密码”的控件1202以及“登录”按钮1203等界面元素。其中,控件1202中包括提醒信息“输入密码”,提示信息“输入密码”的字体灰度值较低,以提醒用户在该控件中输入邮箱的登录密码。在接收到用户输入的密码之后,提示信息“输入密码”隐藏。一些实施例中,控件1201中包括提醒信息“输入邮箱帐号”,提示信息“输入邮箱帐号”的字体灰度值较低,以提醒用户在该控件中输入邮箱的登录帐号。在接收到用户输入的帐号之后,提示信息“输入邮箱帐号”隐藏。另一些实施例中,控件1201中包括邮箱的登录账号,控件1202中包括提醒信息“输入密码”。在手机通过显示屏显示GUI120的场景中,手机的display由display81更新为display142。
进一步的,以下结合图13至图14B,对手机接收用户对第一APP执行的操作之后,笔记本电脑的显示方法以及手机端display的变化过程进行描述。
需要指出的是,图11中的(b)对应的实施场景与图9中的(c)对应的实施场景相同。基于此,以下显示方法的实施例对于上述两种实施场景均适用,本申请实施例不再重复描述。
结合图12,手机可以接收用户点击按钮1203输入的登录指令,该登录指令中包含用户输入的邮箱帐号和密码。在确定相应邮箱帐号和密码正确无误之后,AMS调用邮箱主界面的Activity,相应的,手机显示邮箱的主界面。邮箱的主界面如图13中task 2标识的窗口界面所示。
图13示意的display142包括窗口界面1421、窗口界面1422和窗口界面1423,窗口界面1421对应标识task 0,是手机桌面。窗口界面1422对应task 1是备忘录的窗口界面。窗口界面1423对应task 2,是邮箱主界面的窗口界面。本实施例中,在确定邮箱帐号和密码均正确之后,DMS可以控制display81中task 0对应的登录界面关闭或隐藏,并通过新的窗口界面显示邮箱主界面。这样,使得task 0标识的窗口界面更新为手机桌面,且,增加了新的窗口界面。进一步的,AMS为新的窗口界面配置标识task 2,以得到图13示意的display142。
一些实施例中,手机可以将display142中窗口界面1422和窗口界面1423投屏到笔记本电脑端,得到图14A示意的GUI151。另一些实施例中,手机可以将display142中的所有窗口界面均投屏到笔记本电脑端,得到图14B示意的GUI152。
如图14A所示,GUI151包括投屏界面1511和投屏界面1512。其中,投屏界面1511对应task 1,是display142中窗口界面1422的投屏界面。投屏界面1512对应task 2,是display142中窗口界面1423的投屏界面。
如图14B所示,GUI152包括投屏界面1521、投屏界面1522和投屏界面1523。其中,投屏界面1521对应task 0,是display142中窗口界面1421的投屏界面。投屏界面1522对应task 1,是display142中窗口界面1422的投屏界面。投屏界面1523对应task 2,是display142中窗口界面1423的投屏界面。
需要指出的是,上述手机与笔记本电脑之间各项信息和指令的交互,均可以基于WiFi Direct技术。
可以理解的是,图5A至图14B仅是示意性描述,对本申请实施例不构成限制。在另一些实施例中,上述显示方法的实施例,同样适用于手机其他APP的显示,此处不再一一描述。另外,上述各场景下的GUI可以根据手机型号,所搭载的系统的版本等的不同而不同。此处不再详述。
另外,上述实施例仅是以手机和笔记本电脑为例进行的说明,对本申请实施例不构成限制。在另一些实施例中,本申请实施例涉及的第一设备还可以实现为折叠屏设备、平板电脑等,本申请实施例涉及的第二设备还可以实现智慧屏等。此处不限制。
以下以第一设备实现为手机,第二设备实现为PC为例,对本申请实施例涉及的显示方法的整体流程进行描述。
参见图15,图15示意了本申请的第三种示例性显示方法。在一些实施例中,手机侧进行多屏协同。手机侧首先判断是否当前位多屏协同,若不是则采用默认应用锁策略(即手机侧不会将视频流发送至PC侧),若是手机侧判断是否处于安全输入界面,不是则使用默认窗口显示,是则向PC发送处于安全输入界面的应用对应的task ID和遮盖画面(该遮盖画面也可选地预先存储在PC上)。手机待用户输入完密码后(window state对应的flag复位),通知PC。PC取消对安全输入界面对应的应用窗口的遮盖。
可以理解的是,相对于传统的解决方案在遇到安全标志位flag时不会将display上的内容投至对端设备。本申请实施例的方案不管有没有安全标志位flag时都会将display上的内容投至对端设备,与此同时传递安全标志位flag,告诉PC对存在安全标志位flag进行安全图层遮盖,实现多屏协同多窗口的安全保障。
综上,本申请实施例的显示方法,第一设备在投屏之前确定各个窗口界面是否具备安全需求,进而,第一设备根据检测结果,将每个窗口界面的taskID以及该窗口界面的投屏信息发送到第二设备。第二设备基于taskID显示安全界面和包含窗口界面内容的投屏界面,其中,安全界面是有安全需求的窗口界面的投屏界面。这样,第二设备既能够安全显示有安全要求的界面,也能够确保用户对无安全要求的界面正常操作。
尽管已描述了本申请的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本申请范围的所有变更和修改。
显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的精神和范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。
Claims (9)
- 一种显示方法,其特征在于,所述方法包括:第一设备接收用户输入的投屏指令;响应于所述投屏指令,所述第一设备将所述第一窗口界面投屏到第二设备;所述第一设备响应指令运行第二窗口界面;所述第一设备确定所述第二窗口界面包含安全标志位;所述第一设备向所述第二设备发送所述第二窗口界面对应的任务号以及安全保护指令,所述安全保护指令用于指示所述第二设备将所述第二窗口界面的投屏界面显示为安全界面。
- 如权利要求1所述的方法,其特征在于,所述第一设备响应指令运行第二窗口界面,包括:所述第一设备接收来自于所述第二设备的第一操作指令,所述第一操作指令关联第一应用程序APP,所述第二窗口界面是所述第一APP的一个窗口界面;所述第一设备运行所述第一APP,以启动所述第二窗口界面。
- 如权利要求1所述的方法,其特征在于,所述第一设备响应指令运行第二窗口界面,包括:所述第一设备接收用户输入的第二操作指令,所述第二操作指令对应第一应用程序APP,所述第二窗口界面是所述第一APP的一个窗口界面;所述第一设备运行所述第一APP,以及显示所述第二窗口界面。
- 如权利要求1或2所述的方法,其特征在于,所述第一设备向所述第二设备发送所述第二窗口界面对应的任务号以及安全保护指令之后,还包括:所述第一设备接收来自于所述第二设备的第三操作指令,所述第三操作指令包含所述第二窗口界面对应的任务号;响应于所述第三操作指令,所述第一设备显示所述第二窗口界面;所述第一设备接收用户基于所述第二窗口界面输入的操作信息;所述第一设备将所述第二窗口界面更新为第三窗口界面;所述第一设备将所述第三窗口界面投屏到所述第二设备。
- 如权利要求1-4中任一项所述的方法,其特征在于,所述第一设备确定所述第二窗口界面包含安全标志位,包括:所述第一设备调用所述第一设备的窗口管理服务遍历所述第二窗口界面的窗口状态;若所述第二窗口界面的窗口状态包含安全旗flag,所述第一设备确定所述第二窗口界面包含安全标志位。
- 如权利要求5所述的方法,其特征在于,所述安全旗包括第一旗flag、第二flag和第三flag,所述第一flag指示应用安全锁,第二flag指示应用主动设置、第三flag指示调用安全键盘。
- 一种电子设备,其特征在于,用作第一设备,所述电子设备包括存储器和一个或多个处理器;其中,所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令;当所述计算机指令被所述处理器执行时,使得所述电子设备执行如权 利要求1至6中任一项所述的显示方法。
- 一种计算机可读存储介质,其特征在于,包括计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行如权利要求1至6中任一项所述的显示方法。
- 一种计算机程序产品,其特征在于,包括指令,当所述指令在计算机上运行时,使得所述计算机执行如权利要求1至6中任一项所述的显示方法。
Priority Applications (3)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| US18/044,919 US12050838B2 (en) | 2020-09-10 | 2021-08-02 | Display method and electronic device |
| EP21865718.7A EP4207726A4 (en) | 2020-09-10 | 2021-08-02 | Display method and electronic device |
| US18/743,969 US20240411505A1 (en) | 2020-09-10 | 2024-06-14 | Display Method and Electronic Device |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010949251.XA CN114253491B (zh) | 2020-09-10 | 2020-09-10 | 显示方法及电子设备 |
| CN202010949251.X | 2020-09-10 |
Related Child Applications (2)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| US18/044,919 A-371-Of-International US12050838B2 (en) | 2020-09-10 | 2021-08-02 | Display method and electronic device |
| US18/743,969 Continuation US20240411505A1 (en) | 2020-09-10 | 2024-06-14 | Display Method and Electronic Device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2022052662A1 true WO2022052662A1 (zh) | 2022-03-17 |
Family
ID=80630273
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2021/109989 Ceased WO2022052662A1 (zh) | 2020-09-10 | 2021-08-02 | 显示方法及电子设备 |
Country Status (4)
| Country | Link |
|---|---|
| US (2) | US12050838B2 (zh) |
| EP (1) | EP4207726A4 (zh) |
| CN (4) | CN120669941A (zh) |
| WO (1) | WO2022052662A1 (zh) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN117714759A (zh) * | 2022-09-06 | 2024-03-15 | 华为技术有限公司 | 一种投屏显示的方法、系统以及电子设备 |
Families Citing this family (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112307483B (zh) * | 2019-07-30 | 2025-02-21 | 华为技术有限公司 | 可信用户界面的显示方法及电子设备 |
| CN118312035A (zh) * | 2022-05-20 | 2024-07-09 | 荣耀终端有限公司 | 一种显示方法和电子设备 |
| CN114895813A (zh) * | 2022-05-24 | 2022-08-12 | 维沃移动通信有限公司 | 信息显示方法、装置、电子设备及可读存储介质 |
| CN117348778A (zh) * | 2022-06-29 | 2024-01-05 | 华为技术有限公司 | 屏幕录制和共享的方法及电子设备 |
| CN117724784B (zh) * | 2023-07-24 | 2025-01-17 | 荣耀终端有限公司 | 一种设置壁纸的方法及电子设备 |
| CN119169795B (zh) * | 2024-11-21 | 2025-02-07 | 北京理工大学 | 一种基于冰内受陷气泡编码的信息传递系统 |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107277243A (zh) * | 2017-06-14 | 2017-10-20 | 黄之 | 多显示屏显示信息的处理方法、显示方法和显示系统 |
| CN108702414A (zh) * | 2017-06-16 | 2018-10-23 | 华为技术有限公司 | 一种屏幕锁定方法及装置 |
| WO2019134289A1 (zh) * | 2018-01-02 | 2019-07-11 | 武汉斗鱼网络科技有限公司 | 投屏控制方法、装置、电子终端及可读存储介质 |
| CN110134356A (zh) * | 2019-04-29 | 2019-08-16 | 维沃移动通信有限公司 | 一种投屏方法及终端 |
| CN111240547A (zh) * | 2020-01-08 | 2020-06-05 | 华为技术有限公司 | 跨设备任务处理的交互方法、电子设备及存储介质 |
Family Cites Families (36)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5107443A (en) * | 1988-09-07 | 1992-04-21 | Xerox Corporation | Private regions within a shared workspace |
| US7849311B2 (en) * | 2005-03-15 | 2010-12-07 | Silicon Graphics International | Computer system with dual operating modes |
| US7673347B2 (en) * | 2005-08-30 | 2010-03-02 | Sap Ag | Information control in federated interaction |
| US9141332B2 (en) * | 2010-08-09 | 2015-09-22 | Oracle Otc Subsidiary Llc | Masking sensitive information in a screen sharing session |
| KR20130040542A (ko) * | 2011-10-14 | 2013-04-24 | 삼성전자주식회사 | 개인정보 보호 장치 및 방법 |
| KR101943987B1 (ko) * | 2011-12-06 | 2019-04-17 | 삼성전자주식회사 | 디바이스 간의 페이지 공유 시스템 및 방법 |
| US9008177B2 (en) * | 2011-12-12 | 2015-04-14 | Qualcomm Incorporated | Selective mirroring of media output |
| US9069973B2 (en) * | 2012-03-30 | 2015-06-30 | Aetherpal Inc. | Password protect feature for application in mobile device during a remote session |
| US9342678B2 (en) * | 2012-09-07 | 2016-05-17 | Lg Electronics Inc. | Method for controlling content and digital device using the same |
| CN107659703A (zh) * | 2013-06-19 | 2018-02-02 | 华为终端(东莞)有限公司 | 一种数据和消息处理的方法及装置 |
| KR102107404B1 (ko) * | 2013-10-30 | 2020-05-07 | 삼성전자주식회사 | 어플리케이션을 공유하는 전자 장치 및 그 제어 방법 |
| US9361469B2 (en) * | 2014-03-26 | 2016-06-07 | Amazon Technologies, Inc. | Electronic communication with secure screen sharing of sensitive information |
| US9406157B2 (en) * | 2014-04-21 | 2016-08-02 | Airwatch Llc | Concealing sensitive information on a display |
| KR102223609B1 (ko) * | 2014-05-09 | 2021-03-05 | 삼성전자주식회사 | 전자 기기간 콘텐트 공유 방법 및 장치 |
| US9679538B2 (en) * | 2014-06-26 | 2017-06-13 | Intel IP Corporation | Eye display interface for a touch display device |
| WO2016018028A1 (en) * | 2014-07-31 | 2016-02-04 | Samsung Electronics Co., Ltd. | Device and method of setting or removing security on content |
| US20160057090A1 (en) * | 2014-08-20 | 2016-02-25 | Google Inc. | Displaying private information on personal devices |
| JP6378606B2 (ja) * | 2014-10-20 | 2018-08-22 | キヤノン株式会社 | 通信装置、その制御方法、およびプログラム |
| US9514333B1 (en) * | 2014-12-16 | 2016-12-06 | Amazon Technologies, Inc. | Secure remote application shares |
| US11295285B1 (en) * | 2016-04-07 | 2022-04-05 | Jpmorgan Chase Bank, N.A. | System and method for financial services kiosk features |
| CN107368748B (zh) * | 2016-05-12 | 2022-10-28 | 中兴通讯股份有限公司 | 一种视图生成方法、装置和终端 |
| CN106203160A (zh) * | 2016-06-30 | 2016-12-07 | 联想(北京)有限公司 | 一种控制方法及电子设备 |
| US20180053003A1 (en) * | 2016-08-18 | 2018-02-22 | Qualcomm Incorporated | Selectively obfuscating a portion of a stream of visual media that is streamed to at least one sink during a screen-sharing session |
| CN107885558A (zh) * | 2016-09-29 | 2018-04-06 | 努比亚技术有限公司 | 一种投影数据处理装置、方法及投影数据分享设备 |
| WO2018179223A1 (ja) * | 2017-03-30 | 2018-10-04 | 株式会社オプティム | 遠隔作業支援システム、遠隔作業支援方法およびプログラム |
| CN107682538A (zh) * | 2017-09-27 | 2018-02-09 | 北京小米移动软件有限公司 | 应用界面的显示方法及装置 |
| US10853019B1 (en) * | 2018-10-29 | 2020-12-01 | BlueOwl, LLC | Systems and methods for the secure synchronization of user interface state amongst computing devices |
| KR102697908B1 (ko) * | 2019-01-24 | 2024-08-23 | 삼성전자주식회사 | 전자 장치 및 그 동작방법 |
| KR102740557B1 (ko) * | 2019-05-10 | 2024-12-09 | 삼성전자주식회사 | 재전송 공격에 대한 방어책을 포함하는 메모리 시스템의 구동 방법 및 이를 수행하는 메모리 시스템 |
| CN110221798A (zh) * | 2019-05-29 | 2019-09-10 | 华为技术有限公司 | 一种投屏方法、系统及相关装置 |
| CN110312160A (zh) * | 2019-06-17 | 2019-10-08 | 广州视源电子科技股份有限公司 | 无线投屏方法、装置、智能平板、终端及系统 |
| CN110471639B (zh) * | 2019-07-23 | 2022-10-18 | 华为技术有限公司 | 显示方法及相关装置 |
| CN110708086B (zh) * | 2019-08-26 | 2021-09-14 | 华为技术有限公司 | 一种分屏显示方法与电子设备 |
| CN111078168B (zh) * | 2019-11-13 | 2021-10-22 | 联想(北京)有限公司 | 一种信息处理方法、第一电子设备和存储介质 |
| CN111107222B (zh) * | 2019-12-18 | 2021-08-24 | 维沃移动通信有限公司 | 一种界面共享方法及电子设备 |
| CN111310248B (zh) * | 2020-01-22 | 2022-07-01 | 维沃移动通信有限公司 | 隐私保护方法及电子设备 |
-
2020
- 2020-09-10 CN CN202510651587.0A patent/CN120669941A/zh active Pending
- 2020-09-10 CN CN202510656325.3A patent/CN120669942A/zh active Pending
- 2020-09-10 CN CN202010949251.XA patent/CN114253491B/zh active Active
- 2020-09-10 CN CN202211512504.2A patent/CN115981582B/zh active Active
-
2021
- 2021-08-02 EP EP21865718.7A patent/EP4207726A4/en active Pending
- 2021-08-02 US US18/044,919 patent/US12050838B2/en active Active
- 2021-08-02 WO PCT/CN2021/109989 patent/WO2022052662A1/zh not_active Ceased
-
2024
- 2024-06-14 US US18/743,969 patent/US20240411505A1/en active Pending
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107277243A (zh) * | 2017-06-14 | 2017-10-20 | 黄之 | 多显示屏显示信息的处理方法、显示方法和显示系统 |
| CN108702414A (zh) * | 2017-06-16 | 2018-10-23 | 华为技术有限公司 | 一种屏幕锁定方法及装置 |
| WO2019134289A1 (zh) * | 2018-01-02 | 2019-07-11 | 武汉斗鱼网络科技有限公司 | 投屏控制方法、装置、电子终端及可读存储介质 |
| CN110134356A (zh) * | 2019-04-29 | 2019-08-16 | 维沃移动通信有限公司 | 一种投屏方法及终端 |
| CN111240547A (zh) * | 2020-01-08 | 2020-06-05 | 华为技术有限公司 | 跨设备任务处理的交互方法、电子设备及存储介质 |
Non-Patent Citations (1)
| Title |
|---|
| See also references of EP4207726A4 |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN117714759A (zh) * | 2022-09-06 | 2024-03-15 | 华为技术有限公司 | 一种投屏显示的方法、系统以及电子设备 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN120669941A (zh) | 2025-09-19 |
| US20240411505A1 (en) | 2024-12-12 |
| US12050838B2 (en) | 2024-07-30 |
| CN114253491A (zh) | 2022-03-29 |
| EP4207726A1 (en) | 2023-07-05 |
| US20230342105A1 (en) | 2023-10-26 |
| CN115981582A (zh) | 2023-04-18 |
| CN114253491B (zh) | 2025-05-27 |
| EP4207726A4 (en) | 2024-03-06 |
| CN115981582B (zh) | 2024-05-14 |
| CN120669942A (zh) | 2025-09-19 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN110471639B (zh) | 显示方法及相关装置 | |
| US11687235B2 (en) | Split-screen method and electronic device | |
| EP3958117B1 (en) | User interface layout method and electronic device | |
| WO2021103981A1 (zh) | 分屏显示的处理方法、装置及电子设备 | |
| US12050838B2 (en) | Display method and electronic device | |
| WO2021129326A1 (zh) | 一种屏幕显示方法及电子设备 | |
| WO2021027747A1 (zh) | 一种界面显示方法及设备 | |
| WO2020259452A1 (zh) | 一种移动终端的全屏显示方法及设备 | |
| WO2021036735A1 (zh) | 显示用户界面的方法及电子设备 | |
| WO2021036571A1 (zh) | 一种桌面的编辑方法及电子设备 | |
| WO2020062294A1 (zh) | 系统导航栏的显示控制方法、图形用户界面及电子设备 | |
| EP4163782A1 (en) | Cross-device desktop management method, first electronic device, and second electronic device | |
| US20220413695A1 (en) | Split-screen display method and electronic device | |
| EP4099669A1 (en) | Method for creating application shortcuts, electronic device, and system | |
| WO2021000804A1 (zh) | 锁定状态下的显示方法及装置 | |
| WO2022068483A1 (zh) | 应用启动方法、装置和电子设备 | |
| CN111669459A (zh) | 键盘显示方法、电子设备和计算机可读存储介质 | |
| WO2022213831A1 (zh) | 一种控件显示方法及相关设备 | |
| WO2020155875A1 (zh) | 电子设备的显示方法、图形用户界面及电子设备 | |
| WO2021036770A1 (zh) | 一种分屏处理方法及终端设备 | |
| WO2021190524A1 (zh) | 截屏处理的方法、图形用户接口及终端 | |
| WO2021078032A1 (zh) | 用户界面的显示方法及电子设备 | |
| WO2023160455A1 (zh) | 删除对象的方法及电子设备 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 21865718 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| ENP | Entry into the national phase |
Ref document number: 2021865718 Country of ref document: EP Effective date: 20230331 |