WO2024078391A1 - 一种文件排序的方法和电子设备 - Google Patents

一种文件排序的方法和电子设备 Download PDF

Info

Publication number
WO2024078391A1
WO2024078391A1 PCT/CN2023/123251 CN2023123251W WO2024078391A1 WO 2024078391 A1 WO2024078391 A1 WO 2024078391A1 CN 2023123251 W CN2023123251 W CN 2023123251W WO 2024078391 A1 WO2024078391 A1 WO 2024078391A1
Authority
WO
WIPO (PCT)
Prior art keywords
files
file
target
electronic device
target file
Prior art date
Application number
PCT/CN2023/123251
Other languages
English (en)
French (fr)
Inventor
邱歌
谷德贺
张智伟
冒晶晶
宁左斌
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2024078391A1 publication Critical patent/WO2024078391A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/168Details of user interfaces specifically adapted to file systems, e.g. browsing and visualisation, 2d or 3d GUIs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text

Definitions

  • Embodiments of the present application relate to the field of data management, and in particular, to a file sorting method and electronic device.
  • the timestamps of new files obtained after performing the same operation on files in devices with different systems are different; the timestamps of new files obtained after performing the same operation on files in mobile phones with the same system produced by different manufacturers are also different; for mobile phones produced by the same manufacturer, the timestamps of new files obtained when files in the mobile phone are migrated or copied to the same device in different ways will also be different; for mobile phones produced by the same manufacturer, the timestamps of new files obtained after downloading the same file from different clouds will also be different, etc.
  • the different timestamps of the new files will lead to different arrangement orders of the new files, resulting in inconsistent user experience perception and the cost of retraining user search speed and reading habits.
  • the embodiments of the present application provide a method and electronic device for sorting files.
  • a user operates on multiple files, the consistency of the arrangement order of the files before and after the operation can be ensured, so that the user's experience perception before and after the operation on multiple files is consistent, which can reduce the cost of retraining the user's search rate and reading habits.
  • a method for file sorting is provided, the method being applied to a first electronic device, the method comprising: sorting first target files on the first electronic device based on first attribute information, the first target files comprising at least two files; obtaining a second target file in response to a first operation of a user on the first target file, wherein the first operation comprises a copy operation and/or a move operation, and the second target file comprises at least two files; and sorting the second target file according to the arrangement order of the first target file so that the arrangement order of the second target file is consistent with the arrangement order of the first target file.
  • the first electronic device when a user performs a first operation on a first target file including at least two files to obtain a second target file including at least two files, the first electronic device can sort the second target file according to the arrangement order of the first target file.
  • the solution provided by the embodiment of the present application can ensure that the arrangement order of the second target file is consistent with the arrangement order of the first target file before and after the first operation, so that the user's experience perception before and after operations on multiple target files remains consistent, thereby reducing the cost of retraining the user's search rate and reading habits.
  • the method further includes: in response to the first operation, generating an identifier corresponding to the arrangement order of the first target file according to the arrangement order of the first target file; sorting the second target file according to the arrangement order of the first target file includes: sorting the second target file according to the identifier corresponding to the arrangement order of the first target file.
  • the electronic device when a user performs a first operation on a first target file including at least two files to obtain a second target file including at least two files, in response to the first operation, the electronic device can generate an identifier corresponding to the arrangement order of the first target file according to the arrangement order of the first target file, and generate an identifier corresponding to the arrangement order of the first target file according to the identifier corresponding to the arrangement order of the first target file. Sorting can ensure that the arrangement order of the second target files is consistent with the arrangement order of the first target files before and after the first operation, so that the user's experience perception before and after operations on multiple target files remains consistent, thereby reducing the cost of retraining the user's search rate and reading habits.
  • the files in the first electronic device include local files and non-local files
  • the display of the local files is not affected by the insertion or removal of the pluggable device into the first electronic device
  • the non-local files are files that are displayed on the first electronic device only after the pluggable device is inserted into the first electronic device
  • the first target file and the second target file are both local files
  • the first target file and the second target file are both non-local files
  • one of the first target file and the second target file is the non-local file, and the other is the local file.
  • the files in the first electronic device may include local files and non-local files
  • the first target file and the second target file may both be local files, or both may be non-local files, or one of the files may be a local file and the other may be a non-local file.
  • the second target file may be sorted according to the arrangement order of the first target file, so that the user's experience perception before and after operating multiple target files can be consistent.
  • the local files are stored in a first database
  • the non-local files are stored in a second database
  • the first database and the second database are different databases
  • the first database and the second database are uniformly managed by a user file management module.
  • the local files and non-local files in the embodiments of the present application are stored in different databases, and the different data can be uniformly managed by a user file management module. Since the local files and non-local files are stored in different databases, the arrangement order of the local files on the first electronic device will not be affected before and after the pluggable device including the non-local files is inserted into the first electronic device, that is, the arrangement order of the local files on the first electronic device remains unchanged, which can reduce the user's search rate and the cost of retraining reading habits, and can also reduce the power consumption caused by repeatedly plugging and unplugging the pluggable device file system to scan it.
  • the first attribute information includes the following information: insertion time, database modification time, shooting time, file system modification time, access time, record change time; the first attribute information of the second target file is determined based on the first operation and according to preset rules.
  • the first attribute information may include the above-mentioned time information, and the first electronic device may sort the first target file according to any of the above-mentioned time information.
  • the first attribute information of the second target file is determined based on the first operation and in accordance with a preset rule.
  • the first attribute information of the second target file can be unified.
  • the first attribute information of the second target file is determined based on the first operation and in accordance with the preset rule, which can unify the user experience.
  • the method further includes: in response to the user's second operation on a third target file comprising at least two files, displaying the third target file at the top in an arrangement order of the third target file, and at least one of the at least two files included in the third target file is the second target file.
  • the first electronic device when the user performs a second operation on a third target file including at least two files, the first electronic device can display the third target file at the top according to the arrangement order of the third target file, that is, the arrangement order of the third target file displayed after being placed on the top is consistent with the arrangement order of the third target file before being placed on the top, which can ensure the consistency of the arrangement order of the third target file before and after being placed on the top, so that the user's experience perception is consistent.
  • a method for file sorting is provided, which is applied to a second electronic device, and the method includes: obtaining a second target file, where the first electronic device copies, moves or shares a first target file in the first electronic device to the second electronic device, the first target file includes at least two files, the second target file includes at least two files, and the first target file is sorted based on first attribute information; sorting the second target file according to the arrangement order of the first target file so that the arrangement order of the second target file is consistent with the arrangement order of the first target file.
  • the second electronic device after the second electronic device obtains the second target file, it can sort the second target file according to the arrangement order of the first target file.
  • the solution provided in the embodiment of the present application can ensure that the arrangement order of the second target file is consistent with the arrangement order of the first target file, so that the user's experience perception before and after operating multiple target files can be consistent, thereby reducing the cost of retraining the user's search rate and reading habits.
  • the method further includes: obtaining an identifier corresponding to the arrangement order of the first target files; and sorting the second target files according to the arrangement order of the first target files includes: sorting the second target files according to the arrangement order corresponding to the first target files.
  • the identifier of the arrangement order of the first target files is used to sort the second target files.
  • the second electronic device after obtaining the second target file, can also obtain an identifier corresponding to the arrangement order of the first target file, so that the second target file can be sorted according to the identifier corresponding to the arrangement order of the first target file.
  • the solution provided in the embodiment of the present application can ensure that the arrangement order of the second target file is consistent with the arrangement order of the first target file, so that the user's experience perception before and after operating multiple target files is consistent, thereby reducing the cost of retraining the user's search rate and reading habits.
  • the first attribute information includes the following information: insertion time, database modification time, shooting time, file system modification time, access time, record change time; the first attribute information of the second target file is determined according to preset rules based on the copy or move operation of the first electronic device on the first target file.
  • the first attribute information may include the above-mentioned time information, and the first electronic device may sort the first target file according to any of the above-mentioned time information.
  • the first attribute information of the second target file is determined based on the copy, move or share operation and according to a preset rule.
  • the method further includes: in response to a user's second operation on a third target file comprising at least two files, sorting and displaying the third target file at the top according to the arrangement order of the third target file, and at least one of the at least two files included in the third target file is the second target file.
  • the second electronic device when the user performs a second operation on a third target file including at least two files, the second electronic device can display the third target file at the top according to the arrangement order of the third target file, that is, the arrangement order of the third target file displayed after being placed on the top is also consistent with the arrangement order of the third target file before being placed on the top, which can ensure the consistency of the arrangement order of the third target file before and after being placed on the top, so that the user's experience perception is consistent.
  • a device which is included in an electronic device, and has the function of implementing the electronic device behavior in the above aspects and possible implementations of the above aspects.
  • the function can be implemented by hardware, or by hardware executing corresponding software.
  • the hardware or software includes one or more modules or units corresponding to the above functions.
  • an electronic device comprising: one or more processors; a memory; one or more applications; and one or more computer programs.
  • the one or more computer programs are stored in the memory, and the one or more computer programs include instructions.
  • the electronic device executes the method in any possible implementation of the first aspect or the second aspect.
  • a chip system comprising at least one processor, wherein when program instructions are executed in the at least one processor, the function of the method in any possible implementation of the first aspect or the second aspect mentioned above is implemented on the electronic device.
  • a computer storage medium comprising computer instructions.
  • the computer instructions When the computer instructions are executed on an electronic device, the electronic device executes a method in any possible implementation of the first aspect or the second aspect.
  • a computer program product is provided.
  • the computer program product runs on an electronic device, the electronic device executes a method in any possible design of the first aspect or the second aspect.
  • FIG1 is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application.
  • FIG. 2 is a schematic diagram of a software structure of an electronic device provided in an embodiment of the present application.
  • FIG3 is a schematic diagram of data management provided in an embodiment of the present application.
  • FIG. 4 is a schematic diagram of another data management provided in an embodiment of the present application.
  • FIG. 5 is a schematic diagram of a file system storing data provided by the present application.
  • FIG. 6 is a schematic diagram of a set of GUIs provided in an embodiment of the present application.
  • FIG. 7 is a schematic diagram of another set of GUIs provided in an embodiment of the present application.
  • FIG8 is a schematic diagram of another set of GUIs provided in an embodiment of the present application.
  • FIG. 9 is a schematic diagram of another set of GUIs provided in an embodiment of the present application.
  • FIG. 10 is a schematic diagram of another set of GUIs provided in an embodiment of the present application.
  • FIG. 11 is a schematic diagram of another set of GUIs provided in an embodiment of the present application.
  • FIG. 12 is a schematic diagram of another set of GUIs provided in an embodiment of the present application.
  • FIG. 13 is a schematic diagram of a file sorting method provided in an embodiment of the present application.
  • FIG14 is a schematic diagram of another file sorting method provided in an embodiment of the present application.
  • FIG15 is a schematic block diagram of an electronic device provided in an embodiment of the present application.
  • FIG16 is a schematic block diagram of another electronic device provided in an embodiment of the present application.
  • first and second are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features.
  • a feature defined as “first” or “second” may explicitly or implicitly include one or more of the features.
  • the solution provided in the present application can be applied to electronic devices such as mobile phones, tablet computers, personal computers (PCs), wearable devices, vehicle-mounted devices, augmented reality (AR)/virtual reality (VR) devices, laptops, ultra-mobile personal computers (UMPCs), netbooks, personal digital assistants (PDAs), etc.
  • electronic devices such as mobile phones, tablet computers, personal computers (PCs), wearable devices, vehicle-mounted devices, augmented reality (AR)/virtual reality (VR) devices, laptops, ultra-mobile personal computers (UMPCs), netbooks, personal digital assistants (PDAs), etc.
  • the embodiments of the present application do not impose any restrictions on the specific types of electronic devices.
  • FIG1 shows a schematic diagram of the structure of an electronic device 100.
  • the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.
  • SIM subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
  • the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100.
  • the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently.
  • the components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and/or a neural-network processing unit (NPU), etc.
  • AP application processor
  • GPU graphics processor
  • ISP image signal processor
  • controller a memory
  • video codec a digital signal processor
  • DSP digital signal processor
  • NPU neural-network processing unit
  • Different processing units may be independent devices or integrated in one or more processors.
  • the controller may be the nerve center and command center of the electronic device 100.
  • the controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
  • the processor 110 may also be provided with a memory for storing instructions and data.
  • the memory in the processor 110 is a cache memory.
  • the memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
  • the processor 110 may include one or more interfaces.
  • the interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (SIM) interface, and/or a universal serial bus (USB) interface, etc.
  • I2C inter-integrated circuit
  • I2S inter-integrated circuit sound
  • PCM pulse code modulation
  • UART universal asynchronous receiver/transmitter
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB universal serial bus
  • the I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL).
  • the I2S interface can be used for audio communication.
  • the PCM interface can also be used for audio communication to sample, quantize and encode analog signals.
  • the audio module 170 and the wireless communication module 160 can be coupled via a PCM bus interface.
  • the UART interface is a universal serial data bus for asynchronous communication.
  • the bus can be a bidirectional communication bus. It transmits data to be transmitted in serial
  • the MIPI interface can be used to connect the processor 110 to peripheral devices such as the display screen 194 and the camera 193.
  • the MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc.
  • the GPIO interface can be configured by software.
  • the GPIO interface can be configured as a control signal or as a data signal.
  • the USB interface 130 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc.
  • the USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transmit data between the electronic device 100 and a peripheral device. It can also be used to connect headphones to play audio through the headphones.
  • the interface can also be used to connect other electronic devices, such as AR devices, etc.
  • the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the electronic device 100.
  • the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
  • the wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
  • Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas.
  • antenna 1 can be reused as a diversity antenna for a wireless local area network.
  • the antenna can be used in combination with a tuning switch.
  • the mobile communication module 150 can provide solutions for wireless communications including 2G/3G/4G/5G, etc., applied to the electronic device 100.
  • the mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc.
  • the mobile communication module 150 may receive electromagnetic waves from the antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation.
  • the mobile communication module 150 may also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1.
  • at least some of the functional modules of the mobile communication module 150 may be arranged in the processor 110.
  • at least some of the functional modules of the mobile communication module 150 may be arranged in the same device as at least some of the modules of the processor 110.
  • the modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal.
  • the demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194.
  • the modem processor may be an independent device.
  • the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR) and the like applied to the electronic device 100.
  • WLAN wireless local area networks
  • BT wireless fidelity
  • GNSS global navigation satellite system
  • FM frequency modulation
  • NFC near field communication
  • IR infrared
  • the wireless communication module 160 can be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering processing, and sends the processed signal to the processor 110.
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of the signal, amplify the signal, and convert it into electromagnetic waves for radiation through the antenna 2.
  • the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and/or IR technology.
  • the GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and/or a satellite based augmentation system (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite based augmentation system
  • the electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor.
  • the GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations for graphics rendering.
  • the processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
  • the display screen 194 is used to display images, videos, etc.
  • the display screen 194 includes a display panel.
  • the electronic device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.
  • the ISP is used to process data fed back by the camera 193.
  • the camera 193 is used to capture still images or videos.
  • the video codec is used to compress or decompress digital videos.
  • the electronic device 100 can support one or more video codecs. In this way, the electronic device 100 can play or record videos in multiple coding formats, such as: moving picture experts group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
  • MPEG moving picture experts group
  • NPU is a neural network (NN) computing processor.
  • NN neural network
  • applications such as intelligent cognition of electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, etc.
  • the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100.
  • the external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music and videos can be stored in the external memory card.
  • the internal memory 121 can be used to store computer executable program codes, which include instructions.
  • the processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121.
  • the internal memory 121 may include a program storage area and a data storage area.
  • the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.
  • the data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc.
  • the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.
  • UFS universal flash storage
  • the electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
  • the SIM card interface 195 is used to connect a SIM card.
  • the SIM card can be connected to and separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195.
  • the electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1.
  • the SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can be the same or different.
  • the SIM card interface 195 can also be compatible with different types of SIM cards.
  • the SIM card interface 195 can also be compatible with external memory cards.
  • the electronic device 100 interacts with the network through the SIM card to implement functions such as calls and data communications.
  • the electronic device 100 uses an eSIM, i.e., an embedded SIM card.
  • the eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
  • the software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture.
  • the embodiment of the present application takes the Android system of the layered architecture as an example to exemplify the software structure of the electronic device 100.
  • FIG2 is a software structure diagram of the electronic device 100 of an embodiment of the present application.
  • the layered architecture divides the software into several layers, each layer has a clear role and division of labor.
  • the layers communicate with each other through software interfaces.
  • the Android system is divided into four layers, from top to bottom, namely, the application layer, the application framework layer, the Android runtime (Android runtime) and the system library, and the kernel layer.
  • the application layer can include a series of application packages.
  • the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.
  • the application framework layer provides application programming interface (API) and programming framework for the applications in the application layer.
  • API application programming interface
  • the application framework layer includes some predefined functions.
  • the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, and the like.
  • the window manager is used to manage window programs.
  • the window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.
  • Content providers are used to store and retrieve data and make it accessible to applications.
  • the data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
  • the view system includes visual controls, such as controls for displaying text, controls for displaying images, etc.
  • the view system can be used to build applications.
  • a display interface can be composed of one or more views.
  • a display interface including a text notification icon can include a view for displaying text and a view for displaying images.
  • the resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
  • the notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc.
  • the notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.
  • Android runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.
  • the core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.
  • the application layer and the application framework layer run in a virtual machine.
  • the virtual machine executes the Java files of the application layer and the application framework layer as binary files.
  • the virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
  • the system library can include multiple functional modules, such as surface manager, 3D graphics processing library, 2D graphics engine, etc.
  • the attribute information is a timestamp
  • Huawei File Manager will add a new file and assign the current system time as the attribute value to the newly added file.
  • files in Huawei's file manager, gallery and other applications do not inherit timestamps in scenarios such as cross-directory copying, cross-disk or cross-device, that is, they will not inherit the time information before the file migration; while ES File Manager calls the relevant setting interface to inherit the timestamp, that is, inherit the time information before the file migration.
  • the time information of the migrated files in different directories or different devices is not the same.
  • the device sorts the migrated files according to the time information the migrated files are displayed in different order in different directories or different devices, resulting in inconsistent user experience.
  • the Android system does not have the ability to unify it, but each application solves it single-point and single-item, and there is no unified standard. Moreover, the Android system did not take into account the user experience at the beginning of its design. Users are accustomed to migrating or copying files through different applications (APPs), and the experience is relatively fragmented.
  • APPs applications
  • the timestamps of the migrated files in different applications on the same platform are also different.
  • the timestamps of the migrated files are all retained, that is, the time of the files stored in the Windows PC is consistent with the time of the files stored in the mobile phone, such as the creation time of the files stored in the Windows PC is consistent with the creation time of the files stored in the mobile phone, and the modification time of the files stored in the Windows PC is consistent with the modification time of the files stored in the mobile phone; when the ... After the files of QQ are migrated to Windows PC, the timestamps of the migrated files are reset to the current time on Windows PC, that is, the creation time, modification time, access time, record change time, etc.
  • Windows tries to keep files in order when migrating or copying, it does not completely maintain the same order. For example, when transferring files between a mobile phone and a Windows PC, the assistant software of mobile phones produced by most manufacturers will update the file creation time, the assistant software of mobile phones produced by some manufacturers will update the file modification time, and the assistant software of mobile phones produced by some manufacturers will not update the file modification time. This is inconsistent with the default behavior of the Windows system to inherit the creation time and modification time when migrating or copying files.
  • iOS devices Devices loaded with iOS system (hereinafter referred to as iOS devices)
  • File migration is mostly done through the cloud (icloud) or official migration tools. File migration only supports full disk migration.
  • the iOS system defaults to inheriting attribute information during migration and copying, such as file size, file name, file type, file creation time, modification time, etc.
  • the modification time of files downloaded from the cloud by mobile phones produced by different manufacturers will also be different.
  • the modification time of files downloaded from the official cloud service by mobile phones produced by some manufacturers remains unchanged; while the modification time of new files will be updated on mobile phones produced by some manufacturers regardless of whether the files or folders are downloaded from their official cloud service or from Baidu Netdisk.
  • the attribute information of the new files will also be different.
  • the timestamp (including the creation time and modification time of the new files) of the new files after being copied to the SD card is updated to the current system time;
  • the creation time of the new files after being copied to the SD card is consistent with the creation time of the old files, and the modification time of the new files is updated to the current system time.
  • the attribute information of the new files will also be different.
  • the creation time of the renamed file remains unchanged, and the modification time after renaming is updated to the current system time.
  • the modification time of the renamed file remains unchanged, and the creation time after renaming is updated to the current system time.
  • the creation time and modification time of the renamed file remain unchanged.
  • the attribute information of the new files will also be different.
  • the creation time of the files stored in the USB flash drive is updated to the current system time, and the modification time of the files stored in the USB flash drive remains unchanged
  • the creation time and modification time of the files stored in the USB flash drive remain unchanged
  • copying files from an Ubuntu PC to a USB flash drive the creation time of the files stored in the USB flash drive is updated to the current system time, and the modification time of the files stored in the USB flash drive remains unchanged.
  • the timestamps of new files obtained after the same operation is performed on files in devices with different systems are different; the timestamps of new files obtained after the same operation is performed on files in mobile phones with the same system produced by different manufacturers are also different; for mobile phones produced by the same manufacturer, the timestamps of new files obtained by migrating or copying files in the mobile phone to the same device in different ways will also be different; for mobile phones produced by the same manufacturer, the timestamps of new files obtained after the same file is downloaded from different clouds will also be different; and so on.
  • the different timestamps of the new files will lead to different arrangement orders of the new files, resulting in inconsistent user experience perception and the cost of retraining user search speed and reading habits.
  • the present application provides a method for file sorting, which can unify the arrangement order of files, make the user experience perception consistent, and reduce the cost of retraining the user's search speed and reading habits.
  • Native sharing service - files in the mobile phone are transmitted via Bluetooth, Wi-Fi, cross-network sockets, public network, etc.
  • Scenario 4 Local and cloud data migration or backup
  • files downloaded from a remote location such as files downloaded from Baidu Cloud or Xunlei
  • the sorting rules used by the sub-interfaces of different applications in different systems are different.
  • the photos in the sub-interface of the photo/grid of the gallery are sorted by shooting time;
  • the photos in the sub-interface of the "camera" of the gallery's album have multiple sorting rules, such as sorting by shooting time, creation time, file name, and file size;
  • the photos in the sub-interface of the "all photos” of the gallery's album also have multiple sorting rules, such as shooting time, creation time, file name, and file size. Others are not listed one by one, please refer to the contents shown in Table 1 for details.
  • the sub-interfaces of different applications in different systems can adopt multiple sorting rules.
  • the specific rule to be adopted can be determined by the developer who develops the application. Since the developers of different applications are different, the set sorting rules are not uniform. However, although there are multiple sorting rules adopted by the sub-interfaces of different applications in different systems, the applications in different systems or different interfaces of the same application almost all have the rule of sorting according to time information, but the specific time when sorting according to time information is different, such as some are sorted according to insertion time, some are sorted according to modification time, and some are sorted according to shooting time, etc. For details, please refer to all the bold texts in Table 1 above. The following will take time attributes as an example to introduce the specific content of this application.
  • the embodiment of the present application provides a method for file sorting.
  • the consistency of the arrangement order of the files before and after the operation can be guaranteed, so that the user's experience perception before and after the operation on multiple files is consistent, which can reduce the cost of retraining the user's search rate and reading habits.
  • FIG3 it is a schematic diagram of data management provided by an embodiment of the present application.
  • the lines without “ ⁇ ” indicate that the public data of the corresponding application is managed and maintained through the user file management module, and all the lines marked with “ ⁇ ” indicate that the public data of the corresponding application is not managed and maintained through the user file management module.
  • the user file management module can manage and maintain the public data of all applications, and provide an entry for applications to access the data.
  • the file management module can store the managed and maintained public data in a file system.
  • the file system can store not only the public data generated by the local application, but also the public data of other devices (such as SD card), except that the local data and the data of other devices can be stored separately.
  • the public data generated by application 1 can be uniformly managed and maintained by the user file management module, and the file management module can store the public data of application 1 in the file system.
  • the application 1 database no longer stores and maintains the public data generated by application 1, and the file system no longer stores and maintains the public data from the application 1 database.
  • the public data in the present application may include public data of media files and/or public data of non-media files, wherein media files may include pictures, videos, audio, etc.; non-media files may include files with suffixes of .doc, .pdf, .txt, etc.
  • the user file management module includes multiple data: local metadata, cloud metadata, and cross-device metadata.
  • the data in the user file management module can be aggregated through the file access framework (FAF) and uniformly managed and maintained by the user file management module.
  • FAF file access framework
  • the user file management module can provide the application with a corresponding access entry when the application accesses data. For example, when Taobao ⁇ R obtains permission to access pictures, when a user views pictures through Taobao ⁇ R, Taobao ⁇ R can obtain pictures through the unified application programming interface (API) provided by the user file management module and present the obtained pictures to the user.
  • API application programming interface
  • FIG. 5 it is a schematic diagram of a file system storing data provided by the present application. It can be seen that the file system generally stores data in the form of a directory tree, but this way of storing data is not conducive to finding and searching data. Therefore, the data in the file system can be stored in a table association manner, as shown in Table 2.
  • the file system can store data in a table-related manner.
  • the file system can narrow the search range by file type, file size, etc. The file to be accessed by the user can be found more quickly from the narrowed search range, thereby improving search efficiency and enhancing user experience.
  • the migrated files can be marked, and device A can merge the migrated files with the files on device A according to specific time information, and at the same time, ensure that the order of the migrated files on device A is consistent with that on device 1 based on the mark; or, during the file migration process, the time information of the files can be migrated synchronously, and the migrated files can be merged with the files on device A according to the specific time information, and at the same time, ensure that the order of the migrated files on device A is consistent with that on device 1.
  • Table 3 shows the time attributes of files on device 1, and the files are arranged in descending order according to the insertion time
  • Table 4 shows the time attributes of files on device A before the files are migrated from device 1 to device A, and the files are arranged in descending order according to the insertion time
  • Table 5 shows the time attributes of files on device A after the files are migrated from device 1 to device A, and the files are arranged in descending order according to the insertion time.
  • the insertion time of file 1 in device 1 is 2022/7/24 17:00
  • the modification time is 2022/7/25 12:00
  • the shooting time is 2022/7/24 17:00
  • the insertion time of file 1 displayed in device A is changed to 2022/7/30 9:00
  • the modification time is consistent with the modification time displayed in device 1
  • the shooting time is consistent with the shooting time displayed in device 1, that is, 2022/7/24 17:00.
  • the three files, file 1, file 2, and file 3 may be quickly migrated to device A, while file 4 takes a long time to migrate to device A.
  • the insertion time of the three files, file 1, file 2, and file 3 is 2022/7/30 9:00, and the insertion time of file 4 is 2022/7/30 9:03, that is, file 4 is migrated to device A 3 minutes later than the other three files.
  • the order of the migrated files displayed in device A should be file 4, file 1, file 2, and file 3, but the solution provided in the embodiment of the present application can ensure that the order of the migrated files before and after the file migration is consistent, which can be achieved in the following way.
  • the migrated files can be marked in the order before migration.
  • the four files before migration are arranged in the order of file 1, file 2, file 3, and file 4 in device 1.
  • these four files can be marked in order, such as adding mark "1" to the header information of file 1, adding mark "2" to the header information of file 2, adding mark "3" to the header information of file 3, and adding mark "4" to the header information of file 4.
  • device A can still sort them into file 1, file 2, file 3, and file 4 according to the header information of the files, so as to keep the order consistent with that in device 1, so as to make the user experience perception consistent before and after file migration, and reduce the cost of retraining users' search speed and reading habits.
  • Device A can first read the file contents of the four files, then read the attribute information of the four files, and sort the four files in Device A according to the attribute information of the reread files.
  • the insertion time of file 1, file 2, and file 3 displayed in device A is 2022/7/30 9:00, and the insertion time of file 4 is 2022/7/30 9:03.
  • Device A can read the attribute information of the four files again, such as the insertion time of file 1, file 2, file 3, and file 4 displayed in device 1 is: 2022/7/24 17:00, 2022/7/24 16:00, 2022/7/24 12:00, 2022/7/24 7:00, at this time, device A can sort the four files in descending order according to the insertion time of the four files read from device 1, and the sorting result is still file 1, file 2, file 3, file 4.
  • device A When the user migrates four files, File 1, File 2, File 3, and File 4, from device 1 to device A, device A can uniformly read the file contents and attribute information of the four files through a specific interface, and sort the four files in device A based on the read file attribute information.
  • device A can read the file contents and attribute information of the four files through a specific interface.
  • the insertion time of the three files File 1, File 2, and File 3 displayed in device A is 2022/7/30 9:00
  • the insertion time of File 4 is 2022/7/30 9:03.
  • the rule referred to by device A when sorting the four files is not the displayed insertion time, but the insertion time of the four files displayed in device 1 read through the specific interface, which are respectively: 2022/7/24 17:00, 2022/7/24 16:00, 2022/7/24 12:00, 2022/7/24 7:00.
  • device A can sort the four files in descending order according to the insertion time of the four files read from device 1, and the sorting result is still File 1, File 2, File 3, File 4.
  • the files on device 1 may also be sorted according to other attribute information, such as file size.
  • device A can still use methods similar to those described above to ensure that the order of the migrated files on device A remains consistent with that on device 1.
  • the cross-file system migration file in this application can be understood as: files are migrated from one system to another, such as files in a mobile phone are migrated to an SD card, U disk, Windows PC, etc.; or files in an SD card, U disk, Windows PC, etc. are migrated to a mobile phone.
  • such files may not be merged with the local files in the destination device to be migrated, but such files may be stored separately.
  • the file system in the mobile phone is triggered to scan the SD card. After the scan is completed, the scanned files are no longer merged with the local files of the file system in the mobile phone library.
  • a separate database is set up to store the files scanned from the SD card, and the database for storing the files scanned from the SD card can be managed by the user file management module.
  • two databases can be set up in the mobile phone, one is a database for storing local data, and the other is a database for storing data of other pluggable devices, but these two databases can be managed uniformly by the user file management module.
  • the time attribute information of the migrated new files can refer to the content of the cross-file system migration in Table 6 below.
  • the interface displays the GUI shown in (f) in FIG12. It can be seen that the modification time of the migrated documents is updated to the current system time, and the arrangement order of the migrated documents remains unchanged before and after the migration.
  • a file can include multiple time attributes, which can be used to describe the creation, access, and modification history of a file.
  • a file's time attributes can include one or more of the insertion time, database modification time, shooting time, file system modification time, access time, and record change time. The following will introduce the definitions of each type of time attribute.
  • Insertion time (data_added time): reflects the movement of a file, specifically refers to the time when a file was inserted into the directory (refers to when the document was added to the directory)
  • Database modification time (data_modified time): the time when the file content was last modified (the last time the file was modified)
  • File system modification time reflects the changes of files in the file system
  • Access time the last time the file was read.
  • Record change time the last time the file or the meta data of the file was changed.
  • a file may include some or all of the time attributes listed above, for example, documents and audio do not have shooting time.
  • the time attribute of the file may also change differently.
  • the operation on the file may include local operation and non-local operation.
  • the local operation may include file creation, file modification, file access, local file copy, local file migration, and migration of private directory to public directory; non-local operation may include cross-end operation, cross-device operation, and cross-file system operation.
  • Table 6 lists the changes in the time attributes of the file when different operations are performed on the file.
  • File creation Create a new file in this terminal.
  • the time attributes of this file are all the new current system time, including the file creation time, database modification time, shooting time (this time attribute is for pictures or videos), file system modification time, access time, and record change time.
  • File modification Modify the files in this terminal. The insertion time and shooting time of the modified files remain unchanged, while the database modification time, file system modification time, access time, and record change time are all changed to the current system time.
  • File copy copy files from one folder to another on the local end.
  • the creation time of the copied files is set to the new current system time.
  • the database modification time, shooting time, and file system modification time remain unchanged, and the access time and record change time are changed to the current system time.
  • the documents 1a, 1b, and 1c in folder 1 of the user's mobile phone are copied to folder 4 of the mobile phone, and the modification time of the documents 1a, 1b, and 1c stored in folder 4 is consistent with the modification time of the documents 1a, 1b, and 1c stored in folder 1.
  • the modification time of the three documents 1a, 1b, and 1c is unchanged after they are copied from folder 1 to folder 4 (referring to Table 1 above, the documents in My Phone in the file manager of a mobile phone loaded with an Android system are sorted by modification time).
  • File migration Migrate files from one folder to another on this end.
  • the creation time, database modification time, shooting time, and file system modification time of the migrated files remain unchanged, while the access time and record change time are changed to the current system time.
  • the user moves four pictures, Picture C1, Picture C2, Picture C3, and Picture C4, from the album Pictures in the mobile phone to the album My Favorites.
  • the creation time of the migrated pictures is still July 5 (refer to Table 1 above, for a mobile phone with an Android system, all photos in the album in its gallery can be sorted by shooting time).
  • Migrate from private to public directory Migrate files from private to public directories on this end.
  • the creation time and database modification time of the migrated files are set to the new current system time.
  • the shooting time and file system modification time remain unchanged, and the access time and record change time are changed to the current system time.
  • Migrate files across file systems When a user migrates files from one system to another, the creation time and database modification time of the migrated files are set to the new current system time. The shooting time and file system modification time remain unchanged, while the access time and record change time are changed to the current system time.
  • the user moves the documents sd1a, sd1b, and sd1 stored in the folder sd1 in the SD card to the folder in the internal storage of the mobile phone, and the modification time of the documents sd1a, sd1b, and sd1c stored in a folder in the internal storage of the mobile phone is the current system time.
  • the modification time of the documents sd1a, sd1b, and sd1c are all changed when they are copied from the SD card to the folder in the mobile phone (refer to Table 1 above, for mobile phones equipped with the Android system, the documents in My Phone in its file manager are sorted by modification time).
  • Remote file migration Users transfer files from one device to another wirelessly.
  • the creation time of the migrated files is set to the new current system time.
  • the database modification time, shooting time, and file system modification time remain unchanged, while the access time and record change time are changed to the current system time.
  • the user shares Document 1a, Document 1b, and Document 1c in Device 1 to Device A through Huawei Cloud Sharing, and the modification time of Document 1a, Document 1b, and Document 1c stored in Device A is consistent with the modification time of Document 1a, Document 1b, and Document 1c stored in Device 1.
  • the three documents, Document 1a, Document 1b, and Document 1c in Device 1 are shared to Device A, and the modification time of these three documents does not change.
  • Download files from a remote location When a user downloads files from a remote location, for example, from Huawei Cloud or Baidu Cloud, the creation time and database modification time of the downloaded files are set to the new current system time. The shooting time and file system modification time remain unchanged, while the access time and record change time are changed to the current system time.
  • the embodiment of the present application also provides a top-level method, and the developer can also set a top-level field or identifier in the user file management module to mark some important or commonly used files.
  • the multiple files can still be sorted according to the order rules followed by these multiple files in a certain application.
  • the pictures in the My Collection album in the Gallery application are arranged in descending order according to the shooting time, and the order after arrangement is Y1, Y2, C1, C2, C3, C4, Y3, Y4, Y5, Y6, see the GUI shown in (e) in Figure 6; if the user pins the three pictures C1, Y3, and Y5 to the top, the three pinned pictures are still arranged in descending order according to the shooting time, and the order after arrangement is C1, Y3, and Y5, see the GUI shown in (i) in Figure 6.
  • the embodiments of the present application provide multiple strategies, the ultimate goal of which is to ensure the consistency of the arrangement order of multiple files before and after the operation, so that the user's experience perception before and after operating multiple files remains consistent, which can reduce the cost of retraining the user's search speed and reading habits.
  • FIG. 6 shows a set of graphical user interfaces (GUI) of a mobile phone, wherein from (a) to (b) in FIG. 6 (l) in the figure shows the sorting of pictures after the user moves pictures from one album in the gallery of the mobile phone to another album.
  • GUI graphical user interfaces
  • the GUI is the desktop of the mobile phone.
  • the mobile phone detects that the user clicks the icon 301 of the gallery on the desktop, the gallery can be started to display the GUI shown in (b) of Fig. 6.
  • the interface displays different albums, including: all photos, pictures, videos, screenshots, etc.
  • the GUI shown in (c) of FIG6 may be displayed.
  • the interface displays the pictures in the album “Pictures”, and the pictures in the album are arranged in the order of shooting time.
  • pictures A1 and A2 As shown in the interface: today’s pictures include pictures A1 and A2; yesterday’s pictures include pictures B1, B2, B3, and B4; pictures on July 5 include pictures C1, C2, C3, C4, and C5, etc.
  • icons ⁇ appear in the lower right corners of pictures C1, C2, C3, and C4, and a bar pops up at the bottom of the interface, which includes function buttons such as move, copy, send, and more, from which the user can select a function button.
  • the GUI shown in (d) of FIG. 6 can be displayed.
  • a bar is displayed at the bottom of the interface, and the top of the bar includes the line "Move to", and the bar also includes multiple albums: New Album, Screenshots and Recordings, My Favorites, Weibo, Downloads, WeChat, etc.
  • the user can move the picture selected in (c) of FIG6 to any album.
  • the GUI shown in (e) of FIG6 can be displayed.
  • the interface displays the pictures in the album My Collection, including 10 pictures, namely Picture Y1, Picture Y2, Picture Y3, Picture Y4, Picture Y5, Picture Y6, Picture C1, Picture C2, Picture C3 and Picture C4, and Picture Y1, Picture Y2, Picture Y3, Picture Y4, Picture Y5 and Picture Y6 existed in the album My Collection before Pictures C1, Picture C2, Picture C3 and Picture C4 were moved.
  • the pictures in the album My Collection before Pictures C1, Picture C2, Picture C3 and Picture C4 were moved can be seen in the GUI shown in (f) in Figure 6.
  • the shooting time of pictures Y1 and Y2 is July 10
  • the shooting time of pictures Y3, Y4, Y5 and Y6 is June 20, and these 6 pictures are arranged in the order of shooting time.
  • the pictures in the album My Collection are shown in the GUI shown in (e) of FIG6 , and it can be seen that the moving of pictures C1, C2, C3 and C4 to the album My Collection does not change the shooting time of pictures C1, C2, C3 and C4, and the shooting time of these four pictures is still July 5, and the arrangement order of these four pictures is still picture C1, picture C2, picture C3 and picture C4.
  • the arrangement order of the pictures in the My Favorites album is: Picture Y1, Picture Y2; Picture C1, Picture C2, Picture C3, Picture C4; Picture Y3, Picture Y4, Picture Y5, Picture Y6.
  • the user can also put some frequently used or important pictures on top.
  • pictures C1, Y3 and Y5 are frequently used or important in the user's life, so pictures C1, Y3 and Y5 can be put on top for display.
  • the mobile phone detects that the user has long pressed the icon 305 of picture C1, the icon 305 of picture Y3 and the icon 305 of picture Y5, the GUI shown in (g) of FIG6 can be displayed.
  • the interface displays icons ⁇ in the lower right corners of the pictures C1, Y3 and Y5, and a bar frame is displayed at the bottom of the interface, which includes function buttons such as Send, Edit, Delete and More.
  • the GUI shown in (h) of FIG6 may be displayed.
  • the interface pop-up box displays multiple function buttons, including: Add to, Set as Wallpaper, Rename, Stick to Top, and Details.
  • Add to When the mobile phone detects that the user clicks the Stick to Top function button 307, and the user returns to the My Favorites album, the interface displays the GUI shown in (i) of FIG6 .
  • pictures C1, Y3 and Y5 are located at the top of the interface, and the words "top” are displayed in the lower right corners of the three pictures C1, Y3 and Y5, which is convenient for users to view the pictures.
  • the shooting time and modification time of these three pictures have not changed.
  • the top pictures C1, Y3 and Y5 are still sorted in descending order according to the shooting time. This is consistent with the order in which these three photos were arranged before they were pinned.
  • the pinning of picture C1 can be canceled by similar operations.
  • the mobile phone detects that the user long presses the icon 308 of picture C1, the GUI shown in (j) of FIG. 6 can be displayed.
  • an icon ⁇ appears in the lower right corner of the interface display picture C1, and a bar frame is displayed at the bottom of the interface, and the bar frame includes the function buttons of Send, Edit, Delete, and More.
  • the mobile phone detects that the user clicks the function button 309 of More, the GUI shown in (k) of FIG6 may be displayed.
  • the interface pop-up box displays multiple function buttons, including: Add to, Set as Wallpaper, Rename, Stick to Top, Details.
  • the interface displays the GUI shown in (l) of FIG6 .
  • the pictures displayed on top at this time include pictures Y3 and Y5, while picture C1 is not displayed on top, but is displayed below July 5 together with pictures C2, C3 and C4, that is, it is displayed at the position displayed before being displayed on top.
  • the method of pinning a picture is not limited to the above-mentioned method of long pressing a picture, but can also be achieved through other methods.
  • the user can directly drag picture Y3 to the top of the interface with his hand.
  • picture Y3 is displayed at the top of the interface, and the word "pin" is displayed in the lower right corner of picture Y3.
  • the method for sorting files provided in the embodiment of the present application is that when a user moves multiple photos in a certain album to another album, the arrangement order of the multiple photos moved before and after the move is consistent.
  • the solution provided in the embodiment of the present application can ensure the consistency of the arrangement order of the multiple photos moved before and after the move, and can make the user's experience perception consistent before and after moving multiple photos, thereby reducing the user's search rate and the cost of retraining reading habits.
  • the embodiment of the present application also provides a top-pinning mechanism, and the user can pin one or more commonly used or important pictures to the top for display, and when the user pins multiple pictures, the pinned multiple photos are still sorted according to the sorting rules adopted by the gallery.
  • FIG. 7 shows a set of GUIs of a mobile phone, wherein (a) to (f) in FIG. 7 show the sorting of files after the user copies files in the file manager of the mobile phone across directories.
  • the interface displays multiple icons, including: pictures, videos, audios, documents, etc., and the locations of the files, such as My Phone, My Cloud Disk, Network Neighborhood, and Recently Deleted.
  • the GUI shown in (c) of FIG7 may be displayed.
  • folder 1 includes 3 documents, and the modification time of folder 1 is July 25, 2022; folder 2 includes 1 document, and the modification time of folder 2 is July 20, 2022; folder 3 includes 3 documents, and the modification time of folder 3 is July 18, 2022; folder 4 includes 1 document, and the modification time of folder 4 is July 12, 2022.
  • the four folders can be arranged in the order of folder 1, folder 2, folder 3, and folder 4.
  • the mobile phone detects the operation of the user clicking the icon 403 of folder 1, the GUI shown in (d) of FIG. 7 can be displayed.
  • the interface displays three documents in folder 1, namely document 1a, document 1b, and document 1c, and these three documents are arranged in descending order of modification time.
  • the mobile phone detects that the user clicks on the icons 404 of document 1a, document 1b, and document 1c, "3 items selected" is displayed in the upper left corner of the interface, and a bar box is displayed at the bottom of the interface, which includes multiple function buttons: move, copy, share, rename, and more.
  • a GUI as shown in (e) of FIG. 7 may be displayed.
  • the upper left corner of the interface displays “Copy 3 items to”, and the user can copy the 3 documents selected in (d) of FIG. 7 to any folder.
  • the mobile phone detects that the user clicks the icon 406 of folder 4 (assuming that folder 4 includes 1 document, and the name of this document is document 4a)
  • a bar frame is displayed at the bottom of the interface, and the bar frame includes multiple function buttons: New, Paste, Cancel, and More.
  • the GUI shown in (f) of FIG. 7 may be displayed.
  • the interface displays the documents included in folder 4, which are: document 1a, document 1b, document 1c and document 4a, and these four documents are arranged in descending order according to the modification time. It can be seen that when a document is copied from one folder to another, the modification time of the document does not change. For example, the modification time of document 1a stored in folder 1 is 17:00 on July 25, 2022. When the user copies document 1a in folder 1 to folder 4 at 11:00 on July 30, 2022, the modification time of document 1a stored in folder 4 is still 17:00 on July 25, 2022.
  • the modification time of document 1b is still the modification time before copying, that is, 14:30 on July 25, 2022;
  • the modification time of document 1c is still the modification time before copying, that is, 12:10 on July 25, 2022. Therefore, after the user copies the three documents in folder 1 to folder 4, the arrangement order of the three documents in folder 4 is still document 1a, document 1b, document 1c, which is consistent with the arrangement order in folder 1.
  • the specific pinning method is similar to the above-mentioned pinning picture method. Please refer to the GUI shown in (g) of Figure 6 to the GUI shown in (l) of Figure 6 above, and will not be repeated here.
  • the solution provided in the embodiment of the present application is that when a user copies multiple documents in a folder to another folder, the arrangement order of the copied multiple documents is consistent before and after the copying.
  • the solution provided in the embodiment of the present application can ensure the consistency of the arrangement order of the copied multiple documents before and after the copying, and can make the user's experience perception consistent before and after copying multiple documents, thereby reducing the user's search speed and the cost of retraining reading habits.
  • Figure 8 shows a set of GUIs for a mobile phone, where (a) to (d) in Figure 8 show that after a user migrates pictures from a gallery on a device (such as device 1) to another device (such as device A), the user accesses the sorting of pictures in the two devices respectively through Taobao ⁇ R.
  • the GUI is the desktop of a mobile phone (the mobile phone may be the device 1 mentioned above).
  • the mobile phone detects that the user clicks the Taobao ⁇ R icon 501 on the desktop, the Taobao ⁇ R may be started and the GUI shown in (b) of FIG8 may be displayed.
  • the interface displays the main interface of Taobao ⁇ R, including: search box, Tmall new products, today's hot items, Baba Farm, Tmall Supermarket, etc.
  • search box the GUI shown in (c) of FIG8 can be displayed.
  • the interface displays “Aim at the front of the product for automatic identification”, as well as icons for gallery, scan, Taobao photo, AR Taobao, etc.
  • the GUI shown in (d) of FIG8 may be displayed.
  • the interface displays multiple pictures, and these pictures are arranged in the order of the insertion time of the pictures into the file system.
  • Picture A1, Picture A2, Picture A3, and Picture A4 as examples, Picture A1 is inserted into the file system later than Picture A2, Picture A2 is inserted into the file system later than Picture A3, and Picture A3 is inserted into the file system later than Picture A4. Therefore, the arrangement order of these four pictures is Picture A1, Picture A2, Picture A3, and Picture A4.
  • the arrangement order of the pictures remains unchanged. That is, the arrangement order of the pictures is consistent with the arrangement order displayed by the GUI shown in (d) in FIG8 .
  • the corresponding strategies are implemented in the migration process, such as the order preservation of the migrated pictures, rereading of the attribute information of the migrated pictures, and reading of the picture content and attribute information of the pictures through a specific interface mentioned in the above strategy 2.
  • the solution provided in the embodiment of the present application is that when a user migrates pictures in a certain device to another device and accesses the pictures in the two devices respectively through the same application, the arrangement order of the pictures presented on the interface is consistent.
  • the arrangement order of the pictures presented on the interface is inconsistent.
  • the solution provided in the embodiment of the present application can ensure that the arrangement order of the pictures accessed when the user accesses the pictures migrated across devices through the same application is consistent, and can make the user's experience perception consistent before and after migrating pictures across devices, thereby reducing the cost of retraining the user's search rate and reading habits.
  • FIG9 shows a set of GUIs of a mobile phone, wherein (a) to (d) in FIG9 show that after a user migrates pictures in a gallery on a certain device (such as device 1) to another device (such as device A), the user purchases pictures through JD. Access the sorting of the images in the two devices separately.
  • the GUI (the mobile phone may be the device 1 mentioned above) is the desktop of the mobile phone.
  • the mobile phone detects that the user clicks the Jingdong ⁇ R icon 601 on the desktop, the Jingdong ⁇ R may be started and the GUI shown in (b) of FIG9 may be displayed.
  • the interface shows JD.com
  • the main interface includes: search box, recommendations, home appliances, maternal and child clothing, Mobile phone, etc.
  • the GUI shown in (c) of FIG. 9 may be displayed.
  • the interface displays “Aim at the product for automatic identification”, as well as the camera icon and gallery icon below.
  • the GUI shown in (d) of FIG9 may be displayed.
  • the interface displays multiple pictures, and these pictures are arranged in the order of the modification time of the pictures.
  • the modification time of Picture A1 is later than the modification time of Picture A2
  • the modification time of Picture A2 is later than the modification time of Picture A3
  • the modification time of Picture A3 is later than the modification time of Picture A4. Therefore, the arrangement order of these four pictures is Picture A1, Picture A2, Picture A3, and Picture A4.
  • the arrangement order of the pictures remains unchanged. That is, the arrangement order of the pictures is consistent with the arrangement order displayed by the GUI shown in (d) in Figure 9. This is because the corresponding strategies are implemented in the migration process, such as the order preservation of the migrated pictures, rereading of the attribute information of the migrated pictures, and reading of the picture content and attribute information of the pictures through a specific interface mentioned in the above strategy 2.
  • the solution provided in the embodiment of the present application is that when a user migrates pictures in a certain device to another device and accesses the pictures in the two devices respectively through the same application, the arrangement order of the pictures presented on the interface is consistent.
  • the arrangement order of the pictures presented on the interface is inconsistent.
  • the solution provided in the embodiment of the present application can ensure that the arrangement order of the pictures accessed when the user accesses the pictures migrated across devices through the same application is consistent, and can make the user's experience perception consistent before and after migrating pictures across devices, thereby reducing the cost of retraining the user's search rate and reading habits.
  • FIG10 shows a set of GUIs for a mobile phone, wherein (a) to (j) in FIG10 show the sorting of files after the user copies files in the file manager in the mobile phone across devices.
  • (a) to (f) in FIG10 show a method for a user to share files in a mobile phone (the mobile phone in the embodiment of the present application is device 1 hereinafter) to another device (such as device A hereinafter), and (g) to (j) in FIG10 show the sorting of files viewed by the user on another device.
  • the interface displays multiple icons, including: pictures, videos, audios, documents, etc., and the locations of the files, such as My Phone, My Cloud Disk, Network Neighborhood, and Recently Deleted.
  • the GUI shown in (c) of FIG10 may be displayed.
  • folder 1 includes 3 documents, and the modification time of folder 1 is July 25, 2022; folder 2 includes 1 document, and the modification time of folder 2 is July 20, 2022; folder 3 includes 3 documents, and the modification time of folder 3 is July 18, 2022; folder 4 includes 2 documents, and the modification time of folder 4 is July 12, 2022.
  • the four folders can be arranged in the order of folder 1, folder 2, folder 3, and folder 4.
  • the mobile phone detects the operation of the user clicking the icon 703 of folder 1, the GUI shown in (d) of FIG. 10 can be displayed.
  • the interface displays three documents in folder 1, namely document 1a, document 1b, and document 1c, and these three documents are arranged in descending order according to the modification time.
  • the mobile phone detects that the user clicks the icon 604 of document 1a, document 1b, and document 1c, "3 items selected" is displayed in the upper left corner of the interface, and a bar box is displayed at the bottom of the interface, which includes multiple function buttons: move, copy, share, rename, and more.
  • the share function button 705 the GUI shown in (e) of FIG. 10 can be displayed.
  • a bar is displayed below the interface, and the bar includes multiple icons: Huawei Share, APP1, APP2, APP3, APP4, APP5, APP6, APP7, and APP8.
  • the user can select an application to share the three documents selected in (d) of FIG. 10 to other devices.
  • the mobile phone detects that the user clicks the Huawei Share icon 706, the GUI shown in (f) of FIG. 10 can be displayed.
  • device A is displayed below Huawei Share, indicating that device 1 can share the selected document to device A.
  • the mobile phone detects that the user clicks the icon 707 of device A, documents 1a, 1b, and 1c are shared to device A, and the user can view the received documents in device A.
  • the interface displays multiple icons including: pictures, videos, audios, documents, etc., and the locations of the files, such as My Phone, My Cloud Drive, Network Neighborhood, and Recently Deleted.
  • the GUI shown in (i) of FIG10 may be displayed.
  • the interface displays document Y1, document 1a, document 1b, document 1c, document Y2, and document Y3, and these 6 documents are arranged in descending order of modification time. It can be seen that when a document is shared from one device to another, the modification time of the document will not change.
  • the modification time of document 1a stored in device 1 is 17:00 on July 25, 2022.
  • the user shares document 1a in device 1 to device A, and the modification time of document 1a stored in device A is still 17:00 on July 25, 2022.
  • the modification time of document 1b is still the modification time before sharing, that is, 14:30 on July 25, 2022
  • the modification time of document 1c is still the modification time before sharing, that is, 12:10 on July 25, 2022.
  • the three documents, document Y1, document Y2, and document Y3, are documents stored in device A, and the modification times of the three documents are 16:58 on July 30, 2022, 11:00 on July 24, 2022, and 10:00 on July 24, 2022, respectively.
  • the arrangement order of the three documents can be seen in the GUI shown in (j) of Figure 10. It can be seen from the GUI shown in (j) of Figure 10 that the three documents, document Y1, document Y2, and document Y3, are arranged in descending order according to the modification time.
  • the file sorting method provided in the embodiment of the present application is that when a user shares multiple documents on a certain device to another device, the arrangement order of the shared multiple documents is consistent before and after sharing.
  • the solution provided in the embodiment of the present application can ensure the consistency of the arrangement order of the shared multiple documents before and after sharing, and can make the user's experience perception consistent before and after sharing multiple documents, thereby reducing the cost of retraining the user's search speed and reading habits.
  • FIG11 shows a set of GUIs of a mobile phone, wherein (a) to (f) in FIG11 show the order of photos in the gallery of the mobile phone before and after the user inserts the SD card into the mobile phone. Among them, (a) to (c) in FIG11 show the order of photos in the gallery of the mobile phone before the SD card is inserted, and (d) to (f) in FIG11 show the order of photos in the gallery of the mobile phone after the SD card is inserted.
  • the GUI is the desktop of the mobile phone.
  • the mobile phone detects that the user clicks the icon 801 of the gallery on the desktop, the gallery can be started to display the GUI shown in (b) of Figure 11.
  • the interface displays different albums, including: all photos, pictures, videos, screenshots, etc.
  • the GUI shown in (c) of FIG11 may be displayed.
  • the interface displays the pictures in the album "Pictures", and the pictures in the album are arranged in the order of shooting time. As shown in the interface: today's pictures include pictures A1 and A2; yesterday's pictures include pictures B1, B2, B3, and B4; pictures on July 5 include pictures C1, C2, C3, C4, and C5, etc.
  • the interface displays local and other devices, and the words “other devices” are underlined and bolded, indicating that the current interface displays photos in other devices inserted into the mobile phone, such as the SD card shown on the interface, and the SD card includes 50 photos.
  • the GUI shown in (e) of FIG. 11 may be displayed.
  • the interface displays different albums, including: all photos, pictures, videos, screenshots, etc.
  • the GUI shown in (f) of FIG11 may be displayed.
  • the interface displays the pictures in the album “Pictures”, and the pictures in the album are arranged in the order of shooting time. As shown in the interface: today’s pictures include pictures A1 and A2; yesterday’s pictures include pictures B1, B2, B3, and B4; pictures on July 5 include pictures C1, C2, C3, C4, and C5, etc.
  • the photos in the mobile phone and the photos in the SD card are not displayed in a fused manner, but are displayed independently, such as the GUI shown in (d) in the above FIG. 11.
  • the embodiment of the present application implements a corresponding strategy, such as the files migrated across file systems mentioned in the above strategy three are not displayed in a fused view.
  • the photos will be displayed in a fusion with the photos in the mobile phone, and since the time information will change each time the SD card is scanned, the arrangement order of the photos in the mobile phone will change each time the SD card is inserted into the mobile phone. Therefore, compared with the solutions in the prior art, the solution provided in the embodiment of the present application can ensure that the arrangement order of the photos in the mobile phone remains unchanged before and after the SD card is inserted into the mobile phone, thereby reducing the user's search speed and the cost of retraining reading habits, and can also reduce the power consumption caused by repeatedly plugging and unplugging the SD card file system to scan it.
  • FIG12 shows a set of GUIs for a mobile phone, wherein (a) to (f) in FIG12 show the display of a document in a mobile phone with an SD card inserted, when a user moves a document in an SD card to a document in the internal storage of the mobile phone.
  • the interface displays multiple icons, including: pictures, videos, audios, documents, etc., and the locations of the files, such as My Phone, My Cloud Disk, Network Neighborhood, and Recently Deleted.
  • the GUI shown in (c) of FIG12 may be displayed.
  • the interface displays the internal storage and the SD card.
  • the icon ⁇ changes to ⁇
  • the interface displays that the SD card includes 4 folders, namely, folder sd1, folder sd2, folder sd3, and folder sd4, and these 4 folders are arranged in descending order according to the modification time.
  • folder sd1 includes 3 documents, and the time of folder sd1 is July 22, 2022; folder sd2 includes 2 documents, and the time of folder sd2 is July 16, 2022; folder sd3 includes 4 documents, and the time of folder sd3 is July 10, 2022; folder sd4 includes 0 documents, and the time of folder sd4 is July 6, 2022.
  • the four folders can be arranged in the order of folder sd1, folder sd2, folder sd3, and folder sd4.
  • the interface displays three documents in the folder sd1, namely, document sd1a, document sd1b, and document sd1c, and these three documents are arranged in descending order according to the modification time.
  • the mobile phone detects that the user clicks the icon 904 of document sd1a, document sd1b, and document sd1c
  • "3 items selected” is displayed in the upper left corner of the interface, and a bar box is displayed at the bottom of the interface, which includes multiple function buttons: move, copy, share, rename, and more.
  • the GUI shown in (e) of FIG. 12 can be displayed.
  • the upper left corner of the interface displays “Move 3 items to”, and the user can move the 3 documents selected in (d) of FIG. 12 to the internal storage or SD card.
  • multiple folders are displayed at the bottom of the interface, namely, folder 1, folder 2, folder 3 and folder 4, and the user can select any folder for storage.
  • the GUI shown in (f) of FIG. 12 can be displayed.
  • the interface shows that three documents, document sd1a, document sd1b, and document sd1c, are stored in “My Phone>Internal Storage>Folder 2”, and these three documents are arranged in descending order of modification time. It can be seen that when a document is moved from the SD card to the internal storage of the phone, the modification time of the document changes. For example, the modification time of document sd1a stored in the SD card is 16:00 on July 22, 2022. When the user moves document 1a in the SD card to the internal storage of the device at 16:55 on July 30, 2022, the modification time of document sd1a stored in the internal storage of the phone changes to 17:00 on July 30, 2022.
  • the modification time of document sd1b changes to the system time when the mobile phone receives document sd1b, that is, 16:57 on July 30, 2022;
  • the modification time of document sd1c changes to the system time when the mobile phone receives document sd1c, that is, 16:56 on July 30, 2022.
  • Document 2a and Document 2b are documents stored in folder 2 itself, and the modification times of these two documents are 18:00 on July 20, 2022 and 16:56 on July 20, 2022, respectively.
  • the solution provided in the embodiment of the present application can ensure the consistency of the arrangement order of the multiple documents moved before and after the move, so that the user's experience perception is consistent before and after sharing multiple documents, thereby reducing the cost of retraining the user's search rate and reading habits.
  • the embodiments of the present application introduce the sorting of files before and after the user operates the files through the groups of GUIs in Figures 6 to 12. As for other possible operations of the user, they are no longer displayed in the GUI.
  • the time attribute information of the files after the operation can be referred to as shown in Table 6 above and will not be repeated.
  • FIG. 13 is a schematic diagram of a file sorting method provided in an embodiment of the present application. The method may be applied to a first electronic device, and the method may include steps S1310 to S1330.
  • S1310 Sort first target files on the first electronic device based on first attribute information, where the first target files include At least two files.
  • the first electronic device may be the mobile phone in FIG. 6 or FIG. 7 or FIG. 11 or FIG. 12 .
  • the first attribute information in the embodiment of the present application may be time information, such as the insertion time, database modification time, shooting time, file system modification time, access time, record change time, etc. mentioned below.
  • S1320 In response to a first operation of the user on the first target file, obtain a second target file, wherein the first operation includes a copy operation and/or a move operation, and the second target file includes at least two files.
  • the first operation in the embodiment of the present application includes a copy operation and/or a move operation.
  • the copy operation may also be referred to as a copy operation
  • the move operation may also be referred to as a migration operation.
  • S1330 Sort the second target files according to the arrangement order of the first target files, so that the arrangement order of the second target files is consistent with the arrangement order of the first target files.
  • the first electronic device when a user performs a first operation on a first target file including at least two files to obtain a second target file including at least two files, the first electronic device can sort the second target file according to the arrangement order of the first target file.
  • the solution provided by the embodiment of the present application can ensure that the arrangement order of the second target file is consistent with the arrangement order of the first target file before and after the first operation, so that the user's experience perception before and after operations on multiple target files remains consistent, thereby reducing the cost of retraining the user's search rate and reading habits.
  • the method further comprises:
  • the sorting of the second target files according to the arrangement order of the first target files includes:
  • the second target files are sorted according to identifiers corresponding to the arrangement order of the first target files.
  • the specific content of sorting the second target file according to the identifier corresponding to the arrangement order of the first target file can refer to the content of the above-mentioned strategy 2, which will not be repeated here.
  • a second target file including at least two files is obtained.
  • the electronic device can generate an identifier corresponding to the arrangement order of the first target file according to the arrangement order of the first target file, and sort the second target file according to the identifier corresponding to the arrangement order of the first target file. This can ensure that the arrangement order of the second target file is consistent with the arrangement order of the first target file before and after the first operation, and can make the user's experience perception consistent before and after operations on multiple target files, thereby reducing the cost of retraining the user's search rate and reading habits.
  • the files in the first electronic device include local files and non-local files
  • the display of the local files is not affected by the pluggable device being inserted into or unplugged from the first electronic device
  • the non-local files are files that are displayed on the first electronic device only when the pluggable device is inserted into the first electronic device
  • the first target file and the second target file are both the local files; or,
  • the first target file and the second target file are both the non-local files; or,
  • One of the first target file and the second target file is the non-local file, and the other is the local file.
  • the pluggable device in the embodiment of the present application may be an SD card, a USB flash drive, etc.
  • the local file can be a picture or video in the local device as shown in (e) in Figure 11
  • the non-local file can be a picture or video in the SD card as shown in (d) in Figure 11.
  • the files moved to the mobile phone are local files, as shown in the above-mentioned Figure 12.
  • the files in the SD card are non-local files, and the files in folders sd1 to sd4 in the SD card as shown in (c) in Figure 12 are all non-local files; when the user moves the files in folder sd1 (including document sd1a, document sd1b, document sd1c) to folder 2 of the internal storage of the mobile phone, as shown in (f) in Figure 12, at this time, document sd1a, document sd1b, document sd1c are local files.
  • the files in the first electronic device may include local files and non-local files
  • the first target file and the second target file may both be local files, or both may be non-local files, or one of the files may be a local file and the other may be a non-local file.
  • the second target file may be sorted according to the arrangement order of the first target file, so that the user can experience the operation before and after the operation of multiple target files. Perception remains consistent.
  • the local files are stored in a first database
  • the non-local files are stored in a second database
  • the first database and the second database are different databases
  • the first database and the second database are uniformly managed by a user file management module.
  • the local files and non-local files in the embodiments of the present application are stored in different databases, and the different data can be uniformly managed by a user file management module. Since the local files and non-local files are stored in different databases, the arrangement order of the local files on the first electronic device will not be affected before and after the pluggable device including the non-local files is inserted into the first electronic device, that is, the arrangement order of the local files on the first electronic device remains unchanged, which can reduce the user's search rate and the cost of retraining reading habits, and can also reduce the power consumption caused by repeatedly plugging and unplugging the pluggable device file system to scan it.
  • the first attribute information includes the following information: insertion time, database modification time, capture time, file system modification time, access time, record change time;
  • the first attribute information of the second target file is determined based on the first operation and according to a preset rule.
  • the preset rules in the embodiment of the present application can refer to the contents of the above Table 6 and will not be repeated here.
  • the first attribute information may include the above-mentioned time information, and the first electronic device may sort the first target file according to any of the above-mentioned time information.
  • the first attribute information of the second target file is determined based on the first operation and in accordance with a preset rule.
  • the first attribute information of the second target file can be unified.
  • the first attribute information of the second target file is determined based on the first operation and in accordance with the preset rule, which can unify the user experience.
  • the method further comprises:
  • the third target file is displayed at the top in the arrangement order of the third target file, and at least one of the at least two files included in the third target file is the second target file.
  • the content about pinning files can refer to the relevant content in Figure 6 above, and will not be repeated here.
  • the first electronic device when the user performs a second operation on a third target file including at least two files, the first electronic device can display the third target file at the top according to the arrangement order of the third target file, that is, the arrangement order of the third target file displayed after being placed on the top is consistent with the arrangement order of the third target file before being placed on the top, which can ensure the consistency of the arrangement order of the third target file before and after being placed on the top, so that the user's experience perception is consistent.
  • FIG. 14 is a schematic diagram of a file sorting method provided in an embodiment of the present application.
  • the method may be applied to a second electronic device.
  • the method may include steps S1410 to S1420.
  • obtaining a second target file wherein the second target file is a first target file in the first electronic device copied, moved or shared by the first electronic device to the second electronic device, wherein the first target file includes at least two files, and the second target file includes at least two files, and the first target file is sorted based on the first attribute information.
  • the first electronic device in the embodiment of the present application may be the device 1 in FIG. 8 , FIG. 9 , or FIG. 10
  • the second electronic device may be the device A.
  • S1420 Sort the second target files according to the arrangement order of the first target files, so that the arrangement order of the second target files is consistent with the arrangement order of the first target files.
  • the content regarding the sorting of files across devices may refer to the content of FIG. 8 , FIG. 9 , or FIG. 10 , which will not be repeated here.
  • the second electronic device after the second electronic device obtains the second target file, it can sort the second target file according to the arrangement order of the first target file.
  • the solution provided in the embodiment of the present application can ensure that the arrangement order of the second target file is consistent with the arrangement order of the first target file, so that the user's experience perception before and after operating multiple target files can be consistent, thereby reducing the cost of retraining the user's search rate and reading habits.
  • the method further comprises:
  • the sorting of the second target files according to the arrangement order of the first target files includes:
  • the second target files are sorted according to identifiers corresponding to the arrangement order of the first target files.
  • the second electronic device after obtaining the second target file, can also obtain the identifier corresponding to the arrangement order of the first target file, so that the second target file can be sorted according to the identifier corresponding to the arrangement order of the first target file.
  • the solution provided in the embodiment of the present application can ensure that the arrangement order of the second target file is consistent with the arrangement order of the first target file, so that the user's experience perception before and after operating multiple target files can remain consistent, thereby reducing the cost of retraining the user's search speed and reading habits.
  • the first attribute information includes the following information: insertion time, database modification time, capture time, file system modification time, access time, record change time;
  • the first attribute information of the second target file is determined according to a preset rule based on a copy or move operation of the first electronic device on the first target file.
  • the first attribute information may include the above-mentioned time information, and the first electronic device may sort the first target file according to any of the above-mentioned time information.
  • the first attribute information of the second target file is determined based on the copy, move or share operation and according to a preset rule.
  • the method further comprises:
  • the third target file is displayed in a top order according to the arrangement sequence of the third target file, and at least one of the at least two files included in the third target file is the second target file.
  • the second electronic device when the user performs a second operation on a third target file including at least two files, the second electronic device can display the third target file at the top according to the arrangement order of the third target file, that is, the arrangement order of the third target file displayed after being placed on the top is consistent with the arrangement order of the third target file before being placed on the top, which can ensure the consistency of the arrangement order of the third target file before and after being placed on the top, so that the user's experience perception is consistent.
  • the electronic device includes hardware and/or software modules corresponding to the execution of each function.
  • the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in combination with the embodiments, but such implementation should not be considered to be beyond the scope of the present application.
  • the electronic device can be divided into functional modules according to the above method example.
  • each functional module can be divided according to each function, or two or more functions can be integrated into one processing module.
  • the above integrated module can be implemented in the form of hardware. It should be noted that the division of modules in this embodiment is schematic and is only a logical function division. There may be other division methods in actual implementation.
  • FIG15 shows a possible composition diagram of the electronic device involved in the above embodiment.
  • the electronic device 1500 may include: a sorting module 1510 and an obtaining module 1520 .
  • the sorting module 1510 may be used to support the electronic device 1500 to execute the above steps S1310 or S1330, etc., and/or other processes for the technology described herein.
  • the obtaining module 1520 may be used to support the electronic device 1500 to execute the above-mentioned step S1320 and the like, and/or other processes of the technology described herein.
  • the obtaining module 1520 may be used to support the electronic device 1500 to execute the above step S1410 and/or other processes of the technology described herein.
  • the sorting module 1510 may be used to support the electronic device 1500 in executing the above-mentioned step S1420 and the like, and/or other processes of the technology described herein.
  • the electronic device provided in this embodiment is used to execute the method of the present application described above, and thus can achieve the same effect as the above-mentioned implementation method.
  • the electronic device may include a processing module, a storage module and a communication module.
  • the processing module can be used to control and manage the actions of the electronic device, for example, it can be used to support the electronic device to execute the steps performed by the above-mentioned various units.
  • the storage module can be used to support the electronic device to execute stored program codes and data, etc.
  • the communication module can be used to support the communication between the electronic device and other devices.
  • the processing module may be a processor or a controller. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application.
  • the processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, etc.
  • the storage module may be a memory.
  • the communication module may be a processor or a controller.
  • the block may specifically be a device that interacts with other electronic devices, such as a radio frequency circuit, a Bluetooth chip, and a Wi-Fi chip.
  • the electronic device involved in this embodiment may be a device having the structure shown in FIG. 1 .
  • Figure 16 shows another possible composition diagram of the electronic device 800 involved in the above embodiment.
  • the electronic device 800 may include a communication unit 810, an input unit 820, a processing unit 830, an output unit (or also called a display unit) 840, a peripheral interface 850, a storage unit 860, a power supply 870, a video decoder 880 and an audio decoder 890.
  • the communication unit 810 is used to establish a communication channel so that the electronic device 800 can be connected to a remote server through the communication channel and download media data from the remote server.
  • the communication unit 810 may include communication modules such as a WLAN module, a Bluetooth module, an NFC module, a baseband module, and a radio frequency (RF) circuit corresponding to the communication module, which is used to perform wireless local area network communication, Bluetooth communication, NFC communication, infrared communication and/or cellular communication system communication, such as wideband code division multiple access (W-CDMA) and/or high speed downlink packet access (HSDPA).
  • the communication module 810 is used to control the communication of each component in the electronic device and can support direct memory access.
  • the input unit 820 can be used to implement user interaction with the electronic device and/or input information into the electronic device.
  • the input unit can be a touch panel, or other human-computer interaction interfaces, such as physical input keys, microphones, etc., or other external information acquisition devices, such as cameras, etc.
  • the processing unit 830 is the control center of the electronic device, and can use various interfaces and lines to connect various parts of the entire electronic device, and execute various functions of the electronic device and/or process data by running or executing software programs and/or modules stored in the storage unit, and calling data stored in the storage unit.
  • the output unit 840 includes but is not limited to an image output unit and a sound output unit.
  • the image output unit is used to output text, pictures and/or videos.
  • the touch panel used by the above-mentioned input unit 820 can also be used as a display panel of the output unit 840 at the same time. For example, when the touch panel detects a touch or proximity gesture operation on it, it is transmitted to the processing unit to determine the type of touch event, and then the processing unit provides a corresponding visual output on the display panel according to the type of touch event.
  • the input unit 820 and the output unit 840 are used as two independent components to realize the input and output functions of the electronic device
  • the touch panel and the display panel can be integrated to realize the input and output functions of the electronic device.
  • the image output unit can display various graphical user interfaces as virtual control components, including but not limited to windows, scroll bars, icons and scrapbooks, for users to operate by touch.
  • the storage unit 860 may be used to store software programs and modules.
  • the processing unit executes various functional applications of the electronic device and realizes data processing by running the software programs and modules stored in the storage unit.
  • This embodiment further provides a computer storage medium, in which computer instructions are stored.
  • the computer instructions are executed on an electronic device, the electronic device executes the above-mentioned related method steps to implement the method in the above-mentioned embodiment.
  • This embodiment also provides a computer program product.
  • the computer program product When the computer program product is run on a computer, the computer is enabled to execute the above-mentioned related steps to implement the method in the above-mentioned embodiment.
  • an embodiment of the present application also provides a device, which may specifically be a chip, component or module, and the device may include a connected processor and memory; wherein the memory is used to store computer-executable instructions, and when the device is running, the processor may execute the computer-executable instructions stored in the memory so that the chip executes the methods in the above-mentioned method embodiments.
  • the electronic device, computer storage medium, computer program product or chip provided in this embodiment is used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above and will not be repeated here.
  • the disclosed devices and methods can be implemented in other ways.
  • the device embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed.
  • Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units are selected to achieve the purpose of the solution of this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
  • the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium.
  • the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the various embodiments of the present application.
  • the aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard drives, ROM, RAM, magnetic disks or optical disks.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Databases & Information Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • General Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • Health & Medical Sciences (AREA)
  • Data Mining & Analysis (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本申请实施例提供了一种文件排序的方法的电子设备,该方法应用于第一电子设备,该方法包括:基于第一属性信息对所述第一电子设备上的第一目标文件进行排序,所述第一目标文件包括至少两个文件;响应于用户对所述第一目标文件的第一操作,获得第二目标文件,其中,所述第一操作包括复制操作和/或移动操作,所述第二目标文件包括至少两个文件;按照所述第一目标文件的排列顺序对所述第二目标文件进行排序,以使得所述第二目标文件的排列顺序与所述第一目标文件的排列顺序一致。本申请实施例提供的方案可以保证第一操作前后,第二目标文件的排列顺序与第一目标文件的排列顺序一致,可以使得用户在对多个目标文件进行操作前后的体验感知保持一致。

Description

一种文件排序的方法和电子设备
本申请要求在2022年10月13日提交中国国家知识产权局、申请号为202211251696.6的中国专利申请的优先权,发明名称为“一种文件排序的方法和电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请实施例涉及数据管理领域,尤其涉及一种文件排序的方法和电子设备。
背景技术
随着物联网技术和软件技术的迅猛发展,智能终端设备成为新时代日常生活中不可或缺的一部分,包括智能手机、平板、个人计算机(personal computer,PC)等设备。然而,用户反馈,在对终端设备中的文件进行同目录或跨目录或跨磁盘迁移或拷贝后,迁移后的文件呈现不同的排列顺序和不同的属性信息。用户将终端设备中的文件迁移或拷贝至不同终端设备,迁移或拷贝后的文件在不同的终端设备中呈现不同的排列顺序和属性信息。
具体表现为:对于装载不同系统的设备中的文件进行相同的操作后得到的新文件的时间戳有所不同;对于不同厂家生产的装载同一系统的手机中的文件进行相同的操作后得到的新文件的时间戳也会有所不同;对于同一厂家生产的手机,将该手机中的文件通过不同的方式迁移或拷贝至同一设备,得到的新文件的时间戳也会有所不同;对于同一厂家生产的手机,从不同的云端下载同一文件,下载后的新文件的时间戳也会有所不同;等等。对于用户同一操作,当按照新文件的时间戳对新文件进行排序时,由于新文件的时间戳的不同导致新文件的排列顺序有所不同,使得用户体验感知不一致,也带来了用户查找速率和阅读习惯的重新训练成本。
发明内容
本申请实施例提供一种文件排序的方法和电子设备,当用户对多个文件进行操作后,可以保证操作前后所操作的文件的排列顺序的一致性,使得用户在对多个文件进行操作前后的体验感知保持一致,可以减少用户查找速率和阅读习惯的重新训练成本。
第一方面,提供了一种文件排序的方法,所述方法应用于第一电子设备,所述方法包括:基于第一属性信息对所述第一电子设备上的第一目标文件进行排序,所述第一目标文件包括至少两个文件;响应于用户对所述第一目标文件的第一操作,获得第二目标文件,其中,所述第一操作包括复制操作和/或移动操作,所述第二目标文件包括至少两个文件;按照所述第一目标文件的排列顺序对所述第二目标文件进行排序,以使得所述第二目标文件的排列顺序与所述第一目标文件的排列顺序一致。
本申请实施例提供的方案,当用户对包括至少两个文件的第一目标文件进行第一操作后获得包括至少两个文件的第二目标文件,第一电子设备可以根据按照第一目标文件的排列顺序对第二目标文件进行排序,与现有技术中多个文件在移动或复制前后其排列顺序会发生变化的方案相比,本申请实施例提供的方案可以保证第一操作前后,第二目标文件的排列顺序与第一目标文件的排列顺序一致,可以使得用户在对多个目标文件进行操作前后的体验感知保持一致,从而可以减少用户查找速率和阅读习惯的重新训练成本。
结合第一方面,在一些可能的实现方式中,所述方法还包括:响应于所述第一操作,按照所述第一目标文件的排列顺序生成对应于所述第一目标文件的排列顺序的标识;所述按照所述第一目标文件的排列顺序对所述第二目标文件进行排序,包括:按照对应于所述第一目标文件的排列顺序的标识对所述第二目标文件进行排序。
本申请实施例提供的方案,当用户对包括至少两个文件的第一目标文件进行第一操作后获得包括至少两个文件的第二目标文件,响应于该第一操作,电子设备可以按照第一目标文件的排列顺序生成对应于该第一目标文件的排列顺序的标识,并按照对应于该第一目标文件的排列顺序的标识对第二目标文件 进行排序,可以保证第一操作前后,第二目标文件的排列顺序与第一目标文件的排列顺序一致,可以使得用户在对多个目标文件进行操作前后的体验感知保持一致,从而可以减少用户查找速率和阅读习惯的重新训练成本。
结合第一方面,在一些可能的实现方式中,所述第一电子设备中的文件包括本地文件和非本地文件,所述本地文件的显示不受可插拔设备插入或拔出所述第一电子设备的影响,所述非本地文件为所述可插拔设备插入所述第一电子设备才在所述第一电子设备上显示的文件;所述第一目标文件和所述第二目标文件均为所述本地文件;或者,所述第一目标文件和所述第二目标文件均为所述非本地文件;或者,所述第一目标文件和所述第二目标文件中的其中一个文件为所述非本地文件,另一个文件为所述本地文件。
本申请实施例提供的方案,第一电子设备中的文件可以包括本地文件和非本地文件,第一目标文件和第二目标文件可以均为本地文件,或者,也可以均为非本地文件,或者,其中一个文件为本地文件,另一个文件为非本地文件,不管第一目标文件和第二目标文件是本地文件还是非本地文件,第二目标文件均可以按照第一目标文件的排列顺序进行排序,可以使得用户在对多个目标文件进行操作前后的体验感知保持一致。
结合第一方面,在一些可能的实现方式中,所述本地文件存储于第一数据库,所述非本地文件存储于第二数据库,所述第一数据库和所述第二数据库为不同的数据库,所述第一数据库和所述第二数据库由用户文件管理模块统一管理。
本申请实施例中的本地文件和非本地存储于不同的数据库,且该不同的数据可可以由用户文件管理模块统一进行管理,由于本地文件和非本地文件存储于不同的数据库,因此,当包括非本地文件的可插拔设备插入第一电子设备前后,本地文件在第一电子设备上的排列顺序不会受影响,即本地文件在第一电子设备上的排列顺序保持不变,可以减少用户查找速率和阅读习惯的重新训练成本,还可以降低反复插拔可插拔设备文件系统对其进行扫描带来的功耗。
结合第一方面,在一些可能的实现方式中,,所述第一属性信息包括以下信息:插入时间、数据库修改时间、拍摄时间、文件系统修改时间、访问时间、记录更改时间;所述第二目标文件的第一属性信息是基于所述第一操作,按照预设规则确定的。
本申请实施例提供的方案,第一属性信息可以包括上述时间信息,第一电子设备可以按照上述时间信息的任一信息对第一目标文件进行排序,当用户对第一目标文件进行第一操作后获得第二目标文件后,第二目标文件的第一属性信息是基于第一操作,且按照预设规则确定的。通过对第二目标文件的第一属性信息的规定,可以统一第二目标文件的第一属性信息,不管第一电子设备装载的是何种系统,第二目标文件的第一属性信息均基于第一操作且按照预设规则确定,可以统一用户体验。
结合第一方面,在一些可能的实现方式中,所述方法还包括:响应于所述用户对包括至少两个文件的第三目标文件的第二操作,按照所述第三目标文件的排列顺序将所述第三目标文件进行置顶排列显示,所述第三目标文件所包括的至少两个文件中至少有一个目标文件为所述第二目标文件。
本申请实施例提供的方案,当用户对包括至少两个文件的第三目标文件进行第二操作后,第一电子设备可以按照第三目标文件的排列顺序将第三目标文件进行置顶排列显示,即,置顶后显示的第三目标文件的排列顺序与置顶前的第三目标文件的排列顺序也是一致的,可以保证第三目标文件置顶前后的排列顺序的一致性,使得用户的体验感知一致。
第二方面,提供了一种文件排序的方法,所述方法应用于第二电子设备,所述方法包括:获得第二目标文件,所述第二目标文件是第一电子设备将所述第一电子设备中的第一目标文件复制或移动或分享至第二电子设备中的,所述第一目标文件包括至少两个文件,所述第二目标文件包括至少两个文件,所述第一目标文件是基于第一属性信息排序的;按照所述第一目标文件的排列顺序对所述第二目标文件进行排序,以使得所述第二目标文件的排列顺序与所述第一目标文件的排列顺序一致。
本申请实施例提供的方案,第二电子设备在获得第二目标文件后,可以根据按照第一目标文件的排列顺序对第二目标文件进行排序,与现有技术中多个文件在移动或复制或分享前后其排列顺序会发生变化的方案相比,本申请实施例提供的方案可以保证第二目标文件的排列顺序与第一目标文件的排列顺序一致,可以使得用户在对多个目标文件进行操作前后的体验感知保持一致,从而可以减少用户查找速率和阅读习惯的重新训练成本。
结合第二方面,在一些可能的实现方式中,所述方法还包括:获得对应于所述第一目标文件的排列顺序的标识;所述按照所述第一目标文件的排列顺序对所述第二目标文件进行排序,包括:按照对应于 所述第一目标文件的排列顺序的标识对所述第二目标文件进行排序。
本申请实施例提供的方案,第二电子设备在获得第二目标文件后,还可以获得对应于第一目标文件的排列顺序的标识,从而可以根据按照对应于第一目标文件的排列顺序的标识对第二目标文件进行排序,与现有技术中多个文件在移动或复制或分享前后其排列顺序会发生变化的方案相比,本申请实施例提供的方案可以保证第二目标文件的排列顺序与第一目标文件的排列顺序一致,可以使得用户在对多个目标文件进行操作前后的体验感知保持一致,从而可以减少用户查找速率和阅读习惯的重新训练成本。
结合第二方面,在一些可能的实现方式中,所述第一属性信息包括以下信息:插入时间、数据库修改时间、拍摄时间、文件系统修改时间、访问时间、记录更改时间;所述第二目标文件的第一属性信息是基于所述第一电子设备对所述第一目标文件的复制或移动操作,按照预设规则确定的。
本申请实施例提供的方案,第一属性信息可以包括上述时间信息,第一电子设备可以按照上述时间信息的任一信息对第一目标文件进行排序,当第二电子设备获得第二目标文件后,第二目标文件的第一属性信息是基于复制或移动或分享操作,且按照预设规则确定的。通过对第二目标文件的第一属性信息的规定,可以统一第二目标文件的第一属性信息,可以统一用户体验。
结合第二方面,在一些可能的实现方式中,所述方法还包括:响应于用户对包括至少两个文件的第三目标文件的第二操作,按照所述第三目标文件的排列顺序将所述第三目标文件进行置顶排序显示,所述第三目标文件所包括的至少两个文件中至少有一个目标文件为所述第二目标文件。
本申请实施例提供的方案,当用户对包括至少两个文件的第三目标文件进行第二操作后,第二电子设备可以按照第三目标文件的排列顺序将第三目标文件进行置顶排列显示,即,置顶后显示的第三目标文件的排列顺序与置顶前的第三目标文件的排列顺序也是一致的,可以保证第三目标文件置顶前后的排列顺序的一致性,使得用户的体验感知一致。
第三方面,提供了一种装置,该装置包含在电子设备中,该装置具有实现上述方面及上述方面的可能实现方式中电子设备行为的功能。功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。硬件或软件包括一个或多个与上述功能相对应的模块或单元。
第四方面,提供了一种电子设备,包括:一个或多个处理器;存储器;一个或者多个应用程序;以及一个或多个计算机程序。其中,一个或多个计算机程序被存储在存储器中,一个或多个计算机程序包括指令。当指令被电子设备执行时,使得电子设备执行上述第一方面或第二方面任一项可能的实现中的方法。
第五方面,提供了一种芯片系统,包括至少一个处理器,当程序指令在所述至少一个处理器中执行时,使得上述第一方面或第二方面任一项可能的实现中的方法在所述电子设备上的功能得以实现。
第六方面,提供了一种计算机存储介质,包括计算机指令,当计算机指令在电子设备上运行时,使得电子设备执行上述第一方面或第二方面任一项可能的实现中的方法。
第七方面,提供了一种计算机程序产品,当计算机程序产品在电子设备上运行时,使得电子设备执行上述第一方面或第二方面任一项可能的设计中的方法。
附图说明
图1是为本申请实施例提供的一种电子设备的硬件结构示意图。
图2为本申请实施例提供的一种电子设备的软件结构示意图。
图3为本申请实施例提供的一种数据管理的示意图。
图4为本申请实施例提供的另一种数据管理的示意图。
图5为本申请提供的一种文件系统存储数据的示意图。
图6为本申请实施例提供的一组GUI的示意图。
图7为本申请实施例提供的另一组GUI的示意图。
图8为本申请实施例提供的又一组GUI的示意图。
图9为本申请实施例提供的再一组GUI的示意图。
图10为本申请实施例提供的再一组GUI的示意图。
图11为本申请实施例提供的再一组GUI的示意图。
图12为本申请实施例提供的再一组GUI的示意图。
图13为本申请实施例提供的一种文件排序的方法的示意图。
图14为本申请实施例提供的另一种文件排序的方法的示意图,
图15为本申请实施例提供的一种电子设备的示意性框图。
图16为本申请实施例提供的另一种电子设备的示意性框图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。其中,在本申请实施例的描述中,除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;本文中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,在本申请实施例的描述中,“多个”是指两个或多于两个。
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。
本申请提供的方案可以应用于手机、平板电脑、个人计算机(personal computer,PC)、可穿戴设备、车载设备、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、个人数字助理(personal digital assistant,PDA)等电子设备上,本申请实施例对电子设备的具体类型不作任何限制。
示例性的,图1示出了电子设备100的结构示意图。电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。
可以理解的是,本申请实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
其中,控制器可以是电子设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。I2S接口可以用于音频通信。PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行 通信与并行通信之间转换。MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。
可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194用于显示图像,视频等。显示屏194包括显示面板。
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。
ISP用于处理摄像头193反馈的数据。摄像头193用于捕获静态图像或视频。视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行电子设备100的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。电子设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,电子设备100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备100中,不能和电子设备100分离。
电子设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本申请实施例以分层架构的Android系统为例,示例性说明电子设备100的软件结构。
图2是本申请实施例的电子设备100的软件结构框图。分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。应用程序层可以包括一系列应用程序包。
如图2所示,应用程序包可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等应用程序。
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。
如图2所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。
安卓运行(android runtime)包括核心库和虚拟机。安卓运行负责安卓系统的调度和管理。
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。
系统库可以包括多个功能模块。例如:表面管理器(surface manager),三维图形处理库,二维图形引擎等。
为了便于理解,下文将结合表格介绍与本申请相关的背景技术。
随着物联网技术和软件技术的迅猛发展,智能终端设备成为新时代日常生活中不可或缺的一部分,包括智能手机、平板、PC等设备。然而,用户反馈,在对终端设备中的文件进行同目录或跨目录或跨磁盘迁移或拷贝后,迁移后的文件呈现不同的排列顺序和不同的属性信息。用户将终端设备中的文件迁移或拷贝至不同终端设备,迁移或拷贝后的文件在不同的终端设备中呈现不同的排列顺序和属性信息。
下文将具体介绍装载不同系统的设备迁移或拷贝文件前后的文件的属性信息的变化情况。
1、安卓系统
对于装载安卓系统的设备,不同厂家生产的设备对设备中的文件进行同目录或跨目录或跨磁盘或跨设备迁移或拷贝文件后,获得的新文件的属性信息并不相同。
示例性地,以属性信息是时间戳为例,若对文件进行同目录拷贝,小米文件管理器和ES文件管理器不能做到,华为文件管理器会新增一个文件,并将当前系统时间作为属性值赋予该新增的文件。此外,华为的文件管理器、图库等应用中的文件,在进行跨目录复制或跨磁盘或跨设备等场景下不继承时间戳,即不会继承文件迁移前的时间信息;而ES文件管理器则调用了相关设置接口继承时间戳,即继承文件迁移前的时间信息。
用户通过不同厂家生产的设备对相同文件进行迁移或拷贝后,迁移后的文件在不同的目录或不同的设备中的时间信息并不相同,当设备按照时间信息对迁移后的文件进行排序时,迁移后的文件在不同的目录或不同的设备中显示不同的排列顺序,导致用户体验不一致。安卓系统并不具有对其进行统一的能力,而是由各应用单点单项解决,且无统一规范。而且,安卓系统在设计之初也并未做与用户体验相关的考量,用户习惯于通过不同应用(application,APP)迁移或拷贝文件,体验较为割裂。
此外,由于安卓系统的开放性以及安卓系统缺乏统一规则引导和示范,当跨设备迁移文件后,文件的数据及元数据信息可能会有变化。例如,当装载安卓系统的手机上的文件迁移到PC后,迁移后的文件在同一平台上的不同应用的时间戳(此处的时间戳包括文件的创建时间、修改时间、访问时间、记录更改时间等)也不同。例如,以Windows平台为例,当装载安卓系统的手机上的SAMBA的文件迁移到Windows PC后,迁移后的文件的时间戳全部保留,即存储于Windows PC中的文件的时间与存储于手机中的文件的时间一致,如存储于Windows PC中的文件的创建时间与存储于手机中的文件的创建时间一致,存储于Windows PC中的文件的修改时间与存储于手机中的文件的修改时间一致;当装载安卓系统的手机上的或QQ的文件迁移到Windows PC后,迁移后的文件的时间戳重置为Windows PC上的当前时间,即存储于Windows PC中的文件的创建时间、修改时间、访问时间、记录更改时间等等全部重置为Windows PC上的当前系统时间。由于迁移后的文件在同一平台上的不同应用的时间戳不同,当设备上的不同应用按照时间信息对迁移后的文件进行排序时,迁移至不同应用的文件会显示不同的排序,造成用户体验感知不一致,也带来了用户查找速率和阅读习惯的重新训练成本。
2、Windows系统
对于Windows PC,用户习惯于通过资源管理器迁移或拷贝文件,体验较为一致;且Windows系统默认文件在迁移和拷贝时继承属性信息,如文件大小、文件名称、文件类型、文件的创建时间、修改时间、访问时间等等。
虽然Windows系统尽可能做到文件在迁移或拷贝时保持有序,但是并未做到完全保持一致的顺序。 例如,手机和Windows PC互传文件,大部分厂家生产的手机的助手软件会更新文件的创建时间,一部分厂家生产的手机的助手软件会更新文件的修改时间,一部分厂家生产的手机的助手软件不会更新文件的修改时间,这与Windows系统默认的迁移或拷贝文件时继承创建时间和修改时间的行为不一致。
3、装载iOS系统的设备(下文简称为iOS设备)
对于iOS设备,用户很少使用迁移或拷贝文件这一功能,文件迁移大多靠云(icloud)或官方迁移工具进行迁移,而且文件迁移只支持全盘迁移,且iOS系统默认文件在迁移和拷贝时继承属性信息,如文件大小、文件名称、文件类型、文件的创建时间、修改时间等等。
虽然iOS系统尽可能做到文件在迁移时保持有序,然而由于iOS设备上的文件只支持全盘迁移,不支持对于部分文件的迁移,实际上是直接裁剪了乱序这一可能的场景以规避该问题发生,带来了很多用户体验的不便利。
对于手机的内卡和外卡(如SD卡、U盘等)互传文件,不同厂家生产的手机对于文件的修改时间的处理也会不同。例如,安卓系统自带的文件管理器,不同厂家生产的手机的内卡与外卡传输文件,迁移或拷贝后的文件的修改时间均会被更新;iOS系统自带的文件管理器,手机的内卡与外卡传输文件,迁移或拷贝后的文件的修改时间不会被更新;ES文件浏览器在装载安卓系统和iOS系统的设备,不同厂家的生产的手机的内卡与外卡传输文件,迁移或拷贝后的文件的修改时间均不会被更新。
此外,不同厂家生产的手机从云端下载后文件的修改时间也会有所不同,例如,有的厂家生产的手机从官方云服务下载的文件的修改时间不变;有的厂家生产的手机,不管是从其官方云服务下载的还是从百度网盘下载的文件或文件夹,新文件的修改时间均会被更新。
此外,跨系统复制文件后,新文件的属性信息也会有所不同。例如,某一厂家生产的手机的文件管理器或图库中的文件,复制到SD卡后的新文件的时间戳(包括新文件的创建时间和修改时间)更新为当前的系统时间;ES文件管理器中的文件,复制到SD卡后的新文件的创建时间与旧文件的创建时间保持一致,而新文件的修改时间更新为当前的系统时间。
还有,不同厂家的生产的手机在对同目录下文件重命名后,新文件的属性信息也会有所不同。例如,对装载安卓系统的手机中的文件进行重命名后,重命名后的文件的创建时间不变,重命名后的修改时间更新为当前的系统时间。而对装载iOS系统的手机中的文件进行重命名后,重命名后的文件的修改时间不变,而重命名后的创建时间更新为当前的系统时间。Windows系统中的文件进行重命名后,重命名后的文件的创建时间和修改时间均不变。
还有,不同系统PC内部不同盘之间拷贝文件后,新文件的属性信息也会有所不同。例如,将Windows PC中的文件拷贝至U盘,存储于U盘中的文件的创建时间更新为当前系统时间,存储于U盘中的文件的修改时间不变;将Mac os x PC中的文件拷贝至U盘,存储于U盘中的文件的创建时间和修改时间均不变;将Ubuntu PC中的文件拷贝至U盘,存储于U盘中的文件的创建时间更新为当前系统时间,存储于U盘中的文件的修改时间不变。
综上所述,可以看出,对于装载不同系统的设备中的文件进行相同的操作后得到的新文件的时间戳有所不同;对于不同厂家生产的装载同一系统的手机中的文件进行相同的操作后得到的新文件的时间戳也会有所不同;对于同一厂家生产的手机,将该手机中的文件通过不同的方式迁移或拷贝至同一设备,得到的新文件的时间戳也会有所不同;对于同一厂家生产的手机,从不同的云端下载同一文件,下载后的新文件的时间戳也会有所不同;等等。对于用户同一操作,当按照新文件的时间戳对新文件进行排序时,由于新文件的时间戳的不同导致新文件的排列顺序有所不同,使得用户体验感知不一致,也带来了用户查找速率和阅读习惯的重新训练成本。
因此,本申请提供一种文件排序的方法,可以统一文件的排列顺序,使得用户体验感知一致,减少用户查找速率和阅读习惯的重新训练成本。
本申请提供的方案可以应用于以下多种场景:
场景1、对本机文件内的操作
例如,对本机内的文件进行同目录复制/迁移、对本机内的文件进行跨目录复制/迁移、对本机内的文件进行重命名等。
场景2、双端设备无线操作
例如,华为应用-手机中的文件进行克隆、备份、华为分享
原生分享业务-手机中的文件通过蓝牙传输、Wi-Fi传输、跨网络套接字(socket)传输、公网传输等
手机中的文件共享至电脑、网络邻居、分布式文件系统
场景3、双端设备有线操作
例如,手机与PC连接,PC中的文件拷贝到手机或手机中的文件拷贝至PC
手机中的内卡数据复制至SD卡或U盘中
场景4、本机和云端数据迁移或备份
例如,手机从远端下载的文件,如手机从百度云或迅雷下载的文件
手机中的文件备份到其他设备,如手机中的文件备份到家庭存储中心/8+N/无媒体库的系统
为了便于理解,下文先介绍不同系统中的不同应用所采用的排序规则,具体请参见表1所示。
表1
从表1可以看出,对于不同系统中的不同应用的子界面所采用的排序规则不同,如对于装载安卓系统的设备,图库的照片/宫格这一子界面中的照片是按照拍摄时间排序的;图库的相册的“相机”这一子界面中的照片有多个排序规则,如可以按照拍摄时间排序,也可以按照创建时间排序,还可以按照文件名称排序,还可以按照文件大小排序;图库的相册的“所有照片”这一子界面中的照片也有多个排序规则,如拍摄时间,创建时间,文件名称,文件大小。其它不再一一列举,具体请参考表1所示出的内容。
值得注意的是,不同系统中的不同应用的子界面可以采用多种排序规则,具体采用哪种规则可以由开发该应用的开发者决定,由于不同应用的开发者不同,因此,所设定的排序规则也就不统一。然而,虽然不同系统中的不同应用的子界面采用的排序规则有多种,但是不同系统中的应用或同一应用的不同界面几乎都有按照时间信息排序这一规则,只是按照时间信息排序时的具体时间不同,如有的按照插入时间排序,有的按照修改时间排序,有的按照拍摄时间排序等,具体可以参考上述表1中所有加黑字体的文字,下文将以时间属性为例介绍本申请的具体内容。
本申请实施例提供了一种文件排序的方法,当用户对多个文件进行操作后,可以保证操作前后所操作的文件的排列顺序的一致性,使得用户在对多个文件进行操作前后的体验感知保持一致,可以减少用户查找速率和阅读习惯的重新训练成本。
为了实现上述效果,本申请实施例实行以下策略:
策略一、统一文件的来源
如图3所示,为本申请实施例提供的一种数据管理的示意图。其中,图3中线条上未标注“×”的表示相应应用的公共数据通过用户文件管理模块进行管理和维护,所有线条上标注有“×”的表示相应应用的公共数据不通过用户文件管理模块进行管理和维护。参考图3,用户文件管理模块可以对所有应用的公共数据进行管理和维护,并提供应用访问数据的入口,同时文件管理模块可以将所管理和维护的公共数据存储于文件系统中,该文件系统可以不仅可以存储本机应用所产生的公共数据,也可以存储其它设备(如 SD卡)的公共数据,只不过本机数据和其它设备的数据可以分开存储。
以应用1为例,应用1所产生的公共数据可以由用户文件管理模块统一进行管理和维护,同时文件管理模块可以将应用1的公共数据存储于文件系统中。而应用1数据库不再存储和维护应用1所产生的公共数据,以及文件系统也不再存储和维护来源于应用1数据库中的公共数据。
本申请中的公共数据可以包括媒体文件的公共数据和/或非媒体文件的公共数据,其中,媒体文件可以包括图片、视频、音频等;非媒体文件可以包括后缀为.doc、.pdf、.txt的文件等。
如图4所示,为本申请实施例提供的另一种数据管理的示意图。从图4中可以看出,用户文件管理模块中包括多个数据:本地元数据、云元数据、跨设备元数据。其中,该用户文件管理模块中的数据可以通过文件访问框架(file access framework,FAF)汇聚其中,并由用户文件管理模块进行统一管理和维护。
在某应用获取到访问数据权限的情况下,当该应用访问数据时,用户文件管理模块可以向该应用提供相应的访问入口。例如,在淘宝○R获取到访问图片权限的情况下,当用户通过淘宝○R查看图片时,淘宝○R可以通过用户文件管理模块提供的统一应用编程接口(application program interface,API)获取图片,并将获取到的图片呈现给用户。
如图5所示,为本申请提供的一种文件系统存储数据的示意图。可以看出,文件系统一般以目录树的方式存储数据,然而这种存储数据的方式并不利于数据的查找和搜索。因此,文件系统中的数据可以按照表格关联方式进行存储,如表2所示。
表2
从表2中可以看出,文件系统可以按照表格关联方式存储数据,当用户访问某一文件时,文件系统可以通过文件类型、文件大小等缩小查找范围,从缩小的查找范围中可以较快查找到用户待访问的文件,从而可以提高查找效率,提升用户体验。
策略二、跨端文件迁移:媒体库时间信息迁移和信息融合,同步保障有序
在用户将某一设备(如设备1)的文件迁移至另一设备(如设备A)的过程中,可以对迁移文件加以标识,设备A可以按照特定时间信息将所迁移的文件与设备A上的文件进行融合,同时根据标识保证迁移文件在设备A上的排序与在设备1上的排序保持一致;或者,在文件迁移的过程中,可以将文件的时间信息同步迁移,并将迁移后的文件按照特定时间信息与设备A上的文件进行融合,同时保证迁移文件在设备A上的排序与在设备1上的排序保持一致。
下文结合表3~表5说明跨端文件迁移的一致性。其中,表3为设备1上的文件的时间属性,且文件按照插入时间降序排列;表4为文件从设备1迁移至设备A之前,设备A上的文件的时间属性,且文件按照插入时间降序排列;表5为文件从设备1迁移至设备A之后,设备A上的文件的时间属性,且文件按照插入时间降序排列。
表3
表4
表5
从表3~表5中可以看出,当用户将设备1中的文件迁移至设备A中后,迁移后的新文件在设备A中所显示的插入时间变更为系统的当前时间,修改时间和拍摄时间均保持不变。
示例性地,文件1在设备1中的插入时间为2022/7/24 17:00,修改时间为2022/7/25 12:00,拍摄时间为2022/7/24 17:00;当在2022年7月30日9:00时,用户将文件1迁移至设备A后,文件1在设备A中所显示的插入时间变更为2022/7/30 9:00,而修改时间与在设备1中所显示的修改时间保持一致,拍摄时间与在设备1中所显示的拍摄时间保持一致,即为2022/7/24 17:00。
此外,结合表3和表5,可以看出,文件1、文件2、文件3和文件4这四个文件在设备1中的排列顺序依次为文件1、文件2、文件3、文件4,且这四个文件在设备A中的排列顺序也依次为文件1、文件2、文件3、文件4,即,文件迁移前后所迁移的文件的排列顺序保持一致。
示例性地,假设文件1、文件2、文件3这三个文件的大小均为几十kb,而文件4的大小为10Mb,在用户将这四个文件迁移至设备A的过程中,文件1、文件2、文件3这三个文件可能很快会迁移至设备A中,而文件4需要较长的时间才能迁移至设备A中,如表5中所示出的,文件1、文件2、文件3这三个文件的插入时间为2022/7/30 9:00,而文件4的插入时间为2022/7/30 9:03,即文件4比其它三个文件晚了3分钟才迁移到设备A中。若按照插入时间降序排列,则所迁移的文件在设备A中显示的排列顺序应为文件4、文件1、文件2、文件3,但是本申请实施例提供的方案可以保证文件迁移前后所迁移的文件的排列顺序保持一致,具体可以通过以下方式实现。
(1)、对所迁移的文件进行保序
具体保序过程中,可以按照迁移前的顺序对所迁移的文件进行标识,仍然以上述示例为例,迁移前的4个文件在设备1中的排列顺序为文件1、文件2、文件3、文件4,迁移时可以按照顺序对这4个文件进行标识,如,在文件1的头部信息增加标识“1”,在文件2的头部信息增加标识“2”,在文件3的头部信息增加标识“3”,在文件4的头部信息增加标识“4”,这样,当这4个文件迁移至设备A中时,即使这4个文件的修改时间发生了较大的变化,设备A仍然可以按照文件的头部信息将其排序为文件1、文件2、文件3、文件4,从而可以保持与其在设备1中的排序一致,可以使得文件迁移前后用户体验感知保持一致,减少用户查找速率和阅读习惯的重新训练成本。
(2)、重读文件的属性信息
当用户将文件1、文件2、文件3以及文件4这四个文件从设备1迁移至设备A时,设备A首先可以读取这四个文件的文件内容,然后可以读取这四个文件的属性信息,并根据重读的文件的属性信息在设备A中对这四个文件进行排序。
例如,当用户将上述四个文件从设备1迁移至设备A中时,设备A读取了这四个文件的文件内容后,文件1、文件2、文件3这三个文件在设备A中显示的插入时间为2022/7/30 9:00,而文件4的插入时间为2022/7/30 9:03。设备A可以再次读取这四个文件的属性信息,如可以读取到文件1、文件2、文件3以及文件4这四个文件在设备1中所显示的插入时间分别为:2022/7/24 17:00、2022/7/24 16:00、 2022/7/24 12:00、2022/7/24 7:00,此时,设备A可以根据从设备1中读取的这四个文件的插入时间对这四个文件进行降序排序,排序结果仍然为文件1、文件2、文件3、文件4。
(3)通过特定接口读取文件的文件内容和属性信息
当用户将文件1、文件2、文件3以及文件4这四个文件从设备1迁移至设备A时,设备A可以通过特定的接口统一读取这四个文件的文件内容及其属性信息,所读取的文件的属性信息在设备A中对这四个文件进行排序。
例如,当用户将上述四个文件从设备1迁移至设备A中时,设备A可以通过特定接口读取这四个文件的文件内容和属性信息,虽然文件1、文件2、文件3这三个文件在设备A中显示的插入时间为2022/7/30 9:00,文件4的插入时间为2022/7/30 9:03。但是设备A对这四个文件进行排序时所参考的规则不是所显示的插入时间,而是通过该特定接口读取的这四个文件在设备1中所显示的插入时间,依次分别为:2022/7/24 17:00、2022/7/24 16:00、2022/7/24 12:00、2022/7/24 7:00,此时,设备A可以根据从设备1中读取的这四个文件的插入时间对这四个文件进行降序排序,排序结果仍然为文件1、文件2、文件3、文件4。
在一些可能的实现方式中,设备1上的文件也可以按照其它属性信息排序,如文件大小,当用户将设备1中的多个文件迁移至设备A时,设备A仍然可以上述类似的方法保证所迁移的文件在设备A上的排序与在设备1上的排序保持一致。
策略三、跨文件系统时间信息迁移:跨文件系统所迁移的文件不做融合视图显示
本申请中的跨文件系统迁移文件可以理解为:文件从一个系统迁移至另一个系统,如手机中的文件迁移至SD卡,U盘,Windows PC等;或者SD卡,U盘,Windows PC等中的文件迁移至手机中。
以SD卡中的文件迁移至手机中为例,目前SD卡插入手机,会触发手机中的文件系统扫描SD卡并将扫描到的文件与手机中文件系统的文件融合显示,然而文件系统每次扫描SD卡后的文件的插入时间、修改时间等信息均会更新为当前系统时间,导致用户界面的混乱,对于用户来说,每次查看的文件的顺序不一致,降低用户体验;而且反复插拔SD卡均会触发文件系统重新扫描SD卡,功耗较高。
本申请实施例中,对于跨文件系统所迁移的这类文件,可以不将这类文件与即将迁入的目的设备中的本地文件进行融合,而是将这类文件进行单独存储。例如,当手机检测到有SD卡插入时,触发手机中的文件系统扫描SD卡,扫描完成后,不再将扫描到的文件与手机库中文件系统的本地文件进行融合,而是单独设置一个数据库,用于存储从SD卡中扫描到的文件,且用于存储从SD卡中扫描到的文件的数据库可以由用户文件管理模块来管理。换句话说,手机中可以设置两个数据库,一个是用于存储本机数据的数据库,另一个是用于存储其它可插拔设备数据的数据库,但是这两个数据库可由用户文件管理模块统一进行管理。
如下文中图11中所示的,若用户将SD卡插入该手机,当用户再次打开该手机的图库时,显示如图11中的(d)所示的GUI,界面显示本地和其它设备,表示本机中的照片和其它设备(如SD卡)中的照片分开存储。
此外,当用户将SD卡中的文件迁移至手机内部存储中时,迁移后的新文件的时间属性信息可以参照下文表6中跨文件系统迁移的内容。
示例性地,如下文图12中所示出的,当用户将SD卡中的文档sd1a、文档sd1b、文档sd1c这三个文档迁移至手机内部存储时,可以将这三个文档迁移至内部存储的任一文件夹中,当用户选择迁移至文件夹2中时,界面显示如图12中的(f)所示的GUI,可以看出,所迁移的文档的修改时间均更新为当前系统时间,且所迁移的文档在迁移前后文档的排列顺序保持不变。
策略四、文件迁移的时间规则定义
一份文件可以包括多个时间属性,时间属性可以用于描述文件的创建、访问和修改历程,一个文件的时间属性可以包括插入时间、数据库修改时间、拍摄时间、文件系统修改时间、访问时间以及记录更改时间中的一个或多个。下文将依次介绍下上述各类型时间属性的定义。
插入时间(data_added time):反映一个文件的移动情况,具体指一个文件插入到目录的时间(refers to when the document was added to the directory)
数据库修改时间(data_modified time):最近一次修改文件内容的时间(the last time the file was modified)
拍摄时间(data_taken time):图片或视频拍摄的时间,可以通过图片或视频的内容头部可交换图像文 件格式(exchangeable image file format,EXIF)解析
文件系统修改时间:反映文件系统中的文件的变化情况
访问时间(access time):最近一次访问文件的时间(the last time the file was read)
记录更改时间(record change time):最近一次修改文件内容或文件的元数据属性的时间(the last time the file or the meta data of the file was changed)
应理解,一个文件可以包括上述所列举的时间属性的部分时间属性或全部时间属性,例如,文档和音频没有拍摄时间。
本申请实施例中,用户在对文件进行操作的过程中,文件的时间属性也可能会有不同的变化。其中,对文件的操作可以包括本端操作和非本端操作,本端操作可以包括文件创建、文件修改、文件访问、本端文件拷贝、本端文件迁移、私有目录向公有目录迁移;非本端操作可以包括跨端操作、跨设备操作、跨文件系统操作。表6列出了对文件进行不同的操作,文件的时间属性的变化情况。需要说明的是,表6中的“new/current”表示对文件操作后的文件的时间设置为新的当前系统时间,“change to current”表示对文件操作后的文件的时间更改为当前系统时间,“no change”表示对文件操作后的文件的时间不变。
表6
本端操作:
1)、文件创建:在本端内新建一个文件,该文件的时间属性均是新的当前系统时间,包括文件的创建时间、数据库修改时间、拍摄时间(该时间属性是针对图片或视频的)、文件系统修改时间、访问时间、记录更改时间。
2)、文件修改:对本端内的文件进行修改,修改后的文件的插入时间和拍摄时间保持不变,而数据库修改时间、文件系统修改时间、访问时间、记录更改时间均更改为当前系统时间。
3)、文件访问:对本端内的文件进行访问,访问后该文件的创建时间、数据库修改时间、拍摄时间、文件系统修改时间、记录更改时间保持不变,访问时间更改为当前系统时间。
4)、文件拷贝:在本端内将文件从一个文件夹拷贝到另一个文件夹,拷贝后的文件的创建时间设置为新的当前系统时间,数据库修改时间、拍摄时间、文件系统修改时间保持不变,访问时间和记录更改时间更改为当前系统时间。
以装载安卓系统的手机为例,如下文图7中所示出的,用户手机中文件夹1中的文档1a、文档1b、文档1c复制到该手机的文件夹4中,存储在文件夹4中的文档1a、文档1b、文档1c的修改时间与存储在文件夹1中的文档1a、文档1b、文档1c的修改时间一致。换句话说,文档1a、文档1b、文档1c从文件夹1中复制到文件夹4中,这3个文档的修改时间未发生变化(参考上述表1,装载安卓系统的手机,其文件管理器中我的手机中的文档按照修改时间排序)。
5)、文件迁移:在本端内将文件从一个文件夹迁移到另一个文件夹,迁移后的文件的创建时间、数据库修改时间、拍摄时间、文件系统修改时间保持不变,访问时间和记录更改时间更改为当前系统时间。
以装载安卓系统的手机为例,如下文图6中所示出的,用户将手机中的图片这一相册中的图片C1、图片C2、图片C3、图片C4这四张图片移动至我的收藏这一相册中,迁移后的图片的创建时间仍然为7月5日(参考上述表1,装载安卓系统的手机,其图库中相册的所有照片可以按照拍摄时间排序)。
6)、私有向公有目录迁移:在本端内将文件从私有向公有目录迁移,迁移后的文件的创建时间、数据库修改时间设置为新的当前系统时间,拍摄时间、文件系统修改时间保持不变,访问时间和记录更改时间更改为当前系统时间。
非本端操作:
1)、跨文件系统迁移文件:用户将某一系统的文件迁移至另一系统,迁移后的文件的创建时间、数据库修改时间设置为新的当前系统时间,拍摄时间、文件系统修改时间保持不变,访问时间和记录更改时间更改为当前系统时间。
如下文图12中所示出的,用户将存储在SD卡中的文件夹sd1中的文档sd1a、文档sd1b、文档sd1移动到手机内部存储的文件夹中,存储在手机内部存储中某一文件夹中的文档sd1a、文档sd1b、文档sd1c的修改时间为当前系统时间。换句话说,文档sd1a、文档sd1b、文档sd1c从SD卡中复制到手机中的文件夹中,这3个文档的修改时间均发生变化(参考上述表1,装载安卓系统的手机,其文件管理器中我的手机中的文档按照修改时间排序)。
2)、远端迁移文件:用户将某一设备中的文件通过无线传输至另一设备,迁移后的文件的创建时间设置为新的当前系统时间,数据库修改时间、拍摄时间、文件系统修改时间保持不变,访问时间和记录更改时间更改为当前系统时间。
如下文图10中所示出的,用户通过华为云分享将设备1中的文档1a、文档1b、文档1c分享至设备A,存储在设备A中的文档1a、文档1b、文档1c的修改时间与存储在设备1中的文档1a、文档1b、文档1c的修改时间一致。换句话说,设备1中的文档1a、文档1b、文档1c这三个文档被分享到设备A中,这三个文档的修改时间未发生变化。
3)、从远端下载文件:用户从远端下载文件,例如,用户从华为云、百度云下载文件,所下载的文件的创建时间、数据库修改时间设置为新的当前系统时间,拍摄时间、文件系统修改时间保持不变,访问时间和记录更改时间更改为当前系统时间。
此外,本申请实施例还提供了一种置顶方式,开发者还可以在用户文件管理模块中设置一个置顶的字段或标识符,对一些重要的或者常用的文件进行标记。当用户对多个文件进行置顶时,所置顶的多个文件仍然可以按照这多个文件在某一应用中所遵循的顺序规则进行排序。
如下文图6中所示出的,图库应用中我的收藏这一相册中图片按照拍摄时间降序排列,排列后的顺序为Y1、Y2、C1、C2、C3、C4、Y3、Y4、Y5、Y6,参见图6中的(e)所示的GUI;若用户将C1、Y3、Y5这三张图片进行置顶,所置顶的这三张图片仍然按照拍摄时间降序排列,排列后的顺序为将C1、Y3、Y5,参见图6中的(i)所示的GUI。
综上所述,本申请实施例提供了多个策略,其最终目的均是为了保证操作前后多个文件的排列顺序的一致性,使得用户在对多个文件进行操作前后的体验感知保持一致,可以减少用户查找速率和阅读习惯的重新训练成本。
下文将以具有图1和图2所示结构的装载有安卓系统的电子设备为例,基于上述策略,结合附图和应用场景,对本申请实施例提供的文件排序的方法进行具体阐述。
图6示出了手机的一组图形用户界面(graphical user interface,GUI),其中,从图6中的(a)到图6 中的(l)示出了用户将手机中的图库中的某一个相册的图片移动至另一个相册后图片的排序情况。
参见图6中的(a)所示的GUI,该GUI为手机的桌面。当手机检测到用户点击桌面上的图库的图标301的操作后,可以启动该图库,显示如图6中的(b)所示的GUI。
参见图6中的(b)所示的GUI,界面显示不同的相册,包括:全部照片、图片、视频、截屏录屏等。当手机检测到用户点击图片的图标302的操作后,可以显示如图6中的(c)所示的GUI。
参见图6中的(c)所示的GUI,界面显示“图片”这一相册内的图片,且该相册内的图片按照拍摄时间顺序排列。如界面显示的:今天的图片包括图片A1和图片A2;昨天的图片包括图片B1、图片B2、图片B3以及图片B4;7月5日的图片包括图片C1、图片C2、图片C3、图片C4、以及图片C5等等。假设用户选择了图片C1、图片C2、图片C3以及图片C4,则图片C1、图片C2、图片C3以及图片C4的右下角出现图标○√,同时界面下方弹出一个条形框,该条形框中包括:移动、复制、发送、更多这些功能按钮,用户可以从中选择一个功能按钮。当手机检测到用户点击移动这一功能按钮303的操作后,可以显示如图6中的(d)所示的GUI。
参见图6中的(d)所示的GUI,界面下方显示一个条形框,该条形框的最上方包括“移动至”这行文字,该条形框中还包括多个相册:新建相册、截屏录屏、我的收藏、微博○R、下载、微信○R等等。用户可以将在图6中的(c)中所选择的图片移动至任一相册。当手机检测到用户点击我的收藏这一相册的图标304的操作后,可以显示如图6中的(e)所示的GUI。
参见图6中的(e)所示的GUI,界面显示我的收藏这一相册内的图片,包括10张图片,分别为图片Y1、图片Y2、图片Y3、图片Y4、图片Y5、图片Y6、图片C1、图片C2、图片C3以及图片C4,且图片Y1、图片Y2、图片Y3、图片Y4、图片Y5、图片Y6这6张图片为我的收藏这一相册内在移动图片C1、图片C2、图片C3以及图片C4之前存在的,在移动图片C1、图片C2、图片C3以及图片C4之前我的收藏这一相册内的图片可以参见图6中的(f)所示的GUI。
参见图6中的(f)所示的GUI,可以看出,图片Y1和图片Y2的拍摄时间为7月10日,图片Y3、图片Y4、图片Y5和图片Y6的拍摄时间为6月20日,这6张照片按照拍摄时间顺序排列。用户将图片C1、图片C2、图片C3以及图片C4移动至我的收藏这一相册后,我的收藏这一相册内的图片如图6中的(e)所示出的GUI,可以看出,图片C1、图片C2、图片C3以及图片C4移动至我的收藏这一相册中并未改变图片C1、图片C2、图片C3以及图片C4的拍摄时间,这四张图片的拍摄时间依然为7月5日,且这四张图片的排列顺序依然为图片C1、图片C2、图片C3以及图片C4。因此,用户移动图片C1、图片C2、图片C3以及图片C4后至我的收藏这一相册后,我的收藏这一相册内的图片的排列顺序为:图片Y1、图片Y2;图片C1、图片C2、图片C3、图片C4;图片Y3、图片Y4、图片Y5、图片Y6。
结合上述图6中的(e)所示的GUI和图6中的(f)所示的GUI,可以看出,用户将某一相册内的多张照片移动至另一相册,所移动的多张照片在移动前后的排列顺序是一致的,与现有技术中多张照片在移动前后其排列顺序会发生变化的方案相比,本申请实施例提供的方案可以保证所移动的多张照片在移动前后的排列顺序的一致性,可以使得用户在移动多张照片前后的体验感知一致,从而可以减少用户查找速率和阅读习惯的重新训练成本。
此外,用户还可以将一些常用或者重要的图片置顶,如图6中的(e)所示的GUI中,假设图片C1、图片Y3和图片Y5是用户在生活比较常用或者重要的,因此,可以将图片C1、图片Y3和图片Y5置顶显示。当手机检测到用户长按图片C1的图标305、图片Y3的图标305和图片Y5的图标305的操作后,可以显示如图6中的(g)所示的GUI。
参见图6中的(g)所示的GUI,界面显示图片C1、图片Y3和图片Y5的右下角出现图标○√,以及界面下方显示条形框,该条形框中包括:发送、编辑、删除、更多这些功能按钮。当手机检测到用户点击更多这一功能按钮306的操作后,可以显示如图6中的(h)所示的GUI。
参见图6中的(h)所示的GUI,界面弹框显示多个功能按钮,包括:添加到、设置为壁纸、重命名、置顶、详情。当手机检测到用户点击置顶这一功能按钮307的操作后,用户再返回我的收藏这一相册时,界面显示如图6中的(i)所示的GUI。
参见图6中的(i)所示的GUI,可以看出,图片C1、图片Y3和图片Y5位于界面的最上方,且图片C1、图片Y3和图片Y5这三张图片的右下角均显示“置顶”这两个字,方便用户查看该图片。但应理解,虽然图片C1、图片Y3和图片Y5这三张图片位于界面的最上方,但是这三张图片的拍摄时间和修改时间并未发生变化。此外,所置顶的图片C1、图片Y3以及图片Y5仍然参照拍摄时间进行降序排序的, 这与对这三张照片进行置顶前其排列顺序是一致的。
若用户想要取消对某一图片的置顶,如取消对图片C1的置顶,也可以按照类似操作取消对该图片C1的置顶显示。当手机检测到用户长按图片C1的图标308的操作后,可以显示如图6中的(j)所示的GUI。
参见图6中的(j)所示的GUI,界面显示图片C1的右下角出现图标○√,以及界面下方显示条形框,该条形框中包括:发送、编辑、删除、更多这些功能按钮。当手机检测到用户点击更多这一功能按钮309的操作后,可以显示如图6中的(k)所示的GUI。
参见图6中的(k)所示的GUI,界面弹框显示多个功能按钮,包括:添加到、设置为壁纸、重命名、置顶、详情。当手机检测到用户点击取消置顶这一功能按钮310的操作后,界面显示如图6中的(l)所示的GUI。
参见图6中的(l)所示的GUI,可以看出,此时置顶显示的图片包括图片Y3和图片Y5,而图片C1并未置顶显示,而是与图片C2、图片C3以及图片C4一起显示于7月5日的下方,即显示于置顶前所显示的位置。
需要说明的是,置顶图片的方式不限于上述长按图片的方式,还可以通过其它方式实现,例如,以图片Y3为例,用户可以用手直接将图片Y3拖至界面的最上方,当用户的手离开手机界面时,图片Y3显示于界面的最上方,且图片Y3的右下角显示“置顶”这两个字。
综上所述,本申请实施例提供的文件排序的方法,当用户将某一相册内的多张照片移动至另一相册时,所移动的多张照片在移动前后的排列顺序是一致的,与现有技术中多张照片在移动前后其排列顺序会发生变化的方案相比,本申请实施例提供的方案可以保证所移动的多张照片在移动前后的排列顺序的一致性,可以使得用户在移动多张照片前后的体验感知一致,从而可以减少用户查找速率和阅读习惯的重新训练成本。此外,本申请实施例还提供了一种置顶机制,用户可以对常用的或者重要的一张或多张图片进行置顶显示,且当用户对多张图片进行置顶时,被置顶的多张照片仍然按照图库所采用的排序规则进行排序的。
图7示出了手机的一组GUI,其中,从图7中的(a)到图7中的(f)示出了用户将手机中的文件管理器中的文件进行跨目录复制后文件的排序情况。
参见图7中的(a)所示的GUI,该GUI为手机的桌面。当手机检测到用户点击桌面上的图库的文件管理器401的操作后,可以启动该文件管理器,显示如图7中的(b)所示的GUI。
参见图7中的(b)所示的GUI,界面显示多个图标,包括:图片、视频、音频、文档等,以及文件的位置,如我的手机、我的云盘、网络邻居、最近删除。当手机检测到用户点击我的手机的图标402的操作后,可以显示如图7中的(c)所示的GUI。
参见图7中的(c)所示的GUI,界面显示部分文件夹,且显示的部分文件夹按照修改时间降序排列。以界面显示的文件夹1、文件夹2、文件夹3和文件夹4为例,文件夹1中包括3项文档,且文件夹1的修改时间为2022年7月25日;文件夹2中包括1项文档,且文件夹2的修改时间为2022年7月20日;文件夹3中包括3项文档,且文件夹3的修改时间为2022年7月18日;文件夹4中包括1项文档,且文件夹4的修改时间为2022年7月12日。由于文件夹1的修改时间晚于文件夹2的修改时间,且文件夹2的修改时间晚于文件夹3的修改时间,且文件夹3的修改时间晚于文件夹4的修改时间,因此,这四个文件夹可以按照文件夹1、文件夹2、文件夹3、文件夹4这样的顺序进行排列。当手机检测到用户点击文件夹1的图标403的操作后,可以显示如图7中的(d)所示的GUI。
参见图7中的(d)所示的GUI,界面显示文件夹1中的3个文档,分别为文档1a、文档1b、文档1c,且这3个文档按照修改时间降序排列。当手机检测到用户点击文档1a、文档1b、文档1c的图标404的操作后,界面左上方显示“已选择3项”,同时界面下方显示条形框,该条形框中包括多个功能按钮:移动、复制、分享、重命名、更多。当手机检测到用户点击复制这一功能按钮405的操作后,可以显示如图7中的(e)所示的GUI。
参见图7中的(e)所示的GUI,界面左上方显示“复制3项到”,用户可以将在图7中的(d)所选择的3项文档复制到任一文件夹。当手机检测到用户点击文件夹4(假设文件夹4中包括1个文档,且这1个文档的名称为文档4a)的图标406的操作后,界面下方显示条形框,该条形框中包括多个功能按钮:新建、粘贴、取消、更多。当手机检测到用户点击粘贴这一功能按钮407的操作后,可以显示如图7中的(f)所示的GUI。
参见图7中的(f)所示的GUI,界面显示文件夹4中包括的文档,分别为:文档1a、文档1b、文档1c和文档4a这四个文档,且这四个文档按照修改时间降序排列。可以看出,文档从一个文件夹复制到另一个文件夹,文档的修改时间并未变化。例如,存储于文件夹1中的文档1a的修改时间为2022年7月25日17:00,当2022年7月30日11:00的时候,用户将文件夹1中的文档1a复制到文件夹4中时,存储于文件夹4中的文档1a的修改时间仍然为2022年7月25日17:00。类似地,文档1b的修改时间仍然为复制前的修改时间,即2022年7月25日14:30;文档1c的修改时间仍然为复制前的修改时间,即2022年7月25日12:10。因此,用户将文件夹1中的这3个文档复制到文件夹4后,这3个文档在文件夹4中的排列顺序仍然为文档1a、文档1b、文档1c,与在文件夹1中的排列顺序一致。
进一步地,用户可以对重要的文件进行置顶,具体置顶方式与上述置顶图片方式类似,可以参考上述图6中的(g)所示的GUI~图6中的(l)所示的GUI,不再赘述。
本申请实施例提供的方案,当用户将某一文件夹内的多个文档复制到另一文件夹时,所复制的多个文档在复制前后的排列顺序是一致的,与现有技术中多个文档在复制前后其排列顺序会发生变化的方案相比,本申请实施例提供的方案可以保证所复制的多个文档在复制前后的排列顺序的一致性,可以使得用户在复制多个文档前后的体验感知一致,从而可以减少用户查找速率和阅读习惯的重新训练成本。
图8示出了手机的一组GUI,其中,从图8中的(a)到图8中的(d)示出了用户将某一设备(如设备1)上的图库中的图片迁移到另一设备(如设备A)后,用户通过淘宝○R分别访问这两个设备中的图片的排序情况。
参见图8中的(a)所示的GUI,该GUI为手机(该手机可以为上述提及的设备1)的桌面。当手机检测到用户点击桌面上的淘宝○R的图标501的操作后,可以启动该淘宝○R,显示如图8中的(b)所示的GUI。
参见图8中的(b)所示的GUI,界面显示淘宝○R的主界面,包括:搜索框、天猫新品、今日爆款、芭芭农场、天猫超市等。当手机检测到用户点击搜索框中的相机的图标502的操作后,可以显示如图8中的(c)所示的GUI。
参见图8中的(c)所示的GUI,界面显示“对准商品正面,可自动识别”,以及下方的图库的图标、扫一扫、淘宝拍照、AR淘等。当手机检测到用户点击左下角的图库的图标503的操作后,可以显示如图8中的(d)所示的GUI。
参见图8中的(d)所示的GUI,界面显示多个图片,且这些图片按照图片插入文件系统的插入时间的顺序排列,以图片A1、图片A2、图片A3、图片A4为例,图片A1插入文件系统的时间晚于图片A2插入文件系统的时间,图片A2插入文件系统的时间晚于图片A3插入文件系统的时间,图片A3插入文件系统的时间晚于图片A4插入文件系统的时间,因此,这4张图片的排列顺序为图片A1、图片A2、图片A3、图片A4。
当用户将上述设备1中的照片迁移至设备A中,若用户通过淘宝访问设备A中的图片的时候,图片的排列顺序仍然保持不变。即图片的排列顺序与图8中的(d)所示的GUI所显示的排列顺序一致,这是因为在迁移的过程中实行了相应的策略,如上述策略二中提到的对所迁移的图片进行了保序、重读所迁移图片的属性信息、通过特定接口读取图片的图片内容和属性信息等。
本申请实施例提供的方案,当用户将某一设备内的图片迁移到另一设备,通过同一应用分别访问这两个设备中的图片时,界面所呈现的图片的排列顺序是一致的,而现有技术中当用户将某一设备内的图片迁移到另一设备,通过同一应用访问这两个设备中的图片时,界面所呈现的图片的排列顺序不一致,因此,本申请实施例提供的方案与现有技术的方案相比,可以保证用户通过同一应用访问跨设备迁移的图片时所访问的图片的排列顺序一致,可以使得用户在跨设备迁移图片前后的体验感知一致,从而可以减少用户查找速率和阅读习惯的重新训练成本。
图9示出了手机的一组GUI,其中,从图9中的(a)到图9中的(d)示出了用户将某一设备(如设备1)上的图库中的图片迁移到另一设备(如设备A)后,用户通过京东分别访问这两个设备中的图片的排序情况。
参见图9中的(a)所示的GUI,该GUI(该手机可以为上述提及的设备1)为手机的桌面。当手机检测到用户点击桌面上的京东○R的图标601的操作后,可以启动该京东○R,显示如图9中的(b)所示的GUI。
参见图9中的(b)所示的GUI,界面显示京东的主界面,包括:搜索框、推荐、家电、母婴童装、 手机等。当手机检测到用户点击搜索框中的相机的图标602的操作后,可以显示如图9中的(c)所示的GUI。
参见图9中的(c)所示的GUI,界面显示“对准商品自动识别哦”,以及下方的相机的图标、图库的图标等。当手机检测到用户点击右下角的图库的图标603的操作后,可以显示如图9中的(d)所示的GUI。
参见图9中的(d)所示的GUI,界面显示多个图片,且这些图片按照图片的修改时间的顺序排列,以图片A1、图片A2、图片A3、图片A4为例,图片A1的修改时间晚于图片A2的修改时间,图片A2的修改时间晚于图片A3的修改时间,图片A3的修改时间晚于图片A4的修改时间,因此,这4张图片的排列顺序为图片A1、图片A2、图片A3、图片A4。
当用户将上述设备1中的照片迁移至设备A中,若用户通过京东访问设备A中的图片的时候,图片的排列顺序仍然保持不变。即图片的排列顺序与图9中的(d)所示的GUI所显示的排列顺序一致,这是因为在迁移的过程中实行了相应的策略,如上述策略二中提到的对所迁移的图片进行了保序、重读所迁移图片的属性信息、通过特定接口读取图片的图片内容和属性信息等。
本申请实施例提供的方案,当用户将某一设备内的图片迁移到另一设备,通过同一应用分别访问这两个设备中的图片时,界面所呈现的图片的排列顺序是一致的,而现有技术中当用户将某一设备内的图片迁移到另一设备,通过同一应用访问这两个设备中的图片时,界面所呈现的图片的排列顺序不一致,因此,本申请实施例提供的方案与现有技术的方案相比,可以保证用户通过同一应用访问跨设备迁移的图片时所访问的图片的排列顺序一致,可以使得用户在跨设备迁移图片前后的体验感知一致,从而可以减少用户查找速率和阅读习惯的重新训练成本。
图10示出了手机的一组GUI,其中,从图10中的(a)到图10中的(j)示出了用户将手机中的文件管理器中的文件进行跨设备复制后文件的排序情况。其中,图10中的(a)到图10中的(f)示出了用户将手机(本申请实施例中的手机为下文中的设备1)中的文件分享至另一设备(如下文中的设备A)的方法,图10中的(g)到图10中的(j)示出了用户在另一设备查看的文件排序情况。
参见图10中的(a)所示的GUI,该GUI为手机的桌面。当手机检测到用户点击桌面上的图库的文件管理器701的操作后,可以启动该文件管理器,显示如图10中的(b)所示的GUI。
参见图10中的(b)所示的GUI,界面显示多个图标,包括:图片、视频、音频、文档等,以及文件的位置,如我的手机、我的云盘、网络邻居、最近删除。当手机检测到用户点击我的手机的图标702的操作后,可以显示如图10中的(c)所示的GUI。
参见图10中的(c)所示的GUI,界面显示手机内的部分文件夹,且显示的部分文件夹按照修改时间降序排列。以界面显示的文件夹1、文件夹2、文件夹3和文件夹4为例,文件夹1中包括3项文档,且文件夹1的修改时间为2022年7月25日;文件夹2中包括1项文档,且文件夹2的修改时间为2022年7月20日;文件夹3中包括3项文档,且文件夹3的修改时间为2022年7月18日;文件夹4中包括2项文档,且文件夹4的修改时间为2022年7月12日。由于文件夹1的修改时间晚于文件夹2的修改时间,且文件夹2的修改时间晚于文件夹3的修改时间,且文件夹3的修改时间晚于文件夹4的修改时间,因此,这四个文件夹可以按照文件夹1、文件夹2、文件夹3、文件夹4这样的顺序进行排列。当手机检测到用户点击文件夹1的图标703的操作后,可以显示如图10中的(d)所示的GUI。
参见图10中的(d)所示的GUI,界面显示文件夹1中的3个文档,分别为文档1a、文档1b、文档1c,且这3个文档按照修改时间降序排列。当手机检测到用户点击文档1a、文档1b、文档1c的图标604的操作后,界面左上方显示“已选择3项”,同时界面下方显示条形框,该条形框中包括多个功能按钮:移动、复制、分享、重命名、更多。当手机检测到用户点击分享这一功能按钮705的操作后,可以显示如图10中的(e)所示的GUI。
参见图10中的(e)所示的GUI,界面下方显示条形框,该条形框中包括多个图标:华为分享、APP1、APP2、APP3、APP4、APP5、APP6、APP7、APP8。用户可以选择某一应用将在图10中的(d)所选择的3个文档分享至其它设备。当手机检测到用户点击华为分享的图标706的操作后,可以显示如图10中的(f)所示的GUI。
参见图10中的(f)所示的GUI,在华为分享的下方显示设备A,表示设备1可以将所选择的文档分享至设备A。当手机检测到用户点击设备A的图标707的操作后,文档1a、文档1b、文档1c便分享至设备A,用户可以在设备A中查看接收的文档。
参见图10中的(g)所示的GUI,该GUI为设备A的桌面。当手机检测到用户点击桌面上的图库的文件管理器708的操作后,可以启动该文件管理器,显示如图10中的(h)所示的GUI。
参见图10中的(h)所示的GUI,界面显示多个图标包括:图片、视频、音频、文档等,以及文件的位置,如我的手机、我的云盘、网络邻居、最近删除。当手机检测到用户点击文档的图标709的操作后,可以显示如图10中的(i)所示的GUI。
参见图10中的(i)所示的GUI,界面显示文档Y1、文档1a、文档1b、文档1c、文档Y2、文档Y3,且这6个文档按照修改时间降序排列。可以看出,文档从一个设备分享到另一个设备,文档的修改时间不会变化。存储于设备1中的文档1a的修改时间为2022年7月25日17:00,当2022年7月30日11:00的时候,用户将设备1中的文档1a分享到设备A中,存储于设备A中的文档1a的修改时间仍然为2022年7月25日17:00。类似地,文档1b的修改时间仍然为分享前的修改时间,即2022年7月25日14:30;文档1c的修改时间仍然为分享前的修改时间,即2022年7月25日12:10。
需要说明的是,文档Y1、文档Y2、文档Y3这3个文档是设备A中本身存储的文档,且这3个文档的修改时间依次分别为2022年7月30日16:58、2022年7月24日11:00、2022年7月24日10:00,则这3个文档的排列顺序可以参见图10中的(j)所示的GUI。从图10中的(j)所示的GUI可以看出,文档Y1、文档Y2、文档Y3这3个文档按照修改时间降序排列。
结合图10中的(i)所示的GUI和图10中的(j)所示的GUI,可以看出,设备A接收到设备1分享的文档后,设备A将接收到的文档与自身存储的文档融合在一起排列。但是文档1a、文档1b、文档1c这3个文档的顺序并未发生变化,这3个文档在设备A上的排列顺序与在设备1上的排列顺序是一致的。
综上所述,本申请实施例提供的文件排序的方法,当用户将某一设备上的多个文档分享至另一设备时,所分享的多个文档在分享前后的排列顺序是一致的,与现有技术中多个文档在分享前后其排列顺序会发生变化的方案相比,本申请实施例提供的方案可以保证所分享的多个文档在分享前后的排列顺序的一致性,可以使得用户在分享多个文档前后的体验感知一致,从而可以减少用户查找速率和阅读习惯的重新训练成本。
图11示出了手机的一组GUI,其中,从图11中的(a)到图11中的(f)示出了用户将SD卡插入手机前后,手机中的图库中的照片的排序情况。其中,图11中的(a)~图11中的(c)示出了插入SD卡前手机中的图库中的照片的排序情况,图11中的(d)~图11中的(f)示出了插入SD卡后手机中的图库中的照片的排序情况。
参见图11中的(a)所示的GUI,该GUI为手机的桌面。当手机检测到用户点击桌面上的图库的的图标801的操作后,可以启动该图库,显示如图11中的(b)所示的GUI。
参见图11中的(b)所示的GUI,界面显示不同的相册,包括:全部照片、图片、视频、截屏录屏等。当手机检测到用户点击图片的图标802的操作后,可以显示如图11中的(c)所示的GUI。
参见图11中的(c)所示的GUI,界面显示“图片”这一相册内的图片,且该相册内的图片按照拍摄时间顺序排列。如界面显示的:今天的图片包括图片A1和图片A2;昨天的图片包括图片B1、图片B2、图片B3以及图片B4;7月5日的图片包括图片C1、图片C2、图片C3、图片C4、以及图片C5等等。
若用户将SD卡插入该手机,当用户再次打开该手机的图库时,显示如图11中的(d)所示的GUI。
参见图11中的(d)所示的GUI,界面显示本地和其它设备,且“其它设备”这几个字有下划线以及进行了加粗,表示当前界面显示的是插入该手机上的其它设备中的照片,如界面上显示的SD卡,且该SD卡中包括50张照片。当手机检测到用户点击本机的图标803的操作后,可以显示如图11中的(e)所示的GUI。
参见图11中的(e)所示的GUI,界面显示不同的相册,包括:全部照片、图片、视频、截屏录屏等。当手机检测到用户点击图片的图标804的操作后,可以显示如图11中的(f)所示的GUI。
参见图11中的(f)所示的GUI,界面显示“图片”这一相册内的图片,且该相册内的图片按照拍摄时间顺序排列。如界面显示的:今天的图片包括图片A1和图片A2;昨天的图片包括图片B1、图片B2、图片B3以及图片B4;7月5日的图片包括图片C1、图片C2、图片C3、图片C4、以及图片C5等等。
综上所述,可以看出,在手机中插入SD卡后,手机中本机内的照片和SD卡中的照片并未融合显示,而是独立显示,如上述图11中的(d)所示的GUI,这是因为本申请实施例实行了相应的策略,如上述策略三中提到的跨文件系统所迁移的文件不做融合视图显示,通过实行这样的策略,在手机上中插入SD卡前后,手机中本机内的照片的排列顺序仍然保持不变,而现有技术中将SD卡插入手机后,SD卡中的 照片会和手机中本机内的照片进行融合显示,且由于每次扫描SD卡后时间信息会有所变化而导致每次将SD卡插入手机后手机中的照片的排列顺序会发生变化,因此,本申请实施例提供的方案与现有技术的方案相比,既可以保证在手机上中插入SD卡前后,手机中本机内的照片的排列顺序仍然保持不变,减少用户查找速率和阅读习惯的重新训练成本,还可以降低反复插拔SD卡文件系统对其进行扫描带来的功耗。
图12示出了手机的一组GUI,其中,从图12中的(a)到图12中的(f)示出了对于插入SD卡的手机中,用户将SD卡中的文档移动至手机内部存储中文档的显示情况。
参见图12中的(a)所示的GUI,该GUI为手机的桌面。当手机检测到用户点击桌面上的文件管理的图标901的操作后,可以启动该文件管理,显示如图12中的(b)所示的GUI。
参见图12中的(b)所示的GUI,界面显示多个图标,包括:图片、视频、音频、文档等,以及文件的位置,如我的手机、我的云盘、网络邻居、最近删除。当手机检测到用户点击我的手机的图标902的操作后,可以显示如图12中的(c)所示的GUI。
参见图12中的(c)所示的GUI,界面显示内部存储和SD卡,当用户选中SD卡右侧的图标□,图标□变换为□√,同时界面显示该SD卡中包括4个文件夹,分别为文件夹sd1、文件夹sd2、文件夹sd3和文件夹sd4,且这4个文件夹按照修改时间降序排列。其中,文件夹sd1中包括3项文档,且文件夹sd1的时间为2022年7月22日;文件夹sd2中包括2项文档,且文件夹sd2的时间为2022年7月16日;文件夹sd3中包括4项文档,且文件夹sd3的时间为2022年7月10日;文件夹sd4中包括0项文档,且文件夹sd4的时间为2022年7月6日。由于文件夹sd1的修改时间晚于文件夹sd2的修改时间,且文件夹sd2的修改时间晚于文件夹sd3的修改时间,且文件夹sd3的修改时间晚于文件夹sd4的修改时间,因此,这4个文件夹可以按照文件夹sd1、文件夹sd2、文件夹sd3、文件夹sd4这样的顺序进行排列。当手机检测到用户点击文件夹sd1的图标903的操作后,可以显示如图12中的(d)所示的GUI。
参见图12中的(d)所示的GUI,界面显示文件夹sd1中的3个文档,分别为文档sd1a、文档sd1b、文档sd1c,且这3个文档按照修改时间降序排列。当手机检测到用户点击文档sd1a、文档sd1b、文档sd1c的图标904的操作后,界面左上方显示“已选择3项”,同时界面下方显示条形框,该条形框中包括多个功能按钮:移动、复制、分享、重命名、更多。当手机检测到用户点击移动这一功能按钮905的操作后,可以显示如图12中的(e)所示的GUI。
参见图12中的(e)所示的GUI,界面左上方显示“移动3项到”,用户可以将在图12中的(d)所选择的3项文档移动到内部存储或SD卡中。当手机检测到用户点击内部存储的操作后,界面下方显示多个文件夹,分别为文件夹1、文件夹2、文件夹3和文件夹4,用户可以选择任一文件夹进行存储。当手机检测到用户点击文件夹2的图标906的操作后,可以显示如图12中的(f)所示的GUI。
参见图12中的(f)所示的GUI,界面显示文档sd1a、文档sd1b、文档sd1c这3个文档存储于“我的手机>内部存储>文件夹2”中,且这3个文档按照修改时间降序排列。可以看出,文档从SD卡移动至手机的内部存储中,文档的修改时间有所变化。例如,存储于SD卡中的文档sd1a的修改时间为2022年7月22日16:00,当2022年7月30日16:55的时候,用户将SD卡中的文档1a移动至设备的内部存储中时,存储于手机的内部存储中的文档sd1a的修改时间变化为2022年7月30日17:00。类似地,文档sd1b的修改时间变化为手机接收到文档sd1b时的系统时间,即2022年7月30日16:57;文档sd1c的修改时间变化为手机接收到文档sd1c时的系统时间,即2022年7月30日16:56。
需要说明的是,文档2a和文档2b这2个文档是文件夹2中本身存储的文档,且这2个文档的修改时间依次分别为2022年7月20日18:00和2022年7月20日16:56。
综上所述,可以看出,当用户将SD卡上的文件移动至手机内部存储时,所移动的多个文档在移动前后的排列顺序是一致的,与现有技术中多个文档在移动前后其排列顺序会发生变化的方案相比,本申请实施例提供的方案可以保证所移动的多个文档在移动前后的排列顺序的一致性,可以使得用户在分享多个文档前后的体验感知一致,从而可以减少用户查找速率和阅读习惯的重新训练成本。
基于此,本申请实施例通过图6~图12这几组GUI介绍了用户操作文件前后,文件的排序情况,至于用户其它可能的操作,不再以GUI展示,操作后的文件的时间属性信息可以参考上述表6中所示出的,不再赘述。
图13为本申请实施例提供的一种文件排序的方法的示意图,该方法可以应用于第一电子设备,该方法可以包括步骤S1310~S1330。
S1310,基于第一属性信息对所述第一电子设备上的第一目标文件进行排序,所述第一目标文件包括 至少两个文件。
本申请实施例中第一电子设备可以为上述图6或图7或图11或图12中的手机。
本申请实施例中的第一属性信息可以为时间信息,如下文中的插入时间、数据库修改时间、拍摄时间、文件系统修改时间、访问时间、记录更改时间等。
S1320,响应于用户对所述第一目标文件的第一操作,获得第二目标文件,其中,所述第一操作包括复制操作和/或移动操作,所述第二目标文件包括至少两个文件。
本申请实施例中的第一操作包括复制操作和/或移动操作,在一些实施例中,复制操作也可以称为拷贝操作,移动操作也可以称为迁移操作。
S1330,按照所述第一目标文件的排列顺序对所述第二目标文件进行排序,以使得所述第二目标文件的排列顺序与所述第一目标文件的排列顺序一致。
本申请实施例提供的方案,当用户对包括至少两个文件的第一目标文件进行第一操作后获得包括至少两个文件的第二目标文件,第一电子设备可以根据按照第一目标文件的排列顺序对第二目标文件进行排序,与现有技术中多个文件在移动或复制前后其排列顺序会发生变化的方案相比,本申请实施例提供的方案可以保证第一操作前后,第二目标文件的排列顺序与第一目标文件的排列顺序一致,可以使得用户在对多个目标文件进行操作前后的体验感知保持一致,从而可以减少用户查找速率和阅读习惯的重新训练成本。
可选地,在一些实施例中,所述方法还包括:
响应于所述第一操作,按照所述第一目标文件的排列顺序生成对应于所述第一目标文件的排列顺序的标识;
所述按照所述第一目标文件的排列顺序对所述第二目标文件进行排序,包括:
按照对应于所述第一目标文件的排列顺序的标识对所述第二目标文件进行排序。
本申请实施例中,按照对应于第一目标文件的排列顺序的标识对第二目标文件进行排序的具体内容可以参考上述策略二中的内容,此处不再赘述。
本申请实施例提供的方案,当用户对包括至少两个文件的第一目标文件进行第一操作后获得包括至少两个文件的第二目标文件,响应于该第一操作,电子设备可以按照第一目标文件的排列顺序生成对应于该第一目标文件的排列顺序的标识,并按照对应于该第一目标文件的排列顺序的标识对第二目标文件进行排序,可以保证第一操作前后,第二目标文件的排列顺序与第一目标文件的排列顺序一致,可以使得用户在对多个目标文件进行操作前后的体验感知保持一致,从而可以减少用户查找速率和阅读习惯的重新训练成本。
可选地,在一些实施例中,所述第一电子设备中的文件包括本地文件和非本地文件,所述本地文件的显示不受可插拔设备插入或拔出所述第一电子设备的影响,所述非本地文件为所述可插拔设备插入所述第一电子设备才在所述第一电子设备上显示的文件;
所述第一目标文件和所述第二目标文件均为所述本地文件;或者,
所述第一目标文件和所述第二目标文件均为所述非本地文件;或者,
所述第一目标文件和所述第二目标文件中的其中一个文件为所述非本地文件,另一个文件为所述本地文件。
本申请实施例中的可插拔设备可以为SD卡、U盘等。
以文件为图片为例,如上述图11中所示出的,本地文件可以为图11中的(e)所示的本机中的图片或视频,非本地文件可以为图11中的(d)所示的SD卡中的图片或视频。
当用户将SD卡中的文件移动至手机中时,移动至手机中的文件则为本地文件,如上述图12中所示出的,在用户将SD卡中的文件移动至手机中前,SD卡中的文件为非本地文件,如图12中的(c)所示的SD卡中的文件夹sd1~文件夹sd4中的文件均为非本地文件;当用户将文件夹sd1中的文件(包括文档sd1a、文档sd1b、文档sd1c)移动至手机中的内部存储的文件夹2时,如图12中的(f)所示,此时,文档sd1a、文档sd1b、文档sd1c则为本地文件。
本申请实施例提供的方案,第一电子设备中的文件可以包括本地文件和非本地文件,第一目标文件和第二目标文件可以均为本地文件,或者,也可以均为非本地文件,或者,其中一个文件为本地文件,另一个文件为非本地文件,不管第一目标文件和第二目标文件是本地文件还是非本地文件,第二目标文件均可以按照第一目标文件的排列顺序进行排序,可以使得用户在对多个目标文件进行操作前后的体验 感知保持一致。
可选地,在一些实施例中,所述本地文件存储于第一数据库,所述非本地文件存储于第二数据库,所述第一数据库和所述第二数据库为不同的数据库,所述第一数据库和所述第二数据库由用户文件管理模块统一管理。
本申请实施例中的本地文件和非本地存储于不同的数据库,且该不同的数据可可以由用户文件管理模块统一进行管理,由于本地文件和非本地文件存储于不同的数据库,因此,当包括非本地文件的可插拔设备插入第一电子设备前后,本地文件在第一电子设备上的排列顺序不会受影响,即本地文件在第一电子设备上的排列顺序保持不变,可以减少用户查找速率和阅读习惯的重新训练成本,还可以降低反复插拔可插拔设备文件系统对其进行扫描带来的功耗。
可选地,在一些实施例中,所述第一属性信息包括以下信息:插入时间、数据库修改时间、拍摄时间、文件系统修改时间、访问时间、记录更改时间;
所述第二目标文件的第一属性信息是基于所述第一操作,按照预设规则确定的。
本申请实施例中的预设规则可以参考上述表6的内容,不再赘述。
本申请实施例提供的方案,第一属性信息可以包括上述时间信息,第一电子设备可以按照上述时间信息的任一信息对第一目标文件进行排序,当用户对第一目标文件进行第一操作后获得第二目标文件后,第二目标文件的第一属性信息是基于第一操作,且按照预设规则确定的。通过对第二目标文件的第一属性信息的规定,可以统一第二目标文件的第一属性信息,不管第一电子设备装载的是何种系统,第二目标文件的第一属性信息均基于第一操作且按照预设规则确定,可以统一用户体验。
可选地,在一些实施例中,所述方法还包括:
响应于所述用户对包括至少两个文件的第三目标文件的第二操作,按照所述第三目标文件的排列顺序将所述第三目标文件进行置顶排列显示,所述第三目标文件所包括的至少两个文件中至少有一个目标文件为所述第二目标文件。
本申请实施例中,关于文件置顶的内容可以参考上述图6中的相关内容,不再赘述。
本申请实施例提供的方案,当用户对包括至少两个文件的第三目标文件进行第二操作后,第一电子设备可以按照第三目标文件的排列顺序将第三目标文件进行置顶排列显示,即,置顶后显示的第三目标文件的排列顺序与置顶前的第三目标文件的排列顺序也是一致的,可以保证第三目标文件置顶前后的排列顺序的一致性,使得用户的体验感知一致。
图14为本申请实施例提供的一种文件排序的方法的示意图,该方法可以应用于第二电子设备,该方法可以包括步骤S1410~S1420。
S1410,获得第二目标文件,所述第二目标文件是第一电子设备将所述第一电子设备中的第一目标文件复制或移动或分享至第二电子设备中的,所述第一目标文件包括至少两个文件,所述第二目标文件包括至少两个文件,所述第一目标文件是基于第一属性信息排序的。
本申请实施例中的第一电子设备可以为上述图8或图9或图10中的设备1,第二电子设备为设备A。
S1420,按照所述第一目标文件的排列顺序对所述第二目标文件进行排序,以使得所述第二目标文件的排列顺序与所述第一目标文件的排列顺序一致。
本申请实施例中,关于跨设备对于文件排序的内容可以参考上述图8或图9或图10的内容,此处不再赘述。
本申请实施例提供的方案,第二电子设备在获得第二目标文件后,可以根据按照第一目标文件的排列顺序对第二目标文件进行排序,与现有技术中多个文件在移动或复制或分享前后其排列顺序会发生变化的方案相比,本申请实施例提供的方案可以保证第二目标文件的排列顺序与第一目标文件的排列顺序一致,可以使得用户在对多个目标文件进行操作前后的体验感知保持一致,从而可以减少用户查找速率和阅读习惯的重新训练成本。
可选地,在一些实施例中,所述方法还包括:
获得对应于所述第一目标文件的排列顺序的标识;
所述按照所述第一目标文件的排列顺序对所述第二目标文件进行排序,包括:
按照对应于所述第一目标文件的排列顺序的标识对所述第二目标文件进行排序。
本申请实施例提供的方案,第二电子设备在获得第二目标文件后,还可以获得对应于第一目标文件的排列顺序的标识,从而可以根据按照对应于第一目标文件的排列顺序的标识对第二目标文件进行排序, 与现有技术中多个文件在移动或复制或分享前后其排列顺序会发生变化的方案相比,本申请实施例提供的方案可以保证第二目标文件的排列顺序与第一目标文件的排列顺序一致,可以使得用户在对多个目标文件进行操作前后的体验感知保持一致,从而可以减少用户查找速率和阅读习惯的重新训练成本。
可选地,在一些实施例中,所述第一属性信息包括以下信息:插入时间、数据库修改时间、拍摄时间、文件系统修改时间、访问时间、记录更改时间;
所述第二目标文件的第一属性信息是基于所述第一电子设备对所述第一目标文件的复制或移动操作,按照预设规则确定的。
本申请实施例提供的方案,第一属性信息可以包括上述时间信息,第一电子设备可以按照上述时间信息的任一信息对第一目标文件进行排序,当第二电子设备获得第二目标文件后,第二目标文件的第一属性信息是基于复制或移动或分享操作,且按照预设规则确定的。通过对第二目标文件的第一属性信息的规定,可以统一第二目标文件的第一属性信息,可以统一用户体验。
可选地,在一些实施例中,所述方法还包括:
响应于用户对包括至少两个文件的第三目标文件的第二操作,按照所述第三目标文件的排列顺序将所述第三目标文件进行置顶排序显示,所述第三目标文件所包括的至少两个文件中至少有一个目标文件为所述第二目标文件。
本申请实施例提供的方案,当用户对包括至少两个文件的第三目标文件进行第二操作后,第二电子设备可以按照第三目标文件的排列顺序将第三目标文件进行置顶排列显示,即,置顶后显示的第三目标文件的排列顺序与置顶前的第三目标文件的排列顺序也是一致的,可以保证第三目标文件置顶前后的排列顺序的一致性,使得用户的体验感知一致。
可以理解的是,电子设备为了实现上述功能,其包含了执行各个功能相应的硬件和/或软件模块。结合本文中所公开的实施例描述的各示例的算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。本领域技术人员可以结合实施例对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
本实施例可以根据上述方法示例对电子设备进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块可以采用硬件的形式实现。需要说明的是,本实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。
在采用对应各个功能划分各个功能模块的情况下,图15示出了上述实施例中涉及的电子设备的一种可能的组成示意图,如图15所示,该电子设备1500可以包括:排序模块1510和获得模块1520。
当电子设备1500为第一电子设备时,排序模块1510可以用于支持电子设备1500执行上述步骤S1310或S1330等,和/或用于本文所描述的技术的其他过程。
获得模块1520可以用于支持电子设备1500执行上述步骤S1320等,和/或用于本文所描述的技术的其他过程。
当电子设备1500为第二电子设备时,获得模块1520可以用于支持电子设备1500执行上述步骤S1410等,和/或用于本文所描述的技术的其他过程。
排序模块1510可以用于支持电子设备1500执行上述步骤S1420等,和/或用于本文所描述的技术的其他过程。
需要说明的是,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。
本实施例提供的电子设备,用于执行上述本申请的方法,因此可以达到与上述实现方法相同的效果。
在采用集成的单元的情况下,电子设备可以包括处理模块、存储模块和通信模块。其中,处理模块可以用于对电子设备的动作进行控制管理,例如,可以用于支持电子设备执行上述各个单元执行的步骤。存储模块可以用于支持电子设备执行存储程序代码和数据等。通信模块,可以用于支持电子设备与其他设备的通信。
其中,处理模块可以是处理器或控制器。其可以实现或执行结合本申请公开内容所描述的各种示例性的逻辑方框,模块和电路。处理器也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,数字信号处理(digital signal processing,DSP)和微处理器的组合等等。存储模块可以是存储器。通信模 块具体可以为射频电路、蓝牙芯片、Wi-Fi芯片等与其他电子设备交互的设备。
在一个实施例中,当处理模块为处理器,存储模块为存储器时,本实施例所涉及的电子设备可以为具有图1所示结构的设备。
图16示出了上述实施例涉及的电子设备800的另一种可能的组成示意图,如图16所示,该电子设备800可以包括通信单元810、输入单元820、处理单元830、输出单元(或也可以称为显示单元)840、外设接口850、存储单元860、电源870、视频解码器880以及音频解码器890。
通信单元810用于建立通信信道,使电子设备800通过所述通信信道以连接至远程服务器,并从所述远程服务器下媒体数据。所述通信单元810可以包括WLAN模块、蓝牙模块、NFC模块、基带模块等通信模块,以及所述通信模块对应的射频(Radio Frequency,简称RF)电路,用于进行无线局域网络通信、蓝牙通信、NFC通信、红外线通信及/或蜂窝式通信系统通信,例如宽带码分多重接入(wideband code division multiple access,W-CDMA)及/或高速下行封包存取(high speed downlink packet access,HSDPA)。所述通信模块810用于控制电子设备中的各组件的通信,并且可以支持直接内存存取。
输入单元820可以用于实现用户与电子设备的交互和/或信息输入到电子设备中。在本申请具体实施方式中,输入单元可以是触控面板,也可以是其他人机交互界面,例如实体输入键、麦克风等,还可是其他外部信息撷取装置,例如摄像头等。
处理单元830为电子设备的控制中心,可以利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储单元内的软件程序和/或模块,以及调用存储在存储单元内的数据,以执行电子设备的各种功能和/或处理数据。
输出单元840包括但不限于影像输出单元和声音输出单元。影像输出单元用于输出文字、图片和/或视频。在本申请的具体实施方式中,上述输入单元820所采用的触控面板亦可同时作为输出单元840的显示面板。例如,当触控面板检测到在其上的触摸或接近的手势操作后,传送给处理单元以确定触摸事件的类型,随后处理单元根据触摸事件的类型在显示面板上提供相应的视觉输出。虽然在图16中,输入单元820与输出单元840是作为两个独立的部件来实现电子设备的输入和输出功能,但是在某些实施例中,可以将触控面板与显示面板集成一体而实现电子设备的输入和输出功能。例如,所述影像输出单元可以显示各种图形化用户接口以作为虚拟控制组件,包括但不限于窗口、卷动轴、图标及剪贴簿,以供用户通过触控方式进行操作。
存储单元860可用于存储软件程序以及模块,处理单元通过运行存储在存储单元的软件程序以及模块,从而执行电子设备的各种功能应用以及实现数据处理。
本实施例还提供一种计算机存储介质,该计算机存储介质中存储有计算机指令,当该计算机指令在电子设备上运行时,使得电子设备执行上述相关方法步骤实现上述实施例中的方法。
本实施例还提供了一种计算机程序产品,当该计算机程序产品在计算机上运行时,使得计算机执行上述相关步骤,以实现上述实施例中的方法。
另外,本申请的实施例还提供一种装置,这个装置具体可以是芯片,组件或模块,该装置可包括相连的处理器和存储器;其中,存储器用于存储计算机执行指令,当装置运行时,处理器可执行存储器存储的计算机执行指令,以使芯片执行上述各方法实施例中的方法。
其中,本实施例提供的电子设备、计算机存储介质、计算机程序产品或芯片均用于执行上文所提供的对应的方法,因此,其所能达到的有益效果可参考上文所提供的对应的方法中的有益效果,此处不再赘述。
通过以上实施方式的描述,所属领域的技术人员可以了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要 选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。
以上内容,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。

