Icon data transfer method, electronic device and computer program

By obtaining reference icon data according to the device type during the device migration process and using the icon mapping algorithm to calculate the actual icon data, the layout and data integrity problems in icon data migration between single-screen devices and multi-screen devices are solved, and the maximum maintenance of user habits and data integrity is achieved.

JP7661661B2Active Publication Date: 2025-04-15HUAWEI TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
JP2023518057
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2020-09-22
Filing Date
2021-09-13
Publication Date
2025-04-15
Estimated Expiration
2041-09-13

AI Technical Summary

Technical Problem

In the prior art, when migrating icon data from a single screen device to a multi-screen device or vice versa, the icon layout cannot be effectively maintained, resulting in the icons being unable to be arranged as expected on the external screen of the multi-screen device, and data mismatch or missing may occur during the migration process.

Method used

During the device migration process, reference icon data is obtained based on the type of migrated device (single screen or multiple screens) and the actual icon data is calculated using the icon mapping algorithm to ensure the correct layout of the icons on the target device and data integrity.

Benefits of technology

In the process of icon data migration between different screen devices, it maximizes user habits and icon data integrity, and improves the convenience of user icon organization and management on multi-screen devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007661661000013
    Figure 0007661661000013
  • Figure 0007661661000014
    Figure 0007661661000014
  • Figure 0007661661000015
    Figure 0007661661000015
Patent Text Reader

Abstract

An icon data migration method, an electronic device, and a computer-readable storage medium are provided. A link establishment request sent by a migrating device is obtained, the link establishment request carrying the device type of the migrating device, the device type including a single-screen device or a multi-screen device. Reference icon data of the migrating device is obtained based on the device type of the migrating device and the device type of the migrated device after the link is successfully established. Actual icon data is calculated based on the reference icon data and the obtained icon layout of the first display screen. An icon corresponding to the actual icon data is displayed based on the icon layout. In this way, icon data migration between a migrating device of a different device type and a migrated device of a different device type can be implemented, so that user usage habits and icon data are maximized and desktop icon organization and management are more convenient for the user, thereby improving the convenience of the user's use of icons.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present application relates to the field of intelligent terminal technology, and in particular to an icon data migration method, an electronic device and a computer-readable storage medium. [Background technology]

[0002] With the development of intelligent terminals, the screens of intelligent terminals also appear in various forms. For example, a mobile phone with a foldable screen is used as an example. A mobile phone with a foldable screen has two screens of different sizes that are adapted to different usage scenarios of users. However, at present, the device types of mainstream intelligent terminals are all single-screen devices. Therefore, in the related art, the icon data of the old device is transferred to the new device by using data migration software.

[0003] In the related art, only the migration from a single-screen device to a single-screen device is considered. Therefore, when icon data is migrated from a single-screen device to a multi-screen device, the number of screens of the two devices does not match, so that the icon layout on the outer screen of the multi-screen device cannot be correctly maintained based on the user's expectation, and the desktop icons on the outer screen of the multi-screen device are irregularly distributed. Furthermore, when icon data is migrated from a multi-screen device to a single-screen device, a problem occurs that the migration target icon data expected by the user does not match the icon data actually migrated. In addition, when icon data is migrated from a single-screen device to a multi-screen device, a problem occurs that the migrated icon data is incomplete or missing. Summary of the Invention

[0004] In view of this, the present application provides an icon data migration method, an electronic device and a computer-readable storage medium. In this way, icon data migration between a migration device of a different device type and a migrated device of a different device type can be implemented, so that the user's usage habits and icon data are preserved to the maximum extent, and the organization and management of desktop icons is more convenient for the user, thereby improving the convenience of use for the user.

[0005] According to one aspect, an embodiment of the present application provides an icon data migration method applied to a migrated device. the migrated device includes a first display screen, and the method further comprises: obtaining a link establishment request sent by a transitioning device, where the link establishment request carries a device type of the transitioning device, the device type including a single-screen device or a multi-screen device; After a link is successfully established, obtaining reference icon data of the migrating device based on the device type of the migrating device and the device type of the migrated device; calculating actual icon data based on the reference icon data and the captured icon layout of the first display screen; and displaying an icon corresponding to the actual icon data. Includes.

[0006] In a possible implementation, the step of obtaining reference icon data of the migrating device based on the device type of the migrating device and the device type of the migrated device includes: If the device type of the migrating device includes a single-screen device and the device type of the migrated device includes a multi-screen device, obtaining all of the icon data transmitted by the migrating device and determining all of the icon data as the reference icon data, where the multi-screen device may include multiple display screens. Includes.

[0007] In a possible implementation, the step of obtaining reference icon data of the migrating device based on the device type of the migrating device and the device type of the migrated device includes: If the device type of the migrating device includes a multi-screen device and the device type of the migrated device includes a single-screen device, obtaining partial icon data that the migrating device selects to migrate and determining the partial icon data as the reference icon data, where the multi-screen device may include multiple display screens and the partial icon data is used to indicate icon data corresponding to one designated display screen of the migrating device. Includes.

[0008] In a possible implementation, the step of calculating actual icon data based on the reference icon data and the acquired icon layout of the first display screen comprises: determining an icon layout for a designated display screen of the transition device based on the reference icon data; determining whether an icon layout of each first display screen is the same as the icon layout of the designated display screen; and if it is determined that the icon layout of the first display screen is the same as the icon layout of the designated display screen, using the reference icon data of the designated display screen as the actual icon data of the first display screen; or determining, if it is determined that the icon layout of the first display screen is different from the icon layout of the specified display screen, by using an icon mapping algorithm and based on the reference icon data and the icon layout of the first display screen, the actual icon data of the first display screen. Includes.

[0009] In a possible implementation, the icon layout of the first display screen includes a second number of icon columns; and determining the actual icon data of the first display screen by using an icon mapping algorithm and based on the reference icon data and the icon layout of the first display screen, determining a first number of icon columns for the designated display screen from the icon layout for the designated display screen; calculating coordinates of each icon in the icon layout of the first display screen by using the icon mapping algorithm and based on the first number of icon columns, the second number of icon columns, and the obtained coordinates of each icon in the icon layout of the specified display screen; and determining actual icon data for at least one first display screen using the set of coordinates for each icon as the actual icon data for the first display screen; Includes.

[0010] In a possible implementation, the second number of icon columns includes N columns and the first number of icon columns includes J columns; and calculating coordinates of each icon in the icon layout of the first display screen by using the icon mapping algorithm and based on the first number of icon columns, the second number of icon columns, and the obtained coordinates of each icon in the icon layout of the specified display screen, comprising:

number

number

[0011] In a possible implementation, the step of obtaining reference icon data of the migrating device based on the device type of the migrating device and the device type of the migrated device includes: If the device type of the migrating device includes a multi-screen device and the device type of the migrated device includes a multi-screen device, obtaining a plurality of partial icon data that the migrating device selects to migrate, and determining each of the partial icon data as the reference icon data to determine a plurality of reference icon data, where the multi-screen device may include a plurality of display screens, and the partial icon data is used to indicate icon data corresponding to one designated display screen of the migrating device. Includes.

[0012] In a possible implementation, the step of calculating actual icon data based on the reference icon data and the acquired icon layout of the first display screen comprises: displaying prompt information on each first display screen, where the prompt information is used to prompt a user to select reference icon data that needs to be migrated from the plurality of reference icon data; receiving, for each first display screen, a user selection operation and determining an icon layout for the designated display screen that corresponds to the reference icon data selected by the user; determining whether an icon layout of each first display screen is the same as the icon layout of the designated display screen; and if it is determined that the icon layout of the first display screen is the same as the icon layout of the designated display screen, using the reference icon data of the designated display screen as the actual icon data of the first display screen; or determining the actual icon data for the first display screen by using an icon mapping algorithm and based on the reference icon data selected by the user and the icon layout of the first display screen if it is determined that the icon layout of the first display screen is different from the icon layout of the specified display screen. Includes.

[0013] In a possible implementation, the icon layout of the first display screen includes a second number of icon columns; and The step of determining the actual icon data of the first display screen by using an icon mapping algorithm and based on the reference icon data selected by the user and the icon layout of the first display screen includes: determining a first number of icon columns for the specified display screen based on the icon layout for the specified display screen that corresponds to the reference icon data selected by the user; calculating coordinates of each icon in the icon layout of the first display screen by using the icon mapping algorithm and based on the first number of icon columns, the second number of icon columns, and the obtained coordinates of each icon in the icon layout of the specified display screen; and determining actual icon data for a plurality of first display screens using the set of coordinates for each icon as the actual icon data for the first display screen; Includes.

[0014] According to a second aspect, an embodiment of the present application provides an electronic device including a display, one or more processors, a memory, a plurality of applications, and one or more computer programs, the one or more computer programs being stored in the memory, the one or more computer programs including instructions that, when executed by the device, enable the device to perform an icon data migration method in any one of the possible implementations of the aforementioned aspect.

[0015] According to a third aspect, an embodiment of the present application provides a computer-readable storage medium for a program code executed by a device, the program code including instructions for performing the method of the first aspect or any one of the possible implementations of the first aspect.

