Distributed data search method and electronic equipment

By providing a distributed data search method on one device, users can enter keywords in the search box to search data on multiple devices, solving the problem of cumbersome operations in the prior art and achieving efficient multi-device data search.

CN119556827APending Publication Date: 2025-03-04HONOR DEVICE CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202311088923.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-25
Publication Date
2025-03-04

AI Technical Summary

Technical Problem

The prior art requires manual connection establishment when searching for data on multiple electronic devices, which is cumbersome and affects the user experience.

Method used

Provides a distributed data search method. By displaying a search interface on one device, users can enter keywords in the search box to search, displaying the search results of multiple devices without manually establishing a connection.

Benefits of technology

It simplifies user search operations and improves search efficiency. Users can search data on multiple devices at one time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119556827A_ABST
    Figure CN119556827A_ABST
Patent Text Reader

Abstract

The invention provides a distributed data search method and electronic equipment, and relates to the technical field of terminals. According to the method, a user can search data on other multiple devices on one device at a time, the search operation is simplified, and the man-machine interaction experience is improved. The method comprises the steps that a first device displays a first interface, and the first interface comprises a search box, a device name of a second device and a device name of a third device; in response to a search operation on a keyword input in the search box, displaying a second interface; wherein the second interface comprises a search result of the first equipment, a search result of the second equipment and a search result of the third equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of terminal technology, and in particular to a distributed data search method and electronic device. Background Art

[0002] As users have more and more electronic devices, their media resources (such as pictures, videos, etc.) may also be distributed on different electronic devices. In order 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, videos, etc. on other electronic devices. Summary of the invention

[0003] The embodiments of the present application provide a distributed data search method and an electronic device, which can enable a user to search for data on multiple devices at one time on one device, thereby simplifying the search operation and improving the human-computer interaction experience.

[0004] To achieve the above objectives, the embodiments of the present application adopt the following technical solutions:

[0005] 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 comprising a search box, a device name of a second device, and a device name of a 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 comprises search results of the first device, search results of the second device, and search results of the third device.

[0006] It can be seen that before the user performs a search operation, there is no need to manually establish a connection between the first device and the second device and the third device; and a search operation can enable the first device to search the first device and at least two other devices and display the search results of each device without switching the device to which the first device is connected, which simplifies the user's search operation and improves the search efficiency. It should be noted that the above-mentioned first device, second device and third device are all electronic devices.

[0007] In an implementation provided in the first aspect, the first device displays a first interface, including: in response to a 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 an album of the first device.

[0008] 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.

[0009] In an implementation provided in the first aspect, the search result of the second device includes 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 searched in the second device. That is, when the first device searches for data on the second device based on the keyword, it may not search for pictures related to the keyword. In this case, the first device can display the reason why pictures related to the keyword are not searched.

[0010] In an implementation provided in the first aspect, the first device and the second device have established a connection, and the prompt information of the second device is used to indicate that the second device does not include data related to the keyword. In other words, the reason why pictures related to the keyword are not searched may be that the second device does not originally include data related to the keyword.

[0011] In an implementation provided in the first aspect, the first device and the second device are not connected, 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. That is, the reason why pictures related to the keyword are not searched may be that the first device and the second device are not connected, and the first device does not search for data of the second device.

[0012] In an implementation provided in the first aspect, 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 the data of the second device based on the keyword after the connection with the second device is established. That is, in the case where the reason why the picture related to the keyword is not searched is that the first device has not established a connection with the second device, the first device can display a second option (such as an option of "search again"), so that the user triggers 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 result page (i.e., the second interface), thereby simplifying the user operation.

[0013] 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.

[0014] 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 why the first device is disconnected from the second device, so that the user can quickly find the reason 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.

[0015] In an implementation provided in the first aspect, the fourth interface further includes a third option, and the third option is used to trigger the first device to establish a connection with the second device. That is, if the second device is discoverable, the first device may also display the third option so that the user can quickly trigger the first device to re-establish a connection with the second device.

[0016] In an implementation provided in the first aspect, the method also includes: 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 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.

[0017] That is to say, after the first device is disconnected from the second device, the first device will not stop displaying the second interface immediately. Instead, within the first time after the first device is disconnected from the second device, since the thumbnail information of the data of the second device 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 called the grid page).

[0018] In an implementation manner provided in the first aspect, the first device has been disconnected from the second device within a first time, and the first device has not detected that the first device is disconnected from the second device.

[0019] In an implementation provided in 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 is switched from a connected state to a disconnected state, then 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. That is, 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 it detects that the connection with the second device is disconnected.

[0020] 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 state between the first device and the second device switches 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 state between the first device and the second device switches 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.

[0021] Understandably, the fifth 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 grid page, the user can return to the search results page (e.g., the second interface) through the fifth option. Among them, if the second device is discoverable (i.e., the first device can search for the second device), the first device can display the reason why the first device is disconnected from the second device after returning to the search results page, so that the user can quickly find the reason 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 after returning to the search results page.

[0022] 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 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; 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.

[0023] That is, the user can select the thumbnail to be viewed from the grid page. And, in response to the user's operation of 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 a larger size for the user to view.

[0024] 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 state between the first device and the second device switches from a connected state to a disconnected state, and the first device can search for the second device, then the twelfth interface is displayed; wherein the twelfth interface includes the search results of the first device, and the reason indicating 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, then 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.

