WO2022143891A1 - 焦点同步方法及电子设备 - Google Patents

焦点同步方法及电子设备 Download PDF

Info

Publication number
WO2022143891A1
WO2022143891A1 PCT/CN2021/143044 CN2021143044W WO2022143891A1 WO 2022143891 A1 WO2022143891 A1 WO 2022143891A1 CN 2021143044 W CN2021143044 W CN 2021143044W WO 2022143891 A1 WO2022143891 A1 WO 2022143891A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
application
window
focus
user interface
Prior art date
Application number
PCT/CN2021/143044
Other languages
English (en)
French (fr)
Inventor
郜昌磊
何书杰
雷亮
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to EP21914622.2A priority Critical patent/EP4261673A1/en
Priority to US18/259,276 priority patent/US20240069845A1/en
Publication of WO2022143891A1 publication Critical patent/WO2022143891A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1423Digital output to display device ; Cooperation and interconnection of the display device with other functional units controlling a plurality of local displays, e.g. CRT and flat panel display
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction 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/0488Interaction 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction 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/0489Interaction 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 dedicated keyboard keys or combinations thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1454Digital 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • G06F9/452Remote windowing, e.g. X-Window System, desktop virtualisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/485Task life-cycle, e.g. stopping, restarting, resuming execution
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/542Event management; Broadcasting; Multicasting; Notifications
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/14Display of multiple viewports
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/048Indexing scheme relating to G06F3/048
    • G06F2203/04803Split screen, i.e. subdividing the display area or the window area into separate subareas
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/545Gui
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2354/00Aspects of interface with display user