[0016] In the technical solution provided in the embodiment of the present application, a link establishment request sent by a migrating device is obtained, and the link establishment request carries a device type of the migrating device, the device type includes a single-screen device or a multi-screen device. The reference icon data of the migrating device is obtained based on the device type of the migrating device and the device type of the migrated device after the link is successfully established. The actual icon data is calculated based on the reference icon data and the obtained icon layout of the first display screen. The icon corresponding to the actual icon data is displayed based on the icon layout. In this way, icon data migration between a migrating device of a different device type and a migrated device of a different device type may be implemented, so that the user's usage habits and icon data are maximally preserved, and the organization and management of desktop icons is more convenient for the user, thereby improving the convenience of the user's use of icons. [Brief description of the drawings]

[0017] [Figure 1]FIG. 1 is a diagram of an architecture of an icon data migration system according to an embodiment of the present application.

[0018] [Diagram 2] 1 is a structural diagram of a migrating device 110 or a migrating device 120 according to an embodiment of the present application.

[0019] [Diagram 3] 2 is a flowchart of an icon data migration method according to an embodiment of the present application.

[0020] [Figure 4] FIG. 13 is a schematic diagram of the effect of displaying prompt information according to an embodiment of the present application;

[0021] [Diagram 5] 1 is a schematic diagram of an icon layout of a transition device 110 according to an embodiment of the present application.

[0022] [Figure 6] 1 is a schematic diagram of an icon layout of an inner display screen and an outer display screen of a migrated device 120 according to an embodiment of the present application.

[0023] [Figure 7] 1 is a schematic diagram of another icon layout of a migrating device 110 and a migrating device 120 according to an embodiment of the present application.

[0024] [Figure 8] 1 is a schematic diagram of an icon layout for a specified display screen of a migrating device 110 and a first display screen of a migrating device 120 according to an embodiment of the present application.

[0025] [Figure 9] 1 is a schematic diagram of another icon layout of a specified display screen of a migrating device 110 and a first display screen of a migrating device 120 according to an embodiment of the present application.

[0026] [Figure 10] FIG. 2 is a schematic diagram of establishing a coordinate system according to an embodiment of the present application;

[0027] [Figure 11] 1 is a schematic diagram of another icon layout of a specified display screen of a migrating device 110 and a first display screen of a migrating device 120 according to an embodiment of the present application.

[0028] [Figure 12a] FIG. 13 is a schematic diagram of the effect of displaying an icon by a migrated device 120 according to an embodiment of the present application.

[0029] [Figure 12b] FIG. 13 is a schematic diagram of another effect of displaying an icon by the migrated device 120 according to an embodiment of the present application.

[0030] [Figure 13] FIG. 13 is a schematic diagram of another effect of displaying an icon by the migrated device 120 according to an embodiment of the present application.

[0031] [Figure 14] 1 is a flowchart of another icon data migration method according to an embodiment of the present application.

[0032] [Figure 15] FIG. 13 is a schematic diagram of another effect of displaying prompt information according to an embodiment of the present application;

[0033] [Figure 16] 13 is a schematic diagram of another icon layout for a specified display screen of a transition device 110 according to an embodiment of the present application.

[0034] [Figure 17] 13 is a schematic diagram of another icon layout for a specified display screen of a transition device 110 according to an embodiment of the present application.

[0035] [Figure 18a] FIG. 13 is a schematic diagram of another effect of displaying an icon by the migrated device 120 according to an embodiment of the present application.

[0036] [Figure 18b] FIG. 13 is a schematic diagram of another effect of displaying an icon by the migrated device 120 according to an embodiment of the present application.

[0037] [Figure 19] FIG. 1 is a schematic block diagram of an electronic device according to an embodiment of the present application.

[0038] [Figure 20] FIG. 1 is a schematic diagram of a structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0039] In order to make the technical solutions in the present application more understandable, the following describes in detail the embodiments of the present application with reference to the accompanying drawings.

[0040] It should be clear that the described embodiments are only some, not all, of the embodiments of the present application. All other embodiments obtained by those skilled in the art based on the embodiments of the present application without creative efforts shall fall within the protection scope of the present application.

[0041] The terms used in the embodiments of the present application are for the purpose of describing particular embodiments only and are not intended to be limiting of the present application. As used in the embodiments of the present application and the appended claims, the singular forms "a," "said," and "the" are intended to include the plural forms as well, unless the context clearly dictates otherwise.

[0042] It should be understood that the term "and / or" used herein merely describes a correspondence between related objects, and indicates that three relationships may exist. For example, A and / or B may indicate three cases: only A is present, both A and B are present, and only B is present. In addition, the character " / " in this specification generally indicates an "or" relationship between related objects.

[0043] Before describing the icon data transfer method provided in the embodiment of the present application, a brief description will first be given of an icon data transfer method in the related art.

[0044] With the increasing dependency of users on intelligent terminals, there are more and more different types of applications (Application, APP for short). Due to the demands of life and work, the number of APPs installed and used by users also shows a significant increasing trend. As more and more APPs are installed on intelligent terminals, when users replace their intelligent terminals or use new intelligent terminals, they usually do not choose to re-download these APPs to the new intelligent terminals, but migrate the icon data of the old device to the new device to reduce the time spent on installing applications.

[0045] At present, the screens of mainstream intelligent terminals are all single-screen type. Therefore, in the related art, icon data of old devices can usually be successfully transferred to new devices by using data transfer software. However, with the development of intelligent terminals, the screens of intelligent terminals also come in various forms. A mobile phone with a foldable screen is used as an example. Two screens of different sizes appear on the mobile phone with a foldable screen, which is applied to different usage scenarios of users. In addition to the mobile phone with a foldable screen, another multi-screen device may also be included. In such a multi-screen device, when the data migration software in the related art is used to migrate the icon data of the single-screen device to the multi-screen device, the number of screens of these two devices does not match, so on some screens of the multi-screen device, the icon layout cannot be correctly maintained according to the user's expectations, which causes the problem that the desktop icons on some screens of the multi-screen device are irregularly distributed.

[0046] Furthermore, in such a multi-screen device, when the data migration software in the related art is used to migrate the icon data of the multi-screen device to a single-screen device, the number of screens is different, so the icon data to be migrated that the user expects does not match the icon data that is actually migrated. In addition, when the data migration software in the related art is used to migrate the icon data of the multi-screen device to the multi-screen device, the screen form is different, so the migrated icon data is incomplete or missing.

[0047] Based on this, the technical problem to be solved in this application is how to solve the problems of icon distribution, insufficient migrated data and incomplete icon data caused by different screen forms or screen numbers during data migration between multi-screen devices and single-screen devices and between multi-screen devices. Therefore, the embodiment of this application provides an icon data migration method to solve the data migration problems existing in the related art and reduce the user's cumbersome synchronization operations.

[0048] 1 is a diagram of an architecture of an icon data migration system according to an embodiment of the present application. As shown in FIG. 1, the system 100 includes a migrating device 110, a migrated device 120, and a cloud backup and storage platform 130. The migrating device 110 includes a device that migrates icon data to another device. The migrated device 120 includes a device that receives the icon data sent by the migrating device 110.

[0049] It should be noted that the migrating device 110 and the migrated device 120 may be terminal devices, such as mobile phone terminals, tablet computers, notebook computers, augmented reality (AR) / virtual reality (VR) terminals or in-vehicle terminals; or may be servers or clouds, etc. In addition, the migrating device 110 and the migrated device 120 may alternatively be computing devices, such as desktop computers, laptop computers, handheld computers, mobile phones, dedicated media players or consumer electronic devices.

[0050] In addition, the migrating device 110 and the migrated device 120 may alternatively be other types of devices, and all devices that meet the specified device structure may be used as the migrating device 110 and the migrated device 120. The following briefly describes the apparatus of the migrating device 110 or the migrated device 120. Figure 2 is a structural diagram of the apparatus of the migrating device 110 or the migrated device 120 according to an embodiment of the present application. The apparatus of the migrating device 110 may include an application module, an operating system, a processor, a communication module, a memory, a display device, and an input device. The apparatus of the migrated device 120 may include an application module, an operating system, a processor, a communication module, a memory, a display device, and an input device.

[0051] The processor is configured to control the receipt and manipulation of input and output data between components of the computer system. In particular, the processor is configured to calculate causal and presentation times and perform sorting calculations.

[0052] The communication module is configured to connect the terminal device to the Internet and can perform data communication with a server deployed on the Internet. Data interaction between the application and the server is performed by using the communication module. Specifically, the communication module can be configured to interact with the server to obtain the server's UTC time, transmit chat records, and receive records.

[0053] The memory is configured to connect to the processor, and the memory is further configured to store information about the operating system and applications used by the terminal, etc. The memory may include read-only memory (ROM) and random access memory (RAM), etc. This information may alternatively reside on a removable storage medium and may be loaded or installed into the computer system when needed. Removable storage media include SD memory cards. Specifically, the memory is configured to store a chat application and record chat records including, but not limited to, chat content, causal time, and display time, etc.