[0025] Understandably, the sixth option can also be understood as a return button. When the first device detects a disconnection from the second device while 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 can be found (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 after returning to the search results page, so that the user can quickly find the cause and solve the problem; if the second device cannot be found (i.e., the first device cannot search for the second device), any information about the second device will no longer be displayed after returning to the search results page.

[0026] In an implementation provided in the first aspect, the method also includes: in response to a user's operation on a first thumbnail of a second device on a second interface, the first device displays a tenth interface; wherein the tenth interface includes a second thumbnail, a copy option, a download option, a share option, and an edit option, 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; 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.

[0027] 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, which is more convenient for the user to view. At the same time, the first device can provide the user with copy, download, share, and edit options for the image corresponding to the thumbnail displayed in the interface.

[0028] In an implementation provided in the first aspect, the method also includes: in response to a user's operation on the device name of the second device, if the first device successfully establishes a connection with the second device, 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 for the failure to establish a connection between the first device and the second device.

[0029] That is, by clicking on the device name of other devices (such as the second device and the third device), the first device can initiate a request to establish a connection with the other device. If the connection is successfully established, the abbreviated information of the data of the other device can be displayed, and if the connection is not successfully established, the reason for the failure to establish the connection is displayed.

[0030] In an implementation provided by the first aspect, the first position in the fourteenth interface includes thumbnail information of the first data, 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 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. That is, the first device can record the user's historical browsing position, and the first device can display data based on the historical browsing position.

[0031] In an implementation provided by the first aspect, the method further includes: 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. That is, the mobile phone can actively refresh the album page of the second device (e.g., the seventeenth interface) when the second device has data updated.

[0032] In a second aspect, the present application provides an electronic device, comprising: 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 comprises computer instructions; when the computer instructions are executed by the processor, the electronic device executes a method as in the first aspect and any one of the first aspects.

[0033] 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.

[0034] 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

[0035] Figure 1A A network architecture diagram provided for an embodiment of the present application;

[0036] Figure 1B Another network architecture diagram provided for an embodiment of the present application;

[0037] Figure 2 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0038] Figure 3 A software structure block diagram of an electronic device provided in an embodiment of the present application;

[0039] Figure 4A A set of interface diagrams provided for embodiments of the present application;

[0040] Figure 4B A set of interface diagrams provided for embodiments of the present application;

[0041] Figure 5A A set of interface diagrams provided for embodiments of the present application;

[0042] Figure 5B An interface diagram provided for an embodiment of the present application;

[0043] Figure 6 A flow chart of a set of updating data provided by an embodiment of the present application;

[0044] Figure 7 A set of interface diagrams provided for embodiments of the present application;

[0045] Figure 8 A set of interface diagrams provided for embodiments of the present application;

[0046] Fig. 9 A set of interface diagrams provided for embodiments of the present application;

[0047] Fig.10 A set of interface diagrams provided for embodiments of the present application;

[0048] Fig.11 A set of interface diagrams provided for embodiments of the present application;

[0049] Fig. 12A A set of interface diagrams provided for embodiments of the present application;

[0050] Fig. 12B A set of interface diagrams provided for embodiments of the present application;

[0051] Fig.13 A set of interface diagrams provided for embodiments of the present application;

[0052] Fig.14 A set of interface diagrams provided for embodiments of the present application;

[0053] Fig.15 A set of interface diagrams provided for embodiments of the present application;

[0054] Fig.16 A set of interface diagrams provided for embodiments of the present application;

[0055] Fig.17 A flowchart of a distributed data search method provided in an embodiment of the present application. DETAILED DESCRIPTION

[0056] 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 the appended 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 indication to the contrary 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: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the associated objects before and after are in a "or" relationship.

[0057] References to "one embodiment" or "some embodiments" etc. described in this specification mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Thus, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear 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 other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways. The term "connection" includes direct connection and indirect connection, unless otherwise specified. "First" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated.

[0058] In the embodiments of the present 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 the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0059] To facilitate understanding, the system architecture involved in the embodiments of the present application is first described below.

[0060] The system architecture involved in the embodiments of the present application may include multiple electronic devices, and the multiple electronic devices may be networked, and information may be exchanged between the networked multiple electronic devices. The networking methods include but are not limited to the following methods:

[0061] (1) Wi-Fi (wireless fidelity) networking: multiple electronic devices can access the same routing device (for example, a router). Figure 1A As shown, mobile phone 10, mobile phone 20, tablet computer 30, and smart screen 40 can be connected to 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 be connected to mobile phone 10 to form a hotspot network, and mobile phone 10 can be used 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., which is not limited to this embodiment of the present application.

[0062] (2) Cloud server networking: Multiple electronic devices can be connected to the same cloud server. At this time, the information interaction between multiple electronic devices can be forwarded through the cloud server. Figure 1B As shown, 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 be used 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.

[0063] In a possible design, the mobile phone 10, the mobile phone 20, the tablet computer 30, the smart screen 40 and the router 50 can all be connected to the server, and the server can be used as a transfer device to forward information between the mobile phone 10, the mobile phone 20, the tablet computer 30, the smart screen 40 and the router 50. That is, the mobile phone 10, the mobile phone 20, the tablet computer 30, the smart screen 40 and the router 50 can exchange information through the server.

[0064] Alternatively, multiple electronic devices can also be networked via Bluetooth. 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), and the information exchange between the electronic devices can be forwarded via the Bluetooth device.

[0065] 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.

[0066] After multiple electronic devices are successfully networked, device authentication can be performed between the multiple electronic devices. If the device authentication is successful, a trust loop can be established between the multiple electronic devices based on the network.

[0067] In an optional implementation, multiple electronic devices can perform login account authentication through a cloud server. For example, the accounts logged in by mobile phone 10, mobile phone 20, tablet computer 30, and smart screen 40 are mutually trusted accounts. For example, the account logged in by mobile phone 10 is the same as the account logged in by mobile phone 20, tablet computer 30, and smart screen 40, or is an account with a trusted relationship such as a certified family account or workgroup account. Then, based on the account, the device authentication is determined to be successful, and the mobile phone 10, mobile phone 20, tablet computer 30, and smart screen 40 establish a trust loop.

[0068] In another optional implementation, the mobile phone 10, the mobile phone 20, the tablet computer 30, and the smart screen 40 can also perform device authentication through preset passwords, code scanning, verification codes, etc. to establish a trust loop.

[0069] After establishing a trust loop, electronic devices can access media resources (also called 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 storing the resources accessible by mobile phone 10 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.

[0070] It can be understood that communication and resource interaction between electronic devices based on the above-mentioned trust ring can ensure the security of data access between devices and reduce the risk of illegal access to resources.

[0071] 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 you need to search for resources on another electronic device, you need 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.

[0072] The embodiment of the present application provides a distributed data search method, in which the first device can search the local device, the second device, and the third device respectively based on the keywords entered in the search box to obtain the search results of the first device, the second device, and the third device. The first device does not need to establish a connection with the second device and the third device in advance, and can search the data on the second device and the third device at the same time, which simplifies the user's operation of searching for data and can improve the user experience.

[0073] 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, a vehicle-mounted device, a smart home device and / or a smart city device, etc. The embodiments of the present application do not impose any special restrictions on the specific type of the electronic device.

[0074] In the embodiment of the present application, the above-mentioned electronic devices (such as mobile phone 10 or mobile phone 20) are taken as electronic device 200 as an example to illustrate the structure of the electronic device provided in the embodiment of the present application. Figure 2As shown, 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 screen 294, and a subscriber identification module (SIM) card interface 295, etc.

[0075] 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.

[0076] It is to 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 in the figure, or combine some components, or separate some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0077] 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 processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0078] 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.

[0079] The processor 210 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 210 is a cache memory. The memory may store instructions or data that the processor 210 has just used or cyclically used. If the processor 210 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 210, and thus improves the efficiency of the system.

[0080] In some embodiments, the processor 210 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0081] It is understandable that the interface connection relationship between the modules shown in this embodiment is only a schematic illustration and does not constitute a structural limitation on the electronic device 200. In other embodiments, the electronic device 200 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

[0082] The wireless communication module 260 can provide wireless communication solutions for application in the electronic device 200, including WLAN (such as (wirelessfidelity, Wi-Fi) network), Bluetooth (bluetooth, BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), nearfield communication technology (nearfield communication, NFC), infrared technology (infrared, IR), etc.

[0083] The display screen 294 is used to display images, videos, etc. The display screen 294 includes a display panel.

[0084] 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 through the external memory interface 220 to implement a data storage function, such as storing music, video and other files in the external memory card.

[0085] The internal memory 221 may be used to store computer executable program codes, which include 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 may execute the instructions stored in the internal memory 221, and the internal memory 221 may include a program storage area and a data storage area.

[0086] The program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 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.

[0087] Figure 3 Schematic diagram of the software structure of the electronic device 200 provided in the embodiment of the present application. The layered architecture divides the software into several layers, each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the software architecture of device A, device B and device C is divided into three layers, where device A, device B and device C all include an application layer, a service layer and a kernel layer. It should be noted that Figure 3 Device A, device B and device C respectively include an application layer, a service layer and a kernel layer.

[0088] like Figure 3 As shown, the application layer may include distributed applications such as camera, gallery, and file management.

[0089] In an embodiment of the present application, the service layer may include a device management module and a data middle platform.

[0090] Among them, the device management module can save the device name, device type, device status, device capability, authentication status and other information 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, turns off, etc., and the machine cannot search for other devices.

[0091] Device capabilities are used to indicate whether other devices support data sharing. Authentication status is used to indicate whether the local device has authenticated other devices and whether other devices are trusted devices.

[0092] 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.

