1# Copyright (c) 2022-2023 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: POWER
15
16RUNNINGLOCK:
17  __BASE: {type: STATISTIC, level: MINOR, tag: PowerStats, desc: runninglock information}
18  PID: {type: INT32, desc: application pid}
19  UID: {type: INT32, desc: application uid}
20  STATE: {type: INT32, desc: runninglock state}
21  TYPE: {type: INT32, desc: runninglock type}
22  NAME: {type: STRING, desc: runninglock name}
23  LOG_LEVEL: {type: INT32, desc: runninglock log level}
24  TAG: {type: STRING, desc: runninglock tag}
25  MESSAGE: {type: STRING, desc: runninglock message}
26  BUNDLENAME: {type: STRING, desc: bundle name}
27
28SCREEN:
29  __BASE: {type: STATISTIC, level: MINOR, tag: PowerStats, desc: screen state}
30  STATE: {type: INT32, desc: screen state}
31  BRIGHTNESS: {type: INT32, desc: brightness level}
32
33STATE:
34  __BASE: {type: STATISTIC, level: MINOR, tag: PowerStats, desc: power state}
35  STATE: {type: INT32, desc: power state}
36
37SCREEN_ON_TIMEOUT:
38  __BASE: {type: FAULT, level: CRITICAL, desc: timeout screen on information}
39  PID: {type: INT32, desc: session pid}
40  UID: {type: INT32, desc: session uid}
41  PACKAGE_NAME: {type: STRING, desc: call package name}
42  PROCESS_NAME: {type: STRING, desc: call process name}
43  MSG: {type: STRING, desc: screen on timeout message}
44  REASON: {type: STRING, desc: screen on reason}
45
46SCREEN_OFF_TIMEOUT:
47  __BASE: {type: FAULT, level: CRITICAL, desc: timeout screen off information}
48  PID: {type: INT32, desc: session pid}
49  UID: {type: INT32, desc: session uid}
50  PACKAGE_NAME: {type: STRING, desc: call package name}
51  PROCESS_NAME: {type: STRING, desc: call process name}
52  MSG: {type: STRING, desc: screen off timeout message}
53  REASON: {type: STRING, desc: screen off reason}
54
55STATE_CORRECTION:
56  __BASE: {type: FAULT, level: CRITICAL, desc: the power state is inconsistent with the display state}
57  ERROR_STATE: {type: INT32, desc: the state of the current error}
58  CORRECTION_STATE: {type: INT32, desc: the corrected state}
59  DISPLAY_STATE: {type: INT32, desc: the display state}
60  MSG: {type: STRING, desc: correct error information}
61