[0054] The display device is operatively connected to the processor and configured to receive and display the processing results returned by the processor. Generally, the display device is configured with a graphical user interface (GUI), which includes an easy-to-use user interface provided between a user of the computer system and an operating system or applications running on the computer system. Specifically, the display device is configured to display the combined chat records and time blocks based on the sorting results.

[0055] The input device is operably connected to the processor. The input device of the terminal is configured to receive the user's input operation and can transmit the content input by the user to the server. The input device may be a touchpad or touch screen disposed on or in front of the display device and may be based on various sensing technologies including, but not limited to, capacitive sensing, resistive sensing, surface acoustic wave sensing, pressure sensing, and light sensing. The touchpad or touch screen may be integrated with the display device or may be a separate component. The input device may be a single-point or multi-point input device. Specifically, the input device is configured to receive the user's chat input operation.

[0056] That is, all terminal devices that satisfy the above-mentioned device structure can be used as the migrating device 110 or the migrated device 120 provided in this embodiment of the present application. The following will specifically describe the migrating device 110 or the migrated device 120 provided in this embodiment of the present application.

[0057] In this embodiment of the present application, the migrating device 110 includes a first cloud backup module 1101, a first cloning module 1102, and a first backup and recovery module 1103. The migrated device 120 includes a second cloud backup module 1201, a second cloning module 1202, and a second backup and recovery module 1203. By using the cloud backup and storage platform 130, data transmission is performed between the first cloud backup module 1101 and the second cloud backup module 1201. By using a Wi-Fi signal, data transmission is performed between the first cloning module 1102 and the second cloning module 1202. By using a device assistant, data transmission is performed between the first backup and recovery module 1103 and the second backup and recovery module 1203. The device assistant includes migration software provided by the system or downloaded from another platform.

[0058] Specifically, the icon data transfer can be performed in the above three data transmission methods.

[0059] In the optional solution, data transmission performed by using the cloud backup and storage platform 130 is used as an example. The migrated device 120 obtains a link establishment request sent by the migrating device 110, where the link establishment request carries the device type of the migrating device 110. After the link is successfully established, the migrating device 110 and the migrated device 120 can mutually obtain each other's device types. Based on the device types of the migrating device 110 and the migrated device 120, the migrating device 110 uploads reference icon data to the cloud backup and storage platform 130 by using the first cloud backup module 1101. The reference icon data is sent to the migrated device 120 by using the cloud backup and storage platform 130, so that the migrated device 120 obtains the reference icon data of the migrating device 110, and calculates actual icon data based on the reference icon data and the obtained icon layout of the first display screen, thereby completing the migration of the icon data. After the icon data is migrated, an icon corresponding to the actual icon data is displayed.

[0060] In another optional solution, data transmission performed by using Wi-Fi signals is used as an example. The migrating device 120 acquires a link establishment request sent by the migrating device 110, and the link establishment request carries the device type of the migrating device 110. After the link is successfully established, the migrating device 110 and the migrating device 120 can mutually acquire each other's device types. Based on the device types of the migrating device 110 and the migrating device 120, the migrating device 110 transmits reference icon data to the migrating device 120 by using Wi-Fi signals, so that the migrating device 120 acquires the reference icon data of the migrating device 110, and calculates actual icon data based on the reference icon data and the acquired icon layout of the first display screen, thereby completing the migration of the icon data. After the icon data is migrated, an icon corresponding to the actual icon data is displayed.

[0061] In another optional solution, data transmission performed by using a device assistant is used as an example. The migrating device 120 acquires a link establishment request sent by the migrating device 110, and the link establishment request carries the device type of the migrating device 110. After the link is successfully established, the migrating device 110 and the migrating device 120 can mutually acquire each other's device types. Based on the device types of the migrating device 110 and the migrating device 120, the migrating device 110 sends reference icon data to the migrating device 120 by using a device assistant, so that the migrating device 120 acquires the reference icon data of the migrating device 110, and calculates actual icon data based on the reference icon data and the acquired icon layout of the first display screen, thereby completing the migration of the icon data. After the icon data is migrated, an icon corresponding to the actual icon data is displayed.

[0062] In this embodiment of the present application, icon data migration between a migrating device of a different device type and a migrated device of a different device type can be implemented by using the aforementioned system architecture 100. Specifically, the following embodiment is used to respectively describe in detail the data migration process of migrating icon data from a multi-screen device to a single-screen device, the data migration process of migrating icon data from a single-screen device to a multi-screen device, and the data migration process of migrating icon data from a multi-screen device to a multi-screen device.

[0063] 3 is a flow chart of an icon data migration method according to an embodiment of the present application. The method is applied to a migrated device. As shown in FIG. 3, the method includes the following steps:

[0064] Step 102: Obtain a link establishment request sent by a transition device.

[0065] In this embodiment of the present application, each step is performed by the migrated device. By performing step 102, the migrated device obtains the device type of the migrating device, which can facilitate subsequent implementation of icon data migration between a migrating device of a different device type and a migrated device of a different device type.

[0066] In this embodiment of the present application, the link establishment request carries the device type of the migrating device, which includes a single-screen device or a multi-screen device. It should be noted that this embodiment of the present application specifically describes the process of migrating icon data from a migrating device whose device type includes a single-screen device to a migrated device whose device type includes a multi-screen device, and from a migrating device whose device type includes a multi-screen device to a migrated device whose device type includes a single-screen device. For the process of migrating icon data from a migrating device whose device type includes a multi-screen device to a migrated device whose device type includes a multi-screen device, please refer to the following embodiment.

[0067] Step 104: After the link is successfully established, obtain reference icon data of the migrating device based on the device type of the migrating device and the device type of the migrated device.

[0068] In this embodiment of the present application, different processes may be performed in step 104 based on different device types of the migrating device and different device types of the migrated device, which may specifically include the following steps:

[0069] In the solution, step 104 may specifically include, when the device type of the migrating device includes a single-screen device and the device type of the migrated device includes a multi-screen device, obtaining all icon data sent by the migrating device and determining all icon data as reference icon data.

[0070] At this stage, the multi-screen device includes multiple display screens, the single-screen device includes one display screen, and all the icon data can be understood as the sum of the icon data corresponding to the display screens. Because the device type of the transition device includes a single-screen device, all the acquired icon data of the transition device is the icon data of one display screen. In other words, if the device type of the transition device includes a single-screen device, all the icon data sent by the transition device is the icon data of the transition device.

[0071] In another solution, step 104 may alternatively include, when the device type of the migrating device specifically includes a multi-screen device and the device type of the migrated device specifically includes a single-screen device, obtaining partial icon data selected to be migrated and determining the partial icon data as reference icon data.

[0072] At this stage, a multi-screen device includes multiple display screens and a single-screen device includes one display screen, and the partial icon data is used to represent icon data corresponding to one designated display screen of the transition device.

[0073] In this embodiment of the present application, the multi-screen device may include multiple display screens. For example, the multi-screen device may include two screens, and the two screens may include an inner screen and an outer screen. In addition, the multi-screen device may alternatively include another number of first display screens, and the icon data migration method provided in this embodiment of the present application may be performed for the different number of first display screens. In this embodiment of the present application, partial icon data is used to indicate icon data corresponding to one designated display screen of the migrating device. That is, when the device type of the migrating device includes a multi-screen device, each display screen of the migrating device has different icon data. In this case, when the device type of the migrated device includes a single-screen device, the icon data corresponding to one designated display screen may be selected from the migrating device based on the user's selection operation for transmission. Therefore, the acquired icon data is not the entire icon data, but the partial icon data selected to be migrated.

[0074] Furthermore, in this embodiment of the present application, the process of the migrating device selecting partial icon data to be migrated may include: displaying prompt information on the migrating device to prompt a user to select reference icon data that needs to be migrated; and using the icon data that needs to be migrated as the partial icon data based on the user's selection operation, and sending the partial icon data to the migrated device.

[0075] In this embodiment of the present application, an example is used in which the migrating device includes two display screens. The two display screens include an outer screen and an inner screen. For example, as shown in FIG. 4, the display interface 2 of the migrating device displays a prompt information of "Please select the icon data that needs to be migrated", and provides the selection of "outer screen 4*6" and "inner screen 5*6". The display interface 2 is a display interface facing the user, and "outer screen 4*6" is used to indicate the icon data corresponding to the outer screen, and "outer screen 4*6" indicates that the icon layout of the outer screen includes six rows and four columns. "inner screen 5*6" is used to indicate the icon data corresponding to the inner screen, and "inner screen 5"*6 indicates that the icon layout of the inner screen includes six rows and five columns. The icon data selected to be migrated is determined based on the received selection operation of the user, and this icon data is used as partial icon data and sent to the migrating device.

[0076] For example, after a user taps the button of "Outer Screen 4*6", the icon data corresponding to the outer screen of the migrating device will be used as the partial icon data and sent to the migrated device.

[0077] Step 106: Determine the icon layout for the specified display screen based on the reference icon data.