[0093] The kernel layer includes the kernel ( Figure 3 (not shown). Depending on the device type, the kernels of different devices may be different. For example, if device A and device B are a mobile phone and a tablet respectively, and device C is a laptop, then device A and device B may use the Linux kernel, and device C may use the Windows kernel.

[0094] 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.

[0095] It should be noted that the distributed data search method provided in the embodiment of the present application can be applied to gallery applications, file management applications, video applications, music applications, etc., and is 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, etc. The following takes the gallery application as an example to illustrate the distributed data search method provided in the embodiment of the present application.

[0096] like Figure 4AAs shown in (a) of FIG. 1 , the mobile phone may display a main interface 401, which may also be referred to as a desktop. The main interface 401 may include an icon 402 of a gallery application. The mobile phone may receive an operation of a user clicking on the icon 402, and in response to the operation, the mobile phone may start the gallery application and display the following information: Figure 4A Interface 403 shown in (b) of FIG. 403 may also be referred to as an album interface. It should be noted that in response to the user clicking on icon 402, the mobile phone may start the gallery application and display the photo interface of the gallery, which includes thumbnails of photos in the gallery or large images of a photo. In the photo interface, in response to the user operating the "album" control, the above interface 403 is displayed.

[0097] like Figure 4A As shown in (b), 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.

[0098] In an optional implementation, in response to the user starting the gallery application, the mobile phone can automatically search for other devices in the same trust circle. Taking the devices under the account of user S as an example, the mobile phone can detect which devices under the account of user S are within a preset distance from the mobile phone (i.e., the mobile phone). For other devices under the account of user S (except the mobile phone) that are within the preset distance from the mobile phone, the mobile phone can display the device names of these devices.

[0099] In another optional implementation, before the mobile phone receives the user's operation of starting the gallery application, the mobile phone can automatically search for other devices in the same trust circle. In response to the user's operation of starting the gallery application, the mobile phone can directly display the device names of the other devices found.

[0100] For example, when the mobile phone has discovered other devices in the same trust circle, 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 the following information: Figure 4AInterface 404 shown in (c) in the figure. Among them, interface 404 is similar to interface 403, except that interface 404 also includes "this device" 404a and the names of other devices that the mobile phone has discovered, 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., the 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.

[0101] 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 electronic devices that a mobile phone can connect to are 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.

[0102] Here, it should be noted that: before displaying the album interface, the electronic devices discovered by the mobile phone are considered to be discovered at the same time. For example, the electronic devices discovered in the process of the mobile phone displaying the desktop and 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 sequential discoveries. 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.

[0103] Furthermore, when the mobile phone displays the album interface, it can sort by preset device type and display the options of electronic devices discovered at the same time, so that the options of electronic devices discovered at the same time can also be arranged in sequence according to the device type, further facilitating users to find corresponding options from multiple electronic devices discovered at the same time. Among them, the 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.

[0104] Taking the preset device type sequence of mobile phone, tablet, PC, and smart screen as an example, before displaying the album interface (such as in the process of displaying the photo interface of the gallery application), at time t1, the mobile phone discovers the smart screen 520, and at time t2, the mobile phone discovers the tablet 510. That is, the tablet 510 and the smart screen 520 can be regarded as being discovered at the same time. At time t3, in response to the operation of entering the album interface, the mobile phone can display Figure 4B Interface 501 is shown. Interface 501 is an album interface. In interface 501, option "S's PAD" 5011 of tablet 510 is displayed in front, and option "S's smart screen" 5012 of smart screen 520 is displayed in the back. That is, the options of tablet 510 and smart screen 520 discovered at the same time are displayed in the order of preset device types. 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 discovering mobile phone 530, the mobile phone can display Figure 4B Interface 502 shown. The difference from interface 501 is that interface 502 includes a prompt "1 new device has been discovered, swipe left to view". Then, in response to the user's swiping operation from right to left in interface 502, the mobile phone can display interface 503. In 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.

[0105] Furthermore, the electronic devices discovered at the same time may include electronic devices of the same type. If the electronic devices discovered at the same time include electronic devices of the same type (referred to as same type devices), the mobile phone may display the options of the same type devices according to the option names of the same type devices. For example, the options may be sorted by the first letters of the English letters of the option names.

[0106] 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, the options of smart screen 520 can be displayed 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.

[0107] Still taking the preset device type order of 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, wherein 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 options of electronic devices displayed simultaneously in the album interface can also be more, and no specific limitation is made here.

[0108] 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 the data on the local device and the peer device. The following will introduce the above two scenarios respectively. Figure 5A-Figure 13 The interface involved in the user viewing the photo album of the other device in the local interface is specifically described. Figure 14-16 The interface involved in searching data on the local device and the peer device is specifically described.

[0109] It should be noted that the peer device may refer to other devices in the trust ring except 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.

[0110] In the case where the mobile phone fails to establish a connection with the peer device, in response to the user clicking on the device name of the peer device, the mobile phone can establish a connection with the peer device. In the case where the mobile phone successfully establishes a connection with the peer device, the mobile phone can automatically obtain the data that can be shared stored on the peer device and display the data of the peer device, such as thumbnails of photos. In the case where the mobile phone fails to establish a connection with the peer device, the mobile phone can display the reason for the connection failure.

[0111] The following example uses the user clicking on "S's Pad" 404c as an example. Figure 5A Specifically describe the interface involved when the user views the photo album on S's Pad.

[0112] like Figure 5A As shown in (a) of FIG. 1 , in response to the user clicking on “S’s Pad” 404c, the mobile phone establishes a connection with S’s Pad. If the mobile phone successfully establishes a connection with S’s Pad, the mobile phone may display the following: Figure 5AInterface 405 shown in (b) in the figure. Among them, "S's Pad" 404c is in a selected state to indicate that the album on interface 405 comes from S's Pad. In addition, multiple albums from S's Pad can be displayed in interface 405. Among them, 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 "One Record, Many Gains" album includes 10 photos and / or videos, the "Video Editing" album includes 65 videos, and the "Self-Created Album" includes 57 photos and / or videos.

[0113] If the mobile phone fails to establish a connection with S's Pad, the mobile phone may display the following Figure 5A Interface 406 shown in (c) of FIG. 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 device or the opposite device has reached the upper limit, the local device or the opposite device has some abnormality, the network is abnormal, or the device type of the opposite device does not support the data of the shared gallery, etc.

[0114] Exemplarily, the disconnection reminder 406a can 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", "The connection is abnormal, you can try restarting WLAN and then try again", "The connection failed, please confirm that the device is nearby and WLAN and Bluetooth are turned on", "The connection is abnormal, please try again later", "The device connection status is recovering, please try again later", etc. Optionally, the disconnection reminder 406a can 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 the problem.

[0115] 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 cooperating has reached the upper limit. For example, the peer device can collaborate with up to three devices simultaneously. 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 because the peer device has already collaborated with three devices, it cannot collaborate with the fourth device (such as this device).

[0116] The "reload" option 406b is used to provide a shortcut for the local device to re-establish a connection with the peer device. For example, in response to the user's operation on the "reload" option 406b, the mobile phone re-establishes a connection with S's Pad. It should be noted that reloading not only includes re-establishing a connection between the local device and the peer device, but also includes the local device obtaining the data that can be shared on the peer device when the local device and the peer device are connected.

[0117] In an optional implementation, 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 of the peer device (eg, S's Pad). For example, the loading interface may be Figure 5B Interface 407 is shown. Interface 407 can be used to display a loading animation indicating that the local device is loading data from the peer device. For example, the loading animation can include a rotating circle. Optionally, interface 407 can also include progress information indicating the loading progress, such as a loading progress of 50%, 70%, etc.

[0118] In the embodiment of the present application, when the mobile phone successfully establishes a connection with the peer device, if the peer device has data updates, the mobile phone can obtain the updated data of the peer device and display the updated data of the peer device in the album interface of the peer device. The process of obtaining the updated data and the process of displaying the updated data will be described separately below.

[0119] The process of obtaining updated data is as follows:

[0120] 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 that there is data update on the peer device.

[0121] The data update of the peer device can be understood as the increase, decrease or adjustment of the album of the sharable pictures / videos on the peer device. Figure 6 As shown, 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 synchronizes the updated data to the data middle platform of the local device, and then the data middle platform of the local device notifies 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 synchronizes the updated data of the peer device to the gallery application of the local device.

[0122] Alternatively, the peer device may periodically synchronize updated data to the local device, and the mobile phone may periodically synchronize data from the local data center to the local gallery application. For example, when the mobile phone is connected to the peer device, the mobile phone may synchronize data from the local data center to the local gallery application every 10 minutes.

[0123] In an optional implementation, if the gallery application is switched to the background, and no data is transmitted between the mobile phone and the peer device for more than the first time, for example, there is no data update between the mobile phone and the peer device for more than the first time, the mobile phone can be disconnected from the peer device. In this way, the power consumption caused by the long-term connection between the mobile phone and the peer device can be reduced.

[0124] The process of displaying updated data may include at least the following situations:

[0125] (1) The mobile phone displays the photo album interface of the peer device (for example Figure 5A In this case, the mobile phone can refresh the album interface of the opposite device in real time and display the updated data in the album interface of the opposite device.

[0126] (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 receiving the user clicking the device name of the peer device.

[0127] In view of the above two situations, the following is based on Figure 7 , Figure 8 The peer device is Figure 7 , Figure 8 The S Pad shown in .

[0128] like Figure 7 As shown in (a) of FIG. 1 , the mobile phone can display the album interface of S's Pad, that is, interface 701. If the mobile phone receives data updated by S's Pad during displaying interface 701, the mobile phone can display the following: Figure 7 Interface 702 shown in (b) of FIG. Interface 702 is similar to interface 701, except that the number of photos saved in S's Pad changes from 590 as indicated in interface 701 to 592 as indicated in interface 702, the number of photos acquired through the camera changes from 410 as indicated in interface 701 to 412 as indicated in interface 702, and "New Album" is newly added in interface 702 compared to interface 701, and the "New Album" includes 3 photos.

[0129] like Figure 8As shown in (a) of FIG. 1 , the mobile phone can display the album interface of the mobile phone, such as interface 801. If the mobile phone receives data updated by S's Pad during the display of interface 801, in response to the user clicking "S's Pad" 404c, the mobile phone can display the following Figure 8 If the mobile phone does not receive the data updated by S's Pad during the display of interface 801, in response to the user clicking "S's Pad" 404c, the mobile phone may display the following Figure 8 Interface 803 shown in (c) of FIG. 802. By comparing interface 802 with interface 803, it can be seen that after the data of S's Pad is updated, two new photos are saved in S's Pad, two new photos are acquired through the camera, and a new album named "New Album" containing three photos is added to S's Pad. Optionally, if there is a data change in an album, the cover of the album may also change, for example, to a thumbnail of a recently added photo.

[0130] It should be noted that after the data center of the mobile phone receives the updated data from 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. Considering 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 the S Pad. Among them, this loading interface can be Figure 5B The interface 407 shown is similar and will not be described in detail here. After the gallery application has finished reloading the data, the above interface 802 may be displayed.

[0131] In the 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 browsing position of the user in the album interface (hereinafter referred to as the historical browsing position). Among them, the historical browsing position can be determined according to the album distribution and the anchor point, and is used to indicate the position of the album currently located at the anchor point position in all albums. It should be noted that the historical browsing position is only used to indicate the position, not to indicate a specific album.

[0132] The album distribution is used to indicate the number of albums and the arrangement of all albums. For example, the arrangement of the albums can be 3x4, 4x5, etc., where 3x4 means that the albums are arranged in 3 rows and 4 columns. It should be noted that the arrangement of the albums as 3x4 should not be understood as the device including 12 albums, but may also include 10 or 11 albums, and the same applies to other arrangements.

[0133] The anchor point may be any position on the album interface, such as a first boundary at a first distance from the upper boundary / lower boundary of the album interface, and no specific limitation is made here.

[0134] For example, the anchor point is 100 dpi (dots per inch) away from the upper boundary of the album interface, and the pad of S includes 11 albums, which are distributed in 3x4 (i.e., 3 columns and 4 rows). Fig. 9 In the interface 901 shown in (a), the albums 100 dpi away from the upper border of the album interface include "All Photos", "Camera" and "My Favorites", so the historical browsing position is the first row of all albums, that is, the row where the three albums "All Photos", "Camera" and "My Favorites" are located. In response to the user's operation of sliding up the interface 901, the mobile phone can display Fig. 9 In the interface 902 shown in (b), the albums 100 dpi away from the upper border of the album interface include "Screenshots and Recordings", "One Recording and Multiple Access", and "Video Editing", so the historical browsing position is the second row of all albums, that is, the row where the three albums "Screenshots and Recordings", "One Recording and Multiple Access", and "Video Editing" are located.

[0135] 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 according to 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 sliding the interface again, thereby improving the efficiency of human-computer interaction.

[0136] For example, Fig.10 As shown in (a) of FIG. 1 , the mobile phone can display interface 902. Taking the distance from the anchor point to the upper border of the album interface as 150 dpi as an example, the historical browsing position corresponding to the mobile phone record interface 902 is the second row of all albums. In response to the user clicking on the "Local" 404a in the interface 902, the mobile phone can display the following: Fig.10 In response to the user clicking on "S's Pad" 404c, the mobile phone may display the following: Fig.10Interface 1002 shown in (c) in the figure. It can be understood that when there is data update in S's Pad, in response to the user clicking "S's Pad" 404c, the mobile phone can reload data from S's Pad. According to the historical browsing position and the distribution of the albums of S's Pad, the mobile phone can determine that the album located at the anchor point position in interface 1002 should be the "New Album", "Screenshot and Recording" and "One Recording for Multiple Gains" of the album currently located in the second row of the album. 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 because there is data update in S's Pad, the albums located at the anchor point position in interface 1002 are different from the albums at the anchor point position in interface 902, that is, "New Album" is added to interface 1002.

[0137] Optionally, 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, Fig.11 (a), (b) and (c) in the figure show the process of switching from interface 1101 to interface 1102. The album in the interface gradually changes from the album of the local 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.

[0138] It should be noted that the above only takes 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.

[0139] In the embodiment of the present application, the mobile phone can also search for data on the local and / or peer devices. Fig. 12A Give a detailed introduction.

[0140] like Fig. 12AAs shown in (a) of FIG. 1 , the mobile phone can display the album interface 1201 of the mobile phone. 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 a user clicking on the search box 1202, and in response to the operation, the mobile phone can display the following: Fig. 12A Interface 1203 shown in (b) in the figure. Among them, interface 1203 can display the classification information of photos to the user. For example, in interface 1203, the mobile phone classifies the photos of the mobile phone according to time, portraits, and things. For example, under the time label, the mobile phone classifies the photos of the mobile phone according to the three time labels of "this month", "last month", and "this year", wherein 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 label, the mobile phone classifies the photos of the mobile phone according to different characters, such as the four different characters in interface 1203. Under the business label, the mobile phone classifies the photos of the mobile phone according to "landscape", "animals", "documents" and "architecture". It should be noted that the above-mentioned classification labels can also be other, and there is no specific limitation here. And the user can see these classification information without entering keywords.

[0141] Optionally, the interface 1203 may also 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 may receive an operation of the user clicking on "clear" 1203b, and in response to the operation, the mobile phone may clear the search history. After the mobile phone clears the search history, the interface 1203 no longer displays the keywords that the user has entered. For example, if Fig. 12A As shown in (b), 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.

[0142] In addition, if there are peer devices displayed in the album interface 1201 that have not established a connection with the mobile phone, then in response to the user clicking the search box, the mobile phone can establish connections with all 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 quick searches can be performed based on keywords during subsequent searches.

[0143] For example, when the mobile phone displays the album interface, it discovers four devices in sequence, namely 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, namely S's mobile phone, S's Pad and S's smart screen, in the album interface 1201.

[0144] 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, then in response to the user clicking on the search box 1202, the mobile phone can establish connections with S's mobile phone, S's Pad and S's smart screen respectively.

[0145] 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 on the search box 1202, the mobile phone can establish connections with S's Pad and S's smart screen respectively.

[0146] In response to the user inputting 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 ended. Searching means that the mobile phone is searching for data related to the keyword "cat". End of search 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 searching for pictures or videos related to the keyword on the device, or not searching the device because the connection is not established.

[0147] 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 need to establish a connection with the peer device and obtain the data of the peer device. Therefore, it is possible that when the search progress of the mobile phone is at the end of the search, the search progress of the peer device is still in progress. Fig. 12A As shown in (c) of FIG. 1 , the mobile phone may display interface 1204. Interface 1204 displays the search results of the local device, such as 239 photos related to "cat" from the local device, indicating that the search progress of the local device is search completed. Interface 1204 also displays that the search progress of S's mobile phone, S's Pad, and S's smart screen is in search.

[0148] Optionally, the search results of the local machine also include associative words obtained by associating the keywords, and classification information for classifying the searched photos related to the keywords. For example, the mobile phone associates the keyword "cat" to obtain associative words such as "giant panda" and photos containing the word "cat", and then classifies the searched photos according to the associative words, and can obtain 100 photos and videos related to "giant panda" and 32 photos and videos containing the word "cat". Among them, in response to the user's operation on "giant panda", the mobile phone can display all photos and videos under the "giant panda" category.

[0149] Optionally, the mobile phone can also perform a progressive search based on keywords, and the search results of the local machine also include the search results obtained by the progressive search of the mobile phone. Among them, the progressive search can be understood as gradually narrowing the search scope. For example, the mobile phone can search based on the keyword "cat" in the scope of "X country", "X city", and "X district", and obtain photos or videos related to the keyword "cat" in "X country", "X city" and "X district" respectively.

[0150] 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.

[0151] For example, after the search progress of all devices is complete, the mobile phone can display the search result interface. The search result interface can be Fig. 12A Interface 1205 shown in (d) in the figure. Interface 1205 shows that the mobile phone obtains search results of this device and S's Pad, but does not obtain search results of 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 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 is not displayed whether the search results of S's smart screen are obtained.

[0152] In the case that the mobile phone fails to obtain the search results of the peer device because the mobile phone is not connected to the peer device, the mobile phone may also provide a re-search option. For example, the interface 1205 also includes "re-search" 1205a. In response to the user's operation on "re-search" 1205a, the mobile phone re-establishes a connection with S's mobile phone so that the mobile phone re-searches whether there are resources related to the keyword "cat" in S's mobile phone.

[0153] When the mobile phone fails to obtain the search result of the peer device because there are no resources related to the keyword in the peer device, the mobile phone may not provide a re-search option. Fig. 12A In the interface 1206 shown in (e), the search result of S's mobile phone is "No pictures and videos found", and the interface 1206 does not include a "Re-search" control or icon.

[0154] In response to the user sliding down the interface 1206, the mobile phone may display the following Fig. 12B The interface 1207 shown in (a) of FIG. 1207 includes the search results of S's Pad, that is, thumbnails of 45 pictures or videos related to the keyword "cat". For example, the search results of S's Pad include thumbnail 1207a. In response to the user's operation on thumbnail 1207a, the mobile phone may display the following: Fig. 12B Interface 1208 shown in (b) in FIG. 1208 may include thumbnail 1208a, where thumbnail 1208a and thumbnail 1207a are thumbnails of different sizes of the same picture, and the size of thumbnail 1208a is larger than the size of thumbnail 1207a, making it easier for users to preview. Interface 1208 also includes options such as "Share", "Edit", "Download", and "Copy". In response to the user's operation of options such as "Share", "Edit", "Download", and "Copy", the mobile phone can share, edit, download, or copy the photo corresponding to thumbnail 1207a.

[0155] 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 the local data based on the keyword, and send a search instruction carrying 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 pictures 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 identifier carried in the search results.

[0156] In the embodiment of the present application, the mobile phone can periodically detect the connection status between the mobile phone and the opposite device. If it is detected that the connection status between the mobile phone and the opposite device changes, the mobile phone can refresh the content corresponding to each device on the search result interface.

[0157] There are two situations in which the connection state 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.

[0158] In the above situation (1), that is, when the mobile phone detects that the mobile phone and the peer device have switched from a disconnected state to a connected state, the mobile phone can search the data of the peer device for data related to the keyword after establishing a connection with the peer device. 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 that the peer device does not include data related to the keyword.

[0159] Regarding the above situation (2), that is, when the mobile phone detects that the connection state between the mobile phone and the peer device switches 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.

[0160] The device status of the peer device includes discoverable and undiscoverable. The discoverable status 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, and Honor Sharing), the peer device is disconnected from the local device and is in a discoverable state.

[0161] The undiscoverable state may refer to that the mobile phone cannot search for the peer device. For example, when the peer device is offline due to reasons such as the distance from the mobile phone exceeding the preset distance, Bluetooth, WLAN being turned off, or the mobile phone being powered off, the peer device is disconnected from the mobile phone and is in the undiscoverable state.

[0162] If the peer device is discoverable, the mobile phone may display the reason why the search results of the peer device are not obtained on the search results interface. If the peer device is not discoverable, the mobile phone does not display content related to the peer device on the search results interface, such as deleting the search results of the peer device or the reason why the search results of the peer device are not obtained.

[0163] For example, Fig.13 As shown in (a) of FIG. 1 , the mobile phone may display interface 1301, which includes search results of the mobile phone and S's Pad. If the mobile phone is disconnected from S's Pad and S's Pad cannot be found, the mobile phone may display Fig.13 Interface 1302 shown in (b) of FIG. 1302 is similar to interface 1301, except that interface 1302 does not include any content of S's Pad. If the mobile phone is disconnected from S's Pad and S's Pad is discoverable, the mobile phone may display Fig.13Interface 1303 shown in (c) in the figure. Interface 1303 is similar to interface 1301, except that the search results of S's Pad are changed from resources related to the keyword "cat" in interface 1301 to reasons for not finding related resources, such as "S's Pad is using mouse and keyboard sharing, please disconnect and try again."

[0164] 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.

[0165] For example, Fig.14 As shown, when the mobile phone displays interface 1401, the mobile phone is disconnected from the opposite device, but the mobile phone has not detected the disconnection from the opposite 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 display interface 1402 normally.

[0166] It can be seen that when the mobile phone detects that the connection status between the mobile phone and the peer device has changed, the search result page can be refreshed. The search result page will display different content according to the status of the peer device, so the user can quickly understand the cause of the disconnection according to the search result page.

[0167] In the embodiment of the present application, the mobile phone may also be disconnected from the peer device when displaying the picture selection interface (also called the grid page) or the large picture interface (also called the large picture page). If the mobile phone is disconnected from the peer device when 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.

[0168] Let's combine Figure 14-15 Describes the interfaces involved when the grid page is disconnected.

[0169] For example, Fig.14 As shown in (a) of FIG. 14, the mobile phone may display interface 1401. Interface 1401 includes search results of the mobile phone and S's Pad, and a "more" option 1401a corresponding to the search results of S's Pad. In response to the user's operation on the "more" option 1401a, the mobile phone may display the following: Fig.14Interface 1402 shown in (b) in the figure. Interface 1402 is used to display photos and videos related to the keyword on S's Pad. Optionally, the photos and videos can be classified according to time. In addition, interface 1402 also includes a return key 1402a and a title 1402b. In response to the user's operation of the return key 1402a, the mobile phone can redisplay interface 1401. Title 1402b includes keywords and resource sources, such as "Cat (S's Pad)", indicating that the photos and videos displayed on interface 1402 are from S's Pad and are related to the keyword "cat".

[0170] When the mobile phone displays interface 1402, if the mobile phone is disconnected from S's Pad, the mobile phone may display the following Fig.14 Interface 1403 shown in (c) of FIG. Interface 1403 is similar to interface 1402, except that interface 1403 includes a disconnection prompt 1403a. The disconnection prompt 1403a is used to indicate that the local device and S's Pad are disconnected, for example, "Device connection has been disconnected".

[0171] In response to the user's operation of the return key 1402a, the mobile phone can determine whether the status of the peer device (i.e., S's Pad) is discoverable or undiscoverable. If the status of the peer device is discoverable, the mobile phone can display the following information: Fig.14 Interface 1404 shown in (d) in the figure. 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."

[0172] If the peer device is undiscoverable, the phone can display Fig.14 The interface 1405 shown in (e) in FIG. 1405 does not include the relevant content of S's Pad.

[0173] Among them, Fig.15 As shown in (a) of FIG. 1403 , in response to the 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 status of the peer device is undiscoverable, the mobile phone can display the following: Fig.15 The interface 1406 shown in (b) of FIG. 1406 includes a prompt message 1406a, and the prompt message 1406a is used to indicate that the local device and S's Pad cannot establish a connection, for example, "Cannot establish a connection".

[0174] If the peer device is discoverable, the phone can reconnect to the peer device and display the following information after the connection is reestablished: Fig.15Interface 1407 shown in (c) in the figure, wherein interface 1407 is used to display larger thumbnails of the photos selected by the user, as well as options such as sharing, editing, saving, and copying.

[0175] 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, and can directly display interface 1406 without judging whether the status of the peer device is discoverable or undiscoverable.

[0176] It should also be noted that if the mobile phone is disconnected from the peer device when the interface 1402 is displayed, but the mobile phone has not yet detected the disconnection from the peer device, in this case the mobile phone can continue to display the interface 1402, that is, the disconnection prompt 1403a is not displayed. In addition, the mobile phone can normally respond to the user's operation of viewing a large picture (for example, the user clicks on any photo in the interface 1402).

[0177] Combine the following Fig.16 Describes the interfaces involved when a large image page is disconnected.

[0178] like Fig.16 As shown in (a) of FIG. 1 , the mobile phone can display interface 1601, which includes thumbnail 1601a and options such as share, edit, save, and copy. In response to the user's operation on the share, edit, save, copy, and other options, the mobile phone can perform operations such as share, edit, save, and copy on the photo corresponding to 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, Fig.14 The title includes the source of the resource, such as "S's Pad", indicating that the thumbnail 1601a comes from S's Pad.

[0179] If the mobile phone is disconnected from the peer device (i.e. S's Pad), the mobile phone may display the following: Fig.16 The interface 1602 shown in (b) of FIG. 1602 includes a disconnection prompt 1602a. The disconnection prompt 1602a is used to indicate that the local device and S's Pad are disconnected, for example, "Device connection has been disconnected".

[0180] In response to the user's operation of the return key 1601b, the mobile phone can determine whether the status of the peer device (i.e., S's Pad) is discoverable or undiscoverable. If the status of the peer device is discoverable, the mobile phone can display the following information: Fig.16 Interface 1603 shown in (c) of FIG. The interface 1603 includes a re-search control and a prompt message of S's Pad, such as "S's Pad is using mouse and keyboard sharing, please disconnect and try again."

[0181] If the peer device is undiscoverable, the phone can display Fig.16 The interface 1604 shown in (d) in FIG. The interface 1604 does not include the relevant content of S's Pad.

[0182] If the user still wants to share, edit, save, copy, etc. the photo corresponding to thumbnail 1601a, in response to the user's operation of sharing, editing, saving, copying, etc., the mobile phone can also determine whether the status of the peer device (i.e., S's Pad) is discoverable or undiscoverable. If the status of the peer 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 peer device is discoverable, the mobile phone can re-establish a connection with the peer device, and perform corresponding operations on the photo corresponding to thumbnail 1601a after the connection is re-established.

