Detailed Description
Based on the problem that the use of an input method in the prior art is unfavorable for the endurance of a mobile terminal, the embodiment of the invention provides an application program management method which can be applied to an input method client and can effectively solve the technical problem that the existing input method is unfavorable for the endurance of the mobile terminal.
Specifically, the application management method provided by the embodiment of the invention can be applied to an input method client installed on a mobile terminal, and the client can capture an input string of a user in an input process and provide candidate items for the user. The mobile terminal may specifically include mobile devices such as a smart phone, a tablet computer, a notebook computer, an electronic book reader, an MP3 player (Moving Picture Experts Group Audio Layer III, dynamic image expert compression standard audio layer 3), an MP4 (Moving Picture Experts Group Audio Layer IV, dynamic image expert compression standard audio layer 4) player, and a wearable mobile device.
Of course, besides being applied to an input method, the application management method provided by the embodiment of the invention can be applied to other application programs which have other functions for improving user experience but have larger operand besides the basic functions capable of ensuring the use of users. In the following, an input method is mainly used as an example, and other target application programs can be referred to each other. The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. The components of the embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the invention, as presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be made by a person skilled in the art without making any inventive effort, are intended to be within the scope of the present invention.
Referring to fig. 1, a method flowchart of an application management method according to a first embodiment of the present invention is shown. The application program management method provided by the embodiment is applied to the input method client. As shown in fig. 1, the method includes:
step S101, monitoring the current residual electric quantity of the mobile terminal where the input method client is located;
it will be appreciated that the battery management application program of the system in the mobile terminal will monitor the remaining power of the battery in real time. Therefore, in this embodiment, the current remaining power of the mobile terminal may be monitored by performing data interaction with the battery management application program of the system, and the current remaining power may be obtained, for example, 25%. Alternatively, the current remaining power of the mobile terminal may be monitored by a third party battery management application installed at the mobile terminal.
In order to reduce the power consumption of the mobile terminal as much as possible, as an alternative way, the present embodiment may monitor the current remaining power of the mobile terminal at intervals of a preset period. In this embodiment, the preset period may be fixed, may be set to 2 minutes, 5 minutes, or the like, and may be specifically set as needed. Alternatively, the preset time period may be set according to a certain gradient based on the current remaining power, that is, a plurality of time periods are set based on preset power ranges, each power range corresponds to a time period, and as the power range corresponds to a lower power, the time period is shorter.
The specific setting of the preset time period may be set as needed. For example, in a specific application scenario, the preset power range may include: a first range: greater than or equal to 50%; second range: greater than or equal to 30% and less than 50%; third range: greater than or equal to 20% and less than 30%; fourth range: less than 20%. Wherein the first range corresponds to a time period of 20 minutes, the second range corresponds to a time period of 10 minutes, the third range corresponds to a time period of 5 minutes, and the fourth range corresponds to a time period of 2 minutes. At this time, if the current remaining power is greater than or equal to 50%, configuring the preset time period to be 20 minutes; if the current residual electric quantity is more than or equal to 30% and less than 50%, configuring a preset time period to be 10 minutes; if the current residual electric quantity is more than or equal to 20% and less than 30%, configuring a preset time period to be 5 minutes; if the current residual capacity is less than 20%, the preset time period is configured to be 2 minutes.
Step S102, when the current residual electric quantity is in a preset first electric quantity threshold range, the operation quantity of the target function provided by the input method client is reduced to a preset value, and the preset value is larger than zero.
In this embodiment, the target function is one or more functions of other functions provided by the input method client except the basic function. As an alternative, a function having a large operation amount, that is, a function that consumes relatively power, among other functions provided by the input method client, other than the basic function may be used as the target function. For example, the target function may be a function requiring use of a deep learning model or other functions with a large operation, such as a word forming function, an error correction function, and the like. It can be understood that the basic function provided by the input method client is a function of providing candidates by matching word stock based on the input string of the user.
For example, the word forming process of the input method may specifically include: after receiving an input string provided by a user, an input method client-side divides the input string into a plurality of substrings, queries a word library based on each substring to construct a word network, so as to obtain a plurality of word forming paths, calculates the conditional probability of each path through an ngram model, takes out an optimal path, and splices each word on the path to obtain a word forming result which is used as a candidate word to be displayed on the client-side. The candidate words provided by the existing input method are accurate, but the candidate words are based on a large amount of operation, and the large amount of operation is completed through power consumption, so that if the input method is continuously used for typing, the word forming function is always called, and the power consumption load of the mobile terminal is increased.
When the current residual electric quantity is within the first electric quantity threshold value range, the current residual electric quantity is insufficient, and the risk of shutdown due to electric quantity exhaustion exists. Therefore, in order to reduce the influence of the use of the input method client on the endurance of the mobile terminal, when the current residual electric quantity of the mobile terminal is monitored to be within the first electric quantity threshold range, the operation quantity of the target function provided by the input method client is reduced to a preset value. The power consumption caused by using the input method client is reduced by reducing the operand of the target function, namely the input method client enters a power saving mode. The first electric quantity threshold range and the preset value can be preset according to actual needs. For example, the calculation amount of the target function may be reduced to 50% of the initial calculation amount. The initial operand of the target function refers to an operand corresponding to the target function which is normally used after the input method client is installed.
When the target function includes a plurality of functions, the operation amount of each function needs to be reduced to a corresponding preset value, and the preset values corresponding to each function may be the same or different, and specifically set according to the needs.
It should be further noted that the preset value is greater than zero. That is, in this embodiment, after the operand of the target function provided by the input method client is reduced, the operand of the target function is still greater than zero, i.e. the target function is not turned off, and the target function can still be maintained for use, but the accuracy or precision is reduced. However, since the preset value is smaller than the initial operand of the target function, that is, the operand of the target function is reduced, the power consumption caused by the processor of the mobile terminal executing the corresponding program of the target function can be correspondingly reduced, so that the input method client saves more power.
Specifically, the first power threshold range is preset, and various setting manners are possible. As a first alternative, the first power threshold range may be one, for example, may be less than or equal to a preset power value. At this time, when the remaining power is smaller than or equal to the preset power value, the operation amount of the target function provided by the input method client is reduced, so that the input method client enters the power saving mode. The preset electric power value may be set as needed, for example, may be set to 25%, 20%, 10%, or the like.
As a second alternative, a plurality of different first power threshold ranges may be set, that is, different power saving mode levels are divided according to the remaining power, and in the power saving modes of different levels, the degree of reduction of the operation amount of the target function is different, the lower the power value is, the more the corresponding reduced operation amount is, that is, the smaller the preset value is, and the specific division manner may be set according to the needs. At this time, the process of reducing the operation amount of the target function to the preset value may specifically be: and acquiring a preset value corresponding to a first electric quantity threshold range where the current residual electric quantity is located, and reducing the operation quantity of the target function provided by the input method client to the preset value.
For example, two first power threshold ranges may be set, i.e., L1 and L2, respectively, and the power values included in L2 are smaller than the power values included in L1. For example, L1 may be greater than 10% and less than or equal to 20%, and L2 may be less than or equal to 10%. Assuming that a first preset value corresponding to L1 is 80% of an initial operand, and a second preset value corresponding to L2 is 50% of the initial operand; at this time, if the current remaining power is within L1, the operation amount of the target function is reduced to 80% of the initial operation amount, and if the current remaining power is within L2, the operation amount of the target function is reduced to 50% of the initial operation amount.
In this embodiment, the number of specific ways of reducing the target function operand may be multiple, and may be specifically set according to the calculation process corresponding to the actual function. For example, the target function corresponds to a basic execution program and an optimized execution program based on the result obtained by the basic execution program. The optimized execution program is used for further optimizing the result obtained by the basic execution program and improving the accuracy of the target function. At this time, the amount of computation of the target function can be reduced by disabling the optimal execution program of the target function. For another example, the calculation process corresponding to the target function needs to be iterated for multiple times to obtain a more accurate calculation result, and at this time, the calculation amount of the target function can be reduced by reducing the iteration times.
Specifically, in order to facilitate the configuration of the operation amount of the target function, a configuration information base may be stored in advance in the mobile terminal. The configuration information base stores corresponding relation information of the first electric quantity threshold range and the reduction rule of the target function. In this embodiment, the reduction rule may be used to limit the operand of the target function, and the reduction rule of the target function has a one-to-one correspondence with the preset value, and the reduction rule may be specifically set according to the required preset value. The operation amount corresponding to the reduction rule of the target function in the configuration information base is larger than 0 and smaller than the initial operation amount of the target function. The operand corresponding to the reduction rule of the target function is the operand of the target function after processing the operand corresponding to the target function according to the reduction rule. Therefore, the operation amount of the target function can be limited according to the reduction rule of the target function in the configuration information base, so that the operation amount of the target function is reduced to a preset value.
Accordingly, when a first electric quantity threshold range is set, a lowering rule of the target function is specified in advance for the first electric quantity threshold range in the configuration information base. When a plurality of different first electric quantity threshold value ranges are set, a reduction rule of a target function is specified for each first electric quantity threshold value range in the configuration information base in advance, the reduction rule corresponding to the different first electric quantity threshold value ranges is different, and the more the reduction operation amount corresponding to the reduction rule corresponding to the lower electric quantity range is. When the target function includes a plurality of functions, a reduction rule for each function is defined for each first power threshold range, and the reduction rule for different functions may be the same or different for the same first power threshold range, and the reduction rule corresponding to a range where the power is smaller for the same function has a larger limitation on the amount of calculation of the function, that is, the more the amount of calculation is reduced.
At this time, the method for reducing the operation amount of the target function provided by the input method client to the preset value may specifically include: inquiring a reduction rule of the target function corresponding to the first electric quantity threshold range in a pre-stored configuration information base, and taking the inquiry result as a target reduction rule; and reducing the operation amount of the target function to a preset value based on the target reduction rule. It can be understood that when the target function includes a plurality of functions, the configuration information base may be queried for a reduction rule corresponding to the first power threshold range, and then the operand of each function may be reduced to a corresponding preset value based on the queried reduction rule of each function.
In this embodiment, the reduction rule may have a plurality of setting manners. As an alternative, the reduction rule may comprise an operational parameter value. In this embodiment, the operation parameter is an index for measuring the operation amount of the target function, and the operation of the target functionThe larger the parameter value is, the larger the corresponding operation amount is. For example, the value of the operation parameter may be an operation level, and the preset value is within the operation level. It will be appreciated that the magnitude of the operation may be 10n w (ten thousand) represents. Where n may be an integer greater than or equal to 0. For example, if the initial operand of the target function is within 100w, and if the operand of the target function is set to 10w in the configuration information base, the operand of the target function is reduced to a preset value based on a reduction rule of the target function, and the preset value should be within 10w, for example, the preset value may be 15w, 30w, or 50 w. Of course, the operation parameter may be an index for configuring the target function operation amount, in addition to the operation level. In addition, in other embodiments of the present invention, the reduction rule may also have other setting manners, and may specifically be set according to the actual target function.
In one embodiment of the present invention, the target functions may include, but are not limited to, one or more of a word forming function, an error correction function, and a dynamic skin function. Of course, the target function may be other functions related to operations in addition to these functions. The word-forming function may include an association function, such as associating a subsequent input word based on a user-selected on-screen word. It can be understood that when the target function includes a word forming function and/or an error correction function, the input method can still provide intelligent word forming candidates and/or error correction candidates for the user after the operation amount of the word forming function and/or the error correction function is reduced, so as to help the user improve the input efficiency. As an alternative, candidates may be reduced appropriately. For example, before the amount of computation is reduced, the input method provides 6 candidates based on the input string of the user, and after the amount of computation is reduced, only 3 candidates are provided; further, candidates given by the above-described association function may be appropriately reduced.
When the target function includes a word forming function and/or an error correction function, a reduction rule of the word forming function and/or the error correction function may be set corresponding to a number of reserved pieces of the word forming path. It can be understood that the more word-forming paths remain, the greater the amount of computation of the conditional probability of each path by the ngram model. Accordingly, the reduction rule may be set to the number of reserved pieces of the word-forming path. In addition, the number of reserved word paths and the number of words selected corresponding to each substring in the constructed word network are determined. Therefore, the number of reserved word paths can be limited by limiting the number of words selected corresponding to each substring in the word network, so that the operation amount of the word forming function and/or the error correction function is reduced. Therefore, the reduction rule may also be set to the number of words selected corresponding to each substring in the word network.
For example, assume that the word network includes: the substring P1{ P11, P12, P13, P14, P15, P16}, the substring P2{ P21, P22, P23, P24, P25, P26, P27, P28, P29}, the substring P3{ P31, P32, P33, P34, P35, P36, P37} and the substring P4{ P41, P42, P43, P44, P45}, a large number of word forming paths are obtained if all words corresponding to each substring are reserved, and the operation amount is large. Therefore, the reduction rule may be specifically set as: the first m words corresponding to each substring are reserved. Wherein m is a positive integer and is smaller than the number of the corresponding words of the substring with the maximum word quantity. In the above example, if the sub-string with the largest word size is the sub-string P2, m is smaller than 9, for example, 3, 4, or 5 may be set, so that the number of reserved word paths may be reduced, thereby reducing the operation amount of the word forming function and/or the error correcting function.
When the target function includes an error correction function, as an alternative, the error correction function normal implementation procedure may include: after error correction processing is carried out on an input string input by a user and error correction candidates corresponding to the input string are obtained, the multivariate relation between each error correction candidate and the preamble is considered, the length and the depth of the word quantity extracted by semantic analysis of the preamble are increased as much as possible based on a preset deep learning algorithm, and probability scores of each error correction candidate are obtained, so that the error correction candidates are ordered based on the scores of each error correction candidate, and the ordered error correction candidates are displayed to the user. At this time, the rule for reducing the error correction function may be a multi-element phrase used for reducing the error correction function, for example, if the error correction function is normally implemented using a five-element phrase, the rule for reducing the error correction function may be to reduce the five-element phrase to a three-element phrase, thereby reducing the operand of the error correction function.
When the target function comprises a dynamic skin function, the reduction rule may comprise the frame rate of the map, as may be set to: the frame frequency of the picture is reduced from the initial frame frequency to a preset frame frequency. Wherein the frame rate refers to the number of frames or images projected or displayed per second; the initial frame frequency is the frame frequency of the corresponding dynamic diagram when the dynamic skin function is normally used; the preset frame rate is less than the initial frame rate.
In addition, in an embodiment of the present invention, in addition to the first power threshold range, a second power threshold range may be set. The electric quantity in the second electric quantity threshold range is smaller than the electric quantity in the first electric quantity threshold range, and the electric quantity can be specifically set according to actual needs. For example, in one specific application scenario, when only one first power threshold range is set, the first power threshold range may be greater than 10% and less than or equal to 20%, and the second power threshold range may be less than or equal to 10%. When two different first power threshold ranges are set, one of the first power threshold ranges may be set to be greater than 20% and less than or equal to 30%, and the other first power threshold range may be set to be greater than 10% and less than or equal to 20%; the second power threshold range may be less than or equal to 10%.
At this time, when the current remaining power is acquired, it is necessary to determine whether the current remaining power is within the first power threshold range or the second power threshold range. If the current residual electric quantity is within the first electric quantity threshold value range, which indicates that the current residual electric quantity is insufficient, the operation quantity of the target function provided by the input method client is reduced to a preset value, so that the input method client enters a power saving mode. And if the current residual electric quantity is within the second electric quantity threshold value range, indicating that the current residual electric quantity is seriously insufficient. Thus, as shown in fig. 2, the above method may alternatively further include the following step S103.
And step S103, when the current residual electric quantity is in a second electric quantity threshold range, the target function is closed, wherein the electric quantity values in the second electric quantity threshold range are smaller than the electric quantity values in the first electric quantity threshold range. The input method client enters the next stage of power saving mode, and power consumption caused by the use of the input method client by a user is further reduced.
When the target function includes a plurality of functions, when the current remaining power is within the second power threshold range, the target functions may be all turned off, or only a part of the designated functions in the target functions may be turned off. For example, when the target functions include a word forming function, an error correction function, and a dynamic skin function, these functions may be all turned off, or only the error correction function and the dynamic skin function that are set in advance as specified functions may be turned off. Alternatively, in addition to the closing target function, other specified functions provided by the input method client other than the basic function may be closed. Wherein, the appointed function can be set according to actual needs.
In this embodiment, for convenience of configuration, the configuration information base may further store a second power threshold range and an indication of the closing target function corresponding to the second power threshold range. And if the current residual electric quantity is in the second electric quantity threshold value range, closing each target function based on the indication. For example, when the target function includes a word forming function, an error correction function and a dynamic skin function, if the current remaining power is within the second power threshold range, the word forming function, the error correction function and the dynamic skin function of the input method are all turned off. It can be understood that after the word forming function and the error correction function are turned off, the input method client side does not provide intelligent word forming candidates and error correction candidates. After the dynamic skin function is closed, stopping the moving picture playing, and only statically displaying one frame of pictures included in the moving picture, such as displaying a first frame of picture or a last frame of picture, or statically displaying a preset default picture, which can be specifically set according to the requirement.
For example, in one specific application scenario, a first power threshold range and a second power threshold range are set, where the first power threshold range corresponds to the primary power saving mode and the second power threshold range corresponds to the super power saving mode. When the target function includes a word forming function, an error correction function, and a dynamic skin function, the word forming function corresponds to a lowering rule a in the primary power saving mode, the error correction function corresponds to a lowering rule B, the dynamic skin function corresponds to a lowering rule C, and the word forming function, the error correction function, and the dynamic skin function all correspond to a closing instruction in the super power saving mode. At this time, the information configuration in the configuration information base is shown in table 1.
TABLE 1
Further, in an embodiment of the present invention, when the calculation amount of the target function is limited based on the configuration information base, the configuration information base may be dynamically updated based on the usage habit of the user so as not to affect the usage habit of the user as much as possible. At this time, the method further includes a step of dynamically updating the configuration information base. In this embodiment, the step of dynamically updating the configuration information base includes: updating the rule for reducing the target function in the configuration information base based on the user behavior data related to the target function provided by the input method client.
The mobile terminal stores log data of the user using the input method client, and the log data can reflect the using habit of the user. Considering the function that is familiar to the user, if the amount of computation for limiting the function is too large, the user's use of the input method client may be affected. Therefore, in this embodiment, the function that is used by the user can be identified by analyzing the user behavior data related to the target function in the user log, so that the rule for reducing the target function in the configuration information base is updated accordingly.
It should be noted that the execution condition of the dynamic update step of the configuration information base may be preset. The execution conditions can be specifically set according to actual needs. As an alternative, the step of dynamically updating the configuration information base may be performed at preset time intervals. The time interval may be set according to practical needs, such as 10 days, a month or a quarter.
Specifically, as shown in fig. 3, the above-described configuration information base dynamic update step may include the following steps S201 to S203.
Step S201, obtaining user behavior data related to the target function provided by the input method client.
And screening user behavior data related to the target function from a user log provided by the input method client. It will be appreciated that each function provided by the input method client corresponds to user behavior data. For example, when the target function includes a word forming function and an error correction function, user behavior data of a user using the word forming function and user behavior data of a user using the error correction function are acquired from the user log.
It is understood that the user behavior data is behavior data of the user for a specified length of time before the current time. The current time may be the time when the dynamic update of the configuration information base is started; the specified time period may be set according to practical experience, and may be set to 5 days, 10 days, 15 days, one month, or the like, for example.
Step S202, determining whether a first specific function familiar to the user exists in the target functions according to a preset determination condition and the user behavior data.
In this step, the determination condition may be preset according to the user behavior data corresponding to the specific target function. The target function is assumed to include M functions, where M is an integer greater than or equal to 1. When the target function includes a plurality of functions, that is, M is greater than 1, a determination condition is set in advance for each function, and the determination conditions corresponding to the different functions may be set to be the same or different.
As an alternative, the user behavior data corresponding to each function included in the target function may specifically include the number of times the user uses the function. For example, when the target function includes a word forming function and an error correction function, the user behavior data corresponding to the word forming function may include: the number of times that the user selects the candidate word obtained by the word forming function to be on screen, and the user behavior data corresponding to the error correction function may include: the user selects the number of times the candidate word is on screen, as obtained by the error correction function.
At this time, for the word forming function, the determination condition may be set as: the number of times the user selects the candidate word obtained by the word forming function to be on screen exceeds the first time threshold. That is, when the number of times the user selects the candidate word obtained by the word forming function to be on screen exceeds the first time number threshold, it is determined that the user behavior data of the word forming function satisfies the corresponding determination condition, whereas it is determined that the user behavior data of the word forming function does not satisfy the corresponding determination condition. For the error correction function, the determination condition may be set as: the number of times the user selects the candidate word from the error correction function to be on screen exceeds the second number threshold. That is, when the number of times the user selects the candidate word obtained by the error correction function to be on screen exceeds the second number threshold, it is determined that the user behavior data of the error correction function does not satisfy the corresponding determination condition. Wherein the first time threshold and the second time threshold may be set according to specific situations.
Alternatively, for the word forming function, the determination condition may be set as: the frequency of the screen of the candidate words obtained by the word forming function is selected by the user to exceed a first frequency threshold; for the error correction function, the determination condition may be set as: the frequency with which the user selects candidate word screens resulting from the error correction function exceeds a second frequency threshold. Specifically, the frequency acquisition mode of selecting the candidate word screen by the word forming function by the user may be: and dividing the number of the candidate word screen obtained by the word forming function by the specified time length. The same thing can obtain the frequency of the user selecting the candidate word screen obtained by the error correction function. Wherein the first frequency threshold and the second frequency threshold may be set according to specific situations.
Specifically, the determining whether the first specific function that is familiar to the user exists in the target functions may include: for each of the above-described M functions, the following conventional function determination step is performed: judging whether the user behavior data corresponding to the function meets the judging condition corresponding to the function, and judging that the function is a first specific function used by the user when the user behavior data corresponding to the function meets the corresponding judging condition; when the user behavior data of more than one function in the M functions meets corresponding judging conditions, judging that a first specific function familiar to the user exists in the target function; when the user behavior data of all the M functions do not meet the corresponding judging conditions, judging that the first specific function which is used by the user does not exist in the target function. When there is a first specific function familiar to the user among the target functions, the following step S203 is continued to be performed to update the configuration information base. And when the first specific function which is used by the user does not exist in the target function, the configuration information base is not continuously updated, the updating operation is ended, and the next updating operation is waited to be executed.
In step S203, if the first specific function exists, the decreasing rule corresponding to the first specific function in the configuration information base is updated such that the operation amount corresponding to the decreasing rule of the first specific function after updating is greater than the operation amount corresponding to the decreasing rule of the first specific function before updating and is less than or equal to the initial operation amount of the first specific function.
In the case where the first specific function exists among the target functions, the first specific function may be one or a plurality of the first specific functions. When only one first specific function exists in the target functions, the reduction rule corresponding to the first specific function in the configuration information base is updated. When there are a plurality of first specific functions in the target function, the step of updating the reduction rule corresponding to the first specific function in the configuration information base is required to be executed for each first specific function until the update of the reduction rule corresponding to all the first specific functions in the configuration information base is completed.
It will be appreciated that the purpose of updating the reduction rules in the configuration information base corresponding to the first specific function is to: the limitation of the operation amount corresponding to the first specific function in the configuration information base is relaxed, namely, the operation amount corresponding to the first specific function is increased relative to the operation amount corresponding to the original reduction rule in the configuration information base aiming at the first specific function. Therefore, the method is beneficial to reducing the power consumption caused by using the input method client, simultaneously enabling the accuracy of the user familiar function to meet the user requirement as much as possible, and reducing the influence on the user experience caused by the accuracy reduction of the user familiar function.
Specifically, the process of updating the reduction rule corresponding to the first specific function in the configuration information base may include: acquiring a first adjustment rule corresponding to the first specific function, wherein the operand corresponding to the first adjustment rule is larger than the operand corresponding to the reduction rule of the first specific function in the configuration information base and smaller than or equal to the initial operand of the first specific function; updating the reduction rule corresponding to the first specific function in the configuration information base to the first adjustment rule.
The first adjustment rule may be obtained in various ways, and in this embodiment, the following several embodiments are mainly described.
First, when the reduction rule includes an operation parameter value, the obtaining manner of the first adjustment rule may be: acquiring an operation parameter value of a first specific function in a configuration information base; increasing the operation parameter value according to a first preset step length to obtain a new operation parameter value; the new operational parameter value is used as a first adjustment rule for the first specific function. The method for increasing the operation parameter value according to the first preset step length may be: the operation parameter value is added with a first preset step length, or the operation parameter value is multiplied by the first preset step length. The first preset step length can be set according to actual conditions.
The second, the first adjustment rule may be obtained by: presetting a first set, wherein the first set comprises a first adjustment rule corresponding to each function in target functions; and searching a first adjustment rule corresponding to the first specific function in the first set.
Third, a plurality of usage degree ranges may be preset for each of the target functions. For the same function, different usage degree ranges correspond to different adjustment rules, and the higher the usage degree, the larger the corresponding calculation amount of the adjustment rule. At this time, after determining the first specific function of the target functions, the first adjustment rule may be obtained by: acquiring the degree of usage of a first specific function; determining a degree of usage range to which the degree of usage belongs; based on the regulation rule corresponding to the range of the usage degree to which the usage degree belongs, as the usage degreeA first adjustment rule for a first particular function. The degree of usage of the first specific function may be obtained according to user behavior data of the first specific function within a specified time period and a preset threshold corresponding to the first specific function. For example, assuming that the specified time length is T, the user behavior data of the first specific function includes the number of times N that the user uses the first specific function within the specified time length T, and a preset threshold corresponding to the first specific function is N0 The degree of usage of the first specific function may be according to the formula:obtained.
In addition, when the target function includes a plurality of functions, in order to reduce the power consumption caused by using the input method client as much as possible, the calculation amount limitation on the first specific function may be reduced, and the calculation amount limitation on the other functions other than the first specific function in the target function may be correspondingly increased. At this time, as shown in fig. 3, the step of dynamically updating the configuration information base may further include: the following steps S204 to S205.
Step S204, determining a second specific function based on the other functions of the target functions than the first specific function.
Specifically, when the target function includes a plurality of functions, functions other than the first specific function described above in the target function may be regarded as the second specific function. Alternatively, some of the target functions other than the first specific function may be regarded as second specific functions. Step S205 is performed on the determined second specific function. Of course, if the plurality of functions included in the target function are all the first specific functions, the second specific function does not exist, and the step S205 is not performed any more.
Step S205, updating the reduction rule corresponding to the second specific function in the configuration information base so that the operand corresponding to the reduction rule of the second specific function after updating is smaller than the operand corresponding to the reduction rule of the second specific function before updating.
Specifically, the process of updating the reduction rule corresponding to the second specific function in the configuration information base may include: acquiring a second adjustment rule corresponding to a second specific function, wherein the operand corresponding to the second adjustment rule is smaller than the operand corresponding to the reduction rule of the second specific function in the configuration information base; updating the reduction rule corresponding to the second specific function in the configuration information base to the second adjustment rule. When there are a plurality of second specific functions, the above-described update process needs to be performed for each of the second specific functions.
In this embodiment, the second adjustment rule corresponding to the second specific function may also be preset. For example, when the target function includes a word forming function and an error correction function, a first adjustment rule corresponding to the word forming function being the first specific function and a first adjustment rule corresponding to the error correction function being the first specific function are preset respectively. Correspondingly, when any one of the word forming function and the error correcting function is a first specific function and the other function is a second specific function, the other function is used as a second adjustment rule corresponding to the second specific function. In addition, the word forming function and the error correcting function may be both the first specific function, and at this time, the second specific function does not exist.
As an alternative, when the reduction rule includes an operation parameter value, the second adjustment rule may be obtained by: acquiring an operation parameter value of a second specific function in the configuration information base; reducing the operation parameter value according to a second preset step length to obtain a new operation parameter value; the new operational parameter value is used as a second adjustment rule for a second specific function. The manner of reducing the operation parameter value according to the second preset step length may be: the second preset step is subtracted from the operation parameter value, or the operation parameter value is divided by the second preset step. The second preset step length may be set according to actual situations, and may be the same as or different from the first preset step length.
It will be appreciated that the purpose of updating the reduction rules in the configuration information base corresponding to the second specific function is to: and increasing the limitation of the operation amount corresponding to the second specific function in the configuration information base, namely, for the second specific function, compared with the operation amount corresponding to the original reduction rule in the configuration information base, further reducing the operation amount corresponding to the second specific function. Therefore, the method is beneficial to reducing the power consumption caused by using the input method client, simultaneously enabling the accuracy of the user familiar function to meet the user requirement as much as possible, and reducing the influence on the user experience caused by the accuracy reduction of the user familiar function.
It should be noted that the steps shown in fig. 3 may occur in a different order from that shown in the drawings, for example, steps S204 to S205 may also occur before step S203 or be performed substantially simultaneously with step S203 described above.
In order to more clearly illustrate the implementation manner of dynamic update of the configuration information base, the update process is specifically described below by taking the example that the rule for reducing the target function in the configuration information base includes an operation level. Assuming that the target function comprises a word forming function and an error correction function, the operation orders corresponding to the initial operation amounts of the word forming function and the error correction function are 1000w, and a first electric quantity threshold range in the configuration information base is as follows: more than 10% and less than or equal to 20%, and the operation orders of the word forming function and the error correction function corresponding to the first electric quantity threshold range are 10w. At this time, if the current residual electric quantity is detected to be in the first electric quantity threshold range, the corresponding operation quantities of the word forming function and the error correcting function are respectively reduced to be within 10w orders. The error correction function is assumed to be a first specific function, namely a function familiar to a user, the word forming function is assumed to be a second specific function, and the first preset step length and the second preset step length are both 10. At this time, the operation level of the error correction function in the configuration information base can be updated to 100w, and the operation level of the word forming function in the configuration information base can be updated to 1w. And if the current residual electric quantity is detected to be in the first electric quantity threshold range, reducing the operation quantity corresponding to the error correction function to be within 100w magnitude, and reducing the operation quantity corresponding to the word forming function to be within 1w magnitude.
In addition, it should be noted that, after the operand of the target function provided by the input method client is reduced to the preset value, the method further includes: and when the mobile terminal is monitored to be switched from the non-charging state to the charging state, the operation amount of the target function is restored to the initial operation amount. Similarly, if the mobile terminal is monitored to be switched from the non-charging state to the charging state after the target function is closed, the closed target function is normally opened. It should be understood that the target function is normally started and is operated according to the initial operand.
In this embodiment, whether the mobile terminal is switched to the charging state may be monitored by performing data interaction with a battery management application program of the system itself. Alternatively, whether the mobile terminal is switched to the charged state may be monitored by a third party battery management application installed at the mobile terminal.
According to the application program management method provided by the embodiment of the invention, the current residual electric quantity of the mobile terminal where the input method client is located is monitored, and when the current residual electric quantity is within the preset first electric quantity threshold range, namely the current residual electric quantity is insufficient, the operation quantity of the target function is reduced to the preset value, so that when the electric quantity of the mobile terminal is insufficient, the use of the target function is maintained, the power consumption caused by typing by a user by using the input method is reduced, and the technical problem that the use of the existing input method is unfavorable for the continuous voyage of the mobile terminal is effectively solved.
Referring to fig. 4, a block diagram of an application management apparatus according to a second embodiment of the present invention is shown. The application management device is applied to an input method client, as shown in fig. 4, and includes:
a monitoring module 410, configured to monitor a current remaining power of the mobile terminal where the input method client is located;
the first processing module 420 is configured to reduce, when the current remaining power is within a preset first power threshold range, an operand of a target function provided by the input method client to a preset value, where the preset value is greater than zero.
As an alternative embodiment, the first processing module 420 is specifically configured to:
inquiring a reduction rule of the target function corresponding to the first electric quantity threshold range in a pre-stored configuration information base, and taking the inquiry result as a target reduction rule, wherein the configuration information base stores corresponding relation information of the first electric quantity threshold range and the reduction rule of the target function, and the reduction rule is used for limiting the operation quantity of the target function;
and reducing the operation amount of the target function to the preset value based on the target reduction rule.
As an alternative embodiment, the rule for reducing the target function includes an operation level, and the preset value is within the operation level.
As an alternative embodiment, as shown in fig. 4, the application management device further includes: and an updating module 430, configured to update the rule for reducing the target function in the configuration information base based on the user behavior data related to the target function provided by the input method client.
As an alternative embodiment, the updating module 430 includes:
the acquisition sub-module is used for acquiring user behavior data related to the target function, which is provided by the input method client;
the judging sub-module is used for judging whether a first specific function which is used by a user exists in the target function according to preset judging conditions and the user behavior data;
and the first updating sub-module is used for updating the reduction rule corresponding to the first specific function in the configuration information base if the judging sub-module judges that the first specific function exists, so that the calculated amount corresponding to the reduction rule of the first specific function after updating is larger than the calculated amount corresponding to the reduction rule of the first specific function before updating and smaller than or equal to the initial calculated amount of the first specific function.
As an alternative embodiment, when the target function includes a plurality of functions, the update module 430 further includes:
a determination submodule for determining a second specific function based on other functions than the first specific function among the target functions;
and the second updating sub-module is used for updating the reduction rule corresponding to the second specific function in the configuration information base so that the operation amount corresponding to the reduction rule of the second specific function after updating is smaller than the operation amount corresponding to the reduction rule of the second specific function before updating.
As an optional embodiment, the application management device further includes: and a second processing module 440, configured to close the target function when the current remaining power is within a preset second power threshold range, where power values within the second power threshold range are smaller than power values within the first power threshold range.
As an optional embodiment, the application management device further includes:
and the third processing module is used for recovering the operation amount of the target function to the initial operation amount when the mobile terminal is monitored to be switched from the non-charging state to the charging state after the operation amount of the target function provided by the input method client is reduced to a preset value.
As an alternative embodiment, the target functions include one or more of a word forming function, an error correction function, and a dynamic skin function.
It should be noted that, in the application management device provided in the embodiment of the present invention, a specific manner in which each module performs an operation has been described in detail in the embodiment related to the method, and will not be described in detail herein.
In addition, a third embodiment of the present invention provides a mobile terminal in which an input method client is installed. The mobile terminal includes a processor and a memory coupled to the processor, the memory storing instructions that, when executed by the processor, cause the mobile terminal to:
monitoring the current residual electric quantity of the mobile terminal;
and when the current residual electric quantity is in a preset first electric quantity threshold range, reducing the operation quantity of the target function provided by the input method client to a preset value, wherein the preset value is larger than zero.
It should be noted that, in the mobile terminal provided by the embodiment of the present invention, the specific implementation and the technical effects of each step are the same as those of the foregoing method embodiment, and for brevity, the details of the foregoing method embodiment may not be mentioned in this embodiment.
Fig. 5 is a block diagram of a mobile terminal 800, according to an example embodiment. For example, the mobile terminal 800 may be a mobile device such as a smart phone, tablet, notebook, e-book reader, MP3 player, MP4 player, wearable mobile device, etc.
Referring to fig. 5, the mobile terminal 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and a communication component 816.
The processing component 802 generally controls overall operation of the mobile terminal 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to perform all or part of the steps of the application management method provided in the first embodiment described above. Further, the processing component 802 can include one or more modules that facilitate interactions between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operation at the mobile terminal 800. Examples of such data include instructions for any application or method operating on the mobile terminal 800, contact data, phonebook data, messages, pictures, videos, and the like. The memory 804 may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power supply component 806 provides power to the various components of the mobile terminal 800. The power supply components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the mobile terminal 800.
The multimedia component 808 includes a screen between the mobile terminal 800 and the user that provides an output interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or slide action, but also the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and/or a rear camera. The front camera and/or the rear camera may receive external multimedia data when the mobile terminal 800 is in an operation mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the mobile terminal 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 further includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be a keyboard, click wheel, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 814 includes one or more sensors for providing status assessment of various aspects of the mobile terminal 800. For example, the sensor assembly 814 may detect an on/off state of the mobile terminal 800, a relative positioning of the components, such as a display and keypad of the mobile terminal 800, a change in position of the mobile terminal 800 or a component of the mobile terminal 800, the presence or absence of a user's contact with the mobile terminal 800, an orientation or acceleration/deceleration of the mobile terminal 800, and a change in temperature of the mobile terminal 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communication between the mobile terminal 800 and other devices, either wired or wireless. The mobile terminal 800 may access a wireless network based on a communication standard, such as WiFi,2G or 3G, or a combination thereof. In one exemplary embodiment, the communication component 816 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the mobile terminal 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements for executing the methods described above.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, such as memory 804 including instructions executable by processor 820 of mobile terminal 800 to perform the above-described method. For example, the non-transitory computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
A non-transitory computer readable storage medium, which when executed by a processor of a mobile terminal, causes the mobile terminal to perform an application management method, the method comprising: monitoring the current residual electric quantity of the mobile terminal where the input method client is located; and when the current residual electric quantity is in a preset first electric quantity threshold range, reducing the operation quantity of the target function provided by the input method client to a preset value, wherein the preset value is larger than zero.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It is to be understood that the invention is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the invention is limited only by the appended claims.
The foregoing description of the preferred embodiments of the invention is not intended to limit the invention to the precise form disclosed, and any such modifications, equivalents, and alternatives falling within the spirit and scope of the invention are intended to be included within the scope of the invention.