1e0dac50fSopenharmony_ci# Copyright (c) 2022 Huawei Device Co., Ltd. 2e0dac50fSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 3e0dac50fSopenharmony_ci# you may not use this file except in compliance with the License. 4e0dac50fSopenharmony_ci# You may obtain a copy of the License at 5e0dac50fSopenharmony_ci# 6e0dac50fSopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 7e0dac50fSopenharmony_ci# 8e0dac50fSopenharmony_ci# Unless required by applicable law or agreed to in writing, software 9e0dac50fSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 10e0dac50fSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11e0dac50fSopenharmony_ci# See the License for the specific language governing permissions and 12e0dac50fSopenharmony_ci# limitations under the License. 13e0dac50fSopenharmony_ci 14e0dac50fSopenharmony_ci##################################################### 15e0dac50fSopenharmony_ci# below is the format of defining event # 16e0dac50fSopenharmony_ci##################################################### 17e0dac50fSopenharmony_ci#domain: domain name. [Only one domain name can be defined at the top] 18e0dac50fSopenharmony_ci# 19e0dac50fSopenharmony_ci#author: the author name who defined this event. 20e0dac50fSopenharmony_ci#date: the date when this event was defined, format is YYYY-MM-DD. 21e0dac50fSopenharmony_ci#logged: source file which refer to this event. 22e0dac50fSopenharmony_ci#usage: the usage of this event. 23e0dac50fSopenharmony_ci#//Define event name and event properties. 24e0dac50fSopenharmony_ci#@EVENT_NAME: the event definition part begin. 25e0dac50fSopenharmony_ci# // __BASE is used for defining the basic info of the event. 26e0dac50fSopenharmony_ci# // "type" optional values are: FAULT, STATISTICS, SECURITY, BEHAVIOR. 27e0dac50fSopenharmony_ci# // "level" optional values are: CRITICAL, MINOR. 28e0dac50fSopenharmony_ci# // "tag" set tags with may used by subscriber of this event, multiple tags divided by space. 29e0dac50fSopenharmony_ci# // "desc" full description of this event. 30e0dac50fSopenharmony_ci# @PARAMETER: {type: parameter type, arrsize: array length(optional), desc: parameter description}. 31e0dac50fSopenharmony_ci# // follow the __BASE block, each line defines a parameter of this event. 32e0dac50fSopenharmony_ci# // "type" optional values are: INT8, UINT8, INT16, UINT16, INT32, UINT32, INT64, UINT64, FLOAT, DOUBLE, STRING. 33e0dac50fSopenharmony_ci# // "arrsize" of the parameter is an array, set a non-zero value. 34e0dac50fSopenharmony_ci# // "desc" full description of this parameter. 35e0dac50fSopenharmony_ci 36e0dac50fSopenharmony_ci##################################################### 37e0dac50fSopenharmony_ci# Example of some hiviewdfx events definition # 38e0dac50fSopenharmony_ci##################################################### 39e0dac50fSopenharmony_ci 40e0dac50fSopenharmony_cidomain: WINDOWMANAGER 41e0dac50fSopenharmony_ci 42e0dac50fSopenharmony_ciNO_FOCUS_WINDOW: 43e0dac50fSopenharmony_ci __BASE: {type: FAULT, level: CRITICAL, desc: The event is not consumed} 44e0dac50fSopenharmony_ci PID: {type: INT32, desc: session pid} 45e0dac50fSopenharmony_ci UID: {type: INT32, desc: session uid} 46e0dac50fSopenharmony_ci PACKAGE_NAME: {type: STRING, desc: package name} 47e0dac50fSopenharmony_ci PROCESS_NAME: {type: STRING, desc: process name} 48e0dac50fSopenharmony_ci MSG: {type: STRING, desc: windowmanager event message} 49e0dac50fSopenharmony_ci 50e0dac50fSopenharmony_ciWINDOW_ANIMATION_ABNORMAL: 51e0dac50fSopenharmony_ci __BASE: {type: FAULT, level: MINOR, desc: animationCallback is more than animation task} 52e0dac50fSopenharmony_ci PID: {type: INT32, desc: app pid} 53e0dac50fSopenharmony_ci UID: {type: INT32, desc: app uid} 54e0dac50fSopenharmony_ci PACKAGE_NAME: {type: STRING, desc: ability name} 55e0dac50fSopenharmony_ci PROCESS_NAME: {type: STRING, desc: bundle name} 56e0dac50fSopenharmony_ci MSG: {type: STRING, desc: windowmanager event message} 57e0dac50fSopenharmony_ci 58e0dac50fSopenharmony_ciANIMATION_CALLBACK_TIMEOUT: 59e0dac50fSopenharmony_ci __BASE: {type: FAULT, level: MINOR, desc: animationCallback is time out} 60e0dac50fSopenharmony_ci PID: {type: INT32, desc: app pid} 61e0dac50fSopenharmony_ci UID: {type: INT32, desc: app uid} 62e0dac50fSopenharmony_ci PACKAGE_NAME: {type: STRING, desc: ability name} 63e0dac50fSopenharmony_ci PROCESS_NAME: {type: STRING, desc: bundle name} 64e0dac50fSopenharmony_ci MSG: {type: STRING, desc: windowmanager event message} 65e0dac50fSopenharmony_ci 66e0dac50fSopenharmony_ciWINDOW_LIFE_CYCLE_EXCEPTION: 67e0dac50fSopenharmony_ci __BASE: {type: FAULT, level: CRITICAL, desc: The window life cycle is abnormal} 68e0dac50fSopenharmony_ci PID: {type: INT32, desc: session pid} 69e0dac50fSopenharmony_ci UID: {type: INT32, desc: session uid} 70e0dac50fSopenharmony_ci MSG: {type: STRING, desc: windowmanager event message} 71e0dac50fSopenharmony_ci 72e0dac50fSopenharmony_ciWINDOW_BOOT_ANIMATION_DONE: 73e0dac50fSopenharmony_ci __BASE: {type: BEHAVIOR, level: CRITICAL, desc: Boot animation done} 74e0dac50fSopenharmony_ci MSG: {type: STRING, desc: windowmanager event message} 75e0dac50fSopenharmony_ci 76e0dac50fSopenharmony_ciWINDOW_EXCEPTION_DETECTION: 77e0dac50fSopenharmony_ci __BASE: {type: FAULT, level: MINOR, desc: The event is window change begin} 78e0dac50fSopenharmony_ci DETECTION_TYPE: {type: INT32, desc: detection type} 79e0dac50fSopenharmony_ci PID: {type: INT32, desc: pid} 80e0dac50fSopenharmony_ci MSG: {type: STRING, desc: detects abnormal information} 81e0dac50fSopenharmony_ci 82e0dac50fSopenharmony_ciSHOW_WINDOW_TIME: 83e0dac50fSopenharmony_ci __BASE: {type: STATISTIC, level: MINOR, desc: Sow window time performance} 84e0dac50fSopenharmony_ci MSG: {type: STRING, desc: windowmanager event message} 85e0dac50fSopenharmony_ci 86e0dac50fSopenharmony_ciGET_SNAPSHOT_TIME: 87e0dac50fSopenharmony_ci __BASE: {type: STATISTIC, level: MINOR, desc: Get snapshot time performance} 88e0dac50fSopenharmony_ci MSG: {type: STRING, desc: windowmanager event message} 89e0dac50fSopenharmony_ci 90e0dac50fSopenharmony_ciWM_REPORT_BACK_KEYEVENT: 91e0dac50fSopenharmony_ci __BASE: {type: STATISTIC, level: MINOR, desc: The back button is triggered} 92e0dac50fSopenharmony_ci MSG: {type: STRING, desc: windowmanager event message} 93e0dac50fSopenharmony_ci 94e0dac50fSopenharmony_ciWM_REPORT_WINDOW_OPACITY_ZERO: 95e0dac50fSopenharmony_ci __BASE: {type: STATISTIC, level: MINOR, desc: The window background is transparent} 96e0dac50fSopenharmony_ci MSG: {type: STRING, desc: windowmanager event message} 97e0dac50fSopenharmony_ci 98e0dac50fSopenharmony_ciWM_REPORT_WINDOW_CREATE: 99e0dac50fSopenharmony_ci __BASE: {type: STATISTIC, level: MINOR, desc: The window is created} 100e0dac50fSopenharmony_ci MSG: {type: STRING, desc: windowmanager event message} 101e0dac50fSopenharmony_ci 102e0dac50fSopenharmony_ciWM_REPORT_WINDOW_SHOW: 103e0dac50fSopenharmony_ci __BASE: {type: STATISTIC, level: MINOR, desc: The window is shown} 104e0dac50fSopenharmony_ci MSG: {type: STRING, desc: windowmanager event message} 105e0dac50fSopenharmony_ci 106e0dac50fSopenharmony_ciWM_REPORT_WINDOW_HIDE: 107e0dac50fSopenharmony_ci __BASE: {type: STATISTIC, level: MINOR, desc: The window is hidden} 108e0dac50fSopenharmony_ci MSG: {type: STRING, desc: windowmanager event message} 109e0dac50fSopenharmony_ci 110e0dac50fSopenharmony_ciWM_REPORT_WINDOW_DESTORY: 111e0dac50fSopenharmony_ci __BASE: {type: STATISTIC, level: MINOR, desc: The window is destroied} 112e0dac50fSopenharmony_ci MSG: {type: STRING, desc: windowmanager event message} 113e0dac50fSopenharmony_ci 114e0dac50fSopenharmony_ciWM_REPORT_HIDE_NAVIGATIONBAR: 115e0dac50fSopenharmony_ci __BASE: {type: STATISTIC, level: MINOR, desc: The navigation bar is hidden} 116e0dac50fSopenharmony_ci MSG: {type: STRING, desc: windowmanager event message} 117e0dac50fSopenharmony_ci 118e0dac50fSopenharmony_ciFOCUS_WINDOW: 119e0dac50fSopenharmony_ci __BASE: {type: BEHAVIOR, level: MINOR, tag: PowerStats, desc: Window focus changed} 120e0dac50fSopenharmony_ci PID: {type: INT32, desc: app pid} 121e0dac50fSopenharmony_ci UID: {type: INT32, desc: app uid} 122e0dac50fSopenharmony_ci BUNDLE_NAME: {type: STRING, desc: bundle name} 123e0dac50fSopenharmony_ci 124e0dac50fSopenharmony_ciAPPLICATION_BLOCK_INPUT: 125e0dac50fSopenharmony_ci __BASE: {type: FAULT, level: CRITICAL, desc: The event is not consumed} 126e0dac50fSopenharmony_ci EVENT_ID: {type: INT32, desc: eventId} 127e0dac50fSopenharmony_ci PID: {type: INT32, desc: pid} 128e0dac50fSopenharmony_ci BUNDLE_NAME: {type: STRING, desc: bundleName} 129e0dac50fSopenharmony_ci PERSISTENT_ID: { type: INT32, desc: persistentId} 130e0dac50fSopenharmony_ci MSG: {type: STRING, desc: event not consumed} 131e0dac50fSopenharmony_ci 132e0dac50fSopenharmony_ciSTART_WINDOW: 133e0dac50fSopenharmony_ci __BASE: {type: BEHAVIOR, level: CRITICAL, desc: The event is application startup request window} 134e0dac50fSopenharmony_ci BUNDLE_NAME: {type: STRING, desc: bundle name} 135e0dac50fSopenharmony_ci WINDOW_NAME: {type: STRING, desc: window name} 136e0dac50fSopenharmony_ci 137e0dac50fSopenharmony_ciNOTIFY_FOLD_STATE_CHANGE: 138e0dac50fSopenharmony_ci __BASE: {type: BEHAVIOR, level: MINOR, desc: notify fold status change} 139e0dac50fSopenharmony_ci CURRENT_FOLD_STATUS: {type: INT32, desc: current fold status} 140e0dac50fSopenharmony_ci NEXT_FOLD_STATUS: {type: INT32, desc: next fold status} 141e0dac50fSopenharmony_ci SENSOR_POSTURE: {type: FLOAT, desc: sensor posture status} 142e0dac50fSopenharmony_ci 143e0dac50fSopenharmony_ciFOLD_STATE_CHANGE_BEGIN: 144e0dac50fSopenharmony_ci __BASE: {type: BEHAVIOR, level: MINOR, desc: fold status change begin} 145e0dac50fSopenharmony_ci POWER_OFF_SCREEN: {type: INT32, desc: power off screen id} 146e0dac50fSopenharmony_ci POWER_ON_SCREEN: {type: INT32, desc: power on screen id} 147e0dac50fSopenharmony_ci 148e0dac50fSopenharmony_ciCONTAINER_START_BEGIN: 149e0dac50fSopenharmony_ci __BASE: {type: BEHAVIOR, level: MINOR, desc: The event is container startup begin} 150e0dac50fSopenharmony_ci MISSION_ID: {type: INT32, desc: mission id} 151e0dac50fSopenharmony_ci BUNDLE_NAME: {type: STRING, desc: bundle name} 152e0dac50fSopenharmony_ci TIMESTAMP: {type: INT64, desc: timestamp} 153e0dac50fSopenharmony_ci 154e0dac50fSopenharmony_ciVH_MODE: 155e0dac50fSopenharmony_ci __BASE: {type: BEHAVIOR, level: MINOR, desc: notify VH_MODE} 156e0dac50fSopenharmony_ci MODE: {type: INT32, desc: VH MODE after rotation} 157e0dac50fSopenharmony_ci 158