• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_STATE_ERROR:
73  __BASE: {type: FAULT, level: CRITICAL, desc: The window attach state and session state mismatch}
74  TYPE: {type: STRING, desc: error type}
75  PID: {type: INT32, desc: app pid}
76  PERSISTENT_ID: {type: INT32, desc: window id}
77  FRAME_NODE_ID: {type: INT32, desc: error frame node id}
78  RS_NODE_ID: {type: INT32, desc: error rs node id}
79  DISPLAY_ID: {type: INT32, desc: display id}
80  WINDOW_NAME: {type: STRING, desc: window name}
81  ATTACH_STATE: {type: BOOL, desc: attach_state}
82  SESSION_STATE: {type: UINT32, desc: session_state}
83
84WINDOW_BOOT_ANIMATION_DONE:
85  __BASE: {type: BEHAVIOR, level: CRITICAL, desc: Boot animation done}
86  MSG: {type: STRING, desc: windowmanager event message}
87
88WINDOW_EXCEPTION_DETECTION:
89  __BASE: {type: FAULT, level: MINOR, desc: The event is window change begin}
90  DETECTION_TYPE: {type: INT32, desc: detection type}
91  PID: {type: INT32, desc: pid}
92  MSG: {type: STRING, desc: detects abnormal information}
93
94UIEXTENSION_EXCEPTION:
95  __BASE: {type: FAULT, level: CRITICAL, desc: UIExtension encountered an exception}
96  EXCEPTION_TYPE: {type: INT32, desc: exception type}
97  PID: {type: INT32, desc: pid}
98  PERSISTENTID: {type: INT32, desc: persistentId}
99  MSG: {type: STRING, desc: uiextension abnormal information}
100
101EVENT_DISPATCH_EXCEPTION:
102  __BASE: {type: FAULT, level: CRITICAL, desc: Event dispatch encountered an exception}
103  EXCEPTION_TYPE: {type: INT32, desc: exception type}
104  PID: {type: INT32, desc: pid}
105  MSG: {type: STRING, desc: event dispatch abnormal information}
106
107SHOW_WINDOW_TIME:
108  __BASE: {type: STATISTIC, level: MINOR, desc: Sow window time performance}
109  MSG: {type: STRING, desc: windowmanager event message}
110
111GET_SNAPSHOT_TIME:
112  __BASE: {type: STATISTIC, level: MINOR, desc: Get snapshot time performance}
113  MSG: {type: STRING, desc: windowmanager event message}
114
115WM_REPORT_BACK_KEYEVENT:
116  __BASE: {type: STATISTIC, level: MINOR, desc: The back button is triggered}
117  MSG: {type: STRING, desc: windowmanager event message}
118
119WM_REPORT_WINDOW_OPACITY_ZERO:
120  __BASE: {type: STATISTIC, level: MINOR, desc: The window background is transparent}
121  MSG: {type: STRING, desc: windowmanager event message}
122
123WM_REPORT_WINDOW_CREATE:
124  __BASE: {type: STATISTIC, level: MINOR, desc: The window is created}
125  MSG: {type: STRING, desc: windowmanager event message}
126
127WM_REPORT_WINDOW_SHOW:
128  __BASE: {type: STATISTIC, level: MINOR, desc: The window is shown}
129  MSG: {type: STRING, desc: windowmanager event message}
130
131WM_REPORT_WINDOW_HIDE:
132  __BASE: {type: STATISTIC, level: MINOR, desc: The window is hidden}
133  MSG: {type: STRING, desc: windowmanager event message}
134
135WM_REPORT_WINDOW_DESTORY:
136  __BASE: {type: STATISTIC, level: MINOR, desc: The window is destroied}
137  MSG: {type: STRING, desc: windowmanager event message}
138
139WM_REPORT_HIDE_NAVIGATIONBAR:
140  __BASE: {type: STATISTIC, level: MINOR, desc: The navigation bar is hidden}
141  MSG: {type: STRING, desc: windowmanager event message}
142
143FOCUS_WINDOW:
144  __BASE: {type: BEHAVIOR, level: MINOR, tag: PowerStats, desc: Window focus changed}
145  PID: {type: INT32, desc: app pid}
146  UID: {type: INT32, desc: app uid}
147  BUNDLE_NAME: {type: STRING, desc: bundle name}
148  WINDOW_TYPE: {type: UINT32, desc: window type}
149
150WINDOW_STATUS_CHANGE:
151  __BASE: {type: BEHAVIOR, level: MINOR, tag: PowerStats, desc: Window status changed}
152  BUNDLE_NAME: {type: STRING, desc: bundle name}
153  WINDOW_MODE: {type: STRING, desc: window mode}
154
155APPLICATION_BLOCK_INPUT:
156  __BASE: {type: FAULT, level: CRITICAL, desc: The event is not consumed}
157  EVENT_ID: {type: INT32, desc: eventId}
158  PID: {type: INT32, desc: pid}
159  BUNDLE_NAME: {type: STRING, desc: bundleName}
160  PERSISTENT_ID: { type: INT32, desc: persistentId}
161  MSG: {type: STRING, desc: event not consumed}
162
163START_WINDOW:
164  __BASE: {type: BEHAVIOR, level: CRITICAL, desc: The event is application startup request window}
165  BUNDLE_NAME: {type: STRING, desc: bundle name}
166  WINDOW_NAME: {type: STRING, desc: window name}
167
168NOTIFY_FOLD_STATE_CHANGE:
169  __BASE: {type: BEHAVIOR, level: MINOR, desc: notify fold status change}
170  CURRENT_FOLD_STATUS: {type: INT32, desc: current fold status}
171  NEXT_FOLD_STATUS: {type: INT32, desc: next fold status}
172  SENSOR_POSTURE: {type: FLOAT, desc: sensor posture status}
173
174FOLD_STATE_CHANGE_BEGIN:
175  __BASE: {type: BEHAVIOR, level: MINOR, desc: fold status change begin}
176  POWER_OFF_SCREEN: {type: INT32, desc: power off screen id}
177  POWER_ON_SCREEN: {type: INT32, desc: power on screen id}
178
179CONTAINER_START_BEGIN:
180  __BASE: {type: BEHAVIOR, level: MINOR, desc: The event is container startup begin}
181  MISSION_ID: {type: INT32, desc: mission id}
182  BUNDLE_NAME: {type: STRING, desc: bundle name}
183  TIMESTAMP: {type: INT64, desc: timestamp}
184
185EXTEND_DISPLAY_PLUG_IN_AND_OUT:
186  __BASE: {type: BEHAVIOR, level: CRITICAL, desc: Records the insertion and removal events of the extended display, preserve: true}
187  PLUG_IN_AND_OUT: {type: UINT32, desc: display plug in and out}
188  DISPLAY_CONNECT_NUM: {type: INT32, desc: Number of connected displays}
189  DISPLAY_INUSED_NUM: {type: INT32, desc: Number of inUsed displays}
190  EXTENSION_DISPLAY_MODE_STATUS: {type: UINT32, desc: extension display mode status}
191  MAIN_DISPLAY_ID: {type: UINT32, desc: Current main display ID}
192
193VH_MODE:
194  __BASE: {type: BEHAVIOR, level: MINOR, desc: notify VH_MODE}
195  MODE: {type: INT32, desc: VH MODE after rotation}
196
197THROW_SLIP:
198  __BASE: {type: BEHAVIOR, level: MINOR, desc: Window throw slip}
199  BUNDLE_NAME: {type: STRING, desc: Bundle name}
200  START_SIDE: {type: INT32, desc: Start side of throw slip 1 B side 2 C side}
201  START_WINDOW_MODE: {type: INT32, desc: Start window mode of throw slip 0 float 1 fullscreen 2 waterfall mode}
202  THROW_MODE: {type: INT32, desc: Throw slip mode 0 move drag 1 multifingers gesture 2 button in titlebar menu}
203