[0078] In this embodiment of the present application, if it is determined that the device type of the migrating device includes a single-screen device, the designated display screen is used to indicate the display screen of the migrating device. If it is determined that the device type of the migrating device includes a multi-screen device, the designated display screen is used to indicate the display screen corresponding to the reference icon data. For example, if the migrating device includes an outer screen and an inner screen, it is determined based on the received selection operation of the user that the icon layout of the outer screen includes six rows and four columns, and the icon layout of the inner screen includes six rows and five columns, and the icon data selected to be migrated is the icon data corresponding to the outer screen, that is, the icon data corresponding to the outer screen is used as the reference icon data. Therefore, it can be determined based on the reference icon data that the designated display screen is the outer screen, and the icon layout is the icon layout of the outer screen. The icon layout is used to indicate an icon arrangement manner. It can be determined by using the reference icon data that the icon layout of the designated display screen of the migrating device includes an arrangement layout of a rows and b columns. For example, it can be determined by using the reference icon data that the icon layout of the outer screen of the migrating device includes six rows and four columns.

[0079] Step 108: Determine whether the icon layout of each first display screen is the same as the icon layout of the specified display screen; if the icon layout of each first display screen is the same as the icon layout of the specified display screen, execute step 110, or if the icon layout of each first display screen is not the same as the icon layout of the specified display screen, execute step 112.

[0080] In this embodiment of the present application, the icon layout of each first display screen may be obtained based on the layout setting of the migrated device.

[0081] Specifically, the specific execution process of step 108 may include: if it is determined that the device type of the migrating device includes a single-screen device and the device type of the migrated device includes a multi-screen device, it needs to determine whether the icon layout of each first display screen is the same as the icon layout of the designated display screen. If it is determined that the icon layout of the first display screen is the same as the icon layout of the designated display screen, this indicates that the icon arrangement manner of the first display screen is the same as the icon arrangement manner of the migrating device. Therefore, the subsequent step 110 may be executed to use the reference icon data of the designated display screen as the actual icon data of the first display screen. If it is determined that the icon layout of the first display screen is different from the icon layout of the designated display screen, this indicates that the icon arrangement manner of the first display screen is different from the icon arrangement manner of the migrating device. If the reference icon data of the migrating device is migrated in a 1:1 ratio, the problem of icons being distributed, migrated data being insufficient, and icon data being incomplete will be caused by different screen forms. Therefore, step 112 needs to be performed to generate actual icon data by using an icon mapping algorithm and based on the icon layout of the specified display screen and the icon layout of the migrated device.

[0082] In an optional solution, for example, as shown in FIG. 5, the device type of the migrating device 110 includes a single-screen device, and the icon layout of the designated display screen S of the migrating device 110 is an arrangement layout of six rows and four columns. As shown in FIG. 6(a) and FIG. 6(b), the device type of the migrated device (migrated device 120) includes a multi-screen device, that is, the multiple first display screens of the migrated device 120 include an inner display screen A and an outer display screen B. As shown in FIG. 6(a), the icon layout of the inner display screen A includes an arrangement layout of six rows and four columns. As shown in FIG. 6(b), the icon layout of the outer display screen B includes an arrangement layout of six rows and five columns. Thus, step 108 is performed to determine whether the icon layout of each first display screen is the same as the icon layout of the designated display screen, specifically, to determine whether the icon layout of inner display screen A is the same as the icon layout of the designated display screen S, and to determine whether the icon layout of outer display screen B is the same as the icon layout of the designated display screen S.

[0083] In another optional solution, for example, as shown in (a) of FIG. 7, it is determined based on step 106 that the device type of the migrating device 110 includes a multi-screen device, and the icon layout of the designated display screen E of the migrating device 110 includes an arrangement layout of six rows and five columns. The device type of the migrated device (migrated device 120) includes a single-screen device. As shown in (b) of FIG. 7, the icon layout of the first display screen D includes an arrangement layout of six rows and five columns. Thus, step 108 is performed to determine whether the icon layout of each first display screen is the same as the icon layout of the designated display screen, specifically, to determine whether the icon layout of the first display screen D is the same as the icon layout of the designated display screen E.

[0084] Step 110: Use the reference icon data of the specified display screen as the actual icon data of the first display screen, and continue with execution of step 116.

[0085] In this embodiment of the present application, in an optional solution, if it is determined that the icon layout of the inner display screen A is the same as the icon layout of the designated display screen, step 110 may be executed to use the reference icon data of the designated display screen as the actual icon data of the first display screen. Therefore, the same icon layout as the icon layout of the migrating device 110 may be displayed on the migrating device 120. For example, FIG. 8(a) is the icon layout of the designated display screen S of the migrating device 110, and FIG. 8(b) is the icon layout of the inner display screen A of the migrating device 120. As shown in FIG. 8(a) and FIG. 8(b), since the icon layout of the inner display screen A of the migrating device 120 is the same as the icon layout of the designated display screen S of the migrating device 110, the reference icon data of the migrating device may be migrated to the migrating device 120 at a 1:1 ratio to generate the actual icon data. Furthermore, in FIG. 8(a), icon 1 to icon 14 may be understood as reference icon data. Since the icon layout of the inner display screen A is the same as that of the specified display screen S, the reference icon data is used as the actual icon data of the inner display screen A. That is, icons 1 to 14 in (b) of Figure 8 represent the actual icon data of the inner display screen A.

[0086] It should be noted that the reference icon data provided in FIG. 8(a) is only an example. In practical application, the position of the icon may be adjusted based on the user's operation habits. For example, as shown in FIG. 8(c), the icon layout of the migrating device 110 in FIG. 8(c) is the same as that in FIG. 8(a) (both are 6 rows and 4 columns), and the number of icons (14) of the reference icon data of the migrating device 110 in FIG. 8(c) is the same as the number of icons (14) of the reference icon data in FIG. 8(a), but the arrangement order of the icon data is different. That is, the reference icon data may be arranged at a specified position based on the user's operation habits. Therefore, when the icon layout of the inner display screen A of the migrating device 120 is the same as that of the designated display screen S of the migrating device 110, but the icon data layout is irregular, the process of the above embodiment may be further executed, and the reference icon data of the migrating device may be migrated to the migrating device 120 in a 1:1 ratio to generate actual icon data. For example, as shown in (d) of Figure 8, icons 1 to 14 in (d) of Figure 8 represent actual icon data of the inner display screen A, and the icon layout in (d) of Figure 8 is the same as the icon layout in (c) of Figure 8.

[0087] In another optional solution, if it is determined that the icon layout of the first display screen is the same as that of the designated display screen, step 110 may be performed to use the reference icon data of the designated display screen as the actual icon data of the first display screen. Thus, the same icon layout as that of the migrating device may be displayed on the migrating device. For example, FIG. 9(a) is the icon layout of the designated display screen E of the migrating device 110, and FIG. 9(b) is the icon layout of the first display screen D of the migrating device 120. As shown in FIG. 9(a) and FIG. 9(b), since the icon layout of the designated display screen E of the migrating device 110 is the same as that of the first display screen D of the migrating device 120, the reference icon data corresponding to the designated display screen E of the migrating device 110 may be migrated to the migrating device in a 1:1 ratio to generate the actual icon data. For example, as shown in FIG. 9(b), the actual icon data of the first display screen D is determined. Furthermore, in (a) of FIG. 9, icons 1 to 14 can be understood as reference icon data. Because the icon layout of the first display screen D is the same as that of the specified display screen E, the reference icon data is used as the actual icon data of the first display screen D. That is, icons 1 to 14 in (b) of FIG. 9 represent the actual icon data of the first display screen D. Although the dashed box can be understood as a position that does not include icon data, the dashed box belongs to a part of the icon layout. After the user downloads a new application, the corresponding icon data is added to the dashed box, and the corresponding icon is displayed.

[0088] Step 112: By using an icon mapping algorithm and based on the reference icon data and the icon layout of the first display screen, determine actual icon data of the first display screen.

[0089] In this embodiment of the present application, the icon layout of the first display screen includes a second number of icon columns.

[0090] In this embodiment of the present application, based on the condition of the optional solution provided in the embodiment of step 108, it may be determined that the icon layout of the outer display screen B is different from the icon layout of the specified display screen S. Therefore, step 112 is executed to determine the actual icon data of the outer display screen B. Specifically, the execution process of step 112 may include the following steps:

[0091] Step 1121: Determine a first number of icon columns for the specified display screen from the icon layout of the specified display screen.

[0092] In the present embodiment of the present application, for example, as shown in Figure 5, the icon layout of the designated display screen S of the transition device 110 includes an arrangement layout of six rows and four columns. Therefore, it can be determined that the first number of icon columns of the transition device 110 is four. For example, as shown in Fig. 7(a), the icon layout of the designated display screen E of the transition device 110 includes an arrangement layout of six rows and five columns. Therefore, it can be determined that the first number of icon columns of the transition device 110 is five.

[0093] Step 1122: Calculate coordinates of each icon in the icon layout of the first display screen by using an icon mapping algorithm and based on the first number of icon columns, the second number of icon columns, and the obtained coordinates of each icon in the icon layout of the specified display screen.

[0094] Specifically, when the second number of icon rows includes N rows, the first number of icon rows includes J rows, and the execution process of step 1122 is as follows:

number

number

[0095] In this embodiment of the present application, a coordinate system may be established for the icon layout of the specified display screen S of the transition device 110 to obtain the coordinates of each icon, as shown in Figure 10. For example, the coordinates of icon 1 are (0,0) and the coordinates of icon 2 are (1,0).

[0096] The icon layout of the inner display screen A of the migrated device 120 is the same as the icon layout of the designated display screen S of the migrating device 110. Therefore, step 110 may be performed to determine the actual icon data of the inner display screen A.

[0097] The icon layout of the outer display screen B of the migrated device 120 is different from the icon layout of the designated display screen S. Therefore, the execution process of step 112 is performed. Specifically, after the coordinates of each icon in the icon layout of the designated display screen S are obtained, the coordinates of each icon in the icon layout of the first display screen can be calculated based on the first number of icon columns, the second number of icon columns, and the obtained coordinates of each icon in the icon layout of the designated display screen. For example, FIG. 11(a) is the icon layout of the designated display screen S of the migrating device 110, and FIG. 11(b) is the icon layout of the outer display screen B of the migrated device 120. As shown in FIG. 11(a) and FIG. 11(b), the first number of icon columns includes four columns, and the second number of icon columns includes five columns. The coordinates of icon 5 in the icon layout of the designated display screen S of the migrating device 110 are (0,1), that is, the X-axis coordinate value is 0, and the Y-axis coordinate value is 1. The coordinates of the icon 5 on the first display screen of the migrated device 120 can be calculated by using the above formula. Specifically, Y(icon 5)'=((1*4)+0)%5=0, and the Y-axis coordinate of the icon 5 on the outer display screen B is calculated to be 0; and X(icon 5)'=((1*4)+0)-(0*5)=4, and the X-axis coordinate of the icon 4 on the outer display screen B is calculated to be 4. Therefore, the coordinates of the icon 5 on the outer display screen B are calculated to be (4,0). In the above manner, the coordinates of each icon in the icon layout of the outer display screen B can be calculated.

[0098] It should be noted that when the icon data shown in Fig. 7 is transferred to the icon layout shown in Fig. 11(b), in the case where the icon layout is irregular and different, the above steps can also be performed to calculate the coordinates of each icon in the icon layout of the first display screen by using an icon mapping algorithm and based on the first number of icon rows, the second number of icon rows, and the obtained coordinates of each icon in the icon layout of the specified display screen. In this embodiment of the present application, details will not be described again.

[0099] In addition, (a) of Fig. 6 is an icon layout of the inner display screen A of the migrated device 120. In addition to calculating the coordinates of each icon in the icon layout of the outer display screen B by performing step 1122, alternatively, a first number of icon columns in the icon layout of the inner display screen A of the migrated device 120 may be determined, and step 112 may be performed to calculate the coordinates of each icon in the icon layout of the outer display screen B by using an icon mapping algorithm and based on the first number of icon columns, the second number of icon columns, and the obtained coordinates of each icon in the icon layout of the inner display screen A.

[0100] It should be noted that by using the aforementioned icon mapping algorithm formula, the sequence value of each icon in the icon layout of the first display screen may remain unchanged. That is, the coordinates of each icon in the icon layout of the first display screen may be obtained through linkage mapping by using the obtained coordinates of each icon in the icon layout of the specified display screen. Specifically, the sequence value on the specified display screen may be calculated by using the obtained X-axis coordinate value of each icon in the icon layout of the specified display screen, and all icons may be mapped to the icon layout of the first display screen without changing the relative relationship between the sequence values.

[0101] Step 114: Using the set of coordinates of each icon as actual icon data of the first display screen, determine actual icon data of at least one first display screen; and continue executing step 116.

[0102] In this embodiment of the present application, the set of icon coordinates is obtained by performing step 112, and the set of coordinates of the multiple icons is used as the actual icon data of the first display screen. It should be noted that if the device type of the migrated device includes a multi-screen device, the actual icon data of the multiple first display screens can be determined by performing the aforementioned steps; and if the device type of the migrated device includes a single-screen device, the actual icon data of one first display screen can be determined by performing the aforementioned steps.

[0103] Step 116: Display an icon corresponding to the actual icon data.

[0104] In this embodiment of the present application, specifically, step 116 may include displaying icons corresponding to the actual icon data based on the icon layout of the first display screen.

[0105] In the optional solution, for example, an example is used in which the device type of the migrated device includes a multi-screen device, and the migrated device includes an inner display screen A and an outer display screen B. The actual icon data of the inner display screen A is shown in (b) of FIG. 8, and the actual icon data of the outer display screen B is shown in (b) of FIG. 11. An icon corresponding to the actual icon data can be displayed by executing step 116. Specifically, FIG. 12a is a schematic diagram of the effect of displaying an icon on the inner display screen A, and FIG. 12b is a schematic diagram of the effect of displaying an icon on the outer display screen B. As shown in FIG. 12a, after the actual icon data of the inner display screen A is obtained, an icon corresponding to the actual icon data can be displayed on the inner display screen A based on the icon layout of the inner display screen A, so that the user can use the migrated device normally. As shown in FIG. 12b, after the actual icon data of the outer display screen B is obtained, an icon corresponding to the actual icon data may be displayed on the outer display screen B based on the icon layout of the outer display screen B, so that the user can use the migrated device normally.

[0106] In another optional solution, for example, when the device type of the migrated device includes a single-screen device, the first display screen of the migrated device includes a first display screen D, and the actual icon data of the first display screen D is shown in (b) of FIG. 9. The icon corresponding to the actual icon data can be displayed by performing step 116. Specifically, FIG. 13 is a schematic diagram of the effect of displaying an icon on the first display screen D. As shown in FIG. 13, after the actual icon data of the first display screen D is obtained, the icon corresponding to the actual icon data can be displayed on the first display screen D based on the icon layout of the first display screen D, so that the user can use the migrated device normally.

[0107] According to the icon data migration method provided in this embodiment of the present application, an operation method for migrating desktop icon data from a single-screen device to a multi-screen device and a calculation method for mapping between different grid layouts are proposed to optimize the data, thereby solving the problem of icons being distributed on a multi-screen device, so that the usability of the new device is improved for the user, and the user's original operation and usage habits are preserved to the greatest extent.

[0108] In this embodiment of the present application, a link establishment request sent by a migrating device is obtained, and the link establishment request carries a device type of the migrating device, and the device type includes a single-screen device or a multi-screen device. The reference icon data of the migrating device is obtained based on the device type of the migrating device and the device type of the migrated device after the link is successfully established. The actual icon data is calculated based on the reference icon data and the obtained icon layout of the first display screen. The icon corresponding to the actual icon data is displayed based on the icon layout. In this way, icon data migration between a migrating device of a different device type and a migrated device of a different device type may be implemented, so that the user's usage habits and icon data are maximally preserved, and the organization and management of desktop icons is more convenient for the user, thereby improving the convenience of the user's use of icons.

[0109] 14 is a flowchart of an icon data migration method according to an embodiment of the present application. The method is applied to a migrated device. As shown in FIG. 14, the method includes the following steps:

[0110] Step 202: Obtain a link establishment request sent by a transition device.

[0111] In this embodiment of the present application, the execution process of step 202 is referred to as step 102.

[0112] Step 204: If the device type of the migrating device includes a multi-screen device and the device type of the migrated device includes a multi-screen device, obtain a plurality of partial icon data that the migrating device selects to migrate, and determine each of the partial icon data as reference icon data to determine a plurality of reference icon data.

[0113] In this embodiment of the present application, a multi-screen device may include multiple display screens, and the partial icon data is used to represent icon data corresponding to one designated display screen of the transition device.

[0114] In this embodiment of the present application, since the device type of the migrating device includes a multi-screen device, that is, the migrating device has multiple designated display screens, the icon data corresponding to one designated display screen can be used as one partial icon data to obtain multiple partial icon data that the migrating device selects to migrate. For example, if the migrating device includes two display screens, the icon data corresponding to each display screen is used separately as partial icon data and sent to the migrated device.

[0115] Step 206: Display prompt information on each first display screen. The prompt information is used to prompt the user to select the reference icon data that needs to be migrated from the multiple reference icon data.

[0116] In this embodiment of the present application, an example is used in which the migrated device includes two display screens. The two display screens include an outer screen and an inner screen. For example, as shown in FIG. 15, the display interface 3 of the migrated device 120 displays a prompt information of "Please select the icon data that needs to be migrated", and provides the selection of "outer screen 4*6" and "inner screen 5*6". The display interface 3 is a display interface facing the user, and "outer screen 4*6" is used to indicate the icon data corresponding to the outer screen, and "outer screen 4*6" indicates that the icon layout of the outer screen includes six rows and four columns. "inner screen 5*6" is used to indicate the icon data corresponding to the inner screen, and "inner screen 5"*6 indicates that the icon layout of the inner screen includes six rows and five columns. The icon data selected to be migrated is determined based on the received selection operation of the user, and this icon data is used as partial icon data and sent to the migrated device 120.

[0117] Step 208: For each first display screen, receive a user selection operation, and determine an icon layout of the specified display screen corresponding to the reference icon data selected by the user.