Claims (12)

  1. 一种文件排序的方法,其特征在于,所述方法应用于第一电子设备,所述方法包括:
    基于第一属性信息对所述第一电子设备上的第一目标文件进行排序,所述第一目标文件包括至少两个文件;
    响应于用户对所述第一目标文件的第一操作,获得第二目标文件,其中,所述第一操作包括复制操作和/或移动操作,所述第二目标文件包括至少两个文件;
    按照所述第一目标文件的排列顺序对所述第二目标文件进行排序,以使得所述第二目标文件的排列顺序与所述第一目标文件的排列顺序一致。
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    响应于所述第一操作,按照所述第一目标文件的排列顺序生成对应于所述第一目标文件的排列顺序的标识;
    所述按照所述第一目标文件的排列顺序对所述第二目标文件进行排序,包括:
    按照对应于所述第一目标文件的排列顺序的标识对所述第二目标文件进行排序。
  3. 根据权利要求1或2所述的方法,其特征在于,所述第一电子设备中的文件包括本地文件和非本地文件,所述本地文件的显示不受可插拔设备插入或拔出所述第一电子设备的影响,所述非本地文件为所述可插拔设备插入所述第一电子设备才在所述第一电子设备上显示的文件;
    所述第一目标文件和所述第二目标文件均为所述本地文件;或者,
    所述第一目标文件和所述第二目标文件均为所述非本地文件;或者,
    所述第一目标文件和所述第二目标文件中的其中一个文件为所述非本地文件,另一个文件为所述本地文件。
  4. 根据权利要求3所述的方法,其特征在于,所述本地文件存储于第一数据库,所述非本地文件存储于第二数据库,所述第一数据库和所述第二数据库为不同的数据库,所述第一数据库和所述第二数据库由用户文件管理模块统一管理。
  5. 根据权利要求1至4中任一项所述的方法,其特征在于,所述第一属性信息包括以下信息:插入时间、数据库修改时间、拍摄时间、文件系统修改时间、访问时间、记录更改时间;
    所述第二目标文件的第一属性信息是基于所述第一操作,按照预设规则确定的。
  6. 根据权利要求1至5中任一项所述的方法,其特征在于,所述方法还包括:
    响应于所述用户对包括至少两个文件的第三目标文件的第二操作,按照所述第三目标文件的排列顺序将所述第三目标文件进行置顶排列显示,所述第三目标文件所包括的至少两个文件中至少有一个目标文件为所述第二目标文件。
  7. 一种文件排序的方法,其特征在于,所述方法应用于第二电子设备,所述方法包括:
    获得第二目标文件,所述第二目标文件是第一电子设备将所述第一电子设备中的第一目标文件复制或移动或分享至第二电子设备中的,所述第一目标文件包括至少两个文件,所述第二目标文件包括至少两个文件,所述第一目标文件是基于第一属性信息排序的;
    按照所述第一目标文件的排列顺序对所述第二目标文件进行排序,以使得所述第二目标文件的排列顺序与所述第一目标文件的排列顺序一致。
  8. 根据权利要求7所述的方法,其特征在于,所述方法还包括:
    获得对应于所述第一目标文件的排列顺序的标识;
    所述按照所述第一目标文件的排列顺序对所述第二目标文件进行排序,包括:
    按照对应于所述第一目标文件的排列顺序的标识对所述第二目标文件进行排序。
  9. 根据权利要求7或8所述的方法,其特征在于,所述第一属性信息包括以下信息:插入时间、数据库修改时间、拍摄时间、文件系统修改时间、访问时间、记录更改时间;
    所述第二目标文件的第一属性信息是基于所述第一电子设备对所述第一目标文件的复制或移动操作,按照预设规则确定的。
  10. 根据权利要求7至9中任一项所述的方法,其特征在于,所述方法还包括:
    响应于用户对包括至少两个文件的第三目标文件的第二操作,按照所述第三目标文件的排列顺序将 所述第三目标文件进行置顶排序显示,所述第三目标文件所包括的至少两个文件中至少有一个目标文件为所述第二目标文件。
  11. 一种电子设备,其特征在于,包括:
    一个或多个处理器;
    一个或多个存储器;
    所述一个或多个存储器存储有一个或多个计算机程序,所述一个或多个计算机程序包括指令,当所述指令被所述一个或多个处理器执行时,使得所述电子设备执行如权利要求1至6或7至10中任一项所述的方法。
  12. 一种计算机存储介质,其特征在于,包括计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行如权利要求1至6或7至10中任一项所述的方法。