[0183] It should be noted that if the mobile phone is disconnected from the peer device when displaying interface 1601, but the mobile phone has not detected the disconnection from the peer device, in this case the mobile phone can continue to display interface 1601, that is, the disconnection prompt 1602a is not displayed. In addition, the mobile phone can normally respond to the user's operation of copying the picture and returning to the search result page.

[0184] See also Fig.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, and the first device and the second device join the same network. Among them, the first device is, for example, a mobile phone in the above embodiments, and 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, a peer device in the above embodiments, such as S's mobile phone, S's pad, S's smart screen, etc.

[0185] like Fig.17 As shown, the method includes:

[0186] S1701, the first device displays a first interface, the first interface includes a search box, a device name of the second device, and a device name of the third device.

[0187] In an optional implementation, the first interface is an album interface of a gallery application, or may be an interface of a distributed application such as a file management application.

[0188] Exemplarily, the first interface is, for example, Figure 4A Interface 404, Fig. 12AIn interface 1201, the search box is, for example, search box 404e in interface 404, search box 1202 in interface 1201, etc. 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.

[0189] S1702, in response to a search operation for a keyword input in the search box, display 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.

[0190] The second interface is the search result interface, for example Fig. 12A Interface 1205, interface 1206 or Fig.13 Interface 1301 in the figure, etc. The keyword can be any word input by the user, such as "cat".