[0118] In this embodiment of the present application, when a selection operation of the user tapping on "inner screen 5*6" is received as shown in Fig. 16, a designated display screen corresponding to the reference icon data of "inner screen 5*6" is determined. For example, as shown in Fig. 16, the determined "inner screen 5*6" is the icon layout of the designated display screen F of the migrating device 110.

[0119] Step 210: Determine whether the icon layout of each first display screen is the same as the icon layout of the specified display screen; if the icon layout of each first display screen is the same as the icon layout of the specified display screen, execute step 212; or if the icon layout of each first display screen is not the same as the icon layout of the specified display screen, execute step 214.

[0120] In this embodiment of the present application, if it is determined that the device type of the migrating device includes a multi-screen device and the device type of the migrating device includes a multi-screen device, it may include that it needs to determine whether the icon layout of each first display screen is the same as the icon layout of the designated display screen selected by the user. If it is determined that the icon layout of the first display screen is the same as the icon layout of the designated display screen, this indicates that the icon arrangement manner of the first display screen is the same as the icon arrangement manner of the migrating device. Therefore, a subsequent step 212 may be performed to use the reference icon data of the designated display screen as the actual icon data of the first display screen. If it is determined that the icon layout of the first display screen is different from the icon layout of the designated display screen, this indicates that the icon arrangement manner of the first display screen is different from the icon arrangement manner of the migrating device. If the reference icon data of the migrating device is migrated in a 1:1 ratio, the problem of icons being dispersed, the migrated data being insufficient, and the icon data being incomplete will be caused by different screen forms. Therefore, step 214 needs to be performed to generate actual icon data by using an icon mapping algorithm and based on the icon layout of the specified display screen and the icon layout of the migrated device.

[0121] Specifically, the execution process of steps 206 to 210 will be explained by using an example.

[0122] For example, if the migrating device includes display screen F and display screen G, the migrating device includes display screen H and display screen I, and the display screen facing the current user is first obtained. For example, if the display screen facing the current user includes display screen H, prompt information should be displayed on display screen H first to prompt the user to select the reference icon data that needs to be transferred to display screen H from the reference icon data corresponding to display screen F and the reference icon data corresponding to display screen G. If the user selects the reference icon data corresponding to display screen F, step 210 should be executed to determine whether the icon layout of display screen H is the same as the icon layout of the designated display screen (display screen F); and if the icon layout of display screen H is the same as the icon layout of the designated display screen (display screen F), step 212 is executed to use the reference icon data of display screen F as the actual icon data of display screen H; or if the icon layout of display screen H is different from the icon layout of the designated display screen (display screen F), step 214 is executed to determine the actual icon data of display screen H. After the actual icon data of the display screen H is determined, an icon corresponding to the actual icon data is displayed on the display screen H based on the icon layout of the display screen H. Similarly, in the above-mentioned manner, the actual icon data of the display screen I is determined, and an icon corresponding to the actual icon data is displayed on the display screen I based on the icon layout of the display screen H.

[0123] It should be noted that in the process of determining the actual icon data of display screen I, since the reference icon data corresponding to display screen F has already been selected for display screen H to avoid the completeness of the icon data, the user may be prompted to select the reference icon data corresponding to display screen G when selecting the reference icon data that needs to be transferred to display screen I, thereby ensuring that the icon data is preserved to the maximum extent and avoiding the problem of the transferred icon data being incomplete or missing.

[0124] Step 212: Use the reference icon data of the specified display screen as the actual icon data of the first display screen, and continue with execution of step 218.

[0125] In this embodiment of the present application, the execution process of step 210 can be referred to as step 110.

[0126] Step 214: By using an icon mapping algorithm and based on the reference icon data selected by the user and the icon layout of the first display screen, determine the actual icon data of the first display screen.

[0127] In this embodiment of the present application, the icon layout of the migrated device includes a second number of icon columns.

[0128] In this embodiment of the present application, step 214 specifically includes the following steps:

[0129] Step 2141: Determine a first number of icon columns of the specified display screen based on an icon layout of the specified display screen corresponding to reference icon data selected by a user.

[0130] In this embodiment of the present application, for the execution process of step 2141, please refer to step 1121.

[0131] Step 2142: By using an icon mapping algorithm and based on the first number of icon columns, the second number of icon columns, and the obtained coordinates of each icon in the icon layout of the specified display screen, calculate the coordinates of each icon in the icon layout of the first display screen.

[0132] The execution process of step 2142 may include:

[0133] the second number of icon rows includes N rows and the first number of icon rows includes J rows; and

number

number

[0134] In this embodiment of the present application, please refer to step 1122 for the execution process of step 2142.

[0135] Step 216: Determine actual icon data for a plurality of first display screens using the set of coordinates of each icon as actual icon data for the first display screen.

[0136] In this embodiment of the present application, the set of icon coordinates is obtained by performing step 214, and the set of coordinates of the multiple icons is used as the actual icon data of the first display screen. It should be noted that if the device type of the migrated device includes a multi-screen device, the actual icon data of the multiple first display screens can be determined by performing the aforementioned steps.

[0137] Step 218: Display an icon corresponding to the actual icon data.

[0138] In this embodiment of the present application, specifically, step 218 may include displaying icons corresponding to actual icon data based on the icon layout of each first display screen.

[0139] In an optional solution, an example is used in which the migrating device 110 includes a display screen F and a display screen G, and the migrated device 120 includes a display screen H and a display screen I. FIG. 17(a) is a schematic diagram of the effect of the icon layout of the display screen F, and FIG. 17(b) is a schematic diagram of the effect of the icon layout of the display screen G. In addition, in FIG. 17(a) and FIG. 17(b), the display screen F and the display screen G each have corresponding reference icon data. According to the above embodiment, it is assumed that the reference icon data corresponding to the display screen F is selected to be migrated to the display screen H, and the reference icon data corresponding to the display screen G is selected to be migrated to the display screen I. As shown in FIG. 18a, after the actual icon data of the display screen H is obtained, an icon corresponding to the actual icon data may be displayed on the display screen H based on the icon layout of the display screen H, so that the user can use the migrated device normally. As shown in Fig. 18b, after the actual icon data of the display screen I is obtained, an icon corresponding to the actual icon data may be displayed on the display screen I based on the icon layout of the display screen I, so that the user can use the migrated device normally. Please note that the above solution is only an example for illustration. In addition, alternatively, the reference icon data corresponding to the display screen G may be selected to be migrated to the display screen H, and the reference icon data corresponding to the display screen F may be selected to be migrated to the display screen I. This is not limited to this embodiment of the present application. Moreover, the above icon data migration method may be further performed for more than two display screens. Details will not be described here.

[0140] In this embodiment of the present application, a link establishment request sent by a migrating device is obtained, and the link establishment request carries a device type of the migrating device, and the device type includes a single-screen device or a multi-screen device. The reference icon data of the migrating device is obtained based on the device type of the migrating device and the device type of the migrated device after the link is successfully established. The actual icon data is calculated based on the reference icon data and the obtained icon layout of the first display screen. The icon corresponding to the actual icon data is displayed based on the icon layout. In this way, icon data migration between a migrating device of a different device type and a migrated device of a different device type may be implemented, so that the user's usage habits and icon data are maximally preserved, and the organization and management of desktop icons is more convenient for the user, thereby improving the convenience of the user's use of icons.

[0141] 19 is a schematic block diagram of an electronic device 110 according to an embodiment of the present application. It should be understood that the electronic device 110 can perform the steps in the icon data migration method in FIG. 3 and FIG. 14. To avoid repetition, details will not be described here. As shown in FIG. 19, the electronic device 110 includes a processing unit 401 and a display unit 402.

[0142] The processing unit 401 is configured to obtain a link establishment request sent by the transition device, carrying a device type of the transition device, including a single-screen device or a multi-screen device, after the link is successfully established; obtain reference icon data of the transition device based on the device type of the transition device and the device type of the electronic device 110; and calculate actual icon data based on the reference icon data and the obtained icon layout of the first display screen.

[0143] The display unit 402 is configured to display an icon corresponding to the actual icon data.

[0144] In this embodiment of the present application, the processing unit 401 is further configured to obtain all icon data sent by the transition device and determine all icon data as reference icon data when the device type of the transition device includes a single-screen device and the device type of the electronic device 110 includes a multi-screen device that may include multiple display screens.

[0145] In this embodiment of the present application, the processing unit 401 is further configured to, when the device type of the migrating device includes a multi-screen device and the device type of the electronic device 110 includes a single-screen device, obtain partial icon data that the migrating device selects to migrate, and determine the partial icon data as reference icon data. The multi-screen device may include multiple display screens, and the partial icon data is used to indicate icon data corresponding to one designated display screen of the migrating device.

[0146] In this embodiment of the present application, the processing unit 401 is further configured to: determine, based on the reference icon data, an icon layout of a designated display screen of the migrating device; determine whether the icon layout of each first display screen is the same as the icon layout of the designated display screen; and if it is determined that the icon layout of the first display screen is the same as the icon layout of the designated display screen, use the reference icon data of the designated display screen as actual icon data of the first display screen; or, if it is determined that the icon layout of the first display screen is different from the icon layout of the designated display screen, determine the actual icon data of the first display screen by using an icon mapping algorithm and based on the reference icon data and the icon layout of the first display screen.

