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 14##################################################### 15# below is the format of defining event # 16##################################################### 17#domain: domain name. [Only one domain name can be defined at the top] 18# 19#author: the author name who defined this event. 20#date: the date when this event was defined, format is YYYY-MM-DD. 21#logged: source file which refer to this event. 22#usage: the usage of this event. 23#//Define event name and event properties. 24#@EVENT_NAME: the event definition part begin. 25# // __BASE is used for defining the basic info of the event. 26# // "type" optional values are: FAULT, STATISTICS, SECURITY, BEHAVIOR. 27# // "level" optional values are: CRITICAL, MINOR. 28# // "tag" set tags with may used by subscriber of this event, multiple tags divided by space. 29# // "desc" full description of this event. 30# @PARAMETER: {type: parameter type, arrsize: array length(optional), desc: parameter description}. 31# // follow the __BASE block, each line defines a parameter of this event. 32# // "type" optional values are: INT8, UINT8, INT16, UINT16, INT32, UINT32, INT64, UINT64, FLOAT, DOUBLE, STRING. 33# // "arrsize" of the parameter is an array, set a non-zero value. 34# // "desc" full description of this parameter. 35 36##################################################### 37# Example of some hiviewdfx events definition # 38##################################################### 39 40domain: WINDOWMANAGER 41 42NO_FOCUS_WINDOW: 43 __BASE: {type: FAULT, level: CRITICAL, desc: The event is not consumed} 44 PID: {type: INT32, desc: session pid} 45 UID: {type: INT32, desc: session uid} 46 PACKAGE_NAME: {type: STRING, desc: package name} 47 PROCESS_NAME: {type: STRING, desc: process name} 48 MSG: {type: STRING, desc: windowmanager event message} 49 50WINDOW_ANIMATION_ABNORMAL: 51 __BASE: {type: FAULT, level: MINOR, desc: animationCallback is more than animation task} 52 PID: {type: INT32, desc: app pid} 53 UID: {type: INT32, desc: app uid} 54 PACKAGE_NAME: {type: STRING, desc: ability name} 55 PROCESS_NAME: {type: STRING, desc: bundle name} 56 MSG: {type: STRING, desc: windowmanager event message} 57 58ANIMATION_CALLBACK_TIMEOUT: 59 __BASE: {type: FAULT, level: MINOR, desc: animationCallback is time out} 60 PID: {type: INT32, desc: app pid} 61 UID: {type: INT32, desc: app uid} 62 PACKAGE_NAME: {type: STRING, desc: ability name} 63 PROCESS_NAME: {type: STRING, desc: bundle name} 64 MSG: {type: STRING, desc: windowmanager event message} 65 66WINDOW_LIFE_CYCLE_EXCEPTION: 67 __BASE: {type: FAULT, level: CRITICAL, desc: The window life cycle is abnormal} 68 PID: {type: INT32, desc: session pid} 69 UID: {type: INT32, desc: session uid} 70 MSG: {type: STRING, desc: windowmanager event message} 71 72WINDOW_BOOT_ANIMATION_DONE: 73 __BASE: {type: BEHAVIOR, level: CRITICAL, desc: Boot animation done} 74 MSG: {type: STRING, desc: windowmanager event message} 75 76WINDOW_EXCEPTION_DETECTION: 77 __BASE: {type: FAULT, level: MINOR, desc: The event is window change begin} 78 DETECTION_TYPE: {type: INT32, desc: detection type} 79 PID: {type: INT32, desc: pid} 80 MSG: {type: STRING, desc: detects abnormal information} 81 82SHOW_WINDOW_TIME: 83 __BASE: {type: STATISTIC, level: MINOR, desc: Sow window time performance} 84 MSG: {type: STRING, desc: windowmanager event message} 85 86GET_SNAPSHOT_TIME: 87 __BASE: {type: STATISTIC, level: MINOR, desc: Get snapshot time performance} 88 MSG: {type: STRING, desc: windowmanager event message} 89 90WM_REPORT_BACK_KEYEVENT: 91 __BASE: {type: STATISTIC, level: MINOR, desc: The back button is triggered} 92 MSG: {type: STRING, desc: windowmanager event message} 93 94WM_REPORT_WINDOW_OPACITY_ZERO: 95 __BASE: {type: STATISTIC, level: MINOR, desc: The window background is transparent} 96 MSG: {type: STRING, desc: windowmanager event message} 97 98WM_REPORT_WINDOW_CREATE: 99 __BASE: {type: STATISTIC, level: MINOR, desc: The window is created} 100 MSG: {type: STRING, desc: windowmanager event message} 101 102WM_REPORT_WINDOW_SHOW: 103 __BASE: {type: STATISTIC, level: MINOR, desc: The window is shown} 104 MSG: {type: STRING, desc: windowmanager event message} 105 106WM_REPORT_WINDOW_HIDE: 107 __BASE: {type: STATISTIC, level: MINOR, desc: The window is hidden} 108 MSG: {type: STRING, desc: windowmanager event message} 109 110WM_REPORT_WINDOW_DESTORY: 111 __BASE: {type: STATISTIC, level: MINOR, desc: The window is destroied} 112 MSG: {type: STRING, desc: windowmanager event message} 113 114WM_REPORT_HIDE_NAVIGATIONBAR: 115 __BASE: {type: STATISTIC, level: MINOR, desc: The navigation bar is hidden} 116 MSG: {type: STRING, desc: windowmanager event message} 117 118FOCUS_WINDOW: 119 __BASE: {type: BEHAVIOR, level: MINOR, tag: PowerStats, desc: Window focus changed} 120 PID: {type: INT32, desc: app pid} 121 UID: {type: INT32, desc: app uid} 122 BUNDLE_NAME: {type: STRING, desc: bundle name} 123 124APPLICATION_BLOCK_INPUT: 125 __BASE: {type: FAULT, level: CRITICAL, desc: The event is not consumed} 126 EVENT_ID: {type: INT32, desc: eventId} 127 PID: {type: INT32, desc: pid} 128 BUNDLE_NAME: {type: STRING, desc: bundleName} 129 PERSISTENT_ID: { type: INT32, desc: persistentId} 130 MSG: {type: STRING, desc: event not consumed} 131 132START_WINDOW: 133 __BASE: {type: BEHAVIOR, level: CRITICAL, desc: The event is application startup request window} 134 BUNDLE_NAME: {type: STRING, desc: bundle name} 135 WINDOW_NAME: {type: STRING, desc: window name} 136 137NOTIFY_FOLD_STATE_CHANGE: 138 __BASE: {type: BEHAVIOR, level: MINOR, desc: notify fold status change} 139 CURRENT_FOLD_STATUS: {type: INT32, desc: current fold status} 140 NEXT_FOLD_STATUS: {type: INT32, desc: next fold status} 141 SENSOR_POSTURE: {type: FLOAT, desc: sensor posture status} 142 143FOLD_STATE_CHANGE_BEGIN: 144 __BASE: {type: BEHAVIOR, level: MINOR, desc: fold status change begin} 145 POWER_OFF_SCREEN: {type: INT32, desc: power off screen id} 146 POWER_ON_SCREEN: {type: INT32, desc: power on screen id} 147 148CONTAINER_START_BEGIN: 149 __BASE: {type: BEHAVIOR, level: MINOR, desc: The event is container startup begin} 150 MISSION_ID: {type: INT32, desc: mission id} 151 BUNDLE_NAME: {type: STRING, desc: bundle name} 152 TIMESTAMP: {type: INT64, desc: timestamp} 153 154VH_MODE: 155 __BASE: {type: BEHAVIOR, level: MINOR, desc: notify VH_MODE} 156 MODE: {type: INT32, desc: VH MODE after rotation} 157 158