WO2019085840A1 - Procédé et appareil de réglage de ressources - Google Patents

Procédé et appareil de réglage de ressources Download PDF

Info

Publication number
WO2019085840A1
WO2019085840A1 PCT/CN2018/112261 CN2018112261W WO2019085840A1 WO 2019085840 A1 WO2019085840 A1 WO 2019085840A1 CN 2018112261 W CN2018112261 W CN 2018112261W WO 2019085840 A1 WO2019085840 A1 WO 2019085840A1
Authority
WO
WIPO (PCT)
Prior art keywords
application running
application
information
resource adjustment
mobile terminal
Prior art date
Application number
PCT/CN2018/112261
Other languages
English (en)
Chinese (zh)
Inventor
程杰
陈岩
Original Assignee
Oppo广东移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2019085840A1 publication Critical patent/WO2019085840A1/fr

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • G06F9/5055Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering software capabilities, i.e. software resources associated or available to the machine

Definitions

  • the present application relates to the field of mobile terminal technologies, and in particular, to a resource adjustment method and apparatus.
  • the embodiment of the present application provides a resource adjustment method and device, which can improve the refinement degree and resource allocation efficiency of the foreground target application resource adjustment.
  • the embodiment of the present application provides a resource adjustment method, which is applied to a mobile terminal, where the mobile terminal runs an operating system and one or more applications, and the method includes:
  • the operating system determines a device set consisting of at least one preset internal device of the mobile terminal in an enabled state, and the preset internal device includes any one or more of the following: a camera, a microphone, and a speaker;
  • the operating system identifies an application running scenario of a target application currently using the preset internal device
  • the operating system extracts a resource adjustment policy that matches the application running scenario
  • the operating system adjusts a configuration of system resources of the mobile terminal according to the resource adjustment policy.
  • the embodiment of the present application provides a resource adjustment apparatus, including a determining unit, an identifying unit, an extracting unit, and an adjusting unit, where
  • the determining unit is configured to determine a device set consisting of at least one preset internal device of the mobile terminal in an enabled state, where the preset internal device includes any one or more of the following: a camera, a microphone, and a speaker;
  • the identification unit is configured to identify an application running scenario of a target application that currently uses the preset internal device;
  • the extracting unit is configured to extract a resource adjustment policy that matches the application running scenario
  • the adjusting unit is configured to adjust a configuration of a system resource of the mobile terminal according to the resource adjustment policy.
  • an embodiment of the present application provides a mobile terminal, including a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory, and are configured by The processor executes, the program comprising instructions for performing the steps in any of the methods of the first aspect of the embodiments of the present application.
  • an embodiment of the present application provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program for electronic data exchange, wherein the computer program causes the computer to execute as implemented in the present application.
  • the computer comprises a mobile terminal.
  • an embodiment of the present application provides a computer program product, where the computer program product includes a non-transitory computer readable storage medium storing a computer program, the computer program being operative to cause a computer to execute Apply some or all of the steps described in any of the methods of the first aspect of the embodiments.
  • the computer program product can be a software installation package, the computer comprising a mobile terminal.
  • the operating system of the mobile terminal first determines a device set composed of at least one preset internal device of the mobile terminal in an enabled state, and secondly, identifies a target application that currently uses the preset internal device. Apply the running scenario, and then extract the resource adjustment policy that matches the application running scenario. Finally, adjust the configuration of the system resources of the mobile terminal according to the resource adjustment policy.
  • the operating system can accurately identify the application running scenario of the foreground target application according to the enabled state of the internal device of the mobile terminal, and then obtain the resource adjustment policy for adapting the application running scenario, that is, for the application running scenario of the refined application,
  • a comprehensive application of hardware detection mechanism and software detection mechanism for system resource adjustment because the hardware detection mechanism is highly accurate relative to the software detection mechanism (the hardware itself is stable, and the state detection technology is mature), and the processing time is short (the detection process requires The signaling interaction process is small, so compared with the pure software monitoring mechanism, it is beneficial to improve the accuracy and efficiency of the overall process of resource adjustment, and to improve the refinement of the foreground application resource adjustment.
  • 1A is a schematic diagram of a program running space of a smart phone
  • 1B is a system architecture diagram of an Android system
  • FIG. 2 is a schematic flowchart of a resource adjustment method according to an embodiment of the present application.
  • FIG. 3 is a schematic flowchart of a resource adjustment method disclosed in an embodiment of the present application.
  • FIG. 4 is a schematic flowchart of a resource adjustment method disclosed in an embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of a mobile terminal according to an embodiment of the present disclosure.
  • FIG. 6 is a block diagram of a functional unit of a mobile terminal disclosed in an embodiment of the present application.
  • FIG. 7 is a schematic structural diagram of a smart phone disclosed in an embodiment of the present application.
  • references to "an embodiment” herein mean that a particular feature, structure, or characteristic described in connection with the embodiments can be included in at least one embodiment of the present application.
  • the appearances of the phrases in various places in the specification are not necessarily referring to the same embodiments, and are not exclusive or alternative embodiments that are mutually exclusive. Those skilled in the art will understand and implicitly understand that the embodiments described herein can be combined with other embodiments.
  • the mobile terminal involved in the embodiments of the present application may include various handheld devices having wireless communication functions, in-vehicle devices, wearable devices, computing devices, or other processing devices connected to the wireless modem, and various forms of user devices (User Equipment, UE), mobile station (MS), terminal device, and the like.
  • user devices User Equipment, UE
  • MS mobile station
  • terminal device and the like.
  • the operating system involved in the embodiment of the present application is a software system that uniformly manages hardware resources and provides a service interface to users.
  • a mobile terminal such as a smart phone is generally provided with a program running space, and the program running space includes a user space and an operating system space, wherein the user space runs one or more applications, and the one or more applications
  • the program is a target application installed by the mobile terminal, and the operating system space runs an operating system with the mobile terminal.
  • the mobile terminal can specifically run the Android Android system, the mobile operating system iOS developed by Apple, etc., and is not limited herein.
  • the mobile terminal runs an Android system as an example, and the corresponding user space includes an application layer in the Android system, and the operating system space may include an application framework layer in the Android system.
  • the application layer includes various types of applications that directly interact with the user, or a service program written in the Java language and running in the background. For example, programs that implement common basic functions on smartphones, such as Short Messaging Service (SMS) text messages, phone dialing, picture browsers, calendars, games, maps, World Wide Web (Web) browsers, etc. Programs, as well as other applications developed by developers.
  • SMS Short Messaging Service
  • the application framework layer provides a set of libraries needed to develop Android applications, which can be used to reuse components, or to extend personalization through inheritance.
  • the system runtime layer is the support of the application framework, providing services for the various components in the Android system.
  • the system runtime layer consists of the system class library and the Android runtime.
  • the Android runtime consists of a core library and a Dalvik virtual machine.
  • the Linux kernel layer is used to implement core functions such as hardware device driver, process and memory management, network protocol stack, power management, and wireless communication.
  • FIG. 2 is a schematic flowchart of a method for adjusting a resource according to an embodiment of the present application, which is applied to a mobile terminal, where an operating system and one or more applications are run on the mobile terminal, as shown in the figure. Adjustment methods include:
  • the operating system determines a device set consisting of at least one preset internal device of the mobile terminal in an enabled state, where the preset internal device includes any one or more of the following: a camera, a microphone, and a speaker.
  • the camera includes a front camera and a rear camera.
  • the operating system identifies an application running scenario of a target application that currently uses the preset internal device.
  • the application running scenario target application is divided into running scenarios during the running process, and the application running scenario may be obtained by the operating system according to a preset scenario dividing policy.
  • the preset scenario dividing policy includes any one or more of the following:
  • the function mode is divided, divided according to the type of behavior, divided according to the type of camera, and divided according to the shooting parameters.
  • the target application as a camera application as an example.
  • the preset scene division policy is divided according to the function mode, and the application running scene may include, for example, a camera application photographing scene and a camera application recording scene, which are not limited herein.
  • the preset scene division policy is divided according to the behavior type, and the application running scene may include, for example, a camera application previewing scene, a camera application photographing scene, and the like, which are not limited herein.
  • the application running scene may include, for example, a camera application front camera scene, a camera application rear camera scene, a camera application single camera scene, a camera application dual camera scene, and the like, where Do not make a single limit.
  • the preset scene division policy is divided according to the shooting parameters, and the application running scene may include, for example, a camera application high-definition mode scene and a camera application normal mode scene, which are not limited herein.
  • the operating system extracts a resource adjustment policy that matches the application running scenario.
  • the operating system adjusts a configuration of system resources of the mobile terminal according to the resource adjustment policy.
  • the resource adjustment policy includes a category of system resources to be adjusted and an adjustment amount of system resources of each category, where the system resources include any one or more of the following: memory resources, central processing unit CPU resources, and graphics processor GPU resources. Display resources, network resources, and disk read/write IO resources.
  • the operating system of the mobile terminal first determines a device set composed of at least one preset internal device of the mobile terminal in an enabled state, and secondly, identifies a target application that currently uses the preset internal device. Apply the running scenario, and then extract the resource adjustment policy that matches the application running scenario. Finally, adjust the configuration of the system resources of the mobile terminal according to the resource adjustment policy.
  • the operating system can accurately identify the application running scenario of the foreground target application according to the enabled state of the internal device of the mobile terminal, and then obtain the resource adjustment policy for adapting the application running scenario, that is, for the application running scenario of the refined application,
  • a comprehensive application of hardware detection mechanism and software detection mechanism for system resource adjustment because the hardware detection mechanism is highly accurate relative to the software detection mechanism (the hardware itself is stable, and the state detection technology is mature), and the processing time is short (the detection process requires The signaling interaction process is small, so compared with the pure software monitoring mechanism, it is beneficial to improve the accuracy and efficiency of the overall process of resource adjustment, and to improve the refinement of the foreground application resource adjustment.
  • the method further includes: the operating system according to a preset device set and a resource adjustment policy package mapping Relationship, determining a resource adjustment policy package corresponding to the device set;
  • the operating system extracts a resource adjustment policy that matches the application running scenario, and the operating system extracts, from the resource adjustment policy package, a resource adjustment policy that matches the application running scenario.
  • the resource adjustment policy package includes one or more resource adjustment policies.
  • the front camera may correspond to a resource adjustment policy package, which may include a first resource adjustment policy of a self-timer scene of a camera application, a second resource adjustment policy of a video scene of a live chat application, and the like.
  • the device set of the speaker and the microphone may correspond to a resource adjustment policy package, where the policy package may include a third resource adjustment policy of the call scenario of the call application, a second resource adjustment policy of the voice chat scenario of the instant chat application, The third resource adjustment strategy of the game application's team battle scenario.
  • the policy package may include a third resource adjustment policy of the call scenario of the call application, a second resource adjustment policy of the voice chat scenario of the instant chat application, The third resource adjustment strategy of the game application's team battle scenario.
  • the operating system can accurately obtain the resource adjustment policy package according to the enabled state of the internal device of the mobile terminal, and further obtain a resource adjustment policy for adapting the application running scenario of the foreground target application from the resource adjustment policy package. That is, resource tuning for the application running scenario of the refined score is beneficial to improve the refinement of the resource adjustment of the foreground target application.
  • the mobile terminal currently runs the target application in the foreground
  • the operating system identifies an application running scenario of the target application currently using the preset internal device, including: the operating system acquires Correlation information of the target application, the association information includes type information of the target application and/or interface information of a current application interface of the target application; the operating system determines the foreground according to the association information The application running scenario of the running target application.
  • the type information of the application may be application identification information of the application or an application type identifier.
  • the interface information may be text, graphics, components, etc., and is not limited herein.
  • the operating system can obtain the associated information of the target game application, the application running scenario of the target application can be accurately determined through the associated information in real time, which is beneficial to improving the accuracy and real-time of the application running scene recognition. Thereby improving the accuracy and efficiency of resource adjustment.
  • the association information includes type information of the target application; the operating system determines, according to the association information, an application running scenario of the target application running in the foreground, including: the operating system The type information is used as the query identifier, and the mapping relationship between the type information of the preset application and the application running scenario is queried, and the application running scenario corresponding to the type information is determined to be the application running of the target application running in the foreground. Scenes.
  • the mobile terminal may pre-store the mapping relationship between the type information of the preset application and the application running scenario.
  • the mapping relationship may be set by the developer in advance, or may be statistically analyzed by the mobile terminal based on a preset machine learning algorithm. Use data to get it, not limited here.
  • the operating system can quickly and accurately determine the application running scenario by querying the preset mapping relationship, which is beneficial to improving the accuracy and real-time performance of the mobile terminal for scene recognition, and improving resource adjustment efficiency.
  • the association information includes interface information of an application interface of the target application; the operating system determines, according to the association information, an application running scenario of the target application running in the foreground, including: The operating system uses the interface information as a query identifier to query a mapping relationship between the preset interface information and the application running scenario, and determines that the application running scenario corresponding to the interface information is an application running of the target application running in the foreground. Scenes.
  • the mobile terminal may pre-store the mapping relationship between the interface information of the application and the application running scenario.
  • the mapping relationship may be set by the developer in advance, or may be obtained by the mobile terminal based on a preset machine learning algorithm. , there is no single limit here.
  • the software detection mechanism of the mobile phone detects the currently displayed interface in real time, and displays the text: please select the expression package you want, and use the interface as the query identifier to query the preset relationship. It is known that the foreground is running the shooting scene of the camera application A.
  • the target application can quickly determine the application running scenario based on its own interface information, which is beneficial to improving the accuracy and real-time performance of the application running scene recognition of the mobile terminal, and improving resource adjustment efficiency.
  • the association information includes type information of the target application and interface information of an application interface of the target application; the operating system determines the target application of the foreground operation according to the association information.
  • the application running scenario of the program includes: the operating system uses the combination information formed by the type information and the interface information as a query identifier, and queries combined information formed by preset type information and interface information, and an application running scenario.
  • the mapping between the application and the application running scenario corresponding to the combined information is an application running scenario of the target application running in the foreground.
  • the mobile terminal may pre-store the mapping relationship between the type information of the preset application and the combination information formed by the interface information and the application running scenario, where the mapping relationship may be set by the developer in advance, or may be based on the mobile terminal.
  • the statistical analysis of the machine learning algorithm is based on the historical usage data, which is not limited here.
  • the mobile phone turns on the rear camera and detects that the text is displayed directly below the photo preview interface displayed on the mobile phone: tap the camera, press and hold the shooting, and the type information is the instant chat application A, and the scene is determined to be instant by query mapping relationship. Chat application A's chat instant photo scene.
  • the operating system detects the combined information, and queries the pre-stored mapping relationship to quickly and accurately determine the application running scenario, which is beneficial to improving the accuracy and real-time performance of the application running scene recognition of the mobile terminal, and improving resource adjustment efficiency.
  • the camera includes a front camera and/or a rear camera
  • the device set consisting of the at least one preset internal device in an enabled state includes any one of the following: by the mobile terminal a device set composed of a front camera, a device set composed of a first rear camera of the mobile terminal, a device set composed of a second rear camera of the mobile terminal, and a first rear device of the mobile terminal
  • a collection of devices consisting of a camera and a second rear camera a collection of devices consisting of a front camera of the mobile terminal and at least one rear camera.
  • the device set composed of the front camera and the at least one rear camera provides a scene in which the split screen displays the influence information of the front and rear scenes.
  • FIG. 3 is a schematic flowchart of a resource adjustment method according to an embodiment of the present disclosure. The method is applied to a mobile terminal, where an operating system and an operating system are run on the mobile terminal. Or multiple applications, as shown in the figure, this performance resource optimization includes:
  • the operating system determines a device set consisting of at least one preset internal device of the mobile terminal in an enabled state.
  • the operating system determines, according to a mapping relationship between the preset device set and the resource adjustment policy package, a resource adjustment policy package corresponding to the device set.
  • the operating system acquires association information of the target application, where the association information includes type information of the target application.
  • the operating system uses the type information as a query identifier, and queries a mapping relationship between the type information of the preset application and the application running scenario, and determines that the application running scenario corresponding to the type information is the foreground running.
  • the application running scenario of the target application uses the type information as a query identifier, and queries a mapping relationship between the type information of the preset application and the application running scenario, and determines that the application running scenario corresponding to the type information is the foreground running.
  • the application running scenario of the target application uses the type information as a query identifier, and queries a mapping relationship between the type information of the preset application and the application running scenario, and determines that the application running scenario corresponding to the type information is the foreground running.
  • the application running scenario of the target application uses the type information as a query identifier, and queries a mapping relationship between the type information of the preset application and the application running scenario, and determines that the application running scenario corresponding to the type information is the foreground running.
  • the operating system extracts, from the resource adjustment policy package, a resource adjustment policy that matches the application running scenario.
  • the operating system adjusts a configuration of system resources of the mobile terminal according to the resource adjustment policy.
  • the operating system of the mobile terminal first determines a device set composed of at least one preset internal device of the mobile terminal in an enabled state, and secondly, identifies a target application that currently uses the preset internal device. Apply the running scenario, and then extract the resource adjustment policy that matches the application running scenario. Finally, adjust the configuration of the system resources of the mobile terminal according to the resource adjustment policy.
  • the operating system can accurately identify the application running scenario of the foreground target application according to the enabled state of the internal device of the mobile terminal, and then obtain the resource adjustment policy for adapting the application running scenario, that is, for the application running scenario of the refined application,
  • a comprehensive application of hardware detection mechanism and software detection mechanism for system resource adjustment because the hardware detection mechanism is highly accurate relative to the software detection mechanism (the hardware itself is stable, and the state detection technology is mature), and the processing time is short (the detection process requires The signaling interaction process is small, so compared with the pure software monitoring mechanism, it is beneficial to improve the accuracy and efficiency of the overall process of resource adjustment, and to improve the refinement of the foreground application resource adjustment.
  • the operating system can quickly and accurately determine the resource adjustment policy that matches the current association information of the application running scenario by querying the preset mapping relationship and the corresponding relationship, so as to timely adjust the system resources of the application running scenario, which is beneficial to improve.
  • the accuracy and efficiency of the overall process of the mobile terminal to adjust resources can quickly and accurately determine the resource adjustment policy that matches the current association information of the application running scenario by querying the preset mapping relationship and the corresponding relationship, so as to timely adjust the system resources of the application running scenario, which is beneficial to improve.
  • FIG. 4 is a schematic flowchart of a resource adjustment method according to an embodiment of the present disclosure. The method is applied to a mobile terminal, where an operating system and an operating system are run on the mobile terminal. Or multiple applications. As shown in the figure, the resource adjustment methods include:
  • the operating system determines a device set consisting of at least one preset internal device of the mobile terminal in an enabled state.
  • the operating system determines, according to a mapping relationship between the preset device set and the resource adjustment policy package, a resource adjustment policy package corresponding to the device set.
  • the operating system acquires association information of the target application, where the association information includes type information of the target application and interface information of a current application interface of the target application.
  • the operating system uses the combination information formed by the type information and the interface information as a query identifier, and queries a mapping relationship between the combination information formed by the preset type information and the interface information and the application running scenario, and determines
  • the application running scenario corresponding to the combined information is an application running scenario of the target application running in the foreground.
  • the operating system extracts, from the resource adjustment policy package, a resource adjustment policy that matches the application running scenario.
  • the operating system adjusts a configuration of system resources of the mobile terminal according to the resource adjustment policy.
  • the operating system of the mobile terminal first determines a device set composed of at least one preset internal device of the mobile terminal in an enabled state, and secondly, identifies a target application that currently uses the preset internal device. Apply the running scenario, and then extract the resource adjustment policy that matches the application running scenario. Finally, adjust the configuration of the system resources of the mobile terminal according to the resource adjustment policy.
  • the operating system can accurately identify the application running scenario of the foreground target application according to the enabled state of the internal device of the mobile terminal, and then obtain the resource adjustment policy for adapting the application running scenario, that is, for the application running scenario of the refined application,
  • a comprehensive application of hardware detection mechanism and software detection mechanism for system resource adjustment because the hardware detection mechanism is highly accurate relative to the software detection mechanism (the hardware itself is stable, and the state detection technology is mature), and the processing time is short (the detection process requires The signaling interaction process is small, so compared with the pure software monitoring mechanism, it is beneficial to improve the accuracy and efficiency of the overall process of resource adjustment, and to improve the refinement of the foreground application resource adjustment.
  • the operating system can quickly and accurately determine the resource adjustment policy that matches the current association information of the application running scenario by querying the preset mapping relationship and the corresponding relationship, so as to timely adjust the system resources of the application running scenario, which is beneficial to improve.
  • the accuracy and efficiency of the overall process of the mobile terminal to adjust resources can quickly and accurately determine the resource adjustment policy that matches the current association information of the application running scenario by querying the preset mapping relationship and the corresponding relationship, so as to timely adjust the system resources of the application running scenario, which is beneficial to improve.
  • FIG. 5 is a schematic structural diagram of a mobile terminal provided by an embodiment of the present application, where the mobile terminal runs one or more applications and An operating system, as shown, the mobile terminal includes a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are different from the one or more applications, and the one Or a plurality of programs are stored in the memory and configured to be executed by the processor, the program comprising instructions for performing the following steps;
  • the operating system of the mobile terminal first determines a device set composed of at least one preset internal device of the mobile terminal in an enabled state, and secondly, identifies a target application that currently uses the preset internal device. Apply the running scenario, and then extract the resource adjustment policy that matches the application running scenario. Finally, adjust the configuration of the system resources of the mobile terminal according to the resource adjustment policy.
  • the operating system can accurately identify the application running scenario of the foreground target application according to the enabled state of the internal device of the mobile terminal, and then obtain the resource adjustment policy for adapting the application running scenario, that is, for the application running scenario of the refined application,
  • a comprehensive application of hardware detection mechanism and software detection mechanism for system resource adjustment because the hardware detection mechanism is highly accurate relative to the software detection mechanism (the hardware itself is stable, and the state detection technology is mature), and the processing time is short (the detection process requires The signaling interaction process is small, so compared with the pure software monitoring mechanism, it is beneficial to improve the accuracy and efficiency of the overall process of resource adjustment, and to improve the refinement of the foreground application resource adjustment.
  • the program further includes an instruction to: between the preset device set and the resource adjustment policy package, before extracting the resource adjustment policy that matches the application running scenario a mapping relationship, determining a resource adjustment policy package corresponding to the device set;
  • the instruction in the program is specifically configured to: extract a resource adjustment policy that matches the application running scenario from the resource adjustment policy package .
  • the instructions in the program are specifically configured to: acquire an association of the target application And the associated information includes the type information of the target application and/or the interface information of the current application interface of the target application; and the application running scenario of the target application running in the foreground is determined according to the associated information.
  • the instruction in the program is specifically configured to: use the type information as a query identifier, Querying a mapping relationship between the type information of the preset application and the application running scenario, and determining that the application running scenario corresponding to the type information is an application running scenario of the target application running in the foreground.
  • the instructions in the program are specifically configured to perform the following operations: using the interface information as a query.
  • the identifier is used to query the mapping between the preset interface information and the application running scenario, and determine that the application running scenario corresponding to the interface information is an application running scenario of the target application running in the foreground.
  • the instructions in the program are specifically configured to perform the following operations:
  • the combination information formed by the interface information is a query identifier, and the mapping relationship between the combination type information and the interface information formed by the interface information and the application running scenario is queried, and the application running scenario corresponding to the combined information is determined to be the foreground.
  • the application running scenario of the running target application is specifically configured to perform the following operations:
  • the camera includes a front camera and/or a rear camera
  • the device set consisting of the at least one preset internal device in an enabled state includes any one of the following: by the mobile terminal a device set composed of a front camera, a device set composed of a first rear camera of the mobile terminal, a device set composed of a second rear camera of the mobile terminal, and a first rear device of the mobile terminal
  • a collection of devices consisting of a camera and a second rear camera a collection of devices consisting of a front camera of the mobile terminal and at least one rear camera.
  • Fig. 6 is a block diagram showing a possible functional unit composition of the resource adjusting device involved in the embodiment.
  • the resource adjustment device 600 includes a determination unit 601, an identification unit 602, an extraction unit 603, and an adjustment unit 604, where
  • the determining unit 601 is configured to determine a device set composed of at least one preset internal device of the mobile terminal in an enabled state;
  • the identifying unit 602 is configured to identify an internal running scenario of a camera application running in the foreground;
  • the extracting unit 603 is configured to extract a resource adjustment policy that matches the application running scenario.
  • the adjusting unit 604 is configured to adjust a configuration of a system resource of the mobile terminal according to the resource adjustment policy.
  • the operating system of the mobile terminal first determines a device set composed of at least one preset internal device of the mobile terminal in an enabled state, and secondly, identifies a target application that currently uses the preset internal device. Apply the running scenario, and then extract the resource adjustment policy that matches the application running scenario. Finally, adjust the configuration of the system resources of the mobile terminal according to the resource adjustment policy.
  • the operating system can accurately identify the application running scenario of the foreground target application according to the enabled state of the internal device of the mobile terminal, and then obtain the resource adjustment policy for adapting the application running scenario, that is, for the application running scenario of the refined application,
  • a comprehensive application of hardware detection mechanism and software detection mechanism for system resource adjustment because the hardware detection mechanism is highly accurate relative to the software detection mechanism (the hardware itself is stable, and the state detection technology is mature), and the processing time is short (the detection process requires The signaling interaction process is small, so compared with the pure software monitoring mechanism, it is beneficial to improve the accuracy and efficiency of the overall process of resource adjustment, and to improve the refinement of the foreground application resource adjustment.
  • the determining unit 601 is further configured to adjust the policy package according to the preset device set and the resource. Mapping a relationship, determining a resource adjustment policy package corresponding to the device set;
  • the extracting unit 603 is specifically configured to: extract, from the resource adjustment policy package, a resource adjustment policy that matches the application running scenario.
  • the identifying unit 602 is specifically configured to: control to acquire association information of the target application, where the association is used to identify an application running scenario of a target application that currently uses the preset internal device.
  • the information includes type information of the target application and/or interface information of a current application interface of the target application; and controlling an application running scenario of determining the target application running in the foreground according to the associated information.
  • the determining unit 602 is specifically configured to: control the type information as a query identifier, and query a preset, in determining an application running scenario of the target application running in the foreground according to the association information.
  • the mapping between the type information of the application and the application running scenario determines that the application running scenario corresponding to the type information is an application running scenario of the target application running in the foreground.
  • the determining unit 602 is specifically configured to: control the interface information as a query identifier, and query a preset, in determining an application running scenario of the target application running in the foreground according to the association information.
  • the mapping between the interface information and the application running scenario determines that the application running scenario corresponding to the interface information is an application running scenario of the target application running in the foreground.
  • the determining unit 602 is specifically configured to: control, by using the type information and the interface information, in determining an application running scenario of the target application running in the foreground according to the association information.
  • the combination information is a query identifier, and the mapping between the preset type information and the interface information formed by the interface information and the application running scenario is determined, and the application running scenario corresponding to the combined information is determined to be the target application running in the foreground.
  • Application running scenario is specifically configured to: control, by using the type information and the interface information, in determining an application running scenario of the target application running in the foreground according to the association information.
  • the combination information is a query identifier, and the mapping between the preset type information and the interface information formed by the interface information and the application running scenario is determined, and the application running scenario corresponding to the combined information is determined to be the target application running in the foreground.
  • Application running scenario is specifically configured to: control, by using the type information and the interface information, in determining an application running scenario of the target application running in
  • the camera includes a front camera and/or a rear camera
  • the device set consisting of the at least one preset internal device in an enabled state includes any one of the following: by the mobile terminal a device set composed of a front camera, a device set composed of a first rear camera of the mobile terminal, a device set composed of a second rear camera of the mobile terminal, and a first rear device of the mobile terminal
  • a collection of devices consisting of a camera and a second rear camera a collection of devices consisting of a front camera of the mobile terminal and at least one rear camera.
  • resource adjustment device described in the device embodiment of the present application is presented in the form of a functional unit.
  • unit as used herein shall be understood to mean the broadest possible meaning, and the object for implementing the functions described for each "unit” may be, for example, an integrated circuit ASIC, a single circuit for executing one or more software or firmware.
  • a processor shared, dedicated or chipset
  • memory of the program combinatorial logic, and/or other suitable components that perform the functions described above.
  • the determining unit 601, the identifying unit 602, the extracting unit 603, and the adjusting unit 604 may be processors or controllers.
  • FIG. 7 is a schematic structural diagram of a smart phone 700 suitable for the resource adjustment method according to an embodiment of the present disclosure.
  • the smart phone 700 includes a housing 710, a touch display screen 720, and a main board 730.
  • the battery 740 and the sub-board 750 are provided with a front camera 731, a processor 732, a memory 733, a power management chip 734, etc., and the sub-board is provided with a vibrator 751, an integrated sound chamber 752, a VOOC flash charging interface 753 and a fingerprint.
  • Identification module 754 is provided with a vibrator 751, an integrated sound chamber 752, a VOOC flash charging interface 753 and a fingerprint.
  • the smartphone 700 operating system is capable of determining a device set composed of at least one preset internal device of the mobile terminal in an enabled state; and identifying an application running scenario of a target application currently using the preset internal device; Extracting a resource adjustment policy that matches the application running scenario; and adjusting a configuration of the system resource of the mobile terminal according to the resource adjustment policy.
  • the processor 732 is a control center of the smartphone, and connects various parts of the entire smartphone by using various interfaces and lines, by running or executing software programs and/or modules stored in the memory 733, and calling the storage in the memory 733.
  • the processor 732 may include one or more processing units; preferably, the processor 732 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like.
  • the modem processor primarily handles wireless communications. It will be appreciated that the modem processor may also not be integrated into the processor 732.
  • the processor 732 can be, for example, a central processing unit (CPU), a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), and field programmable. Field Programmable Gate Array (FPGA) or other programmable logic device, transistor logic device, hardware component, or any combination thereof. It is possible to implement or carry out the various illustrative logical blocks, modules and circuits described in connection with the present disclosure.
  • the processor may also be a combination of computing functions, for example, including one or more microprocessor combinations, a combination of a DSP and a microprocessor, and the like.
  • the memory 733 can be used to store software programs and modules, and the processor 732 executes various functional applications and data processing of the smartphone by running software programs and modules stored in the memory 733.
  • the memory 733 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function, and the like; the storage data area may store data created according to usage of the smartphone, and the like.
  • the memory 733 may include a high speed random access memory, and may also include a nonvolatile memory such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
  • the memory 733 can be, for example, a random access memory (RAM), a flash memory, a read only memory (ROM), an erasable programmable read only memory (EPROM), and an electrically erasable memory.
  • RAM random access memory
  • ROM read only memory
  • EPROM erasable programmable read only memory
  • EEPROM Electrically erasable memory.
  • registers hard disk, removable hard disk, compact disk read only (CD-ROM) or any other form of storage medium known in the art.
  • the embodiment of the present application further provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, the computer program causing the computer to execute part or all of any of the methods described in the method embodiment.
  • the computer includes a mobile terminal.
  • the embodiment of the present application further provides a computer program product, comprising: a non-transitory computer readable storage medium storing a computer program, the computer program being operative to cause a computer to execute as described in the method embodiment Part or all of the steps of either method.
  • the computer program product can be a software installation package, the computer comprising a mobile terminal.
  • the disclosed apparatus may be implemented in other ways.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or may be Integrate into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be electrical or otherwise.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable memory.
  • a computer readable memory A number of instructions are included to cause a computer device (which may be a personal computer, server or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present application.
  • the foregoing memory includes: a U disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk, and the like, which can store program codes.
  • ROM Read-Only Memory
  • RAM Random Access Memory

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)
  • Stored Programmes (AREA)
  • Telephonic Communication Services (AREA)

Abstract

La présente invention concerne un procédé et un appareil de réglage de ressources. Le procédé comprend les étapes suivantes : premièrement, un système d'exploitation détermine un ensemble de dispositifs, composé d'au moins un dispositif interne prédéfini qui est dans un état activé, d'un terminal mobile (S201) ; deuxièmement, le système d'exploitation identifie un scénario d'exécution d'application d'un programme d'application cible utilisant actuellement le dispositif interne prédéfini (S202) ; ensuite, le système d'exploitation extrait une stratégie de réglage de ressources correspondant au scénario d'exécution d'application (S203) ; et enfin, le système d'exploitation règle, selon la stratégie de réglage de ressources, la configuration des ressources système du terminal mobile (S204). Le procédé est avantageux pour améliorer la précision et l'efficacité de l'ensemble du processus de réglage de ressources, et pour améliorer le degré de finesse de réglage des ressources d'un programme d'application cible de premier plan.
PCT/CN2018/112261 2017-10-31 2018-10-27 Procédé et appareil de réglage de ressources WO2019085840A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201711047422.4A CN107797868B (zh) 2017-10-31 2017-10-31 资源调整方法及装置
CN201711047422.4 2017-10-31

Publications (1)

Publication Number Publication Date
WO2019085840A1 true WO2019085840A1 (fr) 2019-05-09

Family

ID=61548535

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/112261 WO2019085840A1 (fr) 2017-10-31 2018-10-27 Procédé et appareil de réglage de ressources

Country Status (2)

Country Link
CN (1) CN107797868B (fr)
WO (1) WO2019085840A1 (fr)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114443256A (zh) * 2022-04-07 2022-05-06 荣耀终端有限公司 资源调度方法及电子设备

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107797868B (zh) * 2017-10-31 2020-09-25 Oppo广东移动通信有限公司 资源调整方法及装置
CN109413337A (zh) * 2018-08-30 2019-03-01 北京达佳互联信息技术有限公司 视频渲染方法、装置、电子设备及存储介质
CN110072172B (zh) * 2019-04-25 2020-10-16 广州小鹏汽车科技有限公司 一种音频信号的输出方法、系统、电子设备及可读介质
CN112873218B (zh) * 2020-12-23 2022-11-25 中国计量大学 一种变电站巡检机器人及巡检方法
CN113778663B (zh) * 2021-07-28 2023-05-12 荣耀终端有限公司 一种多核处理器的调度方法及电子设备
CN117112187B (zh) * 2022-05-16 2024-07-09 荣耀终端有限公司 资源调度方法及装置
CN118295511A (zh) * 2022-10-11 2024-07-05 荣耀终端有限公司 一种资源调度方法及相关设备

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102073504A (zh) * 2011-01-21 2011-05-25 深圳创维数字技术股份有限公司 一种多场景操作方法、系统及智能设备
CN103942021A (zh) * 2014-03-24 2014-07-23 华为技术有限公司 内容呈现方法,内容呈现方式的推送方法和智能终端
CN103984538A (zh) * 2014-03-27 2014-08-13 华为技术有限公司 应用场景的识别方法、功耗管理方法、装置及终端设备
CN104461711A (zh) * 2014-12-15 2015-03-25 北京奇虎科技有限公司 计算设备的自适应优化方法及装置
CN106020987A (zh) * 2016-05-31 2016-10-12 广东欧珀移动通信有限公司 处理器中内核运行配置的确定方法以及装置
CN106095592A (zh) * 2016-05-31 2016-11-09 广东欧珀移动通信有限公司 一种前景应用程序场景同步方法及装置、系统
CN107797868A (zh) * 2017-10-31 2018-03-13 广东欧珀移动通信有限公司 资源调整方法及装置

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111258407B (zh) * 2017-05-27 2021-06-29 Oppo广东移动通信有限公司 应用功能的控制方法及相关产品
CN107295169A (zh) * 2017-06-19 2017-10-24 奇酷互联网络科技(深圳)有限公司 一种背景音的优化方法和设备以及移动终端

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102073504A (zh) * 2011-01-21 2011-05-25 深圳创维数字技术股份有限公司 一种多场景操作方法、系统及智能设备
CN103942021A (zh) * 2014-03-24 2014-07-23 华为技术有限公司 内容呈现方法,内容呈现方式的推送方法和智能终端
CN103984538A (zh) * 2014-03-27 2014-08-13 华为技术有限公司 应用场景的识别方法、功耗管理方法、装置及终端设备
CN104461711A (zh) * 2014-12-15 2015-03-25 北京奇虎科技有限公司 计算设备的自适应优化方法及装置
CN106020987A (zh) * 2016-05-31 2016-10-12 广东欧珀移动通信有限公司 处理器中内核运行配置的确定方法以及装置
CN106095592A (zh) * 2016-05-31 2016-11-09 广东欧珀移动通信有限公司 一种前景应用程序场景同步方法及装置、系统
CN107797868A (zh) * 2017-10-31 2018-03-13 广东欧珀移动通信有限公司 资源调整方法及装置

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114443256A (zh) * 2022-04-07 2022-05-06 荣耀终端有限公司 资源调度方法及电子设备
CN114443256B (zh) * 2022-04-07 2022-08-30 荣耀终端有限公司 资源调度方法及电子设备

Also Published As

Publication number Publication date
CN107797868B (zh) 2020-09-25
CN107797868A (zh) 2018-03-13

Similar Documents

Publication Publication Date Title
WO2019085840A1 (fr) Procédé et appareil de réglage de ressources
CN107861814B (zh) 资源配置方法及设备
US10824470B2 (en) Method for resource allocation and terminal device
CN107426432B (zh) 资源配置方法及相关产品
WO2019109868A1 (fr) Procédé d'attribution de ressources et produit associé
CN107547746B (zh) 资源配置方法及相关产品
WO2019047709A1 (fr) Procédé de configuration de ressource et produit associé
CN107479970B (zh) 资源配置方法及相关产品
WO2019042171A1 (fr) Procédé d'attribution de ressources et produit associé
WO2019042180A1 (fr) Procédé d'attribution de ressources et produit associé
CN107483725A (zh) 资源配置方法及相关产品
CN107995357A (zh) 资源配置方法及装置
CN107786748B (zh) 图像显示方法及设备
CN107450988B (zh) 资源配置方法及相关产品
CN107635078B (zh) 游戏控制方法及设备
WO2019072208A1 (fr) Procédé et dispositif de commande d'exécution d'application
CN107807852B (zh) 应用程序性能控制方法、设备及计算机可读存储介质
CN107832142B (zh) 应用程序的资源配置方法及设备
WO2019072133A1 (fr) Procédé de reconnaissance faciale et produit associé
CN108536480B (zh) 输入法配置方法及相关产品
WO2019047708A1 (fr) Procédé de configuration de ressource et produit associé
WO2019076213A1 (fr) Procédé et dispositif de commande de réseau
CN111373728B (zh) 相机应用的控制方法及装置
WO2019076255A1 (fr) Procédé de commande d'application de jeu, et dispositif
CN107517306A (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: 18873199

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18873199

Country of ref document: EP

Kind code of ref document: A1