[0147] In this embodiment of the present application, the icon layout of the first display screen includes a second number of icon columns. The processing unit 401 is further configured to: determine a first number of icon columns of the designated display screen from the icon layout of the designated display screen; calculate coordinates of each icon in the icon layout of the first display screen by using an icon mapping algorithm and based on the first number of icon columns, the second number of icon columns and the obtained coordinates of each icon in the icon layout of the designated display screen; and use the set of coordinates of each icon as actual icon data of the first display screen to determine actual icon data of at least one first display screen.

[0148] In this embodiment of the present application, the second number of icon columns includes N columns, and the first number of icon columns includes J columns. The processing unit 401 further comprises:

number

number

[0149] In this embodiment of the present application, when the device type of the migrating device includes a multi-screen device and the device type of the electronic device 110 includes a multi-screen device, the processing unit 401 is further configured to obtain a plurality of partial icon data that the migrating device selects to migrate, and determine each of the partial icon data as reference icon data to determine a plurality of reference icon data. The multi-screen device may include a plurality of display screens, and the partial icon data is used to indicate icon data corresponding to one designated display screen of the migrating device.

[0150] In this embodiment of the present application, the processing unit 401 is further configured to: display prompt information on each first display screen, used to prompt a user to select reference icon data that needs to be migrated from the multiple reference icon data; for each first display screen, receive a user's selection operation and determine an icon layout of the designated display screen corresponding to the reference icon data selected by the user; determine whether the icon layout of each first display screen is the same as the icon layout of the designated display screen; and, if it is determined that the icon layout of the first display screen is the same as the icon layout of the designated display screen, use the reference icon data of the designated display screen as the actual icon data of the first display screen; or, if it is determined that the icon layout of the first display screen is different from the icon layout of the designated display screen, determine the actual icon data of the first display screen by using an icon mapping algorithm and based on the reference icon data selected by the user and the icon layout of the first display screen.

[0151] In this embodiment of the present application, the icon layout of the first display screen includes a second number of icon columns. The processing unit 401 is further configured to: determine the first number of icon columns of the designated display screen based on the icon layout of the designated display screen corresponding to the reference icon data selected by the user; calculate the coordinates of each icon in the icon layout of the first display screen by using an icon mapping algorithm and based on the first number of icon columns, the second number of icon columns and the obtained coordinates of each icon in the icon layout of the designated display screen; and use the set of coordinates of each icon as the actual icon data of the first display screen to determine the actual icon data of the multiple first display screens.

[0152] It should be understood that the electronic device 110 in this specification is embodied in the form of a functional unit. The term "unit" in this specification may be implemented in the form of software and / or hardware. This is not specifically limited. For example, the "unit" may be a software program, a hardware circuit, or a combination thereof that implements the above-mentioned functions. The hardware circuit may include an application-specific integrated circuit (ASIC), an electronic circuit, a processor (e.g., a shared processor, a dedicated processor, or a group processor) configured to execute one or more software or firmware programs, a memory, an integrated logic circuit, and / or another suitable component that supports the described functions.

[0153] Therefore, the units in the examples described in this embodiment of the present application can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented by hardware or software depends on the specific application and the design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be considered as going beyond the scope of the present application.

[0154] An embodiment of the present application further provides an electronic device, which may be a terminal device or a circuit device built into the terminal device, and which may be configured to perform the functions / steps in the above-mentioned method embodiments.

[0155] 20 is a schematic diagram of a structure of an electronic device according to an embodiment of the present application. As shown in FIG. 20, the electronic device 900 includes a processor 910 and a transceiver 920. Optionally, the electronic device 900 may further include a memory 930. The processor 910, the transceiver 920 and the memory 930 may communicate with each other by using an internal connection path to transmit control signals and / or data signals. The memory 930 is configured to store a computer program. The processor 910 is configured to retrieve and execute the computer program from the memory 930.

[0156] Optionally, the electronic device 900 may further include an antenna 940 configured to transmit the radio signals output by the transceiver 920.

[0157] The processor 910 and the memory 930 may be combined into one processing unit, or more generally may be separate components from each other. The processor 910 is configured to execute program code stored in the memory 930 to implement the above-mentioned functions. In a particular implementation, the memory 930 may alternatively be integrated into the processor 910 or may be separate from the processor 910. The processor 910 may correspond to the processing unit 401 in the electronic device 110 in FIG. 19.

[0158] In addition, to improve the functionality of the electronic device 900, the electronic device 900 may further include one or more of an input unit 960, a display unit 970, an audio circuit 980, a camera 990, or a sensor 901, etc. The audio circuit may further include a speaker 982 and a microphone 984, etc. The display unit 970 may include a display, and the display unit 970 may correspond to the display unit 402 in the electronic device 110 in FIG.

[0159] Optionally, the electronic device 900 may further include a power supply 950 configured to provide power to various components or circuits within the terminal device.

[0160] It should be understood that the electronic device 900 shown in Fig. 20 can implement the processes in the method embodiments shown in Fig. 3 and Fig. 14. The operations and / or functions of the units in the electronic device 900 are respectively used to implement the corresponding procedures in the above-mentioned method embodiments. For details, please refer to the descriptions in the above-mentioned method embodiments. In order to avoid repetition, detailed descriptions will be omitted here as appropriate.

[0161] It should be understood that the processor 910 in the electronic device 900 shown in FIG. 20 may be a system on a chip (SOC). The processor 910 may include a central processing unit (CPU) and may further include another type of processor. The CPU may be referred to as a host CPU. Multiple processors may work together to implement the steps of the aforementioned methods, with each processor selectively executing a portion of a software driver.

[0162] In conclusion, multiple processors or processing units within the processor 910 may cooperate to implement the steps of the above-mentioned methods, and software programs corresponding to the processors or processing units may be stored in the memory 930.

[0163] The present application further provides a computer-readable storage medium having instructions stored therein, which, when executed on a computer, enable the computer to perform steps in the icon data migration method shown in FIG.

[0164] In the above embodiment, the processor 910 may include, for example, a central processing unit (CPU), a microprocessor, a microcontroller, or a digital signal processor, and may further include a GPU, an NPU, and an ISP. The processor may further include a necessary hardware accelerator or logic processing hardware circuit, for example, an application-specific integrated circuit (ASIC) or one or more integrated circuits configured to control the program execution of the technical solution of the present application. In addition, the processor may have the function of running one or more software programs, and the software programs may be stored in the memory.

[0165] The memory may be read-only memory (ROM) or another type of static storage device capable of storing static information and instructions, random access memory (RAM) or another type of dynamic storage device capable of storing information and instructions, electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM) or other compact disc storage, optical disc storage (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), disc storage media or other magnetic storage devices, or any other medium that can carry or store the desired program code in the form of instructions or data structures and that can be accessed by a computer.

[0166] In the present application, "at least one" means one or more, and "multiple" means two or more. The term "and / or" describes a correspondence between related objects and indicates that three relationships may exist. For example, A and / or B may indicate the cases where only A is present, where both A and B are present, and where only B is present. A and B may be singular or plural. The character " / " generally indicates an "or" relationship between related objects. "At least one of the following items" or similar expressions indicate any combination of these items, including any combination of single items or multiple items. For example, at least one of a, b, or c may indicate a, b, c, ab, ac, bc, or abc, where a, b, and c may be singular or plural.

[0167] Those skilled in the art may recognize that the units and algorithm steps described in the embodiments disclosed herein may be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented by hardware or software depends on the specific application and the design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be considered as going beyond the scope of this application.

[0168] For the purpose of simple and easy description, the detailed operation processes of the above-mentioned systems, devices and units may be clearly understood by those skilled in the art and may be referred to corresponding processes in the above-mentioned method embodiments, and will not be described in detail herein.