Definitions

  • the present application relates to the field of electronic technology, and in particular, to a focus synchronization method and an electronic device.
  • the present application provides a focus synchronization method, which is applied to a communication system, where the communication system includes a first electronic device and a second electronic device, and a communication connection is established between the first electronic device and the second electronic device ;
  • the method includes: the second electronic device displays a plurality of windows, and each window in the plurality of windows displays a user interface of an application program; the application program is installed and run on the first electronic device ; the first window of the plurality of windows displays the first user interface of the first application, the second user interface of the first application is displayed on the first electronic device, the first user interface and the The second user interface has the same user interface elements; the second window in the plurality of windows is the focus window, and the second window displays the user interface of the second application; the second application is the The focus application of the first electronic device; the first electronic device detects the first focus switching event, and switches the focus application from the second application to the third application; the second electronic device switches The third window is set as the focus window, and the third window is a window that
  • first user interface and the second user interface have the same user interface elements, which can be understood as the first user interface and the second user interface have the same display content; for example, the first user interface and the second user interface may be the size of different, it contains two user interfaces with exactly the same display content; or, the title bar of the first user interface and the second user interface are different, and the rest of the parts other than the title bar are the same; the user can choose from the first user interface and the second user interface The interface acquires the same information about the first application.
  • the first focus switching event refers to an operation of starting/switching to a third application.
  • the first focus switching event refers to an operation of opening/switching to the third window.
  • the detection of the first focus switching event by the first electronic device may include two situations: the first situation: the first electronic device detects the first focus switching event through the second electronic device; the second situation, the first electronic device The first focus switching event is not detected by the second electronic device.
  • the second electronic device detects a click operation of the cursor on the third window, and in response to the click operation, the second electronic device generates focus switching data according to the click operation, and the second electronic device sends the first
  • the electronic device sends the focus switching data, which means that the first electronic device detects the first focus switching event; for the second case, for example, the first electronic device detects the third application on the display screen of the local end.
  • the touch operation of the icon is regarded as the detection of the first focus switching event by the first electronic device.
  • the first electronic device detects the first focus switching event, switches the focus application from the second application to the third application, and the second electronic device sets the third window to The focus window, the third window is a window that displays the user interface of the third application; the time sequence of the two steps is not limited in this example.
  • the focus application and the focus window can be synchronized between the first electronic device and the second electronic device, which is beneficial to improve the user experience when switching between the first electronic device and the second electronic device.
  • the method further includes: when the focused application is the second application: the second electronic device detects a first user input; the first The second electronic device updates the user interface of the second application; when the focused application is the third application: the second electronic device detects a second user input; the second electronic device updates the The user interface of the third application.
  • the user input may be text information, voice information, page turning and other data content/instructions for a single application input by the user.
  • the second electronic device when the second electronic device detects the user input, in response to the user input, the second electronic device updates the user interface of the focused application according to the user input.
  • the method further includes: the first electronic device detects To the second focus switching event, the focus application is switched from the third application to the first application; the second electronic device sets the first window as the focus window; the second The electronic device detects a third user input; the second electronic device updates the first user interface of the first application; the first electronic device updates the second user interface of the first application .
  • the second focus switching event refers to an operation of starting/switching to the first application.
  • both the first electronic device and the second electronic device can update the user interface of the first application; Synchronization of the displayed user interface of the first application.
  • the method further Including: the second electronic device sends a first data packet generated according to the first user input to the first electronic device; the first electronic device targets the second application program according to the first data packet The data of the second application is processed to obtain the first display data of the second application; the first electronic device sends the first display data to the second electronic device.
  • updating the user interface of the second application by the second electronic device includes: the second electronic device updates the first display data according to the first display data.
  • the user interface of the second application is updated from a third user interface to a fourth user interface, and the third user interface is different from the fourth user interface.
  • the third user interface and the fourth user interface may be two user interfaces with completely different displayed contents; or, the third user interface and the fourth user interface may also be two user interfaces with different displayed contents. User Interface.
  • the method further Including: the second electronic device sends a second data packet generated according to the second user input to the first electronic device; the first electronic device targets the third application program according to the second data packet The data is processed to obtain the second display data of the third application; the first electronic device sends the second display data to the second electronic device.
  • updating the user interface of the third application by the second electronic device includes: the second electronic device updates the first electronic device according to the second display data
  • the user interface of the three applications is updated from a fifth user interface to a sixth user interface, and the fifth user interface is different from the sixth user interface.
  • the fifth user interface and the sixth user interface may be two user interfaces with completely different displayed contents in the user interface; or, the fifth user interface and the sixth user interface may also be two user interfaces with different displayed contents. User Interface.
  • the first user input and the second user input are the same, and the first user input and the second user input are pressing of a first key operate.
  • the first key may be the ESC key on the keyboard.
  • the method further includes: the first electronic device displays the user interface of the third application; the first electronic device sends first focus switching data to the second electronic device, the focus switching Data is generated by the first electronic device in response to the first focus switching event.
  • a reference state identifier and a reference identifier are stored in the first electronic device, and the focus application is switched from the second application to the third application
  • the method further includes: if the reference state identifier is a first state identifier, and the third application program The first identity identifier is different from the reference identity identifier, and the reference state identifier is updated to be the second state identifier; or, if the reference state identifier is the second state identifier; then generate the first identifier according to the first identifier.
  • First focus switching data wherein, if the reference state identifier is the first state identifier, it means that before the first electronic device switches the focus application to the third application, the first The electronic device sets the second application as the focus application according to the third focus switching data sent by the second electronic device; if the reference state identifier is the second state identifier, it means that Before the first electronic device switches the focus application to the third application, the first electronic device sets the second application according to a third focus switching event detected by the first electronic device for the focus application.
  • the third focus switching event refers to an operation of starting/switching to the second application.
  • the first electronic device can determine whether to perform the subsequent focus synchronization operation according to the reference state identifier and the reference identity identifier, thereby avoiding the situation that the first electronic device and the second electronic device repeatedly set the focus for the same application.
  • the method further includes: the second electronic device sends second focus switching data to the first electronic device, the second focus switching data is the response of the second electronic device to the first focus Generated by the toggle event.
  • a reference state identifier and a reference identifier are stored in the first electronic device, and the focus application is switched from the second application to the third application
  • the method further includes: updating the reference state identifier to a first state identifier; updating the reference identifier to an identifier of the third application program; wherein, if the reference state identifier is the first state identifier If the reference state identifier is the second state identifier, it means that the focus application is set by the first electronic device according to the fourth focus switching data sent by the second electronic device; if the reference state identifier is the second state identifier, it means that the The focus application is set by the first electronic device according to a fourth focus switching event detected by the first electronic device.
  • the second electronic device setting the third window as the focus window includes: the second electronic device marking the third window.
  • the second electronic device marks the focus window, so that the user can identify the focus window from multiple windows.
  • the second electronic device marks the third window, including one or more of the following: the second electronic device sets a The title bar is in a highlighted state; the second electronic device adjusts the transparency of the third window.
  • the method further includes: the second electronic device determines the Multiple windows meet the preset conditions.
  • the preset condition may be that the mode in which the multiple windows are located is a set mode, for example, the mode may include a full-screen mode and a non-full-screen mode; the preset condition may be that the multiple windows are in a non-full-screen mode.
  • the method further includes: the first electronic device acquires the State data of multiple windows; the first electronic device determines, according to the state data, that the multiple windows satisfy a preset condition.
  • the second electronic device may send state data of multiple windows to the first electronic device.
  • the preset condition may be that the mode in which the multiple windows are located is a set mode, for example, the mode may include a full-screen mode and a non-full-screen mode; the preset condition may be that the multiple windows are in a non-full-screen mode.
  • the preset conditions include one or more of the following: the multiple windows do not include a full-screen window; the multiple windows are not in a media playing state .
  • the media playback state may be a state of playing a video, a state of full-screen browsing of a document, and the like.
  • the plurality of windows include the third window; the third window displays the The user interface of the third application.
  • an embodiment of the present application provides a focus synchronization method, which is applied to a first electronic device, where a communication connection is established between the first electronic device and a second electronic device, and the second electronic device is used to display multiple windows , each of the multiple windows displays a user interface of an application; the application is installed and run on the first electronic device; the first window in the multiple windows displays the first application the first user interface of the program, the second user interface of the first application program is displayed on the first electronic device, the first user interface and the second user interface have the same user interface elements; the The second window among the plurality of windows is the focus window, and the second window displays the user interface of the second application; the second application is the focus application of the first electronic device; the method includes: the The first electronic device detects the first focus switching event, and switches the focus application from the second application to the third application.
  • the method further includes: when the focused application is the second application: receiving, by the first electronic device, the data sent by the second electronic device The first user inputs the generated first data packet; the first electronic device generates first display data according to the first data packet, and the first electronic device sends the first display data to the second electronic device , the first display data is used to update the user interface of the second application on the second electronic device; when the focus application is the third application: the first electronic device receives the the second data packet sent by the second electronic device and generated according to the second user input; the first electronic device generates second display data according to the second data packet; the first electronic device sends the second electronic device The second display data is used to update the user interface of the second application on the second electronic device.
  • the method further includes: the first electronic device detects to a second focus switching event, switching the focus application from the third application to the first application; the first electronic device receives the third user input sent by the second electronic device The first electronic device generates third display data according to the data package including the third user input; the first electronic device updates the first user interface of the first application program.
  • the method further includes: the first electronic device displays a user interface of the third application; the first electronic device sends first focus switching data to the second electronic device, the focus switching data being the first electronic device responding to the first focus switching event generated.
  • a reference state identifier and a reference identifier are stored in the first electronic device, and the focus application is switched from the second application to the third application
  • the method further includes: if the reference state identifier is a first state identifier, and the third application program The first identity identifier is different from the reference identity identifier, and the reference state identifier is updated to be the second state identifier; or, if the reference state identifier is the second state identifier; then generate the first identifier according to the first identifier.
  • First focus switching data wherein, if the reference state identifier is the first state identifier, it means that before the first electronic device switches the focus application to the third application, the first The electronic device sets the second application as the focus application according to the third focus switching data sent by the second electronic device; if the reference state identifier is the second state identifier, it means that Before the first electronic device switches the focus application to the third application, the first electronic device sets the second application according to a third focus switching event detected by the first electronic device for the focus application.
  • the method further includes: the first electronic device acquires the State data of multiple windows; the first electronic device determines, according to the state data, that the multiple windows satisfy a preset condition.
  • the preset conditions include one or more of the following: the multiple windows do not include a full-screen window; the multiple windows are not in a media playing state .
  • the plurality of windows before the first electronic device detects the first focus switching event, includes the third window; the third window displays the The user interface of the third application.
  • an embodiment of the present application provides a focus synchronization method, which is applied to a second electronic device, where a communication connection is established between the second electronic device and the first electronic device, and the method includes: the second electronic device displays multiple windows, each of the multiple windows displays a user interface of an application; the application is installed and run on the first electronic device; the first window among the multiple windows displays the first A first user interface of an application program, a second user interface of the first application program is displayed on the first electronic device, and the first user interface and the second user interface have the same user interface elements; The second window in the plurality of windows is the focus window, and the second window displays the user interface of the second application; the second application is the focus application of the first electronic device; the second The electronic device sets the third window as the focus window, where the third window is a window displaying the user interface of the third application.
  • the method further includes: when the focus window is the second window: the second electronic device detects the first user input; the second electronic device updates the user interface of the second application; when the focus window is the third window: the second electronic device detects a second user input; the second electronic device updates the The user interface of the third application.
  • the method further The method includes: sending, by the second electronic device, a first data packet generated according to the first user input to the first electronic device; and receiving, by the second electronic device, first display data sent by the first electronic device.
  • updating the user interface of the second application by the second electronic device includes: the second electronic device updates the first display data according to the first display data.
  • the user interface of the second application is updated from a third user interface to a fourth user interface, and the third user interface is different from the fourth user interface.
  • the method further The method includes: sending, by the second electronic device, a second data packet generated according to the second user input to the first electronic device; and receiving, by the second electronic device, second display data sent by the first electronic device.
  • updating the user interface of the third application by the second electronic device includes: the second electronic device updates the first electronic device according to the second display data
  • the user interface of the three applications is updated from a fifth user interface to a sixth user interface, and the fifth user interface is different from the sixth user interface.
  • the first user input and the second user input are the same, and the first user input and the second user input are pressing of a first key operate.
  • the method further includes: the second electronic device receives the first electronic device The first focus switching data sent.
  • the method further includes: the second electronic device sends a message to the first electronic device Second focus switching data, the second focus switching data is generated by the second electronic device in response to the first focus switching event.
  • the second electronic device setting the third window as the focus window includes: the second electronic device marking the third window.
  • the second electronic device marks the third window, including one or more of the following: the second electronic device sets the The title bar is in a highlighted state; the second electronic device adjusts the transparency of the third window.
  • the method further includes: the second electronic device determines the Multiple windows meet the preset conditions.
  • the preset conditions include one or more of the following: the multiple windows do not include a full-screen window; the multiple windows are not in a media playback state .
  • the plurality of windows include the third window; the third window displays all the the user interface of the third application.
  • an embodiment of the present application provides an electronic device, the electronic device includes: one or more processors and a memory; the memory is coupled to the one or more processors, and the memory is used to store a computer Program code, the computer program code comprising computer instructions that the one or more processors invoke to cause the electronic device to perform the second aspect and any of its possible implementations, or the third aspect and any of its possible implementations.
  • an embodiment of the present application provides a communication system, where the communication system includes a first electronic device and a second electronic device, wherein the first electronic device and/or the second electronic device includes: one or more processors and a memory; the memory is coupled to the one or more processors, the memory for storing computer program code, the computer program code comprising computer instructions, the one or more processors
  • the computer instructions are invoked to cause the first electronic device and/or the second electronic device to perform the first aspect and any possible implementations thereof.
  • a chip system is provided, the chip system is applied to an electronic device, the chip system includes one or more processors, and the processors are configured to invoke computer instructions to cause the electronic device to perform the first aspect and any of its possible implementations, or the second aspect and any of its possible implementations, or the third aspect and any of its possible implementations.
  • the present application provides a computer program product that, when the computer program product is run on an electronic device, causes the electronic device to perform the first aspect and any possible implementations thereof, or the second aspect and any possible implementation manner thereof, or the third aspect and any possible implementation manner thereof.
  • the present application provides a computer-readable storage medium, the computer-readable storage medium comprising computer instructions, when the computer instructions are executed on an electronic device, the electronic device is made to perform the first aspect and any of the above.
  • FIGS. 1A to 1F are schematic diagrams of states of a group of electronic devices provided by embodiments of the present application.
  • FIG. 2 is a schematic flowchart of a focus synchronization method provided by an embodiment of the present application
  • FIG. 3 is a schematic flowchart of some steps of a focus synchronization method provided by an embodiment of the present application.
  • 4A to 4B are schematic state diagrams of a group of electronic devices provided by embodiments of the present application.
  • 5A to 5C are schematic state diagrams of a group of electronic devices provided by embodiments of the present application.
  • 6A to 6D are schematic state diagrams of a group of electronic devices provided by embodiments of the present application.
  • FIG. 7 is a schematic flowchart of a focus synchronization method provided by an embodiment of the present application.
  • 8A to 8C are schematic state diagrams of a group of electronic devices provided by an embodiment of the present application.
  • 9A to 9C are schematic state diagrams of a group of electronic devices provided by embodiments of the present application.
  • FIG. 10 is a schematic structural diagram of an electronic device 100 provided by an embodiment of the present application.
  • FIG. 11 is a software structural block diagram of an electronic device 100 provided by an embodiment of the present application.
  • first and second are only used for descriptive purposes, and should not be construed as implying or implying relative importance or implying the number of indicated technical features. Therefore, the features defined as “first” and “second” may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present application, unless otherwise specified, the “multiple” The meaning is two or more.
  • the electronic device can launch multiple applications simultaneously, and can open multiple windows, displaying the user interface of one application in each of the multiple windows.
  • the electronic device may set one of the windows as the focus window, and set the application corresponding to the focus window as the focus application (for example, the user interface of the application F1 is displayed in the focus window, Then the application program corresponding to the focus window is the application program F1.);
  • the electronic device detects an operation against the electronic device (for example, the electronic device is connected to the keyboard and the mouse in communication, the user can press the page-turning key on the keyboard to realize the page-turning function, Alternatively, the wheel of the mouse can be rotated to realize the page turning function); the electronic device processes the data of the focused application according to the operation, so as to meet the user's usage requirements.
  • Operating systems with multitasking capabilities such as Microsoft Windows (Microsoft TM ) operating system, Android (Android TM operating system, etc.), in the case of opening multiple windows/multiple applications, all have the ability to set the focus window/focus Features of the application.
  • the focused application can have different definitions in different operating systems.
  • the Android operating system it can be a Focused application.
  • the focus application can have the following functions: when the electronic device runs multiple applications, the electronic device can set one of the applications as the focus application, and then the electronic device detects an operation that meets the conditions (which can be When the user touches the touchable area on the display screen, the user inputs the operation instruction through the keyboard, the mouse, etc.), the data of the focus application is processed according to the operation that meets the conditions.
  • the method for setting the focus application program can enable the electronic device to accurately determine the application program that needs to perform data processing, thereby avoiding errors of data processing objects.
  • the focus window can have different definitions in different systems.
  • the focus window is the Active window, and the active window has the focus.
  • the focus window can have the following functions: the electronic device can determine the data to be processed according to the operations that satisfy the preset conditions and the content displayed in the focus window, and then perform data processing operations on the data to be processed.
  • the display effects presented by the focus window and the non-focus window set by the electronic device are different, so that the user can distinguish the focus window and the non-focus window; for example, the electronic device can change the transparency of the focus window to distinguish it from the non-focus window. ;
  • the electronic device can set the title bar of the focus window to a highlighted state, or the electronic device can change the font size, thickness, color value, etc. of the title bar of the focus window;
  • the focus window can be determined from multiple windows.
  • the electronic device 100 is connected in communication with the electronic device 200 ; the display interface of the electronic device 200 is larger than the display interface of the electronic device 100 .
  • the display interface refers to the entire displayable area on the display screen.
  • the electronic device 100 can run at least one application program at the same time; the electronic device 100 sends display data to the electronic device 200 under the condition of being communicatively connected with the electronic device 200; the electronic device 200 displays at least one display on the display screen of the electronic device 200 according to the display data
  • a window of an application program allows the user to view and operate at least one application program on the electronic device 200 to realize linkage between electronic devices.
  • the user can use the electronic device 100 and the electronic device 200 to view and operate at least one application program at the same time, thus improving the efficiency of the user in viewing and operating the at least one application program and improving the user experience.
  • the electronic device 200 When the user performs an operation on the electronic device 200 for a target application in at least one application, the electronic device 200 generates response data according to the user's operation, and then sends the response data to the electronic device 100, and the electronic device 100 targets the target application according to the response data. Perform the corresponding operation.
  • the electronic device 200 displays multiple windows corresponding to the multiple application programs according to the display data of the electronic device 100; the window displayed by the electronic device 100 on the local display interface is the window W1, and the window W1 displays the user interface of the application F1 , and the application F1 is the focus application set by the electronic device 100 .
  • the electronic device 200 sets the window W2 last operated by the user as the focus window, and the window W2 displays the user interface of the application F2.
  • the user can achieve seamless operation switching between the electronic device 100 and the electronic device 200 , and the electronic device 100 can focus on the electronic device 100 and the electronic device 200 according to the user's operations on the electronic device 100 and the electronic device 200 .
  • the application process and then meet the user's needs.
  • the application program F1 and the application program F2 are not the same application program, there may be an operation performed by the user on the electronic device 200, and the operation is an operation for the application program F2 in the window W2;
  • the operation generates response data, and then sends the response data to the electronic device 100; since the focus application set by the electronic device 100 is the application program F1, it may occur that the electronic device 100 performs data processing operations for the application program F1 according to the response data; Condition that causes the processing target to be wrong.
  • multiple applications may always run on the electronic device 100, and the electronic device 200 is only used to display the windows of the multiple applications.
  • FIG. 1A which includes an electronic device 100 and an electronic device 200 .
  • the electronic device 100 is communicatively connected to the electronic device 200 .
  • the display screen of the electronic device 100 includes a window 101 .
  • the electronic device 100 sends the display data to the electronic device 200 in real time; the electronic device 200 displays 3 windows according to the display data; the 3 windows are the window 201, the window 202 and the window 203 respectively; the window 201 displays the user interface of the calculator application; the window 202 displays the user interface of the gallery application; window 203 is the main window, and the display content of window 101 is the same, that is, the user interface displayed by window 203 and the user interface displayed by window 101 have the same user interface elements; for example, window 203 in FIG.
  • window 101 include: calendar, clock, HUAWEI video and other application icons.
  • the main window refers to one window among multiple windows displayed by the electronic device 200 according to the display data sent by the electronic device 100; part/full display content of the main window 203 and part/ All displays are the same.
  • the title bars of the multiple windows displayed by the electronic device 200 may include the names of the application programs.
  • the title bar 2021 of the window 202 is highlighted, that is, the focus window set by the electronic device 200 is the window 202 ; it indicates that the user's most recent operation on the electronic device 200 is an operation for the window 202 corresponding to the gallery.
  • the electronic device 100 detects the user's touch operation on the icon 1011 of the information application program in the window 101 (it should be noted that the user can interact through voice, gesture, etc.
  • the electronic device 100 responds to the touch operation on the icon 1011 of the information application, opens the information application, and updates the user interface of the window 101 to the user interface of the information application;
  • the device 200 can receive the display data sent by the electronic device 100 in real time, and the electronic device 200 updates the user interface of the window 203 to the user interface of the information application program according to the display data.
  • FIG. 1C is a schematic diagram after updating the user interface of the window 101 and the window 203 to the user interface of the information application program. It should be noted that, in FIG.
  • the electronic device 100 since the last operation by the user is an operation performed on the electronic device 100 for the information application, the electronic device 100 sets the focused application as the information application. At this time, the focus window of the electronic device 200 is still the window 202, that is, the window corresponding to the gallery application.
  • the electronic device 200 can also be connected in communication with the keyboard 204 and the mouse 205, and the user can control the electronic device 200 through the keyboard 204 and the mouse 205;
  • the window 201, the window 202 and the window 203 are the electronic In the window generated by the display data of the device 100
  • the electronic device 200 can define the function of the ESC key 2041 in the keyboard 204 as "return to the previous level" That is, when the ESC key 2041 on the electronic device 200 is triggered, the electronic device 200 displays the upper-level user interface a2 of the user interface a1; wherein the user interface a1 is the user interface displayed by the focus window before the ESC key 2041 is triggered.
  • the situation shown in FIG. 1C is obtained; if the electronic device used by the user is switched from the electronic device 100 to the electronic device 200 at this time; because the title bar 2021 of the current window 202 is high In the bright state, that is, the current window 202 is the focus window of the electronic device 200 .
  • the operations on a single window on the electronic device 200 (such as inputting information, deleting information, returning to the upper level of the window's user interface) input from the keyboard 204 can be regarded as operations on the focused window by the user.
  • the current user interface of the gallery application is shown in the window 202 in FIG. 1C . If the user wants to return the user interface of the gallery application to the previous level, as shown in FIG.
  • the user may directly click the ESC key 2041 in the keyboard 204 After the user clicks the ESC key 2041, referring to FIG. 1F, the electronic device returns the user interface of the information application program displayed in the window 101 and the window 203 to the previous level, that is, the window 101 and the window 203 display the information list of the information application program user interface; instead of returning the user interface of the Gallery application to the previous level.
  • the following embodiment introduces a focus synchronization method provided by the embodiment of the present application.
  • the method is applied to a communication system, and the communication system includes an electronic device 100 (which may also be referred to as a first electronic device in this embodiment of the present application) and an electronic device 200 (which may also be referred to as a second electronic device in this embodiment of the present application);
  • the electronic device 100 and the electronic device 200 are connected in communication.
  • the electronic device 100 When the electronic device 100 is communicatively connected to the electronic device 200, the electronic device 100 transmits display data to the electronic device 200, and the electronic device 200 displays a plurality of windows according to the display data.
  • Each of the multiple windows displays a user interface of an application program; the application program is installed and run on the electronic device 100; the multiple windows 203 (may also be referred to as the first window in the embodiment of the present application)
  • the first user interface of the first application is displayed, the second user interface of the first application is displayed on the electronic device 100 , and the first user interface and the second user interface have the same user interface elements.
  • the method may include:
  • the electronic device 100 detects a focus switching event I1 (which may also be referred to as a first focus switching event in this embodiment of the present application), and in response to the focus switching event I1, sets the focused application as an application F2 (in this embodiment of the present application) may also be referred to as a third application).
  • a focus switching event I1 which may also be referred to as a first focus switching event in this embodiment of the present application
  • sets the focused application as an application F2 in this embodiment of the present application
  • an application F2 in this embodiment of the present application
  • the focus application of the electronic device is the application F1 (which may also be referred to as a second application in this embodiment of the present application).
  • the focus switching event I1 is an operation of starting/switching to the application F2; the electronic device 100 can set the application that was started/switched most recently as the focus application. In this example, since the last focus switching event I1 is used to start /Switch to application F2, so the electronic device 100 switches the focus application from application F1 to application F2.
  • the expression form of the focus switching event I1 may be a touch operation, a voice command, and an input from a peripheral device (for example, an operation performed through a keyboard and a mouse).
  • the electronic device 100 generates focus switching data according to the identity of the application F2.
  • the identity identifier may be a task identifier (Task ID) in the Android operating system.
  • step S102 may further include:
  • the conditions for judging the validity of execution may be preset, and specifically, the conditions for judging the legality may be set according to the specific scenarios applied by the embodiments of the present application; for example, the electronic device 100 may preset the data type and data format; If the data format and data type of F2 are the preset data type and data format, it is determined that the data of the application program F2 satisfies the legality; otherwise, it is determined that the data of the application program F2 does not meet the legality.
  • the system running on the electronic device 100 may be an Android (Android TM ) operating system.
  • the Android operating system includes an application framework layer and an application layer.
  • the electronic device 100 may call the application framework layer and the application layer to generate focus switching data.
  • the application framework layer in the electronic device 100 may perform the switching operation of the focused application.
  • the application framework layer may monitor the switching operation of the focus application, and perform the operations of steps s11 to s14 after monitoring the switching operation of the focus application.
  • the application framework layer includes: a task management module, a display content module, and a first communication module.
  • the application layer includes: a second communication module and a data processing module.
  • the first electronic device stores a reference state identification and a reference identification identification; wherein, the reference identification identification can be set according to the identification identification of the application program; as shown in Figure 3, step S101, step S1021 and step S102 may specifically include step s11 ⁇ s13.
  • the task management module In response to the focus switching event I1, the task management module sets the focused application as the application F2.
  • the task management module calls the display content module, and the display content module obtains the identity of the focused application.
  • the display content module updates the reference state identifier to the second state identifier;
  • the identity identifier included in the focus switching data sent by an electronic device that is, the identity identifier of the focus application set by the first electronic device most recently according to the focus switching data sent by the second electronic device is the same as the reference identifier.
  • the display content module can read and write status information.
  • the reference state identifier represents the first state identifier, it means that the current focus application program is set according to the data transmitted by the electronic device 200; when the reference state identifier represents the second state identifier, it means that the current focus application program is the electronic device 100 according to the local terminal The detected action set for launching/switching applications.
  • the electronic device 100 detects that the user controls the mouse 205 to control the cursor 208 to click on the window 203, and then, as shown in FIG. 8B, the electronic device 200 sets the window 203 as the focus window.
  • Both window 203 and window 101 display the user interface of the information application;
  • the focus application set by the electronic device 100 is the information application; because the electronic device 100 is based on the focus switching data sent by the electronic device 200 (that is, the The click operation of the cursor 208 on the window 203) sets the information application as the focus application, therefore, the electronic device 100 sets the reference state identifier as the first state identifier; at the same time, the electronic device updates the reference identifier as the information application identifier .
  • the electronic device 100 detects a touch operation on the user interface of the information application (equivalent to the focus switching event I1 in step S101 ); since the reference state identifier is the first state identifier and the reference identity at this time If the identifier is already the identifier of the information application, the electronic device 100 updates the reference state identifier to the second state identifier.
  • the focus switching event I1 is an operation for the information application, and the window 203 corresponding to the information application is already the focus window; at this time, the electronic device 100 does not execute s14 and subsequent steps, that is, the electronic device 100 does not send the focus to the electronic device 200 Switching the data avoids repeated setting of the focus point between the electronic device 100 and the electronic device 200, thereby avoiding waste of resources.
  • the display content module updates the reference state identifier to the second state identifier, and executes step s14.
  • the focus window set by the electronic device 200 is the window 202 , and the window 202 displays the user interface of the gallery application; therefore, the focus application set by the electronic device 100 is the gallery application.
  • windows 101 and 203 in FIG. 1C show the user interface of the messaging application.
  • the reference state identifier is the first state identifier
  • the reference identifier is the identity identifier of the gallery application.
  • the electronic device 100 detects a touch operation on the user interface of the information application (equivalent to the focus switching event I1 in step S101 ); since the reference state identifier is the first state identifier at this time, and the reference identifier is the identity of the gallery application, which is different from the identity of the information application; therefore, it indicates that the latest focus application was set according to the focus switching data sent by the electronic device 200, and the gallery application is different from the information application, therefore, Step s14 and subsequent steps are executed, so that the electronic device 200 updates the focus window to the window 203 corresponding to the information application.
  • the reference state identifier is the second state identifier, it indicates that the focused application of the electronic device 100 is set according to the operation detected by the local end for starting/switching the application, and the focus window on the electronic device 200 is also set according to the electronic The focus switching data sent by the device 100 is set; therefore, when the focus application of the electronic device 100 switches, execute s14 and subsequent steps, so that the electronic device 200 updates the focus window to the window corresponding to the current focus application on the electronic device 100.
  • steps s31 to s133 effectively synchronize the focus window and the focus application, while avoiding the electronic device 100 and the electronic device 200 from performing cyclic settings when the focus window and the focus application have been synchronized, thereby avoiding waste of resources.
  • the display content module calls the first communication module, and the first communication module sends information data d1 to the second communication module, where the information data d1 includes the identity of the focus application.
  • the information data d1 may further include a reference state identifier.
  • the second communication module sends the information data d1 to the data processing module, and the data processing module processes the information data d1 to obtain the information data d2.
  • the process of processing the information data d1 by the data processing module to obtain the information data d2 may include: converting the data format of the information data d1 to obtain the information data d2; wherein, the data format of the information data d1 is readable in the electronic device 100.
  • the written data format, the data format of the information data d2 is a data format that the electronic device 200 can read and write.
  • the data processing module encapsulates the information data d2 to obtain focus switching data.
  • the electronic device 100 sends focus switching data to the electronic device 200 .
  • the electronic device 200 sets the window W2 corresponding to the application program F2 as the focus window according to the focus switching data.
  • the window W2 may also be referred to as a third window.
  • the electronic device 200 can parse the focus switching data to obtain the identity of the application F2, and determine the window W2 corresponding to the application F2 according to the identity of the application F2; then, set the window W2 as the focus window.
  • the electronic device 200 may further include: the electronic device 200 judges the scene in which the window W2 is set as the focus window; in this example, the electronic device 200 judges that the electronic device 200 is based on the electronic device When the focus switching data sent by 100 sets the window W2 as the focus window, the electronic device 200 does not perform subsequent operations.
  • steps S202 to S204 in the embodiment shown in FIG. 7 are executed.
  • the electronic device 200 when the electronic device 200 sets the window W2 as the focus window, it may further include: the electronic device 200 marks the focus window, so that the user can determine that the window W2 is the focus window through the mark of the window W2.
  • marking the focus window may include: (1) setting the title bar of the focus window to a highlighted state. (2) Adjust the transparency of the focus window.
  • FIG. 1C shows the state of the electronic device 100 and the electronic device 200 before step S101 is executed.
  • the title bar 2021 of the window 202 is highlighted, indicating that the focus window set by the electronic device 200 at this time is the window 202 ;
  • the window 203 in the electronic device 200 is the main window. Please refer to FIG. 4A .
  • FIG. 4A shows the state of the electronic device 100 and the electronic device 200 before step S101 is executed.
  • the touch operation in this example is a specific form of the focus switching event I1 in step S101; after that, the electronic device 100 and the electronic device 200 execute the steps S101 to S104, and the electronic device 100 and the electronic device 200 execute the steps of S101 to S104. After the steps from S101 to S104 are completed, the specific state is as shown in FIG. 4B .
  • the electronic device 200 sets the window W2 as the focus window, which may further include: the electronic device 200 places the focus window at the topmost level in the display interface, so that other windows in the display interface cannot cover the focus window.
  • FIG. 5A shows the state of the electronic device 100 and the electronic device 200 before step S101 is executed.
  • the title bar 2061 of the visible window 206 is highlighted, indicating that the focus window set by the electronic device 200 is the window at this time.
  • FIG. 5A also includes a display interface 207, which represents the entire displayable area of the electronic device 200; as can be seen from FIG. 5A, the window 206 is located on the top layer of the display interface 207, and the window 206 covers part of the window 201 and the window 203 ; the window 203 is the main window of the electronic device 200 .
  • FIG. 5B FIG.
  • the touch operation in this example is a specific form of the focus switching event I1 in step S101; after that, the electronic device 100 and the electronic device 200 execute the steps S101 to S104, and the electronic device 100 and the electronic device 200 execute the steps of S101 to S104. After the steps from S101 to S104 are completed, the specific state is shown in FIG. 5C . It can be seen that in FIG.
  • the electronic device 200 places the window of the window 203 on the top layer of the display interface 207, so that the electronic device 200 can completely display the window 203; at the same time, the electronic device 200 sets the title bar 2031 of the window 203 to a highlighted state, indicating that The window 203 is the focus window of the electronic device 200 .
  • the window 206 may be a window generated according to display data sent by the electronic device 100 , or may be a window corresponding to an application program installed on the electronic device 200 displayed by the electronic device 200 , which is not limited here.
  • the electronic device 200 may also be communicatively connected with a keyboard 204 and a mouse 205 .
  • the keyboard 204 includes an ESC key 2041, and the function of the ESC key 2041 is "return to the previous level".
  • the state of the electronic device 100 and the electronic device 200 may be as shown in FIG. 5C; after step S104, it may further include: as shown in FIG.
  • the electronic device 200 detects a pressing operation for the ESC key 2041; After that, the electronic device 200 sends the data generated according to the pressing operation to the electronic device 100, and the electronic device 100 processes the data of the information application program according to the received data to obtain display data; sends the display data to the electronic device 200;
  • the device 100 and the electronic device 200 display the user interface as shown in FIG. 6B according to the display data, and display the logo of “press again to exit” in the user interface of the window 101 and the window 203; to prompt the user to press the ESC key again to exit Information application program; the identifiers of "press again to exit” are specifically 1012 in window 101 and 2032 in window 203.
  • window 203 and the window 101 display the information list in the information application program; since the information list is already the top-level user interface of the information application program, it cannot be further executed to return to the previous level. Therefore, In this example, window 101 and window 203 display a "press again to exit" logo.
  • the focused application can be exited by pressing the ESC key 2041 twice in succession.
  • step S101 the focus switching event I1 is used to open the application F2. If the user interface of the application F2 has been displayed in the sub-window b1 in the electronic device 200 before the user executes the focus switching event I1, then In step S104, the electronic device 200 displays the user interface of the application F2 in the main window, and sets the main window as the focus window; at the same time, the electronic device 200 can close the sub-window b1; the sub-window represents a window other than the main window among the multiple windows ; The sub-window b1 is a sub-window in the sub-windows opened by the electronic device 200 . For example, before step S101 , the states of the electronic device 100 and the electronic device 200 are shown in FIG.
  • the window 203 is the main window of the electronic device 200 ;
  • the user interface displayed by the window 202 in the electronic device 200 is a gallery application
  • the user interface of the program please refer to FIG. 6C, the first operation in step S101 is a touch operation on the icon 1013 of the gallery application in the window 101, that is, the focus switching event I1 is used to open the gallery application, because the gallery application
  • the user interface has been displayed in the window 202, therefore, as shown in FIG. 6D, the electronic device 100 displays the user interface of the gallery application in the window 101, and the electronic device 200 displays the user interface of the gallery application in the window 203 and sets the The window 203 is the focus window; at the same time, the electronic device 200 closes the window 202 .
  • the following embodiment introduces another focus synchronization method provided by the embodiment of the present application.
  • the method is applied to a communication system, and the communication system includes an electronic device 100 and an electronic device 200 ; the electronic device 100 and the electronic device 200 are communicatively connected.
  • the electronic device 100 transmits display data to the electronic device 200, and the electronic device 200 displays a plurality of windows according to the display data.
  • the method may include:
  • the electronic device 200 detects a focus switching event I2 (which may also be referred to as a first focus switching event in this embodiment of the present application), and in response to the focus switching event I2, sets the focus window as window W4 (which may also be referred to in this embodiment of the present application). known as the third window).
  • a focus switching event I2 which may also be referred to as a first focus switching event in this embodiment of the present application
  • the focus window W4 which may also be referred to in this embodiment of the present application. known as the third window.
  • the electronic device 200 setting the window W4 as the focus window may include: the electronic device 200 marks the focus window, so that the user can determine that the window W4 is the focus window through the mark of the window W4.
  • marking the focus window may include: (1) setting the title bar of the focus window to a highlighted state. (2) Adjust the transparency of the focus window.
  • the electronic device 200 sets the window W4 as the focus window, and may further include: the electronic device 200 places the focus window on the topmost layer in the display interface, so that other windows in the display interface cannot cover the focus window.
  • the focus window set by the electronic device 200 is the window W3 (which may also be referred to as the second window in this embodiment of the present application).
  • the focus switching event I2 is an operation for opening/switching to the window W4 corresponding to the application F4 (which may also be referred to as a third application in this embodiment of the present application); the electronic device 200 may set the most recent opening/switching to The window is the focus window.
  • the electronic device 200 since the latest focus switching event I2 is on/switching to the window W4, the electronic device 200 switches the focus window from the window W3 to the window W4.
  • the expression form of the focus switching event I2 may be a touch operation, a voice command, and an input from a peripheral device (for example, an operation performed through a keyboard and a mouse).
  • the state of the electronic device 100 and the electronic device 200 may be as shown in FIG. 1C before step S201 is performed; after that, as shown in FIG. 8A , the electronic device 200 detects the click operation on the window 203 by controlling the cursor 208 with the mouse 205 ; Then, as shown in FIG. 8B , the electronic device 200 sets the window 203 as the focus window.
  • the electronic device 200 generates focus switching data according to the identity of the window W4.
  • the electronic device 200 After the electronic device 200 detects the operation for opening/switching to the window W4 corresponding to the application program F4, the electronic device 200 first determines the identity of the window W4; after that, the electronic device 200 generates the focus according to the identity of the window W4 Switch data.
  • the electronic device 200 sends focus switching data to the electronic device 100 .
  • the electronic device 100 sets the application F4 corresponding to the window W4 as the focus application according to the focus switching data.
  • the system running on the electronic device 100 may be an Android (Android TM ) operating system.
  • the Android operating system includes an application framework layer and an application layer.
  • the electronic device 100 first processes the focus switching data by the application layer to obtain the processed focus switching data; it should be noted that the data format of the focus switching data before processing is electronic The data format that the device 200 can read and write; the data format of the focus switching data after processing is the data format that the electronic device 100 can read and write.
  • the application layer transmits the processed focus switching data to the application framework layer; the application framework layer sets the application F4 corresponding to the window W4 as the focused application according to the processed focus switching data.
  • the method further includes: the electronic device 100 updates the state information to the first state identifier.
  • the identity in the update state information is the identity of the application program F4. It should be noted that, for the explanation when the state information is in different state identifiers, please refer to step s131, and details are not repeated here.
  • step S104 the electronic device 200 does not execute step S104; specifically, the electronic device 200 does not execute step S104 when the electronic device 200 detects that there is a sub-window in a preset state; the preset state may be a sub-window
  • the window is a full-screen window and/or the sub-window is in a video playing state; when the electronic device 200 opens multiple windows according to the display data of the electronic device 100, the sub-window represents a window other than the main window among the multiple windows.
  • the electronic device 200 does not execute step S104; specifically, the electronic device 200 does not execute step S104 when the electronic device 200 detects that there is a sub-window in a preset state; the preset state may be a sub-window
  • the window is a full-screen window and/or the sub-window is in a video playing state; when the electronic device 200 opens multiple windows according to the display data of the electronic device 100, the sub-window represents a window other than the main window among the multiple windows.
  • step S101 is executed; it can be seen that the title bar 2021 of the window 202 in the electronic device 200 is highlighted, which means that the window 202 is The focus window; and the window 202 is a full-screen window, and the window 202 is in the state of playing a video. After that, as shown in FIG.
  • the electronic device 100 detects the user's touch operation on the icon of the information application program in the window 101 ; after that, the electronic device 100 and the electronic device 200 perform steps S101 to S103 ; after that, the electronic device 200 detects Until the window 202 is in the full screen state, and the window 202 is in the state of playing video, that is, the existing sub-window is in the preset state; therefore, step S104 is not executed; therefore, after step S103 is executed, the state of the electronic device 100 and the electronic device 200 is shown in Figure 9C.
  • FIG. 10 shows a schematic structural diagram of the electronic device 100 . It should be noted that the electronic device 200 in the embodiment of the present application may have the same structure as the electronic device 100 .
  • the electronic device 100 may be a cell phone, tablet computer, desktop computer, laptop computer, handheld computer, notebook computer, ultra-mobile personal computer (UMPC), netbook, as well as cellular telephones, personal digital assistants (personal digital assistants) digital assistant (PDA), augmented reality (AR) devices, virtual reality (VR) devices, artificial intelligence (AI) devices, wearable devices, in-vehicle devices, smart home devices and/or Smart city equipment, the embodiments of the present application do not specifically limit the specific type of the electronic equipment.
  • PDA personal digital assistants
  • AR augmented reality
  • VR virtual reality
  • AI artificial intelligence
  • 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 invention do not constitute a specific limitation on the electronic device 100 .
  • the electronic device 100 may include more or less components than shown, or combine some components, or separate some components, or arrange different components.
  • the illustrated components may be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, 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 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 to implement 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 embodiment of the present invention 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 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 stand-alone device.
  • the modem processor may be independent of the processor 110, and may be provided in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 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 the electromagnetic wave via the antenna 2, frequency modulates and filters the electromagnetic wave signal, and sends the processed signal 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 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 may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal.
  • the ISP outputs the digital image signal to the DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other formats of image signals.
  • 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 internal memory 121 may include one or more random access memories (RAM) and one or more non-volatile memories (NVM).
  • RAM random access memories
  • NVM non-volatile memories
  • Random access memory can include static random-access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double-rate synchronous dynamic Random access memory (double data rate synchronous dynamic random access memory, DDR SDRAM, such as fifth-generation DDR SDRAM is generally called DDR5 SDRAM), etc.;
  • SRAM static random-access memory
  • DRAM dynamic random access memory
  • SDRAM synchronous dynamic random access memory
  • DDR SDRAM double data rate synchronous dynamic random access memory
  • DDR SDRAM double data rate synchronous dynamic random access memory
  • DDR5 SDRAM fifth-generation DDR SDRAM
  • Non-volatile memory may include magnetic disk storage devices, flash memory.
  • Flash memory can be divided into NOR FLASH, NAND FLASH, 3D NAND FLASH, etc. according to the operating principle, and can include single-level memory cell (SLC), multi-level memory cell (multi-level memory cell, SLC) according to the level of storage cell potential.
  • cell, MLC multi-level memory cell
  • TLC triple-level cell
  • QLC quad-level cell
  • UFS universal flash storage
  • eMMC embedded multimedia memory card
  • the random access memory can be directly read and written by the processor 110, and can be used to store executable programs (eg, machine instructions) of an operating system or other running programs, and can also be used to store data of users and application programs.
  • executable programs eg, machine instructions
  • the random access memory can be directly read and written by the processor 110, and can be used to store executable programs (eg, machine instructions) of an operating system or other running programs, and can also be used to store data of users and application programs.
  • the non-volatile memory can also store executable programs and store data of user and application programs, etc., and can be loaded into the random access memory in advance for the processor 110 to directly read and write.
  • the external memory interface 120 can be used to connect an external non-volatile memory, so as to expand the storage capacity of the electronic device 100 .
  • the external non-volatile memory communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example, save music, video, etc. files in external non-volatile memory.
  • 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.
  • the electronic device 100 determines the intensity of the pressure according to the change in capacitance.
  • 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.
  • the instruction for viewing the short message is executed.
  • 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 device”.
  • 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 .
  • the software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture.
  • the embodiment of the present invention takes an Android system with a layered architecture as an example to illustrate the software structure of the electronic device 100 as an example.
  • FIG. 11 is a block diagram of a software structure of an electronic device 100 according to an embodiment of the present invention.
  • the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate with each other through software interfaces.
  • the Android system is divided into four layers, which are, from top to bottom, an application layer, an application framework layer, an Android runtime (Android runtime) and a system library, and a kernel layer.
  • the application layer can include a series of application packages.
  • the application layer can include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and so on.
  • the application layer may communicate cross-process with the application framework layer.
  • the application layer can convert the data received from the electronic device 200 into data that can be read and written by the application framework layer; the application layer can receive data sent by the application framework layer through cross-process communication, and convert the received application framework layer
  • the data is converted into data readable and writable by the electronic device 200 .
  • the application layer may perform steps s15 and s16 shown in FIG. 3 in the embodiment of the present application.
  • the application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer.
  • the application framework layer includes some predefined functions.
  • the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, and the like.
  • a window manager is used to manage window programs.
  • the window manager can get the size of the display screen, determine whether there is a status bar, lock the screen, take screenshots, etc.
  • Content providers are used to store and retrieve data and make these data accessible to applications.
  • the data may include video, images, audio, calls made and received, browsing history and bookmarks, phone book, etc.
  • the view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and so on. View systems can be used to build applications.
  • a display interface can consist of one or more views.
  • the display interface including the short message notification icon may include a view for displaying text and a view for displaying pictures.
  • the phone manager is used to provide the communication function of the electronic device 100 .
  • the management of call status including connecting, hanging up, etc.).
  • the resource manager provides various resources for the application, such as localization strings, icons, pictures, layout files, video files and so on.
  • the notification manager enables applications to display notification information in the status bar, which can be used to convey notification-type messages, and can disappear automatically after a brief pause without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc.
  • the notification manager can also display notifications in the status bar at the top of the system in the form of graphs or scroll bar text, such as notifications of applications running in the background, and notifications on the screen in the form of dialog windows. For example, text information is prompted in the status bar, a prompt sound is issued, the electronic device vibrates, and the indicator light flashes.
  • the application framework layer may call to set the focus application, and cooperate with the application layer to generate focus switching data in the case of monitoring the change of the focus application.
  • the application framework layer may execute the steps S101 and S102 shown in FIG. 2 , the steps s11 , s12 , s131 , s132 , s133 , and s14 shown in FIG. 3 , and the steps shown in FIG. 7 in this embodiment of the present application. S204.
  • Android Runtime includes core libraries and a virtual machine. Android runtime is responsible for scheduling and management of the Android system.
  • the core library consists of two parts: one is the function functions that the java language needs to call, and the other is the core library of Android.
  • the application layer and the application framework layer run in virtual machines.
  • the virtual machine executes the java files of the application layer and the application framework layer as binary files.
  • the virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, safety and exception management, and garbage collection.
  • a system library can include multiple functional modules. For example: surface manager (surface manager), media library (Media Libraries), 3D graphics processing library (eg: OpenGL ES), 2D graphics engine (eg: SGL), etc.
  • surface manager surface manager
  • media library Media Libraries
  • 3D graphics processing library eg: OpenGL ES
  • 2D graphics engine eg: SGL
  • the Surface Manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications.
  • the media library supports playback and recording of a variety of commonly used audio and video formats, as well as still image files.
  • the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
  • 2D graphics engine is a drawing engine for 2D drawing.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer contains at least display drivers, camera drivers, audio drivers, and sensor drivers.
  • a corresponding hardware interrupt is sent to the kernel layer.
  • the kernel layer processes touch operations into raw input events (including touch coordinates, timestamps of touch operations, etc.). Raw input events are stored at the kernel layer.
  • the application framework layer obtains the original input event from the kernel layer, and identifies the control corresponding to the input event. Taking the touch operation as a touch click operation, and the control corresponding to the click operation is the control of the camera application icon, for example, the camera application calls the interface of the application framework layer to start the camera application, and then starts the camera driver by calling the kernel layer.
  • the camera 193 captures still images or video.
  • Each functional unit in each of the embodiments of the embodiments of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
  • the above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as an independent product, may be stored in a computer-readable storage medium.
  • a computer-readable storage medium includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage medium includes: flash memory, removable hard disk, read-only memory, random access memory, magnetic disk or optical disk and other media that can store program codes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • Multimedia (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本申请实施例提供了一种焦点同步方法,应用于通信***,通信***包括第一电子设备和第二电子设备,第一电子设备和第二电子设备建立有通信连接;方法包括:第二电子设备显示多个窗口;第二应用程序为第一电子设备的焦点应用程序;第一电子设备检测到第一焦点切换事件,将焦点应用程序从第二应用程序切换为第三应用程序;第二电子设备将第三窗口设置为焦点窗口,第三窗口为显示第三应用程序的用户界面的窗口。实时本申请实施例有利于同步第一电子设备和第二电子设备之间的焦点,有利于提升用户在使用第一电子设备和第二电子设备时的用户体验。

Description

焦点同步方法及电子设备
本申请要求于2020年12月31日提交中国专利局、申请号为202011639403.2、申请名称为“焦点同步方法及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及电子技术领域,特别涉及焦点同步方法及电子设备。
背景技术
随着电子技术的迅猛发展,电子设备的使用场景越来越多,大众使用电子设备的种类越来越多。当前人们在不同场景下根据需求在不同的设备之间进行切换,例如用户拥有手机和个人电脑;用户可以使用手机收发消息;使用个人电脑进行办公;当用户想要同时查看不同设备上的信息时,用户可以将不同设备上的显示内容投屏到一个显示设备上。例如用户可以将手机上的内容投屏到电脑上,以便于在更大的显示设备上常看手机上的内容。
发明内容
第一方面,本申请提供一种焦点同步方法,应用于通信***,所述通信***包括第一电子设备和第二电子设备,所述第一电子设备和所述第二电子设备建立有通信连接;该方法包括:所述第二电子设备显示多个窗口,所述多个窗口中的每个窗口显示一个应用程序的用户界面;所述应用程序是安装并运行于所述第一电子设备上的;所述多个窗口中第一窗口显示第一应用程序的第一用户界面,所述第一应用程序的第二用户界面显示于所述第一电子设备上,所述第一用户界面和所述第二用户界面具有相同的用户界面元素;所述多个窗口中的第二窗口为焦点窗口,所述第二窗口显示第二应用程序的用户界面;所述第二应用程序为所述第一电子设备的焦点应用程序;所述第一电子设备检测到第一焦点切换事件,将所述焦点应用程序从所述第二应用程序切换为第三应用程序;所述第二电子设备将第三窗口设置为焦点窗口,所述第三窗口为显示所述第三应用程序的用户界面的窗口。
其中,第一用户界面和第二用户界面具有相同的用户界面元素,可以理解为第一用户界面和第二用户界面具有相同的显示内容;例如,第一用户界面和第二用户界面可以是大小不同,包含的显示内容完全相同的两个用户界面;或者,第一用户界面和第二用户界面的标题栏不同,标题栏之外的其余部分相同;用户可以从第一用户界面和第二用户界面获取到关于第一应用程序的相同信息。
其中,第一焦点切换事件指的是启动/切换到第三应用程序的操作。或者,第一焦点切换事件指的是开启/切换到第三窗口的操作。
其中,第一电子设备检测到第一焦点切换事件可以包括两种情况:第一种情况:第一电子设备通过第二电子设备检测到第一焦点切换事件;第二种情况,第一电子设备不是通过第二电子设备检测到第一焦点切换事件的。对于第一种情况,举例来说,第二电子设备检测到光标对于第三窗口的点击操作,响应于该点击操作,第二电子设备根据点击操作生成焦点切换数据,第二电子设备向第一电子设备发送焦点切换数据,即表示第一电子设备检测到第一焦点切换事件;对于第二种情况发,举例来说,第一电子设备检测到本端的显示屏上的对于 第三应用程序的图标的触控操作,视为第一电子设备检测到第一焦点切换事件。
其中,所述第一电子设备检测到第一焦点切换事件,将所述焦点应用程序从所述第二应用程序切换为第三应用程序,和,所述第二电子设备将第三窗口设置为焦点窗口,所述第三窗口为显示所述第三应用程序的用户界面的窗口;两个步骤在时间上的顺序在本示例中不做限定。
可见,本申请实施例中,第一电子设备和第二电子设备之间可以同步焦点应用程序和焦点窗口,有利于提升用户在切换使用第一电子设备和第二电子设备时的用户体验。
结合第一方面,在一种可能的实现方式中,所述方法还包括:所述焦点应用程序为所述第二应用程序时:所述第二电子设备检测到第一用户输入;所述第二电子设备更新所述第二应用程序的用户界面;所述焦点应用程序为所述第三应用程序时:所述第二电子设备检测到第二用户输入;所述第二电子设备更新所述第三应用程序的用户界面。
其中,用户输入可以是用户输入的文本信息,语音信息,翻页等针对单个应用程序的数据内容/指令。
可见,当第二电子设备检测到用户输入时,响应于用户输入,第二电子设备根据用户输入更新焦点应用程序的用户界面。
结合第一方面,在一种可能的实现方式中,所述将所述焦点应用程序从所述第二应用程序切换为第三应用程序之后,所述方法还包括:所述第一电子设备检测到第二焦点切换事件,将所述焦点应用程序从所述第三应用程序切换为所述第一应用程序;所述第二电子设备将所述第一窗口设置为焦点窗口;所述第二电子设备检测到第三用户输入;所述第二电子设备更新所述第一应用程序的所述第一用户界面;所述第一电子设备更新所述第一应用程序的所述第二用户界面。
其中,第二焦点切换事件指的是启动/切换到第一应用程序的操作。
可见,在焦点应用程序为第一应用程序,且检测到用户输入时,第一电子设备和第二电子设备均可以更新第一应用程序的用户界面;实现第一电子设备和第二电子设备的显示的第一应用程序的用户界面的同步。
结合第一方面,在一种可能的实现方式中,所述第二电子设备检测到第一用户输入之后,所述第二电子设备更新所述第二应用程序的用户界面之前,所述方法还包括:所述第二电子设备向所述第一电子设备发送根据所述第一用户输入生成的第一数据包;所述第一电子设备根据所述第一数据包针对所述第二应用程序的数据进行处理,得到所述第二应用程序的第一显示数据;所述第一电子设备向所述第二电子设备发送所述第一显示数据。
结合第一方面,在一种可能的实现方式中,所述第二电子设备更新所述第二应用程序的用户界面,包括:所述第二电子设备根据所述第一显示数据将所述第二应用程序的用户界面由第三用户界面更新为第四用户界面,所述第三用户界面和所述第四用户界面不同。
其中,第三用户界面和第四用户界面可以是用户界面中显示内容完全不同的两个用户界面;或者,第三用户界面和第四用户界面也可以是用户界面中显示内容部分不同的两个用户界面。
结合第一方面,在一种可能的实现方式中,所述第二电子设备检测到第二用户输入之后,所述第二电子设备更新所述第三应用程序的用户界面之前,所述方法还包括:所述第二电子设备向所述第一电子设备发送根据所述第二用户输入生成的第二数据包;所述第一电子设备根据所述第二数据包针对所述第三应用程序的数据进行处理,得到所述第三应用程序的第二显示数据;所述第一电子设备向所述第二电子设备发送所述第二显示数据。
结合第一方面,在一种可能的实现方式中,所述第二电子设备更新所述第三应用程序的用户界面,包括:所述第二电子设备根据所述第二显示数据将所述第三应用程序的用户界面由第五用户界面更新为第六用户界面,所述第五用户界面和所述第六用户界面不同。
其中,第五用户界面和第六用户界面可以是用户界面中显示内容完全不同的两个用户界面;或者,第五用户界面和第六用户界面也可以是用户界面中显示内容部分不同的两个用户界面。
结合第一方面,在一种可能的实现方式中,所述第一用户输入和所述第二用户输入相同,且所述第一用户输入和所述第二用户输入为针对第一按键的按压操作。
举例来说,第一按键可以是键盘上的ESC键。
结合第一方面,在一种可能的实现方式中,所述将所述焦点应用程序从所述第二应用程序切换为第三应用程序之后,所述第二电子设备将第三窗口设置为焦点窗口之前,所述方法还包括:所述第一电子设备显示所述第三应用程序的用户界面;所述第一电子设备向所述第二电子设备发送第一焦点切换数据,所述焦点切换数据是所述第一电子设备响应于所述第一焦点切换事件生成的。
结合第一方面,在一种可能的实现方式中,所述第一电子设备中存储有参考状态标识和参考身份标识,所述将所述焦点应用程序从所述第二应用程序切换为第三应用程序之后,所述第一电子设备向所述第二电子设备发送第一焦点切换数据之前,所述方法还包括:若所述参考状态标识为第一状态标识,且所述第三应用程序的第一身份标识与所述参考身份标识不同,更新所述参考状态标识为第二状态标识;或者,若所述参考状态标识为第二状态标识;则根据所述第一身份标识生成所述第一焦点切换数据;其中,若所述参考状态标识为所述第一状态标识,则表示在所述第一电子设备切换所述焦点应用程序为所述第三应用程序之前,所述第一电子设备是根据所述第二电子设备发送的第三焦点切换数据将所述第二应用程序设置为所述焦点应用程序的;若所述参考状态标识为所述第二状态标识,则表示在所述第一电子设备切换所述焦点应用程序为所述第三应用程序之前,所述第一电子设备是根据所述第一电子设备检测到的第三焦点切换事件将所述二应用程序设置为所述焦点应用程序的。
其中,第三焦点切换事件指的是启动/切换到第二应用程序的操作。
可见,第一电子设备可以根据参考状态标识和参考身份标识确定出是否执行后续的焦点同步操作;进而避免了第一电子设备和第二电子设备针对同一应用程序重复设置焦点的情况。
结合第一方面,在一种可能的实现方式中,所述第二电子设备将第二窗口设置为焦点窗口之后,所述将所述焦点应用程序从所述第二应用程序切换为第三应用程序之前,所述方法还包括:所述第二电子设备向所述第一电子设备发送第二焦点切换数据,所述第二焦点切换数据是所述第二电子设备响应于所述第一焦点切换事件生成的。
结合第一方面,在一种可能的实现方式中,所述第一电子设备中存储有参考状态标识和参考身份标识,所述将所述焦点应用程序从所述第二应用程序切换为第三应用程序之后,所述方法还包括:更新所述参考状态标识为第一状态标识;更新所述参考身份标识为所述第三应用程序的身份标识;其中,若所述参考状态标识为第一状态标识,则表示所述焦点应用程序是所述第一电子设备根据所述第二电子设备发送的第四焦点切换数据设置的;若所述参考状态标识为第二状态标识,则表示所述焦点应用程序是所述第一电子设备根据所述第一电子设备检测到的第四焦点切换事件设置的。
结合第一方面,在一种可能的实现方式中,所述第二电子设备将第三窗口设置为焦点窗口,包括:所述第二电子设备针对所述第三窗口进行标记。
其中,第二电子设备针对焦点窗口进行标记,使得用户可以从多个窗口中辨别出焦点窗口。
结合第一方面,在一种可能的实现方式中,所述第二电子设备针对所述第三窗口进行标记,包括以下一项或多项:所述第二电子设备设置所述第三窗口的标题栏为高亮状态;所述第二电子设备调整所述第三窗口的透明度。
结合第一方面,在一种可能的实现方式中,所述第一电子设备向所述第二电子设备发送第一焦点切换数据之后;所述方法还包括:所述第二电子设备确定所述多个窗口满足预设条件。
其中,预设条件可以是多个窗口所处的模式为设定的模式,例如模式可以包括全屏模式和非全屏模式;预设条件可以是多个窗口处于非全屏模式。
结合第一方面,在一种可能的实现方式中,所述第一电子设备向所述第二电子设备发送第一焦点切换数据之前,所述方法还包括:所述第一电子设备获取所述多个窗口的状态数据;所述第一电子设备根据所述状态数据确定所述多个窗口满足预设条件。
其中,第二电子设备可以向第一电子设备发送多个窗口的状态数据。
其中,预设条件可以是多个窗口所处的模式为设定的模式,例如模式可以包括全屏模式和非全屏模式;预设条件可以是多个窗口处于非全屏模式。
结合第一方面,在一种可能的实现方式中,其中,所述预设条件包含以下一项或多项:所述多个窗口中不包含全屏窗口;所述多个窗口不处于媒体播放状态。
举例来说,媒体播放状态可以是播放视频的状态,全屏浏览文档的状态等。
结合第一方面,在一种可能的实现方式中,所述第一电子设备检测到第一焦点切换事件之前,所述多个窗口中包括所述第三窗口;所述第三窗口显示所述第三应用程序的用户界面。
第二方面,本申请实施例提供一种焦点同步方法,应用于第一电子设备,所述第一电子设备与第二电子设备建立有通信连接,所述第二电子设备用于显示多个窗口,所述多个窗口中的每个窗口显示一个应用程序的用户界面;所述应用程序是安装并运行于所述第一电子设备上的;所述多个窗口中第一窗口显示第一应用程序的第一用户界面,所述第一应用程序的第二用户界面显示于所述第一电子设备上,所述第一用户界面和所述第二用户界面具有相同的用户界面元素;所述多个窗口中的第二窗口为焦点窗口,所述第二窗口显示第二应用程序的用户界面;所述第二应用程序为所述第一电子设备的焦点应用程序;该方法包括:所述第一电子设备检测到第一焦点切换事件,将所述焦点应用程序从所述第二应用程序切换为第三应用程序。
结合第二方面,在一种可能的实现方式中,所述方法还包括:所述焦点应用程序为所述第二应用程序时:所述第一电子设备接收所述第二电子设备发送的根据第一用户输入生成的第一数据包;所述第一电子设备根据所述第一数据包生成第一显示数据,所述第一电子设备向所述第二电子设备发送所述第一显示数据,所述第一显示数据用于更新所述第二电子设备上的所述第二应用程序的用户界面;所述焦点应用程序为所述第三应用程序时:所述第一电子设备接收所述第二电子设备发送的根据第二用户输入生成的第二数据包;所述第一电子设备根据第二数据包生成第二显示数据;所述第一电子设备向所述第二电子设备发送所述第二显示数据,所述第二显示数据用于更新所述第二电子设备上的所述第二应用程序的用户界面。
结合第二方面,在一种可能的实现方式中,所述将所述焦点应用程序从所述第二应用程序切换为第三应用程序之后,所述方法还包括:所述第一电子设备检测到第二焦点切换事件, 将所述焦点应用程序从所述第三应用程序切换为所述第一应用程序;所述第一电子设备接收到所述第二电子设备发送的包括第三用户输入的数据包,所述第一电子设备根据包括所述第三用户输入的数据包生成第三显示数据;所述第一电子设备更新所述第一应用程序的第一用户界面。
结合第二方面,在一种可能的实现方式中,所述将所述焦点应用程序从所述第二应用程序切换为第三应用程序之后,所述方法还包括:所述第一电子设备显示所述第三应用程序的用户界面;所述第一电子设备向所述第二电子设备发送第一焦点切换数据,所述焦点切换数据是所述第一电子设备响应于所述第一焦点切换事件生成的。
结合第二方面,在一种可能的实现方式中,所述第一电子设备中存储有参考状态标识和参考身份标识,所述将所述焦点应用程序从所述第二应用程序切换为第三应用程序之后,所述第一电子设备向所述第二电子设备发送第一焦点切换数据之前,所述方法还包括:若所述参考状态标识为第一状态标识,且所述第三应用程序的第一身份标识与所述参考身份标识不同,更新所述参考状态标识为第二状态标识;或者,若所述参考状态标识为第二状态标识;则根据所述第一身份标识生成所述第一焦点切换数据;其中,若所述参考状态标识为所述第一状态标识,则表示在所述第一电子设备切换所述焦点应用程序为所述第三应用程序之前,所述第一电子设备是根据所述第二电子设备发送的第三焦点切换数据将所述第二应用程序设置为所述焦点应用程序的;若所述参考状态标识为所述第二状态标识,则表示在所述第一电子设备切换所述焦点应用程序为所述第三应用程序之前,所述第一电子设备是根据所述第一电子设备检测到的第三焦点切换事件将所述二应用程序设置为所述焦点应用程序的。
结合第二方面,在一种可能的实现方式中,所述第一电子设备向所述第二电子设备发送第一焦点切换数据之前,所述方法还包括:所述第一电子设备获取所述多个窗口的状态数据;所述第一电子设备根据所述状态数据确定所述多个窗口满足预设条件。
结合第二方面,在一种可能的实现方式中,其中,所述预设条件包含以下一项或多项:所述多个窗口中不包含全屏窗口;所述多个窗口不处于媒体播放状态。
结合第二方面,在一种可能的实现方式中,所述第一电子设备检测到第一焦点切换事件之前,所述多个窗口中包括所述第三窗口;所述第三窗口显示所述第三应用程序的用户界面。
第三方面,本申请实施例提供一种焦点同步方法,应用于第二电子设备,所述第二电子设备与第一电子设备建立有通信连接,该方法包括:所述第二电子设备显示多个窗口,所述多个窗口中的每个窗口显示一个应用程序的用户界面;所述应用程序是安装并运行于所述第一电子设备上的;所述多个窗口中第一窗口显示第一应用程序的第一用户界面,所述第一应用程序的第二用户界面显示于所述第一电子设备上,所述第一用户界面和所述第二用户界面具有相同的用户界面元素;所述多个窗口中的第二窗口为焦点窗口,所述第二窗口显示第二应用程序的用户界面;所述第二应用程序为所述第一电子设备的焦点应用程序;所述第二电子设备将第三窗口设置为焦点窗口,所述第三窗口为显示第三应用程序的用户界面的窗口。
结合第三方面,在一种可能的实现方式中,其特征在于,所述方法还包括:所述焦点窗口为所述第二窗口时:所述第二电子设备检测到第一用户输入;所述第二电子设备更新所述第二应用程序的用户界面;所述焦点窗口为所述第三窗口时:所述第二电子设备检测到第二用户输入;所述第二电子设备更新所述第三应用程序的用户界面。
结合第三方面,在一种可能的实现方式中,所述第二电子设备检测到第一用户输入之后,所述第二电子设备更新所述第二应用程序的用户界面之前,所述方法还包括:所述第二电子 设备向所述第一电子设备发送根据所述第一用户输入生成的第一数据包;所述第二电子设备接收所述第一电子设备发送的第一显示数据。
结合第三方面,在一种可能的实现方式中,所述第二电子设备更新所述第二应用程序的用户界面,包括:所述第二电子设备根据所述第一显示数据将所述第二应用程序的用户界面由第三用户界面更新为第四用户界面,所述第三用户界面和所述第四用户界面不同。
结合第三方面,在一种可能的实现方式中,所述第二电子设备检测到第二用户输入之后,所述第二电子设备更新所述第三应用程序的用户界面之前,所述方法还包括:所述第二电子设备向所述第一电子设备发送根据所述第二用户输入生成的第二数据包;所述第二电子设备接收所述第一电子设备发送的第二显示数据。
结合第三方面,在一种可能的实现方式中,所述第二电子设备更新所述第三应用程序的用户界面,包括:所述第二电子设备根据所述第二显示数据将所述第三应用程序的用户界面由第五用户界面更新为第六用户界面,所述第五用户界面和所述第六用户界面不同。
结合第三方面,在一种可能的实现方式中,所述第一用户输入和所述第二用户输入相同,且所述第一用户输入和所述第二用户输入为针对第一按键的按压操作。
结合第三方面,在一种可能的实现方式中,所所述第二电子设备将第三窗口设置为焦点窗口之前,所述方法还包括:所述第二电子设备接收所述第一电子设备发送的第一焦点切换数据。
结合第三方面,在一种可能的实现方式中,所述第二电子设备将第二窗口设置为焦点窗口之后,所述方法还包括:所述第二电子设备向所述第一电子设备发送第二焦点切换数据,所述第二焦点切换数据是所述第二电子设备响应于所述第一焦点切换事件生成的。
结合第三方面,在一种可能的实现方式中,所述第二电子设备将第三窗口设置为焦点窗口,包括:所述第二电子设备针对所述第三窗口进行标记。
结合第三方面,在一种可能的实现方式中,所述第二电子设备针对所述第三窗口进行标记,包括以下一项或多项:所述第二电子设备设置所述第三窗口的标题栏为高亮状态;所述第二电子设备调整所述第三窗口的透明度。
结合第三方面,在一种可能的实现方式中,所述第一电子设备向所述第二电子设备发送第一焦点切换数据之后;所述方法还包括:所述第二电子设备确定所述多个窗口满足预设条件。
结合第三方面,在一种可能的实现方式中,其中,所述预设条件包含以下一项或多项:所述多个窗口中不包含全屏窗口;所述多个窗口不处于媒体播放状态。
结合第三方面,在一种可能的实现方式中,所述第二电子设备将第三窗口设置为焦点窗口之前,所述多个窗口中包括所述第三窗口;所述第三窗口显示所述第三应用程序的用户界面。
第四方面,本申请实施例提供一种电子设备,所述电子设备包括:一个或多个处理器和存储器;所述存储器与所述一个或多个处理器耦合,所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,所述一个或多个处理器调用所述计算机指令以使得所述电子设备执行如第二方面及其任一种可能的实现方式,或第三方面及其任一种可能的实现方式。
第五方面,本申请实施例提供一种通信***,所述通信***包括第一电子设备和第二电 子设备,其特征在于,所述第一电子设备和/或所述第二电子设备包括:一个或多个处理器和存储器;所述存储器与所述一个或多个处理器耦合,所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,所述一个或多个处理器调用所述计算机指令以使得所述第一电子设备和/或所述第二电子设备执行如第一方面及其任一种可能的实现方式。
第六方面中,提供一种芯片***,所述芯片***应用于电子设备,所述芯片***包括一个或多个处理器,所述处理器用于调用计算机指令以使得所述电子设备执行如第一方面及其任一种可能的实现方式,或第二方面及其任一种可能的实现方式,或第三方面及其任一种可能的实现方式。
第七方面,本申请提供一种计算机程序产品,当所述计算机程序产品在电子设备上运行时,使得所述电子设备执行如第一方面及其任一种可能的实现方式,或第二方面及其任一种可能的实现方式,或第三方面及其任一种可能的实现方式。
第八方面,本申请提供一种计算机可读存储介质,该计算机可读存储介质包括计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行如第一方面及其任一种可能的实现方式,或第二方面及其任一种可能的实现方式,或第三方面及其任一种可能的实现方式。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对本申请实施例中所需要使用的附图进行说明。
图1A至图1F是本申请实施例提供的一组电子设备的状态示意图;
图2是本申请实施例提供的一种焦点同步方法的流程示意图;
图3是本申请实施例提供的一种焦点同步方法的部分步骤的流程示意图;
图4A至4B是本申请实施例提供的一组电子设备的状态示意图;
图5A至5C是本申请实施例提供的一组电子设备的状态示意图;
图6A至6D是本申请实施例提供的一组电子设备的状态示意图;
图7是本申请实施例提供的一种焦点同步方法的流程示意图;
图8A至8C是本申请实施例提供的一组电子设备的状态示意图;
图9A至9C是本申请实施例提供的一组电子设备的状态示意图;
图10是本申请实施例提供的一种电子设备100的结构示意图;
图11是本申请实施例提供的一种电子设备100的软件结构框图。
具体实施方式
本申请以下实施例中所使用的术语只是为了描述特定实施例的目的,而并非旨在作为对本申请的限制。如在本申请的说明书和所附权利要求书中所使用的那样,单数表达形式“一个”、“一种”、“所述”、“上述”、“该”和“这一”旨在也包括复数表达形式,除非其上下文中明确地有相反指示。还应当理解,本申请中使用的术语“和/或”是指并包含一个或多个所列出项目的任何或所有可能组合。
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为暗示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征,在本申请实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。
在一些实施例中,电子设备可以同时启动多个应用程序,并且可以打开多个窗口,在多个窗口中的每个窗口中显示一个应用程序的用户界面。在电子设备打开多个窗口的情况下,电子设备可以设置其中一个窗口为焦点窗口,并设置该焦点窗口对应的应用程序为焦点应用程序(例如,焦点窗口中显示了应用程序F1的用户界面,则焦点窗口对应的应用程序为应用程序F1。);当电子设备检测到针对电子设备的操作时(例如电子设备与键盘和鼠标通信连接,用户可以按压键盘上的翻页键实现翻页功能,或者可以转动鼠标的滑轮实现翻页功能);电子设备根据操作针对焦点应用程序的数据进行处理,进而满足用户的使用需求。具有多任务处理能力的操作***(例如微软视窗(Microsoft TM Windows)操作***,安卓(Android TM操作***等),在开启多个窗口/多个应用程序的情况下,均具有设置焦点窗口/焦点应用程序的功能特性。
下面是焦点应用程序和焦点窗口的解释:焦点应用程序在不同的操作***中可以有不同的定义。例如在安卓操作***中可以是焦点应用程序(Focused application)。举例来说,焦点应用程序可以有如下作用:当电子设备运行多个应用程序的情况下,电子设备可以设置其中一个应用程序为焦点应用程序,进而在电子设备检测到满足条件的操作(可以是用户触控显示屏上的可触控区域,用户通过键盘、鼠标输入的操作指令等)时,根据满足条件的操作针对焦点应用程序的数据进行处理。可见,在电子设备运行多个应用程序的情况下,设置焦点应用程序的方法可以使电子设备准确的确定出需要执行数据处理的应用程序,进而避免数据处理对象的错误。
焦点窗口在不同***中可以有不同的定义,例如在微软视窗(Microsoft Windows)***中焦点窗口为活动窗口(Active window),活动窗口拥有焦点。焦点窗口可以有如下作用:电子设备可以根据满足预设条件的操作和焦点窗口显示的内容确定出待处理的数据,进而针对待处理的数据执行数据处理操作。本申请实施例中,电子设备设置的焦点窗口和非焦点窗口呈现的显示效果不同,使得用户可以辨别出焦点窗口和非焦点窗口;例如电子设备可以改变焦点窗口的透明度,以区别于非焦点窗口;或者,电子设备可以设置焦点窗口的标题栏为高亮状态,或者,电子设备改变焦点窗口的标题栏中字体的大小,粗细,颜色值等;使得用户在浏览电子设备上的多个窗口时可以从多个窗口中确定出焦点窗口。
在一些实施例,电子设备100与电子设备200通信连接;电子设备200的显示界面大于电子设备100的显示界面。显示界面指的是显示屏上全部可显示区域。电子设备100在同一时刻可以运行至少一个应用程序;电子设备100在与电子设备200通信连接的情况下向电子设备200发送显示数据;电子设备200根据显示数据在电子设备200的显示屏上显示至少一个应用程序的窗口,使得用户可以在电子设备200上查看和操作至少一个应用程序,实现电子设备之间的联动。用户可以同时使用电子设备100和电子设备200查看和操作至少一个应用程序,因此提升了用户查看和操作至少一个应用程序时的效率,提升了用户体验。
用户在电子设备200上针对至少一个应用程序中的目标应用程序执行操作时,电子设备200根据用户的操作生成响应数据,之后向电子设备100发送响应数据,电子设备100根据响应数据针对目标应用程序执行对应的操作。
当电子设备100同时运行多个应用程序时,电子设备200根据电子设备100的显示数据显示多个应用程序对应的多个窗口;电子设备100在本端显示界面上显示的窗口为窗口W1,窗口W1显示应用程序F1的用户界面,应用程序F1为电子设备100设置的焦点应用程序。电子设备200设置用户最近一次操作过的窗口W2为焦点窗口,窗口W2显示应用程序F2的用户界面。若应用程序F1和应用程序F2为同一应用程序,用户可以在电子设备100和电子 设备200之间实现无缝的操作切换,电子设备100根据用户在电子设备100和电子设备200上的操作针对焦点应用程序进行处理,进而满足用户的需求。但在应用程序F1和应用程序F2不是同一应用程序的情况下,则可能存在用户在电子设备200上执行了操作,且该操作为针对窗口W2中的应用程序F2的操作;电子设备200根据该操作生成响应数据,之后向电子设备100发送响应数据;由于电子设备100设置的焦点应用程序为应用程序F1,因此,可能会出现电子设备100根据响应数据针对应用程序F1执行了数据处理的操作;导致处理目标错误的情况。
在一些实施例中,多个应用程序可以始终运行在电子设备100上,电子设备200仅用于显示多个应用程序的窗口。
举例来说,请参阅图1A,图1A包括电子设备100和电子设备200。如图所示,电子设备100与电子设备200通信连接。电子设备100的显示屏上包括窗口101。电子设备100向电子设备200实时发送显示数据;电子设备200根据显示数据显示了3个窗口;3个窗口分别是窗口201,窗口202和窗口203;窗口201显示计算器应用程序的用户界面;窗口202显示图库应用程序的用户界面;窗口203为主窗口,与窗口101的显示内容相同,即窗口203显示的用户界面和窗口101显示的用户界面具有相同的用户界面元素;例如图1A中窗口203和窗口101中均包括:日历,时钟,华为视频等应用程序的图标。需要说明的是,主窗口指的是电子设备200根据电子设备100发送的显示数据显示的多个窗口中的一个窗口;主窗口203的部分/全部显示内容与电子设备100的窗口101的部分/全部显示内容相同。需要说明的是,电子设备200显示的多个窗口的标题栏中可以包括应用程序的名称。
图1A中窗口202的标题栏2021为高亮状态,即电子设备200设置的焦点窗口为窗口202;表明用户在电子设备200上最近一次的操作为针对图库对应的窗口202的操作。在如图1A所示的情况下,请参阅图1B,电子设备100检测到用户针对窗口101中的信息应用程序的图标1011的触控操作(需要说明的是,用户可以通过语音,手势等交互方式实现与触控操作同样的效果),电子设备100响应于针对信息应用程序的图标1011触控操作,打开信息应用程序,并更新窗口101的用户界面为信息应用程序的用户界面;同时由于电子设备200可以实时接收电子设备100发送的显示数据,电子设备200根据显示数据更新窗口203的用户界面为信息应用程序的用户界面。具体的,请参阅图1C,图1C为更新窗口101和窗口203的用户界面为信息应用程序的用户界面后的示意图。需要说明的是,图1B中在电子设备100检测到针对窗口101中的信息应用程序的图标1011的触控操作之前,信息应用程序已经处于后台运行状态,且后台记录信息应用程序的用户界面为与联系人“Lisa”的会话界面(具体可以是:在图1A所示的情况之前,电子设备100已经启动了信息应用程序,且从与联系人“Lisa”的会话界面直接返回了图1A中窗口101所示的主窗口的用户界面。),因此,在电子设备100检测到针对信息应用程序的图标1011触控操作之后,在窗口101中显示了与联系人“Lisa”的会话界面。
图1C所示的情况下,由于用户最近一次操作是在电子设备100上执行的针对信息应用程序的操作,因此电子设备100设置焦点应用程序为信息应用程序。此时,电子设备200的焦点窗口仍为窗口202,即为图库应用程序对应的窗口。
如图1D所示,电子设备200还可以与键盘204和鼠标205通信连接,用户可以通过键盘204和鼠标205实现对电子设备200的操控;窗口201,窗口202和窗口203是电子设备200根据电子设备100的显示数据生成的窗口,在焦点窗口为窗口201,窗口202和窗口203中的一个窗口的情况下,电子设备200可以定义键盘204中的ESC键2041的功能为“返回 上一级”;即在电子设备200上的ESC键2041被触发的情况下,电子设备200显示用户界面a1的上一级用户界面a2;其中用户界面a1为ESC键2041被触发前焦点窗口显示的用户界面。
在用户执行完成图1B所示的触控操作之后,得到图1C所示的情况;若此时用户使用的电子设备由电子设备100切换回电子设备200;由于当前窗口202的标题栏2021为高亮状态,即当前窗口202为电子设备200的焦点窗口。从键盘204上输入的针对电子设备200上单个窗口的操作(如输入信息,删除信息,返回窗口的用户界面的上一级),用户可视为是针对焦点窗口的操作。当前图库应用程序的用户界面如图1C中窗口202所示,若用户想要将图库应用程序的用户界面返回上一级,则如图1E所示,用户可能直接点击键盘204中的ESC键2041;当用户点击ESC键2041后,请参阅图1F,电子设备将窗口101和窗口203显示的信息应用程序的用户界面返回了上一级,即窗口101和窗口203显示了信息应用程序的信息列表的用户界面;而并未将图库应用程序的用户界面返回上一级。
可见,上述过程中,在电子设备100的焦点应用程序和电子设备200的焦点窗口不不属于同一应用程序的情况下,电子设备100可能针对错误的应用程序执行数据处理操作,影响用户体验。
下面实施例介绍本申请实施例提供的一种焦点同步方法。该方法应用于通信***,通信***包括电子设备100(本申请实施例中也可以被称为第一电子设备)和电子设备200(本申请实施例中也可以被称为第二电子设备);电子设备100和电子设备200通信连接。电子设备100与电子设备200通信连接的情况下,电子设备100向电子设备200发送显示数据,电子设备200根据显示数据显示多个窗口。多个窗口中的每个窗口显示一个应用程序的用户界面;应用程序是安装并运行于电子设备100上的;多个窗口中窗口203(本申请实施例中也可以被称为第一窗口)显示第一应用程序的第一用户界面,第一应用程序的第二用户界面显示于电子设备100上,第一用户界面和第二用户界面具有相同的用户界面元素。如图2所示,该方法可以包括:
S101,电子设备100检测到焦点切换事件I1(本申请实施例中也可以被称为第一焦点切换事件),响应于焦点切换事件I1,设置焦点应用程序为应用程序F2(本申请实施例中也可以被称为第三应用程序)。
其中,电子设备100在检测到焦点切换事件I1之前,电子设备的焦点应用程序为应用程序F1(本申请实施例中也可以被称为第二应用程序)。
其中,焦点切换事件I1为启动/切换到应用程序F2的操作;电子设备100可以设置最近一次启动/切换的应用程序为焦点应用程序,本示例中,由于最近一次的焦点切换事件I1用于启动/切换到应用程序F2,因此电子设备100将焦点应用程序由应用程序F1切换至应用程序F2。其中,焦点切换事件I1的表现形式可以是触控操作,语音指令,外设设备输入(例如通过键盘和鼠标执行的操作)。
S102,电子设备100根据应用程序F2的身份标识生成焦点切换数据。
具体的,身份标识可以是安卓操作***中的任务标识(Task ID)。
可选的,在执行步骤S102之前,还可以包括:
S1021:判断应用程序F2的数据是否满足合法性,在应用程序的数据的满足合法性的情况下执行步骤S102。
其中,执行合法性的判断条件可以是预设置的,具体可以根据本申请实施例应用的具体 场景设置合法性的判断条件;例如,电子设备100可以预设置数据类型和数据格式;则在应用程序F2的数据格式和数据类型为预设置的数据类型和数据格式的情况下,确定应用程序F2的数据满足合法性;否则,确定应用程序F2的数据不满足合法性。
其中,在应用程序的数据和不满足合法性的情况下不执行后续步骤。
其中,电子设备100运行的***可以是安卓(Android TM)操作***。安卓操作***中包括应用程序框架层和应用程序层。电子设备100可以调用应用程序框架层和应用程序层生成焦点切换数据。
电子设备100中的应用程序框架层可以执行焦点应用程序的切换操作。应用程序框架层可以监听焦点应用程序的切换操作,并在监听到焦点应用程序的切换操作后执行步骤s11至s14的操作。如图3所示,应用程序框架层包括:任务管理模块,显示内容模块,第一通信模块。应用程序层包括:第二通信模块和数据处理模块。第一电子设备中存储有参考状态标识和参考身份标识;其中,参考身份标识可以是根据应用程序的身份标识设置的;如图3所示,步骤S101,步骤S1021和步骤S102可以具体包括步骤s11~s13。
s11:响应于焦点切换事件I1,任务管理模块设置焦点应用程序为应用程序F2。
s12:任务管理模块调用显示内容模块,显示内容模块获取焦点应用程序的身份标识。
s131:参考状态标识表示第一状态标识,且焦点应用程序的身份标识与参考身份标识相同时,显示内容模块更新参考状态标识为第二状态标识;参考身份标识为最近一次第二电子设备向第一电子设备发送的焦点切换数据中包括的身份标识;即:第一电子设备最近一次根据第二电子设备发送的焦点切换数据设置的焦点应用程序的身份标识与参考身份标识相同。
其中,显示内容模块可以读写状态信息。当参考状态标识表示第一状态标识时,表示当前焦点应用程序为根据电子设备200传输的数据设置的;当参考状态标识表示第二状态标识时,表示当前焦点应用程序为电子设备100根据本端检测到的、用于启动/切换应用程序的操作设置的。
举例来说,如图8A所示,电子设备100检测到用户通过鼠标205控制光标208对于窗口203的点击操作,之后,如图8B所示,电子设备200设置窗口203为焦点窗口,此时,窗口203和窗口101均显示信息应用程序的用户界面;电子设备100设置的焦点应用程序为信息应用程序;由于电子设备100是根据电子设备200发送的焦点切换数据(即是根据电子设备200检测到光标208对于窗口203的点击操作)将信息应用程序设置为焦点应用程序的,因此,电子设备100设置参考状态标识为第一状态标识;同时,电子设备更新参考身份标识为信息应用程序的身份标识。
之后,请参阅图8C,电子设备100检测到针对信息应用程序的用户界面的触控操作(相当于步骤S101中的焦点切换事件I1);由于此时参考状态标识为第一状态标识且参考身份标识已经是信息应用程序的身份标识,则电子设备100更新参考状态标识为第二状态标识。可见,焦点切换事件I1为针对信息应用程序的操作,且信息应用程序对应的窗口203已经是焦点窗口;此时电子设备100不执行s14以及后续步骤,即电子设备100不向电子设备200发送焦点切换数据,避免电子设备100和电子设备200之间对焦点进行重复设置,避免了资源的浪费。
s132:参考状态标识表示第一状态标识,且焦点应用程序的身份标识与参考身份标识不同时,显示内容模块更新参考状态标识为第二状态标识,并执行步骤s14。
举例来说,请参阅图1C,电子设备200设置的焦点窗口为窗口202,窗口202显示的是 图库应用程序的用户界面;因此,电子设备100设置的焦点应用程序为图库应用程序。同时,图1C中窗口101和窗口203显示的是信息应用程序的用户界面。此时,参考状态标识为第一状态标识,参考身份标识为图库应用程序的身份标识。
请参阅图4A,电子设备100检测到针对信息应用程序的用户界面的触控操作(相当于步骤S101中的焦点切换事件I1);由于此时参考状态标识为第一状态标识,且参考身份标识为图库应用程序的身份标识,与信息应用程序的身份标识不同;因此,表明最近一次焦点应用程序为根据电子设备200发送的焦点切换数据设置的,且图库应用程序与信息应用程序不同,因此,执行步骤s14以及后续步骤,使得电子设备200将焦点窗口更新为信息应用程序对应的窗口203。
s133:参考状态标识表示第二状态标识时;执行步骤s14。
由于参考状态标识为第二状态标识时,表示电子设备100的焦点应用程序为根据本端检测到的、用于启动/切换应用程序的操作设置的,且电子设备200上的焦点窗口也是根据电子设备100发送的焦点切换数据设置的;因此,当电子设备100的焦点应用程序切换时,执行s14以及后续步骤,使得电子设备200更新焦点窗口为当前电子设备100上的焦点应用程序对应的窗口。
可见步骤s31~s133在有效的同步焦点窗口和焦点应用程序的同时,避免了电子设备100和电子设备200在焦点窗口和焦点应用程序已经同步的情况下进行循环设置,避免了资源的浪费。
s14:显示内容模块调用第一通信模块,第一通信模块向第二通信模块发送信息数据d1,信息数据d1中包括焦点应用程序的身份标识。可选的,信息数据d1中还可以包括参考状态标识。
s15:第二通信模块向数据处理模块发送信息数据d1,数据处理模块对信息数据d1进行处理,得到信息数据d2。
其中,数据处理模块对信息数据d1进行处理得到信息数据d2的过程可以包括:针对信息数据d1的数据格式进行转换,得到信息数据d2;其中,信息数据d1的数据格式为电子设备100中可以读写的数据格式,信息数据d2的数据格式为电子设备200可以读写的数据格式。
S16:数据处理模块对信息数据d2进行封装,得到焦点切换数据。
S103,电子设备100向电子设备200发送焦点切换数据。
S104,电子设备200根据焦点切换数据设置应用程序F2对应的窗口W2为焦点窗口。
本申请实施例中,窗口W2也可以被称为第三窗口。
具体的,电子设备200可以解析焦点切换数据,得到应用程序F2的身份标识,并根据应用程序F2的身份标识确定出应用程序F2对应的窗口W2;之后,设置窗口W2为焦点窗口。其中,电子设备200在设置窗口W2为焦点窗口之后,还可以包括:电子设备200对设置窗口W2为焦点窗口的场景进行判断;本示例中,电子设备200判断出在电子设备200是根据电子设备100发送的焦点切换数据设置窗口W2为焦点窗口的情况下,电子设备200不执行后续操作。电子设备200对设置窗口W2为焦点窗口的场景进行判断的另一种情况:即在电子设备200是根据本端检测到的操作设置焦点窗口W2的情况下时(此时设置窗口W2为焦点窗口相当于步骤S201),执行图7所示实施例中的步骤S202~S204。
在一些实施例中,电子设备200在将窗口W2设置为焦点窗口,还可以包括:电子设备200针对焦点窗口进行标记,使得用户可以通过窗口W2的标记确定出窗口W2为焦点窗口。 具体的,针对焦点窗口进行标记可以包括:(1)设置焦点窗口的标题栏为高亮状态。(2)调整焦点窗口的透明度。
举例来说,请参阅图1C,图1C为执行步骤S101之前电子设备100和电子设备200的状态,窗口202的标题栏2021为高亮状态,表示此时电子设备200设置的焦点窗口为窗口202;电子设备200中窗口203为主窗口。请参阅图4A,图4A为电子设备100检测到触控操作,该触控操作用于从与联系人“Lisa”的会话界面返回到信息列表(即返回窗口101中的用户界面的上一级)的界面,本示例中的触控操作是步骤S101中焦点切换事件I1的一种具体表现形式;之后,电子设备100和电子设备200执行S101至S104的步骤,电子设备100和电子设备200执行完成S101至S104的步骤之后,具体状态如图4B所示。图4B中窗口203的标题栏2031为高亮状态,表示此时焦点窗口为窗口203;且图4B中窗口203和窗口101中显示的用户界面为图1C中窗口203和窗口101显示的用户界面的上一级,即由与联系人“Lisa”的会话界面返回到了信息列表的界面。
在一些实施例中,电子设备200将窗口W2设置为焦点窗口,还可以包括:电子设备200将焦点窗口置于显示界面中的最顶层,使得显示界面中的其他窗口无法遮盖焦点窗口。
举例来说,请参阅图5A,图5A为执行步骤S101之前电子设备100和电子设备200的状态,可见窗口206的标题栏2061为高亮状态,表示此时电子设备200设置的焦点窗口为窗口206;图5A中还包括显示界面207,显示界面207表示电子设备200的全部可显示区域;由图5A可以看出,窗口206位于显示界面207的顶层,窗口206遮盖了窗口201的部分和窗口203的部分;窗口203为电子设备200的主窗口。请参阅图5B,图5B为电子设备100检测到触控操作,该触控操作用于从与联系人“Lisa”的会话界面返回到信息列表(即返回窗口101中的用户界面的上一级)的界面,本示例中的触控操作是步骤S101中焦点切换事件I1的一种具体表现形式;之后,电子设备100和电子设备200执行S101至S104的步骤,电子设备100和电子设备200执行完成S101至S104的步骤之后,具体状态如图5C所示。可见,图5C中,电子设备200将窗口203的窗口至于显示界面207的顶层,使得电子设备200可以完整的显示窗口203;同时,电子设备200设置窗口203的标题栏2031为高亮状态,表示窗口203为电子设备200的焦点窗口。
需要说明的是,窗口206可以是根据电子设备100发送的显示数据生成的窗口,也可以是电子设备200显示的安装在电子设备200上的应用程序对应的窗口,此处不作限定。
在一些实施例中,如图6A所示,电子设备200还可以与键盘204和鼠标205通信连接。键盘204中包括ESC键2041,ESC键2041的功能为“返回上一级”。在完成步骤S104之后,电子设备100和电子设备200的状态可以如图5C所示;在步骤S104之后,还可以包括:如图6A所示,电子设备200检测到针对ESC键2041的按压操作;之后,电子设备200向电子设备100发送根据该按压操作生成的数据,电子设备100根据接收到的数据针对信息应用程序的数据进行处理,得到显示数据;并向电子设备200发送该显示数据;电子设备100和电子设备200根据该显示数据显示如图6B所示的用户界面,在窗口101和窗口203的用户界面中显示“再按一次退出”的标识;以提示用户再按一次ESC键可以退出信息应用程序;“再按一次退出”的标识具体为窗口101中的1012和窗口203中的2032。本示例中,在步骤S104之后,窗口203和窗口101显示的是信息应用程序中的信息列表;由于信息列表已经是信息应用程序最上一级的用户界面,无法进一步执行返回上一级,因此,本示例中窗口101和窗口203显示“再按一次退出”的标识。电子设备100中的焦点应用程序显示的用户界面为最上一级的用户界面的情况时,连续按两次ESC键2041可以退出焦点应用程序。
在一些实施例中,步骤S101中焦点切换事件I1用于打开应用程序F2,若应用程序F2的用户界面在用户执行焦点切换事件I1之前已经显示在电子设备200中的子窗口b1中,则在步骤S104中,电子设备200在主窗口显示应用程序F2的用户界面,并设置主窗口为焦点窗口;同时电子设备200可以关闭子窗口b1;子窗口表示多个窗口中除主窗口之外的窗口;子窗口b1为电子设备200打开的子窗口中的一个子窗口。举例来说,在步骤S101之前,电子设备100和电子设备200的状态如图1A所示,可见,窗口203为电子设备200的主窗口;电子设备200中的窗口202显示的用户界面为图库应用程序的用户界面;请参阅图6C,步骤S101中的第一操为针对窗口101中的图库应用程序的图标1013的触控操作,即焦点切换事件I1用于打开图库应用程序,由于图库应用程序的用户界面已经在窗口202中进行显示,因此,如图6D所示,电子设备100在窗口101中显示图库应用程序的用户界面,电子设备200在窗口203中显示图库应用程序的用户界面并设置窗口203为焦点窗口;同时,电子设备200关闭窗口202。
下面实施例介绍本申请实施例提供的另一种焦点同步方法。该方法应用于通信***,通信***包括电子设备100和电子设备200;电子设备100和电子设备200通信连接。电子设备100与电子设备200通信连接的情况下,电子设备100向电子设备200发送显示数据,电子设备200根据显示数据显示多个窗口。如图7所示,该方法可以包括:
S201,电子设备200检测到焦点切换事件I2(本申请实施例中也可以被称为第一焦点切换事件),响应于焦点切换事件I2,设置焦点窗口为窗口W4(本申请实施例中也可以被称为第三窗口)。
其中,电子设备200将窗口W4设置为焦点窗口,可以包括:电子设备200针对焦点窗口进行标记,使得用户可以通过窗口W4的标记确定出窗口W4为焦点窗口。具体的,针对焦点窗口进行标记可以包括:(1)设置焦点窗口的标题栏为高亮状态。(2)调整焦点窗口的透明度。
其中,电子设备200将窗口W4设置为焦点窗口,还可以包括:电子设备200将焦点窗口置于显示界面中的最顶层,使得显示界面中的其他窗口无法遮盖焦点窗口。
其中,电子设备200在检测到焦点切换事件I2之前,电子设备200设置的焦点窗口为窗口W3(本申请实施例中也可以被称为第二窗口)。
其中,焦点切换事件I2是用于开启/切换到应用程序F4(本申请实施例中也可以被称为第三应用程序)对应的窗口W4的操作;电子设备200可以设置最近一次开启/切换到的窗口为焦点窗口,本示例中,由于最近一次的焦点切换事件I2为开启/切换到窗口W4,因此电子设备200将焦点窗口由窗口W3切换至窗口W4。其中,焦点切换事件I2的表现形式可以是触控操作,语音指令,外设设备输入(例如通过键盘和鼠标执行的操作)。
举例来说,在执行步骤S201之前电子设备100和电子设备200的状态可以如图1C所示;之后,如图8A所示,电子设备200检测到通过鼠标205控制光标208对于窗口203的点击操作;之后,如图8B所示,电子设备200设置窗口203为焦点窗口。
S202,电子设备200根据窗口W4的身份标识生成焦点切换数据。
具体的,电子设备200在检测到用于开启/切换到应用程序F4对应的窗口W4的操作之后,电子设备200首先确定窗口W4的身份标识;之后,电子设备200根据窗口W4的身份标识生成焦点切换数据。
S203,电子设备200向电子设备100发送焦点切换数据。
S204,电子设备100根据焦点切换数据设置窗口W4对应的应用程序F4为焦点应用程序。
其中,电子设备100运行的***可以是安卓(Android TM)操作***。安卓操作***中包括应用程序框架层和应用程序层。具体的,电子设备100在接收到焦点切换数据之后,首先由应用程序层对焦点切换数据进行处理,得到处理过后的焦点切换数据;需要说明的是,处理之前的焦点切换数据的数据格式为电子设备200可以读写的数据格式;处理之后的焦点切换数据的数据格式为电子设备100可以读写的数据格式。之后,应用程序层将处理后的焦点切换数据传送至应用程序框架层;应用程序框架层根据处理后的焦点切换数据设置窗口W4对应的应用程序F4为焦点应用程序。
其中,在执行完成步骤S204之后,还包括:电子设备100更新状态信息为第一状态标识。同时,更新状态信息中的身份标识为应用程序F4的身份标识。需要说明的是,状态信息处于不同的状态标识时的解释请参阅步骤s131,此处不再赘述。
在一些实施例中,在执行完成步骤S103后,电子设备200不执行步骤S104;具体的,电子设备200检测到存在子窗口处于预设状态的情况下不执行步骤S104;预设状态可以是子窗口为全屏窗口和/或子窗口处于视频播放状态;在电子设备200根据电子设备100的显示数据开启多个窗口的情况下,子窗口表示多个窗口中除主窗口之外的窗口。举例来说,请参阅图9A,图9A为执行步骤S101之前电子设备100和电子设备200的状态示意图;可见,电子设备200中的窗口202的标题栏2021为高亮状态,即表示窗口202为焦点窗口;且窗口202为全屏窗口,窗口202处于播放视频的状态。之后,如图9B所示,电子设备100检测到用户针对窗口101中的信息应用程序的图标的触控操作;之后,电子设备100和电子设备200执行骤S101至S103;之后,电子设备200检测到存在窗口202处于全屏状态,且窗口202处于播放视频的状态,即存在子窗口处于预设状态;因此,不执行步骤S104;因此,执行完成步骤S103之后,电子设备100和电子设备200的状态的如图9C所示。
图10示出了电子设备100的结构示意图,需要说明的是本申请实施例中电子设备200可以与电子设备100具有相同的结构。
电子设备100可以是手机、平板电脑、桌面型计算机、膝上型计算机、手持计算机、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本,以及蜂窝电话、个人数字助理(personal digital assistant,PDA)、增强现实(augmented reality,AR)设备、虚拟现实(virtual reality,VR)设备、人工智能(artificial intelligence,AI)设备、可穿戴式设备、车载设备、智能家居设备和/或智慧城市设备,本申请实施例对该电子设备的具体类型不作特殊限制。
电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。
可以理解的是,本发明实施例示意的结构并不构成对电子设备100的具体限定。在本申 请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了***的效率。
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现电子设备100的触摸功能。
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等***器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现电子设备100 的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现电子设备100的显示功能。
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与***设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。
可以理解的是,本发明实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星***(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模 块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯***(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位***(global positioning system,GPS),全球导航卫星***(global navigation satellite system,GLONASS),北斗卫星导航***(beidou navigation satellite system,BDS),准天顶卫星***(quasi-zenith satellite system,QZSS)和/或星基增强***(satellite based augmentation systems,SBAS)。
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。
内部存储器121可以包括一个或多个随机存取存储器(random access memory,RAM)和一个或多个非易失性存储器(non-volatile memory,NVM)。
随机存取存储器可以包括静态随机存储器(static random-access memory,SRAM)、动态随机存储器(dynamic random access memory,DRAM)、同步动态随机存储器(synchronous dynamic random access memory,SDRAM)、双倍速率同步动态随机存取存储器(double data rate synchronous dynamic random access memory,DDR SDRAM,例如第五代DDR SDRAM一般称为DDR5SDRAM)等;
非易失性存储器可以包括磁盘存储器件、快闪存储器(flash memory)。
快闪存储器按照运作原理划分可以包括NOR FLASH、NAND FLASH、3D NAND FLASH等,按照存储单元电位阶数划分可以包括单阶存储单元(single-level cell,SLC)、多阶存储单元(multi-level cell,MLC)、三阶储存单元(triple-level cell,TLC)、四阶储存单元(quad-level cell,QLC)等,按照存储规范划分可以包括通用闪存存储(英文:universal flash storage,UFS)、嵌入式多媒体存储卡(embedded multi media Card,eMMC)等。
随机存取存储器可以由处理器110直接进行读写,可以用于存储操作***或其他正在运行中的程序的可执行程序(例如机器指令),还可以用于存储用户及应用程序的数据等。
非易失性存储器也可以存储可执行程序和存储用户及应用程序的数据等,可以提前加载到随机存取存储器中,用于处理器110直接进行读写。
外部存储器接口120可以用于连接外部的非易失性存储器,实现扩展电子设备100的存储能力。外部的非易失性存储器通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部的非易失性存储器中。
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器170A收听音乐,或收听免提通话。
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备100可以设置至少一个麦克风170C。在另一些实施例中,电子设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm 的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A
的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备100根据压力传感器180A检测所述触摸操作强度。电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。
陀螺仪传感器180B可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测电子设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。
气压传感器180C用于测量气压。在一些实施例中,电子设备100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。
磁传感器180D包括霍尔传感器。电子设备100可以利用磁传感器180D检测翻盖皮套的开合。在一些实施例中,当电子设备100是翻盖机时,电子设备100可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。
加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。
距离传感器180F,用于测量距离。电子设备100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备100可以利用距离传感器180F测距以实现快速对焦。
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。电子设备100通过发光二极管向外发射红外光。电子设备100使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定电子设备100附近有物体。当检测到不充分的反射光时,电子设备100可以确定电子设备100附近没有物体。电子设备100可以利用接近光传感器180G检测用户手持电子设备100贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。
环境光传感器180L用于感知环境光亮度。电子设备100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测电子设备100是否在口袋里,以防误触。
指纹传感器180H用于采集指纹。电子设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。
温度传感器180J用于检测温度。在一些实施例中,电子设备100利用温度传感器180J 检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,电子设备100执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,电子设备100对电池142加热,以避免低温导致电子设备100异常关机。在其他一些实施例中,当温度低于又一阈值时,电子设备100对电池142的输出电压执行升压,以避免低温导致的异常关机。
触摸传感器180K,也称“触控器件”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器180M也可以设置于耳机中,结合成骨传导耳机。音频模块170可以基于所述骨传导传感器180M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器180M获取的血压跳动信号解析心率信息,实现心率检测功能。
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。
SIM卡接口195用于连接SIM卡。SIM卡可以通过***SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时***多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。电子设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,电子设备100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备100中,不能和电子设备100分离。
电子设备100的软件***可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本发明实施例以分层架构的Android***为例,示例性说明电子设备100的软件结构。
图11是本发明实施例的电子设备100的软件结构框图。
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android***分为四层,从上至下分别为应用程序层,应用程 序框架层,安卓运行时(Android runtime)和***库,以及内核层。
应用程序层可以包括一系列应用程序包。
如图11所示,应用程序层可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等应用程序。
在一些实施例中,应用程序层可以与应用程序框架层进行跨进程通信。应用程序层可以将从电子设备200接收到的数据转换成应用程序框架层可以读写的数据;应用程序层可以通过跨进程通信接收应用程序框架层发送的数据,将接收到的应用程序框架层的数据转换为电子设备200可读写的数据。具体的,应用程序层可以执行本申请实施例图3所示的步骤s15和s16。
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。
如图11所示,应用程序框架层可以包括窗口管理器,内容提供器,视图***,电话管理器,资源管理器,通知管理器等。
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。
视图***包括可视控件,例如显示文字的控件,显示图片的控件等。视图***可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。
电话管理器用于提供电子设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在***顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。
在一些实施例中,应用程序框架层可以调用设置焦点应用程序,以及在监听到焦点应用程序发生变换的情况下协同应用程序层生成焦点切换数据。具体的,应用程序框架层可以执行本申请实施例中:图2所示的步骤S101,S102,图3所示的步骤s11,s12,s131,s132,s133,和s14,图7所示的步骤S204。
Android Runtime包括核心库和虚拟机。Android runtime负责安卓***的调度和管理。
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。
***库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。
表面管理器用于对显示子***进行管理,并且为多个应用程序提供了2D和3D图层的融合。
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。
2D图形引擎是2D绘图的绘图引擎。
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。
下面结合捕获拍照场景,示例性说明电子设备100软件以及硬件的工作流程。
当触摸传感器180K接收到触摸操作,相应的硬件中断被发给内核层。内核层将触摸操作加工成原始输入事件(包括触摸坐标,触摸操作的时间戳等信息)。原始输入事件被存储在内核层。应用程序框架层从内核层获取原始输入事件,识别该输入事件所对应的控件。以该触摸操作是触摸单击操作,该单击操作所对应的控件为相机应用图标的控件为例,相机应用调用应用框架层的接口,启动相机应用,进而通过调用内核层启动摄像头驱动,通过摄像头193捕获静态图像或视频。
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。上述描述的***,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请实施例各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:快闪存储器、移动硬盘、只读存储器、随机存取存储器、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。

Claims (21)

  1. 一种焦点同步方法,其特征在于,应用于通信***,所述通信***包括第一电子设备和第二电子设备,所述第一电子设备和所述第二电子设备建立有通信连接;所述方法包括:
    所述第二电子设备显示多个窗口,所述多个窗口中的每个窗口显示一个应用程序的用户界面;所述应用程序是安装并运行于所述第一电子设备上的;所述多个窗口中第一窗口显示第一应用程序的第一用户界面,所述第一应用程序的第二用户界面显示于所述第一电子设备上,所述第一用户界面和所述第二用户界面具有相同的用户界面元素;所述多个窗口中的第二窗口为焦点窗口,所述第二窗口显示第二应用程序的用户界面;所述第二应用程序为所述第一电子设备的焦点应用程序;
    所述第一电子设备检测到第一焦点切换事件,将所述焦点应用程序从所述第二应用程序切换为第三应用程序;
    所述第二电子设备将第三窗口设置为焦点窗口,所述第三窗口为显示所述第三应用程序的用户界面的窗口。
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    所述焦点应用程序为所述第二应用程序时:
    所述第二电子设备检测到第一用户输入;
    所述第二电子设备更新所述第二应用程序的用户界面;
    所述焦点应用程序为所述第三应用程序时:
    所述第二电子设备检测到第二用户输入;
    所述第二电子设备更新所述第三应用程序的用户界面。
  3. 根据权利要求1所述的方法,其特征在于,所述将所述焦点应用程序从所述第二应用程序切换为第三应用程序之后,所述方法还包括:
    所述第一电子设备检测到第二焦点切换事件,将所述焦点应用程序从所述第三应用程序切换为所述第一应用程序;
    所述第二电子设备将所述第一窗口设置为焦点窗口;
    所述第二电子设备检测到第三用户输入;
    所述第二电子设备更新所述第一应用程序的所述第一用户界面;
    所述第一电子设备更新所述第一应用程序的所述第二用户界面。
  4. 根据权利要求2所述的方法,其特征在于,所述第二电子设备检测到第一用户输入之后,所述第二电子设备更新所述第二应用程序的用户界面之前,所述方法还包括:
    所述第二电子设备向所述第一电子设备发送根据所述第一用户输入生成的第一数据包;
    所述第一电子设备根据所述第一数据包针对所述第二应用程序的数据进行处理,得到所述第二应用程序的第一显示数据;
    所述第一电子设备向所述第二电子设备发送所述第一显示数据。
  5. 根据权利要求4所述的方法,其特征在于,所述第二电子设备更新所述第二应用程序的用户界面,包括:
    所述第二电子设备根据所述第一显示数据将所述第二应用程序的用户界面由第三用户界面更新为第四用户界面,所述第三用户界面和所述第四用户界面不同。
  6. 根据权利要求2所述的方法,其特征在于,所述第二电子设备检测到第二用户输入之后,所述第二电子设备更新所述第三应用程序的用户界面之前,所述方法还包括:
    所述第二电子设备向所述第一电子设备发送根据所述第二用户输入生成的第二数据包;
    所述第一电子设备根据所述第二数据包针对所述第三应用程序的数据进行处理,得到所述第三应用程序的第二显示数据;
    所述第一电子设备向所述第二电子设备发送所述第二显示数据。
  7. 根据权利要求6所述的方法,其特征在于,所述第二电子设备更新所述第三应用程序的用户界面,包括:
    所述第二电子设备根据所述第二显示数据将所述第三应用程序的用户界面由第五用户界面更新为第六用户界面,所述第五用户界面和所述第六用户界面不同。
  8. 根据权利要求2所述的方法,其特征在于,所述第一用户输入和所述第二用户输入相同,且所述第一用户输入和所述第二用户输入为针对第一按键的按压操作。
  9. 根据权利要求1-8任一项所述的方法,其特征在于,所述将所述焦点应用程序从所述第二应用程序切换为第三应用程序之后,所述第二电子设备将第三窗口设置为焦点窗口之前,所述方法还包括:
    所述第一电子设备显示所述第三应用程序的用户界面;
    所述第一电子设备向所述第二电子设备发送第一焦点切换数据,所述焦点切换数据是所述第一电子设备响应于所述第一焦点切换事件生成的。
  10. 根据权利要求9所述的方法,其特征在于,所述第一电子设备中存储有参考状态标识和参考身份标识,所述将所述焦点应用程序从所述第二应用程序切换为第三应用程序之后,所述第一电子设备向所述第二电子设备发送第一焦点切换数据之前,所述方法还包括:
    若所述参考状态标识为第一状态标识,且所述第三应用程序的第一身份标识与所述参考身份标识不同,更新所述参考状态标识为第二状态标识;或者,若所述参考状态标识为第二状态标识;
    则根据所述第一身份标识生成所述第一焦点切换数据;
    其中,若所述参考状态标识为所述第一状态标识,则表示在所述第一电子设备切换所述焦点应用程序为所述第三应用程序之前,所述第一电子设备是根据所述第二电子设备发送的第三焦点切换数据将所述第二应用程序设置为所述焦点应用程序的;
    若所述参考状态标识为所述第二状态标识,则表示在所述第一电子设备切换所述焦点应用程序为所述第三应用程序之前,所述第一电子设备是根据所述第一电子设备检测到的第三焦点切换事件将所述二应用程序设置为所述焦点应用程序的。
  11. 根据权利要求1-8任一项所述的方法,其特征在于,所述第二电子设备将第二窗口设置为焦点窗口之后,所述将所述焦点应用程序从所述第二应用程序切换为第三应用程序之前, 所述方法还包括:
    所述第二电子设备向所述第一电子设备发送第二焦点切换数据,所述第二焦点切换数据是所述第二电子设备响应于所述第一焦点切换事件生成的。
  12. 根据权利要求11所述的方法,其特征在于,所述第一电子设备中存储有参考状态标识和参考身份标识,所述将所述焦点应用程序从所述第二应用程序切换为第三应用程序之后,所述方法还包括:
    更新所述参考状态标识为第一状态标识;
    更新所述参考身份标识为所述第三应用程序的身份标识;
    其中,若所述参考状态标识为第一状态标识,则表示所述焦点应用程序是所述第一电子设备根据所述第二电子设备发送的第四焦点切换数据设置的;
    若所述参考状态标识为第二状态标识,则表示所述焦点应用程序是所述第一电子设备根据所述第一电子设备检测到的第四焦点切换事件设置的。
  13. 根据权利要求1-12任一项所述的方法,其特征在于,所述第二电子设备将第三窗口设置为焦点窗口,包括:
    所述第二电子设备针对所述第三窗口进行标记。
  14. 根据权利要求13所述的方法,其特征在于,所述第二电子设备针对所述第三窗口进行标记,包括以下一项或多项:
    所述第二电子设备设置所述第三窗口的标题栏为高亮状态;
    所述第二电子设备调整所述第三窗口的透明度。
  15. 根据权利要求9所述的方法,其特征在于,所述第一电子设备向所述第二电子设备发送第一焦点切换数据之后;所述方法还包括:
    所述第二电子设备确定所述多个窗口满足预设条件。
  16. 根据权利要求9所述的方法,其特征在于,所述第一电子设备向所述第二电子设备发送第一焦点切换数据之前,所述方法还包括:
    所述第一电子设备获取所述多个窗口的状态数据;
    所述第一电子设备根据所述状态数据确定所述多个窗口满足预设条件。
  17. 根据权利要求15或16所述的方法,其特征在于,其中,所述预设条件包含以下一项或多项:
    所述多个窗口中不包含全屏窗口;
    所述多个窗口不处于媒体播放状态。
  18. 根据权利要求1所述的方法,其特征在于,所述第一电子设备检测到第一焦点切换事件之前,所述多个窗口中包括所述第三窗口;所述第三窗口显示所述第三应用程序的用户界面。
  19. 一种通信***,所述通信***包括第一电子设备和第二电子设备,其特征在于,所述第一电子设备和/或所述第二电子设备包括:一个或多个处理器和存储器;所述存储器与所述一个或多个处理器耦合,所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,所述一个或多个处理器调用所述计算机指令以使得所述第一电子设备和/或所述第二电子设备执行如权利要求1-18中任一项所述的方法。
  20. 一种包含指令的计算机程序产品,其特征在于,当所述计算机程序产品在电子设备上运行时,使得所述电子设备执行如权利要求1-18中任一项所述的方法。
  21. 一种计算机可读存储介质,包括指令,其特征在于,当所述指令在电子设备上运行时,使得所述电子设备执行如权利要求1-18中任一项所述的方法。
PCT/CN2021/143044 2020-12-31 2021-12-30 焦点同步方法及电子设备 WO2022143891A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP21914622.2A EP4261673A1 (en) 2020-12-31 2021-12-30 Focal point synchronization method and electronic device
US18/259,276 US20240069845A1 (en) 2020-12-31 2021-12-30 Focus synchronization method and electronic device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011639403.2A CN114764316A (zh) 2020-12-31 2020-12-31 焦点同步方法及电子设备
CN202011639403.2 2020-12-31

Publications (1)

Publication Number Publication Date
WO2022143891A1 true WO2022143891A1 (zh) 2022-07-07

Family

ID=82259061

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/143044 WO2022143891A1 (zh) 2020-12-31 2021-12-30 焦点同步方法及电子设备

Country Status (4)

Country Link
US (1) US20240069845A1 (zh)
EP (1) EP4261673A1 (zh)
CN (1) CN114764316A (zh)
WO (1) WO2022143891A1 (zh)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102033776A (zh) * 2009-09-29 2011-04-27 联想(北京)有限公司 一种音频播放方法及一种计算设备
US20130139103A1 (en) * 2011-11-29 2013-05-30 Citrix Systems, Inc. Integrating Native User Interface Components on a Mobile Device
CN103581758A (zh) * 2013-07-30 2014-02-12 深圳创维-Rgb电子有限公司 应用产品平台的界面展示方法及智能终端设备
CN105283840A (zh) * 2013-06-08 2016-01-27 苹果公司 用于同步两个或更多个显示器的设备、方法和图形用户界面
CN105282315A (zh) * 2015-04-01 2016-01-27 维沃移动通信有限公司 移动终端双屏显示方法及其移动终端
CN105302418A (zh) * 2015-11-02 2016-02-03 联想(北京)有限公司 一种信息处理方法及电子设备
CN108307068A (zh) * 2018-01-25 2018-07-20 北京珠穆朗玛移动通信有限公司 副屏显示界面切换方法、移动终端及存储介质
US20190324826A1 (en) * 2018-04-20 2019-10-24 CopyBucket, Inc. Systems and methods for efficient inter-device data exchange

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102033776A (zh) * 2009-09-29 2011-04-27 联想(北京)有限公司 一种音频播放方法及一种计算设备
US20130139103A1 (en) * 2011-11-29 2013-05-30 Citrix Systems, Inc. Integrating Native User Interface Components on a Mobile Device
CN105283840A (zh) * 2013-06-08 2016-01-27 苹果公司 用于同步两个或更多个显示器的设备、方法和图形用户界面
CN103581758A (zh) * 2013-07-30 2014-02-12 深圳创维-Rgb电子有限公司 应用产品平台的界面展示方法及智能终端设备
CN105282315A (zh) * 2015-04-01 2016-01-27 维沃移动通信有限公司 移动终端双屏显示方法及其移动终端
CN105302418A (zh) * 2015-11-02 2016-02-03 联想(北京)有限公司 一种信息处理方法及电子设备
CN108307068A (zh) * 2018-01-25 2018-07-20 北京珠穆朗玛移动通信有限公司 副屏显示界面切换方法、移动终端及存储介质
US20190324826A1 (en) * 2018-04-20 2019-10-24 CopyBucket, Inc. Systems and methods for efficient inter-device data exchange

Also Published As

Publication number Publication date
EP4261673A1 (en) 2023-10-18
US20240069845A1 (en) 2024-02-29
CN114764316A (zh) 2022-07-19

Similar Documents

Publication Publication Date Title
RU2766255C1 (ru) Способ голосового управления и электронное устройство
CN114443277A (zh) 内存管理方法、装置、电子设备以及计算机可读存储介质
CN114546190A (zh) 一种应用显示方法及电子设备
WO2021036770A1 (zh) 一种分屏处理方法及终端设备
CN113704014A (zh) 日志获取***、方法、电子设备及存储介质
WO2022068483A1 (zh) 应用启动方法、装置和电子设备
EP4280056A1 (en) Method for application performing drawing operation, and electronic device
CN116360725B (zh) 显示交互***、显示方法及设备
WO2021218429A1 (zh) 应用窗口的管理方法、终端设备及计算机可读存储介质
WO2022095744A1 (zh) Vr显示控制方法、电子设备及计算机可读存储介质
WO2022078105A1 (zh) 内存管理方法、电子设备以及计算机可读存储介质
WO2022143180A1 (zh) 协同显示方法、终端设备及计算机可读存储介质
WO2022170856A1 (zh) 建立连接的方法与电子设备
WO2022062902A1 (zh) 一种文件传输方法和电子设备
WO2022033355A1 (zh) 一种邮件处理方法及电子设备
WO2022002213A1 (zh) 翻译结果显示方法、装置及电子设备
CN116048831A (zh) 一种目标信号处理方法和电子设备
WO2022143891A1 (zh) 焦点同步方法及电子设备
CN115482143A (zh) 应用的图像数据调用方法、***、电子设备及存储介质
WO2022166550A1 (zh) 数据传输方法及电子设备
CN116795476B (zh) 一种删除壁纸的方法及电子设备
CN116662150B (zh) 应用启动耗时检测方法及相关装置
CN114006976B (zh) 一种界面显示方法及终端设备
CN117311484A (zh) 调整设备功耗的方法及电子设备
CN117806745A (zh) 界面生成方法及电子设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21914622

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 18259276

Country of ref document: US

ENP Entry into the national phase

Ref document number: 2021914622

Country of ref document: EP

Effective date: 20230710

NENP Non-entry into the national phase

Ref country code: DE