Processing method and device and electronic equipment
By separately setting a private information transmission unit for each workspace or screen projection mode, the problem of inaccurate response caused by the sharing of information transmission units in the existing technology is solved, and the accuracy of the operation and the user experience are improved.
Patent Information
- Application Number
- CN202410382993.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-29
- Publication Date
- 2024-10-01
AI Technical Summary
The existing technology often has the problem of inaccurate response when performing operations related to information transfer units such as clipboards, mainly due to information overwriting caused by different workspaces or screen projection modes sharing the same information transfer unit.
Set up a separate private information transfer unit for each workspace or screen projection mode, and after obtaining the target operation information, determine the target workspace or screen projection mode, and perform write or read operations to avoid information overwriting.
It effectively improves the response accuracy of operations related to information transfer units such as the clipboard, avoids information coverage problems between different work spaces or screen projection modes, and ensures operation accuracy and user experience.
Smart Images

Figure CN118733290A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of computer application technology, and in particular, relates to a processing method, device and electronic equipment. Background Art
[0002] Currently, operations related to information transfer units such as clipboards are common operations in terminal applications. When known technologies perform operations related to information transfer units such as clipboards in some application scenarios, there is often a problem of inaccurate response. Summary of the invention
[0003] To this end, this application discloses the following technical solutions:
[0004] A processing method, comprising:
[0005] Obtaining operation information of a target operation on an electronic device; the target operation is an operation for information transmission;
[0006] Determining a target workspace targeted by the target operation; the electronic device has a plurality of workspaces isolated from each other, and each workspace is individually provided with a corresponding first information transmission unit for storing information for information transmission;
[0007] For the target first information transmission unit corresponding to the target workspace, an operation of writing or reading information to be transmitted is performed; the information to be transmitted is the information to be transmitted by the target operation.
[0008] Optionally, the multiple workspaces include: multiple carriers provided by the operating system of the electronic device; different carriers are different workspaces, and each carrier is individually provided with a corresponding first information transmission unit; the carrier is used to carry, apply and manage application elements provided by the operating system.
[0009] Optionally, the multiple workspaces include multiple screen projection modes; different screen projection modes are different workspaces, and each screen projection mode is separately provided with a corresponding first information transmission unit;
[0010] Among them, different screen projection modes correspond to different processing methods of providing display data from the device to which it belongs to other devices so as to display and apply the display data on the other devices.
[0011] Optionally, the multiple screen projection modes include a first screen projection mode and a second screen projection mode;
[0012] In the first screen projection mode, the display screen of the screen projection source device includes a physical display screen and a virtual display screen running in the background; the first screen projection mode is used to project the virtual display screen to the electronic device to generate a first screen projection interface of the virtual display screen on the display screen of the electronic device;
[0013] In the second screen projection mode, the display screen of the projection source device includes a physical display screen, and the second screen projection mode is used to project the physical display screen to the electronic device to generate a second screen projection interface of the physical display screen on the display screen of the electronic device.
[0014] Optionally, the obtaining operation information of a target operation on the electronic device includes:
[0015] Obtaining operation information of a first operation performed on a first content object on an electronic device; the first operation is used to specify a first content from the first content object and instruct to write the first content into a first information transfer unit;
[0016] The step of performing an operation of writing or reading information to be transmitted on the target first information transmission unit corresponding to the target workspace includes:
[0017] The first content is written into the target first information transfer unit; wherein the information to be transferred includes the first content.
[0018] Optionally, the obtaining operation information of a target operation on the electronic device includes:
[0019] Obtaining operation information of a second operation performed on a second content object on the electronic device; the second operation is used to specify a second content from the first information transfer unit and instruct to write the second content into the second content object;
[0020] The step of performing an operation of writing or reading information to be transmitted on the target first information transmission unit corresponding to the target workspace includes:
[0021] The second content specified by the second operation is read from the content information stored in the target first information transfer unit to write the second content into the second content object; wherein the information to be transferred includes the second content.
[0022] Optionally, the electronic device further comprises a second information transfer unit for storing information for information transfer; the second information transfer unit can be shared by the multiple workspaces;
[0023] The target operation is a first operation; the first operation is used to specify a first content from a content object and instruct to write the first content into an information transfer unit;
[0024] Before determining the target workspace targeted by the target operation, the method further includes:
[0025] According to the operation instruction of the target operation, determining the information transmission unit to be used by the target operation; when the information transmission unit to be used by the target operation is the first information transmission unit, triggering the step of determining the target workspace targeted by the target operation;
[0026] The information transmission unit to be used for the target operation is the first information transmission unit or the second information transmission unit; and the target operation is based on different operation instructions, indicating the use of different information transmission units of the first information transmission unit and the second information transmission unit.
[0027] Optionally, the multiple workspaces include: operating spaces respectively corresponding to multiple screen projection source devices for projecting the screen to the electronic device; different screen projection source devices correspond to different operating spaces in the electronic device, and the electronic device is separately provided with a corresponding first information transmission unit for each screen projection source device.
[0028] A processing device, comprising:
[0029] An acquisition module, used to obtain operation information of a target operation on the electronic device; the target operation is an operation for information transmission;
[0030] A determination module, used to determine a target workspace targeted by the target operation; the electronic device has a plurality of workspaces isolated from each other, each workspace is independently provided with a corresponding first information transmission unit for storing information for information transmission;
[0031] The read-write operation module is used to execute the operation of writing or reading the information to be transmitted on the target first information transmission unit corresponding to the target workspace; the information to be transmitted is the information to be transmitted by the target operation.
[0032] An electronic device, comprising:
[0033] A memory for storing at least one set of computer instructions;
[0034] A processor is used to implement the processing method as described in any one of the above items by executing the instruction set stored in the memory.
[0035] It can be seen from the above scheme that the present application discloses a processing method, an apparatus and an electronic device, wherein the processing method includes: obtaining operation information of a target operation on the electronic device, the target operation being an operation for information transmission; determining a target workspace targeted by the target operation, the electronic device having a plurality of workspaces isolated from each other, each workspace being separately provided with a corresponding first information transmission unit for storing information for information transmission; executing an operation of writing or reading information to be transmitted on the target first information transmission unit corresponding to the target workspace; the information to be transmitted is the information to be transmitted by the target operation. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are merely embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0037] Figure 1 It is a flow chart of the processing method provided by this application;
[0038] Figure 2 This is a schematic diagram of screen projection based on mobile phone mode provided by this application;
[0039] Figure 3 It is a schematic diagram of screen projection based on computer mode provided by this application;
[0040] Figure 4 It is another flow chart of the processing method provided by the present application;
[0041] Figure 5 It is a composition structure diagram of the processing device provided by this application;
[0042] Figure 6 It is a structural diagram of the electronic device provided in this application. DETAILED DESCRIPTION
[0043] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0044] The embodiments of the present application provide a processing method, device, and electronic device, which are used to solve the problem of inaccurate response when performing operations related to information transfer units such as clipboards in the known technology, and improve the accuracy of responses to operations related to information transfer units such as clipboards. The processing method provided can be used in many electronic devices under general or special computing device environments or configurations, such as personal computers, server computers, handheld devices or portable devices, tablet devices, multi-processor devices, etc.
[0045] See also Figure 1 The processing method provided in the embodiment of the present application may include the following processing steps:
[0046] Step 101: Obtain operation information of a target operation on an electronic device; the target operation is an operation for information transmission.
[0047] Optionally, the target operation is an operation related to the information transmission unit, which may specifically include but is not limited to a first operation and a second operation.
[0048] The first operation is used to specify the first content to be transmitted from the first content object, and to instruct the first content to be written into the information transmission unit; the second operation is used to specify the second content to be transmitted from the information transmission unit, and to instruct the second content to be written into the required second content object.
[0049] Optionally, the information transfer unit may be a clipboard that can be used for information caching and information transfer. The first operation may specifically be, but not limited to, a copy or cut operation on information content, and the second operation may specifically be, but not limited to, a paste operation on information content.
[0050] The first content object and the second content object may be the same content object or different content objects, depending on the actual application. The first content object or the second content object is an object on the electronic device that can be used to carry information content, and may specifically be, but not limited to, various types of documents / files such as word, excel, ppt, or various types of interfaces / windows such as information configuration interfaces, programming interfaces, communication interfaces, chat windows, etc. of application programs.
[0051] In an optional implementation, this step 101 may specifically obtain operation information of a first operation performed on a first content object on the electronic device; here, the first operation is used to specify a first content from the first content object and instruct to write the first content into a first information transmission unit.
[0052] The operation information of the first operation includes, but is not limited to, the operation type and operation position of the first operation. The operation type of the first operation may be a copy or cut type; the operation position of the first operation specifically includes the position of the content specified by the first operation in the first content object (i.e., the copied or cut content) in the first content object.
[0053] For example: Assuming that a user performs a copy operation on a certain information content content1 in word document 1 on an electronic device such as a mobile phone or a laptop computer, this step can specifically obtain the operation information of the copy operation. In this example, the first operation is a copy operation, the first content object is word document 1, and the first content is information content content1. The operation type of the first operation is copy, and the operation position of the first operation is the position of information content1 in word document 1.
[0054] In actual applications, step 101 is not limited to the above implementations, and depends on the actual operation of the user. Optionally, step 101 can also be implemented as: obtaining operation information of a second operation performed on a second content object on the electronic device; the second operation is used to specify the second content from the first information transfer unit and instruct to write the second content into the second content object.
[0055] The operation information of the second operation includes, but is not limited to, the operation type and operation position of the second operation. The operation type of the second operation may be paste; the operation position of the second operation specifically includes the position of the information content to be written in the second content object specified by the second operation, such as the position of the information content to be pasted in word document 2 specified by the paste operation.
[0056] For example: Assuming that a user performs a paste operation of pasting information content 1 into word document 2 on an electronic device such as a mobile phone or a laptop computer, this step 101 can specifically obtain the operation information of the paste operation. In this example, the second operation is a paste operation, the second content object is word document 2, and the second content is information content 1. The operation type of the second operation is paste, and the operation position of the second operation is the position where information content 1 is to be pasted in word document 2.
[0057] Step 102, determining a target workspace for the target operation; the electronic device has a plurality of workspaces isolated from each other, and each workspace is individually provided with a corresponding first information transmission unit for storing information for information transmission.
[0058] The first information transmission unit corresponding to each workspace can be regarded as a private information transmission unit of the workspace, which is specially used for information storage and transmission within the workspace.
[0059] Taking the information transmission unit as a clipboard as an example, in the embodiment of the present application, a corresponding private clipboard is provided for each workspace, and the private clipboard corresponding to each workspace is specifically used for information caching and transmission within the workspace.
[0060] Optionally, the clipboard includes a memory space that can vary with the size of the stored information, so as to temporarily store the exchange information. In implementation, different private clipboards can be set separately for different workspaces by creating different memory spaces in the memory of the electronic device for different workspaces of the electronic device.
[0061] After obtaining the operation information of the target operation on the electronic device, the embodiment of the present application continues to determine the target workspace targeted by the target operation.
[0062] The target workspace targeted by the target operation is specifically the workspace where the electronic device is located when the target operation is executed.
[0063] Thus, optionally, the workspace where the electronic device is located when the target operation is executed can be specifically determined, and the workspace where the electronic device is located when the target operation is executed can be used as the target workspace targeted by the target operation. For example, in the case where the target operation is a first operation such as copy or cut, the workspace where the electronic device is located when the first operation such as copy or cut is executed is determined, and in the case where the target operation is a second operation such as paste, the workspace where the electronic device is located when the second operation such as paste is executed is determined, and the determined workspace is used as the target workspace targeted by the target operation.
[0064] Step 103: executing an operation of writing or reading information to be transmitted on the target first information transmission unit corresponding to the target workspace; the information to be transmitted is information to be transmitted by the target operation.
[0065] After obtaining the operation information of the target operation on the electronic device and determining the target workspace targeted by the target operation, the present application further determines the target first information transmission unit corresponding to the target workspace from the first information transmission units corresponding to each workspace of the electronic device (the target first information transmission unit is the private information transmission unit of the target workspace), and performs the operation of writing or reading the information to be transmitted indicated by the target operation on the target first information transmission unit.
[0066] If the operation information of the target operation obtained in step 101 is the operation information of the first operation performed on the first content object on the electronic device, this step 103 can specifically write the first content specified by the first operation from the first content object to the target first information transmission unit corresponding to the target workspace. In this case, the information to be transmitted includes the first content. For example, following the example of the first operation in the above text, the information content content1 specified by the copy / cut operation from word document 1 is specifically written to the target private clipboard corresponding to the target workspace.
[0067] In actual applications, the response processing matching the first operation can be performed according to information such as the operation type and operation location of the first operation. For example, if the first operation is a copy operation, the information content selected by the copy operation, such as content1, is written to the target private clipboard corresponding to the target workspace according to the operation type "copy" and the corresponding operation location information; if the first operation is a cut operation, in addition to writing the information content selected by the cut operation, such as content1, to the target private clipboard corresponding to the target workspace according to the operation type "cut" and the corresponding operation location information, the information content selected by the cut operation, such as content1, is also required to be deleted from the content object to which it belongs, for example, deleting the information content selected by the cut operation, content1, from the word document 1 to which it belongs.
[0068] If the operation information of the target operation obtained in step 101 is the operation information of the second operation performed on the second content object on the electronic device, this step 103 can specifically read the second content specified by the second operation from the content information stored in the target first information transmission unit, and then further write the read second content to the location indicated by the second operation in the second content object. In this case, the information to be transmitted includes the second content.
[0069] For example, following the example of the second operation in the above text, the information content content1 specified by the paste operation can be read from the target private clipboard corresponding to the target workspace. After completing the content reading, the read information content content1 can be further written to the position indicated by the paste operation in the second content object such as word document 2, thereby copying / cutting and pasting the content content1 in word document 1 to the indicated position in word document 2.
[0070] The second content specified by the second operation from the information content stored in the target first information transmission unit may be all or part of the information content stored in the target first information transmission unit, depending on the actual application situation.
[0071] To summarize, the processing method of the embodiment of the present application is aimed at multiple mutually isolated workspaces of an electronic device. By separately setting a corresponding first information transmission unit for each workspace for storing information for information transmission (for example, separately setting a corresponding private clipboard for each workspace), each workspace is provided with its own exclusive private information transmission unit. On this basis, after obtaining the operation information of the target operation on the electronic device, the target workspace targeted by the target operation is determined, and the target first information transmission unit corresponding to the target workspace is used to write or read the information to be transmitted indicated by the target operation.
[0072] Since in the present application, each workspace has its own exclusive private information transmission unit, and based on the exclusive private information transmission unit of each workspace, each workspace is provided with the information storage and transmission capabilities required in the information transmission application, thereby effectively avoiding the problem of information overlap between different workspaces in the same information transmission unit due to sharing the same information transmission unit, and further avoiding the inaccurate response caused by the information overlap problem when performing operations related to information transmission units such as clipboards, thereby effectively improving the response accuracy of operations related to information transmission units such as clipboards.
[0073] In an optional embodiment, the multiple workspaces include: multiple carriers provided by the operating system of the electronic device; different carriers are different workspaces, and each carrier is individually provided with a corresponding first information transmission unit; the carrier is used to carry, apply and manage application elements provided by the operating system.
[0074] Optionally, the multiple carriers may be multiple system desktops provided by the operating system of the electronic device, referred to as "desktops". Each desktop may be regarded as a workspace of the operating system, which can be used to carry, apply and manage various types of application elements such as applications, documents / files, databases, icons, controls, tools, etc. provided by the operating system of the electronic device, so as to provide functions such as display, operation and management of the various types of application elements.
[0075] In this embodiment, a corresponding first information transmission unit is separately provided for each carrier. For example, a corresponding private clipboard is separately provided for each of the multiple desktops provided by the electronic device operating system. The private clipboard corresponding to each desktop is specifically used for information caching and transmission within the workspace represented by the desktop.
[0076] Correspondingly, in this embodiment, after obtaining the operation information of the target operation on the electronic device, the target carrier targeted by the target operation can be determined, and the target first information transmission unit corresponding to the target carrier can be used to write or read the information to be transmitted indicated by the target operation.
[0077] For example, determine the target desktop targeted by the first operation such as copy or cut, and write the information content specified by the first operation such as copy or cut (i.e., the copied or cut content) to the target private clipboard corresponding to the target desktop, such as writing the information content content1 copied from word document 1 to the target private clipboard corresponding to the target desktop.
[0078] For another example, determine the target desktop targeted by the second operation such as paste, and read the information content specified by the second operation such as paste from the target private clipboard corresponding to the target desktop, so that the read information content can be subsequently written to the target location indicated by the second operation such as paste, such as reading information content content1 from the target private clipboard corresponding to the target desktop, and writing the read information content content1 to the location specified by the paste operation in word document 2.
[0079] In the case where the operating system of an electronic device provides multiple carriers such as multiple desktops, in the known technology, different carriers often have the problem of clipboard information overwriting between different carriers because they share the same clipboard, which can easily lead to inaccurate responses to clipboard-related copy / cut, paste and other operations performed by users on the operating system. For example, assuming that the operating system of an electronic device provides two carriers, desktop A and desktop B, and assuming that the user needs to copy the information content content1 in word document 1 to a specified location in word document 2 under desktop A, if the user stores the information content content1 in word document 1 to the clipboard by performing a copy operation, switches to using desktop B, and performs an operation of copying or cutting a chat message in desktop B, then the information content content1 cached in the clipboard will be overwritten by the chat message, and when the user returns to desktop A and performs a paste operation to word document 2, the content of the chat message will be written to the specified location of word document 2, resulting in an inaccurate response to the user's operation of pasting the information content content1 to word document 2.
[0080] In response to the above problems, the embodiment of the present application sets up a corresponding private clipboard for each desktop of the electronic device operating system, which is specifically used for storing and transferring information within the workspace represented by the desktop, thereby effectively solving the problem of clipboard information overlap between different desktops and improving the accuracy of responses to clipboard-related operations.
[0081] For example, for the above example, private clipboard 1 and private clipboard 2 are set for desktops A and B respectively. Private clipboard 1 corresponding to desktop A is used under desktop A, and private clipboard 2 corresponding to desktop B is used under desktop B. In this way, the information content content1 copied by the user under desktop A will be stored in private clipboard 1. When the user copies the information content content1 and switches to using desktop B, the chat message copied under desktop B will be stored in private clipboard 2. Subsequently, if the user returns to desktop A again and pastes the information to word document 2, the information content content1 stored in the private clipboard 1 corresponding to desktop A will be pasted to the specified location of word document 2, thereby avoiding the problem of clipboard information overlay between different desktops and ensuring accurate response to user operations related to the clipboard.
[0082] In an optional embodiment, the multiple workspaces include multiple screen projection modes; different screen projection modes can be regarded as different workspaces of the electronic device, and each screen projection mode is separately provided with a corresponding first information transmission unit.
[0083] Among them, different screen projection modes correspond to different processing methods of providing display data from the device to which it belongs to other devices so as to display and apply the display data on the other devices.
[0084] The different screen projection modes may include but are not limited to a first screen projection mode and a second screen projection mode.
[0085] Among them, in the first screen projection mode, the display screen of the projection source device includes a physical display screen and a virtual display screen running in the background; the first screen projection mode is used to project the virtual display screen of the projection source device to the electronic device to generate a first projection interface of the virtual display screen on the display screen of the electronic device.
[0086] In the second projection mode, the display screen of the projection source device includes a physical display screen. The second projection mode is used to project the physical display screen of the projection source device to the electronic device to generate a second projection interface of the physical display screen on the display screen of the electronic device.
[0087] In an embodiment of the present application, the electronic device is used as a projection destination device of the projection source device to receive projection information of the projection source device and generate a projection interface corresponding to the received projection information on the display area of its own (i.e., the projection destination device) display device.
[0088] Taking the application scenario of projecting the screen from a mobile phone to a computer as an example, the projection source device is a mobile phone, and the projection destination device is a computer. In this application scenario, the first projection mode can also be subdivided into mobile phone mode and computer mode. In the mobile phone mode, in addition to the physical display screen, the mobile phone also runs a virtual display screen in the background. The mobile phone mode is specifically used to project the interface content of the virtual display screen running in the background of the mobile phone to the computer to generate the first projection interface of the virtual display screen on the computer. In the mobile phone mode, the projection destination, such as a computer, displays the projected mobile phone virtual display screen interface in the form of the mobile phone display screen. For details, please refer to Figure 2 Therefore, this mode is called mobile phone mode.
[0089] In computer mode, the phone also runs a physical display and a virtual display in the background, and also projects the interface content of the virtual display in the background of the phone to the computer. The difference from the mobile phone mode is that in computer mode, the computer displays the interface content of the projected mobile phone virtual display in the form of the computer display. For details, please refer to Figure 3 Therefore, this mode is called computer mode.
[0090] The second screen projection mode can be specifically understood as the mirror mode. In this mode, the screen projection source device such as a mobile phone only runs a physical display (without running the corresponding virtual display in the background), and projects the interface content of the physical display to the display of the screen projection destination such as a computer.
[0091] In summary, when connecting a screen projection source device such as a mobile phone to a screen projection destination device such as a computer for screen projection, there are multiple screen projection modes, such as the first screen projection modes such as the above-mentioned mobile phone mode and computer mode, and the second screen projection modes such as the mirror mode. When performing clipboard-related operations in these modes, the known technology often has the problem of clipboard information being overwritten due to the fact that different screen projection modes share the same clipboard, which in turn affects the response accuracy of clipboard-related operations.
[0092] The following are examples:
[0093] Assume that a user uses the projection interface in computer mode / mobile phone mode on a computer (the projection interface of the mobile phone's virtual display screen), and assume that the user needs to perform operations such as copying and pasting information on the projection interface on the computer at this time. However, in the known technology, since the computer shares the clipboard of the mobile phone in this mode, the information written to the clipboard by the computer based on the copy operation is easily overwritten by the information copied by the mobile phone user on the physical display screen. As a result, the information pasted on the computer projection interface is actually the information copied on the physical display screen of the mobile phone, which causes the computer to respond incorrectly to the copy and paste operations of the projection interface, and at the same time causes the content on the physical display screen of the mobile phone to be leaked.
[0094] In response to the above problems, the embodiments of the present application separately set a corresponding first information transmission unit for each screen projection mode on a screen projection source device such as a mobile phone, and specifically for the screen projection mode corresponding to the virtual display screen, different first information transmission units are set for different virtual display screens. Taking the first information transmission unit as a private clipboard as an example, a corresponding clipboard can be separately set for each screen projection mode, and for the screen projection mode corresponding to the virtual display screen, different private clipboards can be set for different virtual display screens. In this way, in the screen projection application, the computer side will apply the clipboard corresponding to the screen projection mode of the mobile phone side under which projection mode it is in. For example, if it is in mobile phone mode or computer mode, the computer side will apply the clipboard of the mobile phone side for the mobile phone mode or computer mode. A private clipboard is set up for the virtual display screen. In this way, if the user needs to perform operations such as copy / cut and paste information on the projection interface on the computer, the independent private clipboard corresponding to the virtual display screen will be used to cache and transfer information. The mobile phone user's copy and paste operations on the physical display screen still use the phone's own clipboard, and will not overwrite the information of the independent private clipboard corresponding to the virtual display screen, thereby solving the clipboard information overlay problem in the above-mentioned projection application, and can ensure accurate response to clipboard-related operations in the projection application, while avoiding the leakage of corresponding information content of the projection source device (for example, avoiding the leakage of the physical display screen content of the mobile phone to the projection destination in the first projection mode such as mobile phone mode or computer mode).
[0095] In an optional embodiment, the multiple workspaces include: operating spaces corresponding to the multiple screen projection source devices that project the screen to the electronic device respectively on the electronic device; different screen projection source devices correspond to different operating spaces on the electronic device, and the electronic device is separately provided with a corresponding first information transmission unit for each screen projection source device.
[0096] Taking the information transmission unit as a clipboard as an example, for the application scenario where multiple screen projection source devices project the screen to the same electronic device, this embodiment separately sets up a corresponding private clipboard for each screen projection source device. It is easy to understand that the private clipboard corresponding to each screen projection source device is specifically used for information caching and transmission of the screen projection source device in the operating space corresponding to the electronic device.
[0097] For example, assuming that there are three mobile phones casting screens to a computer, an independent private clipboard 1 is set for mobile phone 1 on the computer, an independent private clipboard 2 is set for mobile phone 2, and an independent private clipboard 3 is set for mobile phone 3. Each private clipboard is used for information caching and transmission of the corresponding operation space of the corresponding mobile phone on the computer. For example, when the content copied by mobile phone 2 is synchronized to the computer or the copy / cut, paste and other operations are performed on the screen casting interface 2 of mobile phone 2 on the computer, the private clipboard 2 corresponding to mobile phone 2 is used to provide information caching and transmission capabilities for these operations on mobile phone 2. Similarly, in the screen casting application, when the content copied by mobile phone 1 is synchronized to the computer or the copy / cut, paste and other operations are performed on the screen casting interface 1 of mobile phone 1 on the computer, the private clipboard 1 corresponding to mobile phone 1 is used to provide information caching and transmission capabilities for these operations on mobile phone 1. When the content copied by mobile phone 3 is synchronized to the computer or the copy / cut, paste and other operations are performed on the screen casting interface 3 of mobile phone 3 on the computer, the private clipboard 3 corresponding to mobile phone 3 is used to provide information caching and transmission capabilities for these operations on mobile phone 3.
[0098] During implementation, after projecting multiple projection source devices to an electronic device and enabling clipboard synchronization between the projection source devices and the electronic device, an independent private clipboard (also called a synchronized clipboard) can be set for each projection source device on the electronic device to avoid the content copied between different projection source devices in the projection application from overwriting the content synchronized to the computer, and to avoid clipboard information overlay when the computer copies / cuts, pastes, and other operations are performed on different projection interfaces of different projection source devices.
[0099] For the application scenario where multiple screen projection source devices project the screen to the same electronic device, in the known technology, when different screen projection source devices project the screen to the same electronic device, the same clipboard is used on the screen projection destination, i.e., the electronic device, which causes clipboard information conflicts between different screen projection source devices, resulting in clipboard information overlay. The present embodiment solves the above problem by separately setting a corresponding first information transmission unit for each screen projection source device on the electronic device, such as separately setting a corresponding private clipboard. This avoids the situation where the content copied on different screen projection source devices overwrites the content synchronized to the screen projection destination device, and avoids the clipboard information overlay when the screen projection destination device performs copy / cut, paste, and other operations on different projection interfaces of different screen projection source devices, thereby improving the response accuracy of clipboard-related operations.
[0100] In an optional embodiment, the electronic device further comprises a second information transfer unit for storing information for information transfer; the second information transfer unit can be shared by the multiple workspaces.
[0101] That is to say, in addition to setting up a corresponding first information transmission unit for each workspace, the electronic device also provides a second information transmission unit that can be shared by each workspace. For example, in addition to setting up an independent private clipboard for each workspace, a public clipboard that can be shared by each workspace is also provided to support different needs of users for private or shared clipboards in different workspaces.
[0102] In this embodiment, when the target operation is a first operation (the first operation is used to specify a first content from a content object and instruct to write the first content into an information transfer unit), see Figure 4 As shown in the processing method flow chart, the processing method provided by the present application may further include the following processing before step 102:
[0103] Step 401: Determine the information transmission unit to be used for the target operation according to the operation instruction of the target operation, and trigger step 201 when the information transmission unit to be used for the target operation is the first information transmission unit.
[0104] The information transmission unit to be used for the target operation is the first information transmission unit or the second information transmission unit; and the target operation is based on different operation instructions, indicating the use of different information transmission units of the first information transmission unit and the second information transmission unit.
[0105] In actual applications, when the user performs a first operation such as copying or cutting, he or she can choose to use the first information transmission unit or the second information transmission unit to cache and transmit information according to actual needs, or the electronic device can automatically choose to use the first information transmission unit or the second information transmission unit according to the information configuration, and generate corresponding operation instructions that can be used to instruct the use of the first information transmission unit or the second information transmission unit for the first operation such as copying or cutting.
[0106] On this basis, for the first operation on the electronic device, the information transfer unit to be used for the first operation (target operation) can be determined by parsing the operation instruction of the first operation, and when the information transfer unit to be used for the first operation (target operation) is the first information transfer unit, step 201 is triggered to execute step 201 and its subsequent steps. It is easy to understand that if the information transfer unit to be used for the first operation (target operation) is the second information transfer unit, the second information transfer unit such as the public clipboard can be directly used to provide the required information caching and transfer capabilities for the first operation such as copying or cutting. In this case, different workspaces can exchange information based on the public clipboard, for example, the content copied from the content object 1 under the workspace A can be pasted to the corresponding position of the content object 2 under the workspace B, etc.
[0107] This embodiment can meet the user's needs for clipboard sharing in different workspaces by adding a second information transmission unit that can be shared by each workspace in the electronic device, such as adding a public clipboard that can be shared by each workspace. In addition to avoiding the problem of inaccurate clipboard-related operation responses between different workspaces due to clipboard information overlap, it also supports information exchange between different workspaces based on the public clipboard, enriching device functions and improving user experience.
[0108] Corresponding to the above processing method, the present application embodiment also provides a processing device, whose composition structure is as follows: Figure 5 As shown, including:
[0109] The acquisition module 501 is used to obtain operation information of a target operation on the electronic device; the target operation is an operation for information transmission;
[0110] The determination module 502 is used to determine the target workspace targeted by the target operation; the electronic device has a plurality of workspaces isolated from each other, and each workspace is separately provided with a corresponding first information transmission unit for storing information for information transmission;
[0111] The read / write operation module 503 is used to execute the operation of writing or reading the information to be transmitted on the target first information transmission unit corresponding to the target workspace; the information to be transmitted is the information to be transmitted by the target operation.
[0112] In an optional embodiment, the multiple workspaces include: multiple carriers provided by the operating system of the electronic device; different carriers are different workspaces, and each carrier is individually provided with a corresponding first information transmission unit; the carrier is used to carry, apply and manage application elements provided by the operating system.
[0113] In an optional implementation manner, the multiple workspaces include multiple screen projection modes; different screen projection modes are different workspaces, and each screen projection mode is separately provided with a corresponding first information transmission unit;
[0114] Among them, different screen projection modes correspond to different processing methods of providing display data from the device to which it belongs to other devices so as to display and apply the display data on the other devices.
[0115] In an optional implementation, the multiple screen projection modes include a first screen projection mode and a second screen projection mode;
[0116] In the first screen projection mode, the display screen of the screen projection source device includes a physical display screen and a virtual display screen running in the background; the first screen projection mode is used to project the virtual display screen to the electronic device to generate a first screen projection interface of the virtual display screen on the display screen of the electronic device;
[0117] In the second screen projection mode, the display screen of the projection source device includes a physical display screen, and the second screen projection mode is used to project the physical display screen to the electronic device to generate a second screen projection interface of the physical display screen on the display screen of the electronic device.
[0118] In an optional implementation, the acquisition module 501 is specifically used to: obtain operation information of a first operation performed on a first content object on the electronic device; the first operation is used to specify a first content from the first content object and instruct to write the first content into the first information transmission unit;
[0119] The read-write operation module 503 is specifically used to: write the first content to the target first information transmission unit; wherein the information to be transmitted includes the first content.
[0120] In an optional implementation, the acquisition module 501 is specifically used to: obtain operation information of a second operation performed on a second content object on the electronic device; the second operation is used to specify a second content from the first information transfer unit and instruct to write the second content into the second content object;
[0121] The read / write operation module 503 is specifically used to read the second content specified by the second operation from the content information stored in the target first information transfer unit, so as to write the second content into the second content object; wherein the information to be transferred includes the second content.
[0122] In an optional implementation, the electronic device further comprises a second information transfer unit for storing information for information transfer; the second information transfer unit can be shared by the multiple workspaces;
[0123] The target operation is a first operation; the first operation is used to specify a first content from a content object and instruct to write the first content into an information transfer unit;
[0124] The determination module 502, before determining the target workspace targeted by the target operation, is further configured to:
[0125] According to the operation instruction of the target operation, determining the information transmission unit to be used by the target operation; when the information transmission unit to be used by the target operation is the first information transmission unit, triggering the step of determining the target workspace targeted by the target operation;
[0126] The information transmission unit to be used for the target operation is the first information transmission unit or the second information transmission unit; and the target operation is based on different operation instructions, indicating the use of different information transmission units of the first information transmission unit and the second information transmission unit.
[0127] In an optional embodiment, the multiple workspaces include: operating spaces corresponding to multiple screen projection source devices that project the screen to the electronic device respectively on the electronic device; different screen projection source devices correspond to different operating spaces on the electronic device, and the electronic device is separately provided with a corresponding first information transmission unit for each screen projection source device.
[0128] The present application also provides an electronic device, the composition structure of the electronic device is as follows: Figure 6 As shown, including at least:
[0129] A memory 10, for storing a computer instruction set;
[0130] A set of computer instructions can be implemented in the form of a computer program.
[0131] The processor 20 is used to implement the processing method provided by any of the above method embodiments by executing a computer instruction set.
[0132] The processor 20 can be a central processing unit (CPU), an application-specific integrated circuit (ASIC), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), a neural network processor (NPU), a deep learning processor (DPU) or other programmable logic devices, etc.
[0133] The electronic device includes a display device and / or includes a display interface and can be connected to an external display device.
[0134] Optionally, the electronic device also includes a camera assembly, and / or is connected to an external camera assembly.
[0135] In addition, the electronic device may also include components such as a communication interface and a communication bus. The memory, the processor and the communication interface communicate with each other through the communication bus.
[0136] The communication interface is used for communication between electronic devices and other devices. The communication bus can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc.
[0137] It should be noted that the various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0138] For the convenience of description, the above system or device is described by dividing it into various modules or units according to its functions. Of course, when implementing the present application, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0139] It can be known from the description of the above implementation methods that those skilled in the art can clearly understand that the present application can be implemented by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present application can be essentially or the part that makes a creative contribution can be embodied in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a disk, an optical disk, etc., including several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application or some parts of the embodiments.
[0140] Finally, it should be noted that, in this article, relational terms such as first, second, third and fourth are used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0141] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A processing method comprising: obtaining operation information of a target operation on an electronic device; The target operation is an operation for information transmission; Determining a target workspace for the target operation; The electronic device has a plurality of mutually isolated working spaces, and each working space is independently provided with a corresponding first information transmission unit for storing information for information transmission; An operation of writing or reading information to be transmitted is performed on the target first information transmission unit corresponding to the target workspace; the information to be transmitted is information to be transmitted by the target operation.
2. The processing method according to claim 1, wherein the plurality of workspaces comprises: The operating system of the electronic device provides multiple carriers; different carriers are different workspaces, and each carrier is individually provided with a corresponding first information transmission unit; the carrier is used to carry, apply and manage application elements provided by the operating system.
3. According to the processing method of claim 1, the multiple workspaces include multiple screen projection modes; different screen projection modes are different workspaces, and each screen projection mode is separately provided with a corresponding first information transmission unit; in, Different screen projection modes correspond to different processing methods of providing display data from the device to which it belongs to other devices so as to display and apply the display data on the other devices.
4. The processing method according to claim 3, wherein the plurality of screen projection modes include a first screen projection mode and a second screen projection mode; In the first screen projection mode, the display screen of the screen projection source device includes a physical display screen and a virtual display screen running in the background; the first screen projection mode is used to project the virtual display screen to the electronic device to generate a first screen projection interface of the virtual display screen on the display screen of the electronic device; In the second screen projection mode, the display screen of the projection source device includes a physical display screen, and the second screen projection mode is used to project the physical display screen to the electronic device to generate a second screen projection interface of the physical display screen on the display screen of the electronic device.
5. The processing method according to claim 1, wherein obtaining operation information of a target operation on the electronic device comprises: Obtaining operation information of a first operation performed on a first content object on the electronic device; The first operation is used to specify the first content from the first content object and instruct to write the first content into the first information transfer unit; The step of performing an operation of writing or reading information to be transmitted on the target first information transmission unit corresponding to the target workspace includes: The first content is written into the target first information transfer unit; wherein the information to be transferred includes the first content.
6. The processing method according to claim 1, wherein obtaining operation information of a target operation on the electronic device comprises: Obtaining operation information of a second operation performed on a second content object on the electronic device; The second operation is used to specify the second content from the first information transfer unit and instruct to write the second content into the second content object; The step of performing an operation of writing or reading information to be transmitted on the target first information transmission unit corresponding to the target workspace includes: The second content specified by the second operation is read from the content information stored in the target first information transfer unit to write the second content into the second content object; wherein the information to be transferred includes the second content.
7. The processing method according to claim 1, wherein the electronic device further comprises a second information transfer unit for storing information for information transfer; the second information transfer unit can be shared by the plurality of workspaces; The target operation is a first operation; the first operation is used to specify a first content from a content object and instruct to write the first content into an information transfer unit; Before determining the target workspace targeted by the target operation, the method further includes: According to the operation instruction of the target operation, determining the information transmission unit to be used by the target operation; when the information transmission unit to be used by the target operation is the first information transmission unit, triggering the step of determining the target workspace targeted by the target operation; The information transmission unit to be used for the target operation is the first information transmission unit or the second information transmission unit; and the target operation is based on different operation instructions, indicating the use of different information transmission units of the first information transmission unit and the second information transmission unit.
8. The processing method according to claim 1, wherein the plurality of workspaces comprises: A plurality of screen projection source devices projecting the screen to the electronic device are in the operation spaces respectively corresponding to the electronic device; Different screen projection source devices correspond to different operating spaces in the electronic device, and the electronic device is separately provided with a corresponding first information transmission unit for each screen projection source device.
9. A processing device comprising: An acquisition module, used to obtain operation information of a target operation on an electronic device; The target operation is an operation for information transmission; A determination module, used to determine a target workspace targeted by the target operation; the electronic device has a plurality of workspaces isolated from each other, each workspace is independently provided with a corresponding first information transmission unit for storing information for information transmission; The read-write operation module is used to execute the operation of writing or reading the information to be transmitted on the target first information transmission unit corresponding to the target workspace; the information to be transmitted is the information to be transmitted by the target operation.
10. An electronic device comprising: A memory for storing at least one set of computer instructions; A processor, configured to implement the processing method according to any one of claims 1 to 8 by executing the instruction set stored in the memory.