[0169] In the embodiments provided in the present application, when any function is implemented in the form of a software functional unit and sold or used as an independent product, the function may be stored in a computer-readable storage medium. Based on such understanding, the technical solutions of the present application may be essentially implemented in the form of a software product, or the part that contributes to the prior art, or some of these technical solutions may be implemented in the form of a software product. The computer software product is stored in a storage medium and includes some instructions for instructing a computer device (which may be a personal computer, a server, or a network device) to perform all or some of the steps of the method described in the embodiments of the present application. The aforementioned storage medium includes any medium that can store program code, such as a USB flash drive, a removable hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0170] The above description is merely a specific implementation of the present application. Any modifications or replacements that are easily conceived by those skilled in the art within the technical scope disclosed in this application shall be included in the protection scope of the present application. The protection scope of the present application shall be subject to the protection scope of the claims. [Other possible items] [Item 1] 1. An icon data migration method applied to a destination device including a first display screen, comprising: obtaining a link establishment request sent by a transitioning device, where the link establishment request carries a device type of the transitioning device, the device type including a single-screen device or a multi-screen device; After a link is successfully established, obtaining reference icon data of the migrating device based on the device type of the migrating device and the device type of the migrated device; calculating actual icon data based on the reference icon data and the captured icon layout of the first display screen; and displaying an icon corresponding to the actual icon data. A method comprising: [Item 2] The step of obtaining reference icon data of the migrating device based on the device type of the migrating device and the device type of the migrated device includes: If the device type of the migrating device includes a single-screen device and the device type of the migrated device includes a multi-screen device, obtaining all of the icon data transmitted by the migrating device and determining all of the icon data as the reference icon data, where the multi-screen device may include multiple display screens. having The method according to item 1. [Item 3] The step of obtaining reference icon data of the migrating device based on the device type of the migrating device and the device type of the migrated device includes: If the device type of the migrating device includes a multi-screen device and the device type of the migrated device includes a single-screen device, obtaining partial icon data that the migrating device selects to migrate and determining the partial icon data as the reference icon data, where the multi-screen device may include multiple display screens and the partial icon data is used to indicate icon data corresponding to one designated display screen of the migrating device. having The method according to item 1. [Item 4] said step of calculating actual icon data based on said reference icon data and the acquired icon layout of said first display screen further comprises: determining an icon layout for a designated display screen of the transition device based on the reference icon data; determining whether an icon layout of each first display screen is the same as the icon layout of the designated display screen; and if it is determined that the icon layout of the first display screen is the same as the icon layout of the designated display screen, using the reference icon data of the designated display screen as the actual icon data of the first display screen; or determining, if it is determined that the icon layout of the first display screen is different from the icon layout of the specified display screen, by using an icon mapping algorithm and based on the reference icon data and the icon layout of the first display screen, the actual icon data of the first display screen. having The method according to item 2 or 3. [Item 5] the icon layout of the first display screen includes a second number of icon columns; and determining the actual icon data of the first display screen by using an icon mapping algorithm and based on the reference icon data and the icon layout of the first display screen, determining a first number of icon columns for the designated display screen from the icon layout for the designated display screen; calculating coordinates of each icon in the icon layout of the first display screen by using the icon mapping algorithm and based on the first number of icon columns, the second number of icon columns, and the obtained coordinates of each icon in the icon layout of the specified display screen; and determining actual icon data for at least one first display screen using the set of coordinates for each icon as the actual icon data for the first display screen; Including, The method according to item 4. [Item 6] the second number of icon columns includes N columns and the first number of icon columns includes J columns; and calculating coordinates of each icon in the icon layout of the first display screen by using the icon mapping algorithm and based on the first number of icon columns, the second number of icon columns, and the obtained coordinates of each icon in the icon layout of the specified display screen, comprising:

number

number

Claims

1. 1. An icon data migration method applied to a migration target device including a first display screen, comprising: establishing a link between the migrated device and the migrating device based on a link establishment request; obtaining reference icon data of the migrating device based on a device type of the migrating device and a device type of the migrated device; calculating actual icon data based on the reference icon data and the captured icon layout of the first display screen; and displaying an icon corresponding to the actual icon data. Equipped with said step of calculating actual icon data based on said reference icon data and the acquired icon layout of said first display screen further comprises: determining an icon layout for a designated display screen of the migrating device based on the reference icon data, and determining a first number of icon columns for the designated display screen from the icon layout for the designated display screen; determining a second number of icon columns for the first display screen from a captured icon layout for the first display screen that includes a second number of icon columns; calculating actual icon data for each icon in the icon layout of the first number of icon rows in the first display screen by using an icon mapping algorithm; A method comprising:

2. When the device type of the transition device includes a multi-screen device, the step of calculating actual icon data based on the reference icon data and the acquired icon layout of the first display screen includes: When the device type of the migrated device includes a multi-screen device, displaying prompt information on each first display screen, where the prompt information is used to prompt a user to select reference icon data that needs to be migrated from a plurality of reference icon data; receiving, for each first display screen, a user selection operation and determining an icon layout for the designated display screen that corresponds to the reference icon data selected by the user; having The method of claim 1.

3. The step of obtaining reference icon data of the migrating device based on a device type of the migrating device and a device type of the migrated device includes: If the device type of the migrating device includes a single-screen device and the device type of the migrated device includes a multi-screen device, obtaining all of the icon data transmitted by the migrating device and determining all of the icon data as the reference icon data, where the multi-screen device includes multiple display screens. having The method of claim 1.

4. The step of obtaining reference icon data of the migrating device based on a device type of the migrating device and a device type of the migrated device includes: If the device type of the migrating device includes a multi-screen device and the device type of the migrated device includes a single-screen device, obtaining partial icon data that the migrating device selects to migrate and determining the partial icon data as the reference icon data, where the multi-screen device includes multiple display screens and the partial icon data is used to indicate icon data corresponding to one designated display screen of the migrating device. having The method of claim 1.

5. said step of calculating actual icon data based on said reference icon data and the acquired icon layout of said first display screen further comprises: determining an icon layout for a designated display screen of the transition device based on the reference icon data; in response to the icon layout of the first display screen being the same as the icon layout of the designated display screen, using the reference icon data of the designated display screen as the actual icon data of the first display screen; or determining, in response to the icon layout of the first display screen differing from the icon layout of the designated display screen, by using an icon mapping algorithm and based on the reference icon data and the icon layout of the first display screen. having 5. The method according to any one of claims 2 to 4.

6. The step of determining the actual icon data of the first display screen by using an icon mapping algorithm and based on the reference icon data and the icon layout of the first display screen comprises: determining, from the icon layout for the designated display screen, the first number of icon columns for the designated display screen; calculating coordinates of each icon in the icon layout of the first display screen by using the icon mapping algorithm and based on the first number of icon columns, the second number of icon columns, and the obtained coordinates of each icon in the icon layout of the specified display screen; and determining actual icon data for at least one first display screen using said set of coordinates for each icon as said actual icon data for said first display screen; Including, The method according to claim 5.

7. the second number of icon columns includes N columns and the first number of icon columns includes J columns; and calculating coordinates of each icon in the icon layout of the first display screen by using the icon mapping algorithm and based on the first number of icon columns, the second number of icon columns, and the obtained coordinates of each icon in the icon layout of the specified display screen, comprising: ##EQU00011## ##EQU00012## calculating the coordinates of each icon in the icon layout of each first display screen by using an icon mapping algorithm formula: where X represents the X-axis coordinate value of the icon in the icon layout of the specified display screen, Y represents the Y-axis coordinate value of the icon in the icon layout of the specified display screen, X' represents the X-axis coordinate value of the icon in the icon layout of the first display screen, and Y' represents the Y-axis coordinate value of the icon in the icon layout of the first display screen. Including, The method according to claim 6.

8. The step of obtaining reference icon data of the migrating device based on a device type of the migrating device and a device type of the migrated device includes: If the device type of the migrating device includes a multi-screen device and the device type of the migrated device includes a multi-screen device, obtaining a plurality of partial icon data that the migrating device selects to migrate, and determining each of the partial icon data as the reference icon data to determine a plurality of reference icon data, where the multi-screen device includes a plurality of display screens, and the partial icon data is used to indicate icon data corresponding to one designated display screen of the migrating device. having The method of claim 1.

9. said step of calculating actual icon data based on said reference icon data and the acquired icon layout of said first display screen further comprises: displaying prompt information on each first display screen, where the prompt information is used to prompt a user to select reference icon data that needs to be migrated from the plurality of reference icon data; receiving, for each first display screen, a user selection operation and determining an icon layout for the designated display screen that corresponds to the reference icon data selected by the user; in response to the icon layout of the first display screen being the same as the icon layout of the designated display screen, using the reference icon data of the designated display screen as the actual icon data of the first display screen; or determining, in response to the icon layout of the first display screen differing from the icon layout of the designated display screen, by using an icon mapping algorithm and based on the reference icon data selected by the user and the icon layout of the first display screen, the actual icon data of the first display screen. having The method according to claim 8.

10. The step of determining the actual icon data of the first display screen by using an icon mapping algorithm and based on the reference icon data selected by the user and the icon layout of the first display screen, comprising: determining the first number of icon columns for the specified display screen based on the icon layout for the specified display screen that corresponds to the reference icon data selected by the user; calculating coordinates of each icon in the icon layout of the first display screen by using the icon mapping algorithm and based on the first number of icon columns, the second number of icon columns, and the obtained coordinates of each icon in the icon layout of the specified display screen; and determining actual icon data for a plurality of first display screens using the set of coordinates for each icon as the actual icon data for the first display screen; Including, 10. The method of claim 9.

11. The method of claim 1 , wherein the link establishment request conveys the device type of the transitioning device, the device type comprising a single-screen device or a multi-screen device.

12. 1. An electronic device comprising: display; one or more processors; memory; and one or more computer programs stored in the memory, the one or more computer programs having instructions that, when executed by the electronic device, enable the electronic device to perform the icon data migration method of any one of claims 1 to 11. An electronic device comprising:

13. A computer program product for causing a device to execute the icon data migration method according to any one of claims 1 to 11.

Citation Information

Patent Citations

  • User interface for different displays

    JP2008527476A

  • Apparatus and method for arranging multiple icons on a screen

    JP2016508631A

  • Layout synchronization

    US20130339833A1