EP3477472B1

Method for resource allocation and terminal device

Abstract

This record has no abstract on file.

EP3477472B1, drawing sheet 1
Sheet 1 of 6

Term

12.1 yearsleft in the term

Expires 15 October 2038.

  1. Priority
  2. Filed
  3. Granted
  4. Today
  5. Expires

13 claims: 5 independent, 8 dependent

  1. 1
    A method for resource allocation, applicable to a terminal device with an operating system and at least one application running in the terminal device, the method comprising:identifying (201, 301, 401), by the operating system, a current internal running scenario of a target application running in a foreground of the terminal device;acquiring (202, 302, 402), by the operating system, a plurality of resource adjustment strategies associated with preset system resources to-be-adjusted in the internal running scenario, wherein the resource adjustment strategies are configured to adjust the system resources;acquiring (203, 303, 403), by the operating system, status information of the internal running scenario;adjusting (204), by the operating system, an order of priorities of the plurality of resource adjustment strategies according to the status information;and adjusting (205, 307, 407), by the operating system, the preset system resources to-be-adjusted, by selecting the resource adjustment strategy with the highest priority;characterized in that : the status information comprises an operation parameter of an operation interface of the internal running scenario, and the adjusting, by the operating system, the order of priorities of the plurality of resource adjustment strategies according to the status information comprises: determining (304), by the operating system, a parameter range to which the operation parameter belongs;determining (305), by the operating system, reference order of priorities of the plurality of resource adjustment strategies corresponding to the parameter range, according to a preset correspondence between preset parameter ranges and the order of priorities of the plurality of resource adjustment strategies;and adjusting (306), by the operating system, the order of priorities of the plurality of resource adjustment strategies according to the determined reference order of priorities of the plurality of resource adjustment strategies.
  2. 5
    The method of any of claims 1 to 4, wherein the plurality of resource adjustment strategies associated with the preset system resources to-be-adjusted comprises an application level adjustment strategy;and the application level adjustment strategy comprises a strategy for adjusting the preset system resources to-be-adjusted according to application status information of the application, and the application status information comprises the status information of the internal running scenario.
  3. 6
    The method of any of claims 1 to 5, wherein the preset system resources to-be-adjusted comprise at least one of:brightness of a display screen, computing resources, memory resources, and network resources.
  4. 7
    A terminal device, comprising:a processor (501);and a memory (502) configured to store executable program codes, which, when executed, cause the processor to: identify a current internal running scenario of a target application running in a foreground of the terminal device;acquire a plurality of resource adjustment strategies associated with preset system resources to-be-adjusted in the internal running scenario, wherein the resource adjustment strategies are configured to adjust the system resources;acquire status information of the internal running scenario;adjust an order of priorities of the plurality of resource adjustment strategies according to the status information;and adjust the preset system resources to-be-adjusted, by selecting the resource adjustment strategy with the highest priority;characterized in that : the status information comprises an operation parameter of the internal running scenario, and the executable program codes causing the processor to adjust the order of priorities of the plurality of resource adjustment strategies according to the status information cause the processor to: determine a parameter range to which the operation parameter belongs;determine reference order of priorities of the plurality of resource adjustment strategies corresponding to the parameter range, according to a preset correspondence between preset parameter ranges and the order of priorities of the plurality of resource adjustment strategies;and adjust the order of priorities of the plurality of resource adjustment strategies according to the determined reference order of priorities of the plurality of resource adjustment strategies.
  5. 11
    The terminal device of any of claims 7 to 10, wherein the plurality of resource adjustment strategies associated with the preset system resources to-be-adjusted comprises an application level adjustment strategy;and the application level adjustment strategy comprises a strategy for adjusting the preset system resources to-be-adjusted according to application status information of the application and the application status information comprises the status information of the internal running scenario.
  6. 12
    The terminal device of any of claims 7 to 11, wherein the preset system resources to-be-adjusted comprise at least one of:brightness of a display screen, computing resources, memory resources, and network resources.
  7. 13
    A non-transitory computer-readable storage medium storing a computer program which, when executed by a processor, causes the processor to carry out the steps of:identifying a currently internal running scenario of a target application running in a foreground of the terminal device;acquiring a plurality of resource adjustment strategies associated with preset system resources to-be-adjusted in the internal running scenario, wherein the resource adjustment strategies are configured to adjust the system resources;acquiring status information of the internal running scenario;adjusting an order of priorities of the plurality of resource adjustment strategies according to the status information;and adjusting the preset system resources to-be-adjusted, by selecting the resource adjustment strategy with the highest priority;characterized in that : the status information comprises an operation parameter of the internal running scenario, and the computer program causing the processor to adjust the order of priorities of the plurality of resource adjustment strategies according to the status information cause the processor to: determine a parameter range to which the operation parameter belongs;determine reference order of priorities of the plurality of resource adjustment strategies corresponding to the parameter range, according to a preset correspondence between preset parameter ranges and the order of priorities of the plurality of resource adjustment strategies;and adjust the order of priorities of the plurality of resource adjustment strategies according to the determined reference order of priorities of the plurality of resource adjustment strategies.