Yyoushugenfix: code add
1bede08a创建于 3月19日历史提交
# Copyright (c) 2022-2025 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

domain: POWER

RUNNINGLOCK:
  __BASE: {type: STATISTIC, level: MINOR, tag: PowerStats, desc: runninglock information}
  PID: {type: INT32, desc: application pid}
  UID: {type: INT32, desc: application uid}
  STATE: {type: INT32, desc: runninglock state}
  TYPE: {type: INT32, desc: runninglock type}
  NAME: {type: STRING, desc: runninglock name}
  LOG_LEVEL: {type: INT32, desc: runninglock log level}
  TAG: {type: STRING, desc: runninglock tag}
  MESSAGE: {type: STRING, desc: runninglock message}
  BUNDLENAME: {type: STRING, desc: bundle name}

SCREEN:
  __BASE: {type: STATISTIC, level: MINOR, tag: PowerStats, desc: screen state}
  STATE: {type: INT32, desc: screen state}
  BRIGHTNESS: {type: INT32, desc: brightness level}

STATE:
  __BASE: {type: STATISTIC, level: MINOR, tag: PowerStats, desc: power state}
  STATE: {type: INT32, desc: power state}

SCREEN_ON_TIMEOUT:
  __BASE: {type: FAULT, level: CRITICAL, desc: timeout screen on information}
  PID: {type: INT32, desc: session pid}
  UID: {type: INT32, desc: session uid}
  PACKAGE_NAME: {type: STRING, desc: call package name}
  PROCESS_NAME: {type: STRING, desc: call process name}
  MSG: {type: STRING, desc: screen on timeout message}
  REASON: {type: STRING, desc: screen on reason}

SCREEN_OFF_TIMEOUT:
  __BASE: {type: FAULT, level: CRITICAL, desc: timeout screen off information}
  PID: {type: INT32, desc: session pid}
  UID: {type: INT32, desc: session uid}
  PACKAGE_NAME: {type: STRING, desc: call package name}
  PROCESS_NAME: {type: STRING, desc: call process name}
  MSG: {type: STRING, desc: screen off timeout message}
  REASON: {type: STRING, desc: screen off reason}

STATE_CORRECTION:
  __BASE: {type: FAULT, level: CRITICAL, desc: the power state is inconsistent with the display state}
  ERROR_STATE: {type: INT32, desc: the state of the current error}
  CORRECTION_STATE: {type: INT32, desc: the corrected state}
  DISPLAY_STATE: {type: INT32, desc: the display state}
  MSG: {type: STRING, desc: correct error information}

INTERFACE_CONSUMING_TIMEOUT:
  __BASE: {type: BEHAVIOR, level: CRITICAL, desc: setstate and runninglock timeout information}
  PID: {type: INT32, desc: session pid}
  UID: {type: INT32, desc: session uid}
  TYPE: {type: INT32, desc: timeout interface type}
  REASON: {type: STRING, desc: screen on reason}
  TIME: {type: INT32, desc: interface time consuming}

SCREEN_STATE_TRANSIT_FAILED:
  __BASE: {type: FAULT, level: CRITICAL, desc: screen state transit result information}
  TRANSIT_RESULT: {type: INT32, desc: screen state transit result}
  REASON: {type: STRING, desc: screen on reason}

APP_HOLD_RUNNINGLOCK_TIMEOUT:
  __BASE: {type: BEHAVIOR, level: CRITICAL, desc: app hold runninglock timeout information}
  PID: {type: INT32, desc: session pid}
  UID: {type: INT32, desc: session uid}
  TYPE: {type: INT32, desc: runninglock type}
  NAME: {type: STRING, desc: runninglock name}

WAKEUP_STATISTIC:
  __BASE: {type: STATISTIC, level: CRITICAL, desc: wakeup statistic, preserve: true}
  UID: {type: INT32, desc: start wakeup application uid}
  REASON: {type: INT32, desc: wakeup reason}
  SWITCH: {type: INT8, desc: switch state}
  CHARGE: {type: INT8, desc: charge state}
  EXSCREEN: {type: INT8, desc: external screen number}
  WAKEUP_REASON: {type: STRING, desc: wakeup reason}

SUSPEND_STATISTIC:
  __BASE: {type: STATISTIC, level: CRITICAL, desc: suspend statistic, preserve: true}
  FORCE: {type: INT8, desc: is force suspend}
  UID: {type: INT32, desc: start suspend application uid}
  REASON: {type: INT32, desc: start suspend reason}
  SWITCH: {type: INT8, desc: switch state}
  CHARGE: {type: INT8, desc: charge state}
  EXSCREEN: {type: INT8, desc: external screen number}
  DO_SUSPEND: {type: INT8, desc: do suspend}

HIBERNATE_STATISTIC:
  __BASE: {type: STATISTIC, level: CRITICAL, desc: hibernate statistic, preserve: true}
  CLEAR_MEMORY: {type: INT8, desc: whether clear memory}
  START_REASON: {type: STRING, desc: the reason to hibernate}
  START_UID: {type: INT32, desc: start hibernate application uid}
  PREPARE_FAILED_REASON: {type: INT32, desc: hibernate prepare failed reason}
  SWITCH: {type: INT8, desc: switch state}
  CHARGE: {type: INT8, desc: charge state}
  EXSCREEN: {type: INT8, desc: external screen number}
  DO_HIBERNATE: {type: INT8, desc: do hibernate}
  TAKEOVER_UID: {type: INT32, desc: takeover hibernate application uid}

SHUTDOWN_STATISTIC:
  __BASE: {type: STATISTIC, level: CRITICAL, desc: shutdown statistic, preserve: true}
  START_REASON: {type: STRING, desc: start shutdown reason}
  START_UID: {type: INT32, desc: start shutdown application uid}
  SWITCH: {type: INT8, desc: switch state}
  CHARGE: {type: INT8, desc: charge state}
  EXSCREEN: {type: INT8, desc: external screen number}
  TAKEOVER_UID: {type: INT32, desc: takeover shutdown application uid}
  DO_SHUTDOWN: {type: INT8, desc: do shutdown}
  IS_REBOOT: {type: INT8, desc: is reboot}

MXSR_STANDBY_STATISTIC:
  __BASE: {type: STATISTIC, level: CRITICAL, desc: Sx standby statistic, preserve: true}
  STANDBY_TYPE: {type: INT32, desc: Sx standby type}
  ENTER_TIME: {type: INT64, desc: Sx standby state enter time}
  EXIT_TIME: {type: INT64, desc: Sx standby state exit time}
  ENTER_CAUSE: {type: INT32, desc: Sx standby state enter cause}
  EXIT_CAUSE: {type: STRING, desc: Sx standby state exit cause}
  ENTER_BATTERY_CAP: {type: INT32, desc: Battery capacity when enter Sx standby state}
  EXIT_BATTERY_CAP: {type: INT32, desc: Battery capacity when exit Sx standby state}
  LID_STATUS: {type: INT32, desc: Lid status}
  ERR_CODE: {type: STRING, desc: Error code}

ABNORMAL_FAULT:
  __BASE: {type: FAULT, level: CRITICAL, desc: Subscription registration callback and other abnormal failures}
  TYPE: {type: STRING, desc: Fault Type}
  REASON: {type: STRING, desc: Cause of Failure}