PCT/CN2023/123251 2022-10-13 2023-10-07 一种文件排序的方法和电子设备 WO2024078391A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211251696.6A CN117931745A (zh) 2022-10-13 2022-10-13 一种文件排序的方法和电子设备
CN202211251696.6 2022-10-13

Publications (1)

Publication Number Publication Date
WO2024078391A1 true WO2024078391A1 (zh) 2024-04-18

Family

ID=90668835

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/123251 WO2024078391A1 (zh) 2022-10-13 2023-10-07 一种文件排序的方法和电子设备

Country Status (2)

Country Link
CN (1) CN117931745A (zh)
WO (1) WO2024078391A1 (zh)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050246640A1 (en) * 2004-04-30 2005-11-03 Applied Computer Systems, Inc. Method and system for displaying files to a user
CN102663043A (zh) * 2012-03-27 2012-09-12 上海量明科技发展有限公司 文件调整位置的方法及终端
WO2017127124A1 (en) * 2016-01-22 2017-07-27 Hewlett Packard Enterprise Development Lp Ranking backup files
CN108549695A (zh) * 2018-04-16 2018-09-18 Oppo广东移动通信有限公司 数据交互方法、装置、终端设备及存储介质
CN113641638A (zh) * 2021-08-23 2021-11-12 维沃移动通信有限公司 应用管理方法、装置、电子设备及存储介质
CN113821484A (zh) * 2021-09-26 2021-12-21 维沃移动通信有限公司 文件处理方法、装置、电子设备和可读存储介质
CN113992663A (zh) * 2021-12-29 2022-01-28 荣耀终端有限公司 发送文件的方法、电子设备及可读存储介质

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050246640A1 (en) * 2004-04-30 2005-11-03 Applied Computer Systems, Inc. Method and system for displaying files to a user
CN102663043A (zh) * 2012-03-27 2012-09-12 上海量明科技发展有限公司 文件调整位置的方法及终端
WO2017127124A1 (en) * 2016-01-22 2017-07-27 Hewlett Packard Enterprise Development Lp Ranking backup files
CN108549695A (zh) * 2018-04-16 2018-09-18 Oppo广东移动通信有限公司 数据交互方法、装置、终端设备及存储介质
CN113641638A (zh) * 2021-08-23 2021-11-12 维沃移动通信有限公司 应用管理方法、装置、电子设备及存储介质
CN113821484A (zh) * 2021-09-26 2021-12-21 维沃移动通信有限公司 文件处理方法、装置、电子设备和可读存储介质
CN113992663A (zh) * 2021-12-29 2022-01-28 荣耀终端有限公司 发送文件的方法、电子设备及可读存储介质

Also Published As

Publication number Publication date
CN117931745A (zh) 2024-04-26

Similar Documents

Publication Publication Date Title
WO2021139768A1 (zh) 跨设备任务处理的交互方法、电子设备及存储介质
WO2020233553A1 (zh) 一种拍摄方法及终端
WO2021052147A1 (zh) 一种数据传输的方法及相关设备
WO2020010584A1 (zh) 一种终端恢复出厂设置时的数据恢复方法及终端
WO2021088881A1 (zh) 一种选择图片的方法和电子设备
WO2021082835A1 (zh) 启动功能的方法及电子设备
WO2021159746A1 (zh) 文件共享方法、系统及相关设备
WO2022262439A1 (zh) 网络资源的处理方法、电子设备及计算机可读存储介质
US12010257B2 (en) Image classification method and electronic device
US20230367464A1 (en) Multi-Application Interaction Method
WO2020134892A1 (zh) 一种媒体文件裁剪的方法、电子设备和服务器
WO2021185352A1 (zh) 一种版本升级方法及相关装置
WO2022052766A1 (zh) 主题包适配方法及装置
WO2023138305A9 (zh) 卡片显示方法、电子设备及计算机可读存储介质
WO2024078391A1 (zh) 一种文件排序的方法和电子设备
WO2022161058A1 (zh) 一种全景图像的拍摄方法及电子设备
WO2022089276A1 (zh) 一种收藏处理的方法及相关装置
CN115373778A (zh) 投屏方法及相关装置
WO2023160455A1 (zh) 删除对象的方法及电子设备
WO2023160208A1 (zh) 图像删除操作的通知方法、设备和存储介质
WO2024140002A1 (zh) 一种存储空间的管理方法、装置、电子设备及存储介质
WO2024104137A1 (zh) 一种支持数据融合的数据恢复方法及装置
WO2024083133A1 (zh) 分布式数据管理方法、电子设备及系统
WO2024193526A1 (zh) 一种备份方法及装置
CN114168115B (zh) 通信系统、应用下载方法及设备

Legal Events

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

Ref document number: 23876593

Country of ref document: EP

Kind code of ref document: A1