[0191] 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 .

[0192] 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.

[0193] Exemplarily, when the search results of the second device include data related to the keyword in the second device, the second interface may be Fig.13 Interface 1301, Fig. 12A In interface 1206 , the search results of the second device may include data related to the keyword “S’s Pad”.

[0194] 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.

[0195] Exemplarily, when the prompt information of the second device indicates the reason why the first device fails to establish a connection with the second device, the second interface may be interface 1205, and the prompt information of the second device may be, for example, "The number of collaborations of S's mobile phone has reached the upper limit, please disconnect one device and try again" in interface 1205. 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 searches for data of the second device based on keywords after establishing a connection with the second device. For example, the second option may be "Search again" 1205a in interface 1205.

[0196] In an optional implementation, the first device displays the first interface including: in response to a 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 a user's operation on the first option, the first device displays 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 a gallery application.

[0197] 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 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.

[0198] Exemplarily, the fourth interface is, for example, Fig.13 In interface 1303, the reason for disconnection between the first device and the second device is, for example, "Connection abnormality, try restarting WLAN and try again" in interface 1303. In other implementations, the reason for disconnection between the first device and the second device may be other reasons, which are not specifically limited here.

[0199] Exemplarily, the fifth interface is, for example, Fig.13 In the interface 1302, the interface 1302 does not include any information of "S's Pad".

