• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2021-2023 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #include "common_event_support.h"
17 #include "event_log_wrapper.h"
18 
19 namespace OHOS {
20 namespace EventFwk {
21 /**
22  * Indicates the action of a common event that the user has finished booting and the system has been loaded.
23  * To subscribe to this common event, your application must have the ohos.permission.RECEIVER_STARTUP_COMPLETED
24  * permission.
25  * This common event can only be published by the system.
26  */
27 const std::string CommonEventSupport::COMMON_EVENT_BOOT_COMPLETED = "usual.event.BOOT_COMPLETED";
28 
29 /**
30  * Indicates the action of a common event that the user has finished booting and the system has been loaded but the
31  * screen is still locked.
32  * To subscribe to this common event, your application must have the ohos.permission.RECEIVER_STARTUP_COMPLETED
33  * permission.
34  * This common event can only be published by the system.
35  */
36 const std::string CommonEventSupport::COMMON_EVENT_LOCKED_BOOT_COMPLETED = "usual.event.LOCKED_BOOT_COMPLETED";
37 
38 /**
39  * Indicates the action of a common event that the device is being shut down and the final shutdown will proceed.
40  * This is different from sleeping. All unsaved data will be lost after shut down.
41  * This common event can only be published by the system.
42  */
43 const std::string CommonEventSupport::COMMON_EVENT_SHUTDOWN = "usual.event.SHUTDOWN";
44 
45 /**
46  * Indicates the action of a common event that the charging state, level, and other information about the battery
47  * have changed.
48  * This common event can only be published by the system.
49  */
50 const std::string CommonEventSupport::COMMON_EVENT_BATTERY_CHANGED = "usual.event.BATTERY_CHANGED";
51 
52 /**
53  * Indicates the action of a common event that the battery level is low.
54  * This common event can only be published by the system.
55  */
56 const std::string CommonEventSupport::COMMON_EVENT_BATTERY_LOW = "usual.event.BATTERY_LOW";
57 
58 /**
59  * Indicates the action of a common event that the battery exit the low state.
60  * This common event can only be published by the system.
61  */
62 const std::string CommonEventSupport::COMMON_EVENT_BATTERY_OKAY = "usual.event.BATTERY_OKAY";
63 
64 /**
65  * Indicates the action of a common event that the device is connected to the external power.
66  * This common event can only be published by the system.
67  */
68 const std::string CommonEventSupport::COMMON_EVENT_POWER_CONNECTED = "usual.event.POWER_CONNECTED";
69 
70 /**
71  * Indicates the action of a common event that the device is disconnected from the external power.
72  * This common event can only be published by the system.
73  */
74 const std::string CommonEventSupport::COMMON_EVENT_POWER_DISCONNECTED = "usual.event.POWER_DISCONNECTED";
75 
76 /**
77  * Indicates the action of a common event that the device screen is off and the device is sleeping.
78  * This common event can only be published by the system.
79  */
80 const std::string CommonEventSupport::COMMON_EVENT_SCREEN_OFF = "usual.event.SCREEN_OFF";
81 
82 /**
83  * Indicates the action of a common event that the device screen is on and the device is interactive.
84  * This common event can only be published by the system.
85  */
86 const std::string CommonEventSupport::COMMON_EVENT_SCREEN_ON = "usual.event.SCREEN_ON";
87 
88 /**
89  * Indicates the action of a common event that the thermal level changed.
90  * This common event can only be published by the system.
91  */
92 const std::string CommonEventSupport::COMMON_EVENT_THERMAL_LEVEL_CHANGED =
93     "usual.event.THERMAL_LEVEL_CHANGED";
94 
95 /**
96  * Indicates the action of a common event that the device is about to enter the force sleep mode.
97  * This common event can only be published by the system.
98  */
99 const std::string CommonEventSupport::COMMON_EVENT_ENTER_FORCE_SLEEP =
100     "usual.event.ENTER_FORCE_SLEEP";
101 
102 /**
103  * Indicates the action of a common event that the device exits the force sleep mode.
104  * This common event can only be published by the system.
105  */
106 const std::string CommonEventSupport::COMMON_EVENT_EXIT_FORCE_SLEEP =
107     "usual.event.EXIT_FORCE_SLEEP";
108 
109 /**
110  * Indicates the action of a common event that the device is about to enter the hibernate mode.
111  * This common event can only be published by the system.
112  */
113 const std::string CommonEventSupport::COMMON_EVENT_ENTER_HIBERNATE =
114     "usual.event.ENTER_HIBERNATE";
115 
116 /**
117  * Indicates the action of a common event that the device exits the hibernate mode.
118  * This common event can only be published by the system.
119  */
120 const std::string CommonEventSupport::COMMON_EVENT_EXIT_HIBERNATE =
121     "usual.event.EXIT_HIBERNATE";
122 
123 /**
124  * Indicates the action of a common event that the device is idle and charging,
125  * services can do some business on the background.
126  * This common event can only be published by the system.
127  */
128 const std::string CommonEventSupport::COMMON_EVENT_CHARGE_IDLE_MODE_CHANGED =
129         "usual.event.CHARGE_IDLE_MODE_CHANGED";
130 /**
131  * Indicates the action of a common event that the user unlocks the device.
132  * This common event can only be published by the system.
133  */
134 const std::string CommonEventSupport::COMMON_EVENT_USER_PRESENT = "usual.event.USER_PRESENT";
135 
136 /**
137  * Indicates the action of a common event that the system time has changed.
138  * This common event can only be published by the system.
139  */
140 const std::string CommonEventSupport::COMMON_EVENT_TIME_TICK = "usual.event.TIME_TICK";
141 
142 /**
143  * Indicates the action of a common event that the system time is set.
144  * This common event can only be published by the system.
145  */
146 const std::string CommonEventSupport::COMMON_EVENT_TIME_CHANGED = "usual.event.TIME_CHANGED";
147 
148 /**
149  * Indicates the action of a common event that the system date has changed.
150  * This common event can only be published by the system.
151  */
152 const std::string CommonEventSupport::COMMON_EVENT_DATE_CHANGED = "usual.event.DATE_CHANGED";
153 
154 /**
155  * Indicates the action of a common event that the system time zone has changed.
156  * This common event can only be published by the system.
157  */
158 const std::string CommonEventSupport::COMMON_EVENT_TIMEZONE_CHANGED = "usual.event.TIMEZONE_CHANGED";
159 
160 /**
161  * Indicates the action of a common event that a user closes a temporary system dialog box.
162  * This common event can only be published by the system.
163  */
164 const std::string CommonEventSupport::COMMON_EVENT_CLOSE_SYSTEM_DIALOGS = "usual.event.CLOSE_SYSTEM_DIALOGS";
165 
166 /**
167  * Indicates the action of a common event that bundle scan has finished.
168  * This common event can only be published by the system.
169  */
170 const std::string CommonEventSupport::COMMON_EVENT_BUNDLE_SCAN_FINISHED = "usual.event.BUNDLE_SCAN_FINISHED";
171 
172 /**
173  * Indicates the action of a common event that a new application package has been installed on the device.
174  * This common event can only be published by the system.
175  */
176 const std::string CommonEventSupport::COMMON_EVENT_PACKAGE_ADDED = "usual.event.PACKAGE_ADDED";
177 
178 /**
179  * This commonEvent means when a new application package start to install on the device.
180  * This is a protected common event that can only be sent by system.
181 */
182 const std::string CommonEventSupport::COMMON_EVENT_PACKAGE_INSTALLATION_STARTED  =
183     "usual.event.PACKAGE_INSTALLATION_STARTED";
184 
185 /**
186  * This common event means an application package enables or disables a dynamic icon.
187  * This is a protected common event that can only be sent by system.
188 */
189 const std::string CommonEventSupport::COMMON_EVENT_DYNAMIC_ICON_CHANGED  =
190     "usual.event.DYNAMIC_ICON_CHANGED";
191 
192 /**
193  * Indicates the action of a common event that a new version of an installed application package has replaced
194  * the previous one on the device.
195  * This common event can only be published by the system.
196  */
197 const std::string CommonEventSupport::COMMON_EVENT_PACKAGE_REPLACED = "usual.event.PACKAGE_REPLACED";
198 
199 /**
200  * Indicates the action of a common event that a new version of your application package has replaced
201  * the previous one. This common event is sent only to the application that was replaced.
202  * This common event can only be published by the system.
203  */
204 const std::string CommonEventSupport::COMMON_EVENT_MY_PACKAGE_REPLACED = "usual.event.MY_PACKAGE_REPLACED";
205 
206 /**
207  * Indicate the action of a common event that an installed application has been uninstalled from the device
208  * with the application data remained.
209  * This common event can only be published by the system.
210  */
211 const std::string CommonEventSupport::COMMON_EVENT_PACKAGE_REMOVED = "usual.event.PACKAGE_REMOVED";
212 
213 /**
214  * Indicates the action of a common event that an installed bundle has been uninstalled from the device with the
215  * application data remained.
216  * This common event can only be published by the system.
217  */
218 const std::string CommonEventSupport::COMMON_EVENT_BUNDLE_REMOVED = "usual.event.BUNDLE_REMOVED";
219 
220 /**
221  * Indicates the action of a common event that an installed application, including both the application data and
222  * code, have been completely uninstalled from the device.
223  * This common event can only be published by the system.
224  */
225 const std::string CommonEventSupport::COMMON_EVENT_PACKAGE_FULLY_REMOVED = "usual.event.PACKAGE_FULLY_REMOVED";
226 
227 /**
228  * Indicates the action of a common event that an application package has been changed
229  * (for example, a component in the package has been enabled or disabled).
230  * This common event can only be published by the system.
231  */
232 const std::string CommonEventSupport::COMMON_EVENT_PACKAGE_CHANGED = "usual.event.PACKAGE_CHANGED";
233 
234 /**
235  * Indicates the action of a common event that the user has restarted the application package and killed all its
236  * processes.
237  * This common event can only be published by the system.
238  */
239 const std::string CommonEventSupport::COMMON_EVENT_PACKAGE_RESTARTED = "usual.event.PACKAGE_RESTARTED";
240 
241 /**
242  * Indicates the action of a common event that the user has cleared the application package data.
243  * This common event is published after COMMON_EVENT_PACKAGE_RESTARTED is triggered and the data has been cleared.
244  * This common event can only be published by the system.
245  */
246 const std::string CommonEventSupport::COMMON_EVENT_PACKAGE_DATA_CLEARED = "usual.event.PACKAGE_DATA_CLEARED";
247 
248 /**
249  * Indicates the action of a common event that the user has cleared the application package cache.
250  * This common event can only be published by the system.
251  */
252 const std::string CommonEventSupport::COMMON_EVENT_PACKAGE_CACHE_CLEARED = "usual.event.PACKAGE_CACHE_CLEARED";
253 
254 /**
255  * Indicates the action of a common event that application packages have been suspended.
256  * This common event can only be published by the system.
257  */
258 const std::string CommonEventSupport::COMMON_EVENT_PACKAGES_SUSPENDED = "usual.event.PACKAGES_SUSPENDED";
259 
260 /**
261  * Indicates the action of a common event that application packages have not been suspended.
262  * This common event can only be published by the system.
263  */
264 const std::string CommonEventSupport::COMMON_EVENT_PACKAGES_UNSUSPENDED = "usual.event.PACKAGES_UNSUSPENDED";
265 
266 /**
267  * Indicates the action of a common event that an application package has been suspended.
268  * This common event can only be published by the system.
269  */
270 const std::string CommonEventSupport::COMMON_EVENT_MY_PACKAGE_SUSPENDED = "usual.event.MY_PACKAGE_SUSPENDED";
271 
272 /**
273  * Indicates the action of a common event that an application package has not been suspended.
274  * This common event can only be published by the system.
275  */
276 const std::string CommonEventSupport::COMMON_EVENT_MY_PACKAGE_UNSUSPENDED = "usual.event.MY_PACKAGE_UNSUSPENDED";
277 
278 /**
279  * Indicates the action of a common event that a user ID has been removed from the system.
280  * This common event can only be published by the system.
281  */
282 const std::string CommonEventSupport::COMMON_EVENT_UID_REMOVED = "usual.event.UID_REMOVED";
283 
284 /**
285  * Indicates the action of a common event that an installed application is started for the first time.
286  * This common event can only be published by the system.
287  */
288 const std::string CommonEventSupport::COMMON_EVENT_PACKAGE_FIRST_LAUNCH = "usual.event.PACKAGE_FIRST_LAUNCH";
289 
290 /**
291  * Indicates the action of a common event that an application requires system verification.
292  * This common event can only be published by the system.
293  */
294 const std::string CommonEventSupport::COMMON_EVENT_PACKAGE_NEEDS_VERIFICATION =
295     "usual.event.PACKAGE_NEEDS_VERIFICATION";
296 /**
297  * Indicates the action of a common event that an application has been verified by the system.
298  * This common event can only be published by the system.
299  */
300 const std::string CommonEventSupport::COMMON_EVENT_PACKAGE_VERIFIED = "usual.event.PACKAGE_VERIFIED";
301 
302 /**
303  * Indicates the action of a common event that applications installed on the external storage become
304  * available for the system.
305  * This common event can only be published by the system.
306  */
307 const std::string CommonEventSupport::COMMON_EVENT_EXTERNAL_APPLICATIONS_AVAILABLE =
308     "usual.event.EXTERNAL_APPLICATIONS_AVAILABLE";
309 
310 /**
311  * Indicates the action of a common event that applications installed on the external storage become unavailable for
312  * the system.
313  * This common event can only be published by the system.
314  */
315 const std::string CommonEventSupport::COMMON_EVENT_EXTERNAL_APPLICATIONS_UNAVAILABLE =
316     "usual.event.EXTERNAL_APPLICATIONS_UNAVAILABLE";
317 
318 /**
319  * Indicates the action of a common event that the device state (for example, orientation and locale) has changed.
320  * This common event can only be published by the system.
321  */
322 const std::string CommonEventSupport::COMMON_EVENT_CONFIGURATION_CHANGED = "usual.event.CONFIGURATION_CHANGED";
323 
324 /**
325  * Indicates the action of a common event that the device locale has changed.
326  * This common event can only be published by the system.
327  */
328 const std::string CommonEventSupport::COMMON_EVENT_LOCALE_CHANGED = "usual.event.LOCALE_CHANGED";
329 
330 /**
331  * Indicates the action of a common event that the device storage is insufficient.
332  */
333 const std::string CommonEventSupport::COMMON_EVENT_MANAGE_PACKAGE_STORAGE = "usual.event.MANAGE_PACKAGE_STORAGE";
334 
335 /**
336  * Indicates the action of a common event that one sandbox package is installed.
337  * This common event can only be published by the system.
338  */
339 const std::string CommonEventSupport::COMMON_EVENT_SANDBOX_PACKAGE_ADDED = "usual.event.SANDBOX_PACKAGE_ADDED";
340 
341 /**
342  * Indicates the action of a common event that one sandbox package is uninstalled.
343  * This common event can only be published by the system.
344  */
345 const std::string CommonEventSupport::COMMON_EVENT_SANDBOX_PACKAGE_REMOVED = "usual.event.SANDBOX_PACKAGE_REMOVED";
346 
347 /**
348  * Indicates the action of a common event that the system is in driving mode.
349  * This is a protected common event, which can be sent only by the system.
350  */
351 const std::string CommonEventSupport::COMMON_EVENT_DRIVE_MODE = "common.event.DRIVE_MODE";
352 
353 /**
354  * Indicates the action of a common event that the system is in home mode.
355  * This is a protected common event, which can be sent only by the system.
356  */
357 const std::string CommonEventSupport::COMMON_EVENT_HOME_MODE = "common.event.HOME_MODE";
358 
359 /**
360  * Indicates the action of a common event that the system is in office mode.
361  * This is a protected common event, which can be sent only by the system.
362  */
363 const std::string CommonEventSupport::COMMON_EVENT_OFFICE_MODE = "common.event.OFFICE_MODE";
364 
365 /**
366  * Indicates the action of a common event that the window mode is split screen.
367  * This is a protected common event, which can be sent only by the system.
368  */
369 const std::string CommonEventSupport::COMMON_EVENT_SPLIT_SCREEN = "common.event.SPLIT_SCREEN";
370 
371 /**
372  * Indicates the action of a common event that the user has been started.
373  */
374 const std::string CommonEventSupport::COMMON_EVENT_USER_STARTED = "usual.event.USER_STARTED";
375 
376 /**
377  * Indicates the action of a common event that the user has been brought to the background.
378  */
379 const std::string CommonEventSupport::COMMON_EVENT_USER_BACKGROUND = "usual.event.USER_BACKGROUND";
380 
381 /**
382  * Indicates the action of a common event that the user has been brought to the foreground.
383  */
384 const std::string CommonEventSupport::COMMON_EVENT_USER_FOREGROUND = "usual.event.USER_FOREGROUND";
385 
386 /**
387  * Indicates the action of a common event that a user switch is happening.
388  * To subscribe to this common event, your application must have the ohos.permission.MANAGE_LOCAL_ACCOUNTS permission.
389  */
390 const std::string CommonEventSupport::COMMON_EVENT_USER_SWITCHED = "usual.event.USER_SWITCHED";
391 
392 /**
393  * Indicates the action of a common event that the user is going to be started.
394  * To subscribe to this common event, your application must have the ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS
395  * permission.
396  */
397 const std::string CommonEventSupport::COMMON_EVENT_USER_STARTING = "usual.event.USER_STARTING";
398 
399 /**
400  * Indicates the action of a common event that the credential-encrypted storage has become unlocked
401  * for the current user when the device is unlocked after being restarted.
402  */
403 const std::string CommonEventSupport::COMMON_EVENT_USER_UNLOCKED = "usual.event.USER_UNLOCKED";
404 
405 /**
406  * Indicates the action of a common event that the user is going to be stopped.
407  * To subscribe to this common event, your application must have the ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS
408  * permission.
409  */
410 const std::string CommonEventSupport::COMMON_EVENT_USER_STOPPING = "usual.event.USER_STOPPING";
411 
412 /**
413  * Indicates the action of a common event that the user has been stopped.
414  */
415 const std::string CommonEventSupport::COMMON_EVENT_USER_STOPPED = "usual.event.USER_STOPPED";
416 
417 /**
418  * Indicates the action of a common event about a login of a user with account ID.
419  * This is a protected common event, which can be sent only by the system.
420  */
421 const std::string CommonEventSupport::COMMON_EVENT_HWID_LOGIN = "common.event.HWID_LOGIN";
422 
423 /**
424  * Indicates the action of a common event about a logout of a user with account ID.
425  * This is a protected common event, which can be sent only by the system.
426  */
427 const std::string CommonEventSupport::COMMON_EVENT_HWID_LOGOUT = "common.event.HWID_LOGOUT";
428 
429 /**
430  * Indicates the action of a common event that the account ID is invalid.
431  * This is a protected common event, which can be sent only by the system.
432  */
433 const std::string CommonEventSupport::COMMON_EVENT_HWID_TOKEN_INVALID = "common.event.HWID_TOKEN_INVALID";
434 
435 /**
436  * Indicates the action of a common event about a logoff of a account ID.
437  * This is a protected common event, which can be sent only by the system.
438  */
439 const std::string CommonEventSupport::COMMON_EVENT_HWID_LOGOFF = "common.event.HWID_LOGOFF";
440 
441 /**
442  * Indicates the action of a common event about the Wi-Fi state, such as enabled and disabled.
443  */
444 const std::string CommonEventSupport::COMMON_EVENT_WIFI_POWER_STATE = "usual.event.wifi.POWER_STATE";
445 
446 /**
447  * Indicates the action of a common event that the Wi-Fi access point has been scanned and proven to be available.
448  * To subscribe to this common event, your application must have the ohos.permission.LOCATION permission.
449  */
450 const std::string CommonEventSupport::COMMON_EVENT_WIFI_SCAN_FINISHED = "usual.event.wifi.SCAN_FINISHED";
451 
452 /**
453  * Indicates the action of a common event that the Wi-Fi signal strength (RSSI) has changed.
454  * To subscribe to this common event, your application must have the ohos.permission.GET_WIFI_INFO permission.
455  */
456 const std::string CommonEventSupport::COMMON_EVENT_WIFI_RSSI_VALUE = "usual.event.wifi.RSSI_VALUE";
457 
458 /**
459  * Indicates the action of a common event that the Wi-Fi connection state has changed.
460  */
461 const std::string CommonEventSupport::COMMON_EVENT_WIFI_CONN_STATE = "usual.event.wifi.CONN_STATE";
462 
463 /**
464  * Indicates the action of a common event about the Wi-Fi hotspot state, such as enabled or disabled.
465  */
466 const std::string CommonEventSupport::COMMON_EVENT_WIFI_HOTSPOT_STATE = "usual.event.wifi.HOTSPOT_STATE";
467 
468 /**
469  * Indicates the action of a common event that a client has joined the Wi-Fi hotspot of the current device. You can
470  * register this common event to listen for information about the clients joining your hotspot.
471  * To subscribe to this common event, your application must have the ohos.permission.GET_WIFI_INFO permission.
472  */
473 const std::string CommonEventSupport::COMMON_EVENT_WIFI_AP_STA_JOIN = "usual.event.wifi.WIFI_HS_STA_JOIN";
474 
475 /**
476  * Indicates the action of a common event that a client has dropped connection to the Wi-Fi hotspot of the current
477  * device. You can register this common event to listen for information about the clients leaving your hotspot.
478  * To subscribe to this common event, your application must have the ohos.permission.GET_WIFI_INFO permission.
479  */
480 const std::string CommonEventSupport::COMMON_EVENT_WIFI_AP_STA_LEAVE = "usual.event.wifi.WIFI_HS_STA_LEAVE";
481 
482 /**
483  * Indicates the action of a common event that the state of MPLink (an enhanced Wi-Fi feature) has changed.
484  * To subscribe to this common event, your application must have the ohos.permission.MPLINK_CHANGE_STATE permission.
485  */
486 const std::string CommonEventSupport::COMMON_EVENT_WIFI_MPLINK_STATE_CHANGE = "usual.event.wifi.mplink.STATE_CHANGE";
487 
488 /**
489  * Indicates the action of a common event that the Wi-Fi P2P connection state has changed.
490  * To subscribe to this common event, your application must have the ohos.permission.GET_WIFI_INFO and
491  * ohos.permission.LOCATION permissions.
492  */
493 const std::string CommonEventSupport::COMMON_EVENT_WIFI_P2P_CONN_STATE = "usual.event.wifi.p2p.CONN_STATE_CHANGE";
494 
495 /**
496  * Indicates the action of a common event about the Wi-Fi P2P state, such as enabled and disabled.
497  * To subscribe to this common event, your application must have the ohos.permission.GET_WIFI_INFO permission.
498  */
499 const std::string CommonEventSupport::COMMON_EVENT_WIFI_P2P_STATE_CHANGED = "usual.event.wifi.p2p.STATE_CHANGE";
500 
501 /**
502  * Indicates that the Wi-Fi P2P peers state change.
503  * To subscribe to this common event, your application must have the ohos.permission.GET_WIFI_INFO permission.
504  */
505 const std::string CommonEventSupport::COMMON_EVENT_WIFI_P2P_PEERS_STATE_CHANGED = "usual.event.wifi.p2p.DEVICES_CHANGE";
506 
507 /**
508  * Indicates that the Wi-Fi P2P discovery state change.
509  * To subscribe to this common event, your application must have the ohos.permission.GET_WIFI_INFO permission.
510  */
511 const std::string CommonEventSupport::COMMON_EVENT_WIFI_P2P_PEERS_DISCOVERY_STATE_CHANGED =
512     "usual.event.wifi.p2p.PEER_DISCOVERY_STATE_CHANGE";
513 
514 /**
515  * Indicates that the Wi-Fi P2P current device state change.
516  * To subscribe to this common event, your application must have the ohos.permission.GET_WIFI_INFO permission.
517  */
518 const std::string CommonEventSupport::COMMON_EVENT_WIFI_P2P_CURRENT_DEVICE_STATE_CHANGED =
519     "usual.event.wifi.p2p.CURRENT_DEVICE_CHANGE";
520 
521 /**
522  * Indicates that the Wi-Fi P2P group info is changed.
523  * To subscribe to this common event, your application must have the ohos.permission.GET_WIFI_INFO permission.
524  */
525 const std::string CommonEventSupport::COMMON_EVENT_WIFI_P2P_GROUP_STATE_CHANGED =
526     "usual.event.wifi.p2p.GROUP_STATE_CHANGED";
527 
528 /**
529 * Indicates that network traffic statistics have been updated.
530 */
531 const std::string CommonEventSupport::COMMON_EVENT_NETMANAGER_NETSTATES_UPDATED =
532     "usual.event.netmanager.NETSTATES_UPDATED";
533 
534 /**
535 * Indicates that the network traffic has exceeded the limit.
536 */
537 const std::string CommonEventSupport::COMMON_EVENT_NETMANAGER_NETSTATES_LIMITED =
538     "usual.event.netmanager.NETSTATES_LIMITED";
539 
540 /**
541  * Indicates the action of a common event about the connection state of Bluetooth handsfree communication.
542  * To subscribe to this common event, your application must have the ohos.permission.USE_BLUETOOTH permission.
543  */
544 const std::string CommonEventSupport::COMMON_EVENT_BLUETOOTH_HANDSFREE_AG_CONNECT_STATE_UPDATE =
545     "usual.event.bluetooth.handsfree.ag.CONNECT_STATE_UPDATE";
546 
547 /**
548  * Indicates the action of a common event that the device connected to the Bluetooth handsfree is active.
549  * To subscribe to this common event, your application must have the ohos.permission.USE_BLUETOOTH permission.
550  */
551 const std::string CommonEventSupport::COMMON_EVENT_BLUETOOTH_HANDSFREE_AG_CURRENT_DEVICE_UPDATE =
552     "usual.event.bluetooth.handsfree.ag.CURRENT_DEVICE_UPDATE";
553 
554 /**
555  * Indicates the action of a common event that the connection state of Bluetooth A2DP has changed.
556  * To subscribe to this common event, your application must have the ohos.permission.USE_BLUETOOTH permission.
557  */
558 const std::string CommonEventSupport::COMMON_EVENT_BLUETOOTH_HANDSFREE_AG_AUDIO_STATE_UPDATE =
559     "usual.event.bluetooth.handsfree.ag.AUDIO_STATE_UPDATE";
560 
561 /**
562  * Indicates the action of a common event about the connection state of Bluetooth A2DP.
563  * To subscribe to this common event, your application must have the ohos.permission.USE_BLUETOOTH permission.
564  */
565 const std::string CommonEventSupport::COMMON_EVENT_BLUETOOTH_A2DPSOURCE_CONNECT_STATE_UPDATE =
566     "usual.event.bluetooth.a2dpsource.CONNECT_STATE_UPDATE";
567 
568 /**
569  * Indicates the action of a common event that the device connected using Bluetooth A2DP is active.
570  * To subscribe to this common event, your application must have the ohos.permission.USE_BLUETOOTH permission.
571  */
572 const std::string CommonEventSupport::COMMON_EVENT_BLUETOOTH_A2DPSOURCE_CURRENT_DEVICE_UPDATE =
573     "usual.event.bluetooth.a2dpsource.CURRENT_DEVICE_UPDATE";
574 
575 /**
576  * Indicates the action of a common event that the playing state of Bluetooth A2DP has changed.
577  * To subscribe to this common event, your application must have the ohos.permission.USE_BLUETOOTH permission.
578  */
579 const std::string CommonEventSupport::COMMON_EVENT_BLUETOOTH_A2DPSOURCE_PLAYING_STATE_UPDATE =
580     "usual.event.bluetooth.a2dpsource.PLAYING_STATE_UPDATE";
581 
582 /**
583  * Indicates the action of a common event that the AVRCP connection state of Bluetooth A2DP has changed.
584  */
585 const std::string CommonEventSupport::COMMON_EVENT_BLUETOOTH_A2DPSOURCE_AVRCP_CONNECT_STATE_UPDATE =
586     "usual.event.bluetooth.a2dpsource.AVRCP_CONNECT_STATE_UPDATE";
587 
588 /**
589  * Indicates the action of a common event that the audio codec state of Bluetooth A2DP has changed.
590  * To subscribe to this common event, your application must have the ohos.permission.USE_BLUETOOTH permission.
591  */
592 const std::string CommonEventSupport::COMMON_EVENT_BLUETOOTH_A2DPSOURCE_CODEC_VALUE_UPDATE =
593     "usual.event.bluetooth.a2dpsource.CODEC_VALUE_UPDATE";
594 
595 /**
596  * Indicates the action of a common event that a remote Bluetooth device has been discovered.
597  * To subscribe to this common event, your application must have the ohos.permission.USE_BLUETOOTH and
598  * ohos.permission.LOCATION permissions.
599  */
600 const std::string CommonEventSupport::COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_DISCOVERED =
601     "usual.event.bluetooth.remotedevice.DISCOVERED";
602 
603 /**
604  * Indicates the action of a common event that the Bluetooth class of a remote Bluetooth device has changed.
605  * To subscribe to this common event, your application must have the ohos.permission.USE_BLUETOOTH permission.
606  */
607 const std::string CommonEventSupport::COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CLASS_VALUE_UPDATE =
608     "usual.event.bluetooth.remotedevice.CLASS_VALUE_UPDATE";
609 
610 /**
611  * Indicates the action of a common event that a low level (ACL) connection has been established with a remote
612  * Bluetooth device.
613  * To subscribe to this common event, your application must have the ohos.permission.USE_BLUETOOTH permission.
614  */
615 const std::string CommonEventSupport::COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_ACL_CONNECTED =
616     "usual.event.bluetooth.remotedevice.ACL_CONNECTED";
617 
618 /**
619  * Indicates the action of a common event that a low level (ACL) connection has been disconnected from a remote
620  * Bluetooth device.
621  * To subscribe to this common event, your application must have the ohos.permission.USE_BLUETOOTH permission.
622  */
623 const std::string CommonEventSupport::COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_ACL_DISCONNECTED =
624     "usual.event.bluetooth.remotedevice.ACL_DISCONNECTED";
625 
626 /**
627  * Indicates the action of a common event that the friendly name of a remote Bluetooth device has been retrieved for
628  * the first time or has been changed since the last retrieval.
629  * To subscribe to this common event, your application must have the ohos.permission.USE_BLUETOOTH permission.
630  */
631 const std::string CommonEventSupport::COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_NAME_UPDATE =
632     "usual.event.bluetooth.remotedevice.NAME_UPDATE";
633 
634 /**
635  * Indicates the action of a common event that the connection state of a remote Bluetooth device has changed.
636  * To subscribe to this common event, your application must have the ohos.permission.USE_BLUETOOTH permission.
637  */
638 const std::string CommonEventSupport::COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_PAIR_STATE =
639     "usual.event.bluetooth.remotedevice.PAIR_STATE";
640 
641 /**
642  * Indicates the action of a common event that the battery level of a remote Bluetooth device has been retrieved
643  * for the first time or has been changed since the last retrieval.
644  * To subscribe to this common event, your application must have the ohos.permission.USE_BLUETOOTH permission.
645  */
646 const std::string CommonEventSupport::COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_BATTERY_VALUE_UPDATE =
647     "usual.event.bluetooth.remotedevice.BATTERY_VALUE_UPDATE";
648 
649 /**
650  * Indicates the action of a common event about the SDP state of a remote Bluetooth device.
651  */
652 const std::string CommonEventSupport::COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_SDP_RESULT =
653     "usual.event.bluetooth.remotedevice.SDP_RESULT";
654 
655 /**
656  * Indicates the action of a common event about the UUID connection state of a remote Bluetooth device.
657  * To subscribe to this common event, your application must have the ohos.permission.DISCOVER_BLUETOOTH permission.
658  */
659 const std::string CommonEventSupport::COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_UUID_VALUE =
660     "usual.event.bluetooth.remotedevice.UUID_VALUE";
661 
662 /**
663  * Indicates the action of a common event about the pairing request from a remote Bluetooth device.
664  * To subscribe to this common event, your application must have the ohos.permission.DISCOVER_BLUETOOTH permission.
665  */
666 const std::string CommonEventSupport::COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_PAIRING_REQ =
667     "usual.event.bluetooth.remotedevice.PAIRING_REQ";
668 
669 /**
670  * Indicates the action of a common event that Bluetooth pairing is canceled.
671  */
672 const std::string CommonEventSupport::COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_PAIRING_CANCEL =
673     "usual.event.bluetooth.remotedevice.PAIRING_CANCEL";
674 
675 /**
676  * Indicates the action of a common event about the connection request from a remote Bluetooth device.
677  */
678 const std::string CommonEventSupport::COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CONNECT_REQ =
679     "usual.event.bluetooth.remotedevice.CONNECT_REQ";
680 
681 /**
682  * Indicates the action of a common event about the response to the connection request from a remote Bluetooth
683  * device.
684  */
685 const std::string CommonEventSupport::COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CONNECT_REPLY =
686     "usual.event.bluetooth.remotedevice.CONNECT_REPLY";
687 
688 /**
689  * Indicates the action of a common event that the connection to a remote Bluetooth device has been canceled.
690  */
691 const std::string CommonEventSupport::COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CONNECT_CANCEL =
692     "usual.event.bluetooth.remotedevice.CONNECT_CANCEL";
693 
694 /**
695  * Indicates the action of a common event that the connection state of a Bluetooth handsfree has changed.
696  */
697 const std::string CommonEventSupport::COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_CONNECT_STATE_UPDATE =
698     "usual.event.bluetooth.handsfreeunit.CONNECT_STATE_UPDATE";
699 
700 /**
701  * Indicates the action of a common event that the audio state of a Bluetooth handsfree has changed.
702  */
703 const std::string CommonEventSupport::COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_AUDIO_STATE_UPDATE =
704     "usual.event.bluetooth.handsfreeunit.AUDIO_STATE_UPDATE";
705 
706 /**
707  * Indicates the action of a common event that the audio gateway state of a Bluetooth handsfree has changed.
708  */
709 const std::string CommonEventSupport::COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_AG_COMMON_EVENT =
710     "usual.event.bluetooth.handsfreeunit.AG_COMMON_EVENT";
711 
712 /**
713  * Indicates the action of a common event that the calling state of a Bluetooth handsfree has changed.
714  */
715 const std::string CommonEventSupport::COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_AG_CALL_STATE_UPDATE =
716     "usual.event.bluetooth.handsfreeunit.AG_CALL_STATE_UPDATE";
717 
718 /**
719  * Indicates the action of a common event that the state of a Bluetooth adapter has been changed, for example,
720  * Bluetooth has been turned on or off.
721  * To subscribe to this common event, your application must have the ohos.permission.USE_BLUETOOTH permission.
722  */
723 const std::string CommonEventSupport::COMMON_EVENT_BLUETOOTH_HOST_STATE_UPDATE =
724     "usual.event.bluetooth.host.STATE_UPDATE";
725 
726 /**
727  * Indicates the action of a common event about the requests for the user to allow Bluetooth to be scanned.
728  */
729 const std::string CommonEventSupport::COMMON_EVENT_BLUETOOTH_HOST_REQ_DISCOVERABLE =
730     "usual.event.bluetooth.host.REQ_DISCOVERABLE";
731 
732 /**
733  * Indicates the action of a common event about the requests for the user to turn on Bluetooth.
734  * To subscribe to this common event, your application must have the ohos.permission.USE_BLUETOOTH permission.
735  */
736 const std::string CommonEventSupport::COMMON_EVENT_BLUETOOTH_HOST_REQ_ENABLE = "usual.event.bluetooth.host.REQ_ENABLE";
737 
738 /**
739  * Indicates the action of a common event about the requests for the user to turn off Bluetooth.
740  * To subscribe to this common event, your application must have the ohos.permission.USE_BLUETOOTH permission.
741  */
742 const std::string CommonEventSupport::COMMON_EVENT_BLUETOOTH_HOST_REQ_DISABLE =
743     "usual.event.bluetooth.host.REQ_DISABLE";
744 
745 /**
746  * Indicates the action of a common event that the Bluetooth scanning mode of a device has changed.
747  * To subscribe to this common event, your application must have the ohos.permission.USE_BLUETOOTH permission.
748  */
749 const std::string CommonEventSupport::COMMON_EVENT_BLUETOOTH_HOST_SCAN_MODE_UPDATE =
750     "usual.event.bluetooth.host.SCAN_MODE_UPDATE";
751 
752 /**
753  * Indicates the action of a common event that the Bluetooth scanning has been started on the device.
754  * To subscribe to this common event, your application must have the ohos.permission.USE_BLUETOOTH permission.
755  */
756 const std::string CommonEventSupport::COMMON_EVENT_BLUETOOTH_HOST_DISCOVERY_STARTED =
757     "usual.event.bluetooth.host.DISCOVERY_STARTED";
758 
759 /**
760  * Indicates the action of a common event that the Bluetooth scanning is finished on the device.
761  * To subscribe to this common event, your application must have the ohos.permission.USE_BLUETOOTH permission.
762  */
763 const std::string CommonEventSupport::COMMON_EVENT_BLUETOOTH_HOST_DISCOVERY_FINISHED =
764     "usual.event.bluetooth.host.DISCOVERY_FINISHED";
765 
766 /**
767  * Indicates the action of a common event that the Bluetooth adapter name of the device has changed.
768  * To subscribe to this common event, your application must have the ohos.permission.USE_BLUETOOTH permission.
769  */
770 const std::string CommonEventSupport::COMMON_EVENT_BLUETOOTH_HOST_NAME_UPDATE =
771     "usual.event.bluetooth.host.NAME_UPDATE";
772 
773 /**
774  * Indicates the action of a common event that the connection state of Bluetooth A2DP Sink has changed.
775  * To subscribe to this common event, your application must have the ohos.permission.USE_BLUETOOTH permission.
776  */
777 const std::string CommonEventSupport::COMMON_EVENT_BLUETOOTH_A2DPSINK_CONNECT_STATE_UPDATE =
778     "usual.event.bluetooth.a2dpsink.CONNECT_STATE_UPDATE";
779 
780 /**
781  * Indicates the action of a common event that the playing state of Bluetooth A2DP Sink has changed.
782  * To subscribe to this common event, your application must have the ohos.permission.USE_BLUETOOTH permission.
783  */
784 const std::string CommonEventSupport::COMMON_EVENT_BLUETOOTH_A2DPSINK_PLAYING_STATE_UPDATE =
785     "usual.event.bluetooth.a2dpsink.PLAYING_STATE_UPDATE";
786 
787 /**
788  * Indicates the action of a common event that the audio state of Bluetooth A2DP Sink has changed.
789  * To subscribe to this common event, your application must have the ohos.permission.USE_BLUETOOTH permission.
790  */
791 const std::string CommonEventSupport::COMMON_EVENT_BLUETOOTH_A2DPSINK_AUDIO_STATE_UPDATE =
792     "usual.event.bluetooth.a2dpsink.AUDIO_STATE_UPDATE";
793 
794 /**
795  * Indicates the status of the Bluetooth device connect status has been changed.
796  */
797 const std::string CommonEventSupport::COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CONNECT_STATUS_VALUE =
798     "usual.event.bluetooth.remotedevice.CONNECT_STATUS_VALUE";
799 
800 /**
801  * Indicates the action of a common event that the state of the device NFC adapter has changed.
802  * This is a protected common event, which can be sent only by the system.
803  */
804 const std::string CommonEventSupport::COMMON_EVENT_NFC_ACTION_ADAPTER_STATE_CHANGED =
805     "usual.event.nfc.action.ADAPTER_STATE_CHANGED";
806 
807 /**
808  * Indicates the action of a common event that the NFC RF field is detected to be in the enabled state.
809  * To subscribe to this common event, your application must have the ohos.permission.MANAGE_SECURE_SETTINGS
810  * permission.
811  * This is a protected common event, which can be sent only by the system.
812  */
813 const std::string CommonEventSupport::COMMON_EVENT_NFC_ACTION_RF_FIELD_ON_DETECTED =
814     "usual.event.nfc.action.RF_FIELD_ON_DETECTED";
815 
816 /**
817  * Indicates the action of a common event that the NFC RF field is detected to be in the disabled state.
818  * To subscribe to this common event, your application must have the ohos.permission.MANAGE_SECURE_SETTINGS
819  * permission.
820  * This is a protected common event, which can be sent only by the system.
821  */
822 const std::string CommonEventSupport::COMMON_EVENT_NFC_ACTION_RF_FIELD_OFF_DETECTED =
823     "usual.event.nfc.action.RF_FIELD_OFF_DETECTED";
824 
825 /**
826  * Indicates the action of a common event that the system stops charging the battery.
827  * This is a protected common event, which can be sent only by the system.
828  */
829 const std::string CommonEventSupport::COMMON_EVENT_DISCHARGING = "usual.event.DISCHARGING";
830 
831 /**
832  * Indicates the action of a common event that the system starts charging the battery.
833  * This is a protected common event, which can be sent only by the system.
834  */
835 const std::string CommonEventSupport::COMMON_EVENT_CHARGING = "usual.event.CHARGING";
836 
837 /**
838  * Indicates the action of a common event that a charge type has been updated.
839  * This is a protected common event, which can be sent only by the system.
840  */
841 const std::string CommonEventSupport::COMMON_EVENT_CHARGE_TYPE_CHANGED = "usual.event.CHARGE_TYPE_CHANGED";
842 
843 /**
844  * Indicates the action of a common event that the system idle mode has changed.
845  * This is a protected common event, which can be sent only by the system.
846  */
847 const std::string CommonEventSupport::COMMON_EVENT_DEVICE_IDLE_MODE_CHANGED = "usual.event.DEVICE_IDLE_MODE_CHANGED";
848 
849 /**
850  * Indicates the action of a common event that the list of exempt applications is updated in the idle mode.
851  * This is a protected common event, which can be sent only by the system.
852  */
853 const std::string CommonEventSupport::COMMON_EVENT_DEVICE_IDLE_EXEMPTION_LIST_UPDATED =
854     "usual.event.DEVICE_IDLE_EXEMPTION_LIST_UPDATED";
855 
856 /**
857  * Indicates the action of a common event that the power save mode of the system has changed.
858  * This is a protected common event, which can be sent only by the system.
859  */
860 const std::string CommonEventSupport::COMMON_EVENT_POWER_SAVE_MODE_CHANGED = "usual.event.POWER_SAVE_MODE_CHANGED";
861 
862 /**
863  * Indicates the action of a common event that a user has been added to the system.
864  * To subscribe to this common event, your application must have the ohos.permission.MANAGE_LOCAL_ACCOUNTS permission.
865  */
866 const std::string CommonEventSupport::COMMON_EVENT_USER_ADDED = "usual.event.USER_ADDED";
867 /**
868  * Indicates the action of a common event that a user has been removed from the system.
869  * To subscribe to this common event, your application must have the ohos.permission.MANAGE_LOCAL_ACCOUNTS permission.
870  */
871 const std::string CommonEventSupport::COMMON_EVENT_USER_REMOVED = "usual.event.USER_REMOVED";
872 
873 /**
874  * Indicates the action of a common event that an ability has been added.
875  * To subscribe to this common event, your application must have the ohos.permission.LISTEN_BUNDLE_CHANGE
876  * permission.
877  * This is a protected common event, which can be sent only by the system.
878  */
879 const std::string CommonEventSupport::COMMON_EVENT_ABILITY_ADDED = "common.event.ABILITY_ADDED";
880 
881 /**
882  * Indicates the action of a common event that an ability has been removed.
883  * To subscribe to this common event, your application must have the ohos.permission.LISTEN_BUNDLE_CHANGE
884  * permission.
885  * This is a protected common event, which can be sent only by the system.
886  */
887 const std::string CommonEventSupport::COMMON_EVENT_ABILITY_REMOVED = "common.event.ABILITY_REMOVED";
888 
889 /**
890  * Indicates the action of a common event that an ability has been updated.
891  * To subscribe to this common event, your application must have the ohos.permission.LISTEN_BUNDLE_CHANGE
892  * permission.
893  * This is a protected common event, which can be sent only by the system.
894  */
895 const std::string CommonEventSupport::COMMON_EVENT_ABILITY_UPDATED = "common.event.ABILITY_UPDATED";
896 
897 /**
898  * Indicates the action of a common event that the location mode of the system has changed.
899  * This is a protected common event, which can be sent only by the system.
900  */
901 const std::string CommonEventSupport::COMMON_EVENT_LOCATION_MODE_STATE_CHANGED =
902     "usual.event.location.MODE_STATE_CHANGED";
903 
904 /**
905  * Indicates the action of a common event that the in-vehicle infotainment (IVI) system of a vehicle is sleeping.
906  * This is a protected common event, which can be sent only by the system.
907  */
908 const std::string CommonEventSupport::COMMON_EVENT_IVI_SLEEP = "common.event.IVI_SLEEP";
909 
910 /**
911  * The ivi is slept and notify the app stop playing.
912  * This is a protected common event that can only be sent by system.
913  */
914 const std::string CommonEventSupport::COMMON_EVENT_IVI_PAUSE = "common.event.IVI_PAUSE";
915 
916 /**
917  * Indicates the action of a common event that a third-party application is instructed to pause the current work.
918  * This is a protected common event, which can be sent only by the system.
919  */
920 const std::string CommonEventSupport::COMMON_EVENT_IVI_STANDBY = "common.event.IVI_STANDBY";
921 
922 /**
923  * Indicates the action of a common event that a third-party application is instructed to save its last mode.
924  * This is a protected common event, which can be sent only by the system.
925  */
926 const std::string CommonEventSupport::COMMON_EVENT_IVI_LASTMODE_SAVE = "common.event.IVI_LASTMODE_SAVE";
927 
928 /**
929  * Indicates the action of a common event that the voltage of the vehicle power system is abnormal.
930  * This is a protected common event, which can be sent only by the system.
931  */
932 const std::string CommonEventSupport::COMMON_EVENT_IVI_VOLTAGE_ABNORMAL = "common.event.IVI_VOLTAGE_ABNORMAL";
933 
934 /**
935  * The ivi temperature is too high.
936  * This is a protected common event that can only be sent by system.
937  * This common event will be delete later, please use COMMON_EVENT_IVI_TEMPERATURE_ABNORMAL.
938  */
939 const std::string CommonEventSupport::COMMON_EVENT_IVI_HIGH_TEMPERATURE = "common.event.IVI_HIGH_TEMPERATURE";
940 
941 /**
942  * The ivi temperature is extreme high.
943  * This is a protected common event that can only be sent by system.
944  * This common event will be delete later, please use COMMON_EVENT_IVI_TEMPERATURE_ABNORMAL.
945  */
946 const std::string CommonEventSupport::COMMON_EVENT_IVI_EXTREME_TEMPERATURE = "common.event.IVI_EXTREME_TEMPERATURE";
947 
948 /**
949  * Indicates the action of a common event that the in-vehicle system has an extreme temperature.
950  * This is a protected common event, which can be sent only by the system.
951  */
952 const std::string CommonEventSupport::COMMON_EVENT_IVI_TEMPERATURE_ABNORMAL = "common.event.IVI_TEMPERATURE_ABNORMAL";
953 
954 /**
955  * Indicates the action of a common event that the voltage of the vehicle power system is restored to normal.
956  * This is a protected common event, which can be sent only by the system.
957  */
958 const std::string CommonEventSupport::COMMON_EVENT_IVI_VOLTAGE_RECOVERY = "common.event.IVI_VOLTAGE_RECOVERY";
959 
960 /**
961  * Indicates the action of a common event that the temperature of the in-vehicle system is restored to normal.
962  * This is a protected common event, which can be sent only by the system.
963  */
964 const std::string CommonEventSupport::COMMON_EVENT_IVI_TEMPERATURE_RECOVERY = "common.event.IVI_TEMPERATURE_RECOVERY";
965 
966 /**
967  * Indicates the action of a common event that the battery service is active.
968  * This is a protected common event, which can be sent only by the system.
969  */
970 const std::string CommonEventSupport::COMMON_EVENT_IVI_ACTIVE = "common.event.IVI_ACTIVE";
971 
972 /**
973  * The usb state changed.
974  * This is a protected common event that can only be sent by system.
975  */
976 const std::string CommonEventSupport::COMMON_EVENT_USB_STATE = "usual.event.hardware.usb.action.USB_STATE";
977 
978 /**
979  * The usb port changed.
980  * This is a protected common event that can only be sent by system.
981  */
982 const std::string CommonEventSupport::COMMON_EVENT_USB_PORT_CHANGED =
983     "usual.event.hardware.usb.action.USB_PORT_CHANGED";
984 
985 /**
986  * Indicates the action of a common event that a USB device has been attached when the user device functions as a USB
987  * host.
988  * This is a protected common event, which can be sent only by the system.
989  */
990 const std::string CommonEventSupport::COMMON_EVENT_USB_DEVICE_ATTACHED =
991     "usual.event.hardware.usb.action.USB_DEVICE_ATTACHED";
992 
993 /**
994  * Indicates the action of a common event that a USB device has been detached when the user device functions as a USB
995  * host.
996  * This is a protected common event, which can be sent only by the system.
997  */
998 const std::string CommonEventSupport::COMMON_EVENT_USB_DEVICE_DETACHED =
999     "usual.event.hardware.usb.action.USB_DEVICE_DETACHED";
1000 
1001 /**
1002  * Indicates the action of a common event that a USB accessory has been attached.
1003  * This is a protected common event, which can be sent only by the system.
1004  */
1005 const std::string CommonEventSupport::COMMON_EVENT_USB_ACCESSORY_ATTACHED =
1006     "usual.event.hardware.usb.action.USB_ACCESSORY_ATTACHED";
1007 
1008 /**
1009  * Indicates the action of a common event that a USB accessory has been detached.
1010  * This is a protected common event, which can be sent only by the system.
1011  */
1012 const std::string CommonEventSupport::COMMON_EVENT_USB_ACCESSORY_DETACHED =
1013     "usual.event.hardware.usb.action.USB_ACCESSORY_DETACHED";
1014 
1015 /**
1016  * The storage space is low.
1017  * This is a protected common event that can only be sent by system.
1018  */
1019 const std::string CommonEventSupport::COMMON_EVENT_DEVICE_STORAGE_LOW = "usual.event.DEVICE_STORAGE_LOW";
1020 
1021 /**
1022  * The storage space is normal.
1023  * This is a protected common event that can only be sent by system.
1024  */
1025 const std::string CommonEventSupport::COMMON_EVENT_DEVICE_STORAGE_OK = "usual.event.DEVICE_STORAGE_OK";
1026 
1027 /**
1028  * The storage space is full.
1029  * This is a protected common event that can only be sent by system.
1030  */
1031 const std::string CommonEventSupport::COMMON_EVENT_DEVICE_STORAGE_FULL = "usual.event.DEVICE_STORAGE_FULL";
1032 
1033 /**
1034  * The network connection was changed.
1035  * This is a protected common event that can only be sent by system.
1036  */
1037 const std::string CommonEventSupport::COMMON_EVENT_CONNECTIVITY_CHANGE = "usual.event.CONNECTIVITY_CHANGE";
1038 
1039 /**
1040  * The global http proxy was changed.
1041  * This is a protected common event that can only be sent by system.
1042  */
1043 const std::string CommonEventSupport::COMMON_EVENT_HTTP_PROXY_CHANGE = "usual.event.HTTP_PROXY_CHANGE";
1044 
1045 /**
1046  * Indicates the action of a common event that an external storage device was removed.
1047  * To subscribe to this common event, your application must have the ohos.permission.WRITE_USER_STORAGE or
1048  * ohos.permission.STORAGE_MANAGER permission.
1049  * This common event can be published only by system applications.
1050  */
1051 const std::string CommonEventSupport::COMMON_EVENT_DISK_REMOVED = "usual.event.data.DISK_REMOVED";
1052 
1053 /**
1054  * Indicates the action of a common event that an external storage device was unmounted.
1055  * To subscribe to this common event, your application must have the ohos.permission.WRITE_USER_STORAGE or
1056  * ohos.permission.STORAGE_MANAGER permission.
1057  * This common event can be published only by system applications.
1058  */
1059 const std::string CommonEventSupport::COMMON_EVENT_DISK_UNMOUNTED = "usual.event.data.DISK_UNMOUNTED";
1060 
1061 /**
1062  * Indicates the action of a common event that an external storage device was mounted.
1063  * To subscribe to this common event, your application must have the ohos.permission.WRITE_USER_STORAGE or
1064  * ohos.permission.STORAGE_MANAGER permission.
1065  * This common event can be published only by system applications.
1066  */
1067 const std::string CommonEventSupport::COMMON_EVENT_DISK_MOUNTED = "usual.event.data.DISK_MOUNTED";
1068 
1069 /**
1070  * Indicates the action of a common event that an external storage device was removed without being unmounted.
1071  * To subscribe to this common event, your application must have the ohos.permission.WRITE_USER_STORAGE or
1072  * ohos.permission.STORAGE_MANAGER permission.
1073  * This common event can be published only by system applications.
1074  */
1075 const std::string CommonEventSupport::COMMON_EVENT_DISK_BAD_REMOVAL = "usual.event.data.DISK_BAD_REMOVAL";
1076 
1077 /**
1078  * Indicates the action of a common event that an external storage device becomes unmountable.
1079  * To subscribe to this common event, your application must have the ohos.permission.WRITE_USER_STORAGE or
1080  * ohos.permission.STORAGE_MANAGER permission.
1081  * This common event can be published only by system applications.
1082  */
1083 const std::string CommonEventSupport::COMMON_EVENT_DISK_UNMOUNTABLE = "usual.event.data.DISK_UNMOUNTABLE";
1084 
1085 /**
1086  * Indicates the action of a common event that an external storage device was ejected.
1087  * To subscribe to this common event, your application must have the ohos.permission.WRITE_USER_STORAGE or
1088  * ohos.permission.STORAGE_MANAGER permission.
1089  * This common event can be published only by system applications.
1090  */
1091 const std::string CommonEventSupport::COMMON_EVENT_DISK_EJECT = "usual.event.data.DISK_EJECT";
1092 
1093 /**
1094  * Indicates the action of a common event that an external storage device was removed.
1095  * To subscribe to this common event, your application must have the ohos.permission.WRITE_USER_STORAGE or
1096  * ohos.permission.STORAGE_MANAGER permission.
1097  * This common event can be published only by system applications.
1098  */
1099 const std::string CommonEventSupport::COMMON_EVENT_VOLUME_REMOVED = "usual.event.data.VOLUME_REMOVED";
1100 
1101 /**
1102  * Indicates the action of a common event that an external storage device was unmounted.
1103  * To subscribe to this common event, your application must have the ohos.permission.WRITE_USER_STORAGE or
1104  * ohos.permission.STORAGE_MANAGER permission.
1105  * This common event can be published only by system applications.
1106  */
1107 const std::string CommonEventSupport::COMMON_EVENT_VOLUME_UNMOUNTED = "usual.event.data.VOLUME_UNMOUNTED";
1108 
1109 /**
1110  * Indicates the action of a common event that an external storage device was mounted.
1111  * To subscribe to this common event, your application must have the ohos.permission.WRITE_USER_STORAGE or
1112  * ohos.permission.STORAGE_MANAGER permission.
1113  * This common event can be published only by system applications.
1114  */
1115 const std::string CommonEventSupport::COMMON_EVENT_VOLUME_MOUNTED = "usual.event.data.VOLUME_MOUNTED";
1116 
1117 /**
1118  * Indicates the action of a common event that an external storage device was removed without being unmounted.
1119  * To subscribe to this common event, your application must have the ohos.permission.WRITE_USER_STORAGE or
1120  * ohos.permission.STORAGE_MANAGER permission.
1121  * This common event can be published only by system applications.
1122  */
1123 const std::string CommonEventSupport::COMMON_EVENT_VOLUME_BAD_REMOVAL = "usual.event.data.VOLUME_BAD_REMOVAL";
1124 
1125 /**
1126  * Indicates the action of a common event that an external storage device was ejected.
1127  * To subscribe to this common event, your application must have the ohos.permission.WRITE_USER_STORAGE or
1128  * ohos.permission.STORAGE_MANAGER permission.
1129  * This common event can be published only by system applications.
1130  */
1131 const std::string CommonEventSupport::COMMON_EVENT_VOLUME_EJECT = "usual.event.data.VOLUME_EJECT";
1132 
1133 /**
1134  * Indicates the action of a common event that the account visible changed.
1135  * To subscribe to this common event, your application must have the ohos.permission.GET_APP_ACCOUNTS permission.
1136  * This is a protected common event, which can be sent only by the system.
1137  */
1138 const std::string CommonEventSupport::COMMON_EVENT_VISIBLE_ACCOUNTS_UPDATED =
1139     "usual.event.data.VISIBLE_ACCOUNTS_UPDATED";
1140 
1141 /**
1142  * Indicates the action of a common event that the account is deleted.
1143  * To subscribe to this common event, your application must have the ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS
1144  * permission.
1145  * This is a protected common event, which can be sent only by the system.
1146  */
1147 const std::string CommonEventSupport::COMMON_EVENT_ACCOUNT_DELETED = "usual.event.data.ACCOUNT_DELETED";
1148 
1149 /**
1150  * Indicates the action of a common event that the foundation is ready.
1151  * To subscribe to this common event, your application must have the ohos.permission.RECEIVER_STARTUP_COMPLETED
1152  * permission.
1153  * This is a protected common event, which can be sent only by the system.
1154  */
1155 const std::string CommonEventSupport::COMMON_EVENT_FOUNDATION_READY = "common.event.FOUNDATION_READY";
1156 
1157 /**
1158  * Indicates the action of a common event that the default voice subscription has changed.
1159  * This is a protected common event that can only be sent by system.
1160  */
1161 const std::string CommonEventSupport::COMMON_EVENT_SIM_CARD_DEFAULT_VOICE_SUBSCRIPTION_CHANGED =
1162     "usual.event.SIM.DEFAULT_VOICE_SUBSCRIPTION_CHANGED";
1163 
1164 /**
1165  * Indicates the action of a common event that the phone SIM card state has changed.
1166  * This is a protected common event that can only be sent by system.
1167  */
1168 const std::string CommonEventSupport::COMMON_EVENT_SIM_STATE_CHANGED = "usual.event.SIM_STATE_CHANGED";
1169 
1170 /**
1171  * Indicates the action of a common event that the airplane mode of the device has changed.
1172  * This common event can be triggered only by system applications.
1173  */
1174 const std::string CommonEventSupport::COMMON_EVENT_AIRPLANE_MODE_CHANGED = "usual.event.AIRPLANE_MODE";
1175 
1176 /**
1177  * Indicates the action of a common event that a new sms bas been received by the device.
1178  * To subscribe to this common event, your application must have the ohos.permission.RECEIVE_SMS permission.
1179  * This common event can be triggered only by system.
1180  */
1181 const std::string CommonEventSupport::COMMON_EVENT_SMS_RECEIVE_COMPLETED = "usual.event.SMS_RECEIVE_COMPLETED";
1182 
1183 /**
1184  * Indicates the action of a common event that a new sms emergency cell broadcast bas been received by the device.
1185  * This common event can be triggered only by system.
1186  */
1187 const std::string CommonEventSupport::COMMON_EVENT_SMS_EMERGENCY_CB_RECEIVE_COMPLETED =
1188     "usual.event.SMS_EMERGENCY_CB_RECEIVE_COMPLETED";
1189 
1190 /**
1191  * Indicates the action of a common event that a new sms normal cell broadcast bas been received by the device.
1192  * This common event can be triggered only by system.
1193  */
1194 const std::string CommonEventSupport::COMMON_EVENT_SMS_CB_RECEIVE_COMPLETED = "usual.event.SMS_CB_RECEIVE_COMPLETED";
1195 
1196 /**
1197  * Indicates the action of a common event that a STK command has been received by the device.
1198  * This common event can be triggered only by system.
1199  */
1200 const std::string CommonEventSupport::COMMON_EVENT_STK_COMMAND = "usual.event.STK_COMMAND";
1201 
1202 /**
1203  * Indicates the action of a common event that STK session end.
1204  * This common event can be triggered only by system.
1205  */
1206 const std::string CommonEventSupport::COMMON_EVENT_STK_SESSION_END = "usual.event.STK_SESSION_END";
1207 
1208 /**
1209  * Indicates the action of a common event that the STK phone card state has changed.
1210  * This common event can be triggered only by system.
1211  */
1212 const std::string CommonEventSupport::COMMON_EVENT_STK_CARD_STATE_CHANGED = "usual.event.STK_CARD_STATE_CHANGED";
1213 
1214 /**
1215  * Indicates the action of a common event that an alpha string during call control  has been received by the device.
1216  * This common event can be triggered only by system.
1217  */
1218 const std::string CommonEventSupport::COMMON_EVENT_STK_ALPHA_IDENTIFIER = "usual.event.STK_ALPHA_IDENTIFIER";
1219 
1220 /**
1221  * Indicates the action of a common event that the spn display information has been updated.
1222  * This common event can be triggered only by system.
1223  */
1224 const std::string CommonEventSupport::COMMON_EVENT_SPN_INFO_CHANGED = "usual.event.SPN_INFO_CHANGED";
1225 
1226 /**
1227  * Indicates the action of a common event that the NITZ time has been updated.
1228  * This is a protected common event that can only be sent by system.
1229  */
1230 const std::string CommonEventSupport::COMMON_EVENT_NITZ_TIME_CHANGED = "usual.event.NITZ_TIME_CHANGED";
1231 
1232 /**
1233  * Indicates the action of a common event that the NITZ time zone has been updated.
1234  * This is a protected common event that can only be sent by system.
1235  */
1236 const std::string CommonEventSupport::COMMON_EVENT_NITZ_TIMEZONE_CHANGED =
1237     "usual.event.NITZ_TIMEZONE_CHANGED";
1238 
1239 /**
1240  * Indicates the action of a common event that a new sms wappush has been received by the device.
1241  * This is a protected common event that can only be sent by system.
1242  */
1243 const std::string CommonEventSupport::COMMON_EVENT_SMS_WAPPUSH_RECEIVE_COMPLETED =
1244     "usual.event.SMS_WAPPUSH_RECEIVE_COMPLETED";
1245 
1246 /**
1247  * Indicates the action of a common event that the operator config has been updated.
1248  * This is a protected common event that can only be sent by system.
1249  */
1250 const std::string CommonEventSupport::COMMON_EVENT_OPERATOR_CONFIG_CHANGED =
1251     "usual.event.OPERATOR_CONFIG_CHANGED";
1252 
1253 /**
1254  * Indicates the action of a common event that the notification slot has been updated.
1255  * This is a protected common event that can only be sent by system.
1256  */
1257 const std::string CommonEventSupport::COMMON_EVENT_SLOT_CHANGE =
1258     "usual.event.SLOT_CHANGE";
1259 
1260 /**
1261  * Only for test case.
1262  */
1263 const std::string CommonEventSupport::COMMON_EVENT_TEST_ACTION1 = "usual.event.test1";
1264 
1265 /**
1266  * Only for test case.
1267  */
1268 const std::string CommonEventSupport::COMMON_EVENT_TEST_ACTION2 = "usual.event.test2";
1269 
1270 /**
1271  * Indicates the action of a common event that the default SMS subscription has
1272  * been changed. This is a protected common event that can only be sent by system.
1273  */
1274 const std::string CommonEventSupport::COMMON_EVENT_SIM_CARD_DEFAULT_SMS_SUBSCRIPTION_CHANGED =
1275     "usual.event.SIM.DEFAULT_SMS_SUBSCRIPTION_CHANGED";
1276 
1277 /**
1278  * Indicates the action of a common event that the default data subscription has been changed.
1279  * This is a protected common event that can only be sent by system.
1280  */
1281 const std::string CommonEventSupport::COMMON_EVENT_SIM_CARD_DEFAULT_DATA_SUBSCRIPTION_CHANGED =
1282     "usual.event.SIM.DEFAULT_DATA_SUBSCRIPTION_CHANGED";
1283 
1284 /**
1285  * Indicates the action of a common event that the default main subscription has been changed.
1286  * This is a protected common event that can only be sent by system.
1287  */
1288 const std::string CommonEventSupport::COMMON_EVENT_SIM_CARD_DEFAULT_MAIN_SUBSCRIPTION_CHANGED =
1289     "usual.event.SIM.DEFAULT_MAIN_SUBSCRIPTION_CHANGED";
1290 
1291 /**
1292  * Indicates the action of a common event that the status of setting primary slot has been changed.
1293  * This is a protected common event that can only be sent by system.
1294  */
1295 const std::string CommonEventSupport::COMMON_EVENT_SET_PRIMARY_SLOT_STATUS = "usual.event.SET_PRIMARY_SLOT_STATUS";
1296 
1297 /**
1298  * Indicates the action of a common event that the roaming status of main card has been changed.
1299  * This is a protected common event that can only be sent by system.
1300  */
1301 const std::string CommonEventSupport::COMMON_EVENT_PRIMARY_SLOT_ROAMING = "usual.event.PRIMARY_SLOT_ROAMING";
1302 
1303 /**
1304  * Indicates the action of a common event that the call state has been changed.
1305  * To subscribe to this protected common event, your application must have the ohos.permission.GET_TELEPHONY_STATE
1306  * permission.
1307  * This is a protected common event that can only be sent by system.
1308  */
1309 const std::string CommonEventSupport::COMMON_EVENT_CALL_STATE_CHANGED = "usual.event.CALL_STATE_CHANGED";
1310 
1311 /**
1312  * Indicates the action of a common event that the cellular data state has been changed.
1313  * This is a protected common event that can only be sent by system.
1314  */
1315 const std::string CommonEventSupport::COMMON_EVENT_CELLULAR_DATA_STATE_CHANGED =
1316     "usual.event.CELLULAR_DATA_STATE_CHANGED";
1317 
1318 /**
1319  * Indicates the action of a common event that the network state has been changed.
1320  * This is a protected common event that can only be sent by system.
1321  */
1322 const std::string CommonEventSupport::COMMON_EVENT_NETWORK_STATE_CHANGED = "usual.event.NETWORK_STATE_CHANGED";
1323 
1324 /**
1325  * Indicates the action of a common event that the signal info has been changed.
1326  * This is a protected common event that can only be sent by system.
1327  */
1328 const std::string CommonEventSupport::COMMON_EVENT_SIGNAL_INFO_CHANGED = "usual.event.SIGNAL_INFO_CHANGED";
1329 
1330 /**
1331  * Indicates the action of a common event that the incoming call has been missed.
1332  * To subscribe to this protected common event, your application must have the ohos.permission.GET_TELEPHONY_STATE
1333  * permission.
1334  * This is a protected common event that can only be sent by system.
1335  */
1336 const std::string CommonEventSupport::COMMON_EVENT_INCOMING_CALL_MISSED = "usual.event.INCOMING_CALL_MISSED";
1337 
1338 /**
1339  * Indicate the result of quick fix apply.
1340  * This common event can be triggered only by system.
1341  */
1342 const std::string CommonEventSupport::COMMON_EVENT_QUICK_FIX_APPLY_RESULT = "usual.event.QUICK_FIX_APPLY_RESULT";
1343 
1344 /**
1345  * Indicate the result of quick fix revoke.
1346  * This common event can be triggered only by system.
1347  */
1348 const std::string CommonEventSupport::COMMON_EVENT_QUICK_FIX_REVOKE_RESULT = "usual.event.QUICK_FIX_REVOKE_RESULT";
1349 
1350 /**
1351  * Indicates the action of a common event that radio state change.
1352  * To subscribe to this protected common event that can only be sent by system.
1353  */
1354 const std::string CommonEventSupport::COMMON_EVENT_RADIO_STATE_CHANGE = "usual.event.RADIO_STATE_CHANGE";
1355 
1356 /**
1357  * Indicates the action of a common event about a login of a distributed account.
1358  * This is a protected common event that can only be sent by system.
1359  */
1360 const std::string CommonEventSupport::COMMON_EVENT_DISTRIBUTED_ACCOUNT_LOGIN =
1361     "common.event.DISTRIBUTED_ACCOUNT_LOGIN";
1362 
1363 /**
1364  * Indicates the action of a common event about a logout of a distributed account.
1365  * This is a protected common event that can only be sent by system.
1366  */
1367 const std::string CommonEventSupport::COMMON_EVENT_DISTRIBUTED_ACCOUNT_LOGOUT =
1368     "common.event.DISTRIBUTED_ACCOUNT_LOGOUT";
1369 
1370 /**
1371  * Indicates the action of a common event that the token of a distributed account is invalid.
1372  * This is a protected common event that can only be sent by system.
1373  */
1374 const std::string CommonEventSupport::COMMON_EVENT_DISTRIBUTED_ACCOUNT_TOKEN_INVALID =
1375     "common.event.DISTRIBUTED_ACCOUNT_TOKEN_INVALID";
1376 
1377 /**
1378  * Indicates the action of a common event about a logoff of a distributed account.
1379  * This is a protected common event that can only be sent by system.
1380  */
1381 const std::string CommonEventSupport::COMMON_EVENT_DISTRIBUTED_ACCOUNT_LOGOFF =
1382     "common.event.DISTRIBUTED_ACCOUNT_LOGOFF";
1383 
1384 /**
1385  * Indicates the action of a common event that the os account information has been updated.
1386  * This is a protected common event that can only be sent by system.
1387 */
1388 const std::string CommonEventSupport::COMMON_EVENT_USER_INFO_UPDATED =
1389     "usual.event.USER_INFO_UPDATED";
1390 
1391 /**
1392  * Indicate the action of a common event that domain account status has been changed.
1393  * This is a protected common event that can only be sent by system.
1394 */
1395 const std::string CommonEventSupport::COMMON_EVENT_DOMAIN_ACCOUNT_STATUS_CHANGED =
1396     "usual.event.DOMAIN_ACCOUNT_STATUS_CHANGED";
1397 
1398 /**
1399  * Indicate the action of a common event that os account has been locking.
1400  * This is a protected common event that can only be sent by system.
1401 */
1402 const std::string CommonEventSupport::COMMON_EVENT_USER_LOCKING =
1403     "usual.event.USER_LOCKING";
1404 
1405 /**
1406  * Indicate the action of a common event that os account status has been locked.
1407  * This is a protected common event that can only be sent by system.
1408 */
1409 const std::string CommonEventSupport::COMMON_EVENT_USER_LOCKED =
1410     "usual.event.USER_LOCKED";
1411 
1412 /**
1413  * Indicates the action of a common event that the screen lock.
1414  * This is a protected common event that can only be sent by system.
1415  */
1416 const std::string CommonEventSupport::COMMON_EVENT_SCREEN_LOCKED = "usual.event.SCREEN_LOCKED";
1417 
1418 /**
1419  * Indicates the action of a common event that the screen unlock.
1420  * This is a protected common event that can only be sent by system.
1421  */
1422 const std::string CommonEventSupport::COMMON_EVENT_SCREEN_UNLOCKED = "usual.event.SCREEN_UNLOCKED";
1423 
1424 /**
1425  * Indicates the action of a common event that the call audio quality information has been updated.
1426  * This is a protected common event that can only be sent by system.
1427  */
1428 const std::string CommonEventSupport::COMMON_EVENT_AUDIO_QUALITY_CHANGE =
1429     "usual.event.AUDIO_QUALITY_CHANGE";
1430 
1431 /**
1432  * Indicates the action of a common event about special code.
1433  * This is a protected common event that can only be sent by system.
1434  */
1435 const std::string CommonEventSupport::COMMON_EVENT_SPECIAL_CODE = "common.event.SPECIAL_CODE";
1436 
1437 /**
1438  * Indicates the action of a common event about reminder
1439  * When the user clicks the button and the application (creator)
1440  * is in the foreground, a event is sent. event data is: button type,reminder id
1441  */
1442 const std::string CommonEventSupport::COMMON_EVENT_REMINDER_STATUS_CHANGE = "usual.event.REMINDER_STATUS_CHANGE";
1443 
1444 /**
1445  * Indicates that the privacy status is changed.
1446  * This is a protected common event that can only be sent by system.
1447  */
1448 const std::string CommonEventSupport::COMMON_EVENT_PRIVACY_STATE_CHANGED = "usual.event.PRIVACY_STATE_CHANGED";
1449 
1450 /**
1451  * This common event means that minors mode is enabled.
1452  * This is a protected common event that can only be sent by system.
1453  */
1454 const std::string CommonEventSupport::COMMON_EVENT_MINORSMODE_ON = "usual.event.MINORSMODE_ON";
1455 
1456 /**
1457  * This common event means that minors mode is disabled.
1458  * This is a protected common event that can only be sent by system.
1459  */
1460 const std::string CommonEventSupport::COMMON_EVENT_MINORSMODE_OFF = "usual.event.MINORSMODE_OFF";
1461 
1462 /**
1463  * Indicates that the file access state is changed.
1464  * This is a protected common event that can only be sent by system.
1465  */
1466 const std::string CommonEventSupport::COMMON_EVENT_SCREEN_LOCK_FILE_ACCESS_STATE_CHANGED =
1467     "usual.event.SCREEN_LOCK_FILE_ACCESS_STATE_CHANGED";
1468 
1469 /**
1470  * Indicates the action of a common event that the bundle resources have been changed.
1471  * To subscribe to this common event, your application must have the ohos.permission.GET_BUNDLE_RESOURCES
1472  * permission.
1473  * This is a protected common event, which can be sent only by the system.
1474  */
1475 const std::string CommonEventSupport::COMMON_EVENT_BUNDLE_RESOURCES_CHANGED = "usual.event.BUNDLE_RESOURCES_CHANGED";
1476 
1477 /**
1478  * This common event means that datashare is ready.
1479  * This is a protected common event that can only be sent by system.
1480  */
1481 const std::string CommonEventSupport::COMMON_EVENT_DATA_SHARE_READY = "usual.event.DATA_SHARE_READY";
1482 
1483 /**
1484  * This common event means that overlay package is added.
1485  * This is a protected common event that can only be sent by system.
1486  */
1487 const std::string CommonEventSupport::COMMON_EVENT_OVERLAY_PACKAGE_ADDED = "usual.event.OVERLAY_PACKAGE_ADDED";
1488 
1489 /**
1490  * This common event means that overlay package is changed.
1491  * This is a protected common event that can only be sent by system.
1492  */
1493 const std::string CommonEventSupport::COMMON_EVENT_OVERLAY_PACKAGE_CHANGED = "usual.event.OVERLAY_PACKAGE_CHANGED";
1494 
1495 /**
1496  * This common event means that disposed rule is added.
1497  * This is a protected common event that can only be sent by system.
1498  */
1499 const std::string CommonEventSupport::COMMON_EVENT_DISPOSED_RULE_ADDED = "usual.event.DISPOSED_RULE_ADDED";
1500 
1501 /**
1502  * This common event means that disposed rule is deleted.
1503  * This is a protected common event that can only be sent by system.
1504  */
1505 const std::string CommonEventSupport::COMMON_EVENT_DISPOSED_RULE_DELETED = "usual.event.DISPOSED_RULE_DELETED";
1506 
1507 /**
1508  * This common event means that vpn connection status has been changed.
1509  * This is a protected common event that can only be sent by system.
1510  */
1511 const std::string CommonEventSupport::COMMON_EVENT_VPN_CONNECTION_STATUS_CHANGED =
1512     "usual.event.VPN_CONNECTION_STATUS_CHANGED";
1513 
1514 /**
1515  * Indicates that the second mount is ready.
1516  * This is a protected common event that can only be sent by system.
1517  */
1518 const std::string CommonEventSupport::COMMON_EVENT_SECOND_MOUNTED = "usual.event.SECOND_MOUNTED";
1519 
1520 /**
1521  * Indicates that an application begins to restored.
1522  * This is a protected common event that can only be sent by system.
1523  */
1524 const std::string CommonEventSupport::COMMON_EVENT_RESTORE_START = "usual.event.RESTORE_START";
1525 
1526 /**
1527  * Indicates that the managed browser policy is changed.
1528  * This is a protected common event that can only be sent by system.
1529  */
1530 const std::string CommonEventSupport::COMMON_EVENT_MANAGED_BROWSER_POLICY_CHANGED =
1531     "usual.event.MANAGED_BROWSER_POLICY_CHANGED";
1532 
1533 /**
1534  * Indicates that the default application is changed.
1535  * This is a protected common event that can only be sent by system.
1536  */
1537 const std::string CommonEventSupport::COMMON_EVENT_DEFAULT_APPLICATION_CHANGED =
1538     "usual.event.DEFAULT_APPLICATION_CHANGED";
1539 
1540 /**
1541  * This common event means that shortcut has been changed.
1542  * To subscribe to this common event, your application must have the ohos.permission.MANAGE_SHORTCUTS permission.
1543  * This is a protected common event that can only be sent by system.
1544  */
1545 const std::string CommonEventSupport::COMMON_EVENT_SHORTCUT_CHANGED = "usual.event.SHORTCUT_CHANGED";
1546 
1547 /**
1548  * This common event means that a system user joins in the account-related trusted device group.
1549  * This is a protected common event that can only be sent by system.
1550  */
1551 const std::string CommonEventSupport::COMMON_EVENT_TRUSTED_RING_CHECKIN = "usual.event.TRUSTED_RING_CHECK_IN";
1552 
1553 /**
1554  * This common event means that a system user quits the account-relate trusted device group.
1555  * This is a protected common event that can only be sent by system.
1556  */
1557 const std::string CommonEventSupport::COMMON_EVENT_TRUSTED_RING_CHECKOUT = "usual.event.TRUSTED_RING_CHECK_OUT";
1558 
1559 /**
1560  * This common event means that the account-related trusted device group has been reset.
1561  * This is a protected common event that can only be sent by system.
1562  */
1563 const std::string CommonEventSupport::COMMON_EVENT_TRUSTED_RING_RESET = "usual.event.TRUSTED_RING_RESET";
1564 
1565 /**
1566  * Indicates that the device has entered kiosk mode.
1567  * This is a protected common event that can only be sent by system.
1568  */
1569 const std::string CommonEventSupport::COMMON_EVENT_KIOSK_MODE_ON = "usual.event.KIOSK_MODE_ON";
1570 
1571 /**
1572  * Indicates that the device has exited kiosk mode.
1573  * This is a protected common event that can only be sent by system.
1574  */
1575 const std::string CommonEventSupport::COMMON_EVENT_KIOSK_MODE_OFF = "usual.event.KIOSK_MODE_OFF";
1576 
1577 /**
1578  * Indicates that the device has updated the config policy of customazation subsystem.
1579  * This is a protected common event that can only be sent by system.
1580  */
1581 const std::string CommonEventSupport::COMMON_EVENT_CUSTOM_CONFIG_POLICY_UPDATED =
1582     "usual.event.CUSTOM_CONFIG_POLICY_UPDATED";
1583 
1584 /**
1585  * Indicates that the device has updated the custom roaming region of device.
1586  * This is a protected common event that can only be sent by system.
1587  */
1588 const std::string CommonEventSupport::COMMON_EVENT_CUSTOM_ROAMING_REGION_UPDATED =
1589     "usual.event.CUSTOM_ROAMING_REGION_UPDATED";
1590 
CommonEventSupport()1591 CommonEventSupport::CommonEventSupport()
1592 {
1593     Init();
1594 }
1595 
~CommonEventSupport()1596 CommonEventSupport::~CommonEventSupport()
1597 {}
1598 
Init()1599 void CommonEventSupport::Init()
1600 {
1601     /**
1602      * Indicates the action of a common event that the user has finished booting and the system has been loaded.
1603      * To subscribe to this common event, your application must have the ohos.permission.RECEIVER_STARTUP_COMPLETED
1604      * permission.
1605      * This common event can only be published by the system.
1606      */
1607     commonEventSupport_.emplace_back(COMMON_EVENT_BOOT_COMPLETED);
1608     /**
1609      * Indicates the action of a common event that the user has finished booting and the system has been loaded but the
1610      * screen is still locked.
1611      * To subscribe to this common event, your application must have the ohos.permission.RECEIVER_STARTUP_COMPLETED
1612      * permission.
1613      * This common event can only be published by the system.
1614      */
1615     commonEventSupport_.emplace_back(COMMON_EVENT_LOCKED_BOOT_COMPLETED);
1616     /**
1617      * Indicates the action of a common event that the device is being shut down and the final shutdown will proceed.
1618      * This is different from sleeping. All unsaved data will be lost after shut down.
1619      * This common event can only be published by the system.
1620      */
1621     commonEventSupport_.emplace_back(COMMON_EVENT_SHUTDOWN);
1622     /**
1623      * Indicates the action of a common event that the charging state, level, and other information about the battery
1624      * have changed.
1625      * This common event can only be published by the system.
1626      */
1627     commonEventSupport_.emplace_back(COMMON_EVENT_BATTERY_CHANGED);
1628     /**
1629      * Indicates the action of a common event that the battery level is low.
1630      * This common event can only be published by the system.
1631      */
1632     commonEventSupport_.emplace_back(COMMON_EVENT_BATTERY_LOW);
1633     /**
1634      * Indicates the action of a common event that the battery exit the low state.
1635      * This common event can only be published by the system.
1636      */
1637     commonEventSupport_.emplace_back(COMMON_EVENT_BATTERY_OKAY);
1638     /**
1639      * Indicates the action of a common event that the device is connected to the external power.
1640      * This common event can only be published by the system.
1641      */
1642     commonEventSupport_.emplace_back(COMMON_EVENT_POWER_CONNECTED);
1643     /**
1644      * Indicates the action of a common event that the device is disconnected from the external power.
1645      * This common event can only be published by the system.
1646      */
1647     commonEventSupport_.emplace_back(COMMON_EVENT_POWER_DISCONNECTED);
1648 
1649     /**
1650      * Indicates the action of a common event that the device screen is off and the device is sleeping.
1651      * This common event can only be published by the system.
1652      */
1653     commonEventSupport_.emplace_back(COMMON_EVENT_SCREEN_OFF);
1654     /**
1655      * Indicates the action of a common event that the device screen is on and the device is interactive.
1656      * This common event can only be published by the system.
1657      */
1658     commonEventSupport_.emplace_back(COMMON_EVENT_SCREEN_ON);
1659     /**
1660      * Indicates the action of a common event that the thermal level changed.
1661      * This common event can only be published by the system.
1662      */
1663     commonEventSupport_.emplace_back(COMMON_EVENT_THERMAL_LEVEL_CHANGED);
1664     /**
1665      * Indicates the action of a common event that the device is about to enter the force sleep mode.
1666      * This common event can only be published by the system.
1667      */
1668     commonEventSupport_.emplace_back(COMMON_EVENT_ENTER_FORCE_SLEEP);
1669     /**
1670      * Indicates the action of a common event that the device exits the force sleep mode.
1671      * This common event can only be published by the system.
1672      */
1673     commonEventSupport_.emplace_back(COMMON_EVENT_EXIT_FORCE_SLEEP);
1674     /**
1675      * Indicates the action of a common event that the device is about to enter the hibernate mode.
1676      * This common event can only be published by the system.
1677      */
1678     commonEventSupport_.emplace_back(COMMON_EVENT_ENTER_HIBERNATE);
1679     /**
1680      * Indicates the action of a common event that the device exits the hibernate mode.
1681      * This common event can only be published by the system.
1682      */
1683     commonEventSupport_.emplace_back(COMMON_EVENT_EXIT_HIBERNATE);
1684     /**
1685      * Indicates the action of a common event that the device is idle and charging,
1686      * services can do some business on the background.
1687      * This common event can only be published by the system.
1688      */
1689     commonEventSupport_.emplace_back(COMMON_EVENT_CHARGE_IDLE_MODE_CHANGED);
1690     /**
1691      * Indicates the action of a common event that the user unlocks the device.
1692      * This common event can only be published by the system.
1693      */
1694     commonEventSupport_.emplace_back(COMMON_EVENT_USER_PRESENT);
1695 
1696     /**
1697      * Indicates the action of a common event that the system time has changed.
1698      * This common event can only be published by the system.
1699      */
1700     commonEventSupport_.emplace_back(COMMON_EVENT_TIME_TICK);
1701     /**
1702      * Indicates the action of a common event that the system time is set.
1703      * This common event can only be published by the system.
1704      */
1705     commonEventSupport_.emplace_back(COMMON_EVENT_TIME_CHANGED);
1706     /**
1707      * Indicates the action of a common event that the system date has changed.
1708      * This common event can only be published by the system.
1709      */
1710     commonEventSupport_.emplace_back(COMMON_EVENT_DATE_CHANGED);
1711     /**
1712      * Indicates the action of a common event that the system time zone has changed.
1713      * This common event can only be published by the system.
1714      */
1715     commonEventSupport_.emplace_back(COMMON_EVENT_TIMEZONE_CHANGED);
1716 
1717     /**
1718      * Indicates the action of a common event that a user closes a temporary system dialog box.
1719      * This common event can only be published by the system.
1720      */
1721     commonEventSupport_.emplace_back(COMMON_EVENT_CLOSE_SYSTEM_DIALOGS);
1722 
1723     /**
1724      * Indicates the action of a common event that bundle scan has finished.
1725      * This common event can only be published by the system.
1726      */
1727     commonEventSupport_.emplace_back(COMMON_EVENT_BUNDLE_SCAN_FINISHED);
1728     /**
1729      * Indicates the action of a common event that a new application package has been installed on the device.
1730      * This common event can only be published by the system.
1731      */
1732     commonEventSupport_.emplace_back(COMMON_EVENT_PACKAGE_ADDED);
1733     /**
1734      * This commonEvent means when a new application package start to install on the device.
1735      * This is a protected common event that can only be sent by system.
1736     */
1737     commonEventSupport_.emplace_back(COMMON_EVENT_PACKAGE_INSTALLATION_STARTED);
1738     /**
1739      * This common event means an application package enables or disables a dynamic icon.
1740      * This is a protected common event that can only be sent by system.
1741     */
1742     commonEventSupport_.emplace_back(COMMON_EVENT_DYNAMIC_ICON_CHANGED);
1743     /**
1744      * Indicates the action of a common event that a new version of an installed application package has replaced
1745      * the previous one on the device.
1746      * This common event can only be published by the system.
1747      */
1748     commonEventSupport_.emplace_back(COMMON_EVENT_PACKAGE_REPLACED);
1749     /**
1750      * Indicates the action of a common event that a new version of your application package has replaced
1751      * the previous one. This common event is sent only to the application that was replaced.
1752      * This common event can only be published by the system.
1753      */
1754     commonEventSupport_.emplace_back(COMMON_EVENT_MY_PACKAGE_REPLACED);
1755     /**
1756      * Indicates the action of a common event that an installed application has been uninstalled from the device
1757      * with the application data remained.
1758      * This common event can only be published by the system.
1759      */
1760     commonEventSupport_.emplace_back(COMMON_EVENT_PACKAGE_REMOVED);
1761     /**
1762      * Indicates the action of a common event that an installed bundle has been uninstalled from the device with the
1763      * application data remained.
1764      * This common event can only be published by the system.
1765      */
1766     commonEventSupport_.emplace_back(COMMON_EVENT_BUNDLE_REMOVED);
1767     /**
1768      * Indicates the action of a common event that an installed application, including both the application data and
1769      * code, have been completely uninstalled from the device.
1770      * This common event can only be published by the system.
1771      */
1772     commonEventSupport_.emplace_back(COMMON_EVENT_PACKAGE_FULLY_REMOVED);
1773     /**
1774      * Indicates the action of a common event that an application package has been changed
1775      * (for example, a component in the package has been enabled or disabled).
1776      * This common event can only be published by the system.
1777      */
1778     commonEventSupport_.emplace_back(COMMON_EVENT_PACKAGE_CHANGED);
1779     /**
1780      * Indicates the action of a common event that the user has restarted the application package and killed all its
1781      * processes.
1782      * This common event can only be published by the system.
1783      */
1784     commonEventSupport_.emplace_back(COMMON_EVENT_PACKAGE_RESTARTED);
1785     /**
1786      * Indicates the action of a common event that the user has cleared the application package data.
1787      * This common event is published after COMMON_EVENT_PACKAGE_RESTARTED is triggered and the data has been cleared.
1788      * This common event can only be published by the system.
1789      */
1790     commonEventSupport_.emplace_back(COMMON_EVENT_PACKAGE_DATA_CLEARED);
1791     /**
1792      * Indicates the action of a common event that the user has cleared the application package cache.
1793      * This common event can only be published by the system.
1794      */
1795     commonEventSupport_.emplace_back(COMMON_EVENT_PACKAGE_CACHE_CLEARED);
1796     /**
1797      * Indicates the action of a common event that application packages have been suspended.
1798      * This common event can only be published by the system.
1799      */
1800     commonEventSupport_.emplace_back(COMMON_EVENT_PACKAGES_SUSPENDED);
1801     /**
1802      * Indicates the action of a common event that application packages have not been suspended.
1803      * This common event can only be published by the system.
1804      */
1805     commonEventSupport_.emplace_back(COMMON_EVENT_PACKAGES_UNSUSPENDED);
1806     /**
1807      * Indicates the action of a common event that an application package has been suspended.
1808      * This common event can only be published by the system.
1809      */
1810     commonEventSupport_.emplace_back(COMMON_EVENT_MY_PACKAGE_SUSPENDED);
1811     /**
1812      * Indicates the action of a common event that an application package has not been suspended.
1813      * This common event can only be published by the system.
1814      */
1815     commonEventSupport_.emplace_back(COMMON_EVENT_MY_PACKAGE_UNSUSPENDED);
1816     /**
1817      * Indicates the action of a common event that a user ID has been removed from the system.
1818      * This common event can only be published by the system.
1819      */
1820     commonEventSupport_.emplace_back(COMMON_EVENT_UID_REMOVED);
1821     /**
1822      * Indicates the action of a common event that an installed application is started for the first time.
1823      * This common event can only be published by the system.
1824      */
1825     commonEventSupport_.emplace_back(COMMON_EVENT_PACKAGE_FIRST_LAUNCH);
1826     /**
1827      * Indicates the action of a common event that an application requires system verification.
1828      * This common event can only be published by the system.
1829      */
1830     commonEventSupport_.emplace_back(COMMON_EVENT_PACKAGE_NEEDS_VERIFICATION);
1831     /**
1832      * Indicates the action of a common event that an application has been verified by the system.
1833      * This common event can only be published by the system.
1834      */
1835     commonEventSupport_.emplace_back(COMMON_EVENT_PACKAGE_VERIFIED);
1836 
1837     /**
1838      * Indicates the action of a common event that applications installed on the external storage become
1839      * available for the system.
1840      * This common event can only be published by the system.
1841      */
1842     commonEventSupport_.emplace_back(COMMON_EVENT_EXTERNAL_APPLICATIONS_AVAILABLE);
1843     /**
1844      * Indicates the action of a common event that applications installed on the external storage become unavailable for
1845      * the system.
1846      * This common event can only be published by the system.
1847      */
1848     commonEventSupport_.emplace_back(COMMON_EVENT_EXTERNAL_APPLICATIONS_UNAVAILABLE);
1849 
1850     /**
1851      * Indicates the action of a common event that the device state (for example, orientation and locale) has changed.
1852      * This common event can only be published by the system.
1853      */
1854     commonEventSupport_.emplace_back(COMMON_EVENT_CONFIGURATION_CHANGED);
1855     /**
1856      * Indicates the action of a common event that the device locale has changed.
1857      * This common event can only be published by the system.
1858      */
1859     commonEventSupport_.emplace_back(COMMON_EVENT_LOCALE_CHANGED);
1860 
1861     /**
1862      * Indicates the action of a common event that the device storage is insufficient.
1863      */
1864     commonEventSupport_.emplace_back(COMMON_EVENT_MANAGE_PACKAGE_STORAGE);
1865 
1866     /**
1867      * Indicates the action of a common event that one sandbox package is installed.
1868      */
1869     commonEventSupport_.emplace_back(COMMON_EVENT_SANDBOX_PACKAGE_ADDED);
1870     /**
1871      * Indicates the action of a common event that one sandbox package is uninstalled.
1872      */
1873     commonEventSupport_.emplace_back(COMMON_EVENT_SANDBOX_PACKAGE_REMOVED);
1874     /**
1875      * Indicates the action of a common event that the system is in driving mode.
1876      * This is a protected common event, which can be sent only by the system.
1877      */
1878     commonEventSupport_.emplace_back(COMMON_EVENT_DRIVE_MODE);
1879     /**
1880      * Indicates the action of a common event that the system is in home mode.
1881      * This is a protected common event, which can be sent only by the system.
1882      */
1883     commonEventSupport_.emplace_back(COMMON_EVENT_HOME_MODE);
1884     /**
1885      * Indicates the action of a common event that the system is in office mode.
1886      * This is a protected common event, which can be sent only by the system.
1887      */
1888     commonEventSupport_.emplace_back(COMMON_EVENT_OFFICE_MODE);
1889 
1890     /**
1891     * Indicates the action of a common event that the window mode is split screen.
1892     * This is a protected common event, which can be sent only by the system.
1893     */
1894     commonEventSupport_.emplace_back(COMMON_EVENT_SPLIT_SCREEN);
1895 
1896     /**
1897      * Indicates the action of a common event that the user has been started.
1898      */
1899     commonEventSupport_.emplace_back(COMMON_EVENT_USER_STARTED);
1900     /**
1901      * Indicates the action of a common event that the user has been brought to the background.
1902      */
1903     commonEventSupport_.emplace_back(COMMON_EVENT_USER_BACKGROUND);
1904     /**
1905      * Indicates the action of a common event that the user has been brought to the foreground.
1906      */
1907     commonEventSupport_.emplace_back(COMMON_EVENT_USER_FOREGROUND);
1908     /**
1909      * Indicates the action of a common event that a user switch is happening.
1910      * To subscribe to this common event, your application must have the ohos.permission.MANAGE_LOCAL_ACCOUNTS
1911      * permission.
1912      */
1913     commonEventSupport_.emplace_back(COMMON_EVENT_USER_SWITCHED);
1914     /**
1915      * Indicates the action of a common event that the user is going to be started.
1916      * To subscribe to this common event, your application must have the ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS
1917      * permission.
1918      */
1919     commonEventSupport_.emplace_back(COMMON_EVENT_USER_STARTING);
1920     /**
1921      * Indicates the action of a common event that the credential-encrypted storage has become unlocked
1922      * for the current user when the device is unlocked after being restarted.
1923      */
1924     commonEventSupport_.emplace_back(COMMON_EVENT_USER_UNLOCKED);
1925     /**
1926      * Indicates the action of a common event that the user is going to be stopped.
1927      * To subscribe to this common event, your application must have the ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS
1928      * permission.
1929      */
1930     commonEventSupport_.emplace_back(COMMON_EVENT_USER_STOPPING);
1931     /**
1932      * Indicates the action of a common event that the user has been stopped.
1933      */
1934     commonEventSupport_.emplace_back(COMMON_EVENT_USER_STOPPED);
1935     /**
1936      * Indicates the action of a common event about a login of a user with account ID.
1937      * This is a protected common event, which can be sent only by the system.
1938      */
1939     commonEventSupport_.emplace_back(COMMON_EVENT_HWID_LOGIN);
1940     /**
1941      * Indicates the action of a common event about a logout of a user with account ID.
1942      * This is a protected common event, which can be sent only by the system.
1943      */
1944     commonEventSupport_.emplace_back(COMMON_EVENT_HWID_LOGOUT);
1945     /**
1946      * Indicates the action of a common event that the account ID is invalid.
1947      * This is a protected common event, which can be sent only by the system.
1948      */
1949     commonEventSupport_.emplace_back(COMMON_EVENT_HWID_TOKEN_INVALID);
1950     /**
1951      * Indicates the action of a common event about a logoff of a account ID.
1952      * This is a protected common event, which can be sent only by the system.
1953      */
1954     commonEventSupport_.emplace_back(COMMON_EVENT_HWID_LOGOFF);
1955 
1956     /**
1957      * Indicates the action of a common event about the Wi-Fi state, such as enabled and disabled.
1958      */
1959     commonEventSupport_.emplace_back(COMMON_EVENT_WIFI_POWER_STATE);
1960 
1961     /**
1962      * Indicates the action of a common event that the Wi-Fi access point has been scanned and proven to be available.
1963      * To subscribe to this common event, your application must have the ohos.permission.LOCATION permission.
1964      */
1965     commonEventSupport_.emplace_back(COMMON_EVENT_WIFI_SCAN_FINISHED);
1966 
1967     /**
1968      * Indicates the action of a common event that the Wi-Fi signal strength (RSSI) has changed.
1969      * To subscribe to this common event, your application must have the ohos.permission.GET_WIFI_INFO permission.
1970      */
1971     commonEventSupport_.emplace_back(COMMON_EVENT_WIFI_RSSI_VALUE);
1972 
1973     /**
1974      * Indicates the action of a common event that the Wi-Fi connection state has changed.
1975      */
1976     commonEventSupport_.emplace_back(COMMON_EVENT_WIFI_CONN_STATE);
1977 
1978     /**
1979      * Indicates the action of a common event about the Wi-Fi hotspot state, such as enabled or disabled.
1980      */
1981     commonEventSupport_.emplace_back(COMMON_EVENT_WIFI_HOTSPOT_STATE);
1982 
1983     /**
1984      * Indicates the action of a common event that a client has joined the Wi-Fi hotspot of the current device. You can
1985      * register this common event to listen for information about the clients joining your hotspot.
1986      * To subscribe to this common event, your application must have the ohos.permission.GET_WIFI_INFO permission.
1987      */
1988     commonEventSupport_.emplace_back(COMMON_EVENT_WIFI_AP_STA_JOIN);
1989 
1990     /**
1991      * Indicates the action of a common event that a client has dropped connection to the Wi-Fi hotspot of the current
1992      * device. You can register this common event to listen for information about the clients leaving your hotspot.
1993      * To subscribe to this common event, your application must have the ohos.permission.GET_WIFI_INFO permission.
1994      */
1995     commonEventSupport_.emplace_back(COMMON_EVENT_WIFI_AP_STA_LEAVE);
1996 
1997     /**
1998      * Indicates the action of a common event that the state of MPLink (an enhanced Wi-Fi feature) has changed.
1999      * To subscribe to this common event, your application must have the ohos.permission.MPLINK_CHANGE_STATE permission.
2000      */
2001     commonEventSupport_.emplace_back(COMMON_EVENT_WIFI_MPLINK_STATE_CHANGE);
2002 
2003     /**
2004      * Indicates the action of a common event that the Wi-Fi P2P connection state has changed.
2005      * To subscribe to this common event, your application must have the ohos.permission.GET_WIFI_INFO and
2006      * ohos.permission.LOCATION permissions.
2007      */
2008     commonEventSupport_.emplace_back(COMMON_EVENT_WIFI_P2P_CONN_STATE);
2009 
2010     /**
2011      * Indicates the action of a common event about the Wi-Fi P2P state, such as enabled and disabled.
2012      * To subscribe to this common event, your application must have the ohos.permission.GET_WIFI_INFO permission.
2013      */
2014     commonEventSupport_.emplace_back(COMMON_EVENT_WIFI_P2P_STATE_CHANGED);
2015 
2016     /**
2017      * Indicates that the Wi-Fi P2P peers state change.
2018      * To subscribe to this common event, your application must have the ohos.permission.GET_WIFI_INFO permission.
2019      */
2020     commonEventSupport_.emplace_back(COMMON_EVENT_WIFI_P2P_PEERS_STATE_CHANGED);
2021 
2022     /**
2023      * Indicates that the Wi-Fi P2P discovery state change.
2024      * To subscribe to this common event, your application must have the ohos.permission.GET_WIFI_INFO permission.
2025      */
2026     commonEventSupport_.emplace_back(COMMON_EVENT_WIFI_P2P_PEERS_DISCOVERY_STATE_CHANGED);
2027 
2028     /**
2029      * Indicates that the Wi-Fi P2P current device state change.
2030      * To subscribe to this common event, your application must have the ohos.permission.GET_WIFI_INFO permission.
2031      */
2032     commonEventSupport_.emplace_back(COMMON_EVENT_WIFI_P2P_CURRENT_DEVICE_STATE_CHANGED);
2033 
2034     /**
2035      * Indicates that the Wi-Fi P2P group info is changed.
2036      * To subscribe to this common event, your application must have the ohos.permission.GET_WIFI_INFO permission.
2037      */
2038     commonEventSupport_.emplace_back(COMMON_EVENT_WIFI_P2P_GROUP_STATE_CHANGED);
2039 
2040     /**
2041      * Indicates that network traffic statistics have been updated.
2042      */
2043     commonEventSupport_.emplace_back(COMMON_EVENT_NETMANAGER_NETSTATES_UPDATED);
2044 
2045     /**
2046      * Indicates that the network traffic has exceeded the limit.
2047      */
2048     commonEventSupport_.emplace_back(COMMON_EVENT_NETMANAGER_NETSTATES_LIMITED);
2049 
2050     /**
2051      * Indicates the action of a common event about the connection state of Bluetooth handsfree communication.
2052      * To subscribe to this common event, your application must have the ohos.permission.USE_BLUETOOTH permission.
2053      */
2054     commonEventSupport_.emplace_back(COMMON_EVENT_BLUETOOTH_HANDSFREE_AG_CONNECT_STATE_UPDATE);
2055 
2056     /**
2057      * Indicates the action of a common event that the device connected to the Bluetooth handsfree is active.
2058      * To subscribe to this common event, your application must have the ohos.permission.USE_BLUETOOTH permission.
2059      */
2060     commonEventSupport_.emplace_back(COMMON_EVENT_BLUETOOTH_HANDSFREE_AG_CURRENT_DEVICE_UPDATE);
2061 
2062     /**
2063      * Indicates the action of a common event that the connection state of Bluetooth A2DP has changed.
2064      * To subscribe to this common event, your application must have the ohos.permission.USE_BLUETOOTH permission.
2065      */
2066     commonEventSupport_.emplace_back(COMMON_EVENT_BLUETOOTH_HANDSFREE_AG_AUDIO_STATE_UPDATE);
2067 
2068     /**
2069      * Indicates the action of a common event about the connection state of Bluetooth A2DP.
2070      * To subscribe to this common event, your application must have the ohos.permission.USE_BLUETOOTH permission.
2071      */
2072     commonEventSupport_.emplace_back(COMMON_EVENT_BLUETOOTH_A2DPSOURCE_CONNECT_STATE_UPDATE);
2073 
2074     /**
2075      * Indicates the action of a common event that the device connected using Bluetooth A2DP is active.
2076      * To subscribe to this common event, your application must have the ohos.permission.USE_BLUETOOTH permission.
2077      */
2078     commonEventSupport_.emplace_back(COMMON_EVENT_BLUETOOTH_A2DPSOURCE_CURRENT_DEVICE_UPDATE);
2079 
2080     /**
2081      * Indicates the action of a common event that the playing state of Bluetooth A2DP has changed.
2082      * To subscribe to this common event, your application must have the ohos.permission.USE_BLUETOOTH permission.
2083      */
2084     commonEventSupport_.emplace_back(COMMON_EVENT_BLUETOOTH_A2DPSOURCE_PLAYING_STATE_UPDATE);
2085 
2086     /**
2087      * Indicates the action of a common event that the AVRCP connection state of Bluetooth A2DP has changed.
2088      */
2089     commonEventSupport_.emplace_back(COMMON_EVENT_BLUETOOTH_A2DPSOURCE_AVRCP_CONNECT_STATE_UPDATE);
2090 
2091     /**
2092      * Indicates the action of a common event that the audio codec state of Bluetooth A2DP has changed.
2093      * To subscribe to this common event, your application must have the ohos.permission.USE_BLUETOOTH permission.
2094      */
2095     commonEventSupport_.emplace_back(COMMON_EVENT_BLUETOOTH_A2DPSOURCE_CODEC_VALUE_UPDATE);
2096 
2097     /**
2098      * Indicates the action of a common event that a remote Bluetooth device has been discovered.
2099      * To subscribe to this common event, your application must have the ohos.permission.USE_BLUETOOTH and
2100      * ohos.permission.LOCATION permissions.
2101      */
2102     commonEventSupport_.emplace_back(COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_DISCOVERED);
2103 
2104     /**
2105      * Indicates the action of a common event that the Bluetooth class of a remote Bluetooth device has changed.
2106      * To subscribe to this common event, your application must have the ohos.permission.USE_BLUETOOTH permission.
2107      */
2108     commonEventSupport_.emplace_back(COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CLASS_VALUE_UPDATE);
2109 
2110     /**
2111      * Indicates the action of a common event that a low level (ACL) connection has been established with a remote
2112      * Bluetooth device.
2113      * To subscribe to this common event, your application must have the ohos.permission.USE_BLUETOOTH permission.
2114      */
2115     commonEventSupport_.emplace_back(COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_ACL_CONNECTED);
2116 
2117     /**
2118      * Indicates the action of a common event that a low level (ACL) connection has been disconnected from a remote
2119      * Bluetooth device.
2120      * To subscribe to this common event, your application must have the ohos.permission.USE_BLUETOOTH permission.
2121      */
2122     commonEventSupport_.emplace_back(COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_ACL_DISCONNECTED);
2123 
2124     /**
2125      * Indicates the action of a common event that the friendly name of a remote Bluetooth device has been retrieved for
2126      * the first time or has been changed since the last retrieval.
2127      * To subscribe to this common event, your application must have the ohos.permission.USE_BLUETOOTH permission.
2128      */
2129     commonEventSupport_.emplace_back(COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_NAME_UPDATE);
2130 
2131     /**
2132      * Indicates the action of a common event that the connection state of a remote Bluetooth device has changed.
2133      * To subscribe to this common event, your application must have the ohos.permission.USE_BLUETOOTH permission.
2134      */
2135     commonEventSupport_.emplace_back(COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_PAIR_STATE);
2136 
2137     /**
2138      * Indicates the action of a common event that the battery level of a remote Bluetooth device has been retrieved
2139      * for the first time or has been changed since the last retrieval.
2140      * To subscribe to this common event, your application must have the ohos.permission.USE_BLUETOOTH permission.
2141      */
2142     commonEventSupport_.emplace_back(COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_BATTERY_VALUE_UPDATE);
2143 
2144     /**
2145      * Indicates the action of a common event about the SDP state of a remote Bluetooth device.
2146      */
2147     commonEventSupport_.emplace_back(COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_SDP_RESULT);
2148 
2149     /**
2150      * Indicates the action of a common event about the UUID connection state of a remote Bluetooth device.
2151      * To subscribe to this common event, your application must have the ohos.permission.DISCOVER_BLUETOOTH permission.
2152      */
2153     commonEventSupport_.emplace_back(COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_UUID_VALUE);
2154 
2155     /**
2156      * Indicates the action of a common event about the pairing request from a remote Bluetooth device.
2157      * To subscribe to this common event, your application must have the ohos.permission.DISCOVER_BLUETOOTH permission.
2158      */
2159     commonEventSupport_.emplace_back(COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_PAIRING_REQ);
2160 
2161     /**
2162      * Indicates the action of a common event that Bluetooth pairing is canceled.
2163      */
2164     commonEventSupport_.emplace_back(COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_PAIRING_CANCEL);
2165 
2166     /**
2167      * Indicates the action of a common event about the connection request from a remote Bluetooth device.
2168      */
2169     commonEventSupport_.emplace_back(COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CONNECT_REQ);
2170 
2171     /**
2172      * Indicates the action of a common event about the response to the connection request from a remote Bluetooth
2173      * device.
2174      */
2175     commonEventSupport_.emplace_back(COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CONNECT_REPLY);
2176 
2177     /**
2178      * Indicates the action of a common event that the connection to a remote Bluetooth device has been canceled.
2179      */
2180     commonEventSupport_.emplace_back(COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CONNECT_CANCEL);
2181 
2182     /**
2183      * Indicates the action of a common event that the connection state of a Bluetooth handsfree has changed.
2184      */
2185     commonEventSupport_.emplace_back(COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_CONNECT_STATE_UPDATE);
2186 
2187     /**
2188      * Indicates the action of a common event that the audio state of a Bluetooth handsfree has changed.
2189      */
2190     commonEventSupport_.emplace_back(COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_AUDIO_STATE_UPDATE);
2191 
2192     /**
2193      * Indicates the action of a common event that the audio gateway state of a Bluetooth handsfree has changed.
2194      */
2195     commonEventSupport_.emplace_back(COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_AG_COMMON_EVENT);
2196 
2197     /**
2198      * Indicates the action of a common event that the calling state of a Bluetooth handsfree has changed.
2199      */
2200     commonEventSupport_.emplace_back(COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_AG_CALL_STATE_UPDATE);
2201 
2202     /**
2203      * Indicates the action of a common event that the state of a Bluetooth adapter has been changed, for example,
2204      * Bluetooth has been turned on or off.
2205      * To subscribe to this common event, your application must have the ohos.permission.USE_BLUETOOTH permission.
2206      */
2207     commonEventSupport_.emplace_back(COMMON_EVENT_BLUETOOTH_HOST_STATE_UPDATE);
2208 
2209     /**
2210      * Indicates the action of a common event about the requests for the user to allow Bluetooth to be scanned.
2211      */
2212     commonEventSupport_.emplace_back(COMMON_EVENT_BLUETOOTH_HOST_REQ_DISCOVERABLE);
2213 
2214     /**
2215      * Indicates the action of a common event about the requests for the user to turn on Bluetooth.
2216      * To subscribe to this common event, your application must have the ohos.permission.USE_BLUETOOTH permission.
2217      */
2218     commonEventSupport_.emplace_back(COMMON_EVENT_BLUETOOTH_HOST_REQ_ENABLE);
2219 
2220     /**
2221      * Indicates the action of a common event about the requests for the user to turn off Bluetooth.
2222      * To subscribe to this common event, your application must have the ohos.permission.USE_BLUETOOTH permission.
2223      */
2224     commonEventSupport_.emplace_back(COMMON_EVENT_BLUETOOTH_HOST_REQ_DISABLE);
2225 
2226     /**
2227      * Indicates the action of a common event that the Bluetooth scanning mode of a device has changed.
2228      * To subscribe to this common event, your application must have the ohos.permission.USE_BLUETOOTH permission.
2229      */
2230     commonEventSupport_.emplace_back(COMMON_EVENT_BLUETOOTH_HOST_SCAN_MODE_UPDATE);
2231 
2232     /**
2233      * Indicates the action of a common event that the Bluetooth scanning has been started on the device.
2234      * To subscribe to this common event, your application must have the ohos.permission.USE_BLUETOOTH permission.
2235      */
2236     commonEventSupport_.emplace_back(COMMON_EVENT_BLUETOOTH_HOST_DISCOVERY_STARTED);
2237 
2238     /**
2239      * Indicates the action of a common event that the Bluetooth scanning is finished on the device.
2240      * To subscribe to this common event, your application must have the ohos.permission.USE_BLUETOOTH permission.
2241      */
2242     commonEventSupport_.emplace_back(COMMON_EVENT_BLUETOOTH_HOST_DISCOVERY_FINISHED);
2243 
2244     /**
2245      * Indicates the action of a common event that the Bluetooth adapter name of the device has changed.
2246      * To subscribe to this common event, your application must have the ohos.permission.USE_BLUETOOTH permission.
2247      */
2248     commonEventSupport_.emplace_back(COMMON_EVENT_BLUETOOTH_HOST_NAME_UPDATE);
2249 
2250     /**
2251      * Indicates the action of a common event that the connection state of Bluetooth A2DP Sink has changed.
2252      * To subscribe to this common event, your application must have the ohos.permission.USE_BLUETOOTH permission.
2253      */
2254     commonEventSupport_.emplace_back(COMMON_EVENT_BLUETOOTH_A2DPSINK_CONNECT_STATE_UPDATE);
2255 
2256     /**
2257      * Indicates the action of a common event that the playing state of Bluetooth A2DP Sink has changed.
2258      * To subscribe to this common event, your application must have the ohos.permission.USE_BLUETOOTH permission.
2259      */
2260     commonEventSupport_.emplace_back(COMMON_EVENT_BLUETOOTH_A2DPSINK_PLAYING_STATE_UPDATE);
2261 
2262     /**
2263      * Indicates the action of a common event that the audio state of Bluetooth A2DP Sink has changed.
2264      * To subscribe to this common event, your application must have the ohos.permission.USE_BLUETOOTH permission.
2265      */
2266     commonEventSupport_.emplace_back(COMMON_EVENT_BLUETOOTH_A2DPSINK_AUDIO_STATE_UPDATE);
2267 
2268      /**
2269      * Indicates the status of the Bluetooth device connect status has been changed.
2270      */
2271     commonEventSupport_.emplace_back(COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CONNECT_STATUS_VALUE);
2272 
2273     /**
2274      * Indicates the action of a common event that the state of the device NFC adapter has changed.
2275      * This is a protected common event, which can be sent only by the system.
2276      */
2277     commonEventSupport_.emplace_back(COMMON_EVENT_NFC_ACTION_ADAPTER_STATE_CHANGED);
2278 
2279     /**
2280      * Indicates the action of a common event that the NFC RF field is detected to be in the enabled state.
2281      * To subscribe to this common event, your application must have the ohos.permission.MANAGE_SECURE_SETTINGS
2282      * permission.
2283      * This is a protected common event, which can be sent only by the system.
2284      */
2285     commonEventSupport_.emplace_back(COMMON_EVENT_NFC_ACTION_RF_FIELD_ON_DETECTED);
2286 
2287     /**
2288      * Indicates the action of a common event that the NFC RF field is detected to be in the disabled state.
2289      * To subscribe to this common event, your application must have the ohos.permission.MANAGE_SECURE_SETTINGS
2290      * permission.
2291      * This is a protected common event, which can be sent only by the system.
2292      */
2293     commonEventSupport_.emplace_back(COMMON_EVENT_NFC_ACTION_RF_FIELD_OFF_DETECTED);
2294 
2295     /**
2296      * Indicates the action of a common event that the system stops charging the battery.
2297      * This is a protected common event, which can be sent only by the system.
2298      */
2299     commonEventSupport_.emplace_back(COMMON_EVENT_DISCHARGING);
2300 
2301     /**
2302      * Indicates the action of a common event that the system starts charging the battery.
2303      * This is a protected common event, which can be sent only by the system.
2304      */
2305     commonEventSupport_.emplace_back(COMMON_EVENT_CHARGING);
2306 
2307     /**
2308      * Indicates the action of a common event that a charge type has been updated.
2309      * This is a protected common event, which can be sent only by the system.
2310      */
2311     commonEventSupport_.emplace_back(COMMON_EVENT_CHARGE_TYPE_CHANGED);
2312 
2313     /**
2314      * Indicates the action of a common event that the system idle mode has changed.
2315      * This is a protected common event, which can be sent only by the system.
2316      */
2317     commonEventSupport_.emplace_back(COMMON_EVENT_DEVICE_IDLE_MODE_CHANGED);
2318 
2319     /**
2320      * Indicates the action of a common event that the list of exempt applications is updated in the idle mode.
2321      * This is a protected common event, which can be sent only by the system.
2322      */
2323     commonEventSupport_.emplace_back(COMMON_EVENT_DEVICE_IDLE_EXEMPTION_LIST_UPDATED);
2324 
2325     /**
2326      * Indicates the action of a common event that the power save mode of the system has changed.
2327      * This is a protected common event, which can be sent only by the system.
2328      */
2329     commonEventSupport_.emplace_back(COMMON_EVENT_POWER_SAVE_MODE_CHANGED);
2330 
2331     /**
2332      * Indicates the action of a common event that a user has been added to the system.
2333      * To subscribe to this common event, your application must have the ohos.permission.MANAGE_LOCAL_ACCOUNTS
2334      * permission.
2335      */
2336     commonEventSupport_.emplace_back(COMMON_EVENT_USER_ADDED);
2337     /**
2338      * Indicates the action of a common event that a user has been removed from the system.
2339      * To subscribe to this common event, your application must have the ohos.permission.MANAGE_LOCAL_ACCOUNTS
2340      * permission.
2341      */
2342     commonEventSupport_.emplace_back(COMMON_EVENT_USER_REMOVED);
2343 
2344     /**
2345      * Indicates the action of a common event that an ability has been added.
2346      * To subscribe to this common event, your application must have the ohos.permission.LISTEN_BUNDLE_CHANGE
2347      * permission.
2348      * This is a protected common event, which can be sent only by the system.
2349      */
2350     commonEventSupport_.emplace_back(COMMON_EVENT_ABILITY_ADDED);
2351 
2352     /**
2353      * Indicates the action of a common event that an ability has been removed.
2354      * To subscribe to this common event, your application must have the ohos.permission.LISTEN_BUNDLE_CHANGE
2355      * permission.
2356      * This is a protected common event, which can be sent only by the system.
2357      */
2358     commonEventSupport_.emplace_back(COMMON_EVENT_ABILITY_REMOVED);
2359 
2360     /**
2361      * Indicates the action of a common event that an ability has been updated.
2362      * To subscribe to this common event, your application must have the ohos.permission.LISTEN_BUNDLE_CHANGE
2363      * permission.
2364      * This is a protected common event, which can be sent only by the system.
2365      */
2366     commonEventSupport_.emplace_back(COMMON_EVENT_ABILITY_UPDATED);
2367 
2368     /**
2369      * Indicates the action of a common event that the location mode of the system has changed.
2370      * This is a protected common event, which can be sent only by the system.
2371      */
2372     commonEventSupport_.emplace_back(COMMON_EVENT_LOCATION_MODE_STATE_CHANGED);
2373 
2374     /**
2375      * Indicates the action of a common event that the in-vehicle infotainment (IVI) system of a vehicle is sleeping.
2376      * This is a protected common event, which can be sent only by the system.
2377      */
2378     commonEventSupport_.emplace_back(COMMON_EVENT_IVI_SLEEP);
2379 
2380     /**
2381      * The ivi is slept and notify the app stop playing.
2382      * This is a protected common event that can only be sent by system.
2383      */
2384     commonEventSupport_.emplace_back(COMMON_EVENT_IVI_PAUSE);
2385 
2386     /**
2387      * Indicates the action of a common event that a third-party application is instructed to pause the current work.
2388      * This is a protected common event, which can be sent only by the system.
2389      */
2390     commonEventSupport_.emplace_back(COMMON_EVENT_IVI_STANDBY);
2391 
2392     /**
2393      * Indicates the action of a common event that a third-party application is instructed to save its last mode.
2394      * This is a protected common event, which can be sent only by the system.
2395      */
2396     commonEventSupport_.emplace_back(COMMON_EVENT_IVI_LASTMODE_SAVE);
2397 
2398     /**
2399      * Indicates the action of a common event that the voltage of the vehicle power system is abnormal.
2400      * This is a protected common event, which can be sent only by the system.
2401      */
2402     commonEventSupport_.emplace_back(COMMON_EVENT_IVI_VOLTAGE_ABNORMAL);
2403 
2404     /**
2405      * The ivi temperature is too high.
2406      * This is a protected common event that can only be sent by system.
2407      * This common event will be delete later, please use COMMON_EVENT_IVI_TEMPERATURE_ABNORMAL.
2408      */
2409     commonEventSupport_.emplace_back(COMMON_EVENT_IVI_HIGH_TEMPERATURE);
2410 
2411     /**
2412      * The ivi temperature is extreme high.
2413      * This is a protected common event that can only be sent by system.
2414      * This common event will be delete later, please use COMMON_EVENT_IVI_TEMPERATURE_ABNORMAL.
2415      */
2416     commonEventSupport_.emplace_back(COMMON_EVENT_IVI_EXTREME_TEMPERATURE);
2417 
2418     /**
2419      * Indicates the action of a common event that the in-vehicle system has an extreme temperature.
2420      * This is a protected common event, which can be sent only by the system.
2421      */
2422     commonEventSupport_.emplace_back(COMMON_EVENT_IVI_TEMPERATURE_ABNORMAL);
2423 
2424     /**
2425      * Indicates the action of a common event that the voltage of the vehicle power system is restored to normal.
2426      * This is a protected common event, which can be sent only by the system.
2427      */
2428     commonEventSupport_.emplace_back(COMMON_EVENT_IVI_VOLTAGE_RECOVERY);
2429 
2430     /**
2431      * Indicates the action of a common event that the temperature of the in-vehicle system is restored to normal.
2432      * This is a protected common event, which can be sent only by the system.
2433      */
2434     commonEventSupport_.emplace_back(COMMON_EVENT_IVI_TEMPERATURE_RECOVERY);
2435 
2436     /**
2437      * Indicates the action of a common event that the battery service is active.
2438      * This is a protected common event, which can be sent only by the system.
2439      */
2440     commonEventSupport_.emplace_back(COMMON_EVENT_IVI_ACTIVE);
2441 
2442     /**
2443      * The usb state changed.
2444      * This is a protected common event that can only be sent by system.
2445      */
2446     commonEventSupport_.emplace_back(COMMON_EVENT_USB_STATE);
2447 
2448     /**
2449      * The usb port changed.
2450      * This is a protected common event that can only be sent by system.
2451      */
2452     commonEventSupport_.emplace_back(COMMON_EVENT_USB_PORT_CHANGED);
2453 
2454     /**
2455      * Indicates the action of a common event that a USB device has been attached when the user device functions as a
2456      * USB host.
2457      * This is a protected common event, which can be sent only by the system.
2458      */
2459     commonEventSupport_.emplace_back(COMMON_EVENT_USB_DEVICE_ATTACHED);
2460 
2461     /**
2462      * Indicates the action of a common event that a USB device has been detached when the user device functions as a
2463      * USB host.
2464      * This is a protected common event, which can be sent only by the system.
2465      */
2466     commonEventSupport_.emplace_back(COMMON_EVENT_USB_DEVICE_DETACHED);
2467 
2468     /**
2469      * Indicates the action of a common event that a USB accessory has been attached.
2470      * This is a protected common event, which can be sent only by the system.
2471      */
2472     commonEventSupport_.emplace_back(COMMON_EVENT_USB_ACCESSORY_ATTACHED);
2473 
2474     /**
2475      * Indicates the action of a common event that a USB accessory has been detached.
2476      * This is a protected common event, which can be sent only by the system.
2477      */
2478     commonEventSupport_.emplace_back(COMMON_EVENT_USB_ACCESSORY_DETACHED);
2479 
2480     /**
2481      * The storage space is low.
2482      * This is a protected common event that can only be sent by system.
2483      */
2484     commonEventSupport_.emplace_back(COMMON_EVENT_DEVICE_STORAGE_LOW);
2485 
2486     /**
2487      * The storage space is normal.
2488      * This is a protected common event that can only be sent by system.
2489      */
2490     commonEventSupport_.emplace_back(COMMON_EVENT_DEVICE_STORAGE_OK);
2491 
2492     /**
2493      * The storage space is full.
2494      * This is a protected common event that can only be sent by system.
2495      */
2496     commonEventSupport_.emplace_back(COMMON_EVENT_DEVICE_STORAGE_FULL);
2497 
2498     /**
2499      * The network connection was changed.
2500      * This is a protected common event that can only be sent by system.
2501      */
2502     commonEventSupport_.emplace_back(COMMON_EVENT_CONNECTIVITY_CHANGE);
2503 
2504     /**
2505      * The global http proxy was changed.
2506      * This is a protected common event that can only be sent by system.
2507      */
2508     commonEventSupport_.emplace_back(COMMON_EVENT_HTTP_PROXY_CHANGE);
2509 
2510     /**
2511      * Indicates the action of a common event that an external storage device was removed.
2512      * To subscribe to this common event, your application must have the ohos.permission.STORAGE_MANAGER permission.
2513      * This common event can be published only by system applications.
2514      */
2515     commonEventSupport_.emplace_back(COMMON_EVENT_DISK_REMOVED);
2516 
2517     /**
2518      * Indicates the action of a common event that an external storage device was unmounted.
2519      * To subscribe to this common event, your application must have the ohos.permission.STORAGE_MANAGER permission.
2520      * This common event can be published only by system applications.
2521      */
2522     commonEventSupport_.emplace_back(COMMON_EVENT_DISK_UNMOUNTED);
2523 
2524     /**
2525      * Indicates the action of a common event that an external storage device was mounted.
2526      * To subscribe to this common event, your application must have the ohos.permission.STORAGE_MANAGER permission.
2527      * This common event can be published only by system applications.
2528      */
2529     commonEventSupport_.emplace_back(COMMON_EVENT_DISK_MOUNTED);
2530 
2531     /**
2532      * Indicates the action of a common event that an external storage device was removed without being unmounted.
2533      * To subscribe to this common event, your application must have the ohos.permission.STORAGE_MANAGER permission.
2534      * This common event can be published only by system applications.
2535      */
2536     commonEventSupport_.emplace_back(COMMON_EVENT_DISK_BAD_REMOVAL);
2537 
2538     /**
2539      * Indicates the action of a common event that an external storage device becomes unmountable.
2540      * To subscribe to this common event, your application must have the ohos.permission.STORAGE_MANAGER permission.
2541      * This common event can be published only by system applications.
2542      */
2543     commonEventSupport_.emplace_back(COMMON_EVENT_DISK_UNMOUNTABLE);
2544 
2545     /**
2546      * Indicates the action of a common event that an external storage device was ejected.
2547      * To subscribe to this common event, your application must have the ohos.permission.STORAGE_MANAGER permission.
2548      * This common event can be published only by system applications.
2549      */
2550     commonEventSupport_.emplace_back(COMMON_EVENT_DISK_EJECT);
2551 
2552     /**
2553      * Indicates the action of a common event that an external storage device was removed.
2554      * To subscribe to this common event, your application must have the ohos.permission.STORAGE_MANAGER permission.
2555      * This common event can be published only by system applications.
2556      */
2557     commonEventSupport_.emplace_back(COMMON_EVENT_VOLUME_REMOVED);
2558 
2559     /**
2560      * Indicates the action of a common event that an external storage device was unmounted.
2561      * To subscribe to this common event, your application must have the ohos.permission.STORAGE_MANAGER permission.
2562      * This common event can be published only by system applications.
2563      */
2564     commonEventSupport_.emplace_back(COMMON_EVENT_VOLUME_UNMOUNTED);
2565 
2566     /**
2567      * Indicates the action of a common event that an external storage device was mounted.
2568      * To subscribe to this common event, your application must have the ohos.permission.STORAGE_MANAGER permission.
2569      * This common event can be published only by system applications.
2570      */
2571     commonEventSupport_.emplace_back(COMMON_EVENT_VOLUME_MOUNTED);
2572 
2573     /**
2574      * Indicates the action of a common event that an external storage device was removed without being unmounted.
2575      * To subscribe to this common event, your application must have the ohos.permission.STORAGE_MANAGER permission.
2576      * This common event can be published only by system applications.
2577      */
2578     commonEventSupport_.emplace_back(COMMON_EVENT_VOLUME_BAD_REMOVAL);
2579 
2580     /**
2581      * Indicates the action of a common event that an external storage device was ejected.
2582      * To subscribe to this common event, your application must have the ohos.permission.STORAGE_MANAGER permission.
2583      * This common event can be published only by system applications.
2584      */
2585     commonEventSupport_.emplace_back(COMMON_EVENT_VOLUME_EJECT);
2586 
2587     /**
2588      * Indicates the action of a common event that the account visible changed.
2589      * To subscribe to this common event, your application must have the ohos.permission.GET_APP_ACCOUNTS permission.
2590      * This is a protected common event, which can be sent only by the system.
2591      */
2592     commonEventSupport_.emplace_back(COMMON_EVENT_VISIBLE_ACCOUNTS_UPDATED);
2593 
2594     /**
2595      * Indicates the action of a common event that the account is deleted.
2596      * To subscribe to this common event, your application must have the ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS
2597      * permission.
2598      * This is a protected common event, which can be sent only by the system.
2599      */
2600     commonEventSupport_.emplace_back(COMMON_EVENT_ACCOUNT_DELETED);
2601 
2602     /**
2603      * Indicates the action of a common event that the foundation is ready.
2604      * To subscribe to this common event, your application must have the ohos.permission.RECEIVER_STARTUP_COMPLETED
2605      * permission.
2606      * This is a protected common event, which can be sent only by the system.
2607      */
2608     commonEventSupport_.emplace_back(COMMON_EVENT_FOUNDATION_READY);
2609 
2610     /**
2611      * Indicates the action of a common event that the default voice subscription has changed.
2612      * This is a protected common event that can only be sent by system.
2613      */
2614     commonEventSupport_.emplace_back(COMMON_EVENT_SIM_CARD_DEFAULT_VOICE_SUBSCRIPTION_CHANGED);
2615 
2616     /**
2617      * Indicates the action of a common event that the phone SIM card state has changed.
2618      * This is a protected common event that can only be sent by system.
2619      */
2620     commonEventSupport_.emplace_back(COMMON_EVENT_SIM_STATE_CHANGED);
2621 
2622     /**
2623      * Indicates the action of a common event that the airplane mode of the device has changed.
2624      * This common event can be triggered only by system applications.
2625      */
2626     commonEventSupport_.emplace_back(COMMON_EVENT_AIRPLANE_MODE_CHANGED);
2627 
2628     /**
2629      * Indicates the action of a common event that a new sms bas been received by the device.
2630      * To subscribe to this common event, your application must have the ohos.permission.RECEIVE_SMS permission.
2631      * This common event can be triggered only by system.
2632      */
2633     commonEventSupport_.emplace_back(COMMON_EVENT_SMS_RECEIVE_COMPLETED);
2634 
2635     /**
2636      * Indicates the action of a common event that a new sms emergency cell broadcast bas been received by the device.
2637      * This common event can be triggered only by system.
2638      */
2639     commonEventSupport_.emplace_back(COMMON_EVENT_SMS_EMERGENCY_CB_RECEIVE_COMPLETED);
2640 
2641     /**
2642      * Indicates the action of a common event that a new sms normal cell broadcast bas been received by the device.
2643      * This common event can be triggered only by system.
2644      */
2645     commonEventSupport_.emplace_back(COMMON_EVENT_SMS_CB_RECEIVE_COMPLETED);
2646 
2647     /**
2648      * Indicates the action of a common event that a STK command has been received by the device.
2649      * This common event can be triggered only by system.
2650      */
2651     commonEventSupport_.emplace_back(COMMON_EVENT_STK_COMMAND);
2652 
2653     /**
2654      * Indicates the action of a common event that STK session end.
2655      * This common event can be triggered only by system.
2656      */
2657     commonEventSupport_.emplace_back(COMMON_EVENT_STK_SESSION_END);
2658 
2659     /**
2660      * Indicates the action of a common event that the STK phone card state has changed.
2661      * This common event can be triggered only by system.
2662      */
2663     commonEventSupport_.emplace_back(COMMON_EVENT_STK_CARD_STATE_CHANGED);
2664 
2665     /**
2666      * Indicates the action of a common event that an alpha string during call control  has been received by the device.
2667      * This common event can be triggered only by system.
2668      */
2669     commonEventSupport_.emplace_back(COMMON_EVENT_STK_ALPHA_IDENTIFIER);
2670 
2671     /**
2672      * Indicates the action of a common event that the spn display information has been updated.
2673      * This common event can be triggered only by system.
2674      */
2675     commonEventSupport_.emplace_back(COMMON_EVENT_SPN_INFO_CHANGED);
2676 
2677     /**
2678      * Indicates the action of a common event that the NITZ time has been updated.
2679      * This is a protected common event that can only be sent by system.
2680      */
2681     commonEventSupport_.emplace_back(COMMON_EVENT_NITZ_TIME_CHANGED);
2682 
2683     /**
2684      * Indicates the action of a common event that the NITZ time zone has been updated.
2685      * This is a protected common event that can only be sent by system.
2686      */
2687     commonEventSupport_.emplace_back(COMMON_EVENT_NITZ_TIMEZONE_CHANGED);
2688 
2689     /**
2690      * Indicates the action of a common event that a new sms wappush has been received by the device.
2691      * This is a protected common event that can only be sent by system.
2692      */
2693     commonEventSupport_.emplace_back(COMMON_EVENT_SMS_WAPPUSH_RECEIVE_COMPLETED);
2694 
2695     /**
2696      * Indicates the action of a common event that the operator config has been updated.
2697      * This is a protected common event that can only be sent by system.
2698      */
2699     commonEventSupport_.emplace_back(COMMON_EVENT_OPERATOR_CONFIG_CHANGED);
2700 
2701     /**
2702      * Indicates the action of a common event that the notification slot has been updated.
2703      * This is a protected common event that can only be sent by system.
2704      */
2705     commonEventSupport_.emplace_back(COMMON_EVENT_SLOT_CHANGE);
2706 
2707     /**
2708      * Only for test case.
2709      */
2710     commonEventSupport_.emplace_back(COMMON_EVENT_TEST_ACTION1);
2711 
2712     /**
2713      * Only for test case.
2714      */
2715     commonEventSupport_.emplace_back(COMMON_EVENT_TEST_ACTION2);
2716 
2717     /**
2718      * Indicates the action of a common event that the default SMS subscription has been changed.
2719      * This is a protected common event that can only be sent by system.
2720      */
2721     commonEventSupport_.emplace_back(COMMON_EVENT_SIM_CARD_DEFAULT_SMS_SUBSCRIPTION_CHANGED);
2722 
2723     /**
2724      * Indicates the action of a common event that the default data subscription has been changed.
2725      * This is a protected common event that can only be sent by system.
2726      */
2727     commonEventSupport_.emplace_back(COMMON_EVENT_SIM_CARD_DEFAULT_DATA_SUBSCRIPTION_CHANGED);
2728 
2729     /**
2730      * Indicates the action of a common event that the call state has been changed.
2731      * To subscribe to this protected common event, your application must have the ohos.permission.GET_TELEPHONY_STATE
2732      * permission.
2733      * This is a protected common event that can only be sent by system.
2734      */
2735     commonEventSupport_.emplace_back(COMMON_EVENT_CALL_STATE_CHANGED);
2736 
2737     /**
2738      * Indicates the action of a common event that the default main subscription has been changed.
2739      * This is a protected common event that can only be sent by system.
2740      */
2741     commonEventSupport_.emplace_back(COMMON_EVENT_SIM_CARD_DEFAULT_MAIN_SUBSCRIPTION_CHANGED);
2742 
2743     /**
2744      * Indicates the action of a common event that the status of setting primary slot has been changed.
2745      * This is a protected common event that can only be sent by system.
2746      */
2747     commonEventSupport_.emplace_back(COMMON_EVENT_SET_PRIMARY_SLOT_STATUS);
2748 
2749     /**
2750      * Indicates the action of a common event that the roaming status of main card has been changed.
2751      * This is a protected common event that can only be sent by system.
2752      */
2753     commonEventSupport_.emplace_back(COMMON_EVENT_PRIMARY_SLOT_ROAMING);
2754 
2755     /**
2756      * Indicates the action of a common event that the cellular data state has been changed.
2757      * This is a protected common event that can only be sent by system.
2758      */
2759     commonEventSupport_.emplace_back(COMMON_EVENT_CELLULAR_DATA_STATE_CHANGED);
2760 
2761     /**
2762      * Indicates the action of a common event that the signal info has been changed.
2763      * This is a protected common event that can only be sent by system.
2764      */
2765     commonEventSupport_.emplace_back(COMMON_EVENT_SIGNAL_INFO_CHANGED);
2766 
2767     /**
2768      * Indicates the action of a common event that the network state has been changed.
2769      * This is a protected common event that can only be sent by system.
2770      */
2771     commonEventSupport_.emplace_back(COMMON_EVENT_NETWORK_STATE_CHANGED);
2772 
2773     /**
2774      * Indicates the action of a common event that the incoming call has been missed.
2775      * To subscribe to this protected common event, your application must have the ohos.permission.GET_TELEPHONY_STATE
2776      * permission.
2777      * This is a protected common event that can only be sent by system.
2778      */
2779     commonEventSupport_.emplace_back(COMMON_EVENT_INCOMING_CALL_MISSED);
2780 
2781     /**
2782      * Indicate the result of quick fix apply.
2783      * This common event can be triggered only by system.
2784      */
2785     commonEventSupport_.emplace_back(COMMON_EVENT_QUICK_FIX_APPLY_RESULT);
2786 
2787     /**
2788      * Indicate the result of quick fix revoke.
2789      * This common event can be triggered only by system.
2790      */
2791     commonEventSupport_.emplace_back(COMMON_EVENT_QUICK_FIX_REVOKE_RESULT);
2792 
2793     /**
2794      * Indicates the action of a common event that radio state change.
2795      * To subscribe to this protected common event that can only be sent by system.
2796      */
2797     commonEventSupport_.emplace_back(COMMON_EVENT_RADIO_STATE_CHANGE);
2798 
2799     /**
2800     * Indicates the action of a common event about a login of a distributed account.
2801     * This is a protected common event that can only be sent by system.
2802     */
2803     commonEventSupport_.emplace_back(COMMON_EVENT_DISTRIBUTED_ACCOUNT_LOGIN);
2804 
2805     /**
2806     * Indicates the action of a common event about a logout of a distributed account.
2807     * This is a protected common event that can only be sent by system.
2808     */
2809     commonEventSupport_.emplace_back(COMMON_EVENT_DISTRIBUTED_ACCOUNT_LOGOUT);
2810 
2811     /**
2812     * Indicates the action of a common event that the token of a distributed account is invalid.
2813     * This is a protected common event that can only be sent by system.
2814     */
2815     commonEventSupport_.emplace_back(COMMON_EVENT_DISTRIBUTED_ACCOUNT_TOKEN_INVALID);
2816 
2817     /**
2818     * Indicates the action of a common event about a logoff of a distributed account.
2819     * This is a protected common event that can only be sent by system.
2820     */
2821     commonEventSupport_.emplace_back(COMMON_EVENT_DISTRIBUTED_ACCOUNT_LOGOFF);
2822 
2823     /**
2824     * Indicates the action of a common event that the user information has been updated.
2825     * This is a protected common event that can only be sent by system.
2826     */
2827     commonEventSupport_.emplace_back(COMMON_EVENT_USER_INFO_UPDATED);
2828 
2829     /**
2830     * Indicate the action of a common event that domain account status has been changed.
2831     * This is a protected common event that can only be sent by system.
2832     */
2833     commonEventSupport_.emplace_back(COMMON_EVENT_DOMAIN_ACCOUNT_STATUS_CHANGED);
2834 
2835     /**
2836     * Indicate the action of a common event that os account status has been locking.
2837     * This is a protected common event that can only be sent by system.
2838     */
2839     commonEventSupport_.emplace_back(COMMON_EVENT_USER_LOCKING);
2840 
2841     /**
2842     * Indicate the action of a common event that os account status has been locked.
2843     * This is a protected common event that can only be sent by system.
2844     */
2845     commonEventSupport_.emplace_back(COMMON_EVENT_USER_LOCKED);
2846 
2847     /**
2848      * Indicates the action of a common event that the screen lock.
2849      * This is a protected common event that can only be sent by system.
2850      */
2851     commonEventSupport_.emplace_back(COMMON_EVENT_SCREEN_LOCKED);
2852 
2853     /**
2854      * Indicates the action of a common event that the screen unlock.
2855      * This is a protected common event that can only be sent by system.
2856      */
2857     commonEventSupport_.emplace_back(COMMON_EVENT_SCREEN_UNLOCKED);
2858 
2859     /**
2860     * Indicates the action of a common event that the call audio quality information has been updated.
2861     * This is a protected common event that can only be sent by system.
2862     */
2863     commonEventSupport_.emplace_back(COMMON_EVENT_AUDIO_QUALITY_CHANGE);
2864 
2865     /**
2866     * Indicates the action of a common event about special code.
2867     * This is a protected common event that can only be sent by system.
2868     */
2869     commonEventSupport_.emplace_back(COMMON_EVENT_SPECIAL_CODE);
2870 
2871     /**
2872      * Indicates the action of a common event about reminder
2873      * When the user clicks the button and the application (creator)
2874      * is in the foreground, a event is sent. event data is: button type,reminder id
2875      */
2876     commonEventSupport_.emplace_back(COMMON_EVENT_REMINDER_STATUS_CHANGE);
2877 
2878     /**
2879      * Indicates that the privacy status is changed.
2880      * This is a protected common event that can only be sent by system.
2881      */
2882     commonEventSupport_.emplace_back(COMMON_EVENT_PRIVACY_STATE_CHANGED);
2883 
2884     /**
2885      * This common event means that minors mode is enabled.
2886      * This is a protected common event that can only be sent by system.
2887      */
2888     commonEventSupport_.emplace_back(COMMON_EVENT_MINORSMODE_ON);
2889 
2890     /**
2891      * This common event means that minors mode is disabled.
2892      * This is a protected common event that can only be sent by system.
2893      */
2894     commonEventSupport_.emplace_back(COMMON_EVENT_MINORSMODE_OFF);
2895 
2896     /**
2897      * Indicates that the file access state is changed.
2898      * This is a protected common event that can only be sent by system.
2899      */
2900     commonEventSupport_.emplace_back(COMMON_EVENT_SCREEN_LOCK_FILE_ACCESS_STATE_CHANGED);
2901 
2902     /**
2903      * Indicates the action of a common event that the bundle resources have been changed.
2904      * To subscribe to this common event, your application must have the ohos.permission.GET_BUNDLE_RESOURCES
2905      * permission.
2906      * This is a protected common event, which can be sent only by the system.
2907      */
2908     commonEventSupport_.emplace_back(COMMON_EVENT_BUNDLE_RESOURCES_CHANGED);
2909 
2910     /**
2911      * This common event means that datashare is ready.
2912      * This is a protected common event that can only be sent by system.
2913      */
2914     commonEventSupport_.emplace_back(CommonEventSupport::COMMON_EVENT_DATA_SHARE_READY);
2915 
2916     /**
2917     * This common event means that overlay package is added.
2918     * This is a protected common event that can only be sent by system.
2919     */
2920     commonEventSupport_.emplace_back(CommonEventSupport::COMMON_EVENT_OVERLAY_PACKAGE_ADDED);
2921 
2922     /**
2923     * This common event means that overlay package is changed.
2924     * This is a protected common event that can only be sent by system.
2925     */
2926     commonEventSupport_.emplace_back(CommonEventSupport::COMMON_EVENT_OVERLAY_PACKAGE_CHANGED);
2927 
2928     /**
2929     * This common event means that disposed rule is added.
2930     * This is a protected common event that can only be sent by system.
2931     */
2932     commonEventSupport_.emplace_back(CommonEventSupport::COMMON_EVENT_DISPOSED_RULE_ADDED);
2933 
2934     /**
2935     * This common event means that disposed rule is deleted.
2936     * This is a protected common event that can only be sent by system.
2937     */
2938     commonEventSupport_.emplace_back(CommonEventSupport::COMMON_EVENT_DISPOSED_RULE_DELETED);
2939 
2940     /**
2941     * This common event means that vpn connection status has been changed.
2942     * This is a protected common event that can only be sent by system.
2943     */
2944     commonEventSupport_.emplace_back(CommonEventSupport::COMMON_EVENT_VPN_CONNECTION_STATUS_CHANGED);
2945 
2946     /**
2947      * Indicates that the second mount is ready.
2948      * This is a protected common event that can only be sent by system.
2949      */
2950     commonEventSupport_.emplace_back(CommonEventSupport::COMMON_EVENT_SECOND_MOUNTED);
2951 
2952     /**
2953      * Indicates that an application begins to restored.
2954      * This is a protected common event that can only be sent by system.
2955      */
2956     commonEventSupport_.emplace_back(CommonEventSupport::COMMON_EVENT_RESTORE_START);
2957 
2958     /**
2959      * Indicates that the managed browser policy is changed.
2960      * This is a protected common event that can only be sent by system.
2961      */
2962     commonEventSupport_.emplace_back(CommonEventSupport::COMMON_EVENT_MANAGED_BROWSER_POLICY_CHANGED);
2963 
2964     /**
2965      * Indicates that the default application is changed.
2966      * This is a protected common event that can only be sent by system.
2967      */
2968     commonEventSupport_.emplace_back(CommonEventSupport::COMMON_EVENT_DEFAULT_APPLICATION_CHANGED);
2969 
2970     /**
2971      * This common event means that the visibility of shortcut has been changed.
2972      * To subscribe to this common event, your application must have the ohos.permission.MANAGE_SHORTCUTS permission.
2973      * This is a protected common event that can only be sent by system.
2974      */
2975     commonEventSupport_.emplace_back(CommonEventSupport::COMMON_EVENT_SHORTCUT_CHANGED);
2976 
2977     /**
2978      * This common event means that a system user joins in the account-related trusted device group.
2979      * This is a protected common event that can only be sent by system.
2980      */
2981     commonEventSupport_.emplace_back(CommonEventSupport::COMMON_EVENT_TRUSTED_RING_CHECKIN);
2982 
2983     /**
2984      * This common event means that a system user quits the account-relate trusted device group.
2985      * This is a protected common event that can only be sent by system.
2986      */
2987     commonEventSupport_.emplace_back(CommonEventSupport::COMMON_EVENT_TRUSTED_RING_CHECKOUT);
2988 
2989     /**
2990      * This common event means that the account-related trusted device group has been reset.
2991      * This is a protected common event that can only be sent by system.
2992      */
2993     commonEventSupport_.emplace_back(CommonEventSupport::COMMON_EVENT_TRUSTED_RING_RESET);
2994 
2995     /**
2996      * Indicates enter kiosk mode.
2997      * This is a protected common event that can only be sent by system.
2998      */
2999     commonEventSupport_.emplace_back(CommonEventSupport::COMMON_EVENT_KIOSK_MODE_ON);
3000 
3001     /**
3002      * Indicates exit kiosk mode.
3003      * This is a protected common event that can only be sent by system.
3004      */
3005     commonEventSupport_.emplace_back(CommonEventSupport::COMMON_EVENT_KIOSK_MODE_OFF);
3006 
3007     /**
3008      * Indicates that the device has updated the config policy of customazation subsystem.
3009      * This is a protected common event that can only be sent by system.
3010      */
3011     commonEventSupport_.emplace_back(CommonEventSupport::COMMON_EVENT_CUSTOM_CONFIG_POLICY_UPDATED);
3012 
3013     /**
3014      * Indicates that the device has updated the custom roaming region of device.
3015      * This is a protected common event that can only be sent by system.
3016      */
3017     commonEventSupport_.emplace_back(CommonEventSupport::COMMON_EVENT_CUSTOM_ROAMING_REGION_UPDATED);
3018     return;
3019 }
3020 
IsSystemEvent(std::string & str)3021 bool CommonEventSupport::IsSystemEvent(std::string &str)
3022 {
3023     EVENT_LOGD("enter");
3024 
3025     std::vector<std::string>::iterator iter = find(commonEventSupport_.begin(), commonEventSupport_.end(), str);
3026     if (iter != commonEventSupport_.end()) {
3027         return true;
3028     }
3029     return false;
3030 }
3031 }  // namespace EventFwk
3032 }  // namespace OHOS
3033