Distributed data search method and electronic device
By implementing a distributed data search method on one device, users can search data on multiple devices at once, solving the problem of cumbersome operations in the existing technology and improving the user experience.
Patent Information
- Application Number
- PCT/CN2024/083120
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-08-25
- Filing Date
- 2024-03-21
- Publication Date
- 2025-05-30
AI Technical Summary
The prior art requires establishing connections one by one when searching data on multiple electronic devices, which is complicated to operate and affects the user experience.
Provides a distributed data search method. By displaying the search box and the device names of multiple devices on one device, users can enter keywords at one time to search, displaying the search results of multiple devices without manually establishing a connection.
It simplifies user search operations and improves search efficiency. Users can easily search data on multiple devices on one device.
Smart Images

Figure CN2024083120_30052025_PF_FP_ABST
Abstract
Description
Distributed data search method and electronic device
[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on August 25, 2023, with application number 202311088923.2 and invention name “A Distributed Data Search Method and Electronic Device”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of terminal technology, and in particular to a distributed data search method and electronic device. Background Art
[0003] As users have more and more electronic devices, their media resources (such as pictures and videos) may also be distributed across different electronic devices. To facilitate users to manage media resources on different devices, electronic devices such as mobile phones can access media resources on other electronic devices in the same network, such as browsing pictures and videos on other electronic devices.
[0004] Summary of the Invention
[0005] The embodiments of the present application provide a distributed data search method and electronic device, which can enable a user to search for data on multiple other devices at one time on one device, simplifying the search operation and improving the human-computer interaction experience.
[0006] To achieve the above objectives, the embodiments of the present application adopt the following technical solutions:
[0007] In a first aspect, the present application provides a distributed data search method, applied to a first device, the method comprising: the first device displays a first interface, the first interface including a search box, the device name of the second device, and the device name of the third device; in response to a search operation for a keyword entered in the search box, a second interface is displayed; wherein the second interface includes the search results of the first device, the search results of the second device, and the search results of the third device.
[0008] As can be seen, the user does not need to manually establish connections between the first device and the second and third devices before performing a search operation. Moreover, a single search operation enables the first device to search the first device and at least two other devices and display the search results for each device, without having to switch the device to which the first device is connected. This simplifies the user's search operation and improves search efficiency. It should be noted that the first, second, and third devices are all electronic devices.
[0009] In an implementation provided in the first aspect, the first device displays a first interface, including: in response to the user's operation of opening a gallery application, the first device displays a third interface; wherein the third interface includes a first option; in response to the user's operation on the first option, the first device displays a first interface, and the first interface also includes the first device's photo album.
[0010] That is, the user can view pictures, videos and other resources of other devices (such as the second device and the third device) through the gallery application of the first device.
[0011] In one implementation of the first aspect, the search results on the second device include prompt information on the second device, where the prompt information on the second device indicates the reason why data related to the keyword was not found on the second device. In other words, when the first device searches the data on the second device based on the keyword, it may not find any images related to the keyword. In this case, the first device may display the reason why images related to the keyword were not found.
[0012] In one implementation of the first aspect, a first device and a second device are connected, and the prompt information on the second device indicates that the second device does not contain data related to the keyword. In other words, the reason why no images related to the keyword were found may be that the second device does not contain data related to the keyword.
[0013] In one implementation of the first aspect, the first device and the second device fail to establish a connection, and the prompt information on the second device indicates the reason for the failure to establish a connection between the first device and the second device. In other words, the reason for not finding images related to the keyword may be that the first device fails to establish a connection with the second device and the first device fails to search for data on the second device.
[0014] In one implementation provided in the first aspect, the second interface further includes a second option, and the method further includes: in response to a user operation on the second option, the first device establishing a connection with the second device, and searching the data of the second device based on the keyword after the connection with the second device is established. That is, if the reason why no pictures related to the keyword are found is that the first device has not established a connection with the second device, the first device can display a second option (e.g., an option to "search again"), so that the user can trigger the first device to establish a connection with the second device and search the data of the second device based on the second option without exiting the search results page (i.e., the second interface), thereby simplifying the user operation.
[0015] In an implementation provided in the first aspect, the search results of the second device include thumbnails of pictures related to the keyword in the second device, and the method also includes: the first device detects the connection status between the first device and the second device; if the first device detects that the connection with the second device switches from a connected state to a disconnected state, and the first device can search for the second device, a fourth interface is displayed; wherein the fourth interface includes the search results of the first device and the reason for the disconnection between the first device and the second device; if the first device detects that the connection with the second device switches from a connected state to a disconnected state, and the first device cannot search for the second device, a fifth interface is displayed; wherein the fifth interface includes the search results of the first device, but does not include relevant information of the second device.
[0016] It can be understood that after the first device is disconnected from the second device, if the second device is discoverable (i.e., the first device can search for the second device), the first device can display the reason for the disconnection between the first device and the second device, so that the user can quickly find the cause and solve the problem; if the second device is not discoverable (i.e., the first device cannot search for the second device), any information of the second device will no longer be displayed in the first device.
[0017] In one implementation of the first aspect, the fourth interface further includes a third option for triggering the first device to establish a connection with the second device. That is, if the second device is discoverable, the first device may further display the third option to allow the user to quickly trigger the first device to reestablish a connection with the second device.
[0018] In an implementation provided in the first aspect, the method also includes: the first device continues to display the second interface within the first time after the first device is disconnected from the second device, and the second interface also includes a fourth option; in response to the user's operation on the fourth option, the first device displays a sixth interface; wherein the sixth interface includes the search results of the second device.
[0019] That is, after the first device is disconnected from the second device, the first device does not immediately stop displaying the second interface. Instead, within the first period after the first device is disconnected from the second device, because the thumbnail information of the second device's data is stored in the data center of the first device, the first device can continue to display the second interface and allow the user to view the data on the second device (i.e., display the sixth interface, also known as the grid page).
[0020] In an implementation manner provided by the first aspect, the first device is disconnected from the second device within a first time, and the first device does not detect that the first device is disconnected from the second device.
[0021] In one implementation of the first aspect, the method further includes: when the first device displays the sixth interface, if the first device detects that the connection with the second device has switched from a connected state to a disconnected state, displaying a seventh interface; wherein the seventh interface includes a first prompt message, the first prompt message being used to indicate that the first device is disconnected from the second device. In other words, the first device and the second device may be disconnected on the grid page, and the first device will display a disconnection prompt (i.e., the first prompt message) when detecting a disconnection with the second device.
[0022] In an implementation provided in the first aspect, the sixth interface also includes a fifth option, and the method also includes: in response to the user's operation on the fifth option, if the first device detects that the connection with the second device is switched from a connected state to a disconnected state, and the first device can search for the second device, then the eighth interface is displayed; wherein the eighth interface includes the search results of the first device and the reason for the disconnection between the first device and the second device; if the first device detects that the connection with the second device is switched from a connected state to a disconnected state, and the first device cannot search for the second device, then the ninth interface is displayed; wherein the ninth interface includes the search results of the first device, but does not include relevant information of the second device.
[0023] It can be understood that the fifth option can also be understood as a return button. When the first device detects that it is disconnected from the second device when displaying the grid page, the user can return to the search results page (for example, the second interface) through the fifth option. Among them, if the second device is discoverable (that is, the first device can search for the second device), then the first device can display the reason for the disconnection between the first device and the second device after returning to the search results page, so that the user can quickly find the cause and solve the problem; if the second device is not discoverable (that is, the first device cannot search for the second device), then after returning to the search results page, no information about the second device will be displayed.
[0024] In an implementation provided in the first aspect, the method also includes: in response to a user's operation on the first thumbnail of the second device on the sixth interface, the first device displays the tenth interface; wherein the tenth interface includes a second thumbnail, the first thumbnail is any one of the thumbnails of pictures related to the keyword in the second device, the first thumbnail and the second thumbnail are thumbnails of different sizes of the same picture, and the size of the first thumbnail is smaller than the size of the second thumbnail; if the first device detects that the connection with the second device is switched from a connected state to a disconnected state, the eleventh interface is displayed; wherein the eleventh interface includes a second prompt information, and the second prompt information is used to indicate that the first device is disconnected from the second device.
[0025] That is, the user can select the thumbnail to be viewed from the grid page. And, in response to the user selecting the thumbnail to be viewed from the grid page (such as the operation on the first thumbnail), the mobile phone can display the thumbnail of the larger size for the user to view.
[0026] In an implementation provided in the first aspect, the tenth interface also includes a sixth option, and the method also includes: in response to the user's operation on the sixth option, if the first device detects that the connection with the second device has switched from a connected state to a disconnected state, and the first device can search for the second device, the twelfth interface is displayed; wherein the twelfth interface includes the search results of the first device and the reason for the disconnection between the first device and the second device; if the first device and the second device switch from a connected state to a disconnected state, and the first device cannot search for the second device, the thirteenth interface is displayed; wherein the thirteenth interface includes the search results of the first device, but does not include relevant information of the second device.
[0027] It can be understood that the sixth option can also be understood as a return key. When the first device detects that it is disconnected from the second device when displaying the large image page (i.e., the tenth interface), the user can return to the search results page (e.g., the second interface) through the sixth option. Among them, if the second device is discoverable (i.e., the first device can search for the second device), then the first device can display the reason for the disconnection between the first device and the second device after returning to the search results page, so that the user can quickly find the cause and solve the problem; if the second device is not discoverable (i.e., the first device cannot search for the second device), then after returning to the search results page, no information about the second device will be displayed.
[0028] In an implementation provided in the first aspect, the method also includes: in response to the user's operation on the first thumbnail of the second device on the second interface, the first device displays the tenth interface; wherein the tenth interface includes the second thumbnail, a copy option, a download option, a share option and an edit option, the first thumbnail is any thumbnail of the thumbnails of pictures related to the keyword in the second device, the first thumbnail and the second thumbnail are thumbnails of different sizes of the same picture, and the size of the first thumbnail is smaller than the size of the second thumbnail; in response to the user's operation on the copy option, the first device copies the picture corresponding to the second thumbnail; in response to the user's operation on the download option, the first device downloads the picture corresponding to the second thumbnail; in response to the user's operation on the share option, the first device shares the picture corresponding to the second thumbnail; in response to the user's operation on the edit option, the first device displays an interface for editing the picture corresponding to the second thumbnail.
[0029] That is, the user can directly view a search result (e.g., the first thumbnail) on the second device on the search results page. In response to the user viewing the first thumbnail, the first device can display a larger thumbnail of the same image for easier viewing. At the same time, the first device can provide the user with options for copying, downloading, sharing, and editing the image corresponding to the thumbnail displayed in the interface, including copy, download, share, and edit options.
[0030] In an implementation provided in the first aspect, the method also includes: in response to the user's operation on the device name of the second device, if the first device and the second device successfully establish a connection, the first device displays a fourteenth interface; wherein the fourteenth interface includes thumbnail information of the data of the second device; if the first device and the second device do not establish a connection, the first device displays a fifteenth interface; wherein the fifteenth interface includes the reason for the failure to establish a connection between the first device and the second device.
[0031] That is, by clicking on the device name of another device (e.g., the second device, the third device), the first device can initiate a connection request with the other device. If the connection is successfully established, a brief summary of the data of the other device can be displayed; if the connection is not successfully established, the reason for the connection failure is displayed.
[0032] In one implementation of the first aspect, the first position in the fourteenth interface includes thumbnail information of the first data, and the first position in the sixteenth interface includes thumbnail information of the second data. The sixteenth interface is the interface last displayed by the first device in response to a user's operation on the device name of the second device. The position of the thumbnail information of the first data in the fourteenth interface is the same as the position of the thumbnail information of the second data in the sixteenth interface. In other words, the first device can record the user's historical browsing location and display data based on the historical browsing location.
[0033] In one implementation of the first aspect, the method further includes: if the first device detects that data has been updated on the second device, the first device displays a seventeenth interface; wherein the seventeenth interface includes thumbnail information of the updated data on the second device. In other words, the mobile phone can actively refresh the album page of the second device (e.g., the seventeenth interface) when data on the second device has been updated.
[0034] In a second aspect, the present application provides an electronic device, which includes: a memory, a processor and a display screen; the processor is coupled to the memory and the display screen; wherein the memory is used to store computer program code, and the computer program code includes computer instructions; when the computer instructions are executed by the processor, the electronic device executes the method as in the first aspect and any one of the first aspects.
[0035] In a third aspect, the present application provides a computer-readable storage medium comprising computer instructions; when the computer instructions are executed on an electronic device, the electronic device executes the method as in the first aspect and any one of the first aspects.
[0036] It can be understood that the beneficial effects that can be achieved by the electronic device of the second aspect and the computer-readable storage medium of the third aspect provided above can be referred to the beneficial effects in the first aspect and any possible implementation thereof, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] FIG1A is a diagram of a network architecture provided in an embodiment of the present application;
[0038] FIG1B is another network architecture diagram provided in an embodiment of the present application;
[0039] FIG2 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;
[0040] FIG3 is a software structure block diagram of an electronic device provided in an embodiment of the present application;
[0041] FIG4A is a set of interface diagrams provided in an embodiment of the present application;
[0042] FIG4B is a set of interface diagrams provided in an embodiment of the present application;
[0043] FIG5A is a set of interface diagrams provided in an embodiment of the present application;
[0044] FIG5B is an interface diagram provided by an embodiment of the present application;
[0045] FIG6 is a flow chart of a set of update data provided by an embodiment of the present application;
[0046] FIG7 is a set of interface diagrams provided in an embodiment of the present application;
[0047] FIG8 is a set of interface diagrams provided in an embodiment of the present application;
[0048] FIG9 is a set of interface diagrams provided in an embodiment of the present application;
[0049] FIG10 is a set of interface diagrams provided in an embodiment of the present application;
[0050] FIG11 is a set of interface diagrams provided in an embodiment of the present application;
[0051] FIG12A is a set of interface diagrams provided in an embodiment of the present application;
[0052] FIG12B is a set of interface diagrams provided in an embodiment of the present application;
[0053] FIG13 is a set of interface diagrams provided in an embodiment of the present application;
[0054] FIG14 is a set of interface diagrams provided in an embodiment of the present application;
[0055] FIG15 is a set of interface diagrams provided in an embodiment of the present application;
[0056] FIG16 is a set of interface diagrams provided in an embodiment of the present application;
[0057] FIG17 is a flowchart of a distributed data search method provided in an embodiment of the present application. DETAILED DESCRIPTION
[0058] The technical solutions in the embodiments of the present application are described below in conjunction with the drawings in the embodiments of the present application. Among them, in the description of the embodiments of the present application, the terms used in the following embodiments are only for the purpose of describing specific embodiments, and are not intended to be used as limitations on the present application. As used in the specification and claims of the present application, the singular expressions "a", "said", "above", "the" and "this" are intended to also include expressions such as "one or more", unless there is a clear contrary indication in the context. It should also be understood that in the following embodiments of the present application, "at least one", "one or more" refer to one or more (including two). The term "and / or" is used to describe the association relationship of associated objects, indicating that three relationships can exist; for example, A and / or B can represent: the existence of A alone, the existence of A and B at the same time, and the existence of B alone, where A and B can be singular or plural. The character " / " generally indicates that the associated objects before and after are in an "or" relationship.
[0059] References to "one embodiment" or "some embodiments" etc. described in this specification mean that the specific features, structures or characteristics described in conjunction with the embodiment are included in one or more embodiments of the present application. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. appearing in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in another way. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in another way. The term "connected" includes direct and indirect connections, unless otherwise stated. "First" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated.
[0060] In the embodiments of this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of this application should not be interpreted as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner.
[0061] To facilitate understanding, the system architecture involved in the embodiments of the present application is first described below.
[0062] The system architecture involved in the embodiments of the present application may include multiple electronic devices, which may be networked and may exchange information among the networked electronic devices. Networking methods include but are not limited to the following:
[0063] (1) Wi-Fi (wireless fidelity) networking mode: multiple electronic devices can access the same routing device (for example, a router). As shown in Figure 1A, mobile phone 10, mobile phone 20, tablet computer 30, and smart screen 40 can access router 50 to form a home network. Alternatively, multiple electronic devices can join the same hotspot device (for example, access the hotspot of the same mobile phone). At this time, the information interaction between multiple electronic devices can be forwarded through the hotspot device. For example, mobile phone 20, tablet computer 30, and smart screen 40 can access mobile phone 10 to form a hotspot network, and mobile phone 10 can act as a hotspot device to forward information for each electronic device. Alternatively, multiple electronic devices can also be networked through Wi-Fi P2P or Wi-Fi direct connection, etc., and the embodiments of this application are not limited to this.
[0064] (2) Cloud server networking mode: Multiple electronic devices can be connected to the same cloud server. In this case, the information exchange between multiple electronic devices can be forwarded through the cloud server. As shown in Figure 1B, the mobile phone 20, tablet computer 30, and smart screen 40 can be connected to the router 50 to form a home network. The router 50 can be connected to the server 60, and the mobile phone 10 can also be connected to the server 60. The server 60 can act as a transfer device to forward information for the router 50 and the mobile phone 10, that is, the router 50 can exchange information with the mobile phone 10 through the server 60. The mobile phone 10 can exchange information with electronic devices such as the mobile phone 20, tablet computer 30, and smart screen 40 through the server 60 and the router 50.
[0065] In one possible design, the mobile phone 10, mobile phone 20, tablet computer 30, smart screen 40, and router 50 can all be connected to the server, and the server can act as a transit device to forward information between the mobile phone 10, mobile phone 20, tablet computer 30, smart screen 40, and router 50. That is, the mobile phone 10, mobile phone 20, tablet computer 30, smart screen 40, and router 50 can exchange information through the server.
[0066] Alternatively, multiple electronic devices can also be connected to form a Bluetooth network. For example, multiple electronic devices (e.g., mobile phone 20, tablet computer 30, smart screen 40, and router 50) can be connected to the same Bluetooth device (e.g., mobile phone 10). In this case, information exchange between electronic devices can be forwarded via the Bluetooth device.
[0067] Multiple electronic devices can adopt multiple networking methods, for example, simultaneously adopt at least two of Wi-Fi networking, Bluetooth networking or cloud server networking, which is not limited in this application.
[0068] After multiple electronic devices are successfully networked, they can authenticate each other. If the authentication is successful, a trust loop can be established between the multiple electronic devices based on the network.
[0069] In an optional embodiment, multiple electronic devices can authenticate login accounts through a cloud server. For example, if the accounts logged into mobile phone 10, mobile phone 20, tablet computer 30, and smart screen 40 are mutually trusted accounts, such as if the account logged into mobile phone 10 is the same as the account logged into mobile phone 20, tablet computer 30, and smart screen 40, or is a verified family account, workgroup account, or other account with a trusted relationship, then the device authentication is determined to be successful based on the account, and a trust loop is established among mobile phone 10, mobile phone 20, tablet computer 30, and smart screen 40.
[0070] In another optional embodiment, the mobile phone 10, mobile phone 20, tablet computer 30, and smart screen 40 can also perform device authentication through preset passwords, code scanning, verification codes, etc. to establish a trust loop.
[0071] After establishing a trust loop, electronic devices can access media resources (also known as data) on other electronic devices in the same network. For example, mobile phone 10 can access resources such as pictures and videos on mobile phone 20, tablet computer 30, and smart screen 40. This is equivalent to the resources accessible by mobile phone 10 being stored in a distributed form on other electronic devices in the same network. Not limited to mobile phone 10, mobile phone 20, tablet computer 30, and smart screen 40 can also access resources on other electronic devices in the network like mobile phone 10.
[0072] It can be understood that electronic devices communicate and interact with resources based on the above-mentioned trust ring, which can ensure the security of data access between devices and reduce the risk of illegal access to resources.
[0073] Currently, electronic devices can search for resources on the device itself and other electronic devices that are in the same trust ring and have established connections. However, before searching, the electronic device needs to establish a connection with the electronic device to be searched in advance, otherwise the electronic device cannot search for resources on other electronic devices. In addition, except for the device itself, an electronic device can only search for resources on one electronic device at a time. If it needs to search for resources on another electronic device, it is necessary to disconnect the connected electronic device and perform the search operation after establishing a connection with the other electronic device. It can be seen that the method provided by the relevant technology requires the user to perform multiple operations, which is cumbersome and affects the user experience.
[0074] The present application provides a distributed data search method in which a first device can search the first device, a second device, and a third device based on keywords entered in a search box, to obtain search results for the first device, the second device, and the third device, respectively. The first device does not need to establish a connection with the second device or the third device in advance, and can search data on the second and third devices simultaneously, simplifying the user's data search operation and improving the user experience.
[0075] The first device, the second device, and the third device are all electronic devices. The electronic device may be a mobile phone, a tablet computer, a television (also referred to as a smart screen), a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a personal digital assistant (PDA), an augmented reality (AR) device, a virtual reality (VR) device, an artificial intelligence (AI) device, a wearable device, an in-vehicle device, a smart home device, and / or a smart city device. The embodiments of the present application do not impose any special restrictions on the specific type of the electronic device.
[0076] In the embodiment of the present application, the structure of the electronic device provided in the embodiment of the present application is illustrated by taking the above-mentioned electronic devices (such as mobile phone 10 or mobile phone 20) as an electronic device 200 as an example. As shown in Figure 2, the electronic device 200 may include: a processor 210, an external memory interface 220, an internal memory 221, a universal serial bus (USB) interface 230, a charging management module 240, a power management module 241, a battery 242, an antenna 1, an antenna 2, a mobile communication module 250, a wireless communication module 260, an audio module 270, a speaker 270A, a receiver 270B, a microphone 270C, an earphone interface 270D, a sensor module 280, a button 290, a motor 291, an indicator 292, a camera 293, a display 294, and a subscriber identification module (SIM) card interface 295.
[0077] Among them, the above-mentioned sensor module 280 may include sensors such as pressure sensor, gyroscope sensor, air pressure sensor, magnetic sensor, acceleration sensor, distance sensor, proximity light sensor, fingerprint sensor, temperature sensor, touch sensor, ambient light sensor and bone conduction sensor.
[0078] It should be understood that the structure illustrated in this embodiment does not constitute a specific limitation on the electronic device 200. In other embodiments, the electronic device 200 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0079] The processor 210 may include one or more processing units. For example, the processor 210 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). Different processing units may be independent devices or integrated into one or more processors.
[0080] The controller may be the nerve center and command center of the electronic device 200. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
[0081] Processor 210 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 210 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 210. If processor 210 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 210 latency, and thus improves system efficiency.
[0082] In some embodiments, the processor 210 may include one or more interfaces. The interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface.
[0083] It is understood that the interface connection relationship between the modules illustrated in this embodiment is merely an illustrative illustration and does not limit the structure of the electronic device 200. In other embodiments, the electronic device 200 may also adopt different interface connection methods from the above embodiments, or a combination of multiple interface connection methods.
[0084] The wireless communication module 260 can provide wireless communication solutions for application on the electronic device 200, including WLAN (such as wireless fidelity, Wi-Fi network), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication technology (NFC), infrared technology (IR), etc.
[0085] The display screen 294 is used to display images, videos, etc. The display screen 294 includes a display panel.
[0086] The external memory interface 220 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 200. The external memory card communicates with the processor 210 via the external memory interface 220 to implement data storage functions. For example, files such as music and videos can be stored on the external memory card.
[0087] The internal memory 221 can be used to store computer executable program code, which includes instructions. The processor 210 executes various functional applications and data processing of the electronic device 200 by running the instructions stored in the internal memory 221. For example, in an embodiment of the present application, the processor 210 can execute instructions stored in the internal memory 221, and the internal memory 221 can include a program storage area and a data storage area.
[0088] The program storage area may store an operating system, at least one application required for a function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 200 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 221 may include a high-speed random access memory and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.
[0089] FIG3 is a schematic diagram of the software structure of an electronic device 200 provided in an embodiment of the present application. A layered architecture divides software into several layers, each with clear roles and division of labor. Layers communicate with each other via software interfaces. In some embodiments, the software architecture of device A, device B, and device C is divided into three layers, wherein device A, device B, and device C all include an application layer, a service layer, and a kernel layer. It should be noted that in FIG3, device A, device B, and device C each include an application layer, a service layer, and a kernel layer, respectively.
[0090] As shown in Figure 3, the application layer may include distributed applications such as camera, gallery, and file management.
[0091] In an embodiment of the present application, the service layer may include a device management module and a data middle platform.
[0092] Among them, the device management module can save information such as the device name, device type, device status, device capability, and authentication status of other devices. Among them, the device name is the name of the other device, and the device name can be the Bluetooth name of the other device, or the International Mobile Equipment Identity (IMEI) of the other device, etc., which is not limited in this application. Device types may include mobile phones, tablets, TVs, etc. The device status may refer to the current state of other devices, which may include discoverable and undiscoverable. Among them, the discoverable state means that the distance between the other device and the machine is within the preset distance, and the machine can search for other devices; the undiscoverable state means that the distance between the other device and the machine is outside the preset distance, or the other device turns off Bluetooth, Wi-Fi, or is turned off, and the machine cannot search for other devices.
[0093] Device capabilities indicate whether other devices support data sharing. Authentication status indicates whether the device has authenticated the other device and whether the other device is trustworthy.
[0094] The data center can be used to store data on the local machine and other devices, such as pictures, videos, etc. The application layer can call the data on the data center through the corresponding interface (such as the SDK interface corresponding to the application) and display the data on other devices to the user through the user interface.
[0095] The kernel layer includes the kernel (not shown in Figure 3). The kernels of different devices may vary depending on the device type. For example, if device A and device B are a mobile phone and tablet, respectively, and device C is a laptop, then devices A and B can use the Linux kernel, while device C can use the Windows kernel.
[0096] The following takes the first device as a mobile phone as an example and describes in detail the distributed data search method provided in the embodiment of the present application in combination with the accompanying drawings.
[0097] It should be noted that the distributed data search method provided in the embodiments of the present application can be applied to gallery applications, file management applications, video applications, music applications, and the like, and can be used to manage and search for photos and videos in gallery applications, files in file management applications, videos in video applications, or music in music applications. The following uses the gallery application as an example to illustrate the distributed data search method provided in the embodiments of the present application.
[0098] As shown in (a) of Figure 4A, the mobile phone can display a main interface 401, which can also be called a desktop. The main interface 401 can include an icon 402 of a gallery application. The mobile phone can receive an operation in which a user clicks on icon 402. In response to this operation, the mobile phone can start the gallery application and display an interface 403 as shown in (b) of Figure 4A. Among them, interface 403 can also be called an album interface. It should be noted that in response to the user clicking on icon 402, the mobile phone can start the gallery application and display the photo interface of the gallery. The photo interface includes thumbnails of photos in the gallery or large images of a certain photo. In the photo interface, the above-mentioned interface 403 is displayed in response to the user's operation on the "album" control.
[0099] As shown in (b) in Figure 4A, interface 403 includes multiple albums, among which the "All Photos" album includes 2023 photos, the "Camera" album includes 1502 photos and videos, the "Screenshots and Recordings" album includes 102 photos and videos, the "My Favorites" album includes 48 photos and videos, the "One Record, Multiple Gains" album includes 34 photos and videos, the "Video Editing" album includes 65 videos, the "Self-Created Album" includes 57 photos and videos, and the "Shared Album" includes 100 photos and videos.
[0100] In an optional embodiment, in response to the user launching the gallery application, the mobile phone can automatically search for other devices in the same trust circle. Taking the trust circle as an example, which devices under user S's account are within a preset distance from the mobile phone (i.e., the mobile phone)? For other devices under user S's account (other than the mobile phone) that are within the preset distance from the mobile phone, the mobile phone can display the device names of these devices.
[0101] In another optional embodiment, before the mobile phone receives the user's operation to start the gallery application, the mobile phone can automatically search for other devices in the same trust circle. In response to the user's operation to start the gallery application, the mobile phone can directly display the device names of the other devices found.
[0102] Exemplarily, when the mobile phone has discovered other devices in the same trust circle around it, such as the mobile phone, Pad and smart screen of user S, in response to the user starting the gallery application, the mobile phone can display interface 404 as shown in (c) in Figure 4A. Among them, interface 404 is similar to interface 403, the difference is that interface 404 also includes "this device" 404a and the names of other devices discovered by the mobile phone, such as "S's mobile phone" 404b, "S's Pad" 404c and "S's smart screen" 404d. Among them, "this device" 404a is in a selected state to indicate that the album on interface 404 comes from this device (i.e., mobile phone). In addition, interface 404 also includes a search box 404e. Among them, the search box 404e allows users to enter keywords so that the mobile phone can search for data on this device and the peer device based on the keywords.
[0103] In practice, the number of multiple electronic devices in the same trust ring can be more or less. For example, the number of multiple electronic devices is a small number such as 2 or 3; or, the number of multiple electronic devices is a large number such as more than 3. However, the number of electronic devices that a mobile phone can connect to is limited, and the options for electronic devices that can be displayed simultaneously in the album interface are limited. Therefore, in the album interface, the mobile phone can display the options of electronic devices (such as user S’s mobile phone, Pad, and smart screen) in order from the discovery time from front to back, so that the options of the electronic devices are arranged regularly according to the discovery time, which makes it easier for users to find the corresponding options.
[0104] It should be noted here that before the album interface is displayed, all electronic devices discovered by the mobile phone are considered to be discovered at the same time. For example, electronic devices discovered during the process of the mobile phone displaying the desktop or the photo interface of the gallery application (the photo interface includes local photos) are considered to be discovered at the same time. In the process of displaying the album interface, the electronic devices discovered by the mobile phone are divided into the order of discovery. Of course, in the process of displaying the album interface, the mobile phone can also discover at least two electronic devices at the same time.
[0105] Furthermore, when the mobile phone displays the album interface, it can be sorted by preset device type and display options for electronic devices discovered at the same time, so that the options for electronic devices discovered at the same time can also be arranged in sequence according to device type, further facilitating users to find corresponding options from multiple electronic devices discovered at the same time. Among them, device types include multiple items of mobile phones, tablets, smart screens, and PCs. The preset device type sorting can be any combination of the order of the above-mentioned multiple device types. For example, the preset device type sorting is as follows: mobile phone, tablet, PC, smart screen.
[0106] Taking the preset device type order of mobile phone, tablet, PC, and smart screen as an example, before displaying the album interface (such as when displaying the photo interface of the gallery app), at time t1, the mobile phone discovers smart screen 520, and at time t2, the mobile phone discovers tablet 510. That is, tablet 510 and smart screen 520 can be considered to be discovered simultaneously. At time t3, in response to the operation of entering the album interface, the mobile phone can display interface 501 shown in Figure 4B. Interface 501 is the album interface. In interface 501, the option "S's PAD" 5011 for tablet 510 is displayed first, and the option "S's Smart Screen" 5012 for smart screen 520 is displayed after. That is, the options for the simultaneously discovered tablet 510 and smart screen 520 are displayed in the preset device type order. After displaying interface 501, at time t4, the mobile phone discovers mobile phone 530. That is, the mobile phone first discovers tablet 510 and smart screen 520, and then discovers mobile phone 530. At time t5 after the mobile phone 530 is discovered, the mobile phone can display the interface 502 shown in Figure 4B. The difference from interface 501 is that the interface 502 includes a prompt "1 new device has been discovered, swipe left to view". Then, in response to the user's sliding operation from right to left in the interface 502, the mobile phone can display the interface 503. In the interface 503, after "S's PAD" 5011 and "S's smart screen" 5012, the option "S's mobile phone 0" 5031 of the mobile phone 530 is also displayed. That is, the options of the tablet 510 and the smart screen 520 discovered first are displayed in front, and the options of the mobile phone 530 discovered later are displayed in the back.
[0107] Furthermore, the electronic devices discovered simultaneously may include electronic devices of the same type. If the electronic devices discovered simultaneously include electronic devices of the same type (referred to as devices of the same type), the mobile phone may display options for devices of the same type according to their option names. For example, the options may be sorted alphabetically by their English first names.
[0108] Still taking the preset device type order of mobile phone, tablet, PC, and smart screen as an example, the electronic devices discovered at the same time include tablet 510, smart screen 520, and tablet 540. Then, when the mobile phone displays the options of tablet 510, smart screen 520, and tablet 540, it can display the options of smart screen 520 after the options of tablet 510 and tablet 540. In addition, the option name of tablet 510 is "S's PAD" and the option name of tablet 540 is "C's Tablet". Among them, the first letter of "S's PAD" is S, and the first letter of "C's Tablet" is C, and C is before S. Then, the mobile phone can display the options of tablet 510 before the options of tablet 540.
[0109] Still taking the preset device type order as mobile phone, tablet, PC, smart screen, and the number of electronic device options displayed simultaneously on the mobile phone in the album interface as 3 as an example, if the electronic devices discovered by the mobile phone at the same time include tablet 510, tablet 540, mobile phone 530 and smart screen 520. Then, the mobile phone can display the options of tablet 510, tablet 540 and mobile phone 530 in the album interface, where the options of mobile phone 530 are located before the options of tablet 510 and tablet 540, and the order of the options of tablet 510 and tablet 540 can be sorted according to the English first letters of the two devices. In addition, it should be noted that in other embodiments, the number of electronic devices that the mobile phone can connect to / the number of electronic device options displayed simultaneously in the album interface can also be more, and there is no specific limitation here.
[0110] In the embodiment of the present application, the user can view the photo album of the peer device in the interface of the local device, and search for data on both the local device and the peer device. The following will introduce the above two scenarios respectively, wherein Figures 5A-13 specifically illustrate the interface involved in the user viewing the photo album of the peer device in the interface of the local device, and Figures 14-16 specifically illustrate the interface involved in the user searching for data on both the local device and the peer device on the local device.
[0111] It should be noted that the peer device may refer to other devices in the trust ring other than the local device, such as the mobile phone, pad, or smart screen of user S in interface 404. The peer device may also be referred to as the second device, the third device, etc.
[0112] If the phone fails to establish a connection with the peer device, the user can click on the device name to establish a connection. If the connection is successful, the phone can automatically retrieve the shareable data stored on the peer device and display the data, such as thumbnails of photos. If the connection fails, the phone can display the reason for the failure.
[0113] Taking the example of a user clicking on “S’s Pad” 404 c , the following specifically describes the interface involved in the user viewing the photo album on S’s Pad in conjunction with FIG. 5A .
[0114] As shown in FIG5A (a), in response to a user clicking "S's Pad" 404c, the mobile phone establishes a connection with S's Pad. If the connection between the mobile phone and S's Pad is successfully established, the mobile phone may display interface 405 as shown in FIG5A (b). "S's Pad" 404c is selected, indicating that the album on interface 405 is from S's Pad. In addition, interface 405 may display multiple albums from S's Pad. The "All Photos" album includes 590 photos and / or videos, the "Camera" album includes 410 photos and / or videos, the "Screenshots and Recordings" album includes 60 photos and / or videos, the "My Favorites" album includes 50 photos and / or videos, the "Record Multiple" album includes 10 photos and / or videos, the "Video Editing" album includes 65 videos, and the "Self-Created Albums" album includes 57 photos and / or videos.
[0115] If the mobile phone fails to establish a connection with S's Pad, the mobile phone may display interface 406 as shown in (c) of Figure 5A. Interface 406 includes a disconnection reminder 406a and a "Reload" option 406b. Disconnection reminder 406a is used to indicate to the user the reason for the connection failure. The reason for the connection failure may be that the number of devices connected to the local or peer device has reached the upper limit, there is some abnormality in the local or peer device, the network is abnormal, or the device type of the peer device does not support sharing gallery data, etc.
[0116] Exemplarily, the disconnection reminder 406a may be any one of the following prompt messages: "This device does not currently support collaboration with "X type device", "The collaboration quantity of this device has reached the upper limit, please disconnect a device and try again", "The collaboration quantity of S's Pad has reached the upper limit, please disconnect a device and try again", "Connection abnormality, try restarting WLAN and try again", "Connection failed, please confirm that the device is nearby and WLAN and Bluetooth are turned on", "Connection abnormality, please try again later", "Device connection status is recovering, please try again later", etc. Optionally, the disconnection reminder 406a may also include graphics. It should be noted that when both the mobile phone and the peer device have reasons that lead to connection failure, the mobile phone will give priority to displaying the reasons of this device so that the user can quickly troubleshoot.
[0117] Among them, the number of devices connected to the peer device reaching the upper limit may mean that the number of devices with which the peer device is collaborating has reached the upper limit. For example, the peer device can collaborate with up to three devices at the same time. If the peer device is projecting the screen on one device, sharing the keyboard and mouse with a device, and calling the camera of another device across devices, then since the peer device has already collaborated with three devices, it cannot collaborate with the fourth device (such as this device).
[0118] "Reload" option 406b provides a shortcut for reconnecting the local device to the peer device. For example, in response to the user's operation on "Reload" option 406b, the mobile phone reconnects to the S's Pad. It should be noted that reloading not only involves reconnecting the local device to the peer device, but also includes the local device obtaining the data on the peer device that can be shared while the connection is established.
[0119] In an optional embodiment, before the mobile phone displays interface 405 or interface 406, the mobile phone may also display a loading interface indicating that the mobile phone is loading data from the peer device (e.g., S Pad). Exemplarily, the loading interface may be interface 407 shown in FIG5B . Interface 407 may be used to display a loading animation indicating that the mobile phone is loading data from the peer device. For example, the loading animation may include a rotating circle. Optionally, interface 407 may also include progress information indicating the loading progress, such as a loading progress of 50%, 70%, etc.
[0120] In the embodiment of the present application, when a mobile phone successfully establishes a connection with a peer device, if the peer device has updated data, the mobile phone can obtain the updated data from the peer device and display the updated data on the peer device's photo album interface. The following describes the process of obtaining updated data and the process of displaying updated data.
[0121] The process of obtaining updated data is as follows:
[0122] When the mobile phone successfully establishes a connection with the peer device, the peer device can synchronize the updated data to the local device when there is data update, so that the local device can perceive the data update of the peer device.
[0123] Among them, the existence of data update on the peer device can be understood as the addition, reduction or adjustment of the album of the shareable pictures / videos on the peer device. As shown in Figure 6, when there is data update on the peer device, the peer device can transmit the updated data to the data middle platform of the peer device through the gallery application of the peer device, and then the data middle platform of the peer device will synchronize the updated data to the data middle platform of the local device, and then the data middle platform of the local device will notify the gallery application of the local device that there is data update on the peer device, or in other words, the data middle platform of the local device will synchronize the updated data of the peer device to the gallery application of the local device.
[0124] Alternatively, the peer device can periodically synchronize updated data to the phone, and the phone can periodically synchronize data from the local data center to the local gallery app. For example, when the phone is connected to the peer device, the phone can synchronize data from the local data center to the local gallery app every 10 minutes.
[0125] In an optional embodiment, if the gallery application is switched to the background and no data is transmitted between the mobile phone and the peer device for a first period of time, for example, if no data is updated between the mobile phone and the peer device for a first period of time, the mobile phone can disconnect from the peer device. This can reduce power consumption caused by the long-term connection between the mobile phone and the peer device.
[0126] The process of displaying updated data may include at least the following situations:
[0127] (1) The mobile phone obtains the updated data of the peer device when displaying the album interface of the peer device (e.g., interface 405 in FIG. 5A ). In this case, the mobile phone can refresh the album interface of the peer device in real time and display the updated data in the album interface of the peer device.
[0128] (2) The mobile phone obtains updated data from the peer device when displaying the album interface of the mobile phone or other interfaces. In this case, the mobile phone can display the updated data in the album interface of the peer device when the user clicks the device name of the peer device.
[0129] The above two situations are described below based on Figures 7 and 8, respectively. The opposite device is the Pad of S shown in Figures 7 and 8.
[0130] As shown in (a) of Figure 7 , the phone can display the album interface of S's Pad, namely, interface 701. If the phone receives updated data from S's Pad while displaying interface 701, the phone can display interface 702 as shown in (b) of Figure 7 . Interface 702 is similar to interface 701, except that the number of photos saved in S's Pad has increased from 590 in interface 701 to 592 in interface 702, the number of photos captured by the camera has increased from 410 in interface 701 to 412 in interface 702, and "New Album" has been added to interface 702 compared to interface 701, and the "New Album" includes three photos.
[0131] As shown in Figure 8 (a), the mobile phone may display its photo album interface, such as interface 801. If the mobile phone receives updated data from S's Pad while displaying interface 801, then in response to the user clicking "S's Pad" 404c, the mobile phone may display interface 802, as shown in Figure 8 (b). If the mobile phone does not receive updated data from S's Pad while displaying interface 801, then in response to the user clicking "S's Pad" 404c, the mobile phone may display interface 803, as shown in Figure 8 (c). Comparing interface 802 with interface 803, it can be seen that after the data on S's Pad was updated, two new photos were added to S's Pad, two new photos were acquired via the camera, and a new album named "New Album" containing three photos was added to S's Pad. Optionally, if the data in an album changes, the album cover may also change, for example, to a thumbnail of the most recently added photo.
[0132] It should be noted that after the data center of the mobile phone receives the data updated by the peer device, there is still a process in which the mobile phone's gallery application obtains the updated data of the peer device from the mobile phone's data center, or the mobile phone's data center sends the updated data of the peer device to the mobile phone's gallery application. In other words, the mobile phone's gallery application still needs to load data. Taking into account that it takes a certain amount of time for the gallery application to load data, before the mobile phone displays interface 802, the mobile phone can also display a loading interface to indicate that the mobile phone is loading the data of S's Pad. Among them, the loading interface can be similar to interface 407 shown in Figure 5B, and will not be repeated here. After the gallery application has reloaded the data, the above-mentioned interface 802 can be displayed.
[0133] In an embodiment of the present application, when the mobile phone displays an album interface, the user can slide the album interface up and down to adjust the album displayed in the album interface. The mobile phone can record the user's browsing position in the album interface (hereinafter referred to as the historical browsing position). The historical browsing position can be determined based on the album distribution and the anchor point, and is used to indicate the position of the album currently located at the anchor point position among all albums. It should be noted that the historical browsing position is only used to indicate the position, not to indicate a specific album.
[0134] The album distribution indicates the number of albums and the layout of all albums. For example, the album layout can be 3x4, 4x5, etc., where 3x4 means the albums are arranged in 3 rows and 4 columns. It should be noted that a 3x4 album layout does not mean that the device includes 12 albums; it may also include 10 or 11 albums, and the same applies to other layouts.
[0135] The anchor point may be any position on the album interface, for example, the first boundary at a first distance from the upper boundary / lower boundary of the album interface, and is not specifically limited here.
[0136] For example, let's assume that the anchor point is 100 dpi (dots per inch) from the top edge of the album interface, and the S pad includes 11 albums arranged in a 3x4 (i.e., 3 columns and 4 rows) layout. In interface 901 shown in FIG9 (a), the albums 100 dpi from the top edge of the album interface include "All Photos," "Camera," and "My Favorites." Therefore, the historical browsing position is the first row of all albums, i.e., the row containing the three albums "All Photos," "Camera," and "My Favorites." In response to the user swiping up on interface 901, the phone may display interface 902 shown in FIG9 (b). In interface 902, the albums 100 dpi from the top edge of the album interface include "Screenshots and Recordings," "Multiple Recordings," and "Video Editing." Therefore, the historical browsing position is the second row of all albums, i.e., the row containing the three albums "Screenshots and Recordings," "Multiple Recordings," and "Video Editing."
[0137] That is to say, when the user has browsed the album interface of the peer device, the mobile phone can record the browsing position of the user when browsing the album interface of the peer device (i.e., the historical browsing position). When the mobile phone receives an operation to switch to the album interface of the peer device again (for example, the operation of clicking "S's Pad" 404c), in response to the operation, the mobile phone can determine the target album based on the current album distribution of the peer device and the historical browsing position, and then display the target album at the anchor point position of the album interface. In this way, when the mobile phone displays the album interface of the peer device again, the browsing position of the user before switching the interface is still retained in the album interface of the peer device, so as to avoid the user from sliding the interface again, thereby improving the efficiency of human-computer interaction.
[0138] For example, as shown in FIG10(a), the mobile phone may display interface 902. For example, if the distance from the anchor point to the top edge of the album interface is 150 dpi, the mobile phone records the historical browsing position corresponding to interface 902 as the second row of all albums. In response to a user clicking "Local" 404a in interface 902, the mobile phone may display interface 1001 as shown in FIG10(b). In response to a user clicking "S's Pad" 404c, the mobile phone may display interface 1002 as shown in FIG10(c). It is understood that if data on S's Pad is updated, the mobile phone may reload data from S's Pad in response to the user clicking "S's Pad" 404c. Based on the historical browsing position and the distribution of albums on S's Pad, the mobile phone may determine that the album at the anchor point in interface 1002 should be the "New Album," "Screenshot and Recording," or "Record Multiple Albums" currently in the second row of albums. Therefore, by comparing interface 1002 with interface 902, it can be seen that the albums located at the anchor point position in interface 1002 and interface 902 are both in the second row of all albums, but due to the data update of S's Pad, the album at the anchor point position in interface 1002 is different from the album at the anchor point position in interface 902, that is, "New Album" is added to interface 1002.
[0139] Optionally, in order to make the interface switching process smooth, the mobile phone can also display a transition animation when switching from the album interface of one device to the album interface of another device. The transition animation includes an animation of the album and the selection mark sliding from right to left or from left to right. For example, (a), (b) and (c) in Figure 11 show the process of switching from interface 1101 to interface 1102. The album in the interface gradually changes from the album of this device to the album of S's Pad, and the selection mark 1101a gradually moves from the position of the mark "this device" to the position of the mark "S's Pad". It should be noted that the picture displayed in interface 1103 is only one frame of the transition animation, which is used to illustrate the transition animation. In fact, the transition animation may include multiple frames of images, and the positions of each album and the selection mark in each frame are different.
[0140] It should be noted that the above only uses the process of switching from the local photo album interface to the peer device's photo album interface as an example. In fact, when switching from the peer device's photo album interface to the local photo album interface, it can also be determined whether there is data update on the local device, there can also be transition animations, and historical browsing positions can be recorded. The logic is the same as the logic of switching from the local photo album interface to the peer device's photo album interface, so it will not be repeated here.
[0141] In the embodiment of the present application, the mobile phone can also search for data on the local device and / or the peer device.
[0142] As shown in (a) of Figure 12A, the mobile phone can display the local album interface 1201. The album interface 1201 may include a search box 1202, "S's mobile phone" 1201a, "S's Pad" 1201b, and "S's smart screen" 1201c. The mobile phone can receive an operation of the user clicking on the search box 1202. In response to the operation, the mobile phone can display the interface 1203 shown in (b) of Figure 12A. The interface 1203 can display the classification information of the photos to the user. For example, in interface 1203, the mobile phone classifies the local photos according to time, portraits, and things. For example, under the time tag, the mobile phone classifies the local photos according to the three time tags of "this month", "last month", and "this year". The "this month" album includes photos or videos taken by the mobile phone this month, the "last month" album includes photos or videos taken by the mobile phone last month, and the "this year" album includes photos or videos taken by the mobile phone this year. Under the Portrait tab, the phone categorizes the photos by person, such as the four different people in interface 1203. Under the Activity tab, the phone categorizes the photos by "Landscape," "Animals," "Documents," and "Architecture." It should be noted that the above categorization tags can also be other, and are not specifically limited here. Furthermore, users can view this categorized information without entering keywords.
[0143] Optionally, the interface 1203 may further include a search history 1203a and a "Clear" 1203b option. The search history includes keywords that the user has entered, such as "flowers", "coffee", "cat", etc. The mobile phone can receive an operation in which the user clicks on "Clear" 1203b, and in response to this operation, the mobile phone can clear the search history. After the mobile phone clears the search history, the keywords that the user has entered are no longer displayed on the interface 1203. For example, as shown in (b) in Figure 12A, in response to the user clicking on "Clear" 1203b, the search history 1203a is no longer displayed on the interface 1203 of the mobile phone, and the picture displayed below moves up.
[0144] In addition, if there are any peer devices displayed in the album interface 1201 that have not established a connection with the mobile phone, in response to the user clicking the search box, the mobile phone can establish a connection with all the peer devices displayed in the album interface 1201 that have not established a connection with the mobile phone, so as to pre-acquire data on the peer devices, so that subsequent searches can be quickly performed based on keywords.
[0145] For example, when the mobile phone displays the album interface, it discovers four devices in sequence: S's mobile phone, S's Pad, S's smart screen and S's mobile phone 2. However, based on the time order in which the mobile phone discovers the above four devices, the mobile phone only displays three devices: S's mobile phone, S's Pad and S's smart screen in the album interface 1201.
[0146] In the above case, if the mobile phone has not established a connection with S's mobile phone, S's Pad and S's smart screen, in response to the user clicking the search box 1202, the mobile phone can establish a connection with S's mobile phone, S's Pad and S's smart screen respectively.
[0147] Still in the above situation, if the mobile phone has established a connection with S's mobile phone, but has not established a connection with S's Pad and S's smart screen, then in response to the user clicking the search box 1202, the mobile phone can establish connections with S's Pad and S's smart screen respectively.
[0148] In response to the user entering the keyword "cat" in the search box 1202, the mobile phone can search for data related to the keyword "cat" on the local device and the peer device, and display the search progress in real time. The search progress includes searching and search completion. Searching means that the mobile phone is searching for data related to the keyword "cat". Search completion can mean that the mobile phone has obtained the search results, or that the mobile phone has not obtained the search results but has stopped searching. Obtaining the search results can be understood as searching for pictures or videos related to the keyword on the device; not obtaining the search results can be understood as not finding pictures or videos related to the keyword on the device, or not searching the device because the connection is not established.
[0149] It should be noted that the search progress of different devices may be different. For example, before searching for data on the peer device, the mobile phone may also need to establish a connection with the peer device and obtain the data of the peer device. Therefore, there may be a situation where the search progress of the mobile phone is at the end of the search, while the search progress of the peer device is still in the process of searching. For example, as shown in (c) in Figure 12A, the mobile phone may display interface 1204. Among them, interface 1204 displays the search results of this machine, such as 239 photos related to "cat" from this machine, indicating that the search progress of this machine is at the end of the search. Interface 1204 also shows that the search progress of S's mobile phone, S's Pad and S's smart screen is in the process of searching.
[0150] Optionally, the search results of this device also include associative words obtained by associating with the keywords, and classification information for classifying the searched photos related to the keywords. For example, the mobile phone associates the keyword "cat" with associative words such as "giant panda" and photos containing the word "cat", and then classifies the searched photos according to the associative words, resulting in 100 photos and videos related to "giant panda" and 32 photos and videos containing the word "cat". In response to the user's operation on "giant panda", the mobile phone can display all photos and videos under the "giant panda" category.
[0151] Optionally, the mobile phone can also perform a progressive search based on keywords, with the search results on the mobile phone also including the search results obtained by the progressive search. Progressive search can be understood as gradually narrowing the search scope. For example, a mobile phone can search for the keyword "cat" within the scopes of "Country X," "City X," and "District X," and obtain photos or videos related to the keyword "cat" within "Country X," "City X," and "District X," respectively.
[0152] In an embodiment of the present application, for a device that obtains search results, the mobile phone can display the search results of the device in the search results interface; for a device that does not obtain search results, the mobile phone can display the reason for not obtaining search results in the search results interface.
[0153] Exemplarily, after the search progress of all devices is completed, the mobile phone can display the search results interface. The search results interface can be interface 1205 shown in (d) in Figure 12A. Interface 1205 shows that the mobile phone obtains search results for this device and S's Pad, but does not obtain search results for S's mobile phone. For example, the search results of this device include 239 photos related to "cat" from this device, and the reason for not obtaining the search results of S's mobile phone is "The number of collaborations of S's mobile phone has reached the upper limit, please disconnect one device and try again", that is, the mobile phone did not obtain the data of S's mobile phone and the search was not completed. It should be noted that due to the limitation of the interface size, only part of the search results of S's Pad are shown in interface 1205, and it does not show whether the search results of S's smart screen are obtained.
[0154] If the mobile phone fails to obtain search results from the peer device because the mobile phone and the peer device are not connected, the mobile phone may also provide a re-search option. For example, interface 1205 also includes "Re-search" 1205a. In response to the user's operation on "Re-search" 1205a, the mobile phone re-establishes the connection with S's mobile phone to re-search S's mobile phone for resources related to the keyword "cat".
[0155] If the mobile phone fails to obtain search results from the peer device because the peer device does not have resources related to the keyword, the mobile phone may not provide a re-search option. For example, as shown in interface 1206 in (e) of FIG12A , the search results from S's mobile phone are "No pictures or videos found," and interface 1206 does not include a "Re-search" control or icon.
[0156] In response to the user sliding down interface 1206, the phone may display interface 1207, as shown in FIG12B (a). Interface 1207 includes search results for S's Pad, namely, thumbnails of 45 images or videos related to the keyword "cat." For example, the S's Pad search results include thumbnail 1207a. In response to the user's operation on thumbnail 1207a, the phone may display interface 1208, as shown in FIG12B (b). Interface 1208 may include thumbnail 1208a, which is a different-sized thumbnail of the same image as thumbnail 1207a. Thumbnail 1208a is larger than thumbnail 1207a, making it easier for the user to preview. Interface 1208 also includes options such as "Share," "Edit," "Download," and "Copy." In response to the user's operation on "Share," "Edit," "Download," or "Copy," the phone can share, edit, download, or copy the photo corresponding to thumbnail 1207a.
[0157] It should be noted that in response to receiving a search operation for a keyword (e.g., "cat") entered in the search box, the mobile phone can search local data based on the keyword and send a search instruction containing the keyword to the peer device. After receiving the search instruction, the peer device can search based on the keyword to obtain search results, which include identifiers of images and videos related to the keyword on the peer device. After the peer device sends the search results to the mobile phone, the mobile phone can display the search results based on the identifiers carried in the search results.
[0158] In an embodiment of the present application, the mobile phone can periodically detect the connection status between the mobile phone and the peer device. If a change in the connection status between the mobile phone and the peer device is detected, the mobile phone can refresh the content corresponding to each device on the search result interface.
[0159] There are two situations in which the connection status between the local device and the peer device changes: (1) switching from a disconnected state to a connected state; and (2) switching from a connected state to a disconnected state.
[0160] In the case (1) above, that is, when the mobile phone detects that the state between the mobile phone and the peer device has switched from disconnected to connected, the mobile phone can search the data of the peer device after establishing a connection with the peer device to see whether the data of the peer device includes data related to the keyword. If the data of the peer device includes data related to the keyword, the mobile phone can display the search results of the peer device on the search results interface; if the data of the peer device does not include data related to the keyword, the mobile phone can display a prompt message on the search results interface indicating that the data of the peer device does not include data related to the keyword.
[0161] Regarding the above situation (2), that is, when the mobile phone detects that the connection state between the mobile phone and the peer device has switched to a disconnected state, the mobile phone can display different content on the search result interface according to the device state of the peer device.
[0162] Among them, the device status of the peer device includes discoverable and undiscoverable. Among them, the discoverable state means that the peer device and the mobile phone are still in the same network, but are disconnected for some reason. At this time, the mobile phone can still search for the peer device. For example, when the peer device uses other distributed services (such as mouse and keyboard sharing, screen casting, Honor Sharing), the peer device is disconnected from this device and is in the discoverable state.
[0163] Undiscoverable status refers to the situation where the phone cannot search for the peer device. For example, if the peer device is offline due to reasons such as exceeding the preset distance from the phone, turning off Bluetooth, Wi-Fi, or being powered off, the device is disconnected from the phone and becomes undiscoverable.
[0164] If the peer device is discoverable, the mobile phone may display the reason for not obtaining the search results for the peer device on the search results interface. If the peer device is not discoverable, the mobile phone may not display content related to the peer device on the search results interface, such as deleting the search results for the peer device or the reason for not obtaining the search results for the peer device.
[0165] For example, as shown in (a) of FIG13 , the mobile phone may display interface 1301, which includes search results for the mobile phone and S's Pad. If the mobile phone is disconnected from S's Pad and S's Pad is not discoverable, the mobile phone may display interface 1302 shown in (b) of FIG13 . Interface 1302 is similar to interface 1301, except that interface 1302 does not include any content from S's Pad. If the mobile phone is disconnected from S's Pad and S's Pad is discoverable, the mobile phone may display interface 1303 shown in (c) of FIG13 . Interface 1303 is similar to interface 1301, except that the search results for S's Pad change from resources related to the keyword "cat" in interface 1301 to the reason for not finding relevant resources, such as "S's Pad is using mouse and keyboard sharing, please disconnect and try again."
[0166] It should be noted that since the mobile phone detects the connection status between the local device and the opposite device periodically, there may be a time delay between the first moment when the connection status between the local device and the opposite device actually changes and the second moment when the mobile phone detects the change in the connection status between the local device and the opposite device. In other words, between the first moment and the second moment, the mobile phone and the opposite device have actually been disconnected but the mobile phone has not yet detected that the local device and the opposite device are disconnected. In this case, since the data of the opposite device is stored in the local data center, the mobile phone can still keep the previously displayed search result interface unchanged, and can respond normally to the user's operation of viewing photos and videos of the opposite device.
[0167] For example, as shown in FIG14 , when the mobile phone is displaying interface 1401, the mobile phone is disconnected from the peer device, but the mobile phone has not yet detected the disconnection with the peer device. In this case, the mobile phone can continue to display interface 1401. In addition, in response to the user clicking the "More" option 1401a, the mobile phone can normally display interface 1402.
[0168] As can be seen, when the mobile phone detects a change in the connection status between the mobile phone and the peer device, it can refresh the search results page. The search results page will display different content depending on the status of the peer device, so users can quickly understand the cause of the disconnection based on the search results page.
[0169] In the embodiment of the present application, the mobile phone may also disconnect from the peer device while displaying the picture selection interface (also known as the grid page) or the large picture interface (also known as the large picture page). If the mobile phone disconnects from the peer device while displaying the picture selection interface or the large picture interface, the mobile phone may display a disconnection prompt on the corresponding interface to remind the user.
[0170] The following first describes the interfaces involved when the grid page is disconnected with reference to FIG14 and FIG15.
[0171] For example, as shown in (a) of FIG14 , the mobile phone may display interface 1401. Interface 1401 includes search results for the mobile phone and S's Pad, as well as a "More" option 1401a corresponding to the search results for S's Pad. In response to the user's operation on the "More" option 1401a, the mobile phone may display interface 1402 as shown in (b) of FIG14 . Interface 1402 is used to display photos and videos related to keywords on S's Pad. Optionally, photos and videos can be categorized by time. In addition, interface 1402 also includes a return key 1402a and a title 1402b. In response to the user's operation on the return key 1402a, the mobile phone may redisplay interface 1401. Title 1402b includes keywords and resource sources, such as "Cat (S's Pad)", indicating that the photos and videos displayed in interface 1402 are from S's Pad and are related to the keyword "cat".
[0172] If the phone is disconnected from S's Pad while displaying screen 1402, the phone may display screen 1403, as shown in Figure 14(c). Screen 1403 is similar to screen 1402, except that it includes a disconnection prompt 1403a. This disconnection prompt 1403a indicates that the phone is disconnected from S's Pad, such as "Device connection disconnected."
[0173] In response to the user's operation of the return key 1402a, the mobile phone can determine whether the status of the other device (i.e., S's Pad) is discoverable or undiscoverable. If the status of the other device is discoverable, the mobile phone can display interface 1404 as shown in (d) in Figure 14. Among them, interface 1404 is similar to interface 1401, except that the search results of S's Pad are changed from photos in interface 1401 to disconnection reminders in interface 1404, such as "The number of collaborations with S's Pad has reached the upper limit. Please disconnect one device and try again."
[0174] If the peer device is in a state of being undiscoverable, the mobile phone may display an interface 1405 as shown in (e) of Figure 14. The interface 1405 does not include content related to S's Pad.
[0175] As shown in FIG15(a), in response to a user's operation on any photo thumbnail in interface 1403, the mobile phone can determine whether the status of the peer device (i.e., S's Pad) is discoverable or undiscoverable. If the peer device is undiscoverable, the mobile phone can display interface 1406 as shown in FIG15(b). Interface 1406 includes prompt information 1406a, which indicates that the mobile phone and S's Pad cannot establish a connection, such as "Unable to establish connection."
[0176] If the status of the peer device is discoverable, the mobile phone can re-establish the connection with the peer device and display the interface 1407 shown in (c) of Figure 15 after the connection is re-established, where the interface 1407 is used to display a larger thumbnail of the photo selected by the user, as well as options such as sharing, editing, saving, and copying.
[0177] It should be noted that when the mobile phone has established a connection with the peer device, the mobile phone can respond to the user's operation on the thumbnail of any photo in interface 1403 without having to determine whether the status of the peer device is discoverable or undiscoverable, and directly display interface 1406.
[0178] It should also be noted that if the phone is disconnected from the peer device while displaying interface 1402, but the phone has not yet detected the disconnection, the phone can continue to display interface 1402 without displaying disconnection prompt 1403a. In addition, the phone can normally respond to the user's operation of viewing a large image (for example, the user clicking on any photo in interface 1402).
[0179] The following describes the interfaces involved when a large image page is disconnected with reference to FIG16 .
[0180] As shown in (a) of Figure 16, the mobile phone can display interface 1601, which includes a thumbnail 1601a and options such as sharing, editing, saving, and copying. In response to the user's operations on options such as sharing, editing, saving, and copying, the mobile phone can perform operations such as sharing, editing, saving, and copying on the photo corresponding to the thumbnail 1601a. In addition, interface 1601 also includes a return key 1601b and a title. In response to the user's operation on the return key 1601b, the mobile phone can redisplay the picture selection interface (for example, interface 1402 in Figure 14). The title includes the source of the resource, for example, "S's Pad", indicating that the thumbnail 1601a comes from S's Pad.
[0181] If the mobile phone is disconnected from the peer device (i.e., S's Pad), the mobile phone may display interface 1602 as shown in FIG16(b). Interface 1602 includes a disconnection prompt 1602a. Disconnection prompt 1602a is used to indicate that the mobile phone and S's Pad are disconnected, for example, "Device connection disconnected."
[0182] In response to the user pressing the return key 1601b, the mobile phone can determine whether the status of the other device (i.e., S's Pad) is discoverable or undiscoverable. If the status of the other device is discoverable, the mobile phone can display interface 1603 as shown in Figure 16 (c). Interface 1603 includes a control for re-searching and a prompt message for S's Pad, such as "S's Pad is using mouse and keyboard sharing, please disconnect and try again."
[0183] If the peer device is in undiscoverable state, the mobile phone may display an interface 1604 as shown in (d) of Figure 16. The interface 1604 does not include content related to S's Pad.
[0184] If the user still wishes to share, edit, save, copy, or perform other operations on the photo corresponding to thumbnail 1601a, in response to the user's operations of sharing, editing, saving, copying, or other options, the mobile phone can also determine whether the status of the other device (i.e., S's Pad) is discoverable or undiscoverable. If the status of the other device is undiscoverable, the mobile phone can display a prompt message to indicate that the mobile phone and S's Pad cannot establish a connection. If the status of the other device is discoverable, the mobile phone can reconnect with the other device and perform the corresponding operation on the photo corresponding to thumbnail 1601a after the connection is reestablished.
[0185] It should be noted that if the phone is disconnected from the peer device while displaying interface 1601, but the phone has not yet detected the disconnection, the phone can continue to display interface 1601, i.e., it will not display the disconnection prompt 1602a. In addition, the phone can normally respond to the user's operations of copying the image and returning to the search results page.
[0186] Refer to Figure 17, which is a flow chart of a distributed data search method provided in an embodiment of the present application. The method can be applied to a first device, where the first device and the second device join the same network. The first device is, for example, a mobile phone in the above embodiments. The first device can also be a pad, a PC, etc., which is not limited in the embodiments of the present application. The second device is, for example, the peer device in the above embodiments, such as S's mobile phone, S's pad, S's smart screen, etc.
[0187] As shown in FIG17 , the method includes:
[0188] S1701, the first device displays a first interface, which includes a search box, a device name of the second device, and a device name of the third device.
[0189] In an optional embodiment, the first interface is an album interface of a gallery application, or an interface of a distributed application such as a file management application.
[0190] Exemplarily, the first interface is, for example, interface 404 in Figure 4A, interface 1201 in Figure 12A, etc., the search box is, for example, search box 404e in interface 404, search box 1202 in interface 1201, etc., and the device name of the second device and the device name of the third device are, for example, "S's Pad", "S's mobile phone", etc.
[0191] S1702 , in response to a search operation for a keyword input in the search box, displaying a second interface, the second interface including search results of the first device, search results of the second device, and search results of the third device.
[0192] The second interface is a search result interface, such as interface 1205 or interface 1206 in Figure 12A or interface 1301 in Figure 13 . The keyword can be any word input by the user, such as "cat".
[0193] The search results of the first device include data related to the keyword in the first device, such as content related to “this device” in interfaces 1205 and 1206 .
[0194] The search result of the second device includes data related to the keyword in the second device or prompt information of the second device, and the prompt information of the second device is used to indicate the reason why data related to the keyword is not found in the second device.
[0195] Exemplarily, when the search results of the second device include data related to the keyword in the second device, the second interface may be interface 1301 in Figure 13 or interface 1206 in Figure 12A, and the search results of the second device may include data related to the keyword "S's Pad".
[0196] Exemplarily, when the prompt information of the second device indicates that the second device does not include data related to the keyword, the second interface may be interface 1206, and the prompt information of the second device may be, for example, "No pictures and videos found" of "S's mobile phone" in interface 1206.
[0197] For example, if the prompt information on the second device indicates the reason for the failure to establish a connection between the first device and the second device, the second interface may be interface 1205, and the prompt information on the second device may be, for example, "The number of collaborations with S's phone has reached the upper limit. Please disconnect one device and try again." In this case, the second interface also includes a second option, and in response to the user's operation on the second option, the first device establishes a connection with the second device and, after the connection with the second device is established, searches the data of the second device based on keywords. For example, the second option may be "Search again" 1205a in interface 1205.
[0198] In an optional embodiment, the first device displaying the first interface includes: in response to a user operating a gallery application, the first device displaying a third interface; wherein the third interface includes a first option; and in response to the user operating the first option, the first device displaying the first interface, wherein the first interface also includes an album of the first device. In other words, the first interface may be an album interface of the gallery application.
[0199] In an optional embodiment, when the search results of the second device include data related to the keyword in the second device (i.e., thumbnails of pictures related to the keyword in the second device), the first device can detect the connection status between the first device and the second device; if the first device detects that the connection with the second device is switched from a connected state to a disconnected state, and the first device can search for the second device, a fourth interface is displayed; wherein the fourth interface includes the search results of the first device and the reason for the disconnection between the first device and the second device; if the first device detects that the connection with the second device is switched from a connected state to a disconnected state, and the first device cannot search for the second device, a fifth interface is displayed; wherein the fifth interface includes the search results of the first device, but does not include relevant information of the second device.
[0200] For example, the fourth interface may be interface 1303 in FIG. 13 , and the reason for disconnection between the first device and the second device may be, for example, "Connection abnormality, try restarting WLAN and retrying" in interface 1303. In other embodiments, the reason for disconnection between the first device and the second device may be other reasons, which are not specifically limited herein.
[0201] Exemplarily, the fifth interface is, for example, interface 1302 in FIG. 13 , and interface 1302 does not include any information of “S's Pad”.
[0202] In an optional implementation, the fourth interface further includes a third option, which is used to trigger the first device to establish a connection with the second device. Exemplarily, the third option can be the "Re-search" option in interface 1303.
[0203] In an optional embodiment, the second interface further includes a fourth option. In response to the user's operation on the second option, the first device displays a sixth interface; wherein the sixth interface includes thumbnails of photos related to the keyword on the second device. For example, the fourth option is, for example, "More" option 1401a in interface 1401, and the sixth interface is, for example, interface 1402.
[0204] The first device may continue to display the second interface within the first time after the first device is disconnected from the second device, and may display the sixth interface in response to the user's operation on the second option. The first device has been disconnected from the second device within the first time, and the first device has not detected the disconnection between the first device and the second device. In other words, because the data of the second device is stored in the data center of the first device, even if the first device has not detected the disconnection with the second device but has actually been disconnected from the second device, the first device can still operate on the data on the second device and will not immediately lose control of the data.
[0205] If the first device detects that the connection state with the second device switches to a disconnected state when the first device is displaying the sixth interface, the seventh interface is displayed; wherein the seventh interface includes a first prompt message, and the first prompt message is used to indicate that the first device is disconnected from the second device.
[0206] Exemplarily, the seventh interface is, for example, interface 1403 , and the first prompt information is, for example, a disconnection prompt 1403 a in interface 1403 .
[0207] In an optional embodiment, the sixth interface also includes a fifth option. In response to the user's operation on the fifth option, if the first device detects that the connection with the second device has switched from a connected state to a disconnected state, and the first device can search for the second device, the eighth interface is displayed; wherein the eighth interface includes the search results of the first device and the reason for the disconnection between the first device and the second device. If the first device detects that the connection with the second device has switched from a connected state to a disconnected state, and the first device cannot search for the second device, the ninth interface is displayed; wherein the ninth interface includes the search results of the first device, but does not include relevant information about the second device.
[0208] Exemplarily, the fifth option is, for example, the return key 1402a in interface 1402, the eighth interface is, for example, the interface 1404 in FIG. 14, and the ninth interface is, for example, the interface 1405 in FIG. 14.
[0209] In an optional embodiment, the method also includes: in response to an operation on the first thumbnail on the sixth interface, the first device displays the tenth interface; wherein the tenth interface includes a second thumbnail, the first thumbnail is any thumbnail of the thumbnails of pictures related to the keyword in the second device, the first thumbnail and the second thumbnail are thumbnails of different sizes of the same picture, and the size of the first thumbnail is smaller than the size of the second thumbnail.
[0210] Exemplarily, the first thumbnail may be the thumbnail clicked by the user in interface 1403 , the tenth interface may be, for example, interface 1407 or interface 1601 , and the second thumbnail may be, for example, the thumbnail displayed in interface 1407 or thumbnail 1601a in interface 1601 .
[0211] If the first device detects that the connection state with the second device has switched to a disconnected state when the first device is displaying the tenth interface, the eleventh interface is displayed; wherein the eleventh interface includes a second prompt message, and the second prompt message is used to indicate that the first device is disconnected from the second device.
[0212] Exemplarily, the eleventh interface is, for example, interface 1602 , and the second prompt information is, for example, the disconnection prompt 1602 a in interface 1602 .
[0213] In an optional embodiment, the tenth interface also includes a sixth option, and the method further includes: in response to the user's operation on the sixth option, if the first device detects that the connection with the second device has switched from a connected state to a disconnected state, and the first device can search for the second device, then displaying a twelfth interface; wherein the twelfth interface includes the search results of the first device and the reason for the disconnection between the first device and the second device. If the first device detects that the connection with the second device has switched from a connected state to a disconnected state, and the first device cannot search for the second device, then displaying a thirteenth interface; wherein the thirteenth interface includes the search results of the first device, but does not include relevant information about the second device.
[0214] Exemplarily, the fourth option is, for example, interface 1602 or the return key 1601b in interface 1601 , the twelfth interface is, for example, interface 1603 , and the thirteenth interface is, for example, interface 1604 .
[0215] In an optional embodiment, the method also includes: in response to the user's operation on the device name of the second device, if the first device and the second device have established a connection, the second device displays a fourteenth interface; wherein the fourteenth interface includes a summary of the data of the second device; if the first device and the second device have not established a connection, the second device displays a fifteenth interface; wherein the fifteenth interface includes a disconnection reminder, which is used to indicate the reason for the failure to establish a connection between the first device and the second device.
[0216] For example, the fourteenth interface is, for example, interface 405 in FIG5A , interface 902 or interface 1002 in FIG10 , etc. The fifteenth interface is, for example, interface 406 , and the disconnection reminder is, for example, disconnection reminder 406 a in interface 406 .
[0217] In an optional embodiment, the first position in the fourteenth interface includes thumbnail information of the first data, and the first position in the sixteenth interface includes thumbnail information of the second data. The sixteenth interface is the interface displayed on the first device in response to the user's operation on the device name of the second device. The position of the thumbnail information of the first data in the fourteenth interface is the same as the position of the thumbnail information of the second data in the sixteenth interface.
[0218] In an optional embodiment, the method further includes: when it is detected that data update exists on the second device, the first device displays a sixteenth interface; wherein the sixteenth interface includes thumbnail information of the updated data of the second device.
[0219] Exemplarily, the sixteenth interface is, for example, interface 702 in FIG. 7 .
[0220] An embodiment of the present application also provides an electronic device, which includes: a memory, a processor and a display screen; the processor is coupled to the memory and the display screen; wherein the memory is used to store computer program code, and the computer program code includes computer instructions; when the computer instructions are executed by the processor, the electronic device executes the method provided in any of the above embodiments.
[0221] An embodiment of the present application further provides a computer-readable storage medium, comprising computer instructions; when the computer instructions are executed on an electronic device, the electronic device executes the method provided in any of the above embodiments.
[0222] This embodiment further provides a computer program product. When the computer program product is run on an electronic device, the electronic device is enabled to perform each function or step in the above method embodiment.
[0223] In addition, an embodiment of the present application also provides a device, which can specifically be a chip, component or module, and the device may include a connected processor and memory; wherein the memory is used to store computer-executable instructions, and when the device is running, the processor can execute the computer-executable instructions stored in the memory to enable the chip to perform the various functions or steps performed by the mobile phone in the above method embodiment.
[0224] Among them, the electronic device, communication system, computer-readable storage medium, computer program product or chip provided in this embodiment are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here.
[0225] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0226] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0227] The units described as separate components may or may not be physically separate, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0228] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.
[0229] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0230] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application and are not intended to limit the present application. Although the present application has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present application may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present application.
Claims
1. A distributed data search method, characterized in that: Applied to a first device, the method includes: The first device displays a first interface, the first interface including a search box, a device name of the second device, and a device name of the third device; In response to a search operation on the keyword input in the search box, a second interface is displayed; wherein the second interface includes search results of the first device, search results of the second device, and search results of the third device.
2. The method according to claim 1, characterized in that The first device displays a first interface, including: In response to the user's operation of opening the gallery application, the first device displays a third interface; wherein the third interface includes a first option; In response to the user's operation on the first option, the first device displays the first interface, which also includes a photo album of the first device.
3. The method according to claim 2, characterized in that The search result of the second device includes prompt information of the second device, where the prompt information of the second device is used to indicate the reason why data related to the keyword is not found in the second device.
4. The method according to claim 3, characterized in that The first device has established a connection with the second device, and the prompt information of the second device is used to indicate that the second device does not include data related to the keyword.
5. The method according to claim 3, characterized in that: The first device and the second device have not established a connection, and the prompt information of the second device is used to indicate the reason why the first device and the second device failed to establish a connection.
6. The method according to claim 5, characterized in that The second interface further includes a second option, and the method further includes: In response to the user's operation on the second option, the first device establishes a connection with the second device, and searches for data of the second device based on the keyword after establishing the connection with the second device.
7. The method according to claim 2, characterized in that The search results of the second device include thumbnails of pictures in the second device that are related to the keyword, and the method further includes: The first device detects a connection status between the first device and the second device; If the first device detects that the connection state with the second device is switched to a disconnected state, and the first device can search for the second device, a fourth interface is displayed; wherein the fourth interface includes the search results of the first device and the reason why the first device is disconnected from the second device; If the first device detects that the connection state with the second device switches to a disconnected state, and the first device cannot search for the second device, a fifth interface is displayed; wherein the fifth interface includes the search results of the first device, but does not include relevant information of the second device.
8. The method according to claim 7, characterized in that The fourth interface also includes a third option, and the third option is used to trigger the first device to establish a connection with the second device.
9. The method according to claim 7 or 8, characterized in that: The method further comprises: The first device continues to display the second interface within a first time after the first device is disconnected from the second device, and the second interface further includes a fourth option; In response to the user's operation on the fourth option, the first device displays a sixth interface; wherein the sixth interface includes the search results of the second device.
10. The method according to claim 9, characterized in that The first device is disconnected from the second device within the first time, and the first device does not detect that the first device is disconnected from the second device.
11. The method according to claim 9, characterized in that The method further comprises: When the first device displays the sixth interface, if the first device detects that the connection state with the second device switches to a disconnected state, the seventh interface is displayed; wherein the seventh interface includes a first prompt message, and the first prompt message is used to indicate that the first device is disconnected from the second device.
12. The method according to any one of claims 9 to 11, characterized in that: The sixth interface further includes a fifth option, and the method further includes: In response to the user's operation on the fifth option, if the first device detects that the connection state with the second device is switched to the disconnected state, and the first device can search for the second device, an eighth interface is displayed; wherein the eighth interface includes the search result of the first device and the reason for the disconnection between the first device and the second device; If the first device detects that the connection state with the second device switches to a disconnected state, and the first device cannot search for the second device, a ninth interface is displayed; wherein the ninth interface includes the search results of the first device, but does not include relevant information of the second device.
13. The method according to any one of claims 9 to 11, characterized in that: The method further comprises: In response to a user operation on the first thumbnail of the second device on the sixth interface, the first device displays a tenth interface; wherein the tenth interface includes a second thumbnail, the first thumbnail is any thumbnail of thumbnails of pictures related to the keyword in the second device, the first thumbnail and the second thumbnail are thumbnails of different sizes of the same picture, and the size of the first thumbnail is smaller than the size of the second thumbnail; If the first device detects that the connection state with the second device switches to a disconnected state, an eleventh interface is displayed; wherein the eleventh interface includes second prompt information, and the second prompt information is used to indicate that the first device is disconnected from the second device.
14. The method according to claim 13, characterized in that The tenth interface further includes a sixth option, and the method further includes: In response to the user's operation on the sixth option, if the first device detects that the connection state with the second device is switched to the disconnected state, and the first device can search for the second device, a twelfth interface is displayed; wherein the twelfth interface includes the search result of the first device and the reason for the disconnection between the first device and the second device; If the first device and the second device switch from a connected state to a disconnected state, and the first device cannot search for the second device, a thirteenth interface is displayed; wherein the thirteenth interface includes the search results of the first device, but does not include relevant information of the second device.
15. The method according to any one of claims 7 to 14, characterized in that: The method further comprises: In response to the user's operation on the first thumbnail of the second device on the second interface, the first device displays a tenth interface; wherein the tenth interface includes the second thumbnail, a copy option, a download option, a share option, and a plurality of other options. Items and editing options, the first thumbnail is any thumbnail of thumbnails of pictures related to the keyword in the second device, the first thumbnail and the second thumbnail are thumbnails of the same picture in different sizes, and the size of the first thumbnail is smaller than the size of the second thumbnail; In response to a user operation on the copy option, the first device copies the picture corresponding to the second thumbnail; In response to a user operation on the download option, the first device downloads the picture corresponding to the second thumbnail; In response to a user operation on the sharing option, the first device shares the picture corresponding to the second thumbnail; In response to the user's operation on the editing option, the first device displays an interface for editing the picture corresponding to the second thumbnail.
16. The method according to any one of claims 1 to 15, characterized in that: The method further comprises: In response to the user's operation on the device name of the second device, if the first device and the second device are successfully connected, the first device displays a fourteenth interface; wherein the fourteenth interface includes thumbnail information of the data of the second device; If the first device fails to establish a connection with the second device, the first device displays a fifteenth interface; wherein the fifteenth interface includes the reason why the first device fails to establish a connection with the second device.
17. The method according to claim 16, characterized in that The first position in the fourteenth interface includes thumbnail information of the first data, and the first position in the sixteenth interface includes thumbnail information of the second data. The sixteenth interface is the interface displayed by the first device in response to the user's operation on the device name of the second device for the last time, and the position of the thumbnail information of the first data in the fourteenth interface is the same as the position of the thumbnail information of the second data in the sixteenth interface.
18. The method according to claim 16, characterized in that The method further comprises: If the first device detects that the second device has data updated, the first device displays a seventeenth interface; wherein the seventeenth interface includes thumbnail information of the updated data of the second device.
19. An electronic device, characterized in that: The electronic device comprises: a memory, a processor and a display screen; The processor is coupled to the memory and the display screen; wherein the memory is used to store computer program codes, and the computer program codes include computer instructions; When the computer instructions are executed by the processor, the electronic device executes the method according to any one of claims 1 to 18.
20. A computer-readable storage medium, characterized in that: The method comprises computer instructions; when the computer instructions are executed on an electronic device, the electronic device is caused to execute the method as claimed in any one of claims 1 to 18.