Search

CN-121979650-A - Scene management method and system for fine regulation and control resources and electronic equipment

CN121979650ACN 121979650 ACN121979650 ACN 121979650ACN-121979650-A

Abstract

The embodiment of the disclosure discloses a scene management method, a system and electronic equipment for fine regulation and control resources, which are characterized in that a hardware state of target equipment is obtained, a hardware event is triggered in a kernel layer based on the hardware state, a scene management request is generated based on the hardware event, the scene management request is responded, a scene calling end is determined based on the scene management request, the scene management request carries scene labels, the scene calling end comprises a native calling end and an expansion calling end, the scene management request is analyzed, a target scene and scene configuration information of the target scene are determined based on the scene labels carried by the scene management request by calling the scene manager, the resource manager is called to obtain target configuration content corresponding to the target scene based on the scene configuration information, the target configuration content is sent to the kernel layer by the scene calling end, and the kernel layer carries out scene management according to the target configuration content, so that the accuracy and the flexibility of the scene management can be improved.

Inventors

  • LIAN JINTAO
  • LI JINTAI

Assignees

  • 珠海全志科技股份有限公司

Dates

Publication Date
20260505
Application Date
20251202

Claims (10)

  1. 1. A scene management method for fine regulation and control of resources is characterized by comprising the following steps: Acquiring a hardware state of target equipment, triggering a hardware event in a kernel layer based on the hardware state, and generating a scene management request based on the hardware event; Responding to the scene management request, and determining a scene calling end based on the scene management request, wherein the scene management request carries a scene tag, and the scene calling end comprises a native calling end and an expansion calling end; Analyzing the scene management request, calling a scene manager to determine a target scene and scene configuration information of the target scene based on a scene tag carried by the scene management request, and calling a resource manager to acquire target configuration content corresponding to the target scene based on the scene configuration information; And calling the scene calling terminal to send the target configuration content to a kernel layer, so that the kernel layer carries out scene management according to the target configuration content.
  2. 2. The method for managing a scenario of a fine-tuning resource according to claim 1, wherein the invoking the scenario manager to determine a target scenario and scenario configuration information of the target scenario based on a scenario tag carried by the scenario management request, invoking the resource manager to obtain target configuration content corresponding to the target scenario based on the scenario configuration information, includes: invoking the scene manager to determine a target scene and scene configuration information of the target scene based on a scene tag carried by the scene management request, wherein the scene configuration information comprises at least one scene configuration item, and the scene configuration item comprises a resource management policy and a policy configuration value corresponding to the resource management policy; And calling the resource manager to determine the target configuration content corresponding to at least one scene configuration item based on the resource management strategy and a strategy configuration value corresponding to the resource management strategy.
  3. 3. The method for managing a scenario of a fine-tuning resource according to claim 2, wherein the invoking the resource manager to determine the target configuration content corresponding to at least one scenario configuration item based on the resource management policy and a policy configuration value corresponding to the resource management policy comprises: Invoking the resource manager to determine resource configuration information corresponding to the scene configuration items based on the resource management policy, wherein the resource configuration information comprises at least one resource configuration item, and the resource configuration item comprises an execution mode of the resource management policy; And determining the execution mode of the resource management policy based on the policy configuration value corresponding to the resource management policy, setting a mode configuration path and a mode configuration value corresponding to the mode configuration path for the execution mode, and determining the target configuration content corresponding to at least one scene configuration item based on the mode configuration path and the mode configuration value corresponding to the mode configuration path.
  4. 4. The scenario management method of a fine-tuning resource according to claim 3, wherein the target scenario is a plurality of, the resource allocation item further includes a configuration priority of the execution mode, the scenario management method of a fine-tuning resource further includes: when at least two target scenes request to configure the resource management policies of the same type, acquiring the configuration priorities of the execution modes in the target configuration content corresponding to at least two target scenes, and determining the currently configured execution mode according to the configuration priorities.
  5. 5. The method for managing scenes of fine-tuning resources according to claim 1, wherein determining a scene call end based on the scene management request comprises: Acquiring a scene list supported by the scene calling end, registering scenes in the scene list to the scene manager, and generating a scene management registry, wherein the scene management registry comprises a mapping relation between scene labels of the scenes in the scene list and the scene calling end; and inquiring in the scene management registry based on the scene tag carried by the scene management request, and determining the corresponding scene calling end according to the mapping relation.
  6. 6. The scenario management method of a fine-tuning resource according to claim 1, wherein before determining a scenario call-end based on the scenario management request in response to a scenario management request, the scenario management method of a fine-tuning resource further comprises: Creating a scene configuration file and a resource configuration file, wherein the scene configuration file is used for recording scene configuration information, and the resource configuration file is used for recording resource configuration information; Acquiring a scene to be added, determining scene configuration information corresponding to the scene to be added and resource configuration information corresponding to each scene configuration item in the scene configuration information, determining a scene configuration text of the scene to be added according to the scene configuration information, and determining a resource configuration text of the scene to be added according to the resource configuration information; and storing the scene configuration text into the scene configuration file, and storing the resource configuration text into the resource configuration file.
  7. 7. The method for managing scenes of fine-tuning resources according to claim 6, wherein the scene configuration text includes a calling end field, and wherein determining a scene calling end based on the scene management request comprises: And acquiring the scene configuration text corresponding to the target scene based on the scene tag carried by the scene management request, extracting the calling end field from the scene configuration text, and determining the scene calling end according to the calling end field.
  8. 8. The scenario management method of the fine-tuning resource according to claim 1, wherein the obtaining the hardware state of the target device, triggering a hardware event in a kernel layer based on the hardware state, generating a scenario management request based on the hardware event, includes: The hardware state of the target equipment is obtained, when the hardware state of the target equipment changes, the hardware event is triggered in the kernel layer, and the hardware event triggered in the kernel layer is analyzed to obtain the hardware data of the target equipment; acquiring a preset scene triggering condition, and generating the scene management request when the hardware data meets the scene triggering condition.
  9. 9. A scene management system for fine-tuning resources, comprising: The request generation module is used for acquiring the hardware state of the target equipment, triggering a hardware event in a kernel layer based on the hardware state, and generating a scene management request based on the hardware event; The calling end determining module is used for responding to a scene management request and determining a scene calling end based on the scene management request, wherein the scene management request carries a scene tag; The content acquisition module is used for analyzing the scene management request, calling a scene manager to determine a target scene and scene configuration information of the target scene based on a scene tag carried by the scene management request, and calling a resource manager to acquire target configuration content corresponding to the target scene based on the scene configuration information; The scene management module is used for calling the scene calling end to send the target configuration content to the kernel layer so that the kernel layer carries out scene management according to the target configuration content, wherein the scene calling end comprises a native calling end, an expansion calling end and a kernel calling end.
  10. 10. An electronic device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the scene management method of fine-tuning resources of any one of claims 1 to 8 when executing the computer program.

Description

Scene management method and system for fine regulation and control resources and electronic equipment Technical Field The disclosure relates to the technical field of computers, and in particular relates to a scene management method, a scene management system and electronic equipment for fine regulation and control of resources. Background In platform application, scene management is a core task for guaranteeing efficient operation of a system, and plays an important role in dynamically adjusting system performance. In the prior art, scene management mostly depends on a built-in native call end of an android system architecture and adopts a predefined mode to regulate resources, however, the predefined mode is relatively solidified, the expansibility is insufficient, the management requirement of a complex scene is difficult to adapt, and any modification of the predefined mode can damage the native compliance of the android system, so that the authentication of a GMS panel is influenced, and the overall flexibility of scene management is limited. Disclosure of Invention The following is a summary of the subject matter of the detailed description of the present disclosure. This summary is not intended to limit the scope of the claims. The embodiment of the disclosure provides a scene management method for finely regulating resources, which can improve the accuracy and flexibility of scene management. In one aspect, an embodiment of the present disclosure provides a scenario management method for fine adjustment and control of resources, including: Acquiring a hardware state of target equipment, triggering a hardware event in a kernel layer based on the hardware state, and generating a scene management request based on the hardware event; Responding to the scene management request, and determining a scene calling end based on the scene management request, wherein the scene management request carries a scene tag, and the scene calling end comprises a native calling end and an expansion calling end; Analyzing the scene management request, calling a scene manager to determine a target scene and scene configuration information of the target scene based on a scene tag carried by the scene management request, and calling a resource manager to acquire target configuration content corresponding to the target scene based on the scene configuration information; And calling the scene calling terminal to send the target configuration content to a kernel layer, so that the kernel layer carries out scene management according to the target configuration content. On the other hand, the embodiment of the disclosure also provides a scene management system for finely regulating resources, which comprises: The request generation module is used for acquiring the hardware state of the target equipment, triggering a hardware event in a kernel layer based on the hardware state, and generating a scene management request based on the hardware event; The calling end determining module is used for responding to a scene management request and determining a scene calling end based on the scene management request, wherein the scene management request carries a scene tag; The content acquisition module is used for analyzing the scene management request, calling a scene manager to determine a target scene and scene configuration information of the target scene based on a scene tag carried by the scene management request, and calling a resource manager to acquire target configuration content corresponding to the target scene based on the scene configuration information; The scene management module is used for calling the scene calling end to send the target configuration content to the kernel layer so that the kernel layer carries out scene management according to the target configuration content, wherein the scene calling end comprises a native calling end, an expansion calling end and a kernel calling end. The method and the device have the advantages that the hardware event is triggered in the kernel layer through acquiring the hardware state of the target device, the scene management request is generated based on the hardware event, scene management can be called through the kernel layer, the scene management request is responded, the scene calling end is determined based on the scene management request, the scene calling end comprises the original calling end and the expansion calling end, various scene calls can be supported, meanwhile, when the scene management request is analyzed, the scene manager is called to determine the target scene and scene configuration information of the target scene based on the scene label carried by the scene management request, the resource manager is called to acquire target configuration content corresponding to the target scene based on the scene configuration information, fine regulation and control of the scene to resources can be achieved, on the basis, the target configuration content is sent to t