[0200] In an optional implementation, the fourth interface further includes a third option, and the third option is used to trigger the first device to establish a connection with the second device. Exemplarily, the third option may be a “re-search” option in interface 1303 .

[0201] In an optional implementation, 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 of the second device. Exemplarily, the fourth option is, for example, the "more" option 1401a in interface 1401, and the sixth interface is, for example, interface 1402.

[0202] Among them, the first device can continue to display the second interface within the first time after the first device is disconnected from the second device, and display the sixth interface in response to the user's operation on the second option. Among them, the first device has been disconnected from the second device within the first time, and the first device has not detected that the first device is disconnected from the second device. In other words, because the data of the second device is stored in the data center of the first device, when the first device does not detect 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.

[0203] 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.

[0204] 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 .

[0205] In an optional embodiment, the sixth interface also includes the 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 is 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 is 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 of the second device.

[0206] Exemplarily, the fifth option is, for example, the return key 1402a in the interface 1402, and the eighth interface is, for example, Fig.14 In the interface 1404, the ninth interface is, for example, Fig.14 Interface 1405 in.

[0207] 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.

[0208] 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 .

[0209] 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 tenth interface, 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.

[0210] Exemplarily, the eleventh interface is, for example, interface 1602 , and the second prompt information is, for example, a disconnection prompt 1602 a in interface 1602 .

