WO2024083031A1 - 一种显示方法、电子设备和*** - Google Patents
一种显示方法、电子设备和*** Download PDFInfo
- Publication number
- WO2024083031A1 WO2024083031A1 PCT/CN2023/124377 CN2023124377W WO2024083031A1 WO 2024083031 A1 WO2024083031 A1 WO 2024083031A1 CN 2023124377 W CN2023124377 W CN 2023124377W WO 2024083031 A1 WO2024083031 A1 WO 2024083031A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- electronic device
- screen
- input
- input device
- cursor
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 131
- 230000015654 memory Effects 0.000 claims description 35
- 238000004590 computer program Methods 0.000 claims description 17
- 230000002452 interceptive effect Effects 0.000 abstract description 11
- 238000007726 management method Methods 0.000 description 149
- 238000004891 communication Methods 0.000 description 35
- 230000006854 communication Effects 0.000 description 35
- 230000006870 function Effects 0.000 description 32
- 230000008569 process Effects 0.000 description 15
- 230000000694 effects Effects 0.000 description 14
- 230000005236 sound signal Effects 0.000 description 13
- 238000010295 mobile communication Methods 0.000 description 11
- 210000000988 bone and bone Anatomy 0.000 description 10
- 238000010586 diagram Methods 0.000 description 10
- 238000001514 detection method Methods 0.000 description 7
- 238000005516 engineering process Methods 0.000 description 6
- 230000003993 interaction Effects 0.000 description 5
- 101001121408 Homo sapiens L-amino-acid oxidase Proteins 0.000 description 4
- 102100026388 L-amino-acid oxidase Human genes 0.000 description 4
- 101100233916 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) KAR5 gene Proteins 0.000 description 4
- 229920001621 AMOLED Polymers 0.000 description 3
- 101100012902 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) FIG2 gene Proteins 0.000 description 3
- 230000001133 acceleration Effects 0.000 description 3
- 238000013528 artificial neural network Methods 0.000 description 3
- 230000008859 change Effects 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000013500 data storage Methods 0.000 description 3
- 239000010985 leather Substances 0.000 description 3
- 230000033001 locomotion Effects 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 230000002159 abnormal effect Effects 0.000 description 2
- 230000036772 blood pressure Effects 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000005855 radiation Effects 0.000 description 2
- 230000000007 visual effect Effects 0.000 description 2
- 230000001755 vocal effect Effects 0.000 description 2
- 230000003321 amplification Effects 0.000 description 1
- 230000003416 augmentation Effects 0.000 description 1
- 230000003190 augmentative effect Effects 0.000 description 1
- 230000007175 bidirectional communication Effects 0.000 description 1
- 230000002457 bidirectional effect Effects 0.000 description 1
- 238000013529 biological neural network Methods 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 210000004556 brain Anatomy 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 230000019771 cognition Effects 0.000 description 1
- 230000000295 complement effect Effects 0.000 description 1
- 239000004020 conductor Substances 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 230000004927 fusion Effects 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 230000003862 health status Effects 0.000 description 1
- 230000001939 inductive effect Effects 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 210000002569 neuron Anatomy 0.000 description 1
- 238000003199 nucleic acid amplification method Methods 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 239000002096 quantum dot Substances 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 230000002441 reversible effect Effects 0.000 description 1
- 238000005070 sampling Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000003238 somatosensory effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 230000026676 system process Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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/1423—Digital output to display device ; Cooperation and interconnection of the display device with other functional units controlling a plurality of local displays, e.g. CRT and flat panel display
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/016—Input arrangements with force or tactile feedback as computer generated output to the user
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/033—Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
- G06F3/0346—Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of the device orientation or free movement in a 3D space, e.g. 3D mice, 6-DOF [six degrees of freedom] pointers using gyroscopes, accelerometers or tilt-sensors
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/04812—Interaction techniques based on cursor appearance or behaviour, e.g. being affected by the presence of displayed objects
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/04817—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
- G06F3/04886—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or menus
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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
Definitions
- the present application relates to the field of terminals, and more specifically, to a display method, an electronic device and a system.
- the present application provides a display method, electronic device and system, which can associate an input device with a device or screen that it needs to control, thereby improving the efficiency of simultaneous use by multiple users.
- the present application provides a display method, which can be applied to a first electronic device, the method comprising: the first electronic device determines an association relationship between a first input device and a first screen, wherein the first screen is the screen of the first electronic device or an external screen of the first electronic device; the first electronic device detects a first input event, wherein the input device corresponding to the first input event is the first input device; the first electronic device determines, based on the association relationship, that the screen on which the first input event acts is the first screen; the first electronic device displays a first cursor on the first screen.
- the input device can be associated with the screen of the first electronic device or an external screen, so that multiple users can use multiple input devices to control multiple screens respectively at the same time without interfering with each other, thereby improving the efficiency of multi-user use.
- the method before the first electronic device determines the association relationship between the first input device and the first screen, the method also includes: the first electronic device obtains screen information and input device information, wherein the screen information includes information of the first screen, and the input device information includes information of the first input device.
- the method further includes: when the screen of the first electronic device or the external screen of the first electronic device is added, removed, or the configuration changes, the first electronic device updates the screen information; and/or when the input device of the first electronic device is added, removed, or the configuration changes, the first electronic device updates the input device information.
- the method also includes: the first electronic device determines an association relationship between a second input device and a second screen, wherein the second screen is the screen of the first electronic device or an external screen of the first electronic device; the first electronic device detects a second input event, wherein the input device corresponding to the second input event is the second input device; the first electronic device determines, based on the association relationship, that the screen on which the second input event acts is the second screen; and the first electronic device displays a second cursor on the second screen.
- the first cursor and the second cursor have different styles. In this way, users can distinguish different screens by different cursor styles, thereby improving the efficiency of multi-user use.
- a display method which can be applied to a first electronic device, and the method includes: the first electronic device determines an association relationship between a first input device and a second electronic device; the first electronic device detects a first input event, wherein the input device corresponding to the first input event is the first input device; the first electronic device determines, based on the association relationship, that the first input event acts on the second electronic device; the first electronic device sends the first input event to the second electronic device, so that the second electronic device displays a first cursor.
- the input device can be associated with the screen of the first electronic device or the second electronic device, so that multiple users can use multiple input devices at the same time to control the screens of multiple devices or external screens respectively without interfering with each other, thereby improving the efficiency of multi-user use.
- the method before the first electronic device determines the association relationship between the first input device and the second electronic device, the method further includes: the first electronic device obtains screen information and input device information, wherein the screen information includes information of the second electronic device. Information, the input device information includes information of the first input device.
- the method further includes: when the second electronic device is added, removed, or the configuration is changed, the first electronic device updates the screen information; and/or when the input device of the first electronic device is added, removed, or the configuration is changed, the first electronic device updates the input device information.
- the method also includes: the first electronic device determines an association relationship between a second input device and a first screen, wherein the first screen is a screen of the first electronic device or an external screen of the first electronic device; the first electronic device detects a second input event, wherein the input device corresponding to the second input event is the second input device; the first electronic device determines, based on the association relationship, that the screen on which the first input event acts is the first screen; and the first electronic device displays a second cursor on the first screen.
- the first cursor and the second cursor have different styles. In this way, users can distinguish different screens by different cursor styles, thereby improving the efficiency of multi-user use.
- a display system which includes a first electronic device and a second electronic device, wherein: the first electronic device determines an association relationship between a first input device and the second electronic device; the first electronic device detects a first input event, wherein the input device corresponding to the first input event is the first input device; the first electronic device determines, based on the association relationship, that the first input event acts on the second electronic device; the first electronic device sends the first input event to the second electronic device; and the second electronic device displays a first cursor.
- the first electronic device before the first electronic device determines the association relationship between the first input device and the second electronic device, it also includes: the first electronic device obtains screen information and input device information, wherein the screen information includes information of the second electronic device, and the input device information includes information of the first input device.
- the first electronic device when a second electronic device is added, removed, or the configuration is changed, the first electronic device updates screen information; and/or when an input device of the first electronic device is added, removed, or the configuration is changed, the first electronic device updates input device information.
- the system also includes: the first electronic device determines an association relationship between a second input device and a first screen, wherein the first screen is a screen of the first electronic device or an external screen of the first electronic device; the first electronic device detects a second input event, wherein the input device corresponding to the second input event is the second input device; the first electronic device determines, based on the association relationship, that the screen on which the first input event acts is the first screen; and the first electronic device displays a second cursor on the first screen.
- the first cursor and the second cursor have different styles.
- a display method which can be applied to a first electronic device, the method comprising: the first electronic device determines an association relationship between a first input device and a second screen, wherein the second screen is a screen of the second electronic device or an external screen of the second electronic device; the first electronic device detects a first input event, wherein the input device corresponding to the first input event is the first input device; the first electronic device determines, based on the association relationship, that the screen affected by the first input event is the second screen; the first electronic device sends the first input event to the second electronic device, so that the second electronic device determines, based on the association relationship, that the screen affected by the first input event is the second screen and displays a first cursor on the second screen.
- the input device can be associated with the screen of the first electronic device or the screen of the second electronic device, so that multiple users can use multiple input devices at the same time to control the screens of multiple devices or external screens respectively without interfering with each other, thereby improving the efficiency of multi-user use.
- the method before the first electronic device determines the association relationship between the first input device and the second electronic device, the method also includes: the first electronic device obtains screen information and input device information, wherein the screen information includes information of the second screen, and the input device information includes information of the first input device.
- the method further includes: when the second screen is added, removed, or the configuration changes, the first electronic device updates the screen information; and/or when the input device of the first electronic device and/or the input device of the second electronic device is added, removed, or the configuration changes, the first electronic device updates the input device information.
- the method also includes: the first electronic device determines an association relationship between a second input device and a first screen, wherein the first screen is a screen of the first electronic device or an external screen of the first electronic device; the first electronic device detects a second input event, wherein the input device corresponding to the second input event is the second input device; the first electronic device determines, based on the association relationship, that the screen on which the first input event acts is the first screen; and the first electronic device displays a second cursor on the first screen.
- the first cursor and the second cursor have different styles. In this way, users can distinguish different screens by different cursor styles, thereby improving the efficiency of multi-user use.
- a display system which includes a first electronic device and a second electronic device, wherein: the first electronic device determines an association relationship between a first input device and a second screen, wherein the second screen is a screen of the second electronic device or an external screen of the second electronic device; the first electronic device detects a first input event, wherein the input device corresponding to the first input event is the first input device; the first electronic device determines, based on the association relationship, that the screen on which the input event acts is the second screen; the first electronic device sends the first input event to the second electronic device; the second electronic device determines, based on the association relationship, that the screen on which the first input event acts is the second screen; and the second electronic device displays a first cursor on the second screen.
- the first electronic device before the first electronic device determines the association relationship between the first input device and the second electronic device, it also includes: the first electronic device obtains screen information and input device information, wherein the screen information includes information of the second screen, and the input device information includes information of the first input device.
- the first electronic device when the second screen is added, removed, or the configuration is changed, the first electronic device updates the screen information; and/or when the input device of the first electronic device and/or the input device of the second electronic device is added, removed, or the configuration is changed, the first electronic device updates the input device information.
- the system also includes: the first electronic device determines an association relationship between a second input device and a first screen, wherein the first screen is a screen of the first electronic device or an external screen of the first electronic device; the first electronic device detects a second input event, wherein the input device corresponding to the second input event is the second input device; the first electronic device determines, based on the association relationship, that the screen on which the first input event acts is the first screen; and the first electronic device displays a second cursor on the first screen.
- the first cursor and the second cursor have different styles.
- an electronic device comprising: one or more processors; a memory; and one or more computer programs.
- the one or more computer programs are stored in the memory, and the one or more computer programs include instructions.
- the electronic device executes the method in any possible implementation of the first aspect.
- an electronic device comprising: one or more processors; a memory; and one or more computer programs.
- the one or more computer programs are stored in the memory, and the one or more computer programs include instructions.
- the electronic device executes the method in any possible implementation of the second aspect.
- an electronic device comprising: one or more processors; a memory; and one or more computer programs.
- the one or more computer programs are stored in the memory, and the one or more computer programs include instructions.
- the electronic device executes the method in any possible implementation of the fourth aspect.
- a computer program product comprising instructions, which, when executed on a first electronic device, enables the electronic device to execute the method described in the first aspect; or, the electronic device to execute the method described in the second aspect; or, the electronic device to execute the method described in the fourth aspect.
- a computer-readable storage medium comprising instructions, which, when executed on a first electronic device, cause the electronic device to execute the method described in the first aspect; or, the electronic device to execute the method described in the second aspect; or, the electronic device to execute the method described in the fourth aspect.
- a chip for executing instructions.
- the chip executes the method described in the first aspect above; or, the chip executes the method described in the second aspect above; or, the chip executes the method described in the fourth aspect above.
- FIG1 is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application.
- FIG2 is a schematic diagram of a software structure of an electronic device provided in an embodiment of the present application.
- FIG3 is a set of graphical user interfaces provided in an embodiment of the present application.
- FIG4A is another set of graphical user interfaces provided by an embodiment of the present application.
- FIG4B is another set of graphical user interfaces provided by an embodiment of the present application.
- FIG5 is a schematic flow chart of a display method provided in an embodiment of the present application.
- FIG6 is another schematic flow chart of a display method provided in an embodiment of the present application.
- FIG. 7 is another schematic flow chart of a display method provided in an embodiment of the present application.
- FIG8 is another schematic flow chart of a display method provided in an embodiment of the present application.
- FIG9 is another schematic flow chart of a display method provided in an embodiment of the present application.
- FIG10 is another schematic flow chart of a display method provided in an embodiment of the present application.
- FIG. 11 is a schematic structural diagram of a device provided in an embodiment of the present application.
- FIG. 12 is another schematic structural diagram of the device provided in an embodiment of the present application.
- first and second are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features.
- a feature defined as “first” or “second” may explicitly or implicitly include one or more of the features.
- plural means two or more.
- the method provided in the embodiments of the present application can be applied to electronic devices such as mobile phones, tablet computers, wearable devices, vehicle-mounted devices, augmented reality (AR)/virtual reality (VR) devices, laptop computers, ultra-mobile personal computers (UMPC), netbooks, personal digital assistants (PDA), etc.
- electronic devices such as mobile phones, tablet computers, wearable devices, vehicle-mounted devices, augmented reality (AR)/virtual reality (VR) devices, laptop computers, ultra-mobile personal computers (UMPC), netbooks, personal digital assistants (PDA), etc.
- the embodiments of the present application do not impose any restrictions on the specific types of electronic devices.
- FIG1 shows a schematic diagram of the structure of an electronic device 100.
- the electronic 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, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.
- 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, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
- the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100.
- the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently.
- the components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
- the processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and/or a neural-network processing unit (NPU), etc.
- AP application processor
- GPU graphics processor
- ISP image signal processor
- controller a memory
- video codec a digital signal processor
- DSP digital signal processor
- NPU neural-network processing unit
- Different processing units may be independent devices or integrated in one or more processors.
- the controller may be the nerve center and command center of the electronic device 100.
- the controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
- the processor 110 may also be provided with a memory for storing instructions and data.
- the memory in the processor 110 is a cache memory.
- the memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
- the processor 110 may include one or more interfaces.
- the interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (SIM) interface, and/or a universal serial bus (USB) interface, etc.
- I2C inter-integrated circuit
- I2S inter-integrated circuit sound
- PCM pulse code modulation
- UART universal asynchronous receiver/transmitter
- MIPI mobile industry processor interface
- GPIO general-purpose input/output
- SIM subscriber identity module
- USB universal serial bus
- the I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL).
- the processor 110 may include multiple groups of I2C buses.
- the processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces.
- the processor 110 may be coupled to the touch sensor 180K through the I2C interface, so that the processor 110 communicates with the touch sensor 180K through the I2C bus interface, thereby realizing the touch function of the electronic device 100.
- the I2S interface can be used for audio communication.
- the processor 110 can include multiple I2S buses.
- the processor 110 can be coupled to the audio module 170 via the I2S bus to achieve communication between the processor 110 and the audio module 170.
- the audio module 170 can transmit an audio signal to the wireless communication module 160 via the I2S interface to achieve the function of answering a call through a Bluetooth headset.
- the PCM interface can also be used for audio communication, sampling, quantizing and encoding analog signals.
- the audio module 170 and the wireless communication module 160 can be coupled via a PCM bus interface.
- the audio module 170 can also transmit audio signals to the wireless communication module 160 via the PCM interface to realize the function of answering calls via a 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 for asynchronous communication.
- the bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication.
- the UART interface is generally used to connect the processor 110 and 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 an audio signal to the wireless communication module 160 through the UART interface to implement the function of playing music through a 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.
- the MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc.
- the processor 110 and the camera 193 communicate via the CSI interface to implement the shooting function of the electronic device 100.
- the processor 110 and the display screen 194 communicate via the DSI interface to implement the display function of the electronic 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 can be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, etc.
- the GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.
- the USB interface 130 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc.
- the USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transmit data between the electronic device 100 and a peripheral device. 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, etc.
- the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the electronic device 100.
- the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
- the charging management module 140 is used to receive charging input from a charger.
- the charger may be a wireless charger or a wired charger.
- the charging management module 140 may receive charging input from a wired charger through the USB interface 130.
- the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. While the charging management module 140 is charging the battery 142, it may also power the electronic device through the power management module 141.
- the power management module 141 is used to connect 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 number, battery health status (leakage, impedance), etc.
- the power management module 141 can also be set in the processor 110.
- the power management module 141 and the charging management module 140 can also be set in the same device.
- the wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
- Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals.
- Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas.
- antenna 1 can be reused as a diversity antenna for a wireless local area network.
- the antenna can be used in combination with a tuning switch.
- the mobile communication module 150 can provide solutions for wireless communications including 2G/3G/4G/5G, etc., applied to the electronic device 100.
- the mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc.
- the mobile communication module 150 may receive electromagnetic waves from the antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation.
- the mobile communication module 150 may also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1.
- at least some of the functional modules of the mobile communication module 150 may be arranged in the processor 110.
- at least some of the functional modules of the mobile communication module 150 may be arranged in the same device as at least some of the modules of the processor 110.
- the modem processor may include a modulator and a demodulator.
- the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-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 application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194.
- the modem processor may be an independent device.
- the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.
- the wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR) and the like applied to the electronic device 100.
- WLAN wireless local area networks
- BT wireless fidelity
- GNSS global navigation satellite system
- FM frequency modulation
- NFC near field communication
- IR infrared
- the wireless communication module 160 can be one or more devices integrating at least one communication processing module.
- the wireless communication module 160 receives electromagnetic waves via the antenna 2, 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, modulate the frequency, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
- the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic 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), wideband 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.
- the GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and/or a satellite based augmentation system (SBAS).
- GPS global positioning system
- GLONASS global navigation satellite system
- BDS Beidou navigation satellite system
- QZSS quasi-zenith satellite system
- SBAS satellite based augmentation system
- the electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor.
- the GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor.
- the GPU is used to perform mathematical and geometric calculations for graphics rendering.
- the processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
- the display screen 194 is used to display images, videos, etc.
- the 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 (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diodes (QLED), etc.
- the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
- the electronic device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.
- the ISP is used to process the data fed back by the camera 193. For example, when taking a photo, the shutter is opened, and 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.
- the ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. The ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP can be set in the camera 193.
- the camera 193 is used to capture still images or videos.
- the object is projected onto the photosensitive element through the lens to generate an optical image.
- the photosensitive element can 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, which is then transmitted to the
- the ISP converts the digital image signal into a digital image signal.
- the ISP outputs the digital image signal to the DSP for processing.
- the DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format.
- the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
- the digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the electronic device 100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
- Video codecs are used to compress or decompress digital videos.
- the electronic device 100 may support one or more video codecs. In this way, the electronic device 100 may play or record videos in a variety of coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
- MPEG Moving Picture Experts Group
- MPEG2 MPEG2, MPEG3, MPEG4, etc.
- NPU is a neural network (NN) computing processor.
- NN neural network
- applications such as intelligent cognition of electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, etc.
- the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100.
- the external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music and videos can be stored in the external memory card.
- the internal memory 121 can be used to store computer executable program codes, which include instructions.
- the processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121.
- the internal memory 121 may include a program storage area and a data storage area.
- the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.
- the data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc.
- the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.
- UFS universal flash storage
- the electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
- the audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals.
- the audio module 170 can also be used to encode and decode audio signals.
- the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110.
- the speaker 170A also called a "speaker" is used to convert an audio electrical signal into a sound signal.
- the electronic device 100 can listen to music or listen to a hands-free call through the speaker 170A.
- the receiver 170B also called a "earpiece" is used to convert audio electrical signals into sound signals.
- the voice can be received by placing the receiver 170B close to the human ear.
- Microphone 170C also called “microphone” or “microphone” is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to microphone 170C to input the sound signal into microphone 170C.
- the electronic device 100 can be provided with at least one microphone 170C. In other embodiments, the electronic device 100 can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify the sound source, realize directional recording function, etc.
- the earphone interface 170D is used to connect a wired earphone.
- the earphone interface 170D may be the USB interface 130, or may be a 3.5 mm open mobile terminal platform (OMTP) standard interface or 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 the pressure signal and can convert the pressure signal into an electrical signal.
- the pressure sensor 180A can be set on the display screen 194.
- the capacitive pressure sensor can be a parallel plate including at least two conductive materials.
- the electronic device 100 determines the intensity of the pressure according to the change in capacitance.
- the electronic device 100 detects the touch operation intensity according to the pressure sensor 180A.
- the electronic device 100 can also calculate the touch position according to the detection signal of the pressure sensor 180A.
- touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.
- the gyro sensor 180B can be used to determine the motion posture of the electronic device 100. In some embodiments, the gyro sensor 180B can be used to determine the motion posture of the electronic device 100. Sensor 180B determines the angular velocity of the electronic device 100 around three axes (i.e., x, y, and z axes). Gyro sensor 180B can be used for anti-shake shooting. For example, when the shutter is pressed, gyro sensor 180B detects the angle of the electronic device 100 shaking, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the electronic device 100 through reverse movement to achieve anti-shake. Gyro sensor 180B can also be used for navigation and somatosensory game scenes.
- the air pressure sensor 180C is used to measure air pressure.
- the electronic device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
- the magnetic sensor 180D includes a Hall sensor.
- the electronic device 100 can use the magnetic sensor 180D to detect the opening and closing of the flip leather case.
- the electronic device 100 when the electronic device 100 is a flip phone, the electronic device 100 can detect the opening and closing of the flip cover according to the magnetic sensor 180D. Then, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, the flip cover can be automatically unlocked.
- the acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in all directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the electronic device and is applied to applications such as horizontal and vertical screen switching and pedometers.
- the distance sensor 180F is used to measure the distance.
- the electronic device 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use the distance sensor 180F to measure the distance to achieve fast focusing.
- the proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode.
- the light emitting diode may be an infrared light emitting diode.
- the electronic device 100 emits infrared light outward through the light emitting diode.
- the electronic device 100 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 can determine that there is no object near the electronic device 100.
- the electronic device 100 can use the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power.
- the proximity light sensor 180G can also be used in leather case mode and pocket mode to automatically unlock and lock the screen.
- the ambient light sensor 180L is used to sense the brightness of the ambient light.
- the electronic 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 electronic device 100 is in a pocket to prevent accidental touches.
- the fingerprint sensor 180H is used to collect fingerprints.
- the electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photography, fingerprint call answering, etc.
- the temperature sensor 180J is used to detect temperature.
- the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 reduces the performance of a processor located near the temperature sensor 180J to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 due to low temperature. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
- the touch sensor 180K is also called a "touch panel”.
- the touch sensor 180K can be set 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 touch operations acting 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 the touch operation can be provided through the display screen 194.
- the touch sensor 180K can also be set on the surface of the electronic device 100, which is different from the position of the display screen 194.
- the bone conduction sensor 180M can obtain a vibration signal. In some embodiments, the bone conduction sensor 180M can obtain a vibration signal of a vibrating bone block of the vocal part of the human body. The bone conduction sensor 180M can also contact the human pulse to receive a blood pressure beat signal. In some embodiments, the bone conduction sensor 180M can also be set in an earphone and combined into a bone conduction earphone.
- the audio module 170 can parse out a voice signal based on the vibration signal of the vibrating bone block of the vocal part obtained by the bone conduction sensor 180M to realize a voice function.
- the application processor can parse the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 180M to realize a heart rate detection function.
- the key 190 includes a power key, a volume key, etc.
- the key 190 may be a mechanical key or a touch key.
- the electronic device 100 may receive key input and generate key signal input related to user settings and function control of the electronic device 100.
- Motor 191 can generate vibration prompts.
- Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback.
- touch operations acting on different applications can correspond to different vibration feedback effects.
- touch operations acting on different areas of the display screen 194 can also correspond to different vibration feedback effects.
- Different application scenarios for example: time reminders, receiving messages, alarm clocks, games, etc.
- the touch vibration feedback effect can also support customization.
- the indicator 192 may be an indicator light, which may be used to indicate the charging status, the change in the power level, or may be used to indicate messages, missed calls, Notifications, etc.
- the SIM card interface 195 is used to connect a SIM card.
- the SIM card can be connected to and separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195.
- the electronic device 100 can 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 cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can 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 can also be compatible with external memory cards.
- the electronic device 100 interacts with the network through the SIM card to implement functions such as calls and data communications.
- the electronic device 100 uses an embedded SIM (eSIM) card, i.e., an embedded SIM card.
- the eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
- phone cards in the embodiments of the present application include but are not limited to SIM cards, eSIM cards, universal subscriber identity modules (USIM), universal integrated circuit cards (UICC), and the like.
- the software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture.
- the embodiment of the present application takes the Android system of the layered architecture as an example to exemplify the software structure of the electronic device 100.
- FIG. 2 is a software structure block diagram of the electronic device 100 according to an embodiment of the present application.
- the layered architecture divides the software into several layers, each with a clear role and division of labor.
- the layers communicate with each other through software interfaces.
- the Android system is divided into five layers, from top to bottom: application layer, application framework layer, Android runtime (ART) and native C/C++ library, hardware abstraction layer, and kernel layer.
- the application layer can include a series of application packages.
- the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.
- the application framework layer provides application programming interface (API) and programming framework for the applications in the application layer.
- API application programming interface
- the application framework layer includes some predefined functions.
- the application framework layer may include a window manager, a content provider, a view system, a resource manager, a notification manager, an activity manager, an input manager, and the like.
- the window manager provides window management service (WMS).
- WMS can be used for window management, window animation management, surface management and as a transit station for the input system.
- Content providers are used to store and retrieve data and make it accessible to applications. This data can include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc. Content providers provide support for data access between applications.
- the view system includes visual controls, such as controls for displaying text, controls for displaying images, etc.
- the view system can be used to build applications.
- a display interface can be composed of one or more views.
- a display interface including a text notification icon can include a view for displaying text and a view for displaying images.
- the resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
- the notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc.
- the notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.
- the activity manager can provide activity management service (AMS).
- AMS can be used to start, switch, and schedule system components (such as activities, services, content providers, broadcast receivers) as well as manage and schedule application processes.
- the input manager can provide input management service (IMS), which can be used to manage the input of the system, such as touch screen input, key input, sensor input, etc.
- IMS input management service
- IMS takes events from input device nodes and distributes them to appropriate windows through interaction with WMS.
- the Android runtime includes the core library and the Android runtime.
- the Android runtime is responsible for converting source code into bytecode, converting bytecode into machine code, and running machine code.
- the Android runtime supports ahead-of-time (AOT) compilation technology and just-in-time (JIT) compilation technology.
- AOT converts bytecode into machine code and stores it in the memory during application installation
- JIT converts part of the bytecode into machine code in real time when the application is running.
- the core library is mainly used to provide basic Java class library functions, such as basic data structures, mathematics, IO, tools, databases, networks, etc.
- the core library provides an API for users to develop Android applications.
- the native C/C++ library can include multiple functional modules. For example: surface manager, media framework, libc, OpenGL ES, SQLite, Webkit, etc. Among them, the surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.
- the media framework supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc.
- the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
- libc provides a standard C function library.
- OpenGL ES provides drawing and operation of 2D graphics and 3D graphics in applications. SQLite provides a lightweight relational database for applications.
- Webkit provides support for browser kernels.
- the modules in the application framework layer are written in Java, and the modules in the native C/C++ library are written in C/C++.
- the communication between the two can be achieved through the Java native interface (JNI).
- JNI Java native interface
- the hardware abstraction layer runs in user space, encapsulates the kernel layer drivers, and provides a calling interface to the upper layer. It can include display modules, camera modules, audio modules, and Bluetooth modules.
- the kernel layer is the layer between hardware and software.
- the kernel layer can include display drivers, camera drivers, audio drivers, Bluetooth drivers, and other sensor drivers.
- the kernel layer also supports memory management, system process management, file system management, power management and other functions.
- a user's laptop can be connected to an external display (or external screen), so that the user can use a set of input devices to control the laptop screen and the external display screen at the same time.
- the input device may include a standard human interface device (HID), such as a keyboard, a mouse, a handle, a touchpad, etc.
- HID human interface device
- the input device when the user's device is connected to an external display, the input device can only input to one place at the same time, and multiple users cannot operate different screens at the same time, which affects the efficiency of simultaneous use by multiple users.
- an embodiment of the present application proposes a display method and an electronic device, which can be applied to scenarios where the electronic device is used with an external display, or scenarios where multiple electronic devices are used in coordination, providing a solution for scenarios where multiple users use the device simultaneously.
- FIG. 3 is a set of graphical user interfaces (GUI) provided in an embodiment of the present application.
- GUI graphical user interfaces
- the laptop is connected to an external monitor, and the laptop displays a memo application.
- the game application running on the laptop can be displayed on the external monitor. That is, multiple display screens are controlled by one electronic device.
- the laptop can be connected to an external mouse, and the monitor can be connected to an external game controller.
- user 1 can operate the memo application through the keyboard and mouse of the laptop, and user 2 can control the game application displayed on the monitor through the game controller.
- Two users can operate at the same time without interfering with each other. It can be understood that the laptop can also be connected to two or more external monitors for more users to operate at the same time.
- the laptop computer and the display may be connected via a wired connection or a wireless connection.
- the input device and the laptop computer (or display) may also be connected via a wired connection or a wireless connection.
- the wireless connection may be a short-distance connection such as a high-fidelity wireless communication (Wi-Fi) connection, a Bluetooth connection, an infrared connection, an NFC connection, a ZigBee connection, etc.
- the wireless connection may also be a long-distance connection, and the long-distance connection includes but is not limited to mobile networks that support 2G, 3G, 4G, 5G and subsequent standard protocols.
- multiple electronic devices can log in to the same user account (such as a Huawei account) and then connect remotely through a server.
- multiple electronic devices may be connected through a hyperterminal (for example: An electronic device connected to a hyperterminal consisting of multiple devices.
- FIG. 4A shows another set of GUIs provided by an embodiment of the present application.
- the laptop and tablet can be in collaborative mode, and the laptop and tablet run their own systems respectively, that is, the systems of the two devices control their own screens respectively.
- the laptop and tablet can be connected by wire or wirelessly, and the input device and the laptop (or tablet) can also be connected by wire or wirelessly.
- the system of the laptop runs a memo application
- the system of the tablet runs a chat application
- the external mouse of the laptop can be transferred to the tablet. If the user chooses to use the external mouse of the laptop to control the tablet, when user 1 uses the external mouse of the laptop to control the tablet, user 2 can use the keyboard of the laptop to input operations on the memo application at the same time, and the two users can operate at the same time without interfering with each other.
- Figure 4 takes the collaboration of two devices with independent systems as an example, and the present application does not limit the number of devices in collaborative mode.
- FIG. 4B shows another set of GUIs provided by an embodiment of the present application.
- the laptop computer and the tablet computer can be in a collaborative mode, and the laptop computer and the tablet computer respectively run their own systems.
- the tablet computer can be connected to an external display.
- the display can also be connected via a wired connection or a wireless connection, and the input device and the laptop, tablet, or external display can also be connected via a wired connection or a wireless connection.
- the laptop system runs a memo application, and the tablet system runs a chat application. At the same time, the game application run by the tablet can be displayed on the external display.
- the user can associate the input device with the corresponding device through the interactive interface.
- the user when the user connects an external mouse to a laptop computer, the user can select the external mouse to control the laptop computer or the display through the configuration interface.
- the user when the user connects a game controller to the laptop computer or the display, the user can also select the game controller to control the laptop computer or the display through the configuration interface.
- the user when the user connects an external mouse to a laptop computer, the user can select the external mouse to control the laptop computer or the tablet through the configuration interface.
- the device corresponding to the input device can be associated with the device according to the scene.
- the laptop when the user connects the game controller to the laptop or the display screen, since the interface displayed on the display screen at this time is the game application interface, the laptop can associate the game controller with the display by default.
- the input device can be associated with the device or screen it needs to control. Furthermore, multiple users can manipulate multiple devices or screens separately without interfering with each other.
- the method provided in the embodiment of the present application can be applied to scenarios where one device controls multiple screens, such as a scenario where a device is connected to an external display (as shown in Figure 3), a scenario where a system controls multiple display screens of a vehicle computer, etc.
- the method provided in the embodiment of the present application can also be applied to scenarios where multiple devices control multiple screens separately, such as scenarios where multiple devices work together (as shown in Figure 4A).
- the method provided in the embodiment of the present application can also be applied to scenarios where multiple devices control their respective screens separately, and at least one device is connected to an external display (as shown in Figure 4B), and this application does not limit this.
- FIG5 shows a schematic diagram of the interaction between modules of an electronic device in a scenario where an electronic device controls multiple screens.
- FIG3 shows a scenario where a device controls multiple screens.
- the hardware structure and software structure of the electronic device can refer to the relevant description of the electronic device 100 in FIG1 and FIG2.
- the electronic device may include a multi-device input management module, an input subsystem, a screen management subsystem, and a screen display subsystem.
- the multi-device input management module can be used to manage the correspondence between input devices and screens, manage cursors on different screens, etc.
- the input subsystem can be used to manage input devices and process input events.
- the screen management subsystem can be used to handle the display screen.
- the graphics display subsystem can be responsible for presenting the drawn content on the screen.
- the method may include but is not limited to the following steps:
- the multi-device input management module obtains screen information from the screen management subsystem.
- the screen information may include information about all screens in the current system. Usually, each screen has a different screen ID, and the screen ID is specified to determine which screen to display on, thus achieving multi-screen display.
- the screen information may include screen identifiers of all screens in the current system
- the multi-device input management module may obtain screen identifiers corresponding to all screens in the current system from the screen management subsystem.
- the screen management subsystem may monitor screen changes in real time or at intervals, such as adding a new screen, removing the current screen, etc.
- the multi-device input management module may obtain updated screen information from the screen management subsystem.
- the screen information may also include configuration information of all screens in the current system, such as size, resolution, etc.
- the multi-device input management module may also obtain updated screen information from the screen management subsystem.
- the multi-device input management module obtains input device information from the input subsystem.
- the input device information may include information of all input devices in the current system.
- the input device information may include identification, type information, etc. of all input devices in the current system.
- the multi-device input management module may classify and manage input devices according to the type of input device (e.g., mouse, keyboard, etc.).
- the input subsystem may monitor changes in input devices in real time or at intervals, such as adding new input devices, removing current input devices, etc. When the input device changes, the multi-device input management module may obtain updated input device information from the input subsystem.
- the input device information may also include configuration information of all input devices in the current system, such as whether the input device is Support cursor operation, etc.
- the multi-device input management module can also obtain updated input device information from the input subsystem.
- step S501 and step S502 can be executed simultaneously or one after another, and the present application does not limit the execution order of step S501 and step S502.
- the multi-device input management module determines the association relationship between the screen and the input device.
- the user can manually configure the association between the screen and the input device through the configuration interface, and then the multi-device input management module can obtain the association between the screen and the input device according to the user's settings.
- the system can automatically determine the association between the screen and the input device according to the scene, user habits, etc., and then the multi-device input management module can determine the association between the screen and the input device. This application does not limit the process and method of associating the screen and the input device.
- the user can configure the cursor styles of different input devices or different screens through the configuration interface, and then the multi-device input management module can obtain the cursor styles of different input devices or different screens according to the user's settings.
- the cursor style may include the shape and color of the cursor display. In this way, the user can distinguish different screens through different cursor styles, thereby improving the efficiency of multi-user use.
- the input subsystem obtains the association relationship between the screen and the input device from the multi-device input management module.
- the input subsystem may also obtain cursor styles of different input devices or different screens from the multi-device input management module.
- the input device being a cursor attribute can be understood as the input device supporting cursor operations.
- the input subsystem can determine whether the input device supports cursor operations based on the characteristics of the input device. For example, when the input device has the INPUT_DEVICE_CLASS_CURSOR characteristic, it can be considered that the input device supports cursor operations.
- the input subsystem may not need to create a cursor, and when the screen associated with the input device originally does not have a cursor, the input subsystem may create a cursor on the screen associated with the input device. In this way, there can be at most one cursor on each screen to avoid interfering with user operations.
- S506 The input subsystem distributes the event to the graphic display subsystem.
- the graphic display subsystem displays a cursor on the screen corresponding to the input device.
- the graphic display subsystem may display the cursor in a corresponding cursor style on a screen corresponding to the input device according to the cursor style corresponding to the different input devices or different screens.
- the method may also include:
- the input subsystem detects a first input event and determines the screen on which the first input event acts.
- the input subsystem may detect a first input event corresponding to the first input device.
- the input subsystem in step S504, can obtain the association relationship between the screen and the input device from the multi-device input management module. Then, in step S508, the input subsystem can determine the screen on which the first input event acts based on the association relationship between the screen and the input device and the first input device corresponding to the first input event.
- the first input event can be sent to the multi-device input management module.
- the multi-device input management module can determine the screen affected by the first input event based on the association relationship between the screen and the input device, and the first input device corresponding to the first input event. Furthermore, the multi-device input management module can send the screen affected by the first input event to the input subsystem, so that the input subsystem can obtain the screen affected by the first input event.
- the input subsystem may not need to obtain the association relationship between the screen and the input device from the multi-device input management module.
- the input subsystem distributes the input event to the graphic display subsystem.
- the graphic display subsystem displays a cursor on a screen corresponding to the input device.
- the graphic display subsystem may display the cursor in a corresponding cursor style on a screen corresponding to the input device according to the cursor style corresponding to the different input devices or different screens.
- the electronic device may include an input subsystem, a screen management subsystem, and a screen display subsystem.
- the operation of the multi-device input management module shown in FIG5 may be completed by the input subsystem.
- the multi-device input management module may be a module in the input subsystem.
- the input subsystem may obtain all screen information in the current system from the screen management subsystem.
- the input subsystem can determine the association between the screen and the input device. When the input subsystem detects a first input event, the input subsystem can determine the screen on which the first input event acts based on the association between the screen and the input device it obtains, and distribute the input event to the graphics display subsystem.
- FIG6 shows a schematic flow chart of a display method provided in an embodiment of the present application, which can be executed by a first electronic device, and the first electronic device can be the electronic device shown in FIG5 .
- the method includes:
- the first electronic device determines an association relationship between a first input device and a first screen.
- the first screen is a screen of the first electronic device or an external screen of the first electronic device, that is, the first screen is controlled by the first electronic device.
- the first electronic device may determine the association relationship between the screen and the input device according to the user's configuration. For example, in response to the user's first operation, the first electronic device determines the association relationship between the first input device and the first screen, wherein the first operation may be a configuration operation of the user on the interface. Alternatively, the first electronic device may also automatically determine the association relationship between the screen and the input device according to the scene, user habits, etc. This application does not limit the process and method of the first electronic device obtaining the association relationship between the screen and the input device.
- the association relationship between the screen and the input device can be determined by a multi-device input management module in the first electronic device.
- the multi-device input management module can be a module in the input subsystem or an independent module in the first electronic device.
- the first electronic device may also obtain screen information and input device information.
- the multi-device input management module in the first electronic device may obtain screen information and input device information.
- the screen information may include information of the screen and the external screen of the first electronic device
- the input device information may include information of all input devices of the first electronic device.
- the screen information includes information of the above-mentioned first screen, such as the screen identification and configuration information of the first screen.
- the input device information includes information of the above-mentioned first input device, such as the identification and configuration information of the above-mentioned first input device.
- the first electronic device when a screen controlled by the first electronic device (i.e., the screen of the first electronic device or an external screen of the first electronic device) is added, removed, or the configuration changes, the first electronic device can update the screen information.
- the first electronic device can update the input device information.
- the first electronic device detects a first input event, wherein the input device corresponding to the first input event is the first input device.
- the first electronic device determines, according to the association relationship between the first input device and the first screen, that the screen on which the first input event acts is the first screen.
- the input subsystem in the first electronic device when the input subsystem in the first electronic device detects the first input event, it can determine the screen on which the first input event acts.
- S604 The first electronic device displays a first cursor on the first screen.
- the first electronic device distributes the first input event to the first screen, so that a first cursor is displayed on the first screen.
- the first electronic device detects the second input event, determines that the screen on which the second input event acts is the second screen, and the first electronic device can distribute the second input event to the second screen so that a second cursor is displayed on the second screen.
- the styles of the first cursor and the second cursor can be the same or different.
- the second screen is the screen of the first electronic device or an external screen of the first electronic device, and the second screen is different from the first screen.
- FIG7 shows a schematic diagram of an interaction between modules when the first electronic device and the second electronic device are in a collaborative mode.
- FIG4A or FIG4B shows a scenario where multiple devices work together.
- the hardware structure and software structure of the first electronic device and the second electronic device can refer to the relevant description of the electronic device 100 in FIG1 and FIG2.
- the first electronic device and the second electronic device may be connected by wire or wirelessly, and the first electronic device may include a multi-device input management module, an input subsystem, a screen management subsystem, and a screen display subsystem.
- the second electronic device may include a multi-device input management module, an input subsystem, and a screen display subsystem.
- the functions of each module can refer to the relevant description of the embodiment shown in FIG. 5 .
- the method may include but is not limited to the following steps:
- a multi-device input management module of a first electronic device obtains screen information of the first electronic device from a screen management subsystem of the first electronic device.
- the screen information may include information of all screens of the first electronic device. All screens of the first electronic device may include the screen of the first electronic device and an external screen of the first electronic device.
- the multi-device input management module of the first electronic device may obtain updated screen information from the screen management subsystem of the first electronic device.
- the multi-device input management module of the first electronic device obtains input device information from the input subsystem of the first electronic device.
- the input device information may include information of all input devices of the first electronic device.
- the multi-device input management module of the first electronic device may obtain updated input device information from the input subsystem of the first electronic device.
- step S701 and step S702 can be executed simultaneously or one after another, and the present application does not limit the execution order of step S701 and step S702.
- the multi-device input management module of the first electronic device determines that the input device is associated with the screen of the first electronic device or the second electronic device.
- the first electronic device may have screen 1 and screen 2
- the second electronic device may have screen 3 and screen 4.
- the multi-device input management module of the first electronic device may determine that input device 1 is associated with screen 1 of the first electronic device, determine that input device 2 is associated with screen 2 of the first electronic device, and determine that input device 3 and input device 4 are associated with the second electronic device.
- the user can manually configure the association relationship between the screen and the input device through the configuration interface, or the first electronic device can automatically determine the association relationship between the screen and the input device according to the scene, user habits, etc., and then the multi-device input management module can determine the association relationship between the screen and the input device.
- This application does not limit the process and method of associating the screen and the input device.
- the user may also configure cursor styles for different input devices or different screens through the configuration interface, or the first electronic device may automatically set different cursor styles for different input devices or different screens.
- the multi-device input management module of the second electronic device After receiving the first message, the multi-device input management module of the second electronic device creates a virtual input device.
- the multi-device input management module of the second electronic device can create the virtual input device, and the input subsystem of the second electronic device can manage the virtual input device.
- S706 The input subsystem of the second electronic device distributes the input event to the graphic display subsystem of the second electronic device.
- S707 The graphic display subsystem of the second electronic device displays a cursor on the screen of the second electronic device.
- the input subsystem of the first electronic device obtains the association relationship between the screen and the input device from the multi-device input management module of the first electronic device.
- the input subsystem of the first electronic device can obtain the association relationship between the input device and the screen of the first electronic device or the second electronic device from the multi-device input management module of the first electronic device.
- the input subsystem of the first electronic device can also obtain the cursor styles of different input devices from the multi-device input management module of the first electronic device.
- S710 The input subsystem of the first electronic device distributes the event to the graphic display subsystem of the first electronic device.
- S711 The graphic display subsystem of the first electronic device displays a cursor on a screen corresponding to the input device.
- the graphic display subsystem of the first electronic device may display a cursor in a corresponding cursor style on the screen of the first electronic device corresponding to the input device according to the cursor styles corresponding to different input devices or different screens.
- the method may also include:
- S712 The input subsystem of the first electronic device detects a first input event, and determines the screen on which the first input event acts.
- the input subsystem of the first electronic device can obtain the association relationship between the screen and the input device from the multi-device input management module of the first electronic device. Then, in step S712, the input subsystem of the first electronic device can determine the screen on which the first input event acts based on the association relationship between the screen and the input device and the first input device corresponding to the first input event.
- the first input event can be sent to the multi-device input management module of the first electronic device.
- the multi-device input management module of the first electronic device can determine the screen on which the first input event acts based on the association between the screen and the input device, and the first input device corresponding to the first input event. Furthermore, the multi-device input management module of the first electronic device can send the screen on which the first input event acts to the input subsystem, so that the input subsystem of the first electronic device obtains the screen on which the first input event acts.
- the input subsystem of the first electronic device detects a first input event and can determine that the first input event acts on the second electronic device.
- the method may further include the following steps S713-S716.
- S714 The multi-device input management module of the second electronic device sends the first input event to the virtual input device managed by the input subsystem of the second electronic device.
- S715 The input subsystem of the second electronic device distributes the first input event to the graphic display subsystem of the second electronic device.
- S716 The graphic display subsystem of the second electronic device displays a cursor on the screen of the second electronic device.
- the second electronic device displays a cursor on the screen of the second electronic device (eg, screen 3 or screen 4).
- step S712 when the first electronic device determines that the first input event acts on a certain screen of the first electronic device, the method may further include the following steps S717-S718.
- S718 The graphic display subsystem of the first electronic device displays a cursor on the screen corresponding to the input device.
- the first electronic device displays a cursor on screen 1; when the first input device corresponding to the first input event is input device 2, the first electronic device displays a cursor on screen 2.
- the graphic display subsystem may display the cursor in a corresponding cursor style on the screen corresponding to the input device according to the cursor style corresponding to the different input devices.
- the first electronic device may include an input subsystem, a screen management subsystem, and a screen display subsystem.
- the operation of the multi-device input management module of the first electronic device shown in FIG7 may be performed by the input subsystem of the first electronic device, for example, the multi-device input management module may be a module in the input subsystem.
- Fig. 8 shows a schematic diagram of interaction between modules when the first electronic device and the second electronic device are in a collaborative mode.
- Fig. 4A or Fig. 4B shows a scenario where multiple devices work collaboratively.
- the first electronic device and the second electronic device may be connected by wire or wirelessly, and the first electronic device may include a multi-device input management module, an input subsystem, a screen management subsystem, and a screen display subsystem.
- the second electronic device may include a multi-device input management module, an input subsystem, a screen management subsystem, and a screen display subsystem.
- the functions of each module can refer to the relevant description of the embodiment shown in FIG5 .
- the method may include but is not limited to the following steps:
- the multi-device input management module of the first electronic device obtains the screen information of the first electronic device from the screen management subsystem of the first electronic device.
- the multi-device input management module of the second electronic device obtains the screen information of the second electronic device from the screen management subsystem of the second electronic device.
- the process of the multi-device input management module of the first electronic device and the multi-device input management module of the second electronic device acquiring screen information can be referred to the relevant description of the multi-device input management module of the first electronic device acquiring screen information in the embodiment shown in Figure 5, and this application will not elaborate on it here.
- the multi-device input management module of the first electronic device obtains the screen information of the second electronic device from the multi-device input management module of the second electronic device.
- the multi-device input management module of the first electronic device may obtain the screen information of the second electronic device from the multi-device input management module of the second electronic device through a wired or wireless connection between the first electronic device and the second electronic device.
- the multi-device input management module of the first electronic device obtains the input device information of the first electronic device from the input subsystem of the first electronic device.
- the multi-device input management module of the second electronic device obtains the input device information of the second electronic device from the input subsystem of the second electronic device.
- the process of the input management module of the first electronic device and the multi-device input management module of the second electronic device obtaining input device information can be referred to the relevant description of the multi-device input management module of the first electronic device obtaining input device information in the embodiment shown in Figure 5, and this application will not elaborate on it here.
- the present application does not limit the order in which the first electronic device and the second electronic device obtain the screen information and the input device information.
- S804a The multi-device input management module of the first electronic device determines that the input device is associated with the screen of the first electronic device or the screen of the second electronic device.
- the multi-device input management module of the first electronic device can obtain the information of its corresponding input device
- the multi-device input management module of the second electronic device can also obtain the information of its corresponding input device.
- step S804a the multi-device input management module of the first electronic device determines that the input device of the first electronic device is associated with the screen of the first electronic device or the screen of the second electronic device.
- the first electronic device may have screen 1 and screen 2
- the first electronic device may have input device 1 and input device 2
- the second electronic device may have screen 3 and screen 4
- the second electronic device may have input device 3 and input device 4.
- the multi-device input management module of the first electronic device may determine that input device 1 is associated with screen 1 of the first electronic device, and determine that input device 2 is associated with screen 2 of the first electronic device.
- the multi-device input management module of the first electronic device can obtain information about all input devices connected to the first electronic device and the second electronic device. For example, after step S803b, the multi-device input management module of the first electronic device can obtain input device information of the second electronic device from the multi-device input management module of the second electronic device.
- step S804a the multi-device input management module of the first electronic device determines that all input devices are associated with the screen of the first electronic device or the screen of the second electronic device.
- the multi-device input management module of the second electronic device may also obtain information of all input devices connected to the first electronic device and the second electronic device.
- the first electronic device may have screen 1 and screen 2, the first electronic device has input device 1 and input device 2, the second electronic device may have screen 3 and screen 4, the second electronic device has input device 3 and input device 4.
- the multi-device input management module of the first electronic device may determine that input device 1 is associated with screen 1 of the first electronic device, determine that input device 2 is associated with screen 2 of the first electronic device, determine that input device 3 is associated with screen 3 of the second electronic device, and determine that input device 4 is associated with screen 4 of the second electronic device.
- the multi-device input management module of the second electronic device determines that the input device of the second electronic device is associated with the screen of the first electronic device or the screen of the second electronic device.
- the multi-device input management module of the second electronic device may determine that input device 3 is associated with screen 3 of the second electronic device, and input device 4 is associated with screen 4 of the second electronic device.
- the multi-device input management module of the second electronic device can create the virtual input device, and the input subsystem of the second electronic device can manage the virtual input device.
- the input subsystem of the second electronic device obtains the correspondence between the screen and the input device from the multi-device input management module of the second electronic device.
- the input subsystem of the second electronic device can obtain the association relationship between the input device distributed to the screen of the second electronic device and the screen of the second electronic device from the multi-device input management module of the second electronic device.
- the input subsystem of the second electronic device can also obtain the cursor styles of different input devices from the multi-device input management module of the second electronic device.
- S809 The input subsystem of the second electronic device distributes the event to the graphic display subsystem of the second electronic device.
- S810 The graphic display subsystem of the second electronic device displays a cursor on a screen corresponding to the input device.
- the graphic display subsystem of the second electronic device may display a cursor in a corresponding cursor style on the screen of the second electronic device corresponding to the input device according to the cursor styles corresponding to different input devices or different screens.
- the input subsystem of the first electronic device obtains the association relationship between the screen and the input device from the multi-device input management module of the first electronic device.
- the input subsystem of the first electronic device can obtain the association relationship between the input device of the first electronic device and the screen of the first electronic device or the screen of the second electronic device from the multi-device input management module of the first electronic device.
- the input subsystem of the first electronic device can obtain the association relationship between all input devices and the screen of the first electronic device or the screen of the second electronic device from the multi-device input management module of the first electronic device.
- the input subsystem of the first electronic device can also obtain the association relationship between all input devices and the screen of the first electronic device or the screen of the second electronic device from the multi-device input management module of the first electronic device.
- the multi-device input management module of the child device obtains the cursor styles of different input devices.
- S813 The input subsystem of the first electronic device distributes the event to the graphic display subsystem of the first electronic device.
- S814 The graphic display subsystem of the first electronic device displays a cursor on a screen corresponding to the input device.
- the graphic display subsystem of the first electronic device may display a cursor in a corresponding cursor style on the screen of the first electronic device corresponding to the input device according to the cursor styles corresponding to different input devices or different screens.
- step S804a when the multi-device input management module of the first electronic device determines that all input devices are associated with the screen of the first electronic device or the screen of the second electronic device, the first electronic device can manage all input devices as the master device. At this time, in step S805, the first electronic device can allocate the input devices of the first electronic device and the second electronic device. In step S811, the input subsystem of the first electronic device can obtain the association relationship between all input devices and the screen of the first electronic device or the screen of the second electronic device from the multi-device input management module of the first electronic device.
- step S804a the multi-device input management module of the first electronic device determines that the input device of the first electronic device is associated with the screen of the first electronic device or the screen of the second electronic device
- step S804b the multi-device input management module of the second electronic device determines that the input device of the second electronic device is associated with the screen of the first electronic device or the screen of the second electronic device.
- the first electronic device can allocate the input device of the first electronic device.
- the input subsystem of the first electronic device can obtain the association relationship between the input device of the first electronic device and the screen of the first electronic device or the screen of the second electronic device from the multi-device input management module of the first electronic device.
- the second electronic device can also allocate the input device of the second electronic device.
- the process of the second electronic device allocating the input device of the second electronic device reference can also be made to the relevant statements in the above embodiments, and this application will not elaborate on it here.
- the method may also include:
- S815 The input subsystem of the first electronic device detects a first input event, and determines the screen on which the first input event acts.
- the input subsystem of the first electronic device detects the first input event and can determine that the first input event acts on a certain screen of the first electronic device, or the first input event acts on a certain screen of the second electronic device.
- the method can also include the following steps S816-S820.
- S817 The multi-device input management module of the second electronic device sends the first input event to the virtual input device managed by the input subsystem of the second electronic device.
- S818 The input subsystem of the second electronic device determines the screen on which the first input event acts.
- the second electronic device stores an association relationship between an input device distributed to the screen of the second electronic device and the screen of the second electronic device, and then the input subsystem of the second electronic device can determine the screen of the second electronic device on which the first input event acts.
- the specific process of the input subsystem of the second electronic device determining the screen on which the first input event acts can be referred to the relevant description of the input subsystem of the first electronic device determining the screen on which the first input event acts in the embodiment shown in Figure 7, and this application will not elaborate on it here.
- S819 The input subsystem of the second electronic device distributes the first input event to the graphic display subsystem of the second electronic device.
- S820 The graphic display subsystem of the second electronic device displays a cursor on the screen of the second electronic device corresponding to the input device.
- the second electronic device displays a cursor on screen 3 of the second electronic device; when the first input device corresponding to the first input event is input device 4, the second electronic device displays a cursor on screen 4 of the second electronic device.
- step S815 when the first electronic device determines that the first input event acts on a certain screen of the first electronic device, the method may further include the following steps S821-S822.
- the graphic display subsystem of the first electronic device displays a cursor on a screen corresponding to the input device.
- the first electronic device displays a cursor on screen 1; when the first input device corresponding to the first input event is input device 2, the first electronic device displays a cursor on screen 2.
- the graphic display subsystem may display the cursor in a corresponding cursor style on a screen corresponding to the input device according to the cursor style corresponding to the different input devices.
- the first electronic device may include an input subsystem, a screen management subsystem, and a screen display subsystem.
- the operation of the multi-device input management module of the first electronic device shown in FIG8 may be completed by the input subsystem of the first electronic device.
- the multi-device input management module may be a module in the input subsystem.
- the second electronic device may also include an input subsystem, a screen management subsystem, and a screen display subsystem.
- the operation of the multi-device input management module of the second electronic device shown in FIG8 may be completed by the input subsystem of the second electronic device.
- the first electronic device can associate the input device with a screen of the first electronic device (e.g., the screen of the first electronic device, or an external screen of the first electronic device) or the second electronic device.
- the first electronic device can associate the input device with a screen of the first electronic device (e.g., the screen of the first electronic device, or an external screen of the first electronic device) or a screen of the second electronic device (e.g., the screen of the second electronic device, or an external screen of the second electronic device).
- the electronic device can use the methods in the embodiments shown in Figures 7 and 8 above at the same time.
- the first electronic device associates input device 1 with a screen of the first electronic device or a second electronic device, and the first electronic device associates input device 2 with a screen of the first electronic device or a screen of the second electronic device.
- the first electronic device associates input device 1 with a screen of the first electronic device or a second electronic device, and the first electronic device associates input device 2 with a screen of the first electronic device or a screen of a third electronic device.
- This application is not limited to this.
- FIG9 shows a schematic flow chart of another display method provided in an embodiment of the present application, which can be performed by a first electronic device and a second electronic device.
- the method includes:
- the first electronic device determines an association relationship between a first input device and a second electronic device.
- the association relationship between the screen and the input device can be determined by a multi-device input management module in the first electronic device.
- the multi-device input management module can be a module in the input subsystem or an independent module in the first electronic device.
- the first electronic device detects a first input event, wherein the input device corresponding to the first input event is the first input device.
- the first electronic device determines, based on the association relationship, that the first input event acts on the second electronic device.
- S904 The first electronic device sends a first input event to the second electronic device.
- S905 The second electronic device displays a first cursor.
- the first electronic device may also determine an association relationship between a second input device and a first screen, wherein the first screen is a screen of the first electronic device or an external screen of the first electronic device.
- the first electronic device may determine that the screen on which the second input event acts is the first screen based on the association relationship between the second input device and the first screen, and then the first electronic device may display a second cursor on the first screen.
- the styles of the first cursor and the second cursor may be different.
- FIG10 shows a schematic flow chart of another display method provided in an embodiment of the present application, which can be performed by a first electronic device and a second electronic device.
- the method includes:
- the first electronic device determines an association relationship between a first input device and a second screen.
- the second screen is a screen of the second electronic device or an external screen of the second electronic device.
- the association relationship between the screen and the input device can be determined by a multi-device input management module in the first electronic device.
- the multi-device input management module can be a module in the input subsystem or an independent module in the first electronic device.
- the first electronic device detects a first input event, wherein the input device corresponding to the first input event is the first input device.
- the first electronic device determines, based on the above association relationship, that the screen on which the first input event acts is the second screen.
- S1004 The first electronic device sends a first input event to the second electronic device.
- the second electronic device determines, based on the association relationship between the first input device and the second screen, that the screen on which the first input event acts is the second screen.
- S1006 The second electronic device displays a first cursor on the second screen.
- the first electronic device may also determine an association relationship between a second input device and a first screen, wherein the first screen is a screen of the first electronic device or an external screen of the first electronic device.
- the first electronic device may determine that the screen on which the second input event acts is the first screen based on the association relationship between the second input device and the first screen, and then the first electronic device may display a second cursor on the first screen.
- the styles of the first cursor and the second cursor may be different.
- Fig. 11 is a schematic diagram of the composition of a display device provided in an embodiment of the present application.
- the device 1100 can be applied to an electronic device, and the device 1100 can include: a determination unit 1101 , a detection unit 1102 , and a display unit 1103 .
- the determining unit 1101 is used to determine an association relationship between a first input device and a first screen, wherein the first screen is a screen of the first electronic device or an external screen of the first electronic device.
- the detection unit 1102 is configured to detect a first input event, wherein an input device corresponding to the first input event is a first input device.
- the determining unit 1101 is further configured to determine, according to the association relationship, the screen on which the first input event acts as the first screen.
- the display unit 1103 is configured to display a first cursor on the first screen.
- the device 1100 may further include a sending unit 1104 .
- the determining unit 1101 is configured to determine an association relationship between a first input device and a second electronic device.
- the detection unit 1102 is configured to detect a first input event, wherein the input device corresponding to the first input event is a first input device;
- the determining unit 1101 is further configured to determine, based on the association relationship, that the first input event acts on the second electronic device.
- the sending unit 1104 is configured to send the first input event to the second electronic device, so that the second electronic device displays a first cursor.
- the determining unit 1101 is configured to determine an association relationship between the first input device and a second screen, wherein the second screen is a screen of the second electronic device or an external screen of the second electronic device.
- the detection unit 1102 is configured to detect a first input event, wherein an input device corresponding to the first input event is a first input device.
- the determining unit 1101 is further configured to determine, based on the association relationship, that the screen on which the first input event acts is the second screen.
- the sending unit 1104 is configured to send the first input event to the second electronic device, so that the second electronic device determines that the screen on which the first input event acts is the second screen according to the association relationship, and displays the first cursor on the second screen.
- the present application also provides a display device, which can be applied to an electronic device, such as the electronic device (such as a mobile phone) in the above embodiment.
- the device may include: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions so that the display device implements the various functions or steps performed by the electronic device (such as a mobile phone) in the above method embodiment.
- the embodiment of the present application also provides an electronic device (the electronic device can be an electronic device, such as the mobile phone in the above embodiment), which may include: a display screen, a memory, and one or more processors.
- the display screen, the memory, and the processor are coupled.
- the memory is used to store computer program code, and the computer program code includes computer instructions.
- the processor executes the computer instructions, the electronic device can execute the various functions or steps performed by the electronic device (such as a mobile phone) in the above method embodiment.
- the electronic device includes but is not limited to the above display screen, memory, and one or more processors.
- the structure of the electronic device can refer to the structure of the mobile phone shown in Figure 5.
- the embodiment of the present application also provides a chip system, which can be applied to electronic devices, such as the electronic devices (such as mobile phones) in the aforementioned embodiments.
- the chip system includes at least one processor 1201 and at least one interface circuit 1202.
- the processor 1201 can be the processor in the above-mentioned electronic device.
- the processor 1201 and the interface circuit 1202 can be interconnected via lines.
- the processor 1201 can receive and execute computer instructions from the memory of the above-mentioned electronic device through the interface circuit 1202.
- the electronic device can execute the various steps executed by the mobile phone in the above-mentioned embodiment.
- the chip system can also include other discrete devices, which are not specifically limited in the embodiment of the present application.
- An embodiment of the present application also provides a computer-readable storage medium for storing computer instructions executed by an electronic device, such as the above-mentioned electronic device (such as a mobile phone).
- An embodiment of the present application also provides a computer program product, including computer instructions executed by an electronic device, such as the above-mentioned electronic device (such as a mobile phone).
- an electronic device such as the above-mentioned electronic device (such as a mobile phone).
- the disclosed devices and methods can be implemented in other ways.
- the device embodiments described above are only schematic.
- the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed.
- Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
- the units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
- each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
- the above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
- the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium.
- the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute all or part of the steps of the method described in each embodiment of the present application.
- the aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
一种显示方法、电子设备和***,该方法包括:第一电子设备确定第一输入设备与第一屏幕之间的关联关系,其中,第一屏幕为第一电子设备的屏幕或者第一电子设备的外接屏幕;第一电子设备检测到第一输入事件,其中,所述第一输入事件对应的输入设备为第一输入设备;第一电子设备根据所述关联关系,确定第一输入事件作用的屏幕为第一屏幕;第一电子设备在所述第一屏幕上显示第一光标。因此,输入设备可以与其需要控制的设备或屏幕相关联。进而,多个用户可以分别操控多个设备或屏幕,互不干扰。
Description
本申请要求在2022年10月20日提交中国国家知识产权局、申请号为202211287227.X的中国专利申请的优先权,发明名称为“一种显示方法、电子设备和***”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本申请涉及终端领域,并且更具体地,涉及一种显示方法、电子设备和***。
目前,用户可以使用电子设备时可以外接显示器,以提高显示效率,然而,电子设备外接显示器时,同一时间该电子设备及其外接显示器只能供一个用户使用,不同用户无法同时使用多个屏幕。
发明内容
本申请提供一种显示方法、电子设备和***,可以使输入设备与其需要控制的设备或屏幕相关联,提高多用户同时使用的效率。
为达到上述目的,本申请采用如下技术方案:
第一方面,本申请提供一种显示方法,该方法可以应用于第一电子设备,该方法包括:第一电子设备确定第一输入设备与第一屏幕之间的关联关系,其中,第一屏幕为该第一电子设备的屏幕或者该第一电子设备的外接屏幕;第一电子设备检测到第一输入事件,其中,第一输入事件对应的输入设备为第一输入设备;第一电子设备根据关联关系,确定第一输入事件作用的屏幕为第一屏幕;第一电子设备在该第一屏幕上显示第一光标。
通过本申请提供的方法,可以将输入设备与第一电子设备的屏幕或外接屏幕相关联,可以使得多个用户同时使用多个输入设备分别控制多个屏幕,互不干扰,从而提高了多用户使用的效率。
在一种可能的设计中,第一电子设备确定第一输入设备与第一屏幕之间的关联关系之前,该方法还包括:第一电子设备获取屏幕信息以及输入设备信息,其中,屏幕信息包括第一屏幕的信息,输入设备信息包括第一输入设备的信息。
在一种可能的设计中,该方法还包括:第一电子设备的屏幕或者第一电子设备的外接屏幕新增、移除或配置变化时,第一电子设备更新屏幕信息;和/或,第一电子设备的输入设备新增、移除或配置变化时,第一电子设备更新输入设备信息。通过对屏幕信息和输入设备信息进行更新,可以保证输入事件分发的准确性。
在一种可能的设计中,该方法还包括:第一电子设备确定第二输入设备与第二屏幕之间的关联关系,其中,第二屏幕为该第一电子设备的屏幕或者该第一电子设备的外接屏幕;第一电子设备检测到第二输入事件,其中,第二输入事件对应的输入设备为第二输入设备;第一电子设备根据关联关系,确定第二输入事件作用的屏幕为第二屏幕;第一电子设备在第二屏幕上显示第二光标。
在一种可能的设计中,第一光标和第二光标的样式不同。这样,用户可以通过不同的光标样式来区分不同的屏幕,提高了多用户使用的效率。
第二方面,提供了一种显示方法,该方法可以应用于第一电子设备,该方法包括:第一电子设备确定第一输入设备与第二电子设备之间的关联关系;第一电子设备检测到第一输入事件,其中,第一输入事件对应的输入设备为第一输入设备;第一电子设备根据关联关系,确定第一输入事件作用于第二电子设备;第一电子设备向第二电子设备发送第一输入事件,使得第二电子设备显示第一光标。
通过本申请提供的方法,可以将输入设备与第一电子设备的屏幕或第二电子设备相关联,可以使得多个用户同时使用多个输入设备分别控制多个设备的屏幕或外接屏幕,互不干扰,从而提高了多用户使用的效率。
在一种可能的设计中,第一电子设备确定第一输入设备与第二电子设备之间的关联关系之前,该方法还包括:第一电子设备获取屏幕信息以及输入设备信息,其中,屏幕信息包括第二电子设备的信
息,输入设备信息包括第一输入设备的信息。
在一种可能的设计中,该方法还包括:第二电子设备新增、移除或配置变化时,第一电子设备更新屏幕信息;和/或,第一电子设备的输入设备新增、移除或配置变化时,第一电子设备更新输入设备信息。通过对屏幕信息和输入设备信息进行更新,可以保证输入事件分发的准确性。
在一种可能的设计中,该方法还包括:第一电子设备确定第二输入设备与第一屏幕之间的关联关系,其中,第一屏幕为第一电子设备的屏幕或者第一电子设备的外接屏幕;第一电子设备检测到第二输入事件,其中,第二输入事件对应的输入设备为第二输入设备;第一电子设备根据关联关系,确定第一输入事件作用的屏幕为第一屏幕;第一电子设备在第一屏幕上显示第二光标。
在一种可能的设计中,第一光标和第二光标的样式不同。这样,用户可以通过不同的光标样式来区分不同的屏幕,提高了多用户使用的效率。
第三方面,提供了一种显示***,该***包括第一电子设备和第二电子设备,其中:第一电子设备确定第一输入设备与第二电子设备之间的关联关系;第一电子设备检测到第一输入事件,其中,第一输入事件对应的输入设备为第一输入设备;第一电子设备根据关联关系,确定第一输入事件作用于第二电子设备;第一电子设备向第二电子设备发送第一输入事件;第二电子设备显示第一光标。
在一种可能的设计中,第一电子设备确定第一输入设备与第二电子设备之间的关联关系之前,还包括:第一电子设备获取屏幕信息以及输入设备信息,其中,屏幕信息包括第二电子设备的信息,输入设备信息包括第一输入设备的信息。
在一种可能的设计,第二电子设备新增、移除或配置变化时,第一电子设备更新屏幕信息;和/或,第一电子设备的输入设备新增、移除或配置变化时,第一电子设备更新输入设备信息。
在一种可能的设计中,该***还包括:第一电子设备确定第二输入设备与第一屏幕之间的关联关系,其中,第一屏幕为第一电子设备的屏幕或者第一电子设备的外接屏幕;第一电子设备检测到第二输入事件,其中,第二输入事件对应的输入设备为第二输入设备;第一电子设备根据关联关系,确定第一输入事件作用的屏幕为第一屏幕;第一电子设备在第一屏幕上显示第二光标。
在一种可能的设计中,第一光标和第二光标的样式不同。
上述第三方面中的各个方面以及各个方面可能达到的技术效果请参照上述针对第二方面的各种可能方案可以达到的技术效果说明,这里不再重复赘述。
第四方面,提供了一种显示方法,该方法可以应用于第一电子设备,该方法包括:第一电子设备确定第一输入设备与第二屏幕之间的关联关系,其中,第二屏幕为第二电子设备的屏幕或者第二电子设备的外接屏幕;第一电子设备检测到第一输入事件,其中,第一输入事件对应的输入设备为第一输入设备;第一电子设备根据关联关系,确定第一输入事件作用的屏幕为第二屏幕;第一电子设备向第二电子设备发送第一输入事件,使得第二电子设备根据关联关系确定第一输入事件作用的屏幕为第二屏幕并在第二屏幕上显示第一光标。
通过本申请提供的方法,可以将输入设备与第一电子设备的屏幕或第二电子设备的屏幕相关联,可以使得多个用户同时使用多个输入设备分别控制多个设备的屏幕或外接屏幕,互不干扰,从而提高了多用户使用的效率。
在一种可能的设计中,第一电子设备确定第一输入设备与第二电子设备之间的关联关系之前,该方法还包括:第一电子设备获取屏幕信息以及输入设备信息,其中,屏幕信息包括第二屏幕的信息,输入设备信息包括第一输入设备的信息。
在一种可能的设计中,该方法还包括:第二屏幕新增、移除或配置变化时,第一电子设备更新屏幕信息;和/或,第一电子设备的输入设备和/或第二电子设备的输入设备新增、移除或配置变化时,第一电子设备更新输入设备信息。通过对屏幕信息和输入设备信息进行更新,可以保证输入事件分发的准确性。
在一种可能的设计中,该方法还包括:第一电子设备确定第二输入设备与第一屏幕之间的关联关系,其中,第一屏幕为第一电子设备的屏幕或者第一电子设备的外接屏幕;第一电子设备检测到第二输入事件,其中,第二输入事件对应的输入设备为第二输入设备;第一电子设备根据关联关系,确定第一输入事件作用的屏幕为第一屏幕;第一电子设备在第一屏幕上显示第二光标。
在一种可能的设计中,第一光标和第二光标的样式不同。这样,用户可以通过不同的光标样式来区分不同的屏幕,提高了多用户使用的效率。
第五方面,提供了一种显示***,该***包括第一电子设备和第二电子设备,其中:第一电子设备确定第一输入设备与第二屏幕之间的关联关系,其中,第二屏幕为第二电子设备的屏幕或者第二电子设备的外接屏幕;第一电子设备检测到第一输入事件,其中,第一输入事件对应的输入设备为第一输入设备;第一电子设备根据关联关系,确定输入事件作用的屏幕为第二屏幕;第一电子设备向第二电子设备发送第一输入事件;第二电子设备根据关联关系确定第一输入事件作用的屏幕为第二屏幕;第二电子设备在第二屏幕上显示第一光标。
在一种可能的设计中,第一电子设备确定第一输入设备与第二电子设备之间的关联关系之前,还包括:第一电子设备获取屏幕信息以及输入设备信息,其中,屏幕信息包括第二屏幕的信息,输入设备信息包括第一输入设备的信息。
在一种可能的设计中,第二屏幕新增、移除或配置变化时,第一电子设备更新屏幕信息;和/或,第一电子设备的输入设备和/或第二电子设备的输入设备新增、移除或配置变化时,第一电子设备更新输入设备信息。
在一种可能的设计中,该***还包括:第一电子设备确定第二输入设备与第一屏幕之间的关联关系,其中,第一屏幕为第一电子设备的屏幕或者第一电子设备的外接屏幕;第一电子设备检测到第二输入事件,其中,第二输入事件对应的输入设备为第二输入设备;第一电子设备根据关联关系,确定第一输入事件作用的屏幕为第一屏幕;第一电子设备在第一屏幕上显示第二光标。
在一种可能的设计中,第一光标和第二光标的样式不同。
上述第五方面中的各个方面以及各个方面可能达到的技术效果请参照上述针对第四方面的各种可能方案可以达到的技术效果说明,这里不再重复赘述。
第六方面,提供了一种电子设备,包括:一个或多个处理器;存储器;以及一个或多个计算机程序。其中,一个或多个计算机程序被存储在存储器中,一个或多个计算机程序包括指令。当指令被电子设备执行时,使得电子设备执行上述第一方面中任一项可能的实现中的方法。
第七方面,提供了一种电子设备,包括:一个或多个处理器;存储器;以及一个或多个计算机程序。其中,一个或多个计算机程序被存储在存储器中,一个或多个计算机程序包括指令。当指令被电子设备执行时,使得电子设备执行上述第二方面中任一项可能的实现中的方法。
第八方面,提供了一种电子设备,包括:一个或多个处理器;存储器;以及一个或多个计算机程序。其中,一个或多个计算机程序被存储在存储器中,一个或多个计算机程序包括指令。当指令被电子设备执行时,使得电子设备执行上述第四方面中任一项可能的实现中的方法。
第九方面,提供了一种包含指令的计算机程序产品,当所述计算机程序产品在第一电子设备上运行时,使得所述电子设备执行上述第一方面所述的方法;或者,所述电子设备执行上述第二方面所述的方法;或者,执所述电子设备行上述第四方面所述的方法。
第九方面,提供了一种计算机可读存储介质,包括指令,当所述指令在第一电子设备上运行时,使得所述电子设备执行上述第一方面所述的方法;或者,所述电子设备执行上述第二方面所述的方法;或者,所述电子设备执行上述第四方面所述的方法。
第十方面,提供了一种芯片用于执行指令,当所述芯片运行时,所述芯片执行上述第一方面所述的方法;或者,所述芯片执行上述第二方面所述的方法;或者,所述芯片执行上述第四方面所述的方法。
上述第六方面至第十方面中的各个方面以及各个方面可能达到的技术效果请参照上述针对第一方面、第二方面以及第四方面中的各种可能方案可以达到的技术效果说明,这里不再重复赘述。
图1是本申请实施例提供的一种电子设备的硬件结构示意图;
图2是本申请实施例提供的一种电子设备的软件结构示意图;
图3是本申请实施例提供的一组图形用户界面;
图4A是本申请实施例提供的另一组图形用户界面;
图4B是本申请实施例提供的另一组图形用户界面;
图5是本申请实施例提供的显示方法的一示意性流程图;
图6是本申请实施例提供的显示方法的另一示意性流程图;
图7是本申请实施例提供的显示方法的另一示意性流程图;
图8是本申请实施例提供的显示方法的另一示意性流程图;
图9是本申请实施例提供的显示方法的另一示意性流程图;
图10是本申请实施例提供的显示方法的另一示意性流程图;
图11是本申请实施例提供的装置的示意性结构图。
图12是本申请实施例提供的装置的另一示意性结构图。
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。其中,在本申请实施例的描述中,除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;本文中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,在本申请实施例的描述中,“复数个”或者“多个”是指两个或多于两个。
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。
本申请实施例提供的方法可以应用于手机、平板电脑、可穿戴设备、车载设备、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、个人数字助理(personal digital assistant,PDA)等电子设备上,本申请实施例对电子设备的具体类型不作任何限制。
示例性的,图1示出了电子设备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中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了***的效率。
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户身份识别(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。
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为电子设备供电。
电源管理模块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显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器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)。
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏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)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。
电子设备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可以包括1个或N个摄像头193,N为大于1的正整数。
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。
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是翻盖机时,电子设备100可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。
加速度传感器180E可检测电子设备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采用嵌入式SIM(embedded-SIM,eSIM)卡,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备100中,不能和电子设备100分离。
应理解,本申请实施例中的电话卡包括但不限于SIM卡、eSIM卡、全球用户识别卡(universal subscriber identity module,USIM)、通用集成电话卡(universal integrated circuit card,UICC)等等。
电子设备100的软件***可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本申请实施例以分层架构的Android***为例,示例性说明电子设备100的软件结构。
图2是本申请实施例的电子设备100的软件结构框图。
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android***分为五层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime,ART)和原生C/C++库,硬件抽象层以及内核层。
应用程序层可以包括一系列应用程序包。
如图2所示,应用程序包可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等应用程序。
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。
如图2所示,应用程序框架层可以包括窗口管理器,内容提供器,视图***,资源管理器,通知管理器,活动管理器,输入管理器等。
窗口管理器提供窗口管理服务(window manager service,WMS),WMS可以用于窗口管理、窗口动画管理、surface管理以及作为输入***的中转站。
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。该数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。内容提供器为应用程序间的数据访问提供支持。
视图***包括可视控件,例如显示文字的控件,显示图片的控件等。视图***可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在***顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。
活动管理器可以提供活动管理服务(activity manager service,AMS),AMS可以用于***组件(例如活动、服务、内容提供者、广播接收器)的启动、切换、调度以及应用进程的管理和调度工作。
输入管理器可以提供输入管理服务(input manager service,IMS),IMS可以用于管理***的输入,例如触摸屏输入、按键输入、传感器输入等。IMS从输入设备节点取出事件,通过和WMS的交互,将事件分配至合适的窗口。
安卓运行时包括核心库和安卓运行时。安卓运行时负责将源代码转换为字节码,将字节码转换为机器码,以及运行机器码。在编译技术上,安卓运行时支持提前(ahead or time,AOT)编译技术和及时(just in time,JIT)编译技术,其中AOT在应用程序安装期间,将字节码转换成机器码并存储在存储器上;JIT在应用程序运行时实时将一部分字节码转换成机码。
核心库主要用于提供基本的Java类库的功能,例如基础数据结构、数学、IO、工具、数据库、网络等库。核心库为用户进行安卓应用开发提供了API。
原生C/C++库可以包括多个功能模块。例如:表面管理器(surface manager),媒体框架(media framework),libc,OpenGL ES、SQLite、Webkit等。其中,表面管理器用于对显示子***进行管理,并且为多个应用程序提供了2D和3D图层的融合。媒体框架支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。libc提供标准C函数库。OpenGL ES提供应用程序中2D图形和3D图形的绘制和操作。SQLite为应用程序提供轻量级关系型数据库。Webkit提供游览器内核的支持。
应用程序框架层中的模块使用Java语言编写,原生C/C++库中的模块使用C/C++语言编写,两者之间的通信可以通过Java本地接口(Java native interface,JNI)实现。
硬件抽象层运行于用户空间(user space),对内核层驱动进行封装,向上层提供调用接口,可以包含显示模块、摄像头模块、音频模块、蓝牙模块。
内核层是硬件和软件之间的层。内核层可以包含显示驱动,摄像头驱动,音频驱动,蓝牙驱动,还可以包括其他传感器驱动。内核层在提供硬件驱动外,还支持内存管理、***进程管理、文件***管理、电源管理等功能。
应理解,本申请实施例中的技术方案可以用于Android、IOS、鸿蒙等***中。
目前,用户可以协同使用多个设备或多个屏幕,以提高使用效率和用户体验。例如,用户的笔记本电脑可以外接显示器(或称外接屏幕),从而,用户可以使用一套输入设备同时控制笔记本电脑的屏幕和外接显示器的屏幕。示例性的,输入设备可以包括标准人机接口设备(human interface device,HID),例如键盘、鼠标、手柄、触控板等。
然而,在现有方案中,用户的设备外接显示器时,同一时间输入设备只能往一处输入,多个用户无法同时操控不同的屏幕,影响多用户同时使用的效率。
基于此,本申请实施例提出一种显示方法及电子设备,该方法可以应用于电子设备外接显示器使用的场景、或者多个电子设备协同使用的场景下,为多用户同时使用的场景提供了解决方案。
下面结合附图,介绍本申请实施例提供的几种示例性使用场景。
图3是本申请实施例提供的一组图形用户界面(graphical user interface,GUI)。
如图3所示,笔记本电脑外接显示器,笔记本电脑显示备忘录应用,同时,笔记本电脑运行的游戏应用可以在外接显示器显示。也即,通过一个电子设备控制多个显示屏幕。笔记本电脑可以外接鼠标,显示器可以外接游戏手柄。进而,用户1可以通过笔记本电脑的键盘和鼠标操作备忘录应用,用户2可以通过游戏手柄控制显示器上显示的游戏应用。两个用户可以同时操作,互不干扰。可以理解,笔记本电脑可以还外接两个或两个以上显示器,以供更多用户同时操作,
示例性的,笔记本电脑和显示器可以通过有线连接或者无线连接。输入设备和笔记本电脑(或显示器)也可以通过有线连接或者无线连接。其中,无线连接可以是高保真无线通信(Wi-Fi)连接、蓝牙连接、红外线连接、NFC连接、ZigBee连接等近距离连接。此外,无线连接还可以是远距离连接,远距离连接包括但不限于支持2G,3G,4G,5G以及后续标准协议的移动网络。例如,多个电子设备可以登录同一用户账号(例如华为账号),然后通过服务器进行远距离连接。示例性的,多个电子设备可以是通过超级终端(例如:多设备组成的超级终端)连接的电子设备。
图4A示出了本申请实施例提供的另一组GUI。
如图4A所示,笔记本电脑和平板可以处于协同模式,笔记本电脑和平板分别运行各自的***,也即,两个设备的***分别控制各自的屏幕。示例性的,笔记本电脑和平板可以通过有线连接或者无线连接,输入设备和笔记本电脑(或平板)也可以通过有线连接或无线连接。笔记本电脑的***运行备忘录应用,平板的***运行聊天应用,笔记本电脑外接的鼠标可以穿越到平板上。若用户选择使用笔记本电脑外接的鼠标控制平板,在用户1使用笔记本外接的鼠标控制平板时,用户2可以同时使用笔记本电脑的键盘对备忘录应用进行输入操作,两个用户可以同时操作,互不干扰。可以理解,图4以两个具有独立***的设备进行协同为例进行介绍,本申请不限定处于协同模式的设备个数。
图4B示出了本申请实施例提供的另一组GUI。
如图4B所示,笔记本电脑和平板可以处于协同模式,笔记本电脑和平板分别运行各自的***,此外,平板可以外接显示器。示例性的,笔记本电脑和平板可以通过有线连接或者无线连接,平板和外
接显示器也可以通过有线连接或无线连接,输入设备和笔记本电脑、平板、或外接显示器之间也可以通过有线连接或无线连接。笔记本电脑的***运行备忘录应用,平板的***运行聊天应用,同时,平板运行的游戏应用可以在外接显示器显示。在该场景中,若用户选择使用笔记本电脑外接的鼠标控制平板,在用户1使用笔记本外接的鼠标控制平板时,用户2可以同时使用笔记本电脑的键盘对备忘录应用进行输入操作,同时,用户3可以通过游戏手柄控制外接显示器上显示的游戏应用,三个用户可以同时操作,互不干扰。可以理解,在该场景中,笔记本电脑和平板电脑运行独立的***,笔记本电脑和平板电脑均可以外接一个或多个显示器,本申请对此不做限定。
一些实施例中,用户可以通过交互界面关联输入设备和对应的设备。例如,图3所示实施例中,当用户将外接鼠标接入笔记本电脑时,用户可以通过配置界面选择外接鼠标用于控制笔记本电脑或显示器,同理,当用户将游戏手柄与笔记本电脑或显示器连接时,用户也可以通过配置界面选择游戏手柄用于控制笔记本电脑或显示器。再例如,图4A所示实施例中,当用户将外接鼠标接入笔记本电脑时,用户可以通过配置界面选择外接鼠标用于控制笔记本电脑或平板。
另一些实施例中,可以根据场景自行关联输入设备对应的设备。例如,图3所示实施例中,当用户将游戏手柄与笔记本电脑或显示屏连接时,由于显示屏上此时显示的界面为游戏应用界面,因此,笔记本电脑可以默认将游戏手柄与显示器关联。
通过本申请实施例提供的方法,输入设备可以与其需要控制的设备或屏幕相关联。进而,多个用户可以分别操控多个设备或屏幕,互不干扰。本申请实施例提供的方法可以应用于一个设备控制多个屏幕的场景,例如一个设备外接显示器的场景(如图3所示)、一个***控制车机多个显示屏的场景等。本申请实施例提供的方法还可以应用于多个设备分别控制多个屏幕的场景,例如多设备协同工作的场景(如图4A所示)。本申请实施例提供的方法还可以应用于多个设备分别控制各自的屏幕,且至少一个设备外接显示器的场景(如图4B所示),本申请对此不做限定。
以上结合图3、图4A和图4B介绍了本申请实施例中的两组GUI,下面结合附图介绍本申请实施例的技术方案的实现过程。
图5示出了一个电子设备控制多个屏幕场景下电子设备的模块之间的交互示意图。例如,图3所示通过一个设备控制多个屏幕的场景。其中,电子设备的硬件结构和软件结构可以参考图1和图2中关于电子设备100的相关描述。
一些实施例中,如图5所示,电子设备可以包括多设备输入管理模块、输入子***、屏幕管理子***和屏幕显示子***。其中,多设备输入管理模块可以用于管理输入设备和屏幕之间的对应关系、管理不同屏幕上的光标等。输入(input)子***可以用于负责管理输入设备、进行输入事件处理。屏幕管理子***可以用于负责显示屏的处理。图形显示子***可以负责呈现在屏幕上绘制内容。如图5所示,该方法可以包括但不限于如下步骤:
S501:多设备输入管理模块从屏幕管理子***获取屏幕信息。
其中,屏幕信息可以包括当前***中所有屏幕的信息。通常,各个屏幕分别具有不同的屏幕标识(display ID),通过指定屏幕标识来决定显示在哪个屏幕上,这样就实现了多屏幕的显示。
示例性的,屏幕信息可以包括当前***中所有屏幕的屏幕标识,多设备输入管理模块可以从屏幕管理子***获取当前***中所有屏幕对应的屏幕标识。可选的,屏幕管理子***可以实时或间隔性地监测屏幕的变化,例如,新增屏幕、移除当前屏幕等。当屏幕发生变化时,多设备输入管理模块可以从屏幕管理子***获取更新的屏幕信息。
再示例性的,屏幕信息还可以包括当前***中所有屏幕的配置信息,例如尺寸、分辨率等。可选的,当前屏幕的配置(例如尺寸、分辨率)发生变化时,多设备输入管理模块还可以从屏幕管理子***获取更新的屏幕信息。
S502:多设备输入管理模块从输入子***获取输入设备信息。
其中,输入设备信息可以包括当前***中所有输入设备的信息。示例性的,输入设备信息可以包括当前***中所有输入设备的标识、类型信息等。多设备输入管理模块可以根据输入设备的类型(例如:鼠标、键盘等)对输入设备进行分类管理。可选的,输入子***可以实时或间隔性地监测输入设备的变化,例如,新增输入设备、移除当前输入设备等。当输入设备发生变化时,多设备输入管理模块可以从输入子***获取更新的输入设备信息。
再示例性的,输入设备信息还可以包括当前***中所有输入设备的配置信息,例如输入设备是否
支持光标操作等。可选的,当输入设备的配置发生变化时,多设备输入管理模块还可以从输入子***获取更新的输入设备信息。
可以理解,步骤S501和步骤S502可以同时执行,也可以先后执行,本申请对步骤S501和步骤S502的执行先后顺序不作限制。
S503:多设备输入管理模块确定屏幕与输入设备之间的关联关系。
一种实现方式中,用户可以通过配置界面手动配置屏幕与输入设备之间的关联关系,进而,多设备输入管理模块可以根据用户的设置获取屏幕与输入设备之间的关联关系。另一种实现方式中,***可以根据场景、用户习惯等自动确定屏幕与输入设备之间的关联关系,进而,多设备输入管理模块可以确定屏幕与输入设备之间的关联关系。本申请对关联屏幕与输入设备的过程和方式不做限定。
可选的,用户可以通过配置界面配置不同输入设备或不同屏幕的光标样式,进而,多设备输入管理模块可以根据用户的设置获取不同输入设备或不同屏幕的光标样式。其中,光标样式可以包括光标显示的形状、颜色等。这样,用户可以通过不同的光标样式来区分不同的屏幕,提高了多用户使用的效率。
S504:输入子***从多设备输入管理模块获取屏幕与输入设备之间的关联关系。
可选的,输入子***还可以从多设备输入管理模块获取不同输入设备或不同屏幕的光标样式。
S505:当输入设备为光标属性且该输入设备关联的屏幕上不存在光标时,输入子***在该输入设备关联的屏幕上创建光标。
其中,输入设备为光标属性可以理解为输入设备支持光标操作。示例性的,输入子***可以根据输入设备的特征确定该输入设备是否支持光标操作,例如,当输入设备带有INPUT_DEVICE_CLASS_CURSOR特征时,可以认为该输入设备支持光标操作。
可以理解,由于每个屏幕上只需要显示一个光标,因此,当该输入设备关联的屏幕上原来就存在光标时,输入子***可以不需要再创建光标,当该输入设备关联的屏幕上原来不存在光标时,输入子***可以在该输入设备关联的屏幕上创建光标。这样,可以使得每个屏幕上最多只有一个光标,避免干扰用户操作。
S506:输入子***将事件分发到图形显示子***。
S507:图形显示子***在输入设备对应的屏幕上显示光标。
可选的,图形显示子***可以根据不同输入设备或不同屏幕对应的光标样式,在该输入设备对应的屏幕上以相应的光标样式显示光标。
通过上述步骤,可以建立输入设备与屏幕之间的对应关系。进一步地,该方法还可以包括:
S508:输入子***检测到第一输入事件,并确定第一输入事件作用的屏幕。
示例性的,当用户操作第一输入设备时,输入子***可以检测到与该第一输入设备对应的第一输入事件。
一种可能的实现方式中,步骤S504中,输入子***可以从多设备输入管理模块获取屏幕与输入设备之间的关联关系,进而,步骤S508中,输入子***可以根据屏幕与输入设备之间的关联关系、以及第一输入事件对应的第一输入设备,确定该第一输入事件作用的屏幕。
另一种可能的实现方式中,当输入子***检测到第一输入事件后,可以将该第一输入事件发送到多设备输入管理模块。多设备输入管理模块可以根据屏幕与输入设备之间的关联关系、以及第一输入事件对应的第一输入设备,确定该第一输入事件作用的屏幕。进而,多设备输入管理模块可以将该第一输入事件作用的屏幕发送至输入子***,从而,输入子***可以获取到该第一输入事件作用的屏幕。可选的,在该实现方式中,步骤S504中,输入子***可以不需要从多设备输入管理模块获取屏幕与输入设备之间的关联关系。
S509:输入子***将输入事件分发到图形显示子***。
S510:图形显示子***在输入设备对应的屏幕上显示光标。
可选的,图形显示子***可以根据不同输入设备或不同屏幕对应的光标样式,在该输入设备对应的屏幕上以相应的光标样式显示光标。
另一些实施例中,电子设备可以包括输入子***、屏幕管理子***和屏幕显示子***。图5所示的多设备输入管理模块的操作可以由输入子***完成,例如,多设备输入管理模块可以为输入子***中的一个模块。示例性的,输入子***可以从屏幕管理子***获取当前***中的所有屏幕信息,此外,
输入子***可以确定屏幕与输入设备之间的关联关系。当输入子***检测到第一输入事件时,输入子***可以根据其获取的屏幕与输入设备之间的关联关系,确定第一输入事件作用的屏幕,并将输入事件分发到图形显示子***。
图6示出了本申请实施例提供的一种显示方法的示意性流程图,该方法可以由第一电子设备执行,该第一电子设备可以图5所示的电子设备。该方法包括:
S601:第一电子设备确定第一输入设备与第一屏幕之间的关联关系。
其中,该第一屏幕为第一电子设备的屏幕或者第一电子设备的外接屏幕,也就是说,该第一屏幕由第一电子设备控制。
示例性的,第一电子设备可以根据用户的配置确定屏幕与输入设备之间的关联关系,例如,响应于用户的第一操作,第一电子设备确定第一输入设备与第一屏幕之间的关联关系,其中,第一操作可以为用户在界面上的配置操作。或者,第一电子设备也可以根据场景、用户习惯等自动确定屏幕与输入设备之间的关联关系,本申请对第一电子设备获取屏幕与输入设备之间关联关系的过程和方式不做限定。
例如,如图5所示,可以由第一电子设备中的多设备输入管理模块确定屏幕与输入设备之间的关联关系。其中,多设备输入管理模块可以为输入子***中的模块,也可以为第一电子设备中独立的模块。
一些实施例中,步骤S601之前,第一电子设备还可以获取屏幕信息和输入设备信息。例如,如图5所示,第一电子设备中的多设备输入管理模块可以获取屏幕信息和输入设备信息。其中,屏幕信息可以包括第一电子设备的屏幕和外接屏幕的信息,输入设备信息可以包括第一电子设备的所有输入设备的信息。示例性的,屏幕信息包括上述第一屏幕的信息,例如,第一屏幕的屏幕标识、配置信息等。输入设备信息包括上述第一输入设备的信息,例如,上述第一输入设备的标识、配置信息等。
一些实施例中,第一电子设备控制的屏幕(即第一电子设备的屏幕或者第一电子设备的外接屏幕)发生新增、移除或配置变化,第一电子设备可以更新屏幕信息。第一电子设备的输入设备发生新增、移除或配置变化时,第一电子设备可以更新输入设备信息。
S602:第一电子设备检测到第一输入事件,其中,第一输入事件对应的输入设备为第一输入设备。
S603:第一电子设备根据第一输入设备与第一屏幕之间的关联关系,确定第一输入事件作用的屏幕为第一屏幕。
例如,如图5所示,第一电子设备中的输入子***在检测到第一输入事件时,可以确定第一输入事件作用的屏幕。
S604:第一电子设备在第一屏幕上显示第一光标。
示例性的,第一电子设备将第一输入事件分发到第一屏幕,使得第一屏幕上显示第一光标。
一些实施例中,第一电子设备检测到第二输入事件,确定第二输入事件作用的屏幕为第二屏幕,第一电子设备可以将第二输入事件分发到第二屏幕,使得第二屏幕上显示第二光标。可选的,第一光标和第二光标的样式可以相同或不同。其中,该第二屏幕为第一电子设备的屏幕或者第一电子设备的外接屏幕,第二屏幕与第一屏幕不同。
图7示出了第一电子设备和第二电子设备处于协同模式时模块之间的一种交互示意图。例如,图4A或图4B所示通过多个设备协同工作的场景。其中,第一电子设备和第二电子设备的硬件结构和软件结构可以参考图1和图2中关于电子设备100的相关描述。
一些实施例中,如图7所示,第一电子设备和第二电子设备可以通过有线连接或无线连接,第一电子设备可以包括多设备输入管理模块、输入子***、屏幕管理子***和屏幕显示子***。第二电子设备可以包括多设备输入管理模块、输入子***和屏幕显示子***。其中,各个模块的作用可以参见图5所示实施例的相关描述。如图7所示,该方法可以包括但不限于如下步骤:
S701:第一电子设备的多设备输入管理模块从第一电子设备的屏幕管理子***获取第一电子设备的屏幕信息。
示例性的,屏幕信息可以包括第一电子设备的所有屏幕的信息。第一电子设备的所有屏幕可以包括第一电子设备的屏幕和第一电子设备的外接屏幕。可选的,当第一电子设备的屏幕新增、移除或配置发生变化时,第一电子设备的多设备输入管理模块可以从第一电子设备的屏幕管理子***获取更新的屏幕信息。
S702:第一电子设备的多设备输入管理模块从第一电子设备的输入子***获取输入设备信息。
其中,输入设备信息可以包括第一电子设备的所有输入设备的信息。可选的,当输入设备新增、移除或者配置发生变化时,第一电子设备的多设备输入管理模块可以从第一电子设备的输入子***获取更新的输入设备信息。
可以理解,步骤S701和步骤S702可以同时执行,也可以先后执行,本申请对步骤S701和步骤S702的执行先后顺序不作限制。
S703:第一电子设备的多设备输入管理模块确定输入设备与第一电子设备的屏幕或第二电子设备关联。
例如,第一电子设备可以具有屏幕1和屏幕2,第二电子设备可以具有屏幕3和屏幕4。第一电子设备的多设备输入管理模块可以确定输入设备1与第一电子设备的屏幕1关联、确定输入设备2与第一电子设备的屏幕2关联、确定输入设备3和输入设备4与第二电子设备关联。
同样,用户可以通过配置界面手动配置屏幕与输入设备之间的关联关系,或者,第一电子设备可以根据场景、用户习惯等自动确定屏幕与输入设备之间的关联关系,进而,多设备输入管理模块可以确定屏幕与输入设备之间的关联关系。本申请对关联屏幕与输入设备的过程和方式不做限定。
可选的,用户还可以通过配置界面配置不同输入设备或不同屏幕的光标样式,或者,第一电子设备可以为不同输入设备或不同屏幕自动设置不同的光标样式。
S704:当输入设备分配给第二电子设备时,第一电子设备的多设备输入管理模块向第二电子设备的多设备输入管理模块发送第一消息。
S705:第二电子设备的多设备输入管理模块接收到第一消息后,创建虚拟输入设备。
示例性的,第二电子设备的多设备输入管理模块可以创建该虚拟输入设备,第二电子设备的输入子***可以对该虚拟输入设备进行管理。
S706:第二电子设备的输入子***将输入事件分发到第二电子设备的图形显示子***。
S707:第二电子设备的图形显示子***在第二电子设备的屏幕上显示光标。
S708:第一电子设备的输入子***从第一电子设备的多设备输入管理模块获取屏幕与输入设备之间的关联关系。
示例性的,第一电子设备的输入子***可以从第一电子设备的多设备输入管理模块获取输入设备和第一电子设备的屏幕或第二电子设备之间的关联关系。可选的,第一电子设备的输入子***还可以从第一电子设备的多设备输入管理模块获取不同输入设备的光标样式。
S709:当输入设备为光标属性且该输入设备关联的第一电子设备的屏幕上不存在光标时,第一电子设备的输入子***在该输入设备关联的第一电子设备的屏幕上创建光标。
S710:第一电子设备的输入子***将事件分发到第一电子设备的图形显示子***。
S711:第一电子设备的图形显示子***在输入设备对应的屏幕上显示光标。
可选的,第一电子设备的图形显示子***可以根据不同输入设备或不同屏幕对应的光标样式,在该输入设备对应的第一电子设备的屏幕上以相应的光标样式显示光标。
可以理解,本申请对步骤S705-S707、以及步骤S708-S711的执行先后顺序不作限制。
通过上述步骤,可以建立输入设备与第一电子设备的屏幕或第二电子设备之间的对应关系。进一步地,该方法还可以包括:
S712:第一电子设备的输入子***检测到第一输入事件,并确定第一输入事件作用的屏幕。
一种可能的实现方式中,步骤S708中,第一电子设备的输入子***可以从第一电子设备的多设备输入管理模块获取屏幕与输入设备之间的关联关系,进而,步骤S712中,第一电子设备的输入子***可以根据屏幕与输入设备之间的关联关系、以及第一输入事件对应的第一输入设备,确定该第一输入事件作用的屏幕。
另一种可能的实现方式中,当第一电子设备的输入子***检测到第一输入事件后,可以将该第一输入事件发送到第一电子设备的多设备输入管理模块。第一电子设备的多设备输入管理模块可以根据屏幕与输入设备之间的关联关系、以及第一输入事件对应的第一输入设备,确定该第一输入事件作用的屏幕。进而,第一电子设备的多设备输入管理模块可以将该第一输入事件作用的屏幕发送至输入子***,从而,第一电子设备的输入子***获取到该第一输入事件作用的屏幕。
示例性的,第一电子设备的输入子***检测到第一输入事件,可以确定该第一输入事件作用于第
一电子设备的某一屏幕、或者该第一输入事件作用于第二电子设备。步骤S712中,当第一电子设备确定该第一输入事件作用于第二电子设备时,该方法还可以包括以下步骤S713-S716。
S713:当第一输入事件作用的屏幕为第二电子设备时,向第二电子设备的多设备输入管理模块发送第一输入事件。
S714:第二电子设备的多设备输入管理模块将第一输入事件发送给第二电子设备的输入子***管理的虚拟输入设备。
S715:第二电子设备的输入子***将第一输入事件分发到第二电子设备的图形显示子***。
S716:第二电子设备的图形显示子***在第二电子设备的屏幕上显示光标。
例如,当第一输入事件对应的第一输入设备为输入设备3时,第二电子设备在第二电子设备的屏幕(例如屏幕3或屏幕4)上显示光标。
步骤S712中,当第一电子设备确定该第一输入事件作用于第一电子设备的某一屏幕时,该方法还可以包括以下步骤S717-S718。
S717:当第一输入事件作用的屏幕为第一电子设备的屏幕时,第一电子设备的输入子***将输入事件分发到图形显示子***。
S718:第一电子设备的图形显示子***在输入设备对应的屏幕上显示光标。
例如,当第一输入事件对应的第一输入设备为输入设备1时,第一电子设备在屏幕1上显示光标,当第一输入事件对应的第一输入设备为输入设备2时,第一电子设备在屏幕2上显示光标。
可选的,步骤S716和/或步骤S718中,图形显示子***可以根据不同输入设备对应的光标样式,在该输入设备对应的屏幕上以相应的光标样式显示光标。
另一些实施例中,第一电子设备可以包括输入子***、屏幕管理子***和屏幕显示子***。图7所示的第一电子设备的多设备输入管理模块的操作可以由第一电子设备的输入子***完成,例如,多设备输入管理模块可以为输入子***中的一个模块。
图8示出了第一电子设备和第二电子设备处于协同模式时模块之间的一种交互示意图。例如,图4A或图4B所示通过多个设备协同工作的场景。
一些实施例中,如图8所示,第一电子设备和第二电子设备可以通过有线连接或无线连接,第一电子设备可以包括多设备输入管理模块、输入子***、屏幕管理子***和屏幕显示子***。第二电子设备可以包括多设备输入管理模块、输入子***、屏幕管理子***和屏幕显示子***。其中,各个模块的作用可以参见图5所示实施例的相关描述。如图8所示,该方法可以包括但不限于如下步骤:
S801a:第一电子设备的多设备输入管理模块从第一电子设备的屏幕管理子***获取第一电子设备的屏幕信息。
S801b:第二电子设备的多设备输入管理模块从第二电子设备的屏幕管理子***获取第二电子设备的屏幕信息。
其中,第一电子设备的多设备输入管理模块和第二电子设备的多设备输入管理模块获取屏幕信息的过程,可以参见图5所示实施例中第一电子设备的多设备输入管理模块获取屏幕信息的相关描述,本申请在此不予赘述。
S802:第一电子设备的多设备输入管理模块从第二电子设备的多设备输入管理模块获取第二电子设备的屏幕信息。
示例性的,第一电子设备的多设备输入管理模块可以通过第一电子设备和第二电子设备之间的有线或无线连接,从第二电子设备的多设备输入管理模块获取第二电子设备的屏幕信息。
S803a:第一电子设备的多设备输入管理模块从第一电子设备的输入子***获取第一电子设备的输入设备信息。
S803b:第二电子设备的多设备输入管理模块从第二电子设备的输入子***获取第二电子设备的输入设备信息。
其中,第一电子设备的输入管理模块和第二电子设备的多设备输入管理模块获取输入设备信息的过程,可以参见图5所示实施例中第一电子设备的多设备输入管理模块获取输入设备信息的相关描述,本申请在此不予赘述。
可以理解,本申请对第一电子设备和第二电子设备获取屏幕信息和输入设备信息的先后顺序不作限定。
S804a:第一电子设备的多设备输入管理模块确定输入设备与第一电子设备的屏幕或第二电子设备的屏幕关联。
一种实现方式中,上述步骤S803a和S803b中,第一电子设备的多设备输入管理模块可以获取其对应的输入设备的信息,第二电子设备的多设备输入管理模块也可以获取其对应的输入设备的信息。
进而,步骤S804a中,第一电子设备的多设备输入管理模块确定第一电子设备的输入设备与第一电子设备的屏幕或第二电子设备的屏幕关联。
例如,第一电子设备可以具有屏幕1和屏幕2,第一电子设备具有输入设备1和输入设备2,第二电子设备可以具有屏幕3和屏幕4,第二电子设备具有输入设备3和输入设备4。第一电子设备的多设备输入管理模块可以确定输入设备1与第一电子设备的屏幕1关联、确定输入设备2与第一电子设备的屏幕2关联。
另一种实现方式中,第一电子设备的多设备输入管理模块可以获取第一电子设备和第二电子设备连接的所有输入设备的信息。例如,在步骤S803b之后,第一电子设备的多设备输入管理模块可以从第二电子设备的多设备输入管理模块获取第二电子设备的输入设备信息。
进而,步骤S804a中,第一电子设备的多设备输入管理模块确定所有的输入设备与第一电子设备的屏幕或第二电子设备的屏幕关联。
又一种实现方式中,第二电子设备的多设备输入管理模块也可以获取第一电子设备和第二电子设备连接的所有输入设备的信息。
例如,第一电子设备可以具有屏幕1和屏幕2,第一电子设备具有输入设备1和输入设备2,第二电子设备可以具有屏幕3和屏幕4,第二电子设备具有输入设备3和输入设备4。第一电子设备的多设备输入管理模块可以确定输入设备1与第一电子设备的屏幕1关联、确定输入设备2与第一电子设备的屏幕2关联、确定输入设备3与第二电子设备的屏幕3关联、确定输入设备4与第二电子设备的屏幕4关联。
S804b:第二电子设备的多设备输入管理模块确定第二电子设备的输入设备与第一电子设备的屏幕或第二电子设备的屏幕关联。
例如,第二电子设备的多设备输入管理模块可以确定输入设备3与第二电子设备的屏幕3关联、输入设备4与第二电子设备的屏幕4关联。
S805:当输入设备分配给第二电子设备的屏幕时,第一电子设备的多设备输入管理模块向第二电子设备的多设备输入管理模块发送第一消息。
S806:第二电子设备的多设备输入管理模块接收到第一消息后,创建虚拟输入设备。
示例性的,第二电子设备的多设备输入管理模块可以创建该虚拟输入设备,第二电子设备的输入子***可以对该虚拟输入设备进行管理。
S807:第二电子设备的输入子***向第二电子设备的多设备输入管理模块获取屏幕与输入设备之间的对应关系。
示例性的,第二电子设备的输入子***可以从第二电子设备的多设备输入管理模块获取分发到第二电子设备的屏幕的输入设备和第二电子设备的屏幕之间的关联关系。可选的,第二电子设备的输入子***还可以从第二电子设备的多设备输入管理模块获取不同输入设备的光标样式。
S808:当输入设备为光标属性且该输入设备关联的第二电子设备的屏幕上不存在光标时,第二电子设备的输入子***在该输入设备关联的第二电子设备的屏幕上创建光标。
S809:第二电子设备的输入子***将事件分发到第二电子设备的图形显示子***。
S810:第二电子设备的图形显示子***在输入设备对应的屏幕上显示光标。
可选的,第二电子设备的图形显示子***可以根据不同输入设备或不同屏幕对应的光标样式,在该输入设备对应的第二电子设备的屏幕上以相应的光标样式显示光标。
S811:第一电子设备的输入子***向第一电子设备的多设备输入管理模块获取屏幕与输入设备之间的关联关系。
示例性的,第一电子设备的输入子***可以从第一电子设备的多设备输入管理模块获取第一电子设备的输入设备和第一电子设备的屏幕或第二电子设备的屏幕之间的关联关系。再示例性的,第一电子设备的输入子***可以从第一电子设备的多设备输入管理模块获取所有的输入设备和第一电子设备的屏幕或第二电子设备的屏幕之间的关联关系。可选的,第一电子设备的输入子***还可以从第一电
子设备的多设备输入管理模块获取不同输入设备的光标样式。
S812:当输入设备为光标属性且该输入设备关联的第一电子设备的屏幕上不存在光标时,第一电子设备的输入子***在该输入设备关联的第一电子设备的屏幕上创建光标。
S813:第一电子设备的输入子***将事件分发到第一电子设备的图形显示子***。
S814:第一电子设备的图形显示子***在输入设备对应的屏幕上显示光标。
可选的,第一电子设备的图形显示子***可以根据不同输入设备或不同屏幕对应的光标样式,在该输入设备对应的第一电子设备的屏幕上以相应的光标样式显示光标。
可以理解,本申请对步骤S807-S810、以及步骤S811-S814的执行先后顺序不作限制。
一些实施例中,步骤S804a中,第一电子设备的多设备输入管理模块确定所有的输入设备与第一电子设备的屏幕或第二电子设备的屏幕关联时,第一电子设备可以作为主设备对所有输入设备进行管理。此时,步骤S805中,第一电子设备可以对第一电子设备和第二电子设备的输入设备进行分配。步骤S811中,第一电子设备的输入子***可以从第一电子设备的多设备输入管理模块获取所有的输入设备和第一电子设备的屏幕或第二电子设备的屏幕之间的关联关系。
另一些实施例中,步骤S804a中,第一电子设备的多设备输入管理模块确定第一电子设备的输入设备与第一电子设备的屏幕或第二电子设备的屏幕关联,步骤S804b中,第二电子设备的多设备输入管理模块确定第二电子设备的输入设备与第一电子设备的屏幕或第二电子设备的屏幕关联。此时,步骤S805中,第一电子设备可以对第一电子设备的输入设备进行分配。步骤S811中,第一电子设备的输入子***可以从第一电子设备的多设备输入管理模块获取第一电子设备的输入设备和第一电子设备的屏幕或第二电子设备的屏幕之间的关联关系。同理,第二电子设备也可以对第二电子设备的输入设备进行分配。关于第二电子设备对第二电子设备的输入设备进行分配的过程,也可以参照上述实施例中的相关表述,本申请在此不予赘述。
通过上述步骤,可以建立输入设备与第一电子设备的屏幕或第二电子设备的屏幕之间的对应关系。进一步地,该方法还可以包括:
S815:第一电子设备的输入子***检测到第一输入事件,并确定第一输入事件作用的屏幕。
其中,第一电子设备的输入子***确定第一输入事件作用的屏幕的具体过程,可以参见图7所示实施例中的相关描述,本申请在此不予赘述。
示例性的,第一电子设备的输入子***检测到第一输入事件,可以确定该第一输入事件作用于第一电子设备的某一屏幕、或者该第一输入事件作用于第二电子设备的某一屏幕。步骤S815中,当第一电子设备确定该第一输入事件作用于第二电子设备的某一屏幕时,该方法还可以包括以下步骤S816-S820。
S816:当第一输入事件作用的屏幕为第二电子设备的屏幕时,向第二电子设备的多设备输入管理模块发送第一输入事件。
S817:第二电子设备的多设备输入管理模块将第一输入事件发送给第二电子设备的输入子***管理的虚拟输入设备。
S818:第二电子设备的输入子***确定第一输入事件作用的屏幕。
示例性的,第二电子设备中存储有分发到第二电子设备的屏幕的输入设备和第二电子设备的屏幕之间的关联关系,进而,第二电子设备的输入子***可以确定第一输入事件作用的第二电子设备的屏幕。
其中,第二电子设备的输入子***确定第一输入事件作用的屏幕的具体过程,可以参见图7所示实施例中第一电子设备的输入子***确定第一输入事件作用的屏幕的相关描述,本申请在此不予赘述。
S819:第二电子设备的输入子***将第一输入事件分发到第二电子设备的图形显示子***。
S820:第二电子设备的图形显示子***在输入设备对应的第二电子设备的屏幕上显示光标。
例如,当第一输入事件对应的第一输入设备为输入设备3时,第二电子设备在第二电子设备的屏幕3上显示光标,当第一输入事件对应的第一输入设备为输入设备4时,第二电子设备在第二电子设备的屏幕4上显示光标。
步骤S815中,当第一电子设备确定该第一输入事件作用于第一电子设备的某一屏幕时,该方法还可以包括以下步骤S821-S822。
S821:当第一输入事件作用的屏幕为第一电子设备的屏幕时,第一电子设备的输入子***将输入
事件分发到第一电子设备的图形显示子***。
S822:第一电子设备的图形显示子***在输入设备对应的屏幕上显示光标。
例如,当第一输入事件对应的第一输入设备为输入设备1时,第一电子设备在屏幕1上显示光标,当第一输入事件对应的第一输入设备为输入设备2时,第一电子设备在屏幕2上显示光标。
可选的,步骤S820和/或步骤S822中,图形显示子***可以根据不同输入设备对应的光标样式,在该输入设备对应的屏幕上以相应的光标样式显示光标。
另一些实施例中,第一电子设备可以包括输入子***、屏幕管理子***和屏幕显示子***。图8所示的第一电子设备的多设备输入管理模块的操作可以由第一电子设备的输入子***完成,例如,多设备输入管理模块可以为输入子***中的一个模块。同理,第二电子设备也可以包括输入子***、屏幕管理子***和屏幕显示子***。图8所示的第二电子设备的多设备输入管理模块的操作可以由第二电子设备的输入子***完成。
图7所示实施例中,第一电子设备可以将输入设备与第一电子设备的某一屏幕(例如第一电子设备的屏幕、或第一电子设备的外接屏幕)或第二电子设备关联。图8所示实施例中,第一电子设备可以将输入设备与第一电子设备的某一屏幕(例如第一电子设备的屏幕、或第一电子设备的外接屏幕)或第二电子设备的某一屏幕(例如第二电子设备的屏幕、或第二电子设备的外接屏幕)关联。
可以理解,一些实施例中,电子设备可以同时使用上述图7和图8所示实施例中的方法。例如,第一电子设备将输入设备1与第一电子设备的某一屏幕或第二电子设备关联,第一电子设备将输入设备2与第一电子设备的某一屏幕或第二电子设备的某一屏幕关联。又例如,第一电子设备将输入设备1与第一电子设备的某一屏幕或第二电子设备关联,第一电子设备将输入设备2与第一电子设备的某一屏幕或第三电子设备的某一屏幕关联。本申请对此不作限定。
图9示出了本申请实施例提供的另一种显示方法的示意性流程图,该方法可以由第一电子设备和第二电子设备执行。该方法包括:
S901:第一电子设备确定第一输入设备与第二电子设备之间的关联关系。
例如,如图7所示,可以由第一电子设备中的多设备输入管理模块确定屏幕与输入设备之间的关联关系。其中,多设备输入管理模块可以为输入子***中的模块,也可以为第一电子设备中独立的模块。
S902:第一电子设备检测到第一输入事件,其中,第一输入事件对应的输入设备为第一输入设备。
S903:第一电子设备根据上述关联关系,确定第一输入事件作用于第二电子设备。
S904:第一电子设备向第二电子设备发送第一输入事件。
S905:第二电子设备显示第一光标。
一些实施例中,第一电子设备还可以确定第二输入设备与第一屏幕之间的关联关系,其中,该第一屏幕为第一电子设备的屏幕或者第一电子设备的外接屏幕。当第一电子设备检测到第二输入设备对应的第二输入事件时,第一电子设备可以根据第二输入设备与第一屏幕之间的关联关系,确定第二输入事件作用的屏幕为第一屏幕,进而,第一电子设备可以在第一屏幕上显示第二光标。可选的,第一光标和第二光标的样式可以不同。
图10示出了本申请实施例提供的另一种显示方法的示意性流程图,该方法可以由第一电子设备和第二电子设备执行。该方法包括:
S1001:第一电子设备确定第一输入设备与第二屏幕之间的关联关系。
其中,第二屏幕为第二电子设备的屏幕或者第二电子设备的外接屏幕。
例如,如图8所示,可以由第一电子设备中的多设备输入管理模块确定屏幕与输入设备之间的关联关系。其中,多设备输入管理模块可以为输入子***中的模块,也可以为第一电子设备中独立的模块。
S1002:第一电子设备检测到第一输入事件,其中,第一输入事件对应的输入设备为第一输入设备。
S1003:第一电子设备根据上述关联关系,确定第一输入事件作用的屏幕为第二屏幕。
S1004:第一电子设备向第二电子设备发送第一输入事件。
S1005:第二电子设备根据第一输入设备与第二屏幕之间的关联关系,确定第一输入事件作用的屏幕为第二屏幕。
S1006:第二电子设备在第二屏幕上显示第一光标。
一些实施例中,第一电子设备还可以确定第二输入设备与第一屏幕之间的关联关系,其中,该第一屏幕为第一电子设备的屏幕或者第一电子设备的外接屏幕。当第一电子设备检测到第二输入设备对应的第二输入事件时,第一电子设备可以根据第二输入设备与第一屏幕之间的关联关系,确定第二输入事件作用的屏幕为第一屏幕,进而,第一电子设备可以在第一屏幕上显示第二光标。可选的,第一光标和第二光标的样式可以不同。
本申请提供的实施例中,通过将输入设备与对应的屏幕或设备相关联,可以使得多个用户同时使用多个输入设备分别控制多个屏幕,互不干扰,从而提高了使用效率。
图11为本申请实施例提供的一种显示装置的组成示意图。如图11所示,该装置1100可以应用于电子设备,该装置1100可以包括:确定单元1101、检测单元1102和显示单元1103。
一些实施例中,确定单元1101,用于确定第一输入设备与第一屏幕之间的关联关系,其中,第一屏幕为第一电子设备的屏幕或者第一电子设备的外接屏幕。
检测单元1102,用于检测到第一输入事件,其中,第一输入事件对应的输入设备为第一输入设备。
确定单元1101,还用于根据关联关系,确定第一输入事件作用的屏幕为第一屏幕。
显示单元1103,用于在第一屏幕上显示第一光标。
另一些实施例中,该装置1100还可以包括发送单元1104。
确定单元1101,用于确定第一输入设备与第二电子设备之间的关联关系。
检测单元1102,用于检测到第一输入事件,其中,第一输入事件对应的输入设备为第一输入设备;
确定单元1101,还用于根据关联关系,确定第一输入事件作用于第二电子设备。
发送单元1104,用于向第二电子设备发送第一输入事件,使得第二电子设备显示第一光标。
又一些实施例中,确定单元1101,用于确定第一输入设备与第二屏幕之间的关联关系,其中,第二屏幕为第二电子设备的屏幕或者第二电子设备的外接屏幕。
检测单元1102,用于检测到第一输入事件,其中,第一输入事件对应的输入设备为第一输入设备。
确定单元1101,还用于根据关联关系,确定第一输入事件作用的屏幕为第二屏幕。
发送单元1104,用于向第二电子设备发送第一输入事件,使得第二电子设备根据关联关系确定第一输入事件作用的屏幕为第二屏幕、并在第二屏幕上显示第一光标。
有关上述确定单元1101、检测单元1102、显示单元1103和发送单元1104更详细的描述可以直接参考上述实施例中相关描述直接得到,这里不加赘述。
本申请实施例还提供一种显示装置,该装置可以应用于电子设备,如上述实施例中的电子设备(如手机)。该装置可以包括:处理器;用于存储处理器可执行指令的存储器;其中,处理器被配置为执行指令时使得该显示装置实现上述方法实施例中电子设备(如手机)执行的各个功能或者步骤。
本申请实施例还提供一种电子设备(该电子设备可以是电子设备,如可以为上述实施例中的手机),该电子设备可以包括:显示屏、存储器和一个或多个处理器。该显示屏、存储器和处理器耦合。该存储器用于存储计算机程序代码,该计算机程序代码包括计算机指令。当处理器执行计算机指令时,电子设备可执行上述方法实施例中电子设备(如手机)执行的各个功能或者步骤。当然,该电子设备包括但不限于上述显示屏、存储器和一个或多个处理器。例如,该电子设备的结构可以参考图5所示的手机的结构。
本申请实施例还提供一种芯片***,该芯片***可以应用于电子设备,如前述实施例中的电子设备(如手机)。如图12所示,该芯片***包括至少一个处理器1201和至少一个接口电路1202。该处理器1201可以是上述电子设备中的处理器。处理器1201和接口电路1202可通过线路互联。该处理器1201可以通过接口电路1202从上述电子设备的存储器接收并执行计算机指令。当计算机指令被处理器1201执行时,可使得电子设备执行上述实施例中手机执行的各个步骤。当然,该芯片***还可以包含其他分立器件,本申请实施例对此不作具体限定。
本申请实施例还提供一种计算机可读存储介质,用于存储电子设备,如上述电子设备(如手机)运行的计算机指令。
本申请实施例还提供一种计算机程序产品,包括电子设备,如上述电子设备(如手机)运行的计算机指令。
通过以上实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模
块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
以上内容,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。
Claims (28)
- 一种显示方法,其特征在于,所述方法应用于第一电子设备中,所述方法包括:所述第一电子设备确定第一输入设备与第一屏幕之间的关联关系,其中,所述第一屏幕为所述第一电子设备的屏幕或者所述第一电子设备的外接屏幕;所述第一电子设备检测到第一输入事件,其中,所述第一输入事件对应的输入设备为所述第一输入设备;所述第一电子设备根据所述关联关系,确定所述第一输入事件作用的屏幕为第一屏幕;所述第一电子设备在所述第一屏幕上显示第一光标。
- 根据权利要求1所述的方法,其特征在于,所述第一电子设备确定第一输入设备与第一屏幕之间的关联关系之前,所述方法还包括:所述第一电子设备获取屏幕信息以及输入设备信息,其中,所述屏幕信息包括所述第一屏幕的信息,所述输入设备信息包括所述第一输入设备的信息。
- 根据权利要求2所述的方法,其特征在于,所述方法还包括:所述第一电子设备的屏幕或者所述第一电子设备的外接屏幕新增、移除或配置变化时,所述第一电子设备更新所述屏幕信息;和/或所述第一电子设备的输入设备新增、移除或配置变化时,所述第一电子设备更新所述输入设备信息。
- 根据权利要求1所述的方法,其特征在于,所述方法还包括:所述第一电子设备确定第二输入设备与第二屏幕之间的关联关系,其中,所述第二屏幕为所述第一电子设备的屏幕或者所述第一电子设备的外接屏幕;所述第一电子设备检测到第二输入事件,其中,所述第二输入事件对应的输入设备为所述第二输入设备;所述第一电子设备根据所述关联关系,确定所述第二输入事件作用的屏幕为第二屏幕;所述第一电子设备在所述第二屏幕上显示第二光标。
- 根据权利要求1-4中任一项所述的方法,其特征在于,所述第一光标和所述第二光标的样式不同。
- 一种显示方法,其特征在于,所述方法应用于第一电子设备中,所述方法包括:所述第一电子设备确定第一输入设备与第二电子设备之间的关联关系;所述第一电子设备检测到第一输入事件,其中,所述第一输入事件对应的输入设备为所述第一输入设备;所述第一电子设备根据所述关联关系,确定所述第一输入事件作用于第二电子设备;所述第一电子设备向所述第二电子设备发送所述第一输入事件,使得所述第二电子设备显示第一光标。
- 根据权利要求6所述的方法,其特征在于,所述第一电子设备确定第一输入设备与第二电子设备之间的关联关系之前,所述方法还包括:所述第一电子设备获取屏幕信息以及输入设备信息,其中,所述屏幕信息包括所述第二电子设备的信息,所述输入设备信息包括所述第一输入设备的信息。
- 根据权利要求7所述的方法,其特征在于,所述方法还包括:所述第二电子设备新增、移除或配置变化时,所述第一电子设备更新所述屏幕信息;和/或所述第一电子设备的输入设备新增、移除或配置变化时,所述第一电子设备更新所述输入设备信息。
- 根据权利要求6所述的方法,其特征在于,所述方法还包括:所述第一电子设备确定第二输入设备与第一屏幕之间的关联关系,其中,所述第一屏幕为所述第一电子设备的屏幕或者所述第一电子设备的外接屏幕;所述第一电子设备检测到第二输入事件,其中,所述第二输入事件对应的输入设备为所述第二输入设备;所述第一电子设备根据所述关联关系,确定所述第一输入事件作用的屏幕为第一屏幕;所述第一电子设备在所述第一屏幕上显示第二光标。
- 根据权利要求6-9中任一项所述的方法,其特征在于,所述第一光标和所述第二光标的样式不同。
- 一种显示***,包括第一电子设备和第二电子设备,其特征在于,所述第一电子设备确定第一输入设备与所述第二电子设备之间的关联关系;所述第一电子设备检测到第一输入事件,其中,所述第一输入事件对应的输入设备为所述第一输入设备;所述第一电子设备根据所述关联关系,确定所述第一输入事件作用于第二电子设备;所述第一电子设备向所述第二电子设备发送所述第一输入事件;所述第二电子设备显示第一光标。
- 根据权利要求11所述的***,其特征在于,所述第一电子设备确定第一输入设备与第二电子设备之间的关联关系之前,还包括:所述第一电子设备获取屏幕信息以及输入设备信息,其中,所述屏幕信息包括所述第二电子设备的信息,所述输入设备信息包括所述第一输入设备的信息。
- 根据权利要求12所述的***,其特征在于,还包括:所述第二电子设备新增、移除或配置变化时,所述第一电子设备更新所述屏幕信息;和/或所述第一电子设备的输入设备新增、移除或配置变化时,所述第一电子设备更新所述输入设备信息。
- 根据权利要求11所述的***,其特征在于,还包括:所述第一电子设备确定第二输入设备与第一屏幕之间的关联关系,其中,所述第一屏幕为所述第一电子设备的屏幕或者所述第一电子设备的外接屏幕;所述第一电子设备检测到第二输入事件,其中,所述第二输入事件对应的输入设备为所述第二输入设备;所述第一电子设备根据所述关联关系,确定所述第一输入事件作用的屏幕为第一屏幕;所述第一电子设备在所述第一屏幕上显示第二光标。
- 根据权利要求11-14中任一项所述的***,其特征在于,所述第一光标和所述第二光标的样式不同。
- 一种显示方法,其特征在于,所述方法应用于第一电子设备中,所述方法包括:所述第一电子设备确定第一输入设备与第二屏幕之间的关联关系,其中,所述第二屏幕为第二电子设备的屏幕或者所述第二电子设备的外接屏幕;所述第一电子设备检测到第一输入事件,其中,所述第一输入事件对应的输入设备为所述第一输入设备;所述第一电子设备根据所述关联关系,确定所述第一输入事件作用的屏幕为第二屏幕;所述第一电子设备向所述第二电子设备发送所述第一输入事件,使得所述第二电子设备根据所述关联关系确定所述第一输入事件作用的屏幕为所述第二屏幕并在所述第二屏幕上显示第一光标。
- 根据权利要求16所述的方法,其特征在于,所述第一电子设备确定第一输入设备与第二电子设备之间的关联关系之前,所述方法还包括:所述第一电子设备获取屏幕信息以及输入设备信息,其中,所述屏幕信息包括所述第二屏幕的信息,所述输入设备信息包括所述第一输入设备的信息。
- 根据权利要求17所述的方法,其特征在于,所述方法还包括:所述第二屏幕新增、移除或配置变化时,所述第一电子设备更新所述屏幕信息;和/或所述第一电子设备的输入设备和/或第二电子设备的输入设备新增、移除或配置变化时,所述第一电子设备更新所述输入设备信息。
- 根据权利要求16所述的方法,其特征在于,所述方法还包括:所述第一电子设备确定第二输入设备与第一屏幕之间的关联关系,其中,所述第一屏幕为所述第一电子设备的屏幕或者所述第一电子设备的外接屏幕;所述第一电子设备检测到第二输入事件,其中,所述第二输入事件对应的输入设备为所述第二输入设备;所述第一电子设备根据所述关联关系,确定所述第一输入事件作用的屏幕为第一屏幕;所述第一电子设备在所述第一屏幕上显示第二光标。
- 根据权利要求16至19中任一项所述的方法,其特征在于,所述第一光标和所述第二光标的样式不同。
- 一种显示***,包括第一电子设备和第二电子设备,其特征在于,所述第一电子设备确定第一输入设备与第二屏幕之间的关联关系,其中,所述第二屏幕为所述第二电子设备的屏幕或者所述第二电子设备的外接屏幕;所述第一电子设备检测到第一输入事件,其中,所述第一输入事件对应的输入设备为所述第一输入设备;所述第一电子设备根据所述关联关系,确定所述第一输入事件作用的屏幕为第二屏幕;所述第一电子设备向所述第二电子设备发送所述第一输入事件;所述第二电子设备根据所述关联关系确定所述第一输入事件作用的屏幕为所述第二屏幕;所述第二电子设备在所述第二屏幕上显示第一光标。
- 根据权利要求21所述的***,其特征在于,所述第一电子设备确定第一输入设备与第二电子设备之间的关联关系之前,还包括:所述第一电子设备获取屏幕信息以及输入设备信息,其中,所述屏幕信息包括所述第二屏幕的信息,所述输入设备信息包括所述第一输入设备的信息。
- 根据权利要求22所述的***,其特征在于,还包括:所述第二屏幕新增、移除或配置变化时,所述第一电子设备更新所述屏幕信息;和/或所述第一电子设备的输入设备和/或第二电子设备的输入设备新增、移除或配置变化时,所述第一电子设备更新所述输入设备信息。
- 根据权利要求21所述的***,其特征在于,所述第一电子设备确定第二输入设备与第一屏幕之间的关联关系,其中,所述第一屏幕为所述第一电子设备的屏幕或者所述第一电子设备的外接屏幕;所述第一电子设备检测到第二输入事件,其中,所述第二输入事件对应的输入设备为所述第二输入设备;所述第一电子设备根据所述关联关系,确定所述第一输入事件作用的屏幕为第一屏幕;所述第一电子设备在所述第一屏幕上显示第二光标。
- 根据权利要求21-24任一项所述的***,其特征在于,所述第一光标和所述第二光标的样式不同。
- 一种电子设备,其特征在于,所述电子设备包括:一个或多个处理器;一个或多个存储器;所述一个或多个存储器存储有一个或者多个计算机程序,所述一个或者多个计算机程序包括指令,当所述指令被所述一个或多个处理器执行时,使得所述电子设备执行如权利要求1至5中任一项所述的方法,或者执行如权利要求6至10中任一项所述的方法,或者执行如权利要求16至20中任一项所述的方法。
- 一种计算机可读存储介质,其特征在于,包括计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行如权利要求1至5中任一项所述的方法,或者执行如权利要求6至10中任一项所述的方法,或者执行如权利要求16至20中任一项所述的方法。
- 一种包含指令的计算机程序产品,其特征在于,当所述计算机程序产品在计算机上运行时,使得所述电子设备执行如权利要求1至5中任一项所述的方法,或者执行如权利要求6至10中任一项所述的方法,或者执行如权利要求16至20中任一项所述的方法。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211287227.XA CN117917632A (zh) | 2022-10-20 | 2022-10-20 | 一种显示方法、电子设备和*** |
CN202211287227.X | 2022-10-20 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2024083031A1 true WO2024083031A1 (zh) | 2024-04-25 |
Family
ID=90729616
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2023/124377 WO2024083031A1 (zh) | 2022-10-20 | 2023-10-13 | 一种显示方法、电子设备和*** |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN117917632A (zh) |
WO (1) | WO2024083031A1 (zh) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140317530A1 (en) * | 2013-04-19 | 2014-10-23 | Samsung Electronics Co., Ltd. | Method and device for receiving input |
US20170131962A1 (en) * | 2015-11-11 | 2017-05-11 | Samsung Electronics Co., Ltd. | Method and device for providing application using external electronic device |
CN112905089A (zh) * | 2021-02-07 | 2021-06-04 | 北京小米移动软件有限公司 | 设备控制方法及装置 |
CN114816153A (zh) * | 2021-01-27 | 2022-07-29 | 华为技术有限公司 | 一种点亮屏幕的方法及电子设备 |
-
2022
- 2022-10-20 CN CN202211287227.XA patent/CN117917632A/zh active Pending
-
2023
- 2023-10-13 WO PCT/CN2023/124377 patent/WO2024083031A1/zh unknown
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140317530A1 (en) * | 2013-04-19 | 2014-10-23 | Samsung Electronics Co., Ltd. | Method and device for receiving input |
US20170131962A1 (en) * | 2015-11-11 | 2017-05-11 | Samsung Electronics Co., Ltd. | Method and device for providing application using external electronic device |
CN114816153A (zh) * | 2021-01-27 | 2022-07-29 | 华为技术有限公司 | 一种点亮屏幕的方法及电子设备 |
CN112905089A (zh) * | 2021-02-07 | 2021-06-04 | 北京小米移动软件有限公司 | 设备控制方法及装置 |
Also Published As
Publication number | Publication date |
---|---|
CN117917632A (zh) | 2024-04-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109814766B (zh) | 一种应用显示方法及电子设备 | |
US11385857B2 (en) | Method for displaying UI component and electronic device | |
WO2020259452A1 (zh) | 一种移动终端的全屏显示方法及设备 | |
WO2020093988A1 (zh) | 一种图像处理方法及电子设备 | |
WO2021036770A1 (zh) | 一种分屏处理方法及终端设备 | |
US20230021994A1 (en) | Cross-Device Content Projection Method and Electronic Device | |
CN117063461A (zh) | 一种图像处理方法和电子设备 | |
WO2022127632A1 (zh) | 一种资源管控方法及设备 | |
CN113961157B (zh) | 显示交互***、显示方法及设备 | |
US20230105934A1 (en) | Cross-Device Allocation Method for Service Element, Terminal Device, and Storage Medium | |
CN114995715B (zh) | 悬浮球的控制方法和相关装置 | |
EP4293997A1 (en) | Display method, electronic device, and system | |
CN115016697A (zh) | 投屏方法、计算机设备、可读存储介质和程序产品 | |
WO2022127130A1 (zh) | 一种添加操作序列的方法、电子设备和*** | |
CN114444000A (zh) | 页面布局文件的生成方法、装置、电子设备以及可读存储介质 | |
EP4287014A1 (en) | Display method, electronic device, and system | |
WO2022135195A1 (zh) | 显示虚拟现实界面的方法、装置、设备和可读存储介质 | |
WO2022078116A1 (zh) | 笔刷效果图生成方法、图像编辑方法、设备和存储介质 | |
WO2024083031A1 (zh) | 一种显示方法、电子设备和*** | |
CN113495733A (zh) | 主题包安装方法、装置、电子设备及计算机可读存储介质 | |
WO2024067037A1 (zh) | 一种服务调用方法、***和电子设备 | |
WO2024012346A1 (zh) | 任务迁移的方法、电子设备和*** | |
EP4290375A1 (en) | Display method, electronic device and system | |
WO2022206709A1 (zh) | 应用程序的组件加载方法及相关装置 | |
WO2024109573A1 (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: 23879022 Country of ref document: EP Kind code of ref document: A1 |