WO2022042326A1 - Display control method and related apparatus - Google Patents
Display control method and related apparatus Download PDFInfo
- Publication number
- WO2022042326A1 WO2022042326A1 PCT/CN2021/112365 CN2021112365W WO2022042326A1 WO 2022042326 A1 WO2022042326 A1 WO 2022042326A1 CN 2021112365 W CN2021112365 W CN 2021112365W WO 2022042326 A1 WO2022042326 A1 WO 2022042326A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- electronic device
- user interface
- interface
- application
- screen
- Prior art date
Links
Images
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/1454—Digital output to display device ; Cooperation and interconnection of the display device with other functional units involving copying of the display data of a local workstation or window to a remote workstation or window so that an actual copy of the data is displayed simultaneously on two or more displays, e.g. teledisplay
-
- G—PHYSICS
- G06—COMPUTING; 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
-
- 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Definitions
- the present application relates to the field of electronic technology, and in particular, to a display control method and a related device.
- Device collaboration means that after two electronic devices establish a connection (such as a Bluetooth connection), the interface content of the slave electronic device is projected and displayed on the master electronic device.
- the operation of the slave electronic device can be realized on the screen projection interface of the master electronic device.
- the user can call the application of the slave electronic device through the screen projection interface of the master electronic device.
- the running interface of the application is always based on the size of the screen projection interface. Adaptive changes, for example, the user shrinks the screen projection interface, and the running interface of the application is also reduced, which is extremely inconvenient to use.
- the present application provides a display control method and related device, which can identify the input source of the first operation and display the application interface corresponding to the input source, thereby avoiding that the size of the application interface changes with the size of the screen projection interface when the user operates on the main electronic device. It varies in size for user convenience and takes full advantage of the configuration of the main electronics.
- the present application provides a display control method, the method is applied to a master electronic device, the master electronic device displays a first user interface, the first user interface includes a second user interface displayed by the slave electronic device. Interface content on the main electronic device; the main electronic device detects a first operation; if the first operation is an operation on the first user interface, in response to the first operation, the main electronic device displays a third user interface , the third user interface includes an interface for calling and running the application of the main electronic device; if the first operation is an operation on the second user interface, in response to the first operation, the main electronic device displays the fourth user interface an interface, the fourth user interface includes an interface for invoking and running an application of the slave electronic device.
- the main electronic device can identify the input source of the first operation, and display the application interface corresponding to the input source, thereby preventing the size of the application interface from changing with the size of the screen projection interface when the user operates on the main electronic device. Changes, user-friendly, and take full advantage of the configuration advantages of the main electronic equipment.
- the first operation includes a touch operation for starting or invoking an application.
- the first operation may be an operation in which the user clicks a search box of a browser to prepare to invoke an input method to input text, or an operation in which the user clicks an icon of a camera application on the main interface to prepare to invoke a camera.
- the first user interface includes a screen projection area
- the screen projection area includes the interface content of the second user interface displayed by the slave electronic device that is projected on the master electronic device, and the second user interface is displayed on the master electronic device.
- An operation is an operation on the screen projection area of the first user interface
- the method further includes: in response to the detected second operation acting on the third user interface, sending, by the host electronic device, a running result of the application to the slave electronic device. In this way, when operating in the screen projection area on the master electronic device, the invoked application running result of the master electronic device is directly sent to the slave electronic device, and the user does not need to manually send the result, thereby reducing user operations.
- the second operation includes an operation for the called application.
- the second operation may be an operation in which the user clicks on the input method interface to input text, or an operation in which the user clicks on the photographing control on the camera application interface.
- the method further includes: the master electronic device detects a third operation for enabling the function of distinguishing distributed input devices, and in response to the third operation, enabling the distinguishing distributed input device
- the function of distinguishing distributed input devices is used for the master electronic device to call and run the application of the master electronic device when it detects that the first operation is on the master electronic device, or the first operation is on the slave electronic device, Then the application of the slave electronic device is invoked and executed. In this way, the user can set the function of distinguishing distributed input devices to be on or off according to their own needs.
- the method further includes: the first user interface includes a window area, the third operation includes an operation detected by the main electronic device acting on a first interaction element in the window area, the first interaction The element is used to monitor the operation of enabling the function of distinguishing distributed input devices; when the function of distinguishing distributed input devices is not enabled, the first interactive element is displayed in the window area.
- the method further includes: after enabling the function of distinguishing distributed input devices, the main electronic device refreshes the window area, and displays a second interactive element in the refreshed window area; the main electronic device detects that A fourth operation acting on the second interactive element, in response to the fourth operation, disables the distinguishing distributed input device function. In this way, it is convenient for the user to turn on or off the function of distinguishing distributed input devices.
- the first user interface includes a screen projection area
- the screen projection area includes interface content projected on the master electronic device by the second user interface displayed by the slave electronic device. It also includes: after the function of distinguishing distributed input devices is turned off, the main electronic device detects a fifth operation; if the fifth operation is an operation on the screen projection area on the main electronic device, responding to the fifth operation , the master electronic device displays a fifth user interface, and the fifth user interface includes an interface for calling and running an application of the slave electronic device. That is to say, if the user does not want to use the function of distinguishing distributed input devices, an existing solution, that is, a universal screen projection function, can be provided for the user to choose. Therefore, the differentiated distributed input device function of the present application may be compatible with the general screen projection function.
- the third user interface includes an input to invoke and run an input method application of the main electronic device legal interface. In this way, the user can use the input method of the main electronic device when inputting text in the screen projection area of the main electronic device, which makes it more convenient to input text.
- the second operation is an input operation acting on a text box in the screen projection area of the third user interface
- the method further includes: the main electronic device refreshes the third user interface, and the refreshed third user interface
- the screen projection area of the third user interface includes the input result of the input operation.
- the third user interface includes a first operation that invokes and runs the camera application of the main electronic device a preview screen, the first preview screen includes a first image, and the third user interface further includes at least one enhanced function option provided by the main electronic device; in response to the detected sixth operation acting on the target enhanced function option, the electronic The device displays a second preview screen, the second preview screen includes a second image, and the second image is an image obtained by performing the enhancement function processing corresponding to the target enhancement function option on the first image, and the at least one enhancement function option includes the Target enhancement options.
- the sixth operation includes a click operation on the target enhancement function option.
- the first user interface includes a screen projection area
- the screen projection area includes interface content projected on the master electronic device by the second user interface displayed by the slave electronic device, and the first operation is performed on the master electronic device.
- the operation on the screen projection area of the first user interface, the second operation is an operation acting on the shooting controls in the third user interface
- the method further includes: the main electronic device refreshes the third user interface, and the refreshed
- the third user interface includes a photographing result of the photographing operation, where the photographing result includes a photographing picture after the target enhancement function is invoked.
- the user can call the camera application of the master electronic device when operating in the screen projection area of the master electronic device, and call the enhanced function of the master electronic device to shoot, and the camera application without using the slave electronic device can also be obtained in the slave electronic device Shooting results.
- the third user interface includes media for calling and running the play application of the main electronic device
- An object selection interface the media object selection interface includes at least one media object identifier; the media object selection interface includes the media object identifiers played in the history of the main electronic device.
- the electronic device displays a playback screen of the media corresponding to the target media object identification, and the playback screen includes playback information for historically playing the media on the main electronic device, the The at least one media object identification includes the target media object identification.
- the playback information includes one or more of the following information: playback progress information, user comment information, and media sharing information.
- the first user interface includes a screen projection area
- the screen projection area includes interface content projected on the master electronic device by the second user interface displayed by the slave electronic device, and the first operation is performed on the master electronic device.
- the operation on the screen projection area of the first user interface if the second operation is an operation acting on the closing control of the media playing screen, the method further includes: responding to the detected second operation acting on the media playing screen , the master electronic device closes the media playback screen, and sends the playback information of the media playback screen to the slave electronic device.
- the user can invoke the play application of the main electronic device when operating in the screen projection area of the main electronic device. It makes better use of the advantage that the screen of the main electronic device is larger than that of the subordinate electronic device, and sends the playback information to the subordinate electronic device, so that the user can continue watching on the subordinate electronic device after changing the scene.
- the master electronic device includes a touch screen and a graphical user interface
- the slave electronic device includes a touch screen and a graphical user interface. In this way, the user can directly operate the touch screen on the electronic device, and obtain the response result through the graphical user interface.
- the present application provides an electronic device comprising: a display screen, a touch sensor, a memory, one or more processors, a plurality of application programs, and one or more programs; wherein the one or more A program is stored in the memory; when the one or more processors are executing the one or more programs, the electronic device is caused to perform the method described in the first aspect and any possible implementation manner of the first aspect .
- the present application provides a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, when the processor executes the computer program, the The computer device performs the method as described in the first aspect and any possible implementation of the first aspect.
- the present application provides an electronic device, the electronic device comprising an apparatus for performing the method described in the first aspect and any possible implementation manner of the first aspect.
- the present application provides a computer program product containing instructions, when the computer program product is run on an electronic device, the electronic device is made to execute the first aspect and any possible implementation of the first aspect. method.
- the present application provides a computer-readable storage medium, comprising instructions that, when the above-mentioned instructions are executed on an electronic device, cause the above-mentioned electronic device to execute the first aspect and any possible implementation manner of the first aspect. method.
- the present application provides a communication system, including a master electronic device and a slave electronic device; the master electronic device executes the method described in the first aspect and any possible implementation manner of the first aspect.
- the main electronic device can identify the input source of the first operation and display the application interface corresponding to the input source, thereby preventing the size of the application interface from changing with the size of the screen projection interface when the user operates on the main electronic device Changes, user-friendly, and take full advantage of the configuration advantages of the main electronic equipment.
- FIG. 1 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
- 2A-2I are schematic diagrams of establishing a collaborative relationship between two electronic devices provided by an embodiment of the present application.
- FIG. 3A-FIG. 3B are schematic diagrams of the first method for enabling the function of distinguishing distributed input devices provided by an embodiment of the present application;
- 4A-4I are schematic diagrams of some human-computer interactions provided in a text input scenario provided by an embodiment of the present application.
- 5A-5F are other schematic diagrams of human-computer interaction provided in an image shooting scene provided by an embodiment of the present application.
- 6A-6I are schematic diagrams of some human-computer interactions provided in a video playback scenario provided by an embodiment of the present application.
- FIG. 7 is a schematic diagram of a software structure of an electronic device provided by an embodiment of the present application.
- FIG. 8 is a flowchart of a method for implementing a function of distinguishing distributed input devices by an electronic device provided by an embodiment of the present application.
- the present application involves at least two electronic devices, the electronic devices have a touch screen and a graphical user interface, including but not limited to mobile phones, tablet computers, smart screens, and the like.
- a collaborative relationship is established between the at least two electronic devices.
- Collaboration between electronic devices refers to the use of distributed technology to achieve cross-device and cross-system collaboration, and after connecting multiple electronic devices to realize functions such as resource sharing and collaborative operation, the multiple electronic devices include but are not limited to mobile phones, computers, Tablet and other electronic devices.
- the two electronic devices are a first electronic device and a second electronic device respectively.
- the first electronic device and the second electronic device first establish a connection, and the connection methods include but are not limited to Bluetooth connection, scan code connection, Near Field Communication (Near Field Communication, NFC) touch connection and the like.
- the interface content of the first electronic device can be projected onto the interface of the second electronic device for display.
- the first electronic device may be referred to as a slave electronic device
- the second electronic device may be referred to as a master electronic device.
- the interface content of the slave electronic device can be projected and displayed on the interface of the master electronic device.
- the part of the interface of the master electronic device used to display the interface content of the slave electronic device after the screen projection may be referred to as Screencasting interface.
- Screencasting interface the part of the interface of the master electronic device used to display the interface content of the slave electronic device after the screen projection
- other parts of the interface of the main electronic device other than the screen projection interface are called non-screen projection interfaces.
- the application program of the main electronic device when the user performs a touch screen operation on the screen of the main electronic device, regardless of whether the touch screen operation is on a screen projection interface or a non-screen projection interface, the application program of the main electronic device is invoked to implement corresponding functions.
- the application program of the slave electronic device is invoked to implement the corresponding function.
- FIG. 1 shows a schematic structural diagram 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 charge management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2 , mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, sensor module 180, buttons 190, motor 191, indicator 192, camera 193, display screen 194, and Subscriber identification module (subscriber identification module, SIM) card interface 195 and so on.
- SIM Subscriber identification module
- the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light. Sensor 180L, bone conduction sensor 180M, etc.
- the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the electronic device 100 .
- the electronic device 100 may include more or less components than shown, or some components may be combined, or some components may be separated, or different components may be arranged.
- the illustrated components may be implemented in hardware, software, or a combination of software and hardware.
- the processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (neural-network processing unit, NPU), etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
- application processor application processor, AP
- modem processor graphics processor
- ISP image signal processor
- controller video codec
- digital signal processor digital signal processor
- baseband processor baseband processor
- neural-network processing unit neural-network processing unit
- the controller can generate an operation control signal according to the instruction operation code and timing signal, and complete the control of fetching and executing instructions.
- a memory may also be provided in the processor 110 for storing instructions and data.
- the memory in processor 110 is cache memory. This memory may hold instructions or data that have just been used or recycled by the processor 110 . If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby increasing the efficiency of the system.
- the processor 110 may include one or more interfaces.
- the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transceiver (universal asynchronous transmitter) receiver/transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and / or universal serial bus (universal serial bus, USB) interface, etc.
- I2C integrated circuit
- I2S integrated circuit built-in audio
- PCM pulse code modulation
- PCM pulse code modulation
- UART universal asynchronous transceiver
- MIPI mobile industry processor interface
- GPIO general-purpose input/output
- SIM subscriber identity module
- USB universal serial bus
- the processor 110 may be configured to determine whether the function of distinguishing distributed input devices is enabled when the master electronic device 100 and other slave electronic devices work together.
- the I2C interface is a bidirectional synchronous serial bus that includes a serial data line (SDA) and a serial clock line (SCL).
- the processor 110 may contain multiple sets of I2C buses.
- the processor 110 can be respectively coupled to the touch sensor 180K, the charger, the flash, the camera 193 and the like through different I2C bus interfaces.
- the processor 110 may couple the touch sensor 180K through the I2C interface, so that the processor 110 and the touch sensor 180K communicate with each other through the I2C bus interface, so as to realize the touch function of the electronic device 100 .
- the I2S interface can be used for audio communication.
- the processor 110 may contain multiple sets of I2S buses.
- the processor 110 may be coupled with the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170 .
- the audio module 170 can transmit audio signals to the wireless communication module 160 through the I2S interface, so as to realize the function of answering calls through a Bluetooth headset.
- the PCM interface can also be used for audio communications, sampling, quantizing and encoding analog signals.
- the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface.
- the audio module 170 can also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
- the UART interface is a universal serial data bus used for asynchronous communication.
- the bus may be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication.
- a UART interface is typically used to connect the processor 110 with the wireless communication module 160 .
- the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function.
- the audio module 170 can transmit audio signals to the wireless communication module 160 through the UART interface, so as to realize the function of playing music through the Bluetooth headset.
- the MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193 .
- MIPI interfaces include camera serial interface (CSI), display serial interface (DSI), etc.
- the processor 110 communicates with the camera 193 through a CSI interface, so as to realize the photographing function of the electronic device 100 .
- the processor 110 communicates with the display screen 194 through 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 may be used to connect the processor 110 with the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like.
- the GPIO interface can also be configured as I2C interface, I2S interface, UART interface, MIPI interface, etc.
- the USB interface 130 is an interface that conforms to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like.
- the USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transmit data between the electronic device 100 and peripheral devices. It can also be used to connect headphones to play audio through the headphones.
- the interface can also be used to connect other electronic devices, such as AR devices.
- the interface connection relationship between the modules illustrated in the embodiments of the present application is only a schematic illustration, and does not constitute a structural limitation of the electronic device 100 .
- the electronic device 100 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
- the charging management module 140 is used to receive charging input from the charger.
- the charger may be a wireless charger or a wired charger.
- the charging management module 140 may receive charging input from the wired charger through the USB interface 130 .
- the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100 . While the charging management module 140 charges the battery 142 , it can also supply power to the electronic device through the power management module 141 .
- the power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 .
- the power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160.
- the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, battery health status (leakage, impedance).
- the power management module 141 may also be provided in the processor 110 .
- the power management module 141 and the charging management module 140 may also be provided in the same device.
- the wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modulation and demodulation processor, the baseband processor, and the like.
- Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
- Each antenna in electronic device 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
- the antenna 1 can be multiplexed as a diversity antenna of the wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
- the mobile communication module 150 may provide wireless communication solutions including 2G/3G/4G/5G etc. applied on the electronic device 100 .
- the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA) and the like.
- the mobile communication module 150 can receive electromagnetic waves from the antenna 1, filter and amplify the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation.
- the mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and then turn it into an electromagnetic wave for radiation through the antenna 1 .
- at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110 .
- at least part of the functional modules of the mobile communication module 150 may be provided in the same device as at least part of the modules of the processor 110 .
- the modem processor may include a modulator and a demodulator.
- the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal.
- the demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
- the low frequency baseband signal is processed by the baseband processor and passed to the application processor.
- the application processor outputs sound signals through audio devices (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or videos through the display screen 194 .
- the modem processor may be a separate device.
- the modem processor may be independent of the processor 110, and may be provided in the same device as the mobile communication module 150 or other functional modules.
- the wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellites Wireless communication solutions such as global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared technology (IR).
- WLAN wireless local area networks
- BT Bluetooth
- GNSS global navigation satellite system
- FM frequency modulation
- NFC near field communication
- IR infrared technology
- the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
- the wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
- the wireless communication module 160 can also receive the signal to be sent from the processor 110 , perform frequency modulation on it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2 .
- the antenna 1 of the electronic device 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the 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), broadband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc.
- the GNSS may include global positioning system (global positioning system, GPS), global navigation satellite system (global navigation satellite system, GLONASS), Beidou navigation satellite system (beidou navigation satellite system, BDS), quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite based augmentation systems (SBAS).
- global positioning system global positioning system, GPS
- global navigation satellite system global navigation satellite system, GLONASS
- Beidou navigation satellite system beidou navigation satellite system, BDS
- quasi-zenith satellite system quadsi -zenith satellite system, QZSS
- SBAS satellite based augmentation systems
- the electronic device 100 implements a display function through a GPU, a display screen 194, an application processor, and the like.
- the GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor.
- the GPU is used to perform mathematical and geometric calculations for graphics rendering.
- Processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
- Display screen 194 is used to display images, videos, and the like.
- Display screen 194 includes a display panel.
- the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (active-matrix organic light).
- LED diode AMOLED
- flexible light-emitting diode flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (quantum dot light emitting diodes, QLED) and so on.
- the electronic device 100 may include one or N display screens 194 , where N is a positive integer greater than one.
- the display screen 194 may be used to display a user interface, and various controls in the user interface may be used to monitor user's touch operations on electronic devices from different sources and at different positions of the electronic devices. In response to the operation, the display screen 194 may also be used to display the response result of the electronic device to the touch operation.
- the electronic device 100 may implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
- the ISP is used to process the data fed back by the camera 193 .
- the shutter is opened, the light is transmitted to the camera photosensitive element through the lens, the light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye.
- ISP can also perform algorithm optimization on image noise, brightness, and skin tone.
- ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
- the ISP may be provided in the camera 193 .
- Camera 193 is used to capture still images or video.
- the object is projected through the lens to generate an optical image onto the photosensitive element.
- the photosensitive element 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, and then transmits the electrical signal to the ISP to convert it into a digital image signal.
- the ISP outputs the digital image signal to the DSP for processing.
- DSP converts digital image signals into standard RGB, YUV and other formats of image signals.
- the electronic device 100 may include 1 or N cameras 193 , where N is a positive integer greater than 1.
- a digital signal processor is used to process digital signals, in addition to processing digital image signals, it can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy and so on.
- Video codecs are used to compress or decompress digital video.
- the electronic device 100 may support one or more video codecs.
- the electronic device 100 can play or record videos of various encoding formats, such as: Moving Picture Experts Group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4 and so on.
- MPEG Moving Picture Experts Group
- MPEG2 moving picture experts group
- MPEG3 MPEG4
- MPEG4 Moving Picture Experts Group
- the NPU is a neural-network (NN) computing processor.
- NN neural-network
- Applications such as intelligent cognition of the electronic device 100 can be implemented through the NPU, such as image recognition, face recognition, speech recognition, text understanding, and the like.
- 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 realize the data storage function. For example to save files like music, video etc in external memory card.
- Internal memory 121 may be used to store computer executable program code, which includes instructions.
- the internal memory 121 may include a storage program area and a storage data area.
- the storage program area can store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), and the like.
- the storage data area may store data (such as audio data, phone book, etc.) created during the use of the electronic device 100 and the like.
- the internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (UFS), and the like.
- the processor 110 executes various functional applications and data processing of the electronic device 100 by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
- the electronic device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playback, recording, etc.
- the audio module 170 is used for converting digital audio information into analog audio signal output, and also for converting analog audio input into digital audio signal. Audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be provided in the processor 110 , or some functional modules of the audio module 170 may be provided in the processor 110 .
- Speaker 170A also referred to as a "speaker" is used to convert audio electrical signals into sound signals.
- the electronic device 100 can listen to music through the speaker 170A, or listen to a hands-free call.
- the receiver 170B also referred to as "earpiece" is used to convert audio electrical signals into sound signals.
- the voice can be answered by placing the receiver 170B close to the human ear.
- the microphone 170C also called “microphone” or “microphone” is used to convert sound signals into electrical signals.
- the user can make a sound by approaching the microphone 170C through a human mouth, and input the sound signal into the microphone 170C.
- the electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C, which can implement a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device 100 may further be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and implement directional recording functions.
- the earphone jack 170D is used to connect wired earphones.
- the earphone interface 170D may be the USB interface 130, or may be a 3.5mm open mobile terminal platform (OMTP) standard interface, a cellular telecommunications industry association of the USA (CTIA) standard interface.
- OMTP open mobile terminal platform
- CTIA cellular telecommunications industry association of the USA
- the pressure sensor 180A is used to sense pressure signals, and can convert the pressure signals into electrical signals.
- the pressure sensor 180A may be provided on the display screen 194 .
- the capacitive pressure sensor may be comprised of at least two parallel plates of conductive material. When a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes.
- the electronic device 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A.
- the electronic device 100 may also calculate the touched 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 may correspond to different operation instructions. For example, when a touch operation whose intensity is less than the first pressure threshold acts on the short message application icon, the instruction for viewing 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, the instruction to create a new short message is executed.
- the gyro sensor 180B may be used to determine the motion attitude of the electronic device 100 .
- the angular velocity of electronic device 100 about three axes ie, x, y, and z axes
- the gyro sensor 180B can be used for image stabilization.
- the gyro sensor 180B detects the shaking angle of the electronic device 100, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to offset the shaking of the electronic device 100 through reverse motion to achieve anti-shake.
- the gyro sensor 180B can also be used for navigation and somatosensory game scenarios.
- the air pressure sensor 180C is used to measure air pressure.
- the electronic device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist in positioning and navigation.
- the magnetic sensor 180D includes a Hall sensor.
- the electronic device 100 can detect the opening and closing of the flip holster using the magnetic sensor 180D.
- the electronic device 100 can detect the opening and closing of the flip according to the magnetic sensor 180D. Further, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, characteristics such as automatic unlocking of the flip cover are set.
- the acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in various directions (generally three axes).
- the magnitude and direction of gravity can be detected when the electronic device 100 is stationary. It can also be used to identify the posture of electronic devices, and can be used in applications such as horizontal and vertical screen switching, pedometers, etc.
- the electronic device 100 can measure the distance through 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.
- Proximity light sensor 180G may include, for example, light emitting diodes (LEDs) and light detectors, such as photodiodes.
- the light emitting diodes may be infrared light emitting diodes.
- the electronic device 100 emits infrared light to the outside through the light emitting diode.
- Electronic device 100 uses photodiodes 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 may 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.
- Proximity light sensor 180G can also be used in holster mode, pocket mode automatically unlocks and locks the screen.
- the ambient light sensor 180L is used to sense ambient light brightness.
- the 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, so as to prevent accidental touch.
- the fingerprint sensor 180H is used to collect fingerprints.
- the electronic device 100 can use the collected fingerprint characteristics to realize fingerprint unlocking, accessing application locks, taking pictures with fingerprints, answering incoming calls with fingerprints, and the like.
- the temperature sensor 180J is used to detect the 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 value, the electronic device 100 reduces the performance of the processor located near the temperature sensor 180J in order to reduce power consumption and implement thermal protection.
- the electronic device 100 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 caused by the low temperature.
- the electronic device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
- Touch sensor 180K also called “touch panel”.
- the touch sensor 180K may be disposed on the display screen 194 , and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”.
- the touch sensor 180K is used to detect a touch operation on or near it.
- the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
- Visual output related to touch operations may be provided through display screen 194 .
- the touch sensor 180K may also be disposed on the surface of the electronic device 100 , which is different from the location where the display screen 194 is located.
- the bone conduction sensor 180M can acquire vibration signals.
- the bone conduction sensor 180M can acquire the vibration signal of the vibrating bone mass of the human voice.
- the bone conduction sensor 180M can also contact the pulse of the human body and receive the blood pressure beating signal.
- the bone conduction sensor 180M can also be disposed in the earphone, combined with the bone conduction earphone.
- the audio module 170 can analyze the voice signal based on the vibration signal of the vocal vibration bone block obtained by the bone conduction sensor 180M, so as to realize the voice function.
- the application processor can analyze the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 180M, and realize the function of heart rate detection.
- the keys 190 include a power-on key, a volume key, and the like. Keys 190 may be mechanical keys. It can also be a touch key.
- the electronic device 100 may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 100 .
- Motor 191 can generate vibrating cues.
- the motor 191 can be used for vibrating alerts for incoming calls, and can also be used for touch vibration feedback.
- touch operations acting on different applications can correspond to different vibration feedback effects.
- the motor 191 can also correspond to different vibration feedback effects for touch operations on different areas of the display screen 194 .
- Different application scenarios for example: time reminder, receiving information, alarm clock, games, etc.
- the touch vibration feedback effect can also support customization.
- the indicator 192 can be an indicator light, which can be used to indicate the charging state, the change of the power, and can also be used to indicate a message, a missed call, a notification, and the like.
- the SIM card interface 195 is used to connect a SIM card.
- the SIM card can be contacted and separated from the electronic device 100 by inserting into the SIM card interface 195 or pulling out from the SIM card interface 195 .
- the electronic device 100 may support 1 or N SIM card interfaces, where N is a positive integer greater than 1.
- the SIM card interface 195 can support Nano SIM card, Micro SIM card, SIM card and so on. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the plurality of cards may be the same or different.
- the SIM card interface 195 can also be compatible with different types of SIM cards.
- the SIM card interface 195 is also compatible with external memory cards.
- the electronic device 100 interacts with the network through the SIM card to implement functions such as call and data communication.
- the electronic device 100 employs an eSIM, ie: an embedded SIM card.
- the eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100 .
- GUI graphical user interface
- FIG. 2A exemplarily shows an exemplary user interface 21 on the electronic device 100 for presenting applications installed by the electronic device 100 .
- User interface 21 may include a status bar 201, a tray 202 with icons of frequently used applications, and other application icons. in:
- the status bar 201 may include one or more signal strength indicators 201A of a wireless fidelity (Wi-Fi) signal, a Bluetooth function indicator 201B, a battery status indicator 201C, and a time indicator 201D.
- Wi-Fi wireless fidelity
- the tray 202 with frequently used application icons may display: album icon 204A, note icon 204B, mail icon 204C, file management icon 204D.
- Other application icons can be, for example, the icon 203 of the camera, the icon 204 of Weibo, the icon 205 of the phone, the icon 206 of the calendar, the icon 207 of the browser, the icon 208 of the WeChat (Wechat), the icon 209 of the settings, The icon 210 of reading, the icon 211 of video, the icon 212 of music, the icon 213 of contact, the icon 214 of information.
- User interface 21 may also include page indicators 215 .
- Other application icons may be distributed on multiple pages, and the page indicator 215 may be used to indicate the application in which page the user is currently browsing. Users can swipe left and right in the area of other application icons to browse application icons in other pages.
- the user interface 21 exemplarily shown in FIG. 2A may be a home screen.
- FIG. 2A only exemplarily shows the user interface on the electronic device 100 , and should not constitute a limitation to the embodiments of the present application.
- the following describes the process of establishing a cooperative relationship between two electronic devices.
- the main electronic device 100 may display a window 216 on the user interface 21 in response to the gesture.
- the window 216 may display a switch control 216A for “multi-screen collaboration”, and may also display switch controls for other functions (such as Wi-Fi, Bluetooth, flashlight, etc.).
- switch controls for other functions (such as Wi-Fi, Bluetooth, flashlight, etc.).
- the user interface status bar displays a “multi-screen collaboration” function indicator 201E, and the user interface displays a “multi-screen collaboration” window 217, prompting the slave electronic device ( Such as a mobile phone) is connected to the main electronic device 100 to establish a collaborative relationship.
- the slave electronic device 200 can establish a cooperative relationship with the master electronic device 100 through various connection methods, including Bluetooth connection, code scanning connection, NFC connection, and the like. In this embodiment, a specific connection process is described in a Bluetooth connection manner.
- FIG. 2D when slave electronic device 200 detects a swipe down gesture on status bar 218, slave electronic device 200 may display window 219 on user interface 22 in response to the gesture.
- the window 216 may display a Bluetooth switch control 219A and switch controls for other functions (eg, Wi-Fi, mobile data, etc.).
- the slave electronic device 200 may turn on Bluetooth in response to the operation.
- the user interface of the slave electronic device 200 displays a confirmation connection window 220, and detects the control 220A on the window 220 (Confirm “Confirm” "Connect”) operation (eg, a touch operation on the control 220A), in response to the operation, the user interface of the main electronic device 100 may display a confirm connection window.
- the GUI 21 of the main electronic device 100 displays a confirm connection window 221, when an operation (such as a touch on the switch control 221A) on the control 221A (confirm “allow” connection) in the window 221 is detected operation), in response to the operation, the slave electronic device 200 and the master electronic device 100 are connected.
- the graphical user interface 21 of the master electronic device 100 displays a window 222 , indicating that the connection with the slave electronic device 200 is being performed; connect.
- the GUI 21 on the master electronic device 100 displays the screen projection interface 300 of the slave electronic device 200 .
- the master electronic device and the slave electronic device establish a cooperative relationship, and the master electronic device has the function of distinguishing input devices.
- the response result is displayed on the screen projection interface of the master electronic device, and further optionally, the response result is sent to the slave electronic device and displayed on the slave electronic device.
- the touch screen is operated on the non-screen projection interface of the main electronic device
- the response result is displayed on the non-screen projection interface of the main electronic device.
- a touch screen operation on the slave electronic device is detected, the application of the slave electronic device is invoked, and the response result is displayed on the screen projection interface of the slave electronic device and the master electronic device.
- the above function is referred to as a function of distinguishing distributed input devices.
- the present application can realize the conversion between the distributed input device function and the existing general screen projection function through a switch control.
- the general screen projection function may mean that when the user touches the screen on the non-screen projection interface of the main electronic device, the application of the main electronic device is invoked, and the main electronic device responds to the touch screen operation; the user's screen projection on the main electronic device When the interface touches the screen, the application of the slave electronic device is invoked, the slave electronic device responds to the touch screen operation, and displays the response result on the screen projection interface of the master electronic device.
- the first optional implementation manner use the "function switch” control to enable or disable the function of distinguishing distributed input devices.
- FIG. 2A and FIG. 2B exemplarily show an operation on the electronic device 100 for turning on the function of the differentiated distributed input device through the “function switch” control.
- the user can make a downward swipe gesture at the status bar 201 to open the window 216, and can click the control 216B of the "function switch” in the window 216 to conveniently open the "function switch".
- the "function switch” has been turned on, if the control 216B of the "function switch” is clicked again, the "function switch” can be turned off.
- the representation form of the switch control 216B of the "function switch” can be text information or icons.
- the electronic device 100 enables the function of distinguishing distributed input devices, that is, when the master electronic device 100 and the slave electronic devices work together, touch
- touch comes from the main electronic device, and the application on the main electronic device is invoked to respond to the touch operation.
- the touch operation comes from the slave electronic device, and the application on the slave electronic device is invoked to respond to the touch operation.
- the electronic device 100 turns off the function of distinguishing distributed input devices, and invokes the general screen projection function. That is, when the master electronic device 100 cooperates with the slave electronic device, the touch operation is performed on the non-screen projection interface of the master electronic device, and the application on the master electronic device is called to respond to the touch operation; For touch operations, the application on the slave electronic device is called to respond to the touch operation.
- the "function switch” may be enabled or disabled by default, and the user may independently set the “function switch” to enable or disable it, which is not limited in this embodiment of the present application.
- FIG. 3A and FIG. 3B exemplarily show an operation on the main electronic device 100 for turning on or off the function of the differentiated distributed input device by using the “switch device” control.
- the master electronic device 100 may turn on the function of distinguishing distributed input devices by default.
- the notification bar of the user interface of the master electronic device 100 may display a window 301, prompting the user to turn off the function of distinguishing distributed input devices and switch to the original device, call the application of the original device to respond to the touch operation of the screen-casting interface, that is, enable the general screen-casting function.
- prompt information 301A, prompt information 301B, a notification control 301C for retracting, a "disconnect" control 301D, and a "switch device” control 301E can be displayed.
- the prompt information 301A can be used to introduce that the main electronic device 100 is connected with other electronic devices, establish a cooperative relationship, and display the connection duration.
- the prompt information 301B can be used to introduce the connection object of the main electronic device 100, and prompt the user that the main electronic device 100 and the electronic device of the corresponding model have established a cooperative relationship.
- the control 301C can be used to monitor the operation of closing the window 301 (for example, a touch operation), and the expression form of the control 301C can be an icon or text information.
- the control 301D can be used to listen for an operation to disconnect the device (eg, a touch operation).
- an operation to disconnect the device eg, a touch operation.
- the master electronic device 100 is disconnected from the slave electronic device 200, and the two electronic devices cannot work together to realize data sharing.
- Control 301E may be used to listen for operations (eg, touch operations) that turn off the function of distinguishing distributed input devices.
- operations eg, touch operations
- the main electronic device 100 turns off the function of distinguishing distributed input devices, and uses the general screen projection function.
- the user interface notification bar of the main electronic device 100 displays a window 302 .
- Control 302A may be used to listen for operations (eg, touch operations) that enable differentiated distributed input device functionality.
- operations eg, touch operations
- the main electronic device 100 restarts the function of distinguishing distributed input devices.
- the user interface notification bar of the main electronic device 100 displays the window 301 again.
- the following describes some embodiments when the main electronic device uses the functions of differentiating distributed input devices in the process that the user uses two electronic devices to work together in conjunction with three different usage scenarios.
- FIG. 4A-FIG. 4I take a text input scenario as an example to illustrate the process of realizing the function of distinguishing distributed input devices on an electronic device.
- the user interface of the electronic device displays the "text input interface" provided by the application.
- the "text input interface” is used to display a text box into which text can be input, and the text box responds to a user's operation (touch operation, etc.), displays the input focus, and waits for the user's text input result.
- the scenarios exemplarily shown in FIGS. 4A-4I may be an implementation of a "text input scenario".
- This scene includes two electronic devices, the master electronic device 100 and the slave electronic device 200.
- the interface content of the slave electronic device is projected and displayed on the master electronic device, and the screen projection interface 300 of the master electronic device displays the interface content of the slave electronic device.
- the user interface of the screen projection interface 300 on the main electronic device 100 is a “text input interface”, which may be provided by an application (eg, a browser) with a text input scene.
- the user interface may be a user interface in which the user clicks the browser icon on the screen projection interface 300 in the figure and prepares to enter a search target in the browser search bar 401 .
- FIG. 4A an operation (such as a touch operation) acting on the browser search bar 401 in the screen projection interface 300 on the main electronic device 100 is detected, and the browser search bar 401 of the screen projection interface 300 is displayed as shown in FIG. 4B .
- the input focus 402 shown is called, the input method application of the main electronic device is called, the input method interface 403 is displayed, and the user is waiting for input.
- the input result 404 is displayed in the browser search bar of the screen projection interface 300 and also displayed in the browser search bar of the slave electronic device 200 .
- the touch operation is not limited to the left blank position in the browser search bar 401 of the screen projection interface 300, and the touch operation may also be performed at other positions of the browser search bar 401, such as the middle or right blank position.
- an operation (such as a touch operation) acting on the browser search bar 405 of the slave electronic device 200 is detected, the browser search bar 405 of the slave electronic device 200 displays the input focus 406 as shown in FIG. 4E, and the call
- the input method application of the slave electronic device 200 displays the input method interface 407 and waits for user input.
- the input method interface is also displayed on the screen projection interface 300 .
- the input result 408 is displayed in the browser search bar of the slave electronic device 200 and also displayed in the browser search bar of the screen-casting interface 300 .
- the touch operation is not limited to the left blank position in the browser search bar 405 of the slave electronic device 200, and the touch operation may also be performed at other positions of the browser search bar 404, such as the middle or right blank position.
- an operation (such as a touch operation) acting on the browser search bar 409 of the non-screen projection interface on the main electronic device 100 is detected, and the browser search bar of the main electronic device displays the input of D as shown in FIG. 4H Focus 410, call the input method application of the main electronic device, display the input method interface 411, and wait for user input.
- the input result 412 is displayed in the browser search bar of the host electronic device.
- the main electronic device can use the function of distinguishing distributed input devices in a text input scenario, that is, when a touch operation is performed on the screen projection interface of the main electronic device, the main electronic device can be called.
- the input method of the slave electronic device can be used to respond to the input operation.
- the input method of the slave electronic device can be called to respond to the input operation. That is to say, the electronic device can distinguish the input source, and in the text input scenario, call the input method of the corresponding source to respond to the input.
- the slave electronic device 200 is a mobile phone
- the master electronic device 100 is a tablet computer.
- the user operates the screen projection interface on the tablet computer to touch the screen to input text, and can call the input method on the tablet computer.
- the input method interface is large, and the size does not change with the screen projection interface, so that the text can be input conveniently.
- the page layout of the “text input interface” may also take other forms, which are not limited in this embodiment of the present application.
- other applications such as sticky notes, qq, etc.
- the master electronic device that cooperates with other slave electronic devices can also pass A method similar to that described above with respect to FIGS. 4A-4I provides for distinguishing distributed input device functionality.
- FIGS. 5A-5F take an image shooting scene as an example to illustrate the process of realizing the functions of differentiating distributed input devices on an electronic device.
- the scenes exemplarily shown in FIGS. 5A-5F may be an implementation manner of an “image capturing scene”.
- This scenario includes two electronic devices, a master electronic device 100 and a slave electronic device 200, and the interface content of the slave electronic device is projected and displayed on the master electronic device.
- the user interface of the screen projection interface 300 on the main electronic device 100 may be the user interface in which the user prepares to click the camera icon in the figure.
- an operation eg, a touch operation acting on the camera icon 501 of the screen projection interface 300 on the main electronic device 100 is detected, the camera of the main electronic device 100 is called, and the camera application is started.
- a camera application interface 502 is displayed, which may include a preview screen of the main electronic device camera and other controls, including a camera control 502A, an album control 502B, and the like.
- the master electronic device calls the camera to take a photo
- the photo album control 502B of the camera application displays the captured photo and sends the captured photo to the slave electronic device 200.
- the slave electronic device 200 is a mobile phone and the master electronic device 100 is a tablet computer
- the user places the mobile phone on the table, and can take pictures through the tablet computer that establishes a collaborative relationship with the mobile phone.
- the properties (such as sharpness) of the captured photo are limited by the photographing parameters of the camera of the main electronic device 100 .
- the camera application of the master electronic device 100 also has other functions (such as enhancement functions, which may be beauty functions, skin resurfacing functions, body modification functions, etc.), while the camera of the slave electronic device 200 does not have these functions.
- enhancement functions which may be beauty functions, skin resurfacing functions, body modification functions, etc.
- the operation of the camera icon acting on the screen projection interface 300 of the main electronic device 100 is detected, the camera application of the main electronic device 100 is started, and the camera application interface is displayed.
- the camera application interface may include a preview screen of the main electronic device camera and other controls, and may also include enhanced functionality options.
- An action on the selected enhancement option is detected, and the camera application interface is refreshed to display the preview screen processed by the selected enhancement.
- the operation acting on the photographing control is detected, the camera is called to take a photograph, and the enhancement function corresponding to the selected enhancement function option is called, and the photographing result that realizes the corresponding enhancement function is obtained.
- an operation eg, a touch operation acting on the camera icon 503 on the slave electronic device 200 is detected, the camera of the slave electronic device is called, and the camera application is started.
- a camera application interface 504 is displayed, which includes a preview image of the camera of the slave electronic device, and the screen projection interface 300 on the master electronic device 100 also displays the camera application interface.
- the slave electronic device calls the camera to take a photo
- the photo album control 504B of the camera application displays the captured photo
- the camera application of the screen projection interface 300 The album controls also display the captured photos.
- the properties of the captured photo such as sharpness, are defined by the capturing parameters of the camera of the slave electronic device 200 .
- an operation eg, a touch operation
- the camera of the main electronic device is invoked, and the camera application is started.
- the main electronic device camera application interface 506 is displayed, and this interface includes a preview screen of the main electronic device camera.
- the photo album control 506B of the camera application displays the captured photo and stores the captured photo in the main electronic device 100 .
- the properties of the captured photo are defined by the capturing parameters of the camera of the main electronic device 100 .
- the main electronic device can use the function of distinguishing distributed input devices in the image capturing scene, that is, when a touch operation is performed on the screen projection interface of the main electronic device, the main electronic device can be called.
- the camera of the slave electronic device responds to the input operation, and when a touch operation is performed on the slave electronic device, the camera of the slave electronic device is called to respond to the input operation. That is to say, the electronic device can distinguish the input source, and call the camera of the corresponding source to respond to the input in the image capturing scene.
- you can directly use the camera of the master electronic device to respond to the operation without switching to use the slave electronic device.
- the user interface of the “image capturing scene” may also take other forms, which are not limited in this embodiment of the present application.
- other applications such as video conferencing applications, live broadcast applications, etc.
- the master electronic device that cooperates with other slave electronic devices can also Similar methods of FIGS. 5A-5F provide distributed input device identification functionality.
- FIGS. 6A-6I take a video playback scenario as an example to illustrate a method for distinguishing distributed input devices on an electronic device.
- the scenes exemplarily shown in FIGS. 6A-6I may be an implementation manner of a "video playback scene".
- This scenario includes two electronic devices, a master electronic device 100 and a slave electronic device 200, and the interface content of the slave electronic device is projected and displayed on the master electronic device.
- the user interface of the screen projection interface 300 on the main electronic device 100 may be a user interface in which the user prepares to click the video icon in the figure.
- an operation eg, a touch operation acting on the video icon 601 of the screen projection interface 300 on the main electronic device 100 is detected, the player of the main electronic device is called, and the video application is started.
- a video selection interface 602 is displayed.
- This interface can display at least one video to be selected, and the user can select the video to be played.
- the video selection interface 602 can also display The user's play history through the player of the primary electronic device. Users can also click the search control, enter the search text, and select the video they want to play through the search. An action on the selected video 602A is detected, and the selected video is played.
- a video playing interface 603 is displayed when playing a video, and this interface may include a video playing screen, a pause/play control, a close control and a progress bar control.
- the playback information is saved and sent to the slave electronic device 200, and the video playback interface 603 is closed.
- the slave electronic device 200 receives the playback information, updates the playback information stored in the video application, and stores personalized content for the user.
- the playback information may include information such as video playback records and playback progress, and may also include user comment information, media sharing information, and other information, which is not limited in this embodiment of the present application.
- an operation eg, a touch operation acting on the video icon 604 on the slave electronic device 200 is detected, the player of the slave electronic device is called, and the video application is started.
- a video selection interface 605 is displayed.
- the selected video is played, and a video playing interface 606 is displayed.
- the interface content of the slave electronic device is also displayed on the screen projection interface 300 of the master electronic device 100 .
- an operation eg, a touch operation
- the player of the main electronic device is invoked, and the video application is started.
- a video selection interface 608 is displayed.
- the selected video is played, and a video playing interface 609 is displayed.
- the main electronic device can use the function of distinguishing distributed input devices in a video playback scenario, that is, when a touch operation is performed on the screen projection interface of the main electronic device, the main electronic device can be called.
- the player of the slave electronic device responds to the input operation, and when a touch operation is performed on the slave electronic device, the player of the slave electronic device is called to respond to the input operation. That is to say, the electronic device can distinguish the input source, and in the video playback scenario, call the player of the corresponding source to respond to the input.
- the user interface of the “video playback scene” may also present other forms, which are not limited in this embodiment of the present application.
- other applications such as Bilibili, etc.
- the master electronic device cooperating with other slave electronic devices can also pass through and the above Figure 6A - A similar approach to Figure 6I provides distributed input device identification functionality.
- the user interface for presenting the main electronic device for the user to perform the first operation may be referred to as the first user interface.
- Exemplary implementations of the first user interface may include the user interface of the main electronic device 100 shown in Figure 4A, Figure 4G, Figure 5A, Figure 5E, Figure 6A, or Figure 6G.
- the user interface showing the slave electronic device on which the user performs the first operation may be referred to as the second user interface.
- Exemplary implementations of the second user interface may include the user interface of the slave electronic device 200 shown in Figure 4D, Figure 5C, or Figure 6D.
- a touch operation for starting or invoking an application may be referred to as a first operation.
- exemplary implementations of the first operation may include the user clicking the text box to prepare to invoke the input method, or the user clicking the camera application icon to prepare to invoke the camera application, or the user clicking the video application icon to prepare to invoke the video application.
- an interface displayed on the main electronic device for displaying an application calling the main electronic device may be referred to as a third user interface.
- Exemplary implementations of the third user interface may include the user interface of the main electronic device 100 shown in FIG. 4B , FIG. 4H , FIG. 5B , FIG. 5F , FIG. 6B or FIG. 6H .
- the interface displayed on the master electronic device for displaying an application calling the slave electronic device may be referred to as a fourth user interface.
- Exemplary implementations of the fourth user interface may include the user interface of the main electronic device 100 shown in FIG. 4E , FIG. 5D or FIG. 6E .
- an exemplary implementation of the screen projection area may include the screen projection interface 300 shown in FIG. 4A , FIG. 5A , or FIG. 6A .
- the operation for the invoked application may be referred to as a second operation.
- Exemplary implementations of the second operation may include an operation of the user clicking on the input method interface to input text, or the user clicking the photographing control of the camera application interface, or the user clicking the closing control of the video playback interface.
- the operation for enabling the function of distinguishing distributed input devices of the present application may be referred to as a third operation.
- An exemplary implementation manner of the third operation may include an operation of the user clicking the "function switch” control of the status bar, or an operation of the user clicking the "use default device” control of the window of the notification bar.
- the operation for disabling the function of distinguishing distributed input devices of the present application may be referred to as the fourth operation.
- An exemplary implementation manner of the fourth operation may include an operation of the user clicking the "switch device" control of the window of the notification bar.
- the control for monitoring the operation of enabling the function of distinguishing distributed input devices may be referred to as a first interaction element.
- An exemplary implementation of the first interactive element may include the "Use Default Device” control 302A shown in Figure 3B.
- the control for monitoring the operation of turning off the function of distinguishing distributed input devices may be referred to as a second interactive element.
- An exemplary implementation of the second interactive element may include the "Switch Device” control 301E shown in Figure 3A.
- the touch operation used to invoke the application may be referred to as the fifth operation.
- Exemplary implementations of the fifth operation may include the user clicking the text box to prepare to invoke the input method, or the user clicking the camera application icon to prepare to invoke the camera application, or the user clicking the video application icon to prepare to invoke the video application.
- the interface for displaying the application on the master electronic device that invokes the slave electronic device may be referred to as a fifth user interface.
- the user interface 502 shown in FIG. 5B may be referred to as the first preview screen of the camera application, and the enhancement function options may include beauty function options, skin resurfacing function options, body modification function options, and the like.
- the user interface 602 shown in FIG. 6B may be referred to as the media object selection interface of the playback application
- the identification shown in 602A may be referred to as the target media object identification
- the seventh operation may include The click operation of the media object identifier
- the user interface 603 shown in FIG. 6C may be called the media play screen of the play application.
- FIG. 7 is a block diagram of the software structure of the electronic device 100 according to the embodiment of the present application.
- the layered architecture divides the software into several layers, and each layer has a clear role and division of labor.
- the layers communicate with each other through a software interface.
- the layered architecture is divided into three layers, which are an application layer, a framework layer, and a kernel layer from top to bottom.
- the application layer can include a series of application packages.
- the application package contains various applications that respond to user touch operations.
- the application package may include an input method application, and may also include other applications (such as a browser application, a note application, etc.) that provide input text scenarios.
- the application can display a text input interface to notify the system to call input law application.
- the embodiments of the present application do not limit specific scenarios and applications installed on the electronic device 100 involved.
- This application does not limit the application package, and can also include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and so on.
- the framework layer provides an application programming interface (API) and a programming framework for applications in the application layer.
- API application programming interface
- the application framework layer includes some predefined functions.
- the framework layer may include the input event management framework and the display framework provided by the embodiments of the present application.
- the input event management framework includes the event hub EventHub, which can obtain the underlying touch events.
- the Flag of the recording device is added to the EventHub to distinguish the input source electronic device.
- the value of the Flag used to distinguish devices in this application may be referred to as the first parameter.
- the touch event information obtained by EventHub is distributed through the touch point and passed to the window management system in the display framework. After processing, the related application of the application layer is called to complete the response to the touch event.
- the application framework layer may further include a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like, which are not limited in this embodiment of the present application.
- the content provider is used to store and obtain data, and make these data accessible by applications.
- the view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and so on. View systems can be used to build applications.
- the phone manager is used to provide the communication function of the electronic device 100 . For example, the management of call status (including connecting, hanging up, etc.).
- the resource manager provides various resources for the application, such as localized strings, icons, pictures, etc.
- the notification manager enables applications to display notification information in the status bar, which can be used to convey notification-type messages. For example, the notification manager is used to notify download completion, message reminders, etc.
- the kernel layer is the layer between hardware and software.
- the kernel layer contains at least display drivers, camera drivers, audio drivers, and sensor drivers.
- the kernel layer can be used to report the touch event of the device node to the framework layer, and the touch event can come from the master electronic device or the slave electronic device.
- the framework layer After the framework layer receives the touch event, it determines the input source and calls the application of the corresponding source.
- a corresponding hardware interrupt is sent to the kernel layer.
- the kernel layer processes touch operations into touch events (including touch coordinates, touch sources and other information). Touch events are stored at the kernel layer.
- the touch event is reported to the framework layer, and the source device corresponding to the touch event is identified according to the Flag of the device recorded in EventHub.
- the Flag corresponds to the master electronic device
- the application on the master electronic device is called; when the Flag corresponds to the slave electronic device, the slave electronic device is called. application on the device. And according to the location of the touch event, select the object to send and display the response result.
- the response result is sent to the slave electronic device, and displayed on the non-screen projection interface of the master electronic device and the slave device.
- the response result is sent to the main electronic device and displayed on the non-screen projection interface of the main electronic device.
- the touch operation is a touch click operation
- the click operation is located in the browser search bar of the screen projection interface 300 of the main electronic device 100
- the input method application of the main electronic device invokes the interface of the framework layer to start the input method application.
- the input text result is sent to the slave electronic device, and displayed on the screen projection interface 300 of the master electronic device.
- FIG. 8 shows a flowchart of a method when the electronic device realizes the functions of differentiating distributed input devices.
- FIG. 8 For the implementation of each step in FIG. 8 , reference may be made to the related description in FIG. 7 , which will not be repeated here.
- the term “when” may be interpreted to mean “if” or “after” or “in response to determining" or “in response to detecting" depending on the context.
- the phrases “in determining" or “if detecting (the stated condition or event)” can be interpreted to mean “if determining" or “in response to determining" or “on detecting (the stated condition or event)” or “in response to the detection of (the stated condition or event)”.
- the above-mentioned embodiments it may be implemented in whole or in part by software, hardware, firmware or any combination thereof.
- software it can be implemented in whole or in part in the form of a computer program product.
- the computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present application are generated.
- the computer may be a general purpose computer, special purpose computer, computer network, or other programmable device.
- the computer instructions may be stored in or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions may be downloaded from a website site, computer, server or data center Transmission to another website site, computer, server, or data center by wire (eg, coaxial cable, optical fiber, digital subscriber line) or wireless (eg, infrared, wireless, microwave, etc.).
- the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that includes an integration of one or more available media.
- the usable media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, DVDs), or semiconductor media (eg, solid state drives), and the like.
- the process can be completed by instructing the relevant hardware by a computer program, and the program can be stored in a computer-readable storage medium.
- the program When the program is executed , which may include the processes of the foregoing method embodiments.
- the aforementioned storage medium includes: ROM or random storage memory RAM, magnetic disk or optical disk and other mediums that can store program codes.
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)
- Software Systems (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
A display control method, comprising: a master electronic device detects a first operation; if the first operation is an operation on a first user interface, the master electronic device displays, in response to the first operation, an interface invoking and running an application of the master electronic device; and if the first operation is an operation on a second user interface, the master electronic device displays, in response to the first operation, an interface invoking and running an application of a slave electronic device. Thus, the size of an application interface can be prevented from changing with the size of a screen projection interface when an operation is performed on the master electronic device, thereby improving use convenience.
Description
本申请要求于2020年08月31日提交中国专利局、申请号为202010901550.6、申请名称为“显示控制的方法及相关装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202010901550.6 and the application title "Display Control Method and Related Apparatus" filed with the China Patent Office on August 31, 2020, the entire contents of which are incorporated into this application by reference .
本申请涉及电子技术领域,尤其涉及一种显示控制的方法及相关装置。The present application relates to the field of electronic technology, and in particular, to a display control method and a related device.
随着科技的进步,电子设备的类型和功能越来越多,用户使用多个电子设备时,来回切换很不方便。为了降低用户切换设备的成本,设备协同技术逐渐发展。With the advancement of technology, there are more and more types and functions of electronic devices. When users use multiple electronic devices, it is very inconvenient to switch back and forth. In order to reduce the cost of switching devices for users, device coordination technology is gradually developed.
设备协同是指两个电子设备建立连接后(比如蓝牙连接),从属电子设备的界面内容投屏显示在主电子设备上。在主电子设备的投屏界面上可以实现对从属电子设备的操作,例如,用户可以通过主电子设备的投屏界面调用从属电子设备的应用,但是,应用的运行界面始终与投屏界面大小进行适应性变化,比如,用户缩小投屏界面,应用的运行界面也缩小,使用起来极其不方便。Device collaboration means that after two electronic devices establish a connection (such as a Bluetooth connection), the interface content of the slave electronic device is projected and displayed on the master electronic device. The operation of the slave electronic device can be realized on the screen projection interface of the master electronic device. For example, the user can call the application of the slave electronic device through the screen projection interface of the master electronic device. However, the running interface of the application is always based on the size of the screen projection interface. Adaptive changes, for example, the user shrinks the screen projection interface, and the running interface of the application is also reduced, which is extremely inconvenient to use.
发明内容SUMMARY OF THE INVENTION
本申请提供了一种显示控制的方法及相关装置,可以识别第一操作的输入来源,显示对应输入来源的应用界面,从而避免用户在主电子设备上操作时应用界面的大小随投屏界面的大小变化而变化,方便用户使用,并且充分利用主电子设备的配置优势。The present application provides a display control method and related device, which can identify the input source of the first operation and display the application interface corresponding to the input source, thereby avoiding that the size of the application interface changes with the size of the screen projection interface when the user operates on the main electronic device. It varies in size for user convenience and takes full advantage of the configuration of the main electronics.
第一方面,本申请提供了一种显示控制的方法,该方法应用于主电子设备,主电子设备显示第一用户界面,该第一用户界面包括从属电子设备显示的第二用户界面投屏在该主电子设备上的界面内容;该主电子设备检测第一操作;若该第一操作是在该第一用户界面上的操作,响应于该第一操作,该主电子设备显示第三用户界面,该第三用户界面包括调用并运行该主电子设备的应用的界面;若该第一操作是在该第二用户界面上的操作,响应于该第一操作,该主电子设备显示第四用户界面,该第四用户界面包括调用并运行该从属电子设备的应用的界面。In a first aspect, the present application provides a display control method, the method is applied to a master electronic device, the master electronic device displays a first user interface, the first user interface includes a second user interface displayed by the slave electronic device. Interface content on the main electronic device; the main electronic device detects a first operation; if the first operation is an operation on the first user interface, in response to the first operation, the main electronic device displays a third user interface , the third user interface includes an interface for calling and running the application of the main electronic device; if the first operation is an operation on the second user interface, in response to the first operation, the main electronic device displays the fourth user interface an interface, the fourth user interface includes an interface for invoking and running an application of the slave electronic device.
实施第一方面提供的方法,主电子设备可以识别第一操作的输入来源,显示对应输入来源的应用界面,从而避免用户在主电子设备上操作时应用界面的大小随投屏界面的大小变化而变化,方便用户使用,并且充分利用主电子设备的配置优势。By implementing the method provided by the first aspect, the main electronic device can identify the input source of the first operation, and display the application interface corresponding to the input source, thereby preventing the size of the application interface from changing with the size of the screen projection interface when the user operates on the main electronic device. Changes, user-friendly, and take full advantage of the configuration advantages of the main electronic equipment.
其中,第一操作包括用于开启或调用应用的触摸操作。示例性地,该第一操作可以是用户点击浏览器的搜索框准备调用输入法输入文本的操作,或者,用户在主界面上点击摄像应用的图标准备调用摄像头的操作。Wherein, the first operation includes a touch operation for starting or invoking an application. Exemplarily, the first operation may be an operation in which the user clicks a search box of a browser to prepare to invoke an input method to input text, or an operation in which the user clicks an icon of a camera application on the main interface to prepare to invoke a camera.
结合第一方面,在一些实施例中,该第一用户界面包括投屏区域,该投屏区域包括该从属电子设备显示的第二用户界面投屏在该主电子设备上的界面内容,该第一操作是在该第一用户界面的投屏区域上的操作,该方法还包括:响应于检测到的作用于该第三用户界面的第二操作,该主电子设备将该应用的运行结果发送至该从属电子设备。这样,在主电子设备上的投屏区域操作,调用的主电子设备的应用运行结果直接发送至从属电子设备,不需要用户手动发送结果,减少用户操作。With reference to the first aspect, in some embodiments, the first user interface includes a screen projection area, and the screen projection area includes the interface content of the second user interface displayed by the slave electronic device that is projected on the master electronic device, and the second user interface is displayed on the master electronic device. An operation is an operation on the screen projection area of the first user interface, and the method further includes: in response to the detected second operation acting on the third user interface, sending, by the host electronic device, a running result of the application to the slave electronic device. In this way, when operating in the screen projection area on the master electronic device, the invoked application running result of the master electronic device is directly sent to the slave electronic device, and the user does not need to manually send the result, thereby reducing user operations.
其中,第二操作包括针对调用的应用的操作。示例性地,第二操作可以是用户点击输入 法界面的输入文本的操作,或者,用户点击相机应用界面的拍照控件的操作。Wherein, the second operation includes an operation for the called application. Exemplarily, the second operation may be an operation in which the user clicks on the input method interface to input text, or an operation in which the user clicks on the photographing control on the camera application interface.
结合第一方面,在一些实施例中,该方法还包括:该主电子设备检测到用于开启区分分布式输入设备功能的第三操作,响应于该第三操作,开启该区分分布式输入设备功能,该区分分布式输入设备功能用于该主电子设备检测到该第一操作是在主电子设备,则调用并运行该主电子设备的应用,或者该第一操作是在该从属电子设备,则调用并运行该从属电子设备的应用。通过这种方式,可以使得用户根据自身需求来设置该区分分布式输入设备功能的开启或关闭。With reference to the first aspect, in some embodiments, the method further includes: the master electronic device detects a third operation for enabling the function of distinguishing distributed input devices, and in response to the third operation, enabling the distinguishing distributed input device The function of distinguishing distributed input devices is used for the master electronic device to call and run the application of the master electronic device when it detects that the first operation is on the master electronic device, or the first operation is on the slave electronic device, Then the application of the slave electronic device is invoked and executed. In this way, the user can set the function of distinguishing distributed input devices to be on or off according to their own needs.
在一些实施例中,该方法还包括:该第一用户界面包括窗口区域,该第三操作包括该主电子设备检测到的作用于该窗口区域中的第一交互元素的操作,该第一交互元素用于监听开启该区分分布式输入设备功能的操作;在该区分分布式输入设备功能没有被开启时,该窗口区域中显示有该第一交互元素。In some embodiments, the method further includes: the first user interface includes a window area, the third operation includes an operation detected by the main electronic device acting on a first interaction element in the window area, the first interaction The element is used to monitor the operation of enabling the function of distinguishing distributed input devices; when the function of distinguishing distributed input devices is not enabled, the first interactive element is displayed in the window area.
在一些实施例中,该方法还包括:在开启该区分分布式输入设备功能后,该主电子设备刷新该窗口区域,刷新后的该窗口区域中显示第二交互元素;该主电子设备检测到作用于该第二交互元素的第四操作,响应于该第四操作,关闭该区分分布式输入设备功能。这样,使得用户方便开启或关闭该区分分布式输入设备的功能。In some embodiments, the method further includes: after enabling the function of distinguishing distributed input devices, the main electronic device refreshes the window area, and displays a second interactive element in the refreshed window area; the main electronic device detects that A fourth operation acting on the second interactive element, in response to the fourth operation, disables the distinguishing distributed input device function. In this way, it is convenient for the user to turn on or off the function of distinguishing distributed input devices.
结合第一方面,在一些实施例中,该第一用户界面包括投屏区域,该投屏区域包括该从属电子设备显示的第二用户界面投屏在该主电子设备上的界面内容,该方法还包括:在关闭该区分分布式输入设备功能后,该主电子设备检测第五操作;若该第五操作是在该主电子设备上的该投屏区域上的操作,响应于该第五操作,该主电子设备显示第五用户界面,该第五用户界面包括调用并运行该从属电子设备的应用的界面。也就是说,如果用户不想利用该区分分布式输入设备的功能,可以提供现有的方案即通用投屏功能供用户选择。因此本申请的该区分分布式输入设备功能可以与通用投屏功能兼容。With reference to the first aspect, in some embodiments, the first user interface includes a screen projection area, and the screen projection area includes interface content projected on the master electronic device by the second user interface displayed by the slave electronic device. It also includes: after the function of distinguishing distributed input devices is turned off, the main electronic device detects a fifth operation; if the fifth operation is an operation on the screen projection area on the main electronic device, responding to the fifth operation , the master electronic device displays a fifth user interface, and the fifth user interface includes an interface for calling and running an application of the slave electronic device. That is to say, if the user does not want to use the function of distinguishing distributed input devices, an existing solution, that is, a universal screen projection function, can be provided for the user to choose. Therefore, the differentiated distributed input device function of the present application may be compatible with the general screen projection function.
结合第一方面,在一些实施例中,若该第一操作是作用于该第一用户界面上的文本框的操作,该第三用户界面包括调用并运行该主电子设备的输入法应用的输入法界面。这样,使得用户在主电子设备的投屏区域输入文本时可以利用主电子设备的输入法,输入文本更方便。In combination with the first aspect, in some embodiments, if the first operation is an operation acting on a text box on the first user interface, the third user interface includes an input to invoke and run an input method application of the main electronic device legal interface. In this way, the user can use the input method of the main electronic device when inputting text in the screen projection area of the main electronic device, which makes it more convenient to input text.
在一些实施例中,该第二操作是作用于该第三用户界面的投屏区域中文本框的输入操作,该方法还包括:该主电子设备刷新该第三用户界面,刷新后的该第三用户界面的投屏区域包括该输入操作的输入结果。In some embodiments, the second operation is an input operation acting on a text box in the screen projection area of the third user interface, and the method further includes: the main electronic device refreshes the third user interface, and the refreshed third user interface The screen projection area of the third user interface includes the input result of the input operation.
结合第一方面,在一些实施例中,若该第一操作是作用于该第一用户界面上的摄像应用的操作,该第三用户界面包括调用并运行该主电子设备的摄像应用的第一预览画面,该第一预览画面包括第一图像,该第三用户界面还包括该主电子设备具备的至少一个增强功能选项;响应于检测到的作用于目标增强功能选项的第六操作,该电子设备显示第二预览画面,该第二预览画面包括第二图像,该第二图像是对该第一图像进行该目标增强功能选项对应的增强功能处理后的图像,该至少一个增强功能选项包括该目标增强功能选项。其中,第六操作包括对目标增强功能选项的点击操作。In combination with the first aspect, in some embodiments, if the first operation is an operation acting on a camera application on the first user interface, the third user interface includes a first operation that invokes and runs the camera application of the main electronic device a preview screen, the first preview screen includes a first image, and the third user interface further includes at least one enhanced function option provided by the main electronic device; in response to the detected sixth operation acting on the target enhanced function option, the electronic The device displays a second preview screen, the second preview screen includes a second image, and the second image is an image obtained by performing the enhancement function processing corresponding to the target enhancement function option on the first image, and the at least one enhancement function option includes the Target enhancement options. Wherein, the sixth operation includes a click operation on the target enhancement function option.
在一些实施例中,该第一用户界面包括投屏区域,该投屏区域包括该从属电子设备显示的第二用户界面投屏在该主电子设备上的界面内容,该第一操作是在该第一用户界面的投屏区域上的操作,该第二操作是作用于该第三用户界面中拍摄控件的操作,该方法还包括:该主电子设备刷新该第三用户界面,刷新后的该第三用户界面包括该拍摄操作的拍摄结果,该拍摄结果包括调用该目标增强功能后的拍摄画面。这样,使得用户在主电子设备的投屏区域操作时可调用主电子设备的摄像应用,并且调用主电子设备的增强功能进行拍摄,不使用从 属电子设备的摄像应用也可以在从属电子设备中得到拍摄结果。In some embodiments, the first user interface includes a screen projection area, and the screen projection area includes interface content projected on the master electronic device by the second user interface displayed by the slave electronic device, and the first operation is performed on the master electronic device. The operation on the screen projection area of the first user interface, the second operation is an operation acting on the shooting controls in the third user interface, and the method further includes: the main electronic device refreshes the third user interface, and the refreshed The third user interface includes a photographing result of the photographing operation, where the photographing result includes a photographing picture after the target enhancement function is invoked. In this way, the user can call the camera application of the master electronic device when operating in the screen projection area of the master electronic device, and call the enhanced function of the master electronic device to shoot, and the camera application without using the slave electronic device can also be obtained in the slave electronic device Shooting results.
结合第一方面,在一些实施例中,若该第一操作是作用于该第一用户界面上的播放应用图标的操作,该第三用户界面包括调用并运行该主电子设备的播放应用的媒体对象选择界面,该媒体对象选择界面包括至少一个媒体对象标识;该媒体对象选择界面包括该主电子设备历史播放的媒体对象标识。响应于检测到的作用于目标媒体对象标识的第七操作,该电子设备显示该目标媒体对象标识对应媒体的播放画面,该播放画面包括在该主电子设备上历史播放该媒体的播放信息,该至少一个媒体对象标识包括该目标媒体对象标识。In combination with the first aspect, in some embodiments, if the first operation is an operation acting on a play application icon on the first user interface, the third user interface includes media for calling and running the play application of the main electronic device An object selection interface, the media object selection interface includes at least one media object identifier; the media object selection interface includes the media object identifiers played in the history of the main electronic device. In response to the detected seventh operation acting on the target media object identification, the electronic device displays a playback screen of the media corresponding to the target media object identification, and the playback screen includes playback information for historically playing the media on the main electronic device, the The at least one media object identification includes the target media object identification.
在一些实施例中,该播放信息包括以下信息中的一项或多项:播放进度信息、用户点评信息以及媒体分享信息。In some embodiments, the playback information includes one or more of the following information: playback progress information, user comment information, and media sharing information.
在一些实施例中,该第一用户界面包括投屏区域,该投屏区域包括该从属电子设备显示的第二用户界面投屏在该主电子设备上的界面内容,该第一操作是在该第一用户界面的投屏区域上的操作,若该第二操作是作用于该媒体播放画面的关闭控件的操作,该方法还包括:响应于检测到的作用于该媒体播放画面的第二操作,该主电子设备关闭该媒体播放画面,将该媒体播放画面的播放信息发送至该从属电子设备。这样,使得用户在主电子设备的投屏区域操作时可调用主电子设备的播放应用。更好地利用主电子设备屏幕比从属电子设备大的优势,而且将播放信息发送至从属电子设备,方便用户转换场景后在从属电子设备上继续观看。In some embodiments, the first user interface includes a screen projection area, and the screen projection area includes interface content projected on the master electronic device by the second user interface displayed by the slave electronic device, and the first operation is performed on the master electronic device. The operation on the screen projection area of the first user interface, if the second operation is an operation acting on the closing control of the media playing screen, the method further includes: responding to the detected second operation acting on the media playing screen , the master electronic device closes the media playback screen, and sends the playback information of the media playback screen to the slave electronic device. In this way, the user can invoke the play application of the main electronic device when operating in the screen projection area of the main electronic device. It makes better use of the advantage that the screen of the main electronic device is larger than that of the subordinate electronic device, and sends the playback information to the subordinate electronic device, so that the user can continue watching on the subordinate electronic device after changing the scene.
结合第一方面,在一些实施例中,该主电子设备包括触摸屏幕和图形化用户界面;该从属电子设备包括触摸屏幕和图形化用户界面。这样,使得用户可以直接在电子设备上触屏操作,并通过图形化用户界面得到响应结果。In conjunction with the first aspect, in some embodiments, the master electronic device includes a touch screen and a graphical user interface; the slave electronic device includes a touch screen and a graphical user interface. In this way, the user can directly operate the touch screen on the electronic device, and obtain the response result through the graphical user interface.
第二方面,本申请提供了一种电子设备,该电子设备包括:显示屏、触摸传感器,存储器,一个或多个处理器,多个应用程序,以及一个或多个程序;其中该一个或多个程序被存储在该存储器中;当该一个或多个处理器在执行该一个或多个程序时,使得该电子设备执行如第一方面以及第一方面中任一可能的实现方式描述的方法。In a second aspect, the present application provides an electronic device comprising: a display screen, a touch sensor, a memory, one or more processors, a plurality of application programs, and one or more programs; wherein the one or more A program is stored in the memory; when the one or more processors are executing the one or more programs, the electronic device is caused to perform the method described in the first aspect and any possible implementation manner of the first aspect .
第三方面,本申请提供了一种计算机设备,包括存储器,处理器以及存储在所述存储器上并可在所述处理器上运行的计算机程序,当所述处理器执行所述计算机程序时使得所述计算机设备执行如第一方面以及第一方面中任一可能的实现方式描述的方法。In a third aspect, the present application provides a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, when the processor executes the computer program, the The computer device performs the method as described in the first aspect and any possible implementation of the first aspect.
第四方面,本申请提供了一种电子设备,该电子设备包括执行如第一方面以及第一方面中任一可能的实现方式描述的方法的装置。In a fourth aspect, the present application provides an electronic device, the electronic device comprising an apparatus for performing the method described in the first aspect and any possible implementation manner of the first aspect.
第五方面,本申请提供一种包含指令的计算机程序产品,当上述计算机程序产品在电子设备上运行时,使得上述电子设备执行如第一方面以及第一方面中任一可能的实现方式描述的方法。In a fifth aspect, the present application provides a computer program product containing instructions, when the computer program product is run on an electronic device, the electronic device is made to execute the first aspect and any possible implementation of the first aspect. method.
第六方面,本申请提供一种计算机可读存储介质,包括指令,当上述指令在电子设备上运行时,使得上述电子设备执行如第一方面以及第一方面中任一可能的实现方式描述的方法。In a sixth aspect, the present application provides a computer-readable storage medium, comprising instructions that, when the above-mentioned instructions are executed on an electronic device, cause the above-mentioned electronic device to execute the first aspect and any possible implementation manner of the first aspect. method.
第七方面,本申请提供一种通信系统,包括主电子设备,还包括从属电子设备;该主电子设备执行如第一方面以及第一方面中任一可能的实现方式描述的方法。In a seventh aspect, the present application provides a communication system, including a master electronic device and a slave electronic device; the master electronic device executes the method described in the first aspect and any possible implementation manner of the first aspect.
实施本申请提供的技术方案,主电子设备可以识别第一操作的输入来源,显示对应输入来源的应用界面,从而避免用户在主电子设备上操作时应用界面的大小随投屏界面的大小变化而变化,方便用户使用,并且充分利用主电子设备的配置优势。By implementing the technical solution provided in this application, the main electronic device can identify the input source of the first operation and display the application interface corresponding to the input source, thereby preventing the size of the application interface from changing with the size of the screen projection interface when the user operates on the main electronic device Changes, user-friendly, and take full advantage of the configuration advantages of the main electronic equipment.
图1是本申请实施例提供的电子设备的结构示意图;1 is a schematic structural diagram of an electronic device provided by an embodiment of the present application;
图2A-图2I是本申请实施例提供的两个电子设备建立协同关系的示意图;2A-2I are schematic diagrams of establishing a collaborative relationship between two electronic devices provided by an embodiment of the present application;
图3A-图3B是本申请实施例提供的第一种开启区分分布式输入设备功能的方式的示意图;FIG. 3A-FIG. 3B are schematic diagrams of the first method for enabling the function of distinguishing distributed input devices provided by an embodiment of the present application;
图4A-图4I是本申请实施例提供的在文本输入场景下提供的一些人机交互示意图;4A-4I are schematic diagrams of some human-computer interactions provided in a text input scenario provided by an embodiment of the present application;
图5A-图5F是本申请实施例提供的在图像拍摄场景下提供的另一些人机交互示意图;5A-5F are other schematic diagrams of human-computer interaction provided in an image shooting scene provided by an embodiment of the present application;
图6A-图6I是本申请实施例提供的在视频播放场景下提供的一些人机交互示意图;6A-6I are schematic diagrams of some human-computer interactions provided in a video playback scenario provided by an embodiment of the present application;
图7是本申请实施例提供的电子设备的软件结构示意图;7 is a schematic diagram of a software structure of an electronic device provided by an embodiment of the present application;
图8是本申请实施例提供的电子设备实现区分分布式输入设备功能的方法流程图。FIG. 8 is a flowchart of a method for implementing a function of distinguishing distributed input devices by an electronic device provided by an embodiment of the present application.
下面结合本申请实施例中的附图对本申请实施例进行描述。本申请实施例的实施方式部分使用的术语仅用于对本申请的具体实施例进行解释,而非旨在限定本申请。The embodiments of the present application will be described below with reference to the accompanying drawings in the embodiments of the present application. The terms used in the implementation part of the embodiments of the present application are only used to explain the specific embodiments of the present application, and are not intended to limit the present application.
首先介绍本申请实施例涉及的应用场景。本申请涉及到至少两个电子设备,该电子设备具备触摸屏幕和图形化用户界面,包括但不限于手机、平板电脑、智慧屏等。本申请实施例中,该至少两个电子设备之间建立协同关系。电子设备之间协同是指利用分布式技术,实现跨设备、跨系统协同,将多个电子设备连接后,实现资源共享、协同操作等功能,该多个电子设备包括但不限于手机、电脑、平板等电子设备。First, the application scenarios involved in the embodiments of the present application are introduced. The present application involves at least two electronic devices, the electronic devices have a touch screen and a graphical user interface, including but not limited to mobile phones, tablet computers, smart screens, and the like. In this embodiment of the present application, a collaborative relationship is established between the at least two electronic devices. Collaboration between electronic devices refers to the use of distributed technology to achieve cross-device and cross-system collaboration, and after connecting multiple electronic devices to realize functions such as resource sharing and collaborative operation, the multiple electronic devices include but are not limited to mobile phones, computers, Tablet and other electronic devices.
下面以两个电子设备为例介绍电子设备之间建立协同关系的过程,例如,该两个电子设备分别为第一电子设备和第二电子设备。具体的,第一电子设备和第二电子设备先建立连接,连接方式包括但不限于蓝牙连接、扫码连接、近距离无线通信(Near Field Communication,NFC)碰一碰连接等。然后,第一电子设备的界面内容可以投屏到第二电子设备的界面上进行显示。在本申请中,可以将第一电子设备称为从属电子设备,第二电子设备称为主电子设备。投屏后从属电子设备的界面内容可投屏显示在主电子设备的界面上,本申请实施例中可以将主电子设备界面上用于显示投屏后的从属电子设备的界面内容的部分称为投屏界面。而将主电子设备界面上除投屏界面外的其他部分称为非投屏界面。The following takes two electronic devices as an example to introduce the process of establishing a cooperative relationship between electronic devices, for example, the two electronic devices are a first electronic device and a second electronic device respectively. Specifically, the first electronic device and the second electronic device first establish a connection, and the connection methods include but are not limited to Bluetooth connection, scan code connection, Near Field Communication (Near Field Communication, NFC) touch connection and the like. Then, the interface content of the first electronic device can be projected onto the interface of the second electronic device for display. In this application, the first electronic device may be referred to as a slave electronic device, and the second electronic device may be referred to as a master electronic device. After the screen is projected, the interface content of the slave electronic device can be projected and displayed on the interface of the master electronic device. In this embodiment of the present application, the part of the interface of the master electronic device used to display the interface content of the slave electronic device after the screen projection may be referred to as Screencasting interface. On the other hand, other parts of the interface of the main electronic device other than the screen projection interface are called non-screen projection interfaces.
本申请实施例中,当用户在主电子设备屏幕上进行触屏操作时,无论该触屏操作是在投屏界面或者非投屏界面,都调用主电子设备的应用程序实现相应的功能。当用户在从属电子设备屏幕上进行触屏操作时,则调用从属电子设备的应用程序实现相应的功能。In the embodiment of the present application, when the user performs a touch screen operation on the screen of the main electronic device, regardless of whether the touch screen operation is on a screen projection interface or a non-screen projection interface, the application program of the main electronic device is invoked to implement corresponding functions. When the user performs a touch-screen operation on the screen of the slave electronic device, the application program of the slave electronic device is invoked to implement the corresponding function.
下面首先介绍本申请以下实施例中提供的示例性电子设备100。The following first introduces the exemplary electronic device 100 provided in the following embodiments of the present application.
图1示出了电子设备100的结构示意图。FIG. 1 shows a schematic structural diagram of an electronic device 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等。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 charge management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2 , mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, sensor module 180, buttons 190, motor 191, indicator 192, camera 193, display screen 194, and Subscriber identification module (subscriber identification module, SIM) card interface 195 and so on. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light. Sensor 180L, bone conduction sensor 180M, etc.
可以理解的是,本申请实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件, 或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the electronic device 100 . In other embodiments of the present application, the electronic device 100 may include more or less components than shown, or some components may be combined, or some components may be separated, or different components may be arranged. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (neural-network processing unit, NPU), etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The controller can generate an operation control signal according to the instruction operation code and timing signal, and complete the control of fetching and executing instructions.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in processor 110 is cache memory. This memory may hold instructions or data that have just been used or recycled by the processor 110 . If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby increasing the efficiency of the system.
在一些实施例中,处理器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)接口等。In some embodiments, the processor 110 may include one or more interfaces. The interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transceiver (universal asynchronous transmitter) receiver/transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and / or universal serial bus (universal serial bus, USB) interface, etc.
在本申请实施例中,处理器110可用于确定主电子设备100和其他从属电子设备协同工作时是否开启区分分布式输入设备的功能。In this embodiment of the present application, the processor 110 may be configured to determine whether the function of distinguishing distributed input devices is enabled when the master electronic device 100 and other slave electronic devices work together.
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现电子设备100的触摸功能。The I2C interface is a bidirectional synchronous serial bus that includes a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may contain multiple sets of I2C buses. The processor 110 can be respectively coupled to the touch sensor 180K, the charger, the flash, the camera 193 and the like through different I2C bus interfaces. For example, the processor 110 may couple the touch sensor 180K through the I2C interface, so that the processor 110 and the touch sensor 180K communicate with each other through the I2C bus interface, so as to realize the touch function of the electronic device 100 .
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。The I2S interface can be used for audio communication. In some embodiments, the processor 110 may contain multiple sets of I2S buses. The processor 110 may be coupled with the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170 . In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 through the I2S interface, so as to realize the function of answering calls through a Bluetooth headset.
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。The PCM interface can also be used for audio communications, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。The UART interface is a universal serial data bus used for asynchronous communication. The bus may be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is typically used to connect the processor 110 with the wireless communication module 160 . For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 through the UART interface, so as to realize the function of playing music through the Bluetooth headset.
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface, DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现电子设备100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现电子设备100的显示功能。The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193 . MIPI interfaces include camera serial interface (CSI), display serial interface (DSI), etc. In some embodiments, the processor 110 communicates with the camera 193 through a CSI interface, so as to realize the photographing function of the electronic device 100 . The processor 110 communicates with the display screen 194 through the DSI interface to implement the display function of the electronic device 100 .
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface may be used to connect the processor 110 with the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like. The GPIO interface can also be configured as I2C interface, I2S interface, UART interface, MIPI interface, etc.
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。The USB interface 130 is an interface that conforms to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transmit data between the electronic device 100 and peripheral devices. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other electronic devices, such as AR devices.
可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It can be understood that the interface connection relationship between the modules illustrated in the embodiments of the present application is only a schematic illustration, and does not constitute a structural limitation of the electronic device 100 . In other embodiments of the present application, the electronic device 100 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。The charging management module 140 is used to receive charging input from the charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from the wired charger through the USB interface 130 . In some wireless charging embodiments, 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 charges the battery 142 , it can also supply power to the electronic device through the power management module 141 .
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。The power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 . The power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, battery health status (leakage, impedance). In some other embodiments, the power management module 141 may also be provided in the processor 110 . In other embodiments, the power management module 141 and the charging management module 140 may also be provided in the same device.
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modulation and demodulation processor, the baseband processor, and the like.
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。 Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, the antenna 1 can be multiplexed as a diversity antenna of the wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。The mobile communication module 150 may provide wireless communication solutions including 2G/3G/4G/5G etc. applied on the electronic device 100 . The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA) and the like. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, filter and amplify the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and then turn it into an electromagnetic wave for radiation through the antenna 1 . In some embodiments, at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110 . In some embodiments, at least part of the functional modules of the mobile communication module 150 may be provided in the same device as at least part of the modules of the processor 110 .
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器 件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。The modem processor may include a modulator and a demodulator. Wherein, the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and passed to the application processor. The application processor outputs sound signals through audio devices (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or videos through the display screen 194 . In some embodiments, the modem processor may be a separate device. In other embodiments, the modem processor may be independent of the processor 110, and may be provided in the same device as the mobile communication module 150 or other functional modules.
无线通信模块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转为电磁波辐射出去。The wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellites Wireless communication solutions such as global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared technology (IR). The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 . The wireless communication module 160 can also receive the signal to be sent from the processor 110 , perform frequency modulation on it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 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)。In some embodiments, the antenna 1 of the electronic device 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the 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), broadband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc. The GNSS may include global positioning system (global positioning system, GPS), global navigation satellite system (global navigation satellite system, GLONASS), Beidou navigation satellite system (beidou navigation satellite system, BDS), quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite based augmentation systems (SBAS).
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The electronic device 100 implements a display function through a GPU, a display screen 194, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
显示屏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的正整数。Display screen 194 is used to display images, videos, and the like. Display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (active-matrix organic light). emitting diode, AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (quantum dot light emitting diodes, QLED) and so on. In some embodiments, the electronic device 100 may include one or N display screens 194 , where N is a positive integer greater than one.
在本申请实施例中,显示屏194可用于显示用户界面,用户界面中的各种控件可用于监听用户在不同来源的电子设备以及电子设备的不同位置的触摸操作。响应于该操作,显示屏194还可以用于显示电子设备对触摸操作的响应结果。In this embodiment of the present application, the display screen 194 may be used to display a user interface, and various controls in the user interface may be used to monitor user's touch operations on electronic devices from different sources and at different positions of the electronic devices. In response to the operation, the display screen 194 may also be used to display the response result of the electronic device to the touch operation.
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。The electronic device 100 may implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。The ISP is used to process the data fed back by the camera 193 . For example, when taking a photo, the shutter is opened, the light is transmitted to the camera photosensitive element through the lens, the light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on image noise, brightness, and skin tone. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP may be provided in the camera 193 .
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体 (complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。Camera 193 is used to capture still images or video. The object is projected through the lens to generate an optical image onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. DSP converts digital image signals into standard RGB, YUV and other formats of image signals. In some embodiments, the electronic device 100 may include 1 or N cameras 193 , where N is a positive integer greater than 1.
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。A digital signal processor is used to process digital signals, in addition to processing digital image signals, it can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy and so on.
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。Video codecs are used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. In this way, the electronic device 100 can play or record videos of various encoding formats, such as: Moving Picture Experts Group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4 and so on.
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。The NPU is a neural-network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transfer mode between neurons in the human brain, it can quickly process the input information, and can continuously learn by itself. Applications such as intelligent cognition of the electronic device 100 can be implemented through the NPU, such as image recognition, face recognition, speech recognition, text understanding, and the like.
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。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 realize the data storage function. For example to save files like music, video etc in external memory card.
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。处理器110通过运行存储在内部存储器121的指令,和/或存储在设置于处理器中的存储器的指令,执行电子设备100的各种功能应用以及数据处理。Internal memory 121 may be used to store computer executable program code, which includes instructions. The internal memory 121 may include a storage program area and a storage data area. The storage program area can store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), and the like. The storage data area may store data (such as audio data, phone book, etc.) created during the use of the electronic device 100 and the like. In addition, the internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (UFS), and the like. The processor 110 executes various functional applications and data processing of the electronic device 100 by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The electronic device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playback, recording, etc.
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。The audio module 170 is used for converting digital audio information into analog audio signal output, and also for converting analog audio input into digital audio signal. Audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be provided in the processor 110 , or some functional modules of the audio module 170 may be provided in the processor 110 .
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器170A收听音乐,或收听免提通话。 Speaker 170A, also referred to as a "speaker", is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music through the speaker 170A, or listen to a hands-free call.
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。The receiver 170B, also referred to as "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 100 answers a call or a voice message, the voice can be answered by placing the receiver 170B close to the human ear.
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备100可以设置至少一个麦克风170C。在另一些实施例中,电子设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。The 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 make a sound by approaching the microphone 170C through a human mouth, and input the sound signal into the microphone 170C. The electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C, which can implement a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device 100 may further be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and implement directional recording functions.
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm 的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。The earphone jack 170D is used to connect wired earphones. The earphone interface 170D may be the USB interface 130, or may be a 3.5mm open mobile terminal platform (OMTP) standard interface, a cellular telecommunications industry association of the USA (CTIA) standard interface.
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备100根据压力传感器180A检测所述触摸操作强度。电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。The pressure sensor 180A is used to sense pressure signals, and can convert the pressure signals into electrical signals. In some embodiments, the pressure sensor 180A may be provided on the display screen 194 . There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, and the like. The capacitive pressure sensor may be comprised of at least two parallel plates of conductive material. When a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A. The electronic device 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions. For example, when a touch operation whose intensity is less than the first pressure threshold acts on the short message application icon, the instruction for viewing 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, the instruction to create a new short message is executed.
陀螺仪传感器180B可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测电子设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。The gyro sensor 180B may be used to determine the motion attitude of the electronic device 100 . In some embodiments, the angular velocity of electronic device 100 about three axes (ie, x, y, and z axes) may be determined by gyro sensor 180B. The gyro sensor 180B can be used for image stabilization. Exemplarily, when the shutter is pressed, the gyro sensor 180B detects the shaking angle of the electronic device 100, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to offset the shaking of the electronic device 100 through reverse motion to achieve anti-shake. The gyro sensor 180B can also be used for navigation and somatosensory game scenarios.
气压传感器180C用于测量气压。在一些实施例中,电子设备100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。The air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist in positioning and navigation.
磁传感器180D包括霍尔传感器。电子设备100可以利用磁传感器180D检测翻盖皮套的开合。在一些实施例中,当电子设备100是翻盖机时,电子设备100可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。The magnetic sensor 180D includes a Hall sensor. The electronic device 100 can detect the opening and closing of the flip holster using the magnetic sensor 180D. In some embodiments, when the electronic device 100 is a flip machine, the electronic device 100 can detect the opening and closing of the flip according to the magnetic sensor 180D. Further, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, characteristics such as automatic unlocking of the flip cover are set.
加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。The acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in various directions (generally three axes). The magnitude and direction of gravity can be detected when the electronic device 100 is stationary. It can also be used to identify the posture of electronic devices, and can be used in applications such as horizontal and vertical screen switching, pedometers, etc.
距离传感器180F,用于测量距离。电子设备100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备100可以利用距离传感器180F测距以实现快速对焦。Distance sensor 180F for measuring distance. The electronic device 100 can measure the distance through 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.
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。电子设备100通过发光二极管向外发射红外光。电子设备100使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定电子设备100附近有物体。当检测到不充分的反射光时,电子设备100可以确定电子设备100附近没有物体。电子设备100可以利用接近光传感器180G检测用户手持电子设备100贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。Proximity light sensor 180G may include, for example, light emitting diodes (LEDs) and light detectors, such as photodiodes. The light emitting diodes may be infrared light emitting diodes. The electronic device 100 emits infrared light to the outside through the light emitting diode. Electronic device 100 uses photodiodes 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 may 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. Proximity light sensor 180G can also be used in holster mode, pocket mode automatically unlocks and locks the screen.
环境光传感器180L用于感知环境光亮度。电子设备100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测电子设备100是否在口袋里,以防误触。The ambient light sensor 180L is used to sense ambient light brightness. 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, so as to prevent accidental touch.
指纹传感器180H用于采集指纹。电子设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to realize fingerprint unlocking, accessing application locks, taking pictures with fingerprints, answering incoming calls with fingerprints, and the like.
温度传感器180J用于检测温度。在一些实施例中,电子设备100利用温度传感器180J 检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,电子设备100执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,电子设备100对电池142加热,以避免低温导致电子设备100异常关机。在其他一些实施例中,当温度低于又一阈值时,电子设备100对电池142的输出电压执行升压,以避免低温导致的异常关机。The temperature sensor 180J is used to detect the temperature. In some embodiments, 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 value, the electronic device 100 reduces the performance of the processor located near the temperature sensor 180J in order 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 caused by the low temperature. In some 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.
触摸传感器180K,也称“触控面板”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。Touch sensor 180K, also called "touch panel". The touch sensor 180K may be disposed on the display screen 194 , and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”. The touch sensor 180K is used to detect a touch operation on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to touch operations may be provided through display screen 194 . In other embodiments, the touch sensor 180K may also be disposed on the surface of the electronic device 100 , which is different from the location where the display screen 194 is located.
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器180M也可以设置于耳机中,结合成骨传导耳机。音频模块170可以基于所述骨传导传感器180M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器180M获取的血压跳动信号解析心率信息,实现心率检测功能。The bone conduction sensor 180M can acquire vibration signals. In some embodiments, the bone conduction sensor 180M can acquire the vibration signal of the vibrating bone mass of the human voice. The bone conduction sensor 180M can also contact the pulse of the human body and receive the blood pressure beating signal. In some embodiments, the bone conduction sensor 180M can also be disposed in the earphone, combined with the bone conduction earphone. The audio module 170 can analyze the voice signal based on the vibration signal of the vocal vibration bone block obtained by the bone conduction sensor 180M, so as to realize the voice function. The application processor can analyze the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 180M, and realize the function of heart rate detection.
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。The keys 190 include a power-on key, a volume key, and the like. Keys 190 may be mechanical keys. It can also be a touch key. The electronic device 100 may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 100 .
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。Motor 191 can generate vibrating cues. The motor 191 can be used for vibrating alerts for incoming calls, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, playing audio, etc.) can correspond to different vibration feedback effects. The motor 191 can also correspond to different vibration feedback effects for touch operations on different areas of the display screen 194 . Different application scenarios (for example: time reminder, receiving information, alarm clock, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。The indicator 192 can be an indicator light, which can be used to indicate the charging state, the change of the power, and can also be used to indicate a message, a missed call, a notification, and the like.
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。电子设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,电子设备100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备100中,不能和电子设备100分离。The SIM card interface 195 is used to connect a SIM card. The SIM card can be contacted and separated from the electronic device 100 by inserting into the SIM card interface 195 or pulling out from the SIM card interface 195 . The electronic device 100 may support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM card, Micro SIM card, SIM card and so on. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the plurality of cards may be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 is also compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as call and data communication. In some embodiments, the electronic device 100 employs an eSIM, ie: an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100 .
下面介绍主电子设备100提供的一些示例性用户界面(user interface,UI)。本申请的说明书和权利要求书及附图中的术语“用户界面”,是应用程序或操作系统与用户之间进行交互和信息交换的介质接口,它实现信息的内部形式与用户可以接受形式之间的转换。用户界面常用的表现形式是图形用户界面(graphic user interface,GUI),是指采用图形方式显示的与计算机操作相关的用户界面。它可以是在电子设备的显示屏中显示的一个图标、窗口、控件等界面元素,其中控件可以包括图标、按钮、菜单、选项卡、文本框、对话框、状态栏、导 航栏、Widget等可视的界面元素。Some exemplary user interfaces (UIs) provided by the main electronic device 100 are described below. The term "user interface" in the description, claims and drawings of this application is a medium interface for interaction and information exchange between application programs or operating systems and users, which realizes the internal form of information and the form acceptable to users. conversion between. A commonly used form of user interface is a graphical user interface (GUI), which refers to a user interface related to computer operations that is displayed graphically. It can be an icon, window, control and other interface elements displayed on the display screen of the electronic device, wherein the control can include icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, Widgets, etc. visual interface elements.
图2A示例性示出了电子设备100上的用于展示电子设备100安装的应用程序的示例性用户界面21。FIG. 2A exemplarily shows an exemplary user interface 21 on the electronic device 100 for presenting applications installed by the electronic device 100 .
用户界面21可包括:状态栏201,具有常用应用程序图标的托盘202,以及其他应用程序图标。其中:User interface 21 may include a status bar 201, a tray 202 with icons of frequently used applications, and other application icons. in:
状态栏201可包括:无线高保真(wireless fidelity,Wi-Fi)信号的一个或多个信号强度指示符201A、蓝牙功能指示符201B、电池状态指示符201C、时间指示符201D。The status bar 201 may include one or more signal strength indicators 201A of a wireless fidelity (Wi-Fi) signal, a Bluetooth function indicator 201B, a battery status indicator 201C, and a time indicator 201D.
具有常用应用程序图标的托盘202可展示:相册图标204A、便签图标204B、邮件图标204C、文件管理图标204D。The tray 202 with frequently used application icons may display: album icon 204A, note icon 204B, mail icon 204C, file management icon 204D.
其他应用程序图标可例如:相机的图标203、微博(Weibo)的图标204、电话的图标205、日历的图标206、浏览器的图标207、微信(Wechat)的图标208、设置的图标209、阅读的图标210、视频的图标211、音乐的图标212、联系人的图标213、信息的图标214。用户界面21还可包括页面指示符215。其他应用程序图标可分布在多个页面,页面指示符215可用于指示用户当前浏览的是哪一个页面中的应用程序。用户可以左右滑动其他应用程序图标的区域,来浏览其他页面中的应用程序图标。Other application icons can be, for example, the icon 203 of the camera, the icon 204 of Weibo, the icon 205 of the phone, the icon 206 of the calendar, the icon 207 of the browser, the icon 208 of the WeChat (Wechat), the icon 209 of the settings, The icon 210 of reading, the icon 211 of video, the icon 212 of music, the icon 213 of contact, the icon 214 of information. User interface 21 may also include page indicators 215 . Other application icons may be distributed on multiple pages, and the page indicator 215 may be used to indicate the application in which page the user is currently browsing. Users can swipe left and right in the area of other application icons to browse application icons in other pages.
在一些实施例中,图2A示例性所示的用户界面21可以为主界面(Home screen)。In some embodiments, the user interface 21 exemplarily shown in FIG. 2A may be a home screen.
可以理解的是,图2A仅仅示例性示出了电子设备100上的用户界面,不应构成对本申请实施例的限定。It can be understood that, FIG. 2A only exemplarily shows the user interface on the electronic device 100 , and should not constitute a limitation to the embodiments of the present application.
下面介绍两台电子设备建立协同关系的过程。The following describes the process of establishing a cooperative relationship between two electronic devices.
如图2A所示,当主电子设备100检测到在状态栏201上的向下滑动手势时,响应于该手势,主电子设备100可以在用户界面21上显示窗口216。如图2B所示,窗口216中可以显示有“多屏协同”的开关控件216A,还可以显示有其他功能(如Wi-Fi、蓝牙、手电筒等等)的开关控件。当检测到在窗口216中的开关控件216A上的操作(如在开关控件216A上的触摸操作)时,响应于该操作,主电子设备100可以开启“多屏协同”功能。如图2C所示,主电子设备100开启“多屏协同”功能后,用户界面状态栏显示“多屏协同”功能指示符201E,用户界面显示“多屏协同”窗口217,提示从属电子设备(如手机)连接此主电子设备100,来建立协同关系。As shown in FIG. 2A , when the main electronic device 100 detects a swipe down gesture on the status bar 201 , the main electronic device 100 may display a window 216 on the user interface 21 in response to the gesture. As shown in FIG. 2B , the window 216 may display a switch control 216A for “multi-screen collaboration”, and may also display switch controls for other functions (such as Wi-Fi, Bluetooth, flashlight, etc.). When an operation on the switch control 216A in the window 216 (eg, a touch operation on the switch control 216A) is detected, in response to the operation, the main electronic device 100 may turn on the "multi-screen collaboration" function. As shown in FIG. 2C , after the master electronic device 100 enables the “multi-screen collaboration” function, the user interface status bar displays a “multi-screen collaboration” function indicator 201E, and the user interface displays a “multi-screen collaboration” window 217, prompting the slave electronic device ( Such as a mobile phone) is connected to the main electronic device 100 to establish a collaborative relationship.
从属电子设备200可以通过多种连接方式与主电子设备100连接建立协同关系,包括蓝牙连接、扫码连接、NFC连接等。本实施例以蓝牙连接方式来说明具体的连接过程。如图2D所示,当从属电子设备200检测到在状态栏218上的向下滑动手势时,响应于该手势,从属电子设备200可以在用户界面22上显示窗口219。如图2E所示,窗口216中可以显示有蓝牙开关控件219A和其他功能(如Wi-Fi、移动数据等等)的开关控件。当检测到在窗口219中的开关控件219A上的操作(如在开关控件219A上的触摸操作)时,响应于该操作,从属电子设备200可以开启蓝牙。如图2F所示,当从属电子设备200和主电子设备100距离在蓝牙可检测的范围内,从属电子设备200的用户界面显示确认连接窗口220,检测到在窗口220上的控件220A(确认“连接”)的操作(如在控件220A上的触摸操作)时,响应于该操作,主电子设备100的用户界面可以显示确认连接窗口。The slave electronic device 200 can establish a cooperative relationship with the master electronic device 100 through various connection methods, including Bluetooth connection, code scanning connection, NFC connection, and the like. In this embodiment, a specific connection process is described in a Bluetooth connection manner. As shown in FIG. 2D, when slave electronic device 200 detects a swipe down gesture on status bar 218, slave electronic device 200 may display window 219 on user interface 22 in response to the gesture. As shown in FIG. 2E, the window 216 may display a Bluetooth switch control 219A and switch controls for other functions (eg, Wi-Fi, mobile data, etc.). When an operation on the switch control 219A in the window 219 (eg, a touch operation on the switch control 219A) is detected, the slave electronic device 200 may turn on Bluetooth in response to the operation. As shown in FIG. 2F, when the distance between the slave electronic device 200 and the master electronic device 100 is within the Bluetooth detectable range, the user interface of the slave electronic device 200 displays a confirmation connection window 220, and detects the control 220A on the window 220 (Confirm “Confirm” "Connect") operation (eg, a touch operation on the control 220A), in response to the operation, the user interface of the main electronic device 100 may display a confirm connection window.
如图2G所示,主电子设备100的图形用户界面21显示确认连接窗口221,当检测到在窗口221中的控件221A(确认“允许”连接)上的操作(如在开关控件221A上的触摸操作)时,响应于该操作,从属电子设备200和主电子设备100进行连接。如图2H所示,主电子 设备100的图形用户界面21显示窗口222,表示正在和从属电子设备200进行连接;从属电子设备200的图形用户界面22显示窗口223,表示正在和主电子设备100进行连接。当从属电子设备200和主电子设备100连接成功,如图2I所示,主电子设备100上的图形用户界面21显示从属电子设备200的投屏界面300。As shown in FIG. 2G , the GUI 21 of the main electronic device 100 displays a confirm connection window 221, when an operation (such as a touch on the switch control 221A) on the control 221A (confirm “allow” connection) in the window 221 is detected operation), in response to the operation, the slave electronic device 200 and the master electronic device 100 are connected. As shown in FIG. 2H , the graphical user interface 21 of the master electronic device 100 displays a window 222 , indicating that the connection with the slave electronic device 200 is being performed; connect. When the slave electronic device 200 and the master electronic device 100 are successfully connected, as shown in FIG. 2I , the GUI 21 on the master electronic device 100 displays the screen projection interface 300 of the slave electronic device 200 .
本申请实施例中,主电子设备和从属电子设备建立了协同关系,主电子设备具有区分输入设备的功能,具体的,检测到针对主电子设备的触屏操作,调用主电子设备的应用,可选的,当触屏操作在主电子设备的投屏界面上时,响应结果显示于主电子设备的投屏界面,进一步可选的,把响应结果发送给从属电子设备,并显示于从属电子设备;当触屏操作在主电子设备的非投屏界面上时,响应结果显示于主电子设备的非投屏界面。检测到针对从属电子设备的触屏操作,调用从属电子设备的应用,响应结果显示于从属电子设备和主电子设备的投屏界面。为了描述方便,后续实施例中,将上述功能称为区分分布式输入设备功能。In the embodiment of the present application, the master electronic device and the slave electronic device establish a cooperative relationship, and the master electronic device has the function of distinguishing input devices. Optionally, when the touch screen is operated on the screen projection interface of the master electronic device, the response result is displayed on the screen projection interface of the master electronic device, and further optionally, the response result is sent to the slave electronic device and displayed on the slave electronic device. ; When the touch screen is operated on the non-screen projection interface of the main electronic device, the response result is displayed on the non-screen projection interface of the main electronic device. A touch screen operation on the slave electronic device is detected, the application of the slave electronic device is invoked, and the response result is displayed on the screen projection interface of the slave electronic device and the master electronic device. For the convenience of description, in subsequent embodiments, the above function is referred to as a function of distinguishing distributed input devices.
可选的,为了与通用投屏功能兼容,本申请可以通过开关控件实现区分分布式输入设备功能与现有的通用投屏功能之间的转换。其中,通用投屏功能可以是指用户在主电子设备的非投屏界面触屏操作时,调用的是主电子设备的应用,主电子设备响应此触屏操作;用户在主电子设备的投屏界面触屏操作时,调用的是从属电子设备的应用,从属电子设备响应此触屏操作,并且把响应结果显示在主电子设备的投屏界面上。Optionally, in order to be compatible with the general screen projection function, the present application can realize the conversion between the distributed input device function and the existing general screen projection function through a switch control. The general screen projection function may mean that when the user touches the screen on the non-screen projection interface of the main electronic device, the application of the main electronic device is invoked, and the main electronic device responds to the touch screen operation; the user's screen projection on the main electronic device When the interface touches the screen, the application of the slave electronic device is invoked, the slave electronic device responds to the touch screen operation, and displays the response result on the screen projection interface of the master electronic device.
下面以两种可选的实施方式,介绍开启区分分布式输入设备功能的过程。The following describes the process of enabling the function of distinguishing distributed input devices in two optional implementation manners.
(一)第一种可选的实施方式:利用“功能开关”控件开启或关闭区分分布式输入设备功能。(1) The first optional implementation manner: use the "function switch" control to enable or disable the function of distinguishing distributed input devices.
图2A及图2B示例性示出了电子设备100上的一种通过“功能开关”控件开启区分分布式输入设备功能的操作。FIG. 2A and FIG. 2B exemplarily show an operation on the electronic device 100 for turning on the function of the differentiated distributed input device through the “function switch” control.
用户可以在状态栏201处做一个向下滑动的手势来打开窗口216,并可以在窗口216中点击“功能开关”的控件216B来方便地开启“功能开关”。当“功能开关”已经开启,如果再次点击“功能开关”的控件216B可以关闭“功能开关”。“功能开关”的开关控件216B的表现形式可以为文本信息或者图标。The user can make a downward swipe gesture at the status bar 201 to open the window 216, and can click the control 216B of the "function switch" in the window 216 to conveniently open the "function switch". When the "function switch" has been turned on, if the control 216B of the "function switch" is clicked again, the "function switch" can be turned off. The representation form of the switch control 216B of the "function switch" can be text information or icons.
在本申请实施例中,通过图2A及图2B所示的操作来开启“功能开关”后,电子设备100开启区分分布式输入设备的功能,即当主电子设备100与从属电子设备协同工作,触摸操作来自主电子设备,调用主电子设备上的应用来响应触摸操作。触摸操作来自从属电子设备,调用从属电子设备上的应用来响应触摸操作。In this embodiment of the present application, after the “function switch” is turned on through the operations shown in FIG. 2A and FIG. 2B , the electronic device 100 enables the function of distinguishing distributed input devices, that is, when the master electronic device 100 and the slave electronic devices work together, touch The action comes from the main electronic device, and the application on the main electronic device is invoked to respond to the touch operation. The touch operation comes from the slave electronic device, and the application on the slave electronic device is invoked to respond to the touch operation.
而关闭“功能开关”后,电子设备100关闭区分分布式输入设备的功能,调用通用投屏功能。即当主电子设备100与从属电子设备协同工作,在主电子设备的非投屏界面进行触摸操作,调用主电子设备上的应用来响应触摸操作;在从属电子设备或者主电子设备的投屏界面进行触摸操作,均调用从属电子设备上的应用来响应触摸操作。After the "function switch" is turned off, the electronic device 100 turns off the function of distinguishing distributed input devices, and invokes the general screen projection function. That is, when the master electronic device 100 cooperates with the slave electronic device, the touch operation is performed on the non-screen projection interface of the master electronic device, and the application on the master electronic device is called to respond to the touch operation; For touch operations, the application on the slave electronic device is called to respond to the touch operation.
“功能开关”可以默认设置开启,也可以默认设置关闭,并且用户可以自主设置,将“功能开关”开启或者关闭,本申请实施例对此不做限制。The "function switch" may be enabled or disabled by default, and the user may independently set the "function switch" to enable or disable it, which is not limited in this embodiment of the present application.
(二)第二种可选的实施方式:利用“切换设备”控件开启或关闭区分分布式输入设备功能。(2) The second optional implementation manner: use the "switch device" control to enable or disable the function of distinguishing distributed input devices.
图3A及图3B示例性示出了主电子设备100上的一种利用“切换设备”控件开启或关闭区分分布式输入设备功能的操作。FIG. 3A and FIG. 3B exemplarily show an operation on the main electronic device 100 for turning on or off the function of the differentiated distributed input device by using the “switch device” control.
在一些实施例中,主电子设备100默认可以开启区分分布式输入设备功能。当主电子设备100和从属电子设备200已经建立了协同关系,如图3A所示,主电子设备100的用户界面的通知栏可以显示窗口301,提示用户可以关闭区分分布式输入设备功能,切换至原设备,调用原设备的应用来响应投屏界面的触摸操作,即开启通用投屏功能。窗口301中可以显示提示信息301A、提示信息301B、收起通知控件301C、“断开”控件301D、“切换设备”控件301E。In some embodiments, the master electronic device 100 may turn on the function of distinguishing distributed input devices by default. When the master electronic device 100 and the slave electronic device 200 have established a cooperative relationship, as shown in FIG. 3A , the notification bar of the user interface of the master electronic device 100 may display a window 301, prompting the user to turn off the function of distinguishing distributed input devices and switch to the original device, call the application of the original device to respond to the touch operation of the screen-casting interface, that is, enable the general screen-casting function. In the window 301, prompt information 301A, prompt information 301B, a notification control 301C for retracting, a "disconnect" control 301D, and a "switch device" control 301E can be displayed.
提示信息301A可用于介绍主电子设备100与其他电子设备进行了连接,建立了协同关系,并显示连接时长。The prompt information 301A can be used to introduce that the main electronic device 100 is connected with other electronic devices, establish a cooperative relationship, and display the connection duration.
提示信息301B可用于介绍主电子设备100的连接对象,提示用户主电子设备100和对应型号的电子设备建立了协同关系。The prompt information 301B can be used to introduce the connection object of the main electronic device 100, and prompt the user that the main electronic device 100 and the electronic device of the corresponding model have established a cooperative relationship.
控件301C可用于监听收起窗口301的操作(例如触摸操作),控件301C的表现形式可以为图标或者文本信息。The control 301C can be used to monitor the operation of closing the window 301 (for example, a touch operation), and the expression form of the control 301C can be an icon or text information.
控件301D可用于监听断开设备连接的操作(例如触摸操作)。检测到作用于控件301C的操作,主电子设备100断开和从属电子设备200的连接,两台电子设备无法协同工作,实现数据共享。The control 301D can be used to listen for an operation to disconnect the device (eg, a touch operation). When the operation acting on the control 301C is detected, the master electronic device 100 is disconnected from the slave electronic device 200, and the two electronic devices cannot work together to realize data sharing.
控件301E可用于监听关闭区分分布式输入设备功能的操作(例如触摸操作)。当检测到作用于控件301E的操作,比如,点击“切换设备”,主电子设备100关闭区分分布式输入设备的功能,而使用通用投屏功能。此时,如图3B所示,主电子设备100的用户界面通知栏显示窗口302。 Control 301E may be used to listen for operations (eg, touch operations) that turn off the function of distinguishing distributed input devices. When an operation acting on the control 301E is detected, for example, clicking "Switch Device", the main electronic device 100 turns off the function of distinguishing distributed input devices, and uses the general screen projection function. At this time, as shown in FIG. 3B , the user interface notification bar of the main electronic device 100 displays a window 302 .
窗口302和窗口301的区别在于控件302A和控件301E。控件302A可用于监听开启区分分布式输入设备功能的操作(例如触摸操作)。当检测到作用于控件302A的操作,比如,点击“使用默认设备”,主电子设备100重新开启区分分布式输入设备的功能。此时,如图3A所示,主电子设备100的用户界面通知栏再次显示窗口301。The difference between window 302 and window 301 is control 302A and control 301E. Control 302A may be used to listen for operations (eg, touch operations) that enable differentiated distributed input device functionality. When an operation acting on the control 302A is detected, for example, clicking "use default device", the main electronic device 100 restarts the function of distinguishing distributed input devices. At this time, as shown in FIG. 3A , the user interface notification bar of the main electronic device 100 displays the window 301 again.
下面结合三个不同的使用场景,介绍用户利用两个电子设备协同工作的过程中,主电子设备使用区分分布式输入设备功能时的一些实施例。The following describes some embodiments when the main electronic device uses the functions of differentiating distributed input devices in the process that the user uses two electronic devices to work together in conjunction with three different usage scenarios.
(一)使用场景一:文本输入场景(1) Scenario 1: Text Input Scenario
如图4A-图4I所示的实施例以文本输入场景为例,来说明电子设备上实现区分分布式输入设备功能的过程。在文本输入场景下,电子设备的用户界面会显示应用提供的“文本输入界面”。The embodiments shown in FIG. 4A-FIG. 4I take a text input scenario as an example to illustrate the process of realizing the function of distinguishing distributed input devices on an electronic device. In the text input scenario, the user interface of the electronic device displays the "text input interface" provided by the application.
在一些实施例中,“文本输入界面”用于显示可输入文本的文本框,该文本框响应用户的操作(触摸操作等),显示输入焦点,等待用户的文本输入结果。In some embodiments, the "text input interface" is used to display a text box into which text can be input, and the text box responds to a user's operation (touch operation, etc.), displays the input focus, and waits for the user's text input result.
图4A-图4I示例性示出的场景可以为“文本输入场景”的一种实现方式。此场景包含两个电子设备,主电子设备100和从属电子设备200,从属电子设备的界面内容投屏显示在主电子设备上,主电子设备的投屏界面300显示从属电子设备的界面内容。The scenarios exemplarily shown in FIGS. 4A-4I may be an implementation of a "text input scenario". This scene includes two electronic devices, the master electronic device 100 and the slave electronic device 200. The interface content of the slave electronic device is projected and displayed on the master electronic device, and the screen projection interface 300 of the master electronic device displays the interface content of the slave electronic device.
如图4A所示,主电子设备100上的投屏界面300的用户界面是一种“文本输入界面”,此界面可以是具有文本输入场景的应用(例如浏览器)提供的。该用户界面可以是用户点击图中投屏界面300的浏览器图标,并准备在浏览器搜索栏401输入搜索目标的用户界面。As shown in FIG. 4A , the user interface of the screen projection interface 300 on the main electronic device 100 is a “text input interface”, which may be provided by an application (eg, a browser) with a text input scene. The user interface may be a user interface in which the user clicks the browser icon on the screen projection interface 300 in the figure and prepares to enter a search target in the browser search bar 401 .
如图4A所示,检测到作用于主电子设备100上的投屏界面300中的浏览器搜索栏401的操作(例如触摸操作),投屏界面300的浏览器搜索栏401显示如图4B所示的输入焦点402,调用主电子设备的输入法应用,显示输入法界面403,等待用户输入。As shown in FIG. 4A , an operation (such as a touch operation) acting on the browser search bar 401 in the screen projection interface 300 on the main electronic device 100 is detected, and the browser search bar 401 of the screen projection interface 300 is displayed as shown in FIG. 4B . The input focus 402 shown is called, the input method application of the main electronic device is called, the input method interface 403 is displayed, and the user is waiting for input.
如图4C所示,响应于用户的输入结果提交操作,输入结果404显示在投屏界面300的浏览器搜索栏,并且也显示在从属电子设备200的浏览器搜索栏。As shown in FIG. 4C , in response to the user's input result submission operation, the input result 404 is displayed in the browser search bar of the screen projection interface 300 and also displayed in the browser search bar of the slave electronic device 200 .
不限于在投屏界面300的浏览器搜索栏401中的左侧空白位置进行触摸操作,还可以在浏览器搜索栏401的其他位置例如中间或者右侧空白位置进行触摸操作。The touch operation is not limited to the left blank position in the browser search bar 401 of the screen projection interface 300, and the touch operation may also be performed at other positions of the browser search bar 401, such as the middle or right blank position.
如图4D所示,检测到作用于从属电子设备200的浏览器搜索栏405的操作(例如触摸操作),从属电子设备200的浏览器搜索栏405显示如图4E所示的输入焦点406,调用从属电子设备200的输入法应用,并显示输入法界面407,等待用户输入。此输入法界面也显示在投屏界面300上。如图4F所示,响应于用户的输入结果提交操作,输入结果408显示在从属电子设备200的浏览器搜索栏,并且也显示在投屏界面300的浏览器搜索栏。不限于在从属电子设备200的浏览器搜索栏405中的左侧空白位置进行触摸操作,还可以在浏览器搜索栏404的其他位置例如中间或者右侧空白位置进行触摸操作。As shown in FIG. 4D, an operation (such as a touch operation) acting on the browser search bar 405 of the slave electronic device 200 is detected, the browser search bar 405 of the slave electronic device 200 displays the input focus 406 as shown in FIG. 4E, and the call The input method application of the slave electronic device 200 displays the input method interface 407 and waits for user input. The input method interface is also displayed on the screen projection interface 300 . As shown in FIG. 4F , in response to the user's input result submission operation, the input result 408 is displayed in the browser search bar of the slave electronic device 200 and also displayed in the browser search bar of the screen-casting interface 300 . The touch operation is not limited to the left blank position in the browser search bar 405 of the slave electronic device 200, and the touch operation may also be performed at other positions of the browser search bar 404, such as the middle or right blank position.
如图4G所示,检测到作用于主电子设备100上非投屏界面的浏览器搜索栏409的操作(例如触摸操作),主电子设备的浏览器搜索栏显示如图4H所示D的输入焦点410,调用主电子设备的输入法应用,显示输入法界面411,等待用户输入。如图4F所示,响应于用户的输入结果提交操作,输入结果412显示在主电子设备的浏览器搜索栏。As shown in FIG. 4G , an operation (such as a touch operation) acting on the browser search bar 409 of the non-screen projection interface on the main electronic device 100 is detected, and the browser search bar of the main electronic device displays the input of D as shown in FIG. 4H Focus 410, call the input method application of the main electronic device, display the input method interface 411, and wait for user input. As shown in FIG. 4F, in response to the user's input result submission operation, the input result 412 is displayed in the browser search bar of the host electronic device.
通过图4A-图4I示例性示出的实施例,主电子设备可以在文本输入场景下使用区分分布式输入设备功能,即在主电子设备的投屏界面上触摸操作时,可以调用主电子设备的输入法来响应输入操作,在从属电子设备上触摸操作时,可以调用从属电子设备的输入法来响应输入操作。也就是说,电子设备可以区分输入来源,在文本输入场景下调用对应来源的输入法来响应输入。这样,在主电子设备上,即使投屏界面被拉伸,响应投屏界面触摸操作的输入法界面也不会随着窗口同步拉伸,而是使用主电子设备上的输入法,界面大小不变,用户体验佳。示例性的,从属电子设备200为手机,主电子设备100为平板电脑,用户在平板电脑上的投屏界面触屏操作来输入文本,可以调用平板电脑上的输入法,此输入法界面比手机的输入法界面大,而且不随投屏界面变化大小,从而能方便地输入文本。4A to 4I exemplarily show the embodiment, the main electronic device can use the function of distinguishing distributed input devices in a text input scenario, that is, when a touch operation is performed on the screen projection interface of the main electronic device, the main electronic device can be called. The input method of the slave electronic device can be used to respond to the input operation. When a touch operation is performed on the slave electronic device, the input method of the slave electronic device can be called to respond to the input operation. That is to say, the electronic device can distinguish the input source, and in the text input scenario, call the input method of the corresponding source to respond to the input. In this way, on the main electronic device, even if the screen projection interface is stretched, the input method interface responding to the touch operation of the screen projection interface will not be stretched synchronously with the window, but the input method on the main electronic device will be used, and the interface size will not change. change, the user experience is good. Exemplarily, the slave electronic device 200 is a mobile phone, and the master electronic device 100 is a tablet computer. The user operates the screen projection interface on the tablet computer to touch the screen to input text, and can call the input method on the tablet computer. The input method interface is large, and the size does not change with the screen projection interface, so that the text can be input conveniently.
不限于图4A-图4I所示,“文本输入界面”的页面布局还可以呈现其他形式,本申请实施例对此不做限制。不限于浏览器应用,其他应用(例如便签、qq等)也可以提供类似的“文本输入界面”,在这些应用提供“文本输入界面”时,和其他从属电子设备协同的主电子设备也可以通过和上述图4A-图4I类似的方法提供区分分布式输入设备功能。Not limited to those shown in FIGS. 4A to 4I , the page layout of the “text input interface” may also take other forms, which are not limited in this embodiment of the present application. Not limited to browser applications, other applications (such as sticky notes, qq, etc.) can also provide a similar "text input interface". When these applications provide a "text input interface", the master electronic device that cooperates with other slave electronic devices can also pass A method similar to that described above with respect to FIGS. 4A-4I provides for distinguishing distributed input device functionality.
(二)使用场景二:图像拍摄场景(2) Use Scenario 2: Image Shooting Scenario
以下图5A-图5F实施例以图像拍摄场景为例,来说明电子设备上实现区分分布式输入设备功能的过程。The following embodiments of FIGS. 5A-5F take an image shooting scene as an example to illustrate the process of realizing the functions of differentiating distributed input devices on an electronic device.
图5A-图5F示例性示出的场景可以为“图像拍摄场景”的一种实现方式。此场景包含两个电子设备,主电子设备100和从属电子设备200,从属电子设备的界面内容投屏显示在主电子设备上。The scenes exemplarily shown in FIGS. 5A-5F may be an implementation manner of an “image capturing scene”. This scenario includes two electronic devices, a master electronic device 100 and a slave electronic device 200, and the interface content of the slave electronic device is projected and displayed on the master electronic device.
如图5A所示,主电子设备100上的投屏界面300的用户界面可以是用户准备点击图中相机图标的用户界面。As shown in FIG. 5A , the user interface of the screen projection interface 300 on the main electronic device 100 may be the user interface in which the user prepares to click the camera icon in the figure.
如图5A所示,检测到作用于主电子设备100上的投屏界面300的相机图标501的操作(例如触摸操作),调用主电子设备100的摄像头,启动相机应用。As shown in FIG. 5A , an operation (eg, a touch operation) acting on the camera icon 501 of the screen projection interface 300 on the main electronic device 100 is detected, the camera of the main electronic device 100 is called, and the camera application is started.
如图5B所示,相机应用启动后,显示相机应用界面502,此界面可以包含主电子设备摄像头的预览画面和其他控件,其他控件包括拍照控件502A、相册控件502B等。检测到作用 于相机应用界面的拍照控件502A的操作(例如触摸操作),主电子设备调用摄像头进行拍照,相机应用的相册控件502B显示拍摄照片,并将拍摄照片发送给从属电子设备200。示例性的,从属电子设备200为手机时,主电子设备100为平板电脑,用户将手机放置于桌子上,而可以通过与该手机建立协同关系的平板电脑实现拍照。该实施场景中,由于调用的是主电子设备100的摄像头进行拍照,因此拍摄照片的属性(比如清晰度)由主电子设备100的相机的拍照参数限定。As shown in FIG. 5B , after the camera application is started, a camera application interface 502 is displayed, which may include a preview screen of the main electronic device camera and other controls, including a camera control 502A, an album control 502B, and the like. When an operation (such as a touch operation) acting on the camera control 502A of the camera application interface is detected, the master electronic device calls the camera to take a photo, and the photo album control 502B of the camera application displays the captured photo and sends the captured photo to the slave electronic device 200. Exemplarily, when the slave electronic device 200 is a mobile phone and the master electronic device 100 is a tablet computer, the user places the mobile phone on the table, and can take pictures through the tablet computer that establishes a collaborative relationship with the mobile phone. In this implementation scenario, since the camera of the main electronic device 100 is called to take a picture, the properties (such as sharpness) of the captured photo are limited by the photographing parameters of the camera of the main electronic device 100 .
在一些实施例中,主电子设备100的相机应用还具有其他功能(例如增强功能,增强功能可以是美颜功能、磨皮功能、修饰形体功能等等),而从属电子设备200的相机不具有这些功能。检测到作用于主电子设备100的投屏界面300的相机图标的操作,启动主电子设备100的相机应用,显示相机应用界面。相机应用界面可以包括主电子设备摄像头的预览图画面和其他控件,还可以包括增强功能选项。检测到作用于选定增强功能选项的操作,刷新相机应用界面,显示经过选定增强功能处理过的预览画面。检测到作用于拍照控件的操作,调用摄像头进行拍照,并调用选定增强功能选项对应的增强功能,得到实现相应增强功能的拍照结果。In some embodiments, the camera application of the master electronic device 100 also has other functions (such as enhancement functions, which may be beauty functions, skin resurfacing functions, body modification functions, etc.), while the camera of the slave electronic device 200 does not have these functions. The operation of the camera icon acting on the screen projection interface 300 of the main electronic device 100 is detected, the camera application of the main electronic device 100 is started, and the camera application interface is displayed. The camera application interface may include a preview screen of the main electronic device camera and other controls, and may also include enhanced functionality options. An action on the selected enhancement option is detected, and the camera application interface is refreshed to display the preview screen processed by the selected enhancement. The operation acting on the photographing control is detected, the camera is called to take a photograph, and the enhancement function corresponding to the selected enhancement function option is called, and the photographing result that realizes the corresponding enhancement function is obtained.
如图5C所示,检测到作用于从属电子设备200上的相机图标503的操作(例如触摸操作),调用从属电子设备的摄像头,启动相机应用。如图5D所示,显示相机应用界面504,此界面包括从属电子设备摄像头预览画面,主电子设备100上的投屏界面300也显示此相机应用界面。检测到作用于从属电子设备200的相机应用界面的拍照控件504A的操作(例如触摸操作),从属电子设备调用摄像头进行拍照,相机应用的相册控件504B显示拍摄照片,投屏界面300的相机应用的相册控件也显示拍摄照片。拍摄照片的属性(比如清晰度)由从属电子设备200的相机的拍照参数限定。As shown in FIG. 5C , an operation (eg, a touch operation) acting on the camera icon 503 on the slave electronic device 200 is detected, the camera of the slave electronic device is called, and the camera application is started. As shown in FIG. 5D , a camera application interface 504 is displayed, which includes a preview image of the camera of the slave electronic device, and the screen projection interface 300 on the master electronic device 100 also displays the camera application interface. Detecting an operation (such as a touch operation) of the camera control 504A acting on the camera application interface of the slave electronic device 200, the slave electronic device calls the camera to take a photo, the photo album control 504B of the camera application displays the captured photo, and the camera application of the screen projection interface 300 The album controls also display the captured photos. The properties of the captured photo, such as sharpness, are defined by the capturing parameters of the camera of the slave electronic device 200 .
如图5E所示,检测到作用于主电子设备100上的相机图标505的操作(例如触摸操作),调用主电子设备的摄像头,启动相机应用。如图5F所示,显示主电子设备相机应用界面506,此界面包括主电子设备摄像头预览画面。检测到作用于主电子设备100的相机应用界面的拍照控件506A的操作(例如触摸操作),相机应用的相册控件506B显示拍摄照片,并将拍摄照片存储在主电子设备100中。拍摄照片的属性(比如清晰度)由主电子设备100的相机的拍照参数限定。As shown in FIG. 5E , an operation (eg, a touch operation) acting on the camera icon 505 on the main electronic device 100 is detected, the camera of the main electronic device is invoked, and the camera application is started. As shown in FIG. 5F , the main electronic device camera application interface 506 is displayed, and this interface includes a preview screen of the main electronic device camera. Upon detection of an operation (eg, touch operation) of the camera control 506A acting on the camera application interface of the main electronic device 100 , the photo album control 506B of the camera application displays the captured photo and stores the captured photo in the main electronic device 100 . The properties of the captured photo, such as sharpness, are defined by the capturing parameters of the camera of the main electronic device 100 .
通过图5A-图5F示例性示出的实施例,主电子设备可以在图像拍摄场景下使用区分分布式输入设备功能,即可以在主电子设备的投屏界面上触摸操作时,调用主电子设备的摄像头来响应输入操作,在从属电子设备上触摸操作时,调用从属电子设备的摄像头来响应输入操作。也就是说,电子设备可以区分输入来源,在图像拍摄场景下调用对应来源的摄像头来响应输入。这样,在主电子设备上对投屏界面操作,可以不用再切换使用从属电子设备,直接利用主电子设备的摄像头响应操作,并且拍摄照片的属性不受从属电子设备限制,而是和主电子设备相关,用户使用方便体验佳。5A-5F exemplarily show the embodiment, the main electronic device can use the function of distinguishing distributed input devices in the image capturing scene, that is, when a touch operation is performed on the screen projection interface of the main electronic device, the main electronic device can be called. The camera of the slave electronic device responds to the input operation, and when a touch operation is performed on the slave electronic device, the camera of the slave electronic device is called to respond to the input operation. That is to say, the electronic device can distinguish the input source, and call the camera of the corresponding source to respond to the input in the image capturing scene. In this way, when operating the screen projection interface on the master electronic device, you can directly use the camera of the master electronic device to respond to the operation without switching to use the slave electronic device. Related, user-friendly and good experience.
不限于图5A-图5F所示,“图像拍摄场景”的用户界面还可以呈现其他形式,本申请实施例对此不做限制。不限于相机应用,其他应用(例如视频会议应用、直播应用等)也可以提供类似的图像拍摄场景,在这些应用提供图像拍摄场景时,和其他从属电子设备协同的主电子设备也可以通过和上述图5A-图5F类似的方法提供分布式输入设备识别功能。Not limited to those shown in FIGS. 5A to 5F , the user interface of the “image capturing scene” may also take other forms, which are not limited in this embodiment of the present application. Not limited to camera applications, other applications (such as video conferencing applications, live broadcast applications, etc.) can also provide similar image capture scenarios. When these applications provide image capture scenarios, the master electronic device that cooperates with other slave electronic devices can also Similar methods of FIGS. 5A-5F provide distributed input device identification functionality.
(三)使用场景三:视频播放场景(3) Scenario 3: Video playback scenario
以下图6A-图6I实施例以视频播放场景为例,来说明电子设备上区分分布式输入设备的 方法。The following embodiments of FIGS. 6A-6I take a video playback scenario as an example to illustrate a method for distinguishing distributed input devices on an electronic device.
图6A-图6I示例性示出的场景可以为“视频播放场景”的一种实现方式。此场景包含两个电子设备,主电子设备100和从属电子设备200,从属电子设备的界面内容投屏显示在主电子设备上。The scenes exemplarily shown in FIGS. 6A-6I may be an implementation manner of a "video playback scene". This scenario includes two electronic devices, a master electronic device 100 and a slave electronic device 200, and the interface content of the slave electronic device is projected and displayed on the master electronic device.
如图6A所示,主电子设备100上的投屏界面300的用户界面可以是用户准备点击图中视频图标的用户界面。As shown in FIG. 6A , the user interface of the screen projection interface 300 on the main electronic device 100 may be a user interface in which the user prepares to click the video icon in the figure.
如图6A所示,检测到作用于主电子设备100上的投屏界面300的视频图标601的操作(例如触摸操作),调用主电子设备的播放器,启动视频应用。As shown in FIG. 6A , an operation (eg, a touch operation) acting on the video icon 601 of the screen projection interface 300 on the main electronic device 100 is detected, the player of the main electronic device is called, and the video application is started.
如图6B所示,视频应用启动后,显示视频选择界面602,此界面可显示至少1个待选择的视频,用户可以选择想播放的视频,进一步可选的,该视频选择界面602还可以显示用户通过主电子设备的播放器的播放历史。用户还可以通过点击搜索控件,输入搜索文本,通过搜索选择想播放的视频。检测到作用于选定视频602A的操作,播放此选定视频。As shown in FIG. 6B , after the video application is started, a video selection interface 602 is displayed. This interface can display at least one video to be selected, and the user can select the video to be played. Optionally, the video selection interface 602 can also display The user's play history through the player of the primary electronic device. Users can also click the search control, enter the search text, and select the video they want to play through the search. An action on the selected video 602A is detected, and the selected video is played.
如图6C所示,播放视频时显示视频播放界面603,此界面可以包含视频播放画面、暂停/播放控件、关闭控件和进度条控件。响应于用户作用于关闭控件603A的操作,将播放信息保存并发送给从属电子设备200,关闭视频播放界面603。从属电子设备200接收所述播放信息,更新视频应用中保存的播放信息,为用户保存个性化的内容。播放信息可以包括视频播放记录和播放进度等信息,还可以包括用户点评信息、媒体分享信息等信息,本申请实施例不对此做限制。As shown in FIG. 6C , a video playing interface 603 is displayed when playing a video, and this interface may include a video playing screen, a pause/play control, a close control and a progress bar control. In response to the user's operation on the close control 603A, the playback information is saved and sent to the slave electronic device 200, and the video playback interface 603 is closed. The slave electronic device 200 receives the playback information, updates the playback information stored in the video application, and stores personalized content for the user. The playback information may include information such as video playback records and playback progress, and may also include user comment information, media sharing information, and other information, which is not limited in this embodiment of the present application.
如图6D所示,检测到作用于从属电子设备200上的视频图标604的操作(例如触摸操作),调用从属电子设备的播放器,启动视频应用。如图6E所示,视频应用启动后,显示视频选择界面605。检测到作用于选定视频605A的操作,如图6F所示,播放此选定视频,显示视频播放界面606。从属电子设备的界面内容也显示在主电子设备100的投屏界面300上。As shown in FIG. 6D , an operation (eg, a touch operation) acting on the video icon 604 on the slave electronic device 200 is detected, the player of the slave electronic device is called, and the video application is started. As shown in FIG. 6E, after the video application is started, a video selection interface 605 is displayed. When an operation acting on the selected video 605A is detected, as shown in FIG. 6F , the selected video is played, and a video playing interface 606 is displayed. The interface content of the slave electronic device is also displayed on the screen projection interface 300 of the master electronic device 100 .
如图6G所示,检测到作用于主电子设备100上的视频图标607的操作(例如触摸操作),调用主电子设备的播放器,启动视频应用。如图6H所示,视频应用启动后,显示视频选择界面608。检测到作用于选定视频605A的操作,如图6F所示,播放此选定视频,显示视频播放界面609。As shown in FIG. 6G , an operation (eg, a touch operation) acting on the video icon 607 on the main electronic device 100 is detected, the player of the main electronic device is invoked, and the video application is started. As shown in FIG. 6H, after the video application is started, a video selection interface 608 is displayed. When an operation acting on the selected video 605A is detected, as shown in FIG. 6F , the selected video is played, and a video playing interface 609 is displayed.
通过图6A-图6I示例性示出的实施例,主电子设备可以在视频播放场景下使用区分分布式输入设备功能,即可以在主电子设备的投屏界面上触摸操作时,调用主电子设备的播放器来响应输入操作,在从属电子设备上触摸操作时,调用从属电子设备的播放器来响应输入操作。也就是说,电子设备可以区分输入来源,在视频播放场景下调用对应来源的播放器来响应输入。这样,在主电子设备上对投屏界面操作,可以不用再切换使用从属电子设备,直接利用主电子设备的播放器来播放从属电子设备上的视频,利用主电子设备更大的屏幕来提供更好的观看体验,而且从属电子设备中的播放进度等播放信息会随之更新,方便用户转换场景后继续观看,用户体验佳。6A to 6I exemplarily show the embodiment, the main electronic device can use the function of distinguishing distributed input devices in a video playback scenario, that is, when a touch operation is performed on the screen projection interface of the main electronic device, the main electronic device can be called. The player of the slave electronic device responds to the input operation, and when a touch operation is performed on the slave electronic device, the player of the slave electronic device is called to respond to the input operation. That is to say, the electronic device can distinguish the input source, and in the video playback scenario, call the player of the corresponding source to respond to the input. In this way, when operating the screen projection interface on the master electronic device, you can directly use the player of the master electronic device to play the video on the slave electronic device without switching to use the slave electronic device, and use the larger screen of the master electronic device to provide more A good viewing experience is provided, and the playback information such as the playback progress in the slave electronic device will be updated accordingly, which is convenient for the user to continue watching after changing the scene, and the user experience is good.
不限于图6A-图6I所示,“视频播放场景”的用户界面还可以呈现其他形式,本申请实施例对此不做限制。不限于视频应用,其他应用(例如哔哩哔哩等)也可以提供类似的视频播放场景,在这些应用提供视频播放场景时,和其他从属电子设备协同的主电子设备也可以通过和上述图6A-图6I类似的方法提供分布式输入设备识别功能。Not limited to those shown in FIGS. 6A to 6I , the user interface of the “video playback scene” may also present other forms, which are not limited in this embodiment of the present application. Not limited to video applications, other applications (such as Bilibili, etc.) can also provide similar video playback scenarios. When these applications provide video playback scenarios, the master electronic device cooperating with other slave electronic devices can also pass through and the above Figure 6A - A similar approach to Figure 6I provides distributed input device identification functionality.
在本申请中,用于展示用户执行第一操作的主电子设备的用户界面可以被称为第一用户界面。第一用户界面的示例性实现方式可以包括图4A、图4G、图5A、图5E、图6A或图 6G所示的主电子设备100的用户界面。In this application, the user interface for presenting the main electronic device for the user to perform the first operation may be referred to as the first user interface. Exemplary implementations of the first user interface may include the user interface of the main electronic device 100 shown in Figure 4A, Figure 4G, Figure 5A, Figure 5E, Figure 6A, or Figure 6G.
在本申请一些实施例中,展示用户执行第一操作的从属电子设备的用户界面可以被称为第二用户界面。第二用户界面的示例性实现方式可以包括图4D、图5C或图6D所示的从属电子设备200的用户界面。In some embodiments of the present application, the user interface showing the slave electronic device on which the user performs the first operation may be referred to as the second user interface. Exemplary implementations of the second user interface may include the user interface of the slave electronic device 200 shown in Figure 4D, Figure 5C, or Figure 6D.
在本申请一些实施例中,用于开启或调用应用的触摸操作,可以被称为第一操作。第一操作的示例性实现方式可以包括用户点击文本框准备调用输入法的操作,或者,用户点击相机应用图标准备调用相机应用的操作,或者,用户点击视频应用图标准备调用视频应用的操作。In some embodiments of the present application, a touch operation for starting or invoking an application may be referred to as a first operation. Exemplary implementations of the first operation may include the user clicking the text box to prepare to invoke the input method, or the user clicking the camera application icon to prepare to invoke the camera application, or the user clicking the video application icon to prepare to invoke the video application.
在本申请一些实施例中,显示于主电子设备,用于展示调用主电子设备的应用的界面可以被称为第三用户界面。第三用户界面的示例性实现方式可以包括图4B、图4H、图5B、图5F、图6B或图6H所示的主电子设备100的用户界面。In some embodiments of the present application, an interface displayed on the main electronic device for displaying an application calling the main electronic device may be referred to as a third user interface. Exemplary implementations of the third user interface may include the user interface of the main electronic device 100 shown in FIG. 4B , FIG. 4H , FIG. 5B , FIG. 5F , FIG. 6B or FIG. 6H .
在本申请一些实施例中,显示于主电子设备,用于展示调用从属电子设备的应用的界面可以被称为第四用户界面。第四用户界面的示例性实现方式可以包括图4E、图5D或图6E所示的主电子设备100的用户界面。In some embodiments of the present application, the interface displayed on the master electronic device for displaying an application calling the slave electronic device may be referred to as a fourth user interface. Exemplary implementations of the fourth user interface may include the user interface of the main electronic device 100 shown in FIG. 4E , FIG. 5D or FIG. 6E .
在本申请一些实施例中,投屏区域的示例性实现方式可以包括图4A、图5A、或图6A所示的投屏界面300。In some embodiments of the present application, an exemplary implementation of the screen projection area may include the screen projection interface 300 shown in FIG. 4A , FIG. 5A , or FIG. 6A .
在本申请一些实施例中,针对调用的应用的操作,可以被称为第二操作。第二操作的示例性实现方式可以包括用户点击输入法界面的输入文本的操作,或者,用户点击相机应用界面的拍照控件的操作,或者,用户点击视频播放界面的关闭控件的操作。In some embodiments of the present application, the operation for the invoked application may be referred to as a second operation. Exemplary implementations of the second operation may include an operation of the user clicking on the input method interface to input text, or the user clicking the photographing control of the camera application interface, or the user clicking the closing control of the video playback interface.
在本申请一些实施例中,用于开启本申请的区分分布式输入设备功能的操作,可以被称为第三操作。第三操作的示例性实现方式可以包括用户点击状态栏的“功能开关”控件的操作,或者,用户点击通知栏的窗口的“使用默认设备”控件的操作。用于关闭本申请的区分分布式输入设备功能的操作,可以被称为第四操作。第四操作的示例性实现方式可以包括用户点击通知栏的窗口的“切换设备”控件的操作。In some embodiments of the present application, the operation for enabling the function of distinguishing distributed input devices of the present application may be referred to as a third operation. An exemplary implementation manner of the third operation may include an operation of the user clicking the "function switch" control of the status bar, or an operation of the user clicking the "use default device" control of the window of the notification bar. The operation for disabling the function of distinguishing distributed input devices of the present application may be referred to as the fourth operation. An exemplary implementation manner of the fourth operation may include an operation of the user clicking the "switch device" control of the window of the notification bar.
在本申请一些实施例中,用于监听开启所述区分分布式输入设备功能的操作的控件,可以被称为第一交互元素。第一交互元素的示例性实现方式可以包括图3B所示的“使用默认设备”控件302A。用于监听关闭所述区分分布式输入设备功能的操作的控件,可以被称为第二交互元素。第二交互元素的示例性实现方式可以包括的图3A所示的“切换设备”控件301E。In some embodiments of the present application, the control for monitoring the operation of enabling the function of distinguishing distributed input devices may be referred to as a first interaction element. An exemplary implementation of the first interactive element may include the "Use Default Device" control 302A shown in Figure 3B. The control for monitoring the operation of turning off the function of distinguishing distributed input devices may be referred to as a second interactive element. An exemplary implementation of the second interactive element may include the "Switch Device" control 301E shown in Figure 3A.
在本申请一些实施例中,关闭本申请的区分分布式输入功能后,用于调用的应用的触摸操作,可以被称为第五操作。第五操作的示例性实现方式可以包括用户点击文本框准备调用输入法的操作,或者,用户点击相机应用图标准备调用相机应用的操作,或者,用户点击视频应用图标准备调用视频应用的操作。用于显示主电子设备上的调用从属电子设备的应用的界面,可以被称为第五用户界面。In some embodiments of the present application, after the function of distinguishing distributed input of the present application is turned off, the touch operation used to invoke the application may be referred to as the fifth operation. Exemplary implementations of the fifth operation may include the user clicking the text box to prepare to invoke the input method, or the user clicking the camera application icon to prepare to invoke the camera application, or the user clicking the video application icon to prepare to invoke the video application. The interface for displaying the application on the master electronic device that invokes the slave electronic device may be referred to as a fifth user interface.
在本申请一些实施例中,图5B所示的用户界面502可以被称为摄像应用的第一预览画面,增强功能选项可以包括美颜功能选项、磨皮功能选项、形体修饰功能选项等等。In some embodiments of the present application, the user interface 502 shown in FIG. 5B may be referred to as the first preview screen of the camera application, and the enhancement function options may include beauty function options, skin resurfacing function options, body modification function options, and the like.
在本申请一些实施例中,图6B所示的用户界面602可以被称为播放应用的媒体对象选择界面,如602A所示的标识可以被称为目标媒体对象标识,第七操作可以包括对目标媒体对象标识的点击操作,图6C所示的用户界面603可以被称为播放应用的媒体播放画面。In some embodiments of the present application, the user interface 602 shown in FIG. 6B may be referred to as the media object selection interface of the playback application, the identification shown in 602A may be referred to as the target media object identification, and the seventh operation may include The click operation of the media object identifier, the user interface 603 shown in FIG. 6C may be called the media play screen of the play application.
图7是本申请实施例的电子设备100的软件结构框图。FIG. 7 is a block diagram of the software structure of the electronic device 100 according to the embodiment of the present application.
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接 口通信。在一些实施例中,分层架构分为三层,从上至下分别为应用层,框架层,以及内核层。The layered architecture divides the software into several layers, and each layer has a clear role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the layered architecture is divided into three layers, which are an application layer, a framework layer, and a kernel layer from top to bottom.
应用层可以包括一系列应用程序包。The application layer can include a series of application packages.
如图7所示,应用程序包包含响应用户触摸操作的各种应用。例如在文本输入场景下,应用程序包可以包含输入法应用,还可以包含提供输入文本场景的其他应用(例如浏览器应用、便签应用等),该应用可通过显示文本输入界面,通知系统调用输入法应用。本申请实施例对具体的场景和所涉及的电子设备100安装的应用不作限定。As shown in Figure 7, the application package contains various applications that respond to user touch operations. For example, in a text input scenario, the application package may include an input method application, and may also include other applications (such as a browser application, a note application, etc.) that provide input text scenarios. The application can display a text input interface to notify the system to call input law application. The embodiments of the present application do not limit specific scenarios and applications installed on the electronic device 100 involved.
本申请对应用程序包不作限制,还可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等应用程序。This application does not limit the application package, and can also include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and so on.
框架层为应用层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。The framework layer provides an application programming interface (API) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions.
如图7所示,框架层可以包含本申请实施例提供的输入事件管理框架和显示框架。其中,输入事件管理框架中包含事件枢纽EventHub,可以获取底层的触摸事件。在本申请中,EventHub中增加记录设备的Flag,区分输入来源电子设备。本申请中用于区分设备的Flag的值可以称为第一参数。EventHub获取的触摸事件信息经过触点分发,传递给显示框架中的窗口管理系统,通过处理后调用应用层的相关应用,完成对触摸事件的响应。As shown in FIG. 7 , the framework layer may include the input event management framework and the display framework provided by the embodiments of the present application. Among them, the input event management framework includes the event hub EventHub, which can obtain the underlying touch events. In this application, the Flag of the recording device is added to the EventHub to distinguish the input source electronic device. The value of the Flag used to distinguish devices in this application may be referred to as the first parameter. The touch event information obtained by EventHub is distributed through the touch point and passed to the window management system in the display framework. After processing, the related application of the application layer is called to complete the response to the touch event.
应用程序框架层还可以包括内容提供器,视图系统,电话管理器,资源管理器,通知管理器等,本申请实施例对此不作限定。其中,内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。电话管理器用于提供电子设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片等等。通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息。比如通知管理器被用于告知下载完成,消息提醒等。The application framework layer may further include a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like, which are not limited in this embodiment of the present application. Among them, the content provider is used to store and obtain data, and make these data accessible by applications. The view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and so on. View systems can be used to build applications. The phone manager is used to provide the communication function of the electronic device 100 . For example, the management of call status (including connecting, hanging up, etc.). The resource manager provides various resources for the application, such as localized strings, icons, pictures, etc. The notification manager enables applications to display notification information in the status bar, which can be used to convey notification-type messages. For example, the notification manager is used to notify download completion, message reminders, etc.
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。The kernel layer is the layer between hardware and software. The kernel layer contains at least display drivers, camera drivers, audio drivers, and sensor drivers.
如图7所示,内核层可以用于将设备节点的触摸事件上报至框架层,该触摸事件可以来自主电子设备或从属电子设备。框架层接收到触摸事件后,判断输入来源并调用相应来源的应用。As shown in FIG. 7 , the kernel layer can be used to report the touch event of the device node to the framework layer, and the touch event can come from the master electronic device or the slave electronic device. After the framework layer receives the touch event, it determines the input source and calls the application of the corresponding source.
下面结合本申请实施例提到的文本输入场景,示例性说明电子设备100软件以及硬件的工作流程。The following describes the workflow of the software and hardware of the electronic device 100 by way of example in conjunction with the text input scenarios mentioned in the embodiments of the present application.
当触摸传感器180K接收到触摸操作,相应的硬件中断被发给内核层。内核层将触摸操作加工成触摸事件(包括触摸坐标,触摸来源等信息)。触摸事件被存储在内核层。触摸事件上报至框架层,根据EventHub中记录设备的Flag来识别该触摸事件所对应的来源设备,当Flag对应主电子设备,调用主电子设备上的应用;当Flag对应从属电子设备,调用从属电子设备上的应用。并且根据触摸事件的位置,选择响应结果的发送和显示对象,当触摸事件发生在主电子设备的投屏界面,把响应结果发送给从属电子设备,显示在主电子设备的非投屏界面和从属电子设备上;当触摸事件发生在主电子设备的非投屏界面,把响应结果发送给主电子设备,显示在主电子设备的非投屏界面上。When the touch sensor 180K receives a touch operation, a corresponding hardware interrupt is sent to the kernel layer. The kernel layer processes touch operations into touch events (including touch coordinates, touch sources and other information). Touch events are stored at the kernel layer. The touch event is reported to the framework layer, and the source device corresponding to the touch event is identified according to the Flag of the device recorded in EventHub. When the Flag corresponds to the master electronic device, the application on the master electronic device is called; when the Flag corresponds to the slave electronic device, the slave electronic device is called. application on the device. And according to the location of the touch event, select the object to send and display the response result. When the touch event occurs on the screen projection interface of the master electronic device, the response result is sent to the slave electronic device, and displayed on the non-screen projection interface of the master electronic device and the slave device. On the electronic device; when the touch event occurs on the non-screen projection interface of the main electronic device, the response result is sent to the main electronic device and displayed on the non-screen projection interface of the main electronic device.
例如,触摸操作是触摸单击操作,该单击操作位置在主电子设备100的投屏界面300的浏览器搜索栏,主电子设备的输入法应用调用框架层的接口,启动输入法应用。当用户的文本输入操作完成,把输入的文本结果发送给从属电子设备,并且显示在主电子设备的投屏界 面300上。For example, the touch operation is a touch click operation, the click operation is located in the browser search bar of the screen projection interface 300 of the main electronic device 100, and the input method application of the main electronic device invokes the interface of the framework layer to start the input method application. When the user's text input operation is completed, the input text result is sent to the slave electronic device, and displayed on the screen projection interface 300 of the master electronic device.
基于图7所示电子设备的软件结构,图8示出了电子设备实现区分分布式输入设备功能时的方法流程图。图8中各个步骤的实现可参照图7的相关描述,在此不再赘述。Based on the software structure of the electronic device shown in FIG. 7 , FIG. 8 shows a flowchart of a method when the electronic device realizes the functions of differentiating distributed input devices. For the implementation of each step in FIG. 8 , reference may be made to the related description in FIG. 7 , which will not be repeated here.
上述实施例中所用,根据上下文,术语“当…时”可以被解释为意思是“如果…”或“在…后”或“响应于确定…”或“响应于检测到…”。类似地,根据上下文,短语“在确定…时”或“如果检测到(所陈述的条件或事件)”可以被解释为意思是“如果确定…”或“响应于确定…”或“在检测到(所陈述的条件或事件)时”或“响应于检测到(所陈述的条件或事件)”。As used in the above embodiments, the term "when" may be interpreted to mean "if" or "after" or "in response to determining..." or "in response to detecting..." depending on the context. Similarly, depending on the context, the phrases "in determining..." or "if detecting (the stated condition or event)" can be interpreted to mean "if determining..." or "in response to determining..." or "on detecting (the stated condition or event)" or "in response to the detection of (the stated condition or event)".
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如DVD)、或者半导体介质(例如固态硬盘)等。In the above-mentioned embodiments, it may be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented in software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present application are generated. The computer may be a general purpose computer, special purpose computer, computer network, or other programmable device. The computer instructions may be stored in or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions may be downloaded from a website site, computer, server or data center Transmission to another website site, computer, server, or data center by wire (eg, coaxial cable, optical fiber, digital subscriber line) or wireless (eg, infrared, wireless, microwave, etc.). The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that includes an integration of one or more available media. The usable media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, DVDs), or semiconductor media (eg, solid state drives), and the like.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,该流程可以由计算机程序来指令相关的硬件完成,该程序可存储于计算机可读取存储介质中,该程序在执行时,可包括如上述各方法实施例的流程。而前述的存储介质包括:ROM或随机存储记忆体RAM、磁碟或者光盘等各种可存储程序代码的介质。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented. The process can be completed by instructing the relevant hardware by a computer program, and the program can be stored in a computer-readable storage medium. When the program is executed , which may include the processes of the foregoing method embodiments. The aforementioned storage medium includes: ROM or random storage memory RAM, magnetic disk or optical disk and other mediums that can store program codes.
Claims (17)
- 一种显示控制的方法,其特征在于,所述方法包括:A method of display control, characterized in that the method comprises:主电子设备显示第一用户界面,所述第一用户界面包括从属电子设备显示的第二用户界面投屏在所述主电子设备上的界面内容;The master electronic device displays a first user interface, and the first user interface includes interface content projected on the master electronic device by the second user interface displayed by the slave electronic device;所述主电子设备检测第一操作;the main electronic device detects a first operation;若所述第一操作是在所述第一用户界面上的操作,响应于所述第一操作,所述主电子设备显示第三用户界面,所述第三用户界面包括调用并运行所述主电子设备的应用的界面;If the first operation is an operation on the first user interface, in response to the first operation, the host electronic device displays a third user interface, the third user interface including invoking and running the host The interface of the application of the electronic device;若所述第一操作是在所述第二用户界面上的操作,响应于所述第一操作,所述主电子设备显示第四用户界面,所述第四用户界面包括调用并运行所述从属电子设备的应用的界面。If the first operation is an operation on the second user interface, in response to the first operation, the master electronic device displays a fourth user interface, the fourth user interface including invoking and running the slave The interface of the application of the electronic device.
- 如权利要求1所述的方法,其特征在于,所述第一用户界面包括投屏区域,所述投屏区域包括所述从属电子设备显示的第二用户界面投屏在所述主电子设备上的界面内容,所述第一操作是在所述第一用户界面的投屏区域上的操作,所述方法还包括:The method of claim 1, wherein the first user interface includes a screen projection area, and the screen projection area includes a second user interface displayed by the slave electronic device to be projected on the master electronic device interface content, the first operation is an operation on the screen projection area of the first user interface, and the method further includes:响应于检测到的作用于所述第三用户界面的第二操作,所述主电子设备将所述应用的运行结果发送至所述从属电子设备。In response to the detected second operation acting on the third user interface, the master electronic device transmits the execution result of the application to the slave electronic device.
- 根据权利要求1或2所述的方法,其特征在于,所述方法还包括:The method according to claim 1 or 2, wherein the method further comprises:所述主电子设备检测到用于开启区分分布式输入设备功能的第三操作,响应于所述第三操作,开启所述区分分布式输入设备功能,所述区分分布式输入设备功能用于所述主电子设备检测到所述第一操作是在主电子设备,则调用并运行所述主电子设备的应用,或者所述第一操作是在所述从属电子设备,则调用并运行所述从属电子设备的应用。The master electronic device detects a third operation for turning on the differentiated distributed input device function, and in response to the third operation, turns on the differentiated distributed input device function, the differentiated distributed input device function is used for all The master electronic device detects that the first operation is on the master electronic device, then invokes and runs the application of the master electronic device, or the first operation is on the slave electronic device, invokes and runs the slave electronic device Application of electronic equipment.
- 如权利要求3所述的方法,其特征在于,所述方法还包括:The method of claim 3, wherein the method further comprises:所述第一用户界面包括窗口区域,所述第三操作包括所述主电子设备检测到的作用于所述窗口区域中的第一交互元素的操作,所述第一交互元素用于监听开启所述区分分布式输入设备功能的操作;在所述区分分布式输入设备功能没有被开启时,所述窗口区域中显示有所述第一交互元素。The first user interface includes a window area, and the third operation includes an operation detected by the main electronic device and acting on a first interaction element in the window area, where the first interaction element is used to monitor the activation of all the elements. The operation of distinguishing the functions of distributed input devices is described; when the function of distinguishing distributed input devices is not enabled, the first interactive element is displayed in the window area.
- 如权利要求4所述的方法,其特征在于,所述方法还包括:The method of claim 4, wherein the method further comprises:在开启所述区分分布式输入设备功能后,所述主电子设备刷新所述窗口区域,刷新后的所述窗口区域中显示第二交互元素;After enabling the function of distinguishing distributed input devices, the main electronic device refreshes the window area, and displays a second interactive element in the refreshed window area;所述主电子设备检测到作用于所述第二交互元素的第四操作,响应于所述第四操作,关闭所述区分分布式输入设备功能。The host electronic device detects a fourth operation acting on the second interactive element, and in response to the fourth operation, disables the differentiated distributed input device function.
- 如权利要求5所述的方法,其特征在于,所述第一用户界面包括投屏区域,所述投屏区域包括所述从属电子设备显示的第二用户界面投屏在所述主电子设备上的界面内容,所述方法还包括:The method of claim 5, wherein the first user interface includes a screen projection area, and the screen projection area includes a second user interface displayed by the slave electronic device to be projected on the master electronic device The interface content, the method further includes:在关闭所述区分分布式输入设备功能后,所述主电子设备检测第五操作;After turning off the function of distinguishing distributed input devices, the main electronic device detects a fifth operation;若所述第五操作是在所述主电子设备上的所述投屏区域上的操作,响应于所述第五操作,所述主电子设备显示第五用户界面,所述第五用户界面包括调用并运行所述从属电子设备的应用的界面。If the fifth operation is an operation on the screen projection area on the main electronic device, in response to the fifth operation, the main electronic device displays a fifth user interface, and the fifth user interface includes An interface for invoking and running the application of the slave electronic device.
- 如权利要求1-6任一项所述的方法,其特征在于,若所述第一操作是作用于所述第一用户界面上的文本框的操作,所述第三用户界面包括调用并运行所述主电子设备的输入法应用的输入法界面。The method according to any one of claims 1-6, wherein if the first operation is an operation acting on a text box on the first user interface, the third user interface includes calling and running The input method interface of the input method application of the main electronic device.
- 如权利要求2所述的方法,其特征在于,所述第二操作是作用于所述投屏区域中文本 框的输入操作,所述方法还包括:The method of claim 2, wherein the second operation is an input operation acting on a text box in the screen projection area, and the method further comprises:所述主电子设备刷新所述第三用户界面,刷新后的所述第三用户界面的所述投屏区域包括所述输入操作的输入结果。The main electronic device refreshes the third user interface, and the refreshed screen projection area of the third user interface includes the input result of the input operation.
- 如权利要求1-6任一项所述的方法,其特征在于,若所述第一操作是作用于所述第一用户界面上的摄像应用的操作,所述第三用户界面包括调用并运行所述主电子设备的摄像应用的第一预览画面,所述第一预览画面包括第一图像,所述第三用户界面还包括所述主电子设备具备的至少一个增强功能选项;The method according to any one of claims 1-6, wherein if the first operation is an operation acting on a camera application on the first user interface, the third user interface includes calling and running a first preview screen of a camera application of the main electronic device, the first preview screen includes a first image, and the third user interface further includes at least one enhanced function option provided by the main electronic device;响应于检测到的作用于目标增强功能选项的第六操作,所述电子设备显示第二预览画面,所述第二预览画面包括第二图像,所述第二图像是对所述第一图像进行所述目标增强功能选项对应的增强功能处理后的图像,所述至少一个增强功能选项包括所述目标增强功能选项。In response to the detected sixth operation acting on the target enhancement function option, the electronic device displays a second preview screen, the second preview screen includes a second image, the second image is a modification of the first image. The image processed by the enhancement function corresponding to the target enhancement function option, the at least one enhancement function option includes the target enhancement function option.
- 如权利要求9所述的方法,其特征在于,所述第一用户界面包括投屏区域,所述投屏区域包括所述从属电子设备显示的第二用户界面投屏在所述主电子设备上的界面内容,所述第一操作是在所述第一用户界面的投屏区域上的操作,所述第二操作是作用于所述第三用户界面中拍摄控件的操作,所述方法还包括:The method of claim 9, wherein the first user interface includes a screen projection area, and the screen projection area includes a second user interface displayed by the slave electronic device to be projected on the master electronic device the content of the interface, the first operation is an operation on the screen projection area of the first user interface, the second operation is an operation acting on the shooting controls in the third user interface, and the method further includes :所述主电子设备刷新所述第三用户界面,刷新后的所述第三用户界面包括所述拍摄操作的拍摄结果,将所述拍摄结果发送至所述从属电子设备;所述拍摄结果包括调用所述目标增强功能后的拍摄画面。The master electronic device refreshes the third user interface, the refreshed third user interface includes the shooting result of the shooting operation, and sends the shooting result to the slave electronic device; the shooting result includes calling The shooting picture after the target enhancement function.
- 如权利要求1-6任一项所述的方法,其特征在于,若所述第一操作是作用于所述第一用户界面上的播放应用图标的操作,所述第三用户界面包括调用并运行所述主电子设备的播放应用的媒体对象选择界面,所述媒体对象选择界面包括至少一个媒体对象标识;所述媒体对象选择界面包括所述主电子设备历史播放的媒体对象标识;The method according to any one of claims 1-6, wherein if the first operation is an operation acting on an application icon on the first user interface, the third user interface includes calling and Running the media object selection interface of the playback application of the main electronic device, the media object selection interface includes at least one media object identifier; the media object selection interface includes the media object identifiers played by the main electronic device historically;响应于检测到的作用于目标媒体对象标识的第七操作,所述电子设备显示所述目标媒体对象标识对应媒体的播放画面,所述播放画面包括在所述主电子设备上历史播放所述媒体的播放信息,所述至少一个媒体对象标识包括所述目标媒体对象标识。In response to the detected seventh operation acting on the target media object identification, the electronic device displays a playback screen of the media corresponding to the target media object identification, and the playback screen includes historically playing the media on the main electronic device The playback information of the at least one media object identifier includes the target media object identifier.
- 如权利要求11所述的方法,其特征在于,所述播放信息包括以下信息中的一项或多项:播放进度信息、用户点评信息以及媒体分享信息。The method of claim 11, wherein the playback information includes one or more of the following information: playback progress information, user comment information, and media sharing information.
- 如权利要求11或12所述的方法,其特征在于,所述第一用户界面包括投屏区域,所述投屏区域包括所述从属电子设备显示的第二用户界面投屏在所述主电子设备上的界面内容,所述第一操作是在所述第一用户界面的投屏区域上的操作,若所述第二操作是作用于所述媒体播放画面的关闭控件的操作,所述方法还包括:The method according to claim 11 or 12, wherein the first user interface includes a screen projection area, and the screen projection area includes a second user interface displayed by the slave electronic device to be projected on the master electronic device. The interface content on the device, the first operation is an operation on the screen projection area of the first user interface, and if the second operation is an operation acting on the closing control of the media playback screen, the method Also includes:响应于检测到的作用于所述媒体播放画面的第二操作,所述主电子设备关闭所述媒体播放画面,将所述媒体播放画面的播放信息发送至所述从属电子设备。In response to the detected second operation acting on the media playback screen, the master electronic device closes the media playback screen, and sends playback information of the media playback screen to the slave electronic device.
- 根据权利要求1-13任一项所述的方法,其特征在于,所述主电子设备包括触摸屏幕和图形化用户界面;所述从属电子设备包括触摸屏幕和图形化用户界面。The method according to any one of claims 1-13, wherein the master electronic device includes a touch screen and a graphical user interface; the slave electronic device includes a touch screen and a graphical user interface.
- 一种计算机设备,其特征在于,包括存储器,处理器以及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时使得所述计算机设备实现如权利要求1至14任一项所述的方法。A computer device, characterized in that it includes a memory, a processor, and a computer program stored on the memory and executable on the processor, and when the processor executes the computer program, the computer device realizes A method as claimed in any one of claims 1 to 14.
- 一种电子设备,其特征在于,所述电子设备包括执行权利要求1至14任一项所述方法的装置。An electronic device, characterized in that, the electronic device comprises a device for executing the method of any one of claims 1 to 14.
- 一种计算机可读存储介质,包括指令,其特征在于,当所述指令在电子设备上运行时,使得所述电子设备执行如权利要求1-14中任一项所述的方法。A computer-readable storage medium comprising instructions, characterized in that, when the instructions are executed on an electronic device, the electronic device is caused to perform the method of any one of claims 1-14.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010901550.6 | 2020-08-31 | ||
CN202010901550.6A CN114115770B (en) | 2020-08-31 | 2020-08-31 | Display control method and related device |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2022042326A1 true WO2022042326A1 (en) | 2022-03-03 |
Family
ID=80354560
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2021/112365 WO2022042326A1 (en) | 2020-08-31 | 2021-08-12 | Display control method and related apparatus |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN114115770B (en) |
WO (1) | WO2022042326A1 (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115599335A (en) * | 2022-12-13 | 2023-01-13 | 佳瑛科技有限公司(Cn) | Method and system for sharing layout file based on multi-screen mode |
CN115827207A (en) * | 2023-02-16 | 2023-03-21 | 荣耀终端有限公司 | Application switching method and electronic equipment |
WO2023230765A1 (en) * | 2022-05-30 | 2023-12-07 | 京东方科技集团股份有限公司 | Screen information synchronization method and system |
CN118230535A (en) * | 2022-12-21 | 2024-06-21 | 华为技术有限公司 | Equipment management method and electronic equipment |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115580677B (en) * | 2022-09-26 | 2024-07-26 | 荣耀终端有限公司 | Method for controlling equipment, electronic equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110333814A (en) * | 2019-05-31 | 2019-10-15 | 华为技术有限公司 | A kind of method and electronic equipment of sharing contents |
CN110471639A (en) * | 2019-07-23 | 2019-11-19 | 华为技术有限公司 | Display methods and relevant apparatus |
US20200104004A1 (en) * | 2018-09-28 | 2020-04-02 | Panasonic Intellectual Property Management Co., Ltd. | Display control device, display control method, and display control system |
CN111309419A (en) * | 2020-01-22 | 2020-06-19 | 维沃移动通信有限公司 | Split-screen display method and electronic equipment |
US20200218417A1 (en) * | 2016-06-11 | 2020-07-09 | Apple Inc. | Device, Method, and Graphical User Interface for Controlling Multiple Devices in an Accessibility Mode |
Family Cites Families (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20150025584A (en) * | 2013-08-29 | 2015-03-11 | 삼성전자주식회사 | Method for screen sharing and an electronic device |
KR102085181B1 (en) * | 2013-10-23 | 2020-03-05 | 삼성전자주식회사 | Method and device for transmitting data and method and device for receiving data |
KR102693268B1 (en) * | 2018-07-31 | 2024-08-08 | 삼성전자주식회사 | Electronic device and method for executing application using both of display in the electronic device and external display |
US10474416B1 (en) * | 2019-01-03 | 2019-11-12 | Capital One Services, Llc | System to facilitate interaction during a collaborative screen sharing session |
CN110221798A (en) * | 2019-05-29 | 2019-09-10 | 华为技术有限公司 | A kind of throwing screen method, system and relevant apparatus |
CN118363553A (en) * | 2019-08-28 | 2024-07-19 | 北京小米移动软件有限公司 | Screen projection method, device, terminal and storage medium |
CN111078819A (en) * | 2019-12-31 | 2020-04-28 | 维沃移动通信有限公司 | Application sharing method and electronic equipment |
CN111314549B (en) * | 2020-02-10 | 2022-04-22 | 联想(北京)有限公司 | Transmission apparatus and processing method |
CN111327769B (en) * | 2020-02-25 | 2022-04-08 | 北京小米移动软件有限公司 | Multi-screen interaction method and device and storage medium |
-
2020
- 2020-08-31 CN CN202010901550.6A patent/CN114115770B/en active Active
-
2021
- 2021-08-12 WO PCT/CN2021/112365 patent/WO2022042326A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20200218417A1 (en) * | 2016-06-11 | 2020-07-09 | Apple Inc. | Device, Method, and Graphical User Interface for Controlling Multiple Devices in an Accessibility Mode |
US20200104004A1 (en) * | 2018-09-28 | 2020-04-02 | Panasonic Intellectual Property Management Co., Ltd. | Display control device, display control method, and display control system |
CN110333814A (en) * | 2019-05-31 | 2019-10-15 | 华为技术有限公司 | A kind of method and electronic equipment of sharing contents |
CN110471639A (en) * | 2019-07-23 | 2019-11-19 | 华为技术有限公司 | Display methods and relevant apparatus |
CN111309419A (en) * | 2020-01-22 | 2020-06-19 | 维沃移动通信有限公司 | Split-screen display method and electronic equipment |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2023230765A1 (en) * | 2022-05-30 | 2023-12-07 | 京东方科技集团股份有限公司 | Screen information synchronization method and system |
CN115599335A (en) * | 2022-12-13 | 2023-01-13 | 佳瑛科技有限公司(Cn) | Method and system for sharing layout file based on multi-screen mode |
CN115599335B (en) * | 2022-12-13 | 2023-08-22 | 佳瑛科技有限公司 | Method and system for sharing layout files based on multi-screen mode |
CN118230535A (en) * | 2022-12-21 | 2024-06-21 | 华为技术有限公司 | Equipment management method and electronic equipment |
WO2024131661A1 (en) * | 2022-12-21 | 2024-06-27 | 华为技术有限公司 | Device management method, and electronic device |
CN115827207A (en) * | 2023-02-16 | 2023-03-21 | 荣耀终端有限公司 | Application switching method and electronic equipment |
CN115827207B (en) * | 2023-02-16 | 2023-07-14 | 荣耀终端有限公司 | Application program switching method and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN114115770B (en) | 2024-06-25 |
CN114115770A (en) | 2022-03-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2021017889A1 (en) | Display method of video call appliced to electronic device and related apparatus | |
EP3944063A1 (en) | Screen capture method and electronic device | |
WO2020259452A1 (en) | Full-screen display method for mobile terminal, and apparatus | |
EP3907597A1 (en) | Method for displaying ui assembly and electronic device | |
WO2021213164A1 (en) | Application interface interaction method, electronic device, and computer readable storage medium | |
WO2022042326A1 (en) | Display control method and related apparatus | |
EP4109891A1 (en) | Device interaction method and electronic device | |
WO2022068483A1 (en) | Application startup method and apparatus, and electronic device | |
WO2020173370A1 (en) | Method for moving application icons, and electronic device | |
WO2022017393A1 (en) | Display interaction system, display method, and device | |
WO2021031865A1 (en) | Call method and apparatus | |
US20220345563A1 (en) | Address book-based device discovery method, audio and video communication method, and electronic device | |
JP2022547572A (en) | callback stream processing method and device | |
WO2022042770A1 (en) | Method for controlling communication service state, terminal device and readable storage medium | |
WO2022001619A1 (en) | Screenshot method and electronic device | |
CN112130788A (en) | Content sharing method and device | |
WO2022001258A1 (en) | Multi-screen display method and apparatus, terminal device, and storage medium | |
JP7543442B2 (en) | Content sharing method, device, and system | |
WO2022143180A1 (en) | Collaborative display method, terminal device, and computer readable storage medium | |
WO2022063159A1 (en) | File transmission method and related device | |
WO2024045801A1 (en) | Method for screenshotting, and electronic device, medium and program product | |
WO2022095820A1 (en) | Text input method, electronic device, and system | |
CN113438366A (en) | Information notification interaction method, electronic device and storage medium | |
WO2021052388A1 (en) | Video communication method and video communication apparatus | |
WO2021037034A1 (en) | Method for switching state of application, and terminal device |
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: 21860165 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 21860165 Country of ref document: EP Kind code of ref document: A1 |