WO2020206697A1 - 应用处理方法、装置、存储介质及电子设备 - Google Patents
应用处理方法、装置、存储介质及电子设备 Download PDFInfo
- Publication number
- WO2020206697A1 WO2020206697A1 PCT/CN2019/082550 CN2019082550W WO2020206697A1 WO 2020206697 A1 WO2020206697 A1 WO 2020206697A1 CN 2019082550 W CN2019082550 W CN 2019082550W WO 2020206697 A1 WO2020206697 A1 WO 2020206697A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- category
- models
- electronic device
- application
- applications
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
Definitions
- This application belongs to the technical field of electronic equipment, and in particular relates to an application processing method, device, storage medium and electronic equipment.
- a user can install various applications on the electronic devices to realize various functions. For example, a user can install a video playback application on an electronic device to realize the video playback function. Alternatively, the user can install a game application on the electronic device to play games and the like. In the related art, the electronic device can determine whether a certain application can be cleaned from the electronic device, so as to save the system resources of the electronic device.
- the embodiments of the present application provide an application processing method, device, storage medium, and electronic equipment, which can improve the flexibility of the electronic equipment in determining whether the application can be cleaned.
- this embodiment provides an application processing method applied to an electronic device, the electronic device includes one or more applications, and the application processing method includes:
- this embodiment provides an application processing apparatus applied to an electronic device, and the electronic device includes one or more applications, including:
- the determining module is used to determine the category to which each application in the electronic device belongs;
- the selection module is configured to select the target model of each corresponding category from at least two models configured in advance for the application of each category;
- the judgment module is used for judging whether the application of the corresponding category can be cleaned by using each of the selected target models.
- this embodiment provides a storage medium on which a computer program is stored, wherein when the computer program is executed on a computer, the computer is caused to execute the process in the application processing method provided in this embodiment.
- this embodiment provides an electronic device including a memory and a processor, the electronic device includes one or more applications, and the processor is configured to execute: by calling a computer program stored in the memory:
- FIG. 1 is a schematic flowchart of an application processing method provided by an embodiment of the present application.
- FIG. 2 is another schematic flowchart of the application processing method provided by an embodiment of the present application.
- 3 to 5 are schematic diagrams of scenarios of application processing methods provided by embodiments of the present application.
- Fig. 6 is a schematic structural diagram of an application processing apparatus provided by an embodiment of the present application.
- FIG. 7 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
- FIG. 8 is a schematic diagram of another structure of an electronic device provided by an embodiment of the present application.
- the execution subject of the embodiments of the present application may be an electronic device such as a smart phone or a tablet computer.
- FIG. 1 is a schematic flowchart of an application processing method provided by an embodiment of the present application.
- the application processing method may be applied to an electronic device, and the electronic device may include one or more applications.
- the process of the application processing method may include:
- the category to which each application in the electronic device belongs is determined.
- a user can install a video playback application on an electronic device to realize the video playback function.
- users can install game applications on electronic devices to play games and the like.
- the electronic device can determine whether a certain application can be cleaned from the electronic device according to the user's application usage behavior habit, so as to save the system resources of the electronic device.
- the electronic device uses the same model to determine whether all applications in the electronic device can be cleaned. That is, in the related art, the electronic device has poor flexibility when determining whether the application can be cleaned.
- the electronic device may first determine the category to which each application in the background belongs.
- the application categories may include, for example, video playback, instant messaging, payment, navigation, music, games, news reading, and so on. It can be understood that the examples here do not constitute a limitation to this embodiment.
- the electronic device can first determine the category to which each background application belongs. For example, in this embodiment, the electronic device determines that the applications A, C, and D in the background belong to the first category, the applications B, H, and I belong to the second category, and the applications E, F, G, J, and K belong to the third category. .
- a target model of each corresponding category is selected from at least two models configured in advance for applications of each category.
- the electronic device may select the target model of each corresponding category from at least two models pre-configured for each category of applications.
- the electronic device is pre-configured with three models for the first category of applications, namely models a1, a2, and a3.
- the electronic device is also pre-configured with 3 models for the second category of applications, namely models b1, b2, and b3.
- the electronic device is pre-configured with 4 models for the third category of applications, namely c1, c2, c3, and c4.
- the electronic device may select the target model of the first category (for example, the first target model) from the models a1, a2, and a3 pre-configured for the first category, and select the model b1, b2, and models pre-configured for the second category.
- select the target model of the second category in b3 for example, the second target model
- select the target model of the third category for example, the third target
- the electronic device can use each selected target model to determine whether the background application of the corresponding category can be cleaned.
- the electronic device can use the model a2 to determine whether the application of the first category in the background can be cleaned .
- the electronic device can use the model b1 to determine whether the applications of the second category in the background can be cleaned.
- the electronic device can use the model c4 to determine whether the applications of the third category in the background can be cleaned .
- the electronic device may first determine the category to which each application belongs, and select the target model of each corresponding category from at least two models pre-configured for each category of applications. After that, the electronic device can use the selected target models to determine whether the corresponding category of applications can be cleaned. Therefore, compared with the solution in the related art that the electronic device uses the same model to determine whether all applications can be cleaned, this embodiment has better flexibility in judging whether the applications can be cleaned.
- FIG. 2 is a schematic flowchart of another application processing method according to an embodiment of the application.
- the application processing method may be applied to an electronic device, and the electronic device may include one or more applications.
- the process of the application processing method may include:
- the electronic device determines the category to which each application in the background belongs.
- the electronic device may first determine the category to which each application in the background belongs.
- the application categories may include, for example, video playback, instant messaging, payment, navigation, music, games, news reading, and so on. It can be understood that the examples here do not constitute a limitation to this embodiment.
- the electronic device may first determine the category to which each background application belongs. For example, in this embodiment, the electronic device determines that the applications A, C, and D in the background belong to the first category, the applications B, H, and I belong to the second category, and the applications E, F, G, J, and K belong to the third category. .
- the electronic device determines the current scene it is in.
- the electronic device can determine the current scene it is in.
- the electronic device may obtain the current environmental parameters, and identify the current scene according to the current environmental parameters.
- the environmental parameters may include at least the value of ambient light brightness, location data, and environmental noise value.
- the environmental parameters may also include such as remaining power value, time and so on.
- the electronic device selects a target model corresponding to the current scene for each corresponding category from at least two models configured for each category of applications in advance, wherein the electronic device is configured for different models and different scenarios for each category of applications. correspond.
- the electronic device may select a target model corresponding to the current scene for each corresponding category from at least two models configured for each category of applications in advance.
- the electronic device may be configured with at least two models for each category of applications, and the different models configured for each category of applications correspond to different scenarios.
- the model configured by the electronic device for each category of application may be an algorithm model based on deep learning, such as adaptive algorithm (Adaptive algorithm), Convolutional Neural Networks (CNN), Recurrent neural network (Recurrent Neural Network, RNN), Deep Belief Neural Network (DBN-DNN), etc.
- adaptive algorithm Adaptive algorithm
- CNN Convolutional Neural Networks
- RNN Recurrent Neural Network
- DNN-DNN Deep Belief Neural Network
- the electronic device is configured with three models for the first category of applications, namely models a1, a2, and a3.
- the model a1 corresponds to the first scene
- the model a2 corresponds to the second scene
- the model a3 corresponds to the third scene.
- Electronic equipment is also equipped with 3 models for the second category of applications, namely models b1, b2, and b3.
- the model b1 corresponds to the first scene
- the model b2 corresponds to the second scene
- the model b3 corresponds to the third scene.
- Electronic equipment is equipped with 4 models for the third category of applications, namely c1, c2, c3, and c4.
- the model c1 corresponds to the first scene
- the model c2 corresponds to the second scene
- the model c3 corresponds to the third scene
- the model c4 corresponds to the fourth scene.
- the electronic device determines that the current scene is the third scene. Then, the electronic device may determine the model a3 in the models a1, a2, and a3 corresponding to the first category as the target model (for example, the first target model) corresponding to the first category, and the models b1, b2 corresponding to the second category
- the model b3 in b3 is determined as the target model corresponding to the second category (for example, the second target model)
- the model c3 in the models c1, c2, c3, and c4 corresponding to the third category is determined as the third category corresponding
- the target model for example, the third target model).
- the electronic device determines whether the background application of the corresponding category can be cleaned.
- the electronic device can use each selected target model to determine whether the background application of the corresponding category can be cleaned.
- the electronic device may use the first target model a3 to determine whether the applications of the first category in the background can be cleaned.
- the electronic device can use the second target model b3 to determine whether the applications of the second category in the background can be cleaned.
- the electronic device can use the third target model c3 to determine whether the applications of the third category in the background can be cleaned.
- the electronic device can detect whether there is an application that is judged to be cleanable from the background, that is, the target application.
- the electronic device can perform other operations.
- the electronic device In 205, if it is determined that there is a target application that can be cleaned from the background, the electronic device generates query information, which is used to inquire whether to clear the target application from the background.
- the electronic device determines that the application D can be cleaned from the background.
- the electronic device determines that none of the applications B, H, and I can be cleaned from the background.
- the electronic device determines that the applications F and K can be cleaned from the background. Then, the electronic device can determine the applications D, F, and K as target applications. After that, the electronic device can generate an inquiry message, which can be used to inquire the user whether to clear these target applications from the background.
- the electronic device can perform other operations without clearing these target applications from the background.
- the electronic device clears the target application from the background.
- the electronic device can clear the target applications D, F, and K from the background, thereby Avoid background applications D, F, K consuming system resources.
- the electronic device when the electronic device determines that an application can be cleaned from the background, it can generate inquiry information, and only when the user agrees to clean the application from the background
- the application is cleaned from the background, which can prevent an application from being cleaned from the background without the user's knowledge, that is, to prevent the user from mistakenly thinking that an error occurs in the operation of the electronic device and the background application is mistakenly cleaned, thereby improving the user experience.
- this embodiment may further include the following process:
- the electronic device classifies the application to obtain at least one category
- the electronic device is configured with at least two models for each category obtained by classification.
- electronic equipment includes applications A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, and Q. Then, electronic devices can classify these applications first. For example, applications A, C, and D belong to the same category of applications, applications B, H, and I belong to the same category of applications, applications E, F, G, J, and K belong to the same category of applications, and applications L, M, and N belong to the same category of applications. Applications O, P, and Q belong to the same category of applications. That is, applications in electronic devices can be divided into 5 different categories.
- the electronic device can configure at least two models for the classified applications.
- applications A, C, and D are applications of the first category, and the electronic device configures three models for the applications of the first category, namely models a1, a2, and a3.
- applications B, H, and I are applications of the second category, and the electronic device is configured with three models for the application of the second category, namely models b1, b2, and b3.
- applications E, F, G, J, and K are the third category of applications, and the electronic device is configured with 4 models for the third category of applications, namely models c1, c2, c3, and c4.
- the models configured for different types of applications may be the same, partially the same, or completely different, which is not specifically limited in this embodiment.
- the model a1 corresponding to the application of the first category is the same as the model b1 corresponding to the application of the second category, while the models a2 and a3 corresponding to the application of the first category are different from the models b2 and b3 corresponding to the application of the second category. ,and many more.
- the process of configuring at least two models for each category obtained by classification in this embodiment may include:
- the electronic device obtains at least three models, wherein the input parameters used by each of the at least three models have corresponding attributes;
- the electronic device determines the target attribute corresponding to each category of applications obtained by classification
- the electronic device selects at least two models from the at least three models for each category of application, and selects the obtained At least two models are determined as models allocated to each corresponding category.
- the input parameters used by each model have corresponding attributes.
- one of the input parameters used by model a is the running time of the application in the foreground, and this input parameter has a time attribute.
- the electronic device can determine the target attribute corresponding to each category of application according to a preset strategy. For example, the electronic device may pre-set the attribute corresponding to the application of the video playback category as the time attribute (that is, the target attribute corresponding to the application of the video playback category is the time attribute), and pre-set the attribute corresponding to the application of the instant messaging category as the text attribute (ie The target attribute corresponding to the application of the instant messaging application category is a text attribute), etc., thereby forming a preset strategy.
- the electronic device can, according to the target attribute corresponding to the category and the attributes of the input parameters used in each model of models a, b, c, d, e, f, g, from the model a, b, Select at least two models from c, d, e, f, and g, and determine them as models allocated to each corresponding category.
- the target attribute is the time attribute.
- the input parameters used in models a, b, and c in models a, b, c, d, e, f, and g have time attributes, while the input parameters used in models d, e, f, and g do not have time.
- the electronic device can determine the models a, b, and c as models corresponding to the application of the video playback category.
- the target attribute is a text attribute.
- the input parameters used by models b, c, e, and f in models a, b, c, d, e, f, and g have text attributes, while the input parameters used by models a, d, and g do not have text
- the electronic device can determine the models b, c, e, and f as the models corresponding to the instant messaging application.
- this embodiment may further include the following process:
- the electronic device establishes a corresponding relationship between the scene and the pre-configured model for each category.
- selecting a target model corresponding to the current scene for each corresponding category from at least two pre-configured models for each category of applications may include: according to the corresponding relationship, from at least two pre-configured models for each category of applications Among these models, the target model corresponding to the current scene is selected for each corresponding category.
- the electronic device may establish a table of correspondences between scenes and models. For example, the electronic device may establish a corresponding relationship between model a and the first scene, establish a corresponding relationship between model b and the second scene, establish a corresponding relationship between model c and the third scene, and generate the first corresponding relationship based on the established corresponding relationships. table.
- the electronic device may establish a table of correspondences between scenarios and models. For example, the electronic device may establish a corresponding relationship between model b and the first scene, establish a corresponding relationship between model c and the second scene, establish a corresponding relationship between model e and the third scene, establish a corresponding relationship between model f and the fourth scene, and A second correspondence table is generated according to these established correspondences.
- the electronic device may select the corresponding target model according to the first correspondence table. For example, if the current scene is the first scene, then according to the first correspondence table, the electronic device can determine model a as the target model of the application of the video playback category at this time, and use model a to determine the video playback category in the background at this time Whether the application can be cleaned up.
- the electronic device may select the corresponding target model according to the above-mentioned second correspondence table . For example, if the current scene is the first scene, then according to the second correspondence table, the electronic device can determine model b as the target model of the instant messaging application at this time, and use model b to determine the instant messaging type in the background at this time Whether the application can be cleaned up.
- the electronic device when an application is switched to the background, can count the number of applications currently resident in the background, and detect whether the number of background applications reaches a preset value. If it is detected that the number of background applications reaches the preset value, the electronic device can be triggered to determine whether the background applications can be cleaned, and the process 201 is entered.
- the electronic device may count the power consumption value of applications currently resident in the background, and detect whether the power consumption value of these background applications reaches a preset threshold. If it is detected that the power consumption value of the background application reaches the preset threshold, the electronic device can be triggered to determine whether the background application can be cleaned, and the process 201 is entered.
- FIG. 3 to FIG. 5 are schematic diagrams of scenarios of the application processing method provided by the embodiments of the application.
- the electronic device can obtain the number of applications currently resident in the background, and detect whether the number reaches a preset value. For example, in this embodiment, the electronic device detects that the number of applications currently resident in the background has reached a preset threshold. In this case, it can be considered that there are more applications resident in the current background, and these background applications will consume more system resources.
- the electronic device can determine whether each application in the background can be cleaned up. For example, at this time, there are a total of 11 applications in the background, namely applications A, B, C, D, E, F, G, H, I, J, and K.
- the electronic device may first determine the category to which each background application belongs. For example, in this embodiment, the electronic device determines that the applications A, C, and D in the background belong to the first category, the applications B, H, and I belong to the second category, and the applications E, F, G, J, and K belong to the third category. .
- the electronic device may first obtain the current environmental parameters, and identify the current scene in which the electronic device is located according to the current environmental parameters. For example, the electronic device recognizes that the current scene it is in is the second scene.
- the electronic device may select a target model corresponding to the current scene for each corresponding category from at least two models pre-configured for each category of applications.
- the electronic device may be configured with at least two models for each category of applications in advance, and the electronic device has pre-established the corresponding relationship between the scenario and the model configured for each category of applications, and different models correspond to different models. Scenes.
- the electronic device is configured with three models for the first category of applications, namely models a1, a2, and a3.
- the model a1 corresponds to the first scene
- the model a2 corresponds to the second scene
- the model a3 corresponds to the third scene.
- Electronic equipment is also equipped with 3 models for the second category of applications, namely models b1, b2, and b3.
- the model b1 corresponds to the first scene
- the model b2 corresponds to the second scene
- the model b3 corresponds to the third scene.
- Electronic equipment is equipped with 4 models for the third category of applications, namely c1, c2, c3, and c4.
- the model c1 corresponds to the first scene
- the model c2 corresponds to the second scene
- the model c3 corresponds to the third scene
- the model c4 corresponds to the fourth scene.
- the electronic device may determine the model a2 in the models a1, a2, and a3 corresponding to the first category as the target model (for example, the first target model) corresponding to the first category, and set The model b2 in the models b1, b2, and b3 corresponding to the second category is determined as the target model corresponding to the second category (for example, the second target model), and the models c1, c2, c3, and c4 corresponding to the third category
- the model c2 is determined as the target model corresponding to the third category (for example, the third target model).
- the electronic device can use the selected target models to determine whether the background application of the corresponding category can be cleaned. For example, the electronic device can use the model a2 to determine whether the applications A, C, and D of the first category in the current background can be cleaned. The electronic device can use the model b2 to determine whether the applications B, H, and I of the second category in the current background can be cleaned. The electronic device can use the model c2 to determine whether the applications E, F, G, J, and K of the third category in the current background can be cleaned.
- the electronic device determines that applications A, C, D, E, and H can be cleaned from the background.
- the electronic device can generate a query message, which can be used to query the user whether to clear the applications A, C, D, E, and H from the background, as shown in FIG. 4.
- the user after receiving the inquiry information, the user chooses to agree to clear applications A, C, D, E, and H from the background, as shown in FIG. 5. Then, the electronic device can clean the applications A, C, D, E, and H from the background, thereby saving system resources.
- FIG. 6 is a schematic structural diagram of an application processing apparatus provided by an embodiment of the application.
- the application processing apparatus may be applied to electronic equipment, and the electronic equipment includes one or more applications.
- the application processing device 300 may include: a determination module 301, a selection module 302, and a judgment module 303.
- the determining module 301 is used to determine the category to which each application in the electronic device belongs.
- the selecting module 302 is configured to select the target model of each corresponding category from at least two models pre-configured for the applications of each category.
- the judging module 303 is used for judging whether the application of the corresponding category can be cleaned by using each of the selected target models.
- the determining module 301 may also be used to determine the current scene where the electronic device is located.
- the selection module 302 may be used to select a target model corresponding to the current scene for each corresponding category from at least two models configured for each category of applications in advance, wherein the electronic device is each The different models of application configurations of the categories correspond to different scenarios.
- the determining module 301 may also be used to:
- the determining module 301 may be used to:
- At least two models are selected from the at least three models for the application of each category, and the selected at least two models Each model is determined as the model allocated to each corresponding category.
- the determining module 301 is further configured to: establish a corresponding relationship between a scene and a pre-configured model for each of the categories.
- the selection module 302 may be configured to select a target model corresponding to the current scene for each corresponding category from at least two models configured in advance for each category of applications according to the corresponding relationship.
- the determining module 301 may be used to:
- the determining module 301 may be used to:
- the environmental parameters include at least an environmental light brightness value, location data, and environmental noise value.
- the embodiment of the present application provides a computer-readable storage medium on which a computer program is stored.
- the computer program is executed on a computer, the computer is caused to execute the process in the application processing method provided in this embodiment.
- An embodiment of the present application further provides an electronic device, including a memory and a processor, and the processor is configured to execute a process in the application processing method provided in this embodiment by calling a computer program stored in the memory.
- the aforementioned electronic device may be a mobile terminal such as a tablet computer or a smart phone.
- FIG. 7 is a schematic structural diagram of an electronic device provided by an embodiment of the application.
- the electronic device 400 may include components such as a display screen 401, a memory 402, and a processor 403. Those skilled in the art can understand that the structure of the electronic device shown in FIG. 7 does not constitute a limitation on the electronic device, and may include more or fewer components than shown in the figure, or a combination of certain components, or different component arrangements.
- the display screen 401 can be used to display information such as images and text.
- the memory 402 can be used to store application programs and data.
- the application program stored in the memory 402 contains executable code.
- Application programs can be composed of various functional modules.
- the processor 403 executes various functional applications and data processing by running application programs stored in the memory 402.
- the processor 403 is the control center of the electronic device. It uses various interfaces and lines to connect the various parts of the entire electronic device. It executes the electronic device by running or executing the application program stored in the memory 402 and calling the data stored in the memory 402. The various functions and processing data of the electronic device can be used to monitor the electronic equipment as a whole.
- the electronic device includes one or more applications
- the processor 403 in the electronic device loads the executable code corresponding to the process of one or more applications into the memory 402 according to the following instructions , And the processor 403 runs the application program stored in the memory 402 to execute:
- the electronic device 500 may include a display screen 501, a memory 502, a processor 503, a speaker 504, a microphone 505 and other components.
- the display screen 501 can be used to display information such as images and text.
- the display screen 501 may display query information for querying the user.
- the memory 502 can be used to store application programs and data.
- the application program stored in the memory 502 contains executable code.
- Application programs can be composed of various functional modules.
- the processor 503 executes various functional applications and data processing by running application programs stored in the memory 502.
- the processor 503 is the control center of the electronic device. It uses various interfaces and lines to connect the various parts of the entire electronic device, and executes the electronic device by running or executing the application program stored in the memory 502 and calling the data stored in the memory 502
- the various functions and processing data of the electronic device can be used to monitor the electronic equipment as a whole.
- the electronic device includes one or more applications
- the processor 503 in the electronic device loads the executable code corresponding to the process of one or more applications into the memory 502 according to the following instructions , And the processor 503 runs the application program stored in the memory 502 to execute:
- the processor 503 may further execute: determining the current scene in which the electronic device is located.
- the processor 503 selects the target model of each corresponding category from the at least two pre-configured models for the applications of each category, it may execute: from at least two pre-configured models for the applications of each category.
- a target model corresponding to the current scene is selected for each corresponding category, and different models configured by the electronic device for the applications of each category correspond to different scenes.
- the processor 503 may further execute: classify the application in the electronic device to obtain at least one category; Configure at least two models.
- the processor 503 when the processor 503 executes the configuration of at least two models for each category obtained by classification, it may execute: obtain at least three models, wherein each of the at least three models is used The input parameters of the at least three models have corresponding attributes; according to the preset strategy, the target attributes corresponding to the applications of each category obtained by classification are determined; according to the target attributes corresponding to the categories and the attributes of the input parameters used by the at least three models, each The application of the category selects at least two models from the at least three models, and determines the selected at least two models as models allocated to each corresponding category.
- the processor 503 may further execute: establishing a corresponding relationship between a scene and a pre-configured model for each category.
- the processor 503 executes the selection of a target model corresponding to the current scene for each corresponding category from at least two models configured in advance for each category of applications, it may execute: according to the corresponding relationship, Select a target model corresponding to the current scene for each corresponding category from at least two models configured for each category of application in advance.
- the processor 503 when the processor 503 executes to determine the current scene in which the electronic device is located, it may execute: obtain current environmental parameters; and identify the current scene in which the electronic device is located according to the current environmental parameters .
- the processor 503 when the processor 503 executes the acquiring of the current environmental parameters, it may execute: acquiring the current environmental parameters, where the environmental parameters at least include an ambient light brightness value, location data, and an ambient noise value.
- the application processing device provided in the embodiment of the application belongs to the same concept as the application processing method in the above embodiment, and any method provided in the application processing method embodiment can be run on the application processing device.
- any method provided in the application processing method embodiment can be run on the application processing device.
- For the implementation process refer to the application processing method embodiment, which will not be repeated here.
- the computer program may be stored in a computer readable storage medium, such as stored in a memory, and executed by at least one processor.
- the execution process may include the procedure of the application processing method embodiment.
- the storage medium may be a magnetic disk, an optical disk, a read only memory (ROM, Read Only Memory), a random access memory (RAM, Random Access Memory), and the like.
- the application processing device of the embodiment of the present application its functional modules may be integrated in one processing chip, or each module may exist alone physically, or two or more modules may be integrated in one module.
- the above-mentioned integrated modules can be implemented in the form of hardware or software functional modules. If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer readable storage medium, such as a read-only memory, a magnetic disk or an optical disk, etc. .
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
本申请实施例公开了一种应用处理方法,包括:确定电子设备中各应用所属的类别;从预先为各类别的应用配置的至少两个模型中,选取各对应类别的目标模型;利用选取出的各目标模型,判断对应类别的应用是否可清理。
Description
本申请属于电子设备技术领域,尤其涉及一种应用处理方法、装置、存储介质及电子设备。
随着电子设备的各项配置不断提升,用户可以在电子设备上安装各种各样的应用,从而实现各种功能。例如,用户可以在电子设备上安装视频播放应用,从而实现视频播放功能。或者,用户可以在电子设备上安装游戏应用,从而进行游戏等。相关技术中,电子设备可以判断是否可以将某一应用从电子设备中清理,以节省电子设备的系统资源。
发明内容
本申请实施例提供一种应用处理方法、装置、存储介质及电子设备,可以提高电子设备在判断应用是否可清理时的灵活性。
第一方面,本实施例提供一种应用处理方法,应用于电子设备,所述电子设备包括一个或多个应用,所述应用处理方法包括:
确定所述电子设备中各应用所属的类别;
从预先为各所述类别的应用配置的至少两个模型中,选取各对应类别的目标模型;
利用选取出的各所述目标模型,判断对应类别的应用是否可清理。
第二方面,本实施例提供一种应用处理装置,应用于电子设备,所述电子设备包括一个或多个应用,包括:
确定模块,用于确定所述电子设备中各应用所属的类别;
选取模块,用于从预先为各所述类别的应用配置的至少两个模型中,选取各对应类别的目标模型;
判断模块,用于利用选取出的各所述目标模型,判断对应类别的应用是否可清理。
第三方面,本实施例提供一种存储介质,其上存储有计算机程序,其中,当所述计算机程序在计算机上执行时,使得所述计算机执行本实施例提供的应用处理方法中的流程。
第四方面,本实施例提供一种电子设备,包括存储器,处理器,所述电子设备包括一个或多个应用,所述处理器通过调用所述存储器中存储的计算机程序,用于执行:
确定所述电子设备中各应用所属的类别;
从预先为各所述类别的应用配置的至少两个模型中,选取各对应类别的目标模型;
利用选取出的各所述目标模型,判断对应类别的应用是否可清理。
下面结合附图,通过对本申请的具体实施方式详细描述,将使本申请的技术方案及其有益效果显而易见。
图1是本申请实施例提供的应用处理方法的流程示意图。
图2是本申请实施例提供的应用处理方法的另一流程示意图。
图3至图5是本申请实施例提供的应用处理方法的场景示意图。
图6是本申请实施例提供的应用处理装置的结构示意图。
图7是本申请实施例提供的电子设备的结构示意图。
图8是本申请实施例提供的电子设备的另一结构示意图。
请参照图示,其中相同的组件符号代表相同的组件,本申请的原理是以实施在一适当的运算环境中来举例说明。以下的说明是基于所例示的本申请具体实施例,其不应被视为限制本申请未在此详述的其它具体实施例。
可以理解的是,本申请实施例的执行主体可以是诸如智能手机或平板电脑等的电子设备。
请参阅图1,图1是本申请实施例提供的应用处理方法的流程示意图。该应用处理方法可以应用于电子设备中,该电子设备可以包括一个或多个应用。该应用处理方法的流程可以包括:
在101中,确定电子设备中各应用所属的类别。
随着电子设备的各项配置不断提升,用户可以在电子设备上安装各种各样的应用,从而实现各种功能。例如,用户可以在电子设备上安装视频播放应用,从而实现视频播放功能。或者,用户可以在电子设备上安装游戏应用,从而进 行游戏等。相关技术中,电子设备可以根据用户的应用使用行为习惯来判断是否可以将某一应用从电子设备中清理,以节省电子设备的系统资源。然而,相关技术中,电子设备使用同一个模型来判断该电子设备中的所有应用是否可清理。即,相关技术中,电子设备在判断应用是否可以被清理时,其灵活性较差。
在本申请实施例的101中,比如,电子设备可以先确定后台中各应用所属的类别。
在一种实施方式中,应用的类别可以包括如视频播放类、即时通信类、支付类、导航类、音乐类、游戏类、新闻阅读类,等等。可以理解的是,此处举例不构成对本实施例的限定。
例如,当前后台中共包括11个应用,分别为应用A、B、C、D、E、F、G、H、I、J、K。那么,电子设备可以先确定各后台应用所属的类别。例如,本实施例中,电子设备确定出后台中的应用A、C、D属于第一类别,应用B、H、I属于第二类别,应用E、F、G、J、K属于第三类别。
在102中,从预先为各类别的应用配置的至少两个模型中,选取各对应类别的目标模型。
比如,在确定出后台中各应用所属的类别后,电子设备可以从预先为各类别的应用配置的至少两个模型中,选取各对应类别的目标模型。
例如,电子设备预先为第一类别的应用配置了3个模型,分别为模型a1、a2、a3。电子设备预先为第二类别的应用也配置了3个模型,分别为模型b1、b2、b3。电子设备预先为第三类别的应用配置了4个模型,分别为c1、c2、c3、c4。
那么,电子设备可以从预先为第一类别配置的模型a1、a2、a3中选取该第一类别的目标模型(例如为第一目标模型),从预先为第二类别配置的模型b1、b2、b3中选取该第二类别的目标模型(例如为第二目标模型),从预先为第三类别对应的模型c1、c2、c3、c4中选取该第三类别的目标模型(例如为第三目标模型)。
在103中,利用选取出的各目标模型,判断对应类别的应用是否可清理。
比如,在选取出与各类别对应的目标模型后,电子设备可以利用选取出来的各目标模型来判断对应类别的后台应用是否可以清理。
例如,对于第一类别而言,在将模型a1、a2、a3中的模型a2选取为第一 类别的目标模型后,电子设备可以利用该模型a2来判断后台中第一类别的应用是否可清理。对于第二类别而言,在将模型b1、b2、b3中的模型b1选取为第二类别对应的目标模型后,电子设备可以利用该模型b1来判断后台中第二类别的应用是否可清理。对于第三类别而言,在将模型c1、c2、c3、c4中的模型c4选取为第三类别的目标模型后,电子设备可以利用该模型c4来判断后台中第三类别的应用是否可清理。
可以理解的是,本实施例中,电子设备可以先确定各应用所属的类别,并从预先为各类别的应用配置的至少两个模型中选取各对应类别的目标模型。之后,电子设备可以利用选取出的各目标模型来判断对应类别的应用是否可清理。因此,相比于相关技术中电子设备使用同一个模型来判断所有应用是否可清理的方案,本实施例在进行应用是否可清理的判断时具有更好的灵活性。
请参阅图2,图2为本申请实施例提供的应用处理方法的另一流程示意图。该应用处理方法可以应用于电子设备中,该电子设备可以包括一个或多个应用。该应用处理方法的流程可以包括:
在201中,电子设备确定后台中各应用所属的类别。
比如,当需要判断后台应用是否可清理,即进行后台应用是否可清理的判断时,电子设备可以先确定该后台中各应用所属的类别。
在一种实施方式中,应用的类别可以包括如视频播放类、即时通信类、支付类、导航类、音乐类、游戏类、新闻阅读类,等等。可以理解的是,此处举例不构成对本实施例的限定。
例如,当前后台中共包括11个应用,分别为应用A、B、C、D、E、F、G、H、I、J、K。那么,当进行后台应用是否可清理的判断时,电子设备可以先确定各后台应用所属的类别。例如,本实施例中,电子设备确定出后台中的应用A、C、D属于第一类别,应用B、H、I属于第二类别,应用E、F、G、J、K属于第三类别。
在202中,电子设备确定所处的当前场景。
比如,在确定出后台中各应用所属的类别后,电子设备可以确定所处的当前场景。
例如,在一种实施方式中,电子设备可以获取当前的环境参数,并根据该当前的环境参数来识别所处的当前场景。
在一种实施方式中,环境参数至少可以包括环境光亮度值、位置数据、环境噪声值。此外,环境参数还可以包括诸如剩余电量值、时间等。
在203中,电子设备从预先为各类别的应用配置的至少两个模型中,为各对应类别选取与当前场景对应的目标模型,其中该电子设备为各类别的应用配置的不同模型与不同场景对应。
比如,在确定出当前场景后,电子设备可以从预先为各类别的应用配置的至少两个模型中,为各对应类别选取与当前场景对应的目标模型。
在一种实施方式中,电子设备可以为每一类别的应用均配置有至少两个模型,并且为每一类别的应用配置的不同模型与不同的场景对应。
在一些实施方式中,电子设备为各类别的应用配置的模型可以是基于深度学习的算法模型,如自适应学习算法(Adaptive algorithm)、卷积神经网络(Convolutional Neural Networks,CNN)、递归神经网络(Recurrent Neural Network,RNN)、深度置信神经网络(DBN-DNN)等等。可以理解的是,此处举例不构成对本实施例的限定。
例如,电子设备为第一类别的应用配置了3个模型,分别为模型a1、a2、a3。其中,模型a1与第一场景对应,模型a2与第二场景对应,模型a3与第三场景对应。
电子设备为第二类别的应用也配置了3个模型,分别为模型b1、b2、b3。其中,模型b1与第一场景对应,模型b2与第二场景对应,模型b3与第三场景对应。
电子设备为第三类别的应用配置了4个模型,分别为c1、c2、c3、c4。其中,模型c1与第一场景对应,模型c2与第二场景对应,模型c3与第三场景对应,模型c4与第四场景对应。
例如,本实施例中,电子设备确定出当前场景为第三场景。那么,电子设备可以将第一类别对应的模型a1、a2、a3中的模型a3确定为该第一类别对应的目标模型(例如为第一目标模型),将第二类别对应的模型b1、b2、b3中的模型b3确定为该第二类别对应的目标模型(例如为第二目标模型),将第三类别对应的模型c1、c2、c3、c4中的模型c3确定为该第三类别对应的目标模型(例如为第三目标模型)。
在204中,利用选取出的各目标模型,电子设备判断对应类别的后台应用 是否可清理。
比如,在确定出当前场景下各类别的目标模型后,电子设备可以利用选取出的各目标模型来判断对应类别的后台应用是否可清理。
例如,对于后台中第一类别的应用而言,电子设备可以利用第一目标模型a3来判断该后台中第一类别的应用是否可清理。对于后台中第二类别的应用而言,电子设备可以利用第二目标模型b3来判断该后台中第二类别的应用是否可清理。对于后台中第三类别的应用而言,电子设备可以利用第三目标模型c3来判断该后台中第三类别的应用是否可清理。
在利用各类别对应的目标模型来判断对应类别的应用是否可从后台中清理时,电子设备可以检测是否存在被判断为可以从后台中清理的应用,即目标应用。
如果检测到不存在被判断为可以从后台中清理的应用,那么电子设备可以执行其它操作。
如果检测到存在被判断为可以从后台中清理的应用,那么进入205中。
在205中,若判断出存在可从后台中清理的目标应用,则电子设备生成询问信息,该询问信息用于询问是否将该目标应用从后台中清理。
比如,在利用模型a3判断后台中第一类别的应用A、C、D是否可从该后台中清理时,电子设备判断出应用D可以被从后台中清理。在利用模型b3判断后台中第二类别的应用B、H、I是否可从该后台中清理时,电子设备判断出应用B、H、I均不可以被从后台中清理。在利用模型c3判断后台中第三类别的应用E、F、G、J、K是否可从该后台中清理时,电子设备判断出应用F和K可以被从后台中清理。那么,电子设备就可以将应用D、F、K确定为目标应用。之后,电子设备可以生成一则询问信息,该询问信可以用于询问用户是否将这些目标应用从后台中清理。
如果用户不同意将这些目标应用从后台中清理,那么电子设备可以执行其它操作,而不将这些目标应用从后台中清理。
如果用户同意将这些目标应用从后台中清理,那么可以进入206中。
在206中,若接收到将目标应用从后台中清理的信息,则电子设备将该目标应用从后台中清理。
比如,用户在接收到上述询问信息后,向电子设备发出同意将目标应用D、 F、K从后台中清理的信息,则电子设备可以将目标应用D、F、K从后台中清理掉,从而避免后台应用D、F、K消耗系统资源。
可以理解的是,本实施例中,电子设备在判断出某一应用可以被从后台中清理时,可以生成询问信息,并在用户同意将该应用从后台中清理的情况下,才会将该应用从后台中清理,这样可以避免在用户完全不知情的情况下将一个应用从后台中清理,即避免用户误以为电子设备运行发生错误导致后台应用被错误清理,从而提升用户体验。
在一种实施方式中,在流程201之前,本实施例还可以包括如下流程:
电子设备对应用进行分类,得到至少一个类别;
电子设备为分类得到的各类别配置至少两个模型。
比如,电子设备中包括应用A、B、C、D、E、F、G、H、I、J、K、L、M、N、O、P、Q。那么,电子设备可以先对这些应用进行分类。例如,应用A、C、D属于同一类应用,应用B、H、I属于同一类应用,应用E、F、G、J、K属于同一类应用,应用L、M、N属于同一类应用,应用O、P、Q属于同一类应用。即,电子设备中的应用可以被分为5个不同的类别。
在对电子设备中的应用进行分类后,电子设备可以为分类得到的各类别的应用配置至少两个模型。例如,应用A、C、D为第一类别的应用,电子设备为该第一类别的应用配置了3个模型,分别为模型a1、a2、a3。又如,应用B、H、I为第二类别的应用,电子设备为该第二类别的应用配置了3个模型,分别为模型b1、b2、b3。再如,应用E、F、G、J、K为第三类别的应用,电子设备为该第三类别的应用配置了4个模型,分别为模型c1、c2、c3、c4。
在一些实施方式中,为不同类别的应用配置的模型可以相同、部分相同或者完全不同,本实施例对此不做具体限定。例如,第一类别的应用对应的模型a1与第二类别的应用对应的模型b1相同,而第一类别的应用对应的模型a2和a3与第二类别的应用对应的模型b2和b3各不相同,等等。
在一种实施方式中,本实施例中为分类得到的各类别配置至少两个模型的流程,可以包括:
电子设备获取至少三个模型,其中,所述至少三个模型中的每一模型所使用的输入参数具有对应的属性;
根据预设策略,电子设备确定分类得到的各类别的应用对应的目标属性;
根据类别对应的目标属性以及所述至少三个模型所使用的输入参数具有的属性,电子设备为各类别的应用从所述至少三个模型中选取至少两个模型,并将选取得到的所述至少两个模型确定为配置给各对应类别的模型。
比如,电子设备中预先存储有多个模型,分别为a、b、c、d、e、f、g。其中,每一模型所使用的各输入参数具有对应的属性。例如,模型a所使用的其中一个输入参数为应用在前台的运行时长,这个输入参数具有时间属性。
在获取到上述模型a、b、c、d、e、f、g后,电子设备可以根据预设策略确定各类别的应用对应的目标属性。例如,电子设备可以预先设置视频播放类别的应用对应的属性为时间属性(即视频播放类别的应用对应的目标属性为时间属性),并预先设置即时通信类别的应用对应的属性为文本属性(即即时通信应用类别的应用对应的目标属性为文本属性),等等,从而形成预设策略。
之后,电子设备可以根据类别对应的目标属性以及模型a、b、c、d、e、f、g中的各模型所使用的输入参数具有的属性,为各类别的应用从模型a、b、c、d、e、f、g中选取至少两个模型,并将其确定为配置给各对应类别的模型。例如,对于视频播放类别的应用而言,其目标属性为时间属性。而模型a、b、c、d、e、f、g中的模型a、b、c所使用的输入参数具有时间属性,而模型d、e、f、g所使用的输入参数均不具有时间属性,那么电子设备可以将模型a、b、c确定为视频播放类别的应用对应的模型。又如,对于即时通信类别的应用而言,其目标属性为文本属性。而模型a、b、c、d、e、f、g中的模型b、c、e、f所使用的输入参数具有文本属性,而模型a、d、g所使用的输入参数均不具有文本属性,那么电子设备可以将模型b、c、e、f确定为即时通信类别的应用对应的模型。
在一种实施方式中,在流程201之前,本实施例还可以包括如下流程:
电子设备为各类别建立场景与预先配置的模型之间的对应关系。
那么,203中从预先为各类别的应用配置的至少两个模型中,为各对应类别选取与当前场景对应的目标模型,可以包括:根据对应关系,从预先为各类别的应用配置的至少两个模型中,为各对应类别选取与当前场景对应的目标模型。
比如,对于视频播放类别的应用,电子设备在确定出该视频播放类别的应用对应的模型a、b、c后,该电子设备可以建立场景与模型之间的对应关系表。 例如,电子设备可以将模型a与第一场景建立对应关系,将模型b与第二场景建立对应关系,将模型c与第三场景建立对应关系,并根据建立的这些对应关系生成第一对应关系表。
又如,对于即时通信类别的应用,电子设备在确定出该即时通信类别的应用对应的模型b、c、e、f后,该电子设备可以建立场景与模型之间的对应关系表。例如,电子设备可以将模型b与第一场景建立对应关系,将模型c与第二场景建立对应关系,将模型e与第三场景建立对应关系,将模型f与第四场景建立对应关系,并根据建立的这些对应关系生成第二对应关系表。
那么,当需要从预先为视频播放类别的应用配置的模型a、b、c中选取与当前场景对应的目标模型时,电子设备可以根据上述第一对应关系表,选取对应的目标模型。例如,当前场景为第一场景,那么根据第一对应关系表,电子设备可以将模型a确定为此时视频播放类别的应用的目标模型,并利用模型a来判断此时后台中的视频播放类别的应用是否可清理。
又如,当需要从预先为即时通信类别的应用配置的模型b、c、e、f中选取与当前场景对应的目标模型时,电子设备可以根据上述第二对应关系表,选取对应的目标模型。例如,当前场景为第一场景,那么根据第二对应关系表,电子设备可以将模型b确定为此时即时通信类别的应用的目标模型,并利用模型b来判断此时后台中的即时通信类别的应用是否可清理。
在一种实施方式中,当有应用被切换到后台后,电子设备可以统计当前后台驻留的应用的数量,并检测后台应用的数量是否达到预设数值。如果检测到后台应用的数量达到了预设数值,那么可以触发电子设备对后台的应用进行是否可清理的判断,进入流程201。
在另一种实施方式中,电子设备可以统计当前后台驻留的应用所消耗的电量值,并检测这些后台应用消耗的电量值是否达到预设阈值。如果检测到后台应用消耗的电量值达到了预设阈值,那么可以触发电子设备对后台的应用进行是否可清理的判断,进入流程201。
请参阅图3至图5,图3至图5为本申请实施例提供的应用处理方法的场景示意图。
比如,如图3所示,用户在使用应用A的过程中,点击了返回主屏幕的按钮,此时电子设备会返回到主屏幕,并且应用A会被从前台切换到后台。
当应用A被从前台切换到后台后,电子设备可以获取当前后台中驻留的应用的数量,并检测该数量是否达到预设数值。例如,本实施例中,电子设备检测到当前后台中驻留的应用的数量达到了预设阈值。在这种情况下,可以认为当前后台中驻留了较多的应用,这些后台应用会消耗掉较多的系统资源。此时,电子设备可以判断后台中的各应用是否可以被清理。例如,此时后台中一共包括11个应用,分别为应用A、B、C、D、E、F、G、H、I、J、K。那么,当进行后台应用是否可清理的判断时,电子设备可以先确定各后台应用所属的类别。例如,本实施例中,电子设备确定出后台中的应用A、C、D属于第一类别,应用B、H、I属于第二类别,应用E、F、G、J、K属于第三类别。
之后,电子设备可以先获取当前环境参数,并根据当前环境参数识别该电子设备所处的当前场景。例如,电子设备识别出其所处的当前场景为第二场景。
之后,电子设备可以从预先为各类别的应用配置的至少两个模型中为各对应类别选取与当前场景对应的目标模型。其中,本实施例中,电子设备可以预先为各类别的应用配置至少两个模型,并且电子设备预先建立了场景与为各类别的应用配置的模型之间的对应关系,不同的模型对应不同的场景。
例如,电子设备为第一类别的应用配置了3个模型,分别为模型a1、a2、a3。其中,模型a1与第一场景对应,模型a2与第二场景对应,模型a3与第三场景对应。
电子设备为第二类别的应用也配置了3个模型,分别为模型b1、b2、b3。其中,模型b1与第一场景对应,模型b2与第二场景对应,模型b3与第三场景对应。
电子设备为第三类别的应用配置了4个模型,分别为c1、c2、c3、c4。其中,模型c1与第一场景对应,模型c2与第二场景对应,模型c3与第三场景对应,模型c4与第四场景对应。
那么,由于当前场景为第二场景,因此电子设备可以将第一类别对应的模型a1、a2、a3中的模型a2确定为该第一类别对应的目标模型(例如为第一目标模型),将第二类别对应的模型b1、b2、b3中的模型b2确定为该第二类别对应的目标模型(例如为第二目标模型),将第三类别对应的模型c1、c2、c3、c4中的模型c2确定为该第三类别对应的目标模型(例如为第三目标模型)。
之后,电子设备可以利用选取出的各目标模型来判断对应类别的后台应用 是否可清理。例如,电子设备可以利用模型a2来判断当前后台中的第一类别的应用A、C、D是否可清理。电子设备可以利用模型b2来判断当前后台中的第二类别的应用B、H、I是否可清理。电子设备可以利用模型c2来判断当前后台中的第三类别的应用E、F、G、J、K是否可清理。
例如,本实施例中,电子设备判断出应用A、C、D、E、H可以被从后台中清理。
之后,电子设备可以生成一则询问信息,该询问信息可以用于询问用户是否将应用A、C、D、E、H从后台中清理,如图4所示。
例如,本实施例中,用户在接收到该询问信息后,选择同意将应用A、C、D、E、H从后台中清理,如图5所示。那么,电子设备可以将应用A、C、D、E、H从后台中清理,从而节省系统资源。
请参阅图6,图6为本申请实施例提供的应用处理装置的结构示意图。该应用处理装置可以应用于电子设备,所述电子设备包括一个或多个应用。应用处理装置300可以包括:确定模块301,选取模块302,判断模块303。
确定模块301,用于确定所述电子设备中各应用所属的类别。
选取模块302,用于从预先为各所述类别的应用配置的至少两个模型中,选取各对应类别的目标模型。
判断模块303,用于利用选取出的各所述目标模型,判断对应类别的应用是否可清理。
在一种实施方式中,所述确定模块301还可以用于:确定所述电子设备所处的当前场景。
那么,所述选取模块302可以用于:从预先为各所述类别的应用配置的至少两个模型中,为各对应类别选取与所述当前场景对应的目标模型,其中所述电子设备为各所述类别的应用配置的不同模型与不同场景对应。
在一种实施方式中,所述确定模块301还可以用于:
对所述电子设备中的应用进行分类,得到至少一个类别;
为分类得到的各类别配置至少两个模型。
在一种实施方式中,所述确定模块301可以用于:
获取至少三个模型,其中,所述至少三个模型中的每一模型所使用的输入参数具有对应的属性;
根据预设策略,确定各类别的应用对应的目标属性;
根据类别对应的目标属性以及所述至少三个模型所使用的输入参数具有的属性,为各类别的应用从所述至少三个模型中选取至少两个模型,并将选取得到的所述至少两个模型确定为配置给各对应类别的模型。
在一种实施方式中,所述确定模块301还用于:为各所述类别建立场景与预先配置的模型之间的对应关系。
所述选取模块302可以用于:根据所述对应关系,从预先为各所述类别的应用配置的至少两个模型中,为各对应类别选取与所述当前场景对应的目标模型。
在一种实施方式中,所述确定模块301可以用于:
获取当前的环境参数;
根据所述当前的环境参数,识别所述电子设备所处的当前场景。
在一种实施方式中,所述确定模块301可以用于:
获取当前的环境参数,所述环境参数至少包括环境光亮度值、位置数据、环境噪声值。
本申请实施例提供一种计算机可读的存储介质,其上存储有计算机程序,当所述计算机程序在计算机上执行时,使得所述计算机执行如本实施例提供的应用处理方法中的流程。
本申请实施例还提供一种电子设备,包括存储器,处理器,所述处理器通过调用所述存储器中存储的计算机程序,用于执行本实施例提供的应用处理方法中的流程。
例如,上述电子设备可以是诸如平板电脑或者智能手机等移动终端。请参阅图7,图7为本申请实施例提供的电子设备的结构示意图。
该电子设备400可以包括显示屏401、存储器402、处理器403等部件。本领域技术人员可以理解,图7中示出的电子设备结构并不构成对电子设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
显示屏401可以用于显示诸如图像、文字等信息。
存储器402可用于存储应用程序和数据。存储器402存储的应用程序中包 含有可执行代码。应用程序可以组成各种功能模块。处理器403通过运行存储在存储器402的应用程序,从而执行各种功能应用以及数据处理。
处理器403是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器402内的应用程序,以及调用存储在存储器402内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。
在本实施例中,所述电子设备包括一个或多个应用,电子设备中的处理器403会按照如下的指令,将一个或一个以上的应用程序的进程对应的可执行代码加载到存储器402中,并由处理器403来运行存储在存储器402中的应用程序,从而执行:
确定所述电子设备中各应用所属的类别;
从预先为各所述类别的应用配置的至少两个模型中,选取各对应类别的目标模型;
利用选取出的各所述目标模型,判断对应类别的应用是否可清理。
请参阅图8,电子设备500可以包括显示屏501、存储器502、处理器503、扬声器504、麦克风505等部件。
显示屏501可以用于显示诸如图像、文字等信息。比如,显示屏501可以显示用于询问用户的询问信息等。
存储器502可用于存储应用程序和数据。存储器502存储的应用程序中包含有可执行代码。应用程序可以组成各种功能模块。处理器503通过运行存储在存储器502的应用程序,从而执行各种功能应用以及数据处理。
处理器503是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器502内的应用程序,以及调用存储在存储器502内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。
在本实施例中,所述电子设备包括一个或多个应用,电子设备中的处理器503会按照如下的指令,将一个或一个以上的应用程序的进程对应的可执行代码加载到存储器502中,并由处理器503来运行存储在存储器502中的应用程序,从而执行:
确定所述电子设备中各应用所属的类别;
从预先为各所述类别的应用配置的至少两个模型中,选取各对应类别的目标模型;
利用选取出的各所述目标模型,判断对应类别的应用是否可清理。
在一种实施方式中,在确定所述电子设备中各应用所属的类别之后,处理器503还可以执行:确定所述电子设备所处的当前场景。
那么,处理器503执行所述从预先为各所述类别的应用配置的至少两个模型中,选取各对应类别的目标模型时,可以执行:从预先为各所述类别的应用配置的至少两个模型中,为各对应类别选取与所述当前场景对应的目标模型,其中所述电子设备为各所述类别的应用配置的不同模型与不同场景对应。
在一种实施方式中,在确定所述电子设备中各应用所属的类别之前,处理器503还可以执行:对所述电子设备中的应用进行分类,得到至少一个类别;为分类得到的各类别配置至少两个模型。
在一种实施方式中,处理器503执行所述为分类得到的各类别配置至少两个模型时,可以执行:获取至少三个模型,其中,所述至少三个模型中的每一模型所使用的输入参数具有对应的属性;根据预设策略,确定分类得到的各类别的应用对应的目标属性;根据类别对应的目标属性以及所述至少三个模型所使用的输入参数具有的属性,为各类别的应用从所述至少三个模型中选取至少两个模型,并将选取得到的所述至少两个模型确定为配置给各对应类别的模型。
在一种实施方式中,在确定所述电子设备中各应用所属的类别之前,处理器503还可以执行:为各所述类别建立场景与预先配置的模型之间的对应关系。
那么,处理器503执行所述从预先为各所述类别的应用配置的至少两个模型中,为各对应类别选取与所述当前场景对应的目标模型时,可以执行:根据所述对应关系,从预先为各所述类别的应用配置的至少两个模型中,为各对应类别选取与所述当前场景对应的目标模型。
在一种实施方式中,处理器503执行确定所述电子设备所处的当前场景时,可以执行:获取当前的环境参数;根据所述当前的环境参数,识别所述电子设备所处的当前场景。
在一种实施方式中,处理器503执行所述获取当前的环境参数时,可以执行:获取当前的环境参数,所述环境参数至少包括环境光亮度值、位置数据、 环境噪声值。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见上文针对应用处理方法的详细描述,此处不再赘述。
本申请实施例提供的所述应用处理装置与上文实施例中的应用处理方法属于同一构思,在所述应用处理装置上可以运行所述应用处理方法实施例中提供的任一方法,其具体实现过程详见所述应用处理方法实施例,此处不再赘述。
需要说明的是,对本申请实施例所述应用处理方法而言,本领域普通技术人员可以理解实现本申请实施例所述应用处理方法的全部或部分流程,是可以通过计算机程序来控制相关的硬件来完成,所述计算机程序可存储于一计算机可读取存储介质中,如存储在存储器中,并被至少一个处理器执行,在执行过程中可包括如所述应用处理方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储器(ROM,Read Only Memory)、随机存取记忆体(RAM,Random Access Memory)等。
对本申请实施例的所述应用处理装置而言,其各功能模块可以集成在一个处理芯片中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中,所述存储介质譬如为只读存储器,磁盘或光盘等。
以上对本申请实施例所提供的一种应用处理方法、装置、存储介质以及电子设备进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。
Claims (20)
- 一种应用处理方法,应用于电子设备,所述电子设备包括一个或多个应用,其中,所述应用处理方法包括:确定所述电子设备中各应用所属的类别;从预先为各所述类别的应用配置的至少两个模型中,选取各对应类别的目标模型;利用选取出的各所述目标模型,判断对应类别的应用是否可清理。
- 根据权利要求1所述的应用处理方法,其中,在确定所述电子设备中各应用所属的类别之后,还包括:确定所述电子设备所处的当前场景;所述从预先为各所述类别的应用配置的至少两个模型中,选取各对应类别的目标模型,包括:从预先为各所述类别的应用配置的至少两个模型中,为各对应类别选取与所述当前场景对应的目标模型,其中所述电子设备为各所述类别的应用配置的不同模型与不同场景对应。
- 根据权利要求1所述的应用处理方法,其中,在确定所述电子设备中各应用所属的类别之前,还包括:对所述电子设备中的应用进行分类,得到至少一个类别;为分类得到的各类别配置至少两个模型。
- 根据权利要求3所述的应用处理方法,其中,所述为分类得到的各类别配置至少两个模型,包括:获取至少三个模型,其中,所述至少三个模型中的每一模型所使用的输入参数具有对应的属性;根据预设策略,确定分类得到的各类别的应用对应的目标属性;根据类别对应的目标属性以及所述至少三个模型所使用的输入参数具有的属性,为各类别的应用从所述至少三个模型中选取至少两个模型,并将选取得到的所述至少两个模型确定为配置给各对应类别的模型。
- 根据权利要求2所述的应用处理方法,其中,在确定所述电子设备中各应用所属的类别之前,还包括:为各所述类别建立场景与预先配置的模型之间的对应关系;所述从预先为各所述类别的应用配置的至少两个模型中,为各对应类别选 取与所述当前场景对应的目标模型,包括:根据所述对应关系,从预先为各所述类别的应用配置的至少两个模型中,为各对应类别选取与所述当前场景对应的目标模型。
- 根据权利要求2所述的应用处理方法,其中,确定所述电子设备所处的当前场景,包括:获取当前的环境参数;根据所述当前的环境参数,识别所述电子设备所处的当前场景。
- 根据权利要求6所述的应用处理方法,其中,所述获取当前的环境参数,包括:获取当前的环境参数,所述环境参数至少包括环境光亮度值、位置数据、环境噪声值。
- 一种应用处理装置,应用于电子设备,所述电子设备包括一个或多个应用,其中,包括:确定模块,用于确定所述电子设备中各应用所属的类别;选取模块,用于从预先为各所述类别的应用配置的至少两个模型中,选取各对应类别的目标模型;判断模块,用于利用选取出的各所述目标模型,判断对应类别的应用是否可清理。
- 根据权利要求8所述的应用处理装置,其中,所述确定模块还用于:确定所述电子设备所处的当前场景;所述选取模块用于:从预先为各所述类别的应用配置的至少两个模型中,为各对应类别选取与所述当前场景对应的目标模型,其中所述电子设备为各所述类别的应用配置的不同模型与不同场景对应。
- 根据权利要求8所述的应用处理装置,其中,所述确定模块还用于:对所述电子设备中的应用进行分类,得到至少一个类别;为分类得到的各类别配置至少两个模型。
- 根据权利要求10所述的应用处理装置,其中,所述确定模块用于:获取至少三个模型,其中,所述至少三个模型中的每一模型所使用的输入参数具有对应的属性;根据预设策略,确定各类别的应用对应的目标属性;根据类别对应的目标属性以及所述至少三个模型所使用的输入参数具有的属性,为各类别的应用从所述至少三个模型中选取至少两个模型,并将选取得到的所述至少两个模型确定为配置给各对应类别的模型。
- 根据权利要求9所述的应用处理装置,其中,所述确定模块还用于:为各所述类别建立场景与预先配置的模型之间的对应关系;所述选取模块,用于:根据所述对应关系,从预先为各所述类别的应用配置的至少两个模型中,为各对应类别选取与所述当前场景对应的目标模型。
- 一种存储介质,其上存储有计算机程序,其中,当所述计算机程序在计算机上执行时,使得所述计算机执行如权利要求1至7中任一项所述的方法。
- 一种电子设备,包括存储器,处理器,所述电子设备包括一个或多个应用,其中,所述处理器通过调用所述存储器中存储的计算机程序,用于执行:确定所述电子设备中各应用所属的类别;从预先为各所述类别的应用配置的至少两个模型中,选取各对应类别的目标模型;利用选取出的各所述目标模型,判断对应类别的应用是否可清理。
- 根据权利要求14所述的电子设备,其中,所述处理器用于:确定所述电子设备所处的当前场景;从预先为各所述类别的应用配置的至少两个模型中,为各对应类别选取与所述当前场景对应的目标模型,其中所述电子设备为各所述类别的应用配置的不同模型与不同场景对应。
- 根据权利要求14所述的电子设备,其中,所述处理器用于:对所述电子设备中的应用进行分类,得到至少一个类别;为分类得到的各类别配置至少两个模型。
- 根据权利要求16所述的电子设备,其中,所述处理器用于:获取至少三个模型,其中,所述至少三个模型中的每一模型所使用的输入参数具有对应的属性;根据预设策略,确定分类得到的各类别的应用对应的目标属性;根据类别对应的目标属性以及所述至少三个模型所使用的输入参数具有的属性,为各类别的应用从所述至少三个模型中选取至少两个模型,并将选取得到的所述至少两个模型确定为配置给各对应类别的模型。
- 根据权利要求15所述的电子设备,其中,所述处理器用于:为各所述类别建立场景与预先配置的模型之间的对应关系;根据所述对应关系,从预先为各所述类别的应用配置的至少两个模型中,为各对应类别选取与所述当前场景对应的目标模型。
- 根据权利要求15所述的电子设备,其中,所述处理器用于:获取当前的环境参数;根据所述当前的环境参数,识别所述电子设备所处的当前场景。
- 根据权利要求19所述的电子设备,其中,所述处理器用于:获取当前的环境参数,所述环境参数至少包括环境光亮度值、位置数据、环境噪声值。
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2019/082550 WO2020206697A1 (zh) | 2019-04-12 | 2019-04-12 | 应用处理方法、装置、存储介质及电子设备 |
CN201980090693.9A CN113366446A (zh) | 2019-04-12 | 2019-04-12 | 应用处理方法、装置、存储介质及电子设备 |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2019/082550 WO2020206697A1 (zh) | 2019-04-12 | 2019-04-12 | 应用处理方法、装置、存储介质及电子设备 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2020206697A1 true WO2020206697A1 (zh) | 2020-10-15 |
Family
ID=72752203
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2019/082550 WO2020206697A1 (zh) | 2019-04-12 | 2019-04-12 | 应用处理方法、装置、存储介质及电子设备 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN113366446A (zh) |
WO (1) | WO2020206697A1 (zh) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104702785A (zh) * | 2015-03-09 | 2015-06-10 | 深圳市中兴移动通信有限公司 | 提高移动终端个人账户安全的方法及移动终端 |
CN107426432A (zh) * | 2017-07-31 | 2017-12-01 | 广东欧珀移动通信有限公司 | 资源配置方法及相关产品 |
CN107807848A (zh) * | 2017-10-12 | 2018-03-16 | 曙光信息产业(北京)有限公司 | 一种云桌面系统 |
CN107832848A (zh) * | 2017-10-31 | 2018-03-23 | 广东欧珀移动通信有限公司 | 应用管理方法、装置、存储介质及电子设备 |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106774786B (zh) * | 2016-11-22 | 2020-02-07 | 珠海市魅族科技有限公司 | 一种功耗控制方法以及装置 |
CN107133094B (zh) * | 2017-06-05 | 2021-11-02 | 努比亚技术有限公司 | 应用管理方法、移动终端及计算机可读存储介质 |
CN107766134B (zh) * | 2017-09-26 | 2020-01-17 | 厦门美图移动科技有限公司 | 一种移动设备的系统清理方法及移动设备 |
CN107729125B (zh) * | 2017-10-31 | 2021-09-14 | 努比亚技术有限公司 | 应用程序常驻后台的管理方法及移动终端 |
CN107992361B (zh) * | 2017-12-28 | 2020-05-19 | Oppo广东移动通信有限公司 | 后台应用的清理方法、装置、存储介质及电子设备 |
CN109274815A (zh) * | 2018-08-22 | 2019-01-25 | 奇酷互联网络科技(深圳)有限公司 | 程序运行控制方法、装置、可读存储介质及移动终端 |
-
2019
- 2019-04-12 CN CN201980090693.9A patent/CN113366446A/zh active Pending
- 2019-04-12 WO PCT/CN2019/082550 patent/WO2020206697A1/zh active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104702785A (zh) * | 2015-03-09 | 2015-06-10 | 深圳市中兴移动通信有限公司 | 提高移动终端个人账户安全的方法及移动终端 |
CN107426432A (zh) * | 2017-07-31 | 2017-12-01 | 广东欧珀移动通信有限公司 | 资源配置方法及相关产品 |
CN107807848A (zh) * | 2017-10-12 | 2018-03-16 | 曙光信息产业(北京)有限公司 | 一种云桌面系统 |
CN107832848A (zh) * | 2017-10-31 | 2018-03-23 | 广东欧珀移动通信有限公司 | 应用管理方法、装置、存储介质及电子设备 |
Also Published As
Publication number | Publication date |
---|---|
CN113366446A (zh) | 2021-09-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6965384B2 (ja) | スマート機器ウェイクアップ方法、スマート機器、及びコンピュータ可読記憶媒体 | |
JP7239544B2 (ja) | 音声ウェイクアップ方法及び装置 | |
CN109388367B (zh) | 音效调整方法、装置、电子设备以及存储介质 | |
CN108182943A (zh) | 一种智能设备控制方法、装置及智能设备 | |
WO2020048220A1 (zh) | 音效调整方法、装置、电子设备以及存储介质 | |
US20170308349A1 (en) | Multi-screen sharing based application management method and device, and storage medium | |
CN109284080B (zh) | 音效调整方法、装置、电子设备以及存储介质 | |
CN110995810B (zh) | 一种基于人工智能的对象识别方法和相关装置 | |
WO2020048217A1 (zh) | 音效调整方法、装置、电子设备以及存储介质 | |
WO2021208392A1 (zh) | 用于人机对话的语音技能跳转方法、电子设备及存储介质 | |
WO2022100198A1 (zh) | 数据传输方法、装置、存储介质、终端及网络接入点设备 | |
US20180295158A1 (en) | Displaying group expressions for teleconference sessions | |
WO2021203674A1 (zh) | 技能选择方法及装置 | |
US11741954B2 (en) | Method and voice assistance apparatus for providing an intelligence response | |
CN106937258B (zh) | 一种广播的控制方法、装置及移动终端 | |
US12068920B2 (en) | Methods and systems for controlling operations of devices in an internet of things (IoT) environment | |
CN112169311A (zh) | 训练游戏ai的方法、系统、存储介质及计算机设备 | |
WO2020206698A1 (zh) | 应用处理方法、装置、存储介质及电子设备 | |
WO2020206697A1 (zh) | 应用处理方法、装置、存储介质及电子设备 | |
WO2020206696A1 (zh) | 应用清理方法、装置、存储介质及电子设备 | |
CN114764821B (zh) | 移动物体检测方法、装置、电子设备和存储介质 | |
JP2021515463A (ja) | デジタルコンテンツに関する活動通知の提供 | |
CN114647703A (zh) | 数据处理方法、装置、电子设备及存储介质 | |
CN110209924B (zh) | 推荐参数获取方法、装置、服务器及存储介质 | |
WO2021072760A1 (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: 19924271 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 25.02.2022) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 19924271 Country of ref document: EP Kind code of ref document: A1 |