WO2023087857A1 - 一种电子设备的控制方法、电子设备及可读存储介质 - Google Patents
一种电子设备的控制方法、电子设备及可读存储介质 Download PDFInfo
- Publication number
- WO2023087857A1 WO2023087857A1 PCT/CN2022/117367 CN2022117367W WO2023087857A1 WO 2023087857 A1 WO2023087857 A1 WO 2023087857A1 CN 2022117367 W CN2022117367 W CN 2022117367W WO 2023087857 A1 WO2023087857 A1 WO 2023087857A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- file
- deleted
- electronic device
- files
- deletion
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 43
- 230000037430 deletion Effects 0.000 claims abstract description 132
- 238000012217 deletion Methods 0.000 claims abstract description 130
- 238000004590 computer program Methods 0.000 claims description 6
- 238000004140 cleaning Methods 0.000 claims description 5
- 230000009471 action Effects 0.000 description 8
- 238000010586 diagram Methods 0.000 description 8
- 230000006870 function Effects 0.000 description 8
- 230000008569 process Effects 0.000 description 8
- 230000002093 peripheral effect Effects 0.000 description 4
- 238000004891 communication Methods 0.000 description 3
- 238000012790 confirmation Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000000977 initiatory effect Effects 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 238000004378 air conditioning Methods 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012806 monitoring device Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000005192 partition Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/16—File or folder operations, e.g. details of user interfaces specifically adapted to file systems
- G06F16/162—Delete operations
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/16—File or folder operations, e.g. details of user interfaces specifically adapted to file systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/906—Clustering; Classification
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/17—Details of further file system functions
- G06F16/174—Redundancy elimination performed by the file system
Definitions
- the embodiments of the present invention relate to the technical field of electronic equipment, and in particular, to a method for controlling electronic equipment, electronic equipment, and a readable storage medium.
- Electronic devices often accumulate and store a large number of files during use, resulting in insufficient memory space and affecting subsequent use.
- users often cannot clean up files in time.
- the memory of the host device, audio-visual device, monitoring device, etc. will be full after a long time of use. After the device is full, the files in the device need to be cleared to free up memory space for subsequent use.
- files are usually deleted manually in the prior art.
- the embodiments of the present invention provide a method for controlling an electronic device, the electronic device and a readable storage medium, which can quickly clear the memory of the electronic device, and are easy to operate and highly convenient.
- An embodiment of the present invention provides a method for controlling an electronic device, including: recording feature information of deleted files in a history deletion operation, wherein the feature information includes file attributes of deleted files and/or storage of deleted files path; according to the feature information of the deleted file in the history deletion operation, select the file to be deleted from the files currently stored in the electronic device; delete the file to be deleted.
- An embodiment of the present invention also provides an electronic device, including: at least one processor; and a memory connected in communication with the at least one processor; wherein, the memory stores information that can be executed by the at least one processor. instructions, the instructions are executed by the at least one processor, so that the at least one processor can execute the above-mentioned electronic device control method.
- Embodiments of the present invention also provide a computer-readable storage medium storing a computer program, and implementing the above-mentioned electronic device control method when the computer program is executed by a processor.
- the embodiments of the present invention record the characteristic information of deleted files in the history deletion operation, wherein the characteristic information includes the file attributes of the deleted files and/or the storage path of the deleted files, according to the The feature information of the deleted file in the history deletion operation, select the file to be deleted from the files currently saved in the electronic device, and delete the file to be deleted, so that the electronic device can be deleted according to the user's deletion habits
- the currently saved files are intelligently deleted, eliminating the need for users to manually select the files to be deleted each time, reducing manual manual deletion operations, and quickly clearing the memory of electronic devices.
- the operation is simple and convenient.
- Fig. 1 is a structural schematic diagram of a smart home
- FIG. 2 is a flow chart of a method for controlling an electronic device provided in the first embodiment of the present invention
- FIG. 3 is a flow chart of another electronic device control method provided in the first embodiment of the present invention.
- Fig. 4 is a flow chart of another electronic device control method provided in the first embodiment of the present invention.
- Fig. 5 is a flow chart of another electronic device control method provided in the first embodiment of the present invention.
- FIG. 6 is a schematic diagram of an example of a method for controlling an electronic device provided in the first embodiment of the present invention.
- FIG. 7 is a schematic diagram of enabling a delete action in the electronic device control method provided in the first embodiment of the present invention.
- Fig. 8 is a schematic diagram of recording data operation and data fetching operation in the electronic device control method provided by the first embodiment of the present invention.
- FIG. 9 is a schematic diagram of an electronic device provided by a second embodiment of the present invention.
- Smart Home is that thing connectionization embodies under the influence of Internet of Things.
- Smart home connects various devices in the home (such as audio equipment, lighting equipment, curtain control, air conditioning control, security system, digital theater system, audio-visual server) through the Internet of Things technology, providing home appliance control, lighting control, and telephone remote control. wait.
- devices in the home such as audio equipment, lighting equipment, curtain control, air conditioning control, security system, digital theater system, audio-visual server
- smart home not only has traditional living functions, but also has construction, network communication, information appliances, equipment automation, provides a full range of information interaction functions, and even saves money for various energy costs.
- the smart home device includes a master device and a slave device.
- the master device refers to the packaged controller hardware and software with the control function of the smart home system, and has corresponding peripheral interfaces.
- the control host usually includes various forms of controller terminal products, and the slave device refers to the device controlled by the host. , such as audio-visual equipment, camera equipment, etc.
- Figure 1 is a schematic diagram of a smart home.
- the control host is the master device, and video surveillance, intelligent lighting systems, home background music and other devices are all slave devices.
- the smart home control host is also called the smart home centralized controller, which refers to the packaged controller hardware and software with the control function of the smart home system, and has corresponding peripheral interfaces.
- the control host usually includes various forms of controller terminals product.
- Intelligent Lighting System also known as intelligent lighting control system, is a distributed control system composed of program control system, communication transmission technology, information intelligent processing and electrical control technology, which has a high degree of strength and weakness for lighting. Adjustment, scene setting, timing setting functions.
- WholeHome Audio (WHA for short) is a centralized music source or an importable music source that is amplified by a power amplifier and connected to a partition or room through a connection cable, a connection unit and a control panel containing a tuning module. It is played by each speaker speaker to realize the background music effect.
- Video surveillance including network cameras and video surveillance systems. IP cameras can be used as flexible image and video surveillance devices in conjunction with smart home systems.
- Other equipment which can include window covering equipment, window management equipment, etc.
- the electronic device in this embodiment may be a master device or a slave device, specifically any one of the above.
- the file cannot be deleted conveniently, the operation is cumbersome, and the convenience is not high.
- the first embodiment of the present invention relates to a method for controlling an electronic device.
- the control method of the electronic device includes: recording the characteristic information of the deleted file in the historical deletion operation, wherein the characteristic information includes the file attribute of the deleted file and/or the storage path of the deleted file; Select the file to be deleted from the files currently stored in the electronic device, and delete the file to be deleted.
- the electronic device By recording the characteristic information of the deleted file in the historical deletion operation, wherein the characteristic information includes the file attribute of the deleted file and/or the storage path of the deleted file, according to the characteristic information of the deleted file in the historical deletion operation, from the electronic device Select the file to be deleted from the currently saved file, and delete the file to be deleted, so that the file currently stored in the electronic device can be intelligently deleted according to the user's deletion habits, without the user having to manually select the file to be deleted every time, reducing artificial duplication
- the manual deletion operation can quickly clean up the memory of electronic devices, and the operation is simple and convenient.
- the files to be deleted are selected from the files currently stored in the electronic device, including: deleting the deleted files whose number of deletions in the historical deletion operation is greater than or equal to the preset number of times
- the storage path is used as the pre-delete path; and/or the file attribute of the deleted file whose deletion times are greater than or equal to the preset number of times in the historical deletion operation is used as the pre-deleted file attribute.
- the characteristic information may only include the file attributes of the deleted files.
- the file attributes of the deleted files whose deletion times are greater than or equal to the preset number of times in the historical deletion operation are used as the pre-deleted file attributes and retrieved from the electronic device. Select the file with the pre-delete file attribute from the currently saved files as the file to be deleted.
- the feature information can also only include the storage path of the deleted file.
- the storage path of the deleted file whose deletion times are greater than or equal to the preset number of times in the history deletion operation is used as the pre-deletion path, and the currently saved files under the pre-deletion path file, as a file to be deleted.
- the feature information can also include both the file attribute of the deleted file and the storage path of the deleted file.
- the storage path of the deleted file whose deletion times are greater than or equal to the preset number of times in the history deletion operation is used as the pre-deletion path , take the file attribute of the deleted file whose deletion times are greater than or equal to the preset times in the historical deletion operation as the pre-deleted file attribute. Select a file with the pre-delete file attribute from the files as the file to be deleted for deletion.
- the file attribute may include a file type.
- the file to be deleted is selected from the files currently stored in the electronic device, including: the number of deletions in the historical deletion operation is greater than or The file type of the deleted file equal to the preset number of times is used as the pre-deleted file type; the file of the pre-deleted file type is selected from the files currently stored in the electronic device as the file to be deleted.
- S11 Record characteristic information of the deleted file in the historical deletion operation, wherein the characteristic information includes file attributes of the deleted file.
- the file attribute can include the file type
- the file type (or file format) refers to a special encoding method for information used by the computer to store information, and is used to identify internally stored data, such as some stored pictures (audio) , pictures, videos), some store programs, and some store text information.
- Each type of information can be stored in computer storage in one or more file formats.
- Each file format usually has one or more extensions that can be used to help applications recognize it.
- the recorded characteristic information of deleted files may be uploaded to the database of the server, or may be stored in the database of the electronic device itself, for example, may be stored in the database of the master device, which is not limited here.
- the preset number of times can be set by the user according to the memory of the electronic device or the user's own needs.
- audio, pictures, and videos occupy a large amount of memory, and for smart homes such as monitoring equipment, a large amount of audio, pictures, and surveillance videos may be stored during use. Therefore, users usually choose to delete audio, pictures, For files of video and other file types, for example, when the number of times the user chooses to delete an audio file is greater than or equal to the preset number of times (for example, 3 times), the electronic device can automatically use the audio as a pre-deleted file type, from the currently stored in the electronic device Select the audio file in the file as the file to be deleted.
- the preset number of times for example, 3 times
- the files to be deleted that are automatically selected by the electronic device according to the history deletion operation are directly deleted, so that the file attributes of frequently emptied files are automatically used as the file attributes recommended for cleaning, and the files with file attributes recommended for cleaning are automatically deleted. delete.
- the user can also be reminded by means of a prompt.
- a prompt after selecting the file to be deleted from the files currently stored in the electronic device according to the characteristic information of the deleted file in the history deletion operation, before deleting the file to be deleted , may also include: outputting prompt information for indicating whether to confirm the deletion; after receiving the confirmation information, executing the deletion of the file to be deleted.
- step S13 and before step S14 it may further include: outputting prompt information indicating whether to confirm deletion, and then performing step S14 after receiving the confirmation information.
- a prompt message including “confirm” and “cancel" of "whether to delete the file in the recommended way” can pop up, and after the user clicks "confirm", step S14 is performed; after the user clicks "cancel", it can also provide The interface where the user manually selects (checks) the file to be deleted, and subsequently deletes the file to be deleted manually selected by the user.
- the file attributes include: the source type of the picture, the shooting of the picture At least one of the object type and the definition type of the picture; according to the characteristic information of the deleted file in the historical deletion operation, select the file to be deleted from the files currently stored in the electronic device, including: the number of deletions in the historical deletion operation is greater than or The file attributes of the deleted pictures equal to the preset number of times are used as the pre-deleted file attributes; the files with the pre-deleted file attributes are selected from the files currently stored in the electronic device as the files to be deleted.
- the deleted file is not a picture, it can also be treated as an ordinary file.
- the file type of the file can be recorded, and the file type of the file whose deletion times are greater than or equal to the preset number of times in the history deletion operation will be used as Pre-delete file types.
- Pictures are different from ordinary files.
- the memory of pictures is larger than that of ordinary document files, and the file classification of pictures is more detailed, which can be divided into categories such as scenery, people, screenshots, panoramas, favorites, WeChat, etc., and the pictures are judged separately. It is to better distinguish files so that files can be deleted more precisely.
- S21 Record characteristic information of deleted files in the history deletion operation, wherein the characteristic information includes file attributes of the deleted files, and the file attributes include at least one of the source type of the picture, the object type of the picture, and the resolution type of the picture.
- the source type can include pictures taken by this machine, pictures obtained by screenshots of this machine, and pictures downloaded from software such as WeChat.
- the preset number of times can be set by the user according to the memory of the electronic device or his own needs, for example, three times.
- electronic devices often generate a large number of screenshots or downloaded pictures.
- the use of these pictures usually has a very short time limit and does not need to be stored for a long time. Users generally delete them manually. Therefore, when the user chooses to delete screenshots (or downloaded pictures)
- the electronic device can automatically use the screenshot (or downloaded picture) as the attribute of the pre-deleted file, and select the screenshot (or downloaded picture) from the files currently saved in the electronic device ) as the file to be deleted, so that the user can be automatically recommended to delete the screenshot (or downloaded picture) currently saved by the electronic device.
- the main purpose is to prevent theft, or to monitor whether the elderly at home are in danger, etc. , is not very useful, and the user generally deletes the landscape picture manually. Therefore, when the number of times the user chooses to delete the landscape picture is greater than or equal to the preset number of times (for example, 3 times), the electronic device can automatically use the landscape as an attribute of the pre-deleted file, from the electronic The landscape picture is selected from the files currently stored in the device as the file to be deleted, so that the user can be automatically recommended to delete the landscape picture currently stored in the electronic device.
- the preset number of times for example, 3 times
- the original image usually takes up a lot of memory, so the user generally chooses to delete the original image manually to reduce memory, and then decompresses the compressed format file to obtain the original image when needed. Therefore, after the user chooses to delete the original image
- the electronic device can automatically use the original image as the attribute of the pre-deleted file, and select the original image from the files currently saved in the electronic device as the file to be deleted, so that it can automatically recommend The user deletes the original image currently stored by the electronic device.
- the characteristic information of the deleted file in the historical deletion operation may also include: judging whether the deleted file in the historical deletion operation is stored in the folder before being deleted; recording the deleted file in the historical deletion operation
- the characteristic information of the deleted file may include: if the deleted file is saved in the folder before being deleted, record the storage path of the deleted file; according to the characteristic information of the deleted file in the historical deletion operation, from the currently saved file in the electronic device Selecting files to be deleted, including: using the storage path of deleted files whose deletion times are greater than or equal to the preset number of times in the historical deletion operation as the pre-deletion path; selecting the files saved under the pre-deletion path from the files currently saved in the electronic device , as the file to be deleted.
- step S30 Determine whether the deleted file in the history deletion operation is stored in the folder before being deleted, if yes, perform step S31, if not, end the process.
- the storage path of the deleted file indicates in which folder the deleted file is stored before being deleted.
- the preset number of times can be set by the user according to the memory of the electronic device or its own needs, for example, three times, and the pre-delete path represents the folder to be cleaned up.
- the folders that the user frequently cleans up are used as the folders that are recommended for the user to clean up in the automatic cleanup.
- the characteristic information includes the file attribute of the deleted file and the storage path of the deleted file; according to the characteristic information of the deleted file in the historical deletion operation, the file to be deleted is selected from the files currently saved in the electronic device, including : Use the storage path of the deleted files whose deletion times are greater than or equal to the preset number of times in the history deletion operation as the pre-deletion path; use the file attributes of the deleted files whose deletion times are greater than or equal to the preset number of times in the history deletion operation as the pre-deletion path Delete the file attribute; select the file with the attribute of the pre-deleted file from the files currently saved in the pre-deleted path as the file to be deleted. That is to say, when the pre-deletion path and the pre-deletion file attribute exist at the same time, the file with the pre-deletion file attribute is selected from the files currently stored in the pre-deletion path to delete.
- S40 Record characteristic information of the deleted file in the history deletion operation, wherein the characteristic information includes the file attribute of the deleted file and the storage path of the deleted file.
- the file attribute may be a file type, and/or record at least one of the source type of the picture, the object type of the picture, and the resolution type of the picture when the deleted file is a picture.
- This step is similar to step S32 and will not be repeated here.
- the preset number of times can be set by the user according to the memory of the electronic device or his own needs, for example, three times.
- Deleting files the user is in the process of deleting files.
- Whether it is a folder determine whether it is a folder, and determine the type of the folder because some folders have a large memory and need to be stored as a single type.
- Record file type and record file path save the save path and file type of this file.
- Record file type is also to delete files more accurately.
- file types for example, documents (TXT, DOC, XLS, File formats that record text information such as PPT), non-documents (file formats that record information other than text information, such as videos, application packages, pictures, etc.).
- (9) Store in the database: store the storage path, file type, picture type, and number of deletions under the file path of the specified file into the database.
- the file to be deleted before selecting the file to be deleted from the files currently stored in the electronic device according to the characteristic information of the deleted file in the history deletion operation, it may also include: Displaying the cleanup button, judging whether the trigger command of the cleanup button has been received, and then selecting the file to be deleted from the files currently stored in the electronic device according to the feature information of the deleted file in the history deletion operation after receiving the trigger command. That is, the user triggers the start of the deletion action by clicking the "cleaning button", so that the user actively triggers the smart deletion program.
- the "trigger instruction” does not refer to a simple instruction to delete a single file, but an instruction to enable “smart deletion", for example, the "clean button” displayed on the interface, which is used to trigger the electronic device Start automatic deletion.
- the file to be deleted before selecting the file to be deleted from the files currently stored in the electronic device according to the characteristic information of the deleted file in the history deletion operation, it also includes: judging whether the remaining memory of the electronic device is less than or equal to a preset threshold; When the remaining amount of memory is less than or equal to the preset threshold, the file to be deleted is selected from the files currently saved in the electronic device according to the feature information of the deleted file in the historical deletion operation, that is, when the remaining amount of memory of the electronic device is relatively large Hours, the electronic device automatically triggers the smart deletion program.
- FIG. 7 it is a schematic diagram of enabling a delete action. The description of each step is as follows:
- Initiating deletion refers to an operation of initiating deletion.
- the start-up delete operation here is not simply to delete a single file, but to activate a specified delete function on the host device, for example, there is a delete file button in the host device settings menu.
- Low memory refers to scenes with low memory.
- the memory of the device When the memory of the device is low, there will be a pop-up prompt (the reminder style of each system is different, but there will be a prompt). There is generally an entry to clean up the memory inside the bullet box. The process here is to explain that the action of deleting files will be triggered at this time.
- Enabling the delete action means that when the device is going to clean up the memory, it will prompt whether to use the "delete action". If the operation is enabled, the logic of the next step will be followed; if not enabled, the process will be ended directly.
- Fetching data from the database means that after the "delete action" is confirmed to be enabled, the data of the recorded file path, file type, and file attribute of the picture need to be fetched from the database.
- the database may specifically be a database in the master device, or a database in the server.
- Deleting a file refers to indexing the file under the specified path in the system after taking out the data in the database, and judging the type of the file or picture (that is, the file attribute of the picture), and deleting the file after confirmation.
- FIG. 8 it is a schematic diagram of recording data operation and fetching data operation.
- the operation of recording data refers to recording the path and file attributes of the file in the database when there is an operation to delete the file in the system
- the operation of fetching data refers to finding the path of the file that satisfies the conditions in the database when the delete action is enabled. and file attributes, and return the data to the caller.
- the embodiment of the present invention records the characteristic information of deleted files in the historical deletion operation, wherein the characteristic information includes the file attribute of the deleted file and/or the storage path of the deleted file, according to the historical deletion operation
- the feature information of the deleted files in the electronic device select the file to be deleted from the files currently saved in the electronic device, and delete the file to be deleted, so that the file currently saved in the electronic device can be intelligently deleted according to the user's deletion habits, without the need for the user to delete the file every time. Manually select the files to be deleted every time, reduce manual repeated manual deletion operations, and quickly clean up the memory of electronic devices, with simple operation and high convenience.
- the second embodiment of the present invention relates to an electronic device, as shown in FIG. 9 , including: at least one processor 501, and a memory 502 communicatively connected to the at least one processor 501, wherein the memory 502 stores information that can be processed by at least one
- the instructions executed by the processor 501 are executed by at least one processor 501, so that the at least one processor 501 can execute the above-mentioned electronic device control method.
- the memory 502 and the processor 501 are connected by a bus, and the bus may include any number of interconnected buses and bridges, and the bus connects one or more processors 501 and various circuits of the memory 502 together.
- the bus may also connect together various other circuits such as peripherals, voltage regulators, and power management circuits, all of which are well known in the art and therefore will not be further described herein.
- the bus interface provides an interface between the bus and the transceivers.
- a transceiver may be a single element or multiple elements, such as multiple receivers and transmitters, providing means for communicating with various other devices over a transmission medium.
- the data processed by the processor 501 is transmitted on the wireless medium through the antenna, and further, the antenna also receives the data and transmits the data to the processor 501 .
- Processor 501 is responsible for managing the bus and general processing, and may also provide various functions including timing, peripheral interface, voltage regulation, power management and other control functions. And the memory 502 may be used to store data used by the processor 501 when performing operations.
- the third embodiment of the present invention relates to a computer-readable storage medium storing a computer program, and when the computer program is executed by a processor, the above-mentioned embodiment of the control method for an electronic device is implemented.
- the program is stored in a storage medium, and includes several instructions to make a device ( It may be a single-chip microcomputer, a chip, etc.) or a processor (processor) to execute all or part of the steps of the methods in various embodiments of the present invention.
- the aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disc, etc., which can store program codes. .
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
本发明实施例涉及电子设备技术领域,公开了一种电子设备的控制方法。本发明实施例提供的电子设备的控制方法,包括:记录历史删除操作中已删除文件的特征信息,其中,所述特征信息包括已删除文件的文件属性和/或已删除文件的保存路径;根据所述历史删除操作中已删除文件的特征信息,从所述电子设备内当前保存的文件中选取待删除文件;对所述待删除文件进行删除。本发明实施例提供的电子设备的控制方法、电子设备及可读存储介质,能够快速对电子设备进行内存清理,操作简单,便捷度高。
Description
本发明实施例涉及电子设备技术领域,特别涉及一种电子设备的控制方法、电子设备及可读存储介质。
电子设备在使用过程中往往会累积存储大量文件,导致内存空间不足,影响后续使用。特别对于非用户经常携带设备、或者移动性较差的设备,用户往往无法及时清理文件。例如,智能家居系统中,主机设备、影音设备、监控设备等在长时间使用后,都会存在内存被占满的情况。设备被占满后需要清除设备内的文件,腾出内存空间,以便后续继续使用。然而现有技术中通常是手动删除文件。
现有技术中至少存在如下问题:对于手动删除指定文件的方式,操作繁琐,便捷度不高。
发明内容
本发明实施方式提供一种电子设备的控制方法、电子设备及可读存储介质,能够快速对电子设备进行内存清理,操作简单,便捷度高。
本发明的实施方式提供了一种电子设备的控制方法,包括:记录历史删除操作中已删除文件的特征信息,其中,所述特征信息包括已删除文件的文件属性和/或已删除文件的保存路径;根据所述历史删除操作中已删除文件的特征信息,从所述电子设备内当前保存的文件中选取待删除文件;对所述待删除文件进行删除。
本发明的实施方式还提供了一种电子设备,包括:至少一个处理器;以及,与所述至少一个处理器通信连接的存储器;其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行如上述的电子设备的控制方法。
本发明的实施方式还提供了一种计算机可读存储介质,存储有计算机程序,所述计算机程序被处理器执行时实现上述的电子设备的控制方法。
本发明实施方式相对于现有技术而言,通过记录历史删除操作中已删除文件的特征信息,其中,所述特征信息包括已删除文件的文件属性和/或已删除文件的保存路径,根据所述历史删除操作中已删除文件的特征信息,从所述电子设备内当前保存的文件中选取待删除文件,对所述待删除文件进行删除,从而能够依据用户的删除习惯对所述电子设备内当前保存的文件进行智能删除,无需用户每次都手动选择需要删除的文件,减少人为重复的手动删除操作,能够快速对电子设备进行内存清理,操作简单,便捷度高。
一个或多个实施例通过与之对应的附图中的图片进行示例性说明,这些示例性说明并不构成对实施例的限定,附图中具有相同参考数字标号的元件表示为类似的元件,除非有特别申明,附图中的图不构成比例限制。
图1是智能家居的结构示意图;
图2是本发明的第一实施方式提供的一种电子设备的控制方法的流程图;
图3是本发明的第一实施方式提供的另一种电子设备的控制方法的流程图;
图4是本发明的第一实施方式提供的又一种电子设备的控制方法的流程图;
图5是本发明的第一实施方式提供的还一种电子设备的控制方法的流程图;
图6是本发明的第一实施方式提供的电子设备的控制方法的一个实例示意图;
图7是本发明的第一实施方式提供的电子设备的控制方法中启用删除动作的示意图;
图8是本发明的第一实施方式提供的电子设备的控制方法中记录数据操作和取数据操作的示意图;
图9是本发明的第二实施方式提供的电子设备的示意图。
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合附图对本发明的各实施方式进行详细的阐述。然而,本领域的普通技术人员可以理解,在本发明各实施方式中,为了使读者更好地理解本发明实施例而提出了许多技术细节。但是,即使没有这些技术细节和基于以下各实施方式的种种变化和修改,也可以实现本发明实施例所要求保护的技术方案。
智能家居是在互联网影响之下物联化的体现。智能家居通过物联网技术将家中的各种设备(如音频设备、照明设备、窗帘控制、空调控制、安防系统、数字影院系统、影音服务器)连接到一起,提供家电控制、照明控制、电话远程控制等。与普通家具相比,智能家居不仅具有传统的居住功能,兼备建筑、网络通信、信息家电、设备自动化,提供全方位的信息交互功能,甚至为各种能源费用节约资金。
具体的,智能家居设备包括主设备与从设备。其中,主设备是指封装好的具有智能家居系统控制功能的控制器硬件和软件,具备有相应外围接口,控制主机通常包括各种形式的控制器终端产品,从设备是指通过主机控制的设备,例如影音设备、摄像设备等。
如图1所示,图1为智能家居的示意图,控制主机为主设备,视频监控、智能照明系统、家庭背景音乐及其他设备均为从设备。
其中,智能家居控制主机又称为智能家居集中控制器,是指封装好的具有智能家居系统控制功能的控制器硬件和软件,具备有相应外围接口,控制主机通常包括各种形式的控制器终端产品。
智能照明系统(IntelligentLightingSystem,简称ILS),又称智能照明控制系统,是利用程序控制系统,通讯传输技术,信息智能化处理及电器控制等技术组成的分布式控制系统,对灯光具有高度的强弱调节、场景设置、定时设置的功能。
家庭背景音乐(WholeHomeAudio,简称WHA),是由一个集中的音乐源或可汇入的音乐源 经过功放设备放大,通过连接线缆、连接单元和包含调音模块的控制面板连接到分区或房间,由各个音箱喇叭进行播放,实现背景音乐效果。
视频监控(CamerasandSurveillance),包括网络摄像机、视频监控系统。网络摄像机可作为灵活的图像视频监视设备与智能家居系统配合使用。
其他设备,可以包括窗帘设备、窗户管理设备等。
本实施例中的电子设备可以为主设备或从设备,具体可以为以上任意一种。
发明人发现,目前当电子设备内存不足时,通常是删除缓存文件,然后再通过用户选择性删除其他文件,不能便捷删除文件,操作繁琐,便捷度不高。
参见图2至图8,本发明的第一实施方式涉及一种电子设备的控制方法。在本实施方式中,电子设备的控制方法包括:记录历史删除操作中已删除文件的特征信息,其中,特征信息包括已删除文件的文件属性和/或已删除文件的保存路径;根据历史删除操作中已删除文件的特征信息,从电子设备内当前保存的文件中选取待删除文件;对待删除文件进行删除。
通过记录历史删除操作中已删除文件的特征信息,其中,特征信息包括已删除文件的文件属性和/或已删除文件的保存路径,根据历史删除操作中已删除文件的特征信息,从电子设备内当前保存的文件中选取待删除文件,对待删除文件进行删除,从而能够依据用户的删除习惯对电子设备内当前保存的文件进行智能删除,无需用户每次都手动选择需要删除的文件,减少人为重复的手动删除操作,能够快速对电子设备进行内存清理,操作简单,便捷度高。
下面对本实施方式的电子设备的控制方法的实现细节进行具体的说明,以下内容仅为方便理解提供的实现细节,并非实施本方案的必须。
实际应用中,根据历史删除操作中已删除文件的特征信息,从电子设备内当前保存的文件中选取待删除文件,包括:将历史删除操作中删除次数大于或等于预设次数的已删除文件的保存路径,作为预删除路径;和/或将历史删除操作中删除次数大于或等于预设次数的已删除文件的文件属性,作为预删除文件属性。
也就是说,特征信息可以仅包括已删除文件的文件属性,此时,将历史删除操作中删除次数大于或等于预设次数的已删除文件的文件属性,作为预删除文件属性,从电子设备内当前保存的文件中选取具备预删除文件属性的文件,作为待删除文件。
特征信息也可以仅包括已删除文件的保存路径,此时,将历史删除操作中删除次数大于或等于预设次数的已删除文件的保存路径,作为预删除路径,将预删除路径下当前保存的文件,作为待删除文件。
特征信息也可以既包括已删除文件的文件属性,又包括已删除文件的保存路径,此时,将历史删除操作中删除次数大于或等于预设次数的已删除文件的保存路径,作为预删除路径,将历史删除操作中删除次数大于或等于预设次数的已删除文件的文件属性,作为预删除文件属性,在预删除路径和预删除文件属性同时存在的情况下,对预删除路径当前保存的文件中选取具备预删除文件属性的文件,作为待删除文件以进行删除。
在一个实施例中,文件属性可以包括文件类型,根据历史删除操作中已删除文件的特征信息,从电子设备内当前保存的文件中选取待删除文件,包括:将历史删除操作中删除次数大于或等于预设次数的已删除文件的文件类型,作为预删除文件类型;从电子设备内当前保存的文件中选取预删除文件类型的文件,作为待删除文件。
具体如图2所示,可以包括以下步骤:
S11:记录历史删除操作中已删除文件的特征信息,其中,特征信息包括已删除文件的文件属性。
本步骤中,文件属性可以包括文件类型,文件类型(或文件格式)是指电脑为了存储信息而使用的对信息的特殊编码方式,是用于识别内部储存的资料,比如有的储存图片(音频、图片、视频),有的储存程序,有的储存文字信息。每一类信息,都可以一种或多种文件格式保存在电脑存储中。每一种文件格式通常会有一种或多种扩展名可以用来帮助应用程序识别。
具体的说,记录的已删除文件的特征信息可以上传至服务器的数据库中,也可以保存于电子设备自身的数据库中,例如,可以保存于主设备的数据库中,此处不做限定。
S12:将历史删除操作中删除次数大于或等于预设次数的已删除文件的文件类型,作为预删除文件类型。
其中,预设次数用户可以根据电子设备的内存或自身需求进行设定。
S13:从电子设备内当前保存的文件中选取预删除文件类型的文件,作为待删除文件。
由于音频、图片、视频占用的内存较大,且对于监控设备等智能家居而言,在使用过程中可能会存储大量的音频、图片和监控视频等,因此,用户通常会选择删除音频、图片、视频等文件类型的文件,比如,在用户选择删除音频文件的次数大于或等于预设次数(例如,3次)时,电子设备可以自动将音频作为预删除文件类型,从电子设备内当前保存的文件中选取音频的文件,作为待删除文件。
S14:对待删除文件进行删除。
本步骤中,对电子设备根据历史删除操作自动选择的待删除文件直接进行删除,从而实现自动将频繁被清空的文件的文件属性作为推荐清理的文件属性,自动对推荐清理的文件属性的文件进行删除。
可选的,也可以通过提示的方式来提醒用户,具体的,根据历史删除操作中已删除文件的特征信息,从电子设备内当前保存的文件中选取待删除文件之后,对待删除文件进行删除之前,还可以包括:输出用于表征是否确认删除的提示信息;在接收到确认信息后,再执行对待删除文件进行删除。
也就是说,本实施例中,在步骤S13之后,在步骤S14之前,还可以包括:输出用于表征是否确认删除的提示信息,在接收到确认信息后,再执行步骤S14。例如,可以弹出“是否以推荐的方式删除文件”的提示信息(包含“确认”和“取消”),在用户点击“确认”后,执行步骤S14;在用户点击“取消”后,还可以提供用户手动选择(勾选)待删除文件的界面,后续对用户手动选择的待删除文件进行删除。
在一个实施例中,记录历史删除操作中已删除文件的特征信息之前,还包括:判断已删除文件是否为图片;在已删除文件为图片时,文件属性包括:图片的来源类型、图片的拍摄对象类型、图片的清晰度类型中至少一者;根据历史删除操作中已删除文件的特征信息,从电子设备内当前保存的文件中选取待删除文件,包括:将历史删除操作中删除次数大于或等于预设次数的已删除图片的文件属性,作为预删除文件属性;从电子设备内当前保存的文件中选取具备预删除文件属性的文件,作为待删除文件。
具体如图3所示,可以包括以下步骤:
S20:判断已删除文件是否为图片,若是,则执行步骤S21,若否,结束流程。
可选的,若已删除文件不是图片,也可以作为普通文件进行处理,例如,可以记录该文 件的文件类型,后续将历史删除操作中删除次数大于或等于预设次数的文件的文件类型,作为预删除文件类型。
图片有别于普通的文件,图片的内存较普通文档文件的内存大,并且图片的文件分类更细,可分为风景、人物、截屏、全景、收藏、微信等类别,将图片单独进行判断,是为了更好的区分文件,以便更加精确的删除文件。
S21:记录历史删除操作中已删除文件的特征信息,其中,特征信息包括已删除文件的文件属性,文件属性包括图片的来源类型、图片的拍摄对象类型、图片的清晰度类型中至少一者。
其中,来源类型可以包括本机拍摄的图片、本机截图得到的图片、从微信等软件下载的图片,拍摄对象类型可以包括风景、人物、全景,清晰度类型可以包括原图、压缩格式。
实际应用中,可以仅记录图片的来源类型、图片的拍摄对象类型、或者图片的清晰度类型,也可以记录任意两种文件属性,或者将上述三者文件属性均进行记录,例如,若删除的图片为电子设备自身的摄像头拍摄的风景图片的原图,则记录一次删除本机拍摄的图片、记录一次删除风景图片,记录一次删除原图。
S22:将历史删除操作中删除次数大于或等于预设次数的已删除图片的文件属性,作为预删除文件属性。
其中,预设次数用户可以根据电子设备的内存或自身需求进行设定,例如,三次。
S23:从电子设备内当前保存的文件中选取具备预删除文件属性的文件,作为待删除文件。
例如,电子设备经常会产生大量的截图或下载的图片,这些图片的使用通常具有很短的时效,无需长期保存,用户一般会手动进行删除,因此,在用户选择删除截图(或下载的图片)的次数大于或等于预设次数(例如,3次)时,电子设备可以自动将截图(或下载的图片)作为预删除文件属性,从电子设备内当前保存的文件中选取截图(或下载的图片)作为待删除文件,从而能够自动推荐用户删除电子设备当前保存的截图(或下载的图片)。
又例如,对于智能家居中的监控设备而言,主要是为了防盗、或者监控家中老人是否存在危险等,因此,监控设备中的人物图片一般需要保留以备后续查看,而对于没有人物的风景照片,用处不大,用户一般会手动进行删除,因此,在用户选择删除风景图片的次数大于或等于预设次数(例如,3次)时,电子设备可以自动将风景作为预删除文件属性,从电子设备内当前保存的文件中选取风景图片作为待删除文件,从而能够自动推荐用户删除电子设备当前保存的风景图片。
又例如,对于原图通常会占用较多的内存,从而用户一般会手动选择删除原图以降低内存,后续需要时再将压缩格式的文件进行解压得到原图,因此,在用户选择删除原图的次数大于或等于预设次数(例如,3次)时,电子设备可以自动将原图作为预删除文件属性,从电子设备内当前保存的文件中选取原图作为待删除文件,从而能够自动推荐用户删除电子设备当前保存的原图。
S24:对待删除文件进行删除。
在一个实施例中,记录历史删除操作中已删除文件的特征信息之前,还可以包括:判断历史删除操作中已删除文件是否在被删除之前保存于文件夹内;记录历史删除操作中已删除文件的特征信息,可以包括:若已删除文件在被删除之前保存于文件夹内,记录已删除文件的保存路径;根据历史删除操作中已删除文件的特征信息,从电子设备内当前保存的文件中 选取待删除文件,包括:将历史删除操作中删除次数大于或等于预设次数的已删除文件的保存路径,作为预删除路径;从电子设备内当前保存的文件中选取预删除路径下保存的文件,作为待删除文件。
具体如图4所示,可以包括以下步骤:
S30:判断历史删除操作中已删除文件是否在被删除之前保存于文件夹内,若是,则执行步骤S31,若否,结束流程。
S31:记录已删除文件的保存路径。
其中,已删除文件的保存路径表征已删除文件在被删除之前保存于哪个文件夹内。
S32:将历史删除操作中删除次数大于或等于预设次数的已删除文件的保存路径,作为预删除路径。
其中,预设次数用户可以根据电子设备的内存或自身需求进行设定,例如,三次,预删除路径表征预备被清理的文件夹。
S33:从电子设备内当前保存的文件中选取预删除路径下保存的文件,作为待删除文件。
也就是说,将用户经常清理的文件夹作为自动清理中推荐用户清理的文件夹。
S34:对待删除文件进行删除。
在一个实施例中,特征信息包括已删除文件的文件属性和已删除文件的保存路径;根据历史删除操作中已删除文件的特征信息,从电子设备内当前保存的文件中选取待删除文件,包括:将历史删除操作中删除次数大于或等于预设次数的已删除文件的保存路径,作为预删除路径;将历史删除操作中删除次数大于或等于预设次数的已删除文件的文件属性,作为预删除文件属性;从预删除路径当前保存的文件中选取具备预删除文件属性的文件,作为待删除文件。也就是说,在预删除路径和预删除文件属性同时存在的情况下,对预删除路径当前保存的文件中选取具备预删除文件属性的文件进行删除。
具体如图5所示,可以包括以下步骤:
S40:记录历史删除操作中已删除文件的特征信息,其中,特征信息包括已删除文件的文件属性和已删除文件的保存路径。
本步骤中,既记录已删除文件的文件属性,又在已删除文件在被删除之前保存于文件夹内的情况下记录已删除文件的保存路径。
其中,文件属性可以为文件类型,和/或在已删除文件为图片的情况下记录图片的来源类型、图片的拍摄对象类型、图片的清晰度类型中至少一者。
S41:将历史删除操作中删除次数大于或等于预设次数的已删除文件的保存路径,作为预删除路径。
本步骤与步骤S32类似,此处不再赘述。
S42:将历史删除操作中删除次数大于或等于预设次数的已删除文件的文件属性,作为预删除文件属性。
其中,预设次数用户可以根据电子设备的内存或自身需求进行设定,例如,三次。
S43:从电子设备的预删除路径当前保存的文件中选取具备预删除文件属性的文件,作为待删除文件。
通过从电子设备的预删除路径当前保存的文件中选取具备预删除文件属性的文件,作为待删除文件,能够更加精准的进行自动删除,避免删除可能对于用户来说有用的文件。
S44:对待删除文件进行删除。
下面举一个例子进行说明,如图6所示,其中各步骤的说明如下:
(1)删除文件:用户正在进行删除文件的操作。
(2)记录删除次数:当用户成功删除文件后,将文件的路径与删除的次数记录在数据库的一个表中,默认删除次数为0。
(3)满足预设次数:根据文件的保存路径与删除次数进行判断。如果次数大于预设删除次数,则进行下一个流程;如果次数小于指定次数,则直接结束流程,其中,预设次数可以根据设备的不同,定义为不同的值。
(4)是否为图片:在数据库中索引该文件的图片文件类型的判断,因为图片有别于普通的文件,图片的内存较普通文档文件的内存大,并且图片类型的文件分类更细,可分为风景、人物、截屏、全景、收藏、微信等类型,将图片单独进行判断,是为了更好的区分文件,以便更加精确的删除文件。此处流程分两个方向,如果确定为图片类型,则将该图片的类型进行保存;如果不是则为普通文件,将进行普通文件类型的保存。
(5)记录图片类型(即,图片的文件属性):如果确认为图片,则记录图片的类型,以便更精准的删除图片。
(6)是否为文件夹:判断是否为文件夹,判断文件夹的类型是因为,某些文件夹的内存较大,需要单独作为一个类型进行存储。
(7)记录文件夹类型:如果确认为文件夹,则记录文件夹类型(即,文件的保存路径),以便更精准的清理文件夹。
(8)记录文件类型、记录文件路径:将此文件的保存路径与文件类型进行保存,记录文件类型也是为了更加精确的删除文件,文件类型也有多种,例如,文档(TXT、DOC、XLS、PPT等记载文字信息的文件格式)、非文档(视频、应用程序包、图片等记载除文字信息以外的信息的文件格式)。
(9)存入数据库:将指定文件的保存路径、文件类型、图片类型、文件路径下删除的次数存入数据库。
实际应用中,对于以上任一种实施例,根据历史删除操作中已删除文件的特征信息,从电子设备内当前保存的文件中选取待删除文件之前,还可以包括:在电子设备的显示屏上显示清理按钮,判断是否接收到清理按钮的触发指令,在接收到触发指令后,再执行根据历史删除操作中已删除文件的特征信息,从电子设备内当前保存的文件中选取待删除文件。即,用户通过点击“清理按钮”,来触发删除动作的启动,实现用户主动触发智能删除程序。
需要说明的是,“触发指令”不是指简单的删除某个单一文件的指令,而是开启“智能删除”的指令,例如,显示在界面上的“清理按钮”,该指令用于触发电子设备启动自动删除。
可以理解的是,根据历史删除操作中已删除文件的特征信息,从电子设备内当前保存的文件中选取待删除文件之前,还包括:判断电子设备的内存剩余量是否小于或等于预设阈值;在内存剩余量小于或等于预设阈值时,再执行根据历史删除操作中已删除文件的特征信息,从电子设备内当前保存的文件中选取待删除文件,即,在电子设备的内存剩余量较小时,电子设备自动触发智能删除程序。
如图7所示,为启用删除动作的示意图。其中各步骤的说明如下:
启动删除指的是,启动删除的操作。这里的启动删除操作不是简单的删除某个单一文件, 是在主设备启动指定的删除功能,例如主机设备设置菜单中存在删除文件按钮等。
内存较低指的是,内存较低的场景。设备内存较低时,会有弹框提示(每个系统的提醒样式不一样,但都会存在提示)。弹框内部一般会存在清理内存的入口,此处流程是说明此时将要触发删除文件的动作。
启用删除动作指的是设备将要清理内存时,这里会提示是否使用“删除动作”。如果启动该操作,则会走下一步的逻辑;如果不启用,则直接结束该流程。
从数据库取数据指的是,确定启用“删除动作”后,需要在数据库中将记录的文件路径、文件类型、图片的文件属性的数据取出。其中,数据库具体可以为主设备内的数据库,也可以为服务器中的数据库。
删除文件指的是,数据库中拿出数据后,在系统中索引指定路径下的文件,以及判断文件或者图片类型(即,图片的文件属性),确认后删除文件。
如图8所示,为记录数据操作和取数据操作的示意图。其中,记录数据操作指的是当系统存在删除文件的操作时,将文件的路径与文件属性记录在数据库中,取数据操作指的是当启用删除动作时,在数据库中找到满足条件的文件路径以及文件属性,并将数据返给调用处。
本发明实施方式相对于现有技术而言,通过记录历史删除操作中已删除文件的特征信息,其中,特征信息包括已删除文件的文件属性和/或已删除文件的保存路径,根据历史删除操作中已删除文件的特征信息,从电子设备内当前保存的文件中选取待删除文件,对待删除文件进行删除,从而能够依据用户的删除习惯对电子设备内当前保存的文件进行智能删除,无需用户每次都手动选择需要删除的文件,减少人为重复的手动删除操作,能够快速对电子设备进行内存清理,操作简单,便捷度高。
由于上述实施例相互对应,因此各实施例可互相配合实施。各实施例中提到的相关技术细节、所能达到的技术效果在其他实施例中也同样可以实现,为了减少重复,这里不再赘述。
本发明第二实施方式涉及一种电子设备,如图9所示,包括:至少一个处理器501,以及与至少一个处理器501通信连接的存储器502,其中,存储器502存储有可被至少一个处理器501执行的指令,指令被至少一个处理器501执行,以使至少一个处理器501能够执行如上述的电子设备的控制方法。
其中,存储器502和处理器501采用总线方式连接,总线可以包括任意数量的互联的总线和桥,总线将一个或多个处理器501和存储器502的各种电路连接在一起。总线还可以将诸如外围设备、稳压器和功率管理电路等之类的各种其他电路连接在一起,这些都是本领域所公知的,因此,本文不再对其进行进一步描述。总线接口在总线和收发机之间提供接口。收发机可以是一个元件,也可以是多个元件,比如多个接收器和发送器,提供用于在传输介质上与各种其他装置通信的单元。经处理器501处理的数据通过天线在无线介质上进行传输,进一步,天线还接收数据并将数据传送给处理器501。
处理器501负责管理总线和通常的处理,还可以提供各种功能,包括定时,外围接口,电压调节、电源管理以及其他控制功能。而存储器502可以被用于存储处理器501在执行操作时所使用的数据。
本发明第三实施方式涉及一种计算机可读存储介质,存储有计算机程序,计算机程序被处理器执行时实现上述的电子设备的控制方法实施例。
即,本领域技术人员可以理解,实现上述实施例方法中的全部或部分步骤是可以通过程 序来指令相关的硬件来完成,该程序存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本发明各个实施例方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。
本领域的普通技术人员可以理解,上述各实施方式是实现本发明的具体实施例,而在实际应用中,可以在形式上和细节上对其作各种改变,而不偏离本发明实施例的精神和范围。
Claims (10)
- 一种电子设备的控制方法,包括:记录历史删除操作中已删除文件的特征信息,其中,所述特征信息包括已删除文件的文件属性和/或已删除文件的保存路径;根据所述历史删除操作中已删除文件的特征信息,从所述电子设备内当前保存的文件中选取待删除文件;对所述待删除文件进行删除。
- 根据权利要求1所述的电子设备的控制方法,其中,所述特征信息包括已删除文件的文件属性,所述文件属性包括文件类型;所述根据所述历史删除操作中已删除文件的特征信息,从所述电子设备内当前保存的文件中选取待删除文件,包括:将所述历史删除操作中删除次数大于或等于预设次数的已删除文件的文件类型,作为预删除文件类型;从所述电子设备内当前保存的文件中选取预删除文件类型的文件,作为所述待删除文件。
- 根据权利要求1所述的电子设备的控制方法,其中,在所述记录历史删除操作中已删除文件的特征信息之前,还包括:判断所述已删除文件是否为图片;在所述已删除文件为图片时,所述文件属性包括:所述图片的来源类型、所述图片的拍摄对象类型、所述图片的清晰度类型中至少一者;所述根据所述历史删除操作中已删除文件的特征信息,从所述电子设备内当前保存的文件中选取待删除文件,包括:将所述历史删除操作中删除次数大于或等于预设次数的已删除图片的文件属性,作为预删除文件属性;从所述电子设备内当前保存的文件中选取具备预删除文件属性的文件,作为所述待删除文件。
- 根据权利要求1所述的电子设备的控制方法,其中,在所述记录历史删除操作中已删除文件的特征信息之前,还包括:判断历史删除操作中已删除文件是否在被删除之前保存于文件夹内;所述记录历史删除操作中已删除文件的特征信息,包括:若所述已删除文件在被删除之前保存于文件夹内,记录所述已删除文件的保存路径;所述根据所述历史删除操作中已删除文件的特征信息,从所述电子设备内当前保存的文件中选取待删除文件,包括:将所述历史删除操作中删除次数大于或等于预设次数的已删除文件的保存路径,作为预删除路径;从所述电子设备内当前保存的文件中选取预删除路径下保存的文件,作为所述待删除文件。
- 根据权利要求1所述的电子设备的控制方法,其中,所述根据所述历史删除操作中已删除文件的特征信息,从所述电子设备内当前保存的文件中选取待删除文件,包括:将所述历史删除操作中删除次数大于或等于预设次数的已删除文件的保存路径,作为预删除路径;和/或将所述历史删除操作中删除次数大于或等于预设次数的已删除文件的文件属性,作为预删除文件属性。
- 根据权利要求5所述的电子设备的控制方法,其中,所述对所述待删除文件进行删除包括:在所述预删除路径和预删除文件属性同时存在的情况下,对所述预删除路径当前保存的文件中选取具备所述预删除文件属性的文件进行删除。
- 根据权利要求1所述的电子设备的控制方法,其中,所述根据所述历史删除操作中已删除文件的特征信息,从所述电子设备内当前保存的文件中选取待删除文件之前,还包括:在所述电子设备的显示屏上显示清理按钮;判断是否接收到所述清理按钮的触发指令;在接收到所述触发指令后,再执行所述根据所述历史删除操作中已删除文件的特征信息,从所述电子设备内当前保存的文件中选取待删除文件。
- 根据权利要求1所述的电子设备的控制方法,其中,所述根据所述历史删除操作中已删除文件的特征信息,从所述电子设备内当前保存的文件中选取待删除文件之前,还包括:判断所述电子设备的内存剩余量是否小于或等于预设阈值;在所述内存剩余量小于或等于预设阈值时,再执行所述根据所述历史删除操作中已删除文件的特征信息,从所述电子设备内当前保存的文件中选取待删除文件。
- 一种电子设备,包括:至少一个处理器;以及,与所述至少一个处理器通信连接的存储器;其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行如权利要求1至8中任一项所述的电子设备的控制方法。
- 一种计算机可读存储介质,存储有计算机程序,其中,所述计算机程序被处理器执行时实现权利要求1至8中任一项所述的电子设备的控制方法。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111389416.3 | 2021-11-22 | ||
CN202111389416.3A CN116150096A (zh) | 2021-11-22 | 2021-11-22 | 一种电子设备的控制方法、电子设备及可读存储介质 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2023087857A1 true WO2023087857A1 (zh) | 2023-05-25 |
Family
ID=86356899
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2022/117367 WO2023087857A1 (zh) | 2021-11-22 | 2022-09-06 | 一种电子设备的控制方法、电子设备及可读存储介质 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN116150096A (zh) |
WO (1) | WO2023087857A1 (zh) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116594961A (zh) * | 2023-07-19 | 2023-08-15 | 安徽华云安科技有限公司 | 文件处理方法、装置、设备以及存储介质 |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103761306A (zh) * | 2014-01-22 | 2014-04-30 | 深圳市欧珀通信软件有限公司 | 一种智能终端文件清理方法及装置 |
CN108153862A (zh) * | 2017-12-22 | 2018-06-12 | 联想(北京)有限公司 | 文件清理方法、装置和系统 |
CN110543451A (zh) * | 2019-07-30 | 2019-12-06 | 华为技术有限公司 | 一种高效清理设备文件的方法及装置 |
CN111797076A (zh) * | 2019-04-09 | 2020-10-20 | Oppo广东移动通信有限公司 | 数据清理方法、装置、存储介质及电子设备 |
CN113688104A (zh) * | 2021-07-28 | 2021-11-23 | 济南浪潮数据技术有限公司 | 一种文件清理方法、装置、设备及可读存储介质 |
-
2021
- 2021-11-22 CN CN202111389416.3A patent/CN116150096A/zh active Pending
-
2022
- 2022-09-06 WO PCT/CN2022/117367 patent/WO2023087857A1/zh unknown
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103761306A (zh) * | 2014-01-22 | 2014-04-30 | 深圳市欧珀通信软件有限公司 | 一种智能终端文件清理方法及装置 |
CN108153862A (zh) * | 2017-12-22 | 2018-06-12 | 联想(北京)有限公司 | 文件清理方法、装置和系统 |
CN111797076A (zh) * | 2019-04-09 | 2020-10-20 | Oppo广东移动通信有限公司 | 数据清理方法、装置、存储介质及电子设备 |
CN110543451A (zh) * | 2019-07-30 | 2019-12-06 | 华为技术有限公司 | 一种高效清理设备文件的方法及装置 |
CN113688104A (zh) * | 2021-07-28 | 2021-11-23 | 济南浪潮数据技术有限公司 | 一种文件清理方法、装置、设备及可读存储介质 |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116594961A (zh) * | 2023-07-19 | 2023-08-15 | 安徽华云安科技有限公司 | 文件处理方法、装置、设备以及存储介质 |
CN116594961B (zh) * | 2023-07-19 | 2023-09-22 | 安徽华云安科技有限公司 | 文件处理方法、装置、设备以及存储介质 |
Also Published As
Publication number | Publication date |
---|---|
CN116150096A (zh) | 2023-05-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11044511B2 (en) | Systems and methods for saving and restoring scenes in a multimedia system | |
WO2015143880A1 (zh) | 智能家电控制方法、装置及终端 | |
JP4914378B2 (ja) | 情報処理装置及び方法、プログラム、記憶媒体 | |
TWI784942B (zh) | 播放中影片的擷取方法及裝置 | |
US10198236B2 (en) | Methods, systems, and media for providing a remote control interface | |
US20120117271A1 (en) | Synchronization of Data in a Distributed Computing Environment | |
US8665337B2 (en) | Image sharing system, image managing server, and control method and program thereof | |
US20060055992A1 (en) | Display device having electronic album function and method for controlling the same | |
WO2017030013A1 (ja) | 制御装置、制御方法及び制御システム | |
TWI747031B (zh) | 視頻播放方法、裝置和多媒體資料播放方法 | |
US20120120261A1 (en) | Camera-enabled remote control apparatus for consumer electronic appliances | |
US20120170904A1 (en) | Operation assistance apparatus and operation assistance method | |
WO2023087857A1 (zh) | 一种电子设备的控制方法、电子设备及可读存储介质 | |
CN105808231B (zh) | 录制与播放脚本的系统及方法 | |
US20130191774A1 (en) | Method and apparatus for executing application file and screen capture method and apparatus therefor | |
US20140237519A1 (en) | Control device and control method | |
US20060074744A1 (en) | Method and electronic device for creating personalized content | |
US9693112B2 (en) | Remote control system for a smart television | |
JP5279389B2 (ja) | 映像表示装置及びその制御方法 | |
CN109525792B (zh) | 会议录制管理方法及系统、终端和计算机可读存储介质 | |
CN103974129B (zh) | 节目录制装置及方法 | |
CN205584378U (zh) | 一种智能化物联网安防系统 | |
WO2024070346A1 (ja) | 撮像装置及びその制御方法及びプログラム、並びに、システム | |
WO2024070347A1 (ja) | 記録装置及びその制御方法及びプログラム、並びにシステム | |
US20240119024A1 (en) | Communication apparatus and control method |
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: 22894397 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |