1# Copyright (c) 2022 Huawei Device Co., Ltd. 2# Licensed under the Apache License, Version 2.0 (the "License"); 3# you may not use this file except in compliance with the License. 4# You may obtain a copy of the License at 5# 6# http://www.apache.org/licenses/LICENSE-2.0 7# 8# Unless required by applicable law or agreed to in writing, software 9# distributed under the License is distributed on an "AS IS" BASIS, 10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11# See the License for the specific language governing permissions and 12# limitations under the License. 13 14domain: BACKGROUND_TASK 15 16TRANSIENT_TASK_APPLY: 17 __BASE: {type: STATISTIC, level: MINOR, tag: PowerStats, desc: apply transient task} 18 APP_UID: {type: INT32, desc: package uid} 19 APP_PID: {type: INT32, desc: thread pid} 20 APP_NAME: {type: STRING, desc: package name} 21 TASKID: {type: STRING, desc: task id} 22 VALUE: {type: INT32, desc: second of delay time} 23 24TRANSIENT_TASK_CANCEL: 25 __BASE: {type: STATISTIC, level: MINOR, tag: PowerStats, desc: cancel transient task} 26 APP_UID: {type: INT32, desc: package uid} 27 APP_PID: {type: INT32, desc: thread pid} 28 APP_NAME: {type: STRING, desc: package name} 29 TASKID: {type: STRING, desc: task id} 30 31CONTINUOUS_TASK_APPLY: 32 __BASE: {type: STATISTIC, level: MINOR, tag: PowerStats, desc: apply continuous task} 33 APP_UID: {type: INT32, desc: package uid} 34 APP_PID: {type: INT32, desc: thread pid} 35 APP_NAME: {type: STRING, desc: package name} 36 ABILITY: {type: STRING, desc: package ability} 37 BGMODE: {type: INT32, desc: task background mode} 38 UIABILITY_IDENTITY: {type: INT32, desc: ability identity} 39 40CONTINUOUS_TASK_CANCEL: 41 __BASE: {type: STATISTIC, level: MINOR, tag: PowerStats, desc: cancel continuous task} 42 APP_UID: {type: INT32, desc: package uid} 43 APP_PID: {type: INT32, desc: thread pid} 44 APP_NAME: {type: STRING, desc: package name} 45 ABILITY: {type: STRING, desc: package ability} 46 BGMODE: {type: INT32, desc: task background mode} 47 UIABILITY_IDENTITY: {type: INT32, desc: ability identity} 48 STOP_REASON: {type: INT32, desc: stop reason} 49 50BGTASK_ERR: 51 __BASE: {type: STATISTIC, level: CRITICAL, desc: Use of illegal acts, preserve: true} 52 APP_UID: {type: INT32, arrsize: 100, desc: application uid} 53 APP_PID: {type: INT32, arrsize: 100, desc: application pid} 54 APP_NAME: {type: STRING, arrsize: 100, desc: application package name} 55 UIABILITY_IDENTITY: {type: INT32, arrsize: 100, desc: uiability identity} 56 MODULE_NAME: {type: STRING, arrsize: 100, desc: module name} 57 FUNC_NAME: {type: STRING, arrsize: 100, desc: function name} 58 ERR_CODE: {type: INT32, arrsize: 100, desc: err code} 59 ERR_MSG: {type: STRING, arrsize: 100, desc: err message} 60 61EFFICIENCY_RESOURCE_APPLY: 62 __BASE: {type: STATISTIC, level: CRITICAL, desc: apply efficiency resource, preserve: true} 63 APP_UID: {type: INT32, arrsize: 100, desc: application uid} 64 APP_PID: {type: INT32, arrsize: 100, desc: application pid} 65 APP_NAME: {type: STRING, arrsize: 100, desc: application package name} 66 UIABILITY_IDENTITY: {type: INT32, arrsize: 100, desc: uiability identity} 67 RESOURCE_TYPE: {type: INT32, arrsize: 100, desc: efficiency resource type} 68 TIMEOUT: {type: INT64, arrsize: 100, desc: efficiency resource timeout} 69 PERSIST: {type: BOOL, arrsize: 100, desc: efficiency resource is persist} 70 PROCESS: {type: BOOL, arrsize: 100, desc: is process} 71 72EFFICIENCY_RESOURCE_RESET: 73 __BASE: {type: STATISTIC, level: CRITICAL, desc: reset efficiency resource, preserve: true} 74 APP_UID: {type: INT32, arrsize: 100, desc: application uid} 75 APP_PID: {type: INT32, arrsize: 100, desc: application pid} 76 APP_NAME: {type: STRING, arrsize: 100, desc: application package name} 77 UIABILITY_IDENTITY: {type: INT32, arrsize: 100, desc: uiability identity} 78 RESOURCE_TYPE: {type: INT32, arrsize: 100, desc: efficiency resource type} 79 PROCESS: {type: BOOL, arrsize: 100, desc: is process} 80 QUOTA: {type: INT64, arrsize: 100, desc: application quota for one day} 81 ALL_QUOTA: {type: INT64, arrsize: 100, desc: application all quota for one day} 82