[0211] In an optional implementation, the tenth interface also includes the 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 is switched from a connected state to a disconnected state, and the first device can search for the second device, then 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 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 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.

[0212] 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 .

[0213] 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 thumbnail information 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.

[0214] Exemplarily, the fourteenth interface is, for example, Figure 5A Interface 405, Fig.10 The fifteenth interface is, for example, the interface 406 , and the disconnection reminder is, for example, the disconnection reminder 406 a in the interface 406 .

[0215] 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 by the first device in response to the user's operation on the device name of the second device for the last time. 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.

[0216] In an optional implementation, the method further includes: when it is detected that data update has occurred on the second device, the first device displays a sixteenth interface; wherein the sixteenth interface includes thumbnail information of updated data on the second device.

[0217] Exemplarily, the sixteenth interface is, for example, Figure 7 Interface 702 in.

[0218] 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.

[0219] An embodiment of the present application also provides a computer-readable storage medium, including 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.

[0220] This embodiment also provides a computer program product. When the computer program product is run on an electronic device, the electronic device executes each function or step in the above method embodiment.

[0221] 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 so that the chip executes each function or step performed by the mobile phone in the above method embodiment.

[0222] 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.

[0223] 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.

[0224] In the several embodiments provided in the present 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 only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0225] The unit described as a separate component may or may not be physically separated, and the component shown as a unit may be one physical unit or multiple physical units, that is, it may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiment.

[0226] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0227] 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, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of each embodiment method of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program code.

[0228] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present application and are not intended to limit it. Although the present application has been described in detail with reference to the preferred embodiments, a person of ordinary skill in the art should understand that the technical solution of the present application may be modified or replaced by equivalents without departing from the spirit and scope of the technical solution 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 a user 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 a second thumbnail, a copy option, a download option, a share option, and an edit option, 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; 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.

Citation Information

Cited By

  • Distributed data search method and electronic device

    EP4693009A1

  • Distributed data search method and electronic device

    WO2025044176A1