diff --git a/ohos/common_event_data/common_event_data.cj b/ohos/common_event_data/common_event_data.cj index 4b3e4cb..72c575c 100644 --- a/ohos/common_event_data/common_event_data.cj +++ b/ohos/common_event_data/common_event_data.cj @@ -19,11 +19,10 @@ package ohos.common_event_data import std.collection.HashMap import ohos.labels.APILevel -import ohos.value_type.{ValueType, CArrParameters, Parameters} +import ohos.value_type.{CommonEventValueType, CArrParameters, Parameters} /** * Common event data. - * */ @!APILevel[ since: "22", @@ -32,7 +31,6 @@ import ohos.value_type.{ValueType, CArrParameters, Parameters} public class CommonEventData { /** * Name of the common event that is being received. - * */ @!APILevel[ since: "22", @@ -41,7 +39,6 @@ public class CommonEventData { public var event: String /** * Bundle name. This parameter is left empty by default. - * */ @!APILevel[ since: "22", @@ -50,9 +47,7 @@ public class CommonEventData { public var bundleName: String /** * Common event data received by the subscriber. The value of this field is the same as that of the code field in - * CommonEventPublishData when the publisher uses commonEventManager.publish to publish a common event. The default - * value is 0. - * + * CommonEventPublishData when the publisher uses CommonEventManager.publish to publish a common event. The default value is 0. */ @!APILevel[ since: "22", @@ -62,7 +57,6 @@ public class CommonEventData { /** * Common event data received by the subscriber. The value of this field is the same as that of the data field in * CommonEventPublishData when the publisher uses commonEventManager.publish to publish a common event. - * */ @!APILevel[ since: "22", @@ -73,13 +67,12 @@ public class CommonEventData { * Additional information about the common event received by the subscriber. The value of this field is the same as * that of the parameters field in CommonEventPublishData when the publisher uses commonEventManager.publish to * publish a common event. - * */ @!APILevel[ since: "22", syscap: "SystemCapability.Notification.CommonEvent" ] - public var parameters: HashMap + public var parameters: HashMap protected init(eventData: CCommonEventData) { event = eventData.event.toString() @@ -88,7 +81,7 @@ public class CommonEventData { data = eventData.data.toString() let size = eventData.parameters.size let dataPtr = eventData.parameters.head - parameters = HashMap() + parameters = HashMap() for (i in 0..size) { let cp = unsafe { dataPtr.read(i) } let parameter = Parameters(cp) diff --git a/ohos/common_event_manager/common_event_manager.cj b/ohos/common_event_manager/common_event_manager.cj index 1290e9c..3338a34 100644 --- a/ohos/common_event_manager/common_event_manager.cj +++ b/ohos/common_event_manager/common_event_manager.cj @@ -27,7 +27,7 @@ public import ohos.common_event_data.CommonEventData public import ohos.common_event_publish_data.CommonEventPublishData public import ohos.common_event_subscribe_info.CommonEventSubscribeInfo public import ohos.common_event_subscriber.CommonEventSubscriber -public import ohos.value_type.ValueType +public import ohos.value_type.CommonEventValueType /** * The CommonEventManager module provides common event capabilities, including the capabilities to publish, subscribe @@ -39,10 +39,10 @@ public import ohos.value_type.ValueType ] public class CommonEventManager { /** - * Publishes an ordered, sticky, or standard common event. + * Publishes a common event. * - * @param { String } event - Name of the common event to publish. - * @param { CommonEventPublishData } options - Attributes of the common event to publish. + * @param { String } event - Name of the common event to publish. For details, see System Common Events. + * @param { CommonEventPublishData } [options] - Attributes of the common event to publish. * @throws { BusinessException } 1500003 - The common event sending frequency too high. * @throws { BusinessException } 1500007 - Failed to send the message to the common event service. * @throws { BusinessException } 1500008 - Failed to initialize the common event service. @@ -50,7 +50,9 @@ public class CommonEventManager { */ @!APILevel[ since: "22", - syscap: "SystemCapability.Notification.CommonEvent" + syscap: "SystemCapability.Notification.CommonEvent", + throwexception: true, + workerthread: true ] public static func publish(event: String, options!: CommonEventPublishData = CommonEventPublishData()): Unit { unsafe { @@ -65,15 +67,17 @@ public class CommonEventManager { } /** - * Create the CommonEventSubscriber for the SubscriberInfo. + * Creates a subscriber. * - * @param { CommonEventSubscribeInfo } subscribeInfo - Indicates the information of the subscriber. + * @param { CommonEventSubscribeInfo } subscribeInfo - Subscriber information. * @returns { CommonEventSubscriber } CommonEventSubscriber instance. * @throws { BusinessException } 1500008 - Common Event Service does not complete initialization. */ @!APILevel[ since: "22", - syscap: "SystemCapability.Notification.CommonEvent" + syscap: "SystemCapability.Notification.CommonEvent", + throwexception: true, + workerthread: true ] public static func createSubscriber(subscribeInfo: CommonEventSubscribeInfo): CommonEventSubscriber { var errorCode: Int32 = 0 @@ -88,9 +92,9 @@ public class CommonEventManager { } /** - * Subscribe an ordered, sticky, or standard common event. + * Subscribes to a common event. * - * @param { CommonEventSubscriber } subscriber - Indicate the subscriber of the common event. + * @param { CommonEventSubscriber } subscriber - Subscriber object. * @param { AsyncCallback } callback - Callback used to return the result. * @throws { BusinessException } 801 - Capability not supported. * @throws { BusinessException } 1500007 - Failed to send the message to the common event service. @@ -99,7 +103,8 @@ public class CommonEventManager { */ @!APILevel[ since: "22", - syscap: "SystemCapability.Notification.CommonEvent" + syscap: "SystemCapability.Notification.CommonEvent", + throwexception: true ] public static func subscribe(subscriber: CommonEventSubscriber, callback: AsyncCallback): Unit { let wrapper = { @@ -113,16 +118,18 @@ public class CommonEventManager { } /** - * Unsubscribe from an ordered, sticky, or standard common event. + * Unsubscribes from a common event. * - * @param { CommonEventSubscriber } subscriber - Indicate the subscriber of the common event. + * @param { CommonEventSubscriber } subscriber - Subscriber object. * @throws { BusinessException } 801 - Capability not supported. * @throws { BusinessException } 1500007 - Failed to send the message to the common event service. * @throws { BusinessException } 1500008 - Failed to initialize the common event service. */ @!APILevel[ since: "22", - syscap: "SystemCapability.Notification.CommonEvent" + syscap: "SystemCapability.Notification.CommonEvent", + throwexception: true, + workerthread: true ] public static func unsubscribe(subscriber: CommonEventSubscriber): Unit { let retCode = unsafe { CJ_Unsubscribe(subscriber.getID()) } diff --git a/ohos/common_event_manager/support.cj b/ohos/common_event_manager/support.cj index 9f7422f..cd27df6 100644 --- a/ohos/common_event_manager/support.cj +++ b/ohos/common_event_manager/support.cj @@ -21,17 +21,15 @@ import ohos.labels.APILevel /** * The event type that the commonEvent supported. - * */ @!APILevel[ since: "22", syscap: "SystemCapability.Notification.CommonEvent" ] -public class Support { +public class CommonEventSupport { /** * This commonEvent means when the device is booted or system upgrade completed, and only be sent by system. * This API can be called only by system applications. - * */ @!APILevel[ since: "22", @@ -40,7 +38,6 @@ public class Support { public static const COMMON_EVENT_BOOT_COMPLETED: String = "usual.event.BOOT_COMPLETED" /** * This commonEvent means when the device finnish booting, but still in the locked state. - * */ @!APILevel[ since: "22", @@ -49,7 +46,6 @@ public class Support { public static const COMMON_EVENT_LOCKED_BOOT_COMPLETED: String = "usual.event.LOCKED_BOOT_COMPLETED" /** * This commonEvent means when the device is shutting down, note: turn off, not sleeping. - * */ @!APILevel[ since: "22", @@ -58,7 +54,6 @@ public class Support { public static const COMMON_EVENT_SHUTDOWN: String = "usual.event.SHUTDOWN" /** * This commonEvent means when the charging state, level and so on about the battery. - * */ @!APILevel[ since: "22", @@ -67,7 +62,6 @@ public class Support { public static const COMMON_EVENT_BATTERY_CHANGED: String = "usual.event.BATTERY_CHANGED" /** * This commonEvent means when the device in low battery state. - * */ @!APILevel[ since: "22", @@ -76,7 +70,6 @@ public class Support { public static const COMMON_EVENT_BATTERY_LOW: String = "usual.event.BATTERY_LOW" /** * This commonEvent means when the battery level is an ok state. - * */ @!APILevel[ since: "22", @@ -85,7 +78,6 @@ public class Support { public static const COMMON_EVENT_BATTERY_OKAY: String = "usual.event.BATTERY_OKAY" /** * This commonEvent means when the other power is connected to the device. - * */ @!APILevel[ since: "22", @@ -94,7 +86,6 @@ public class Support { public static const COMMON_EVENT_POWER_CONNECTED: String = "usual.event.POWER_CONNECTED" /** * This commonEvent means when the other power is removed from the device. - * */ @!APILevel[ since: "22", @@ -103,7 +94,6 @@ public class Support { public static const COMMON_EVENT_POWER_DISCONNECTED: String = "usual.event.POWER_DISCONNECTED" /** * This commonEvent means when the screen is turned off. - * */ @!APILevel[ since: "22", @@ -112,7 +102,6 @@ public class Support { public static const COMMON_EVENT_SCREEN_OFF: String = "usual.event.SCREEN_OFF" /** * This commonEvent means when the device is awakened and interactive. - * */ @!APILevel[ since: "22", @@ -121,7 +110,6 @@ public class Support { public static const COMMON_EVENT_SCREEN_ON: String = "usual.event.SCREEN_ON" /** * This commonEvent means when the thermal state level change. - * */ @!APILevel[ since: "22", @@ -130,7 +118,6 @@ public class Support { public static const COMMON_EVENT_THERMAL_LEVEL_CHANGED: String = "usual.event.THERMAL_LEVEL_CHANGED" /** * This commonEvent means when the current time is changed. - * */ @!APILevel[ since: "22", @@ -139,7 +126,6 @@ public class Support { public static const COMMON_EVENT_TIME_TICK: String = "usual.event.TIME_TICK" /** * This commonEvent means when the time is set. - * */ @!APILevel[ since: "22", @@ -148,7 +134,6 @@ public class Support { public static const COMMON_EVENT_TIME_CHANGED: String = "usual.event.TIME_CHANGED" /** * This commonEvent means when the current date is changed. - * */ @!APILevel[ since: "22", @@ -157,7 +142,6 @@ public class Support { public static const COMMON_EVENT_DATE_CHANGED: String = "usual.event.DATE_CHANGED" /** * This commonEvent means when the time zone is changed. - * */ @!APILevel[ since: "22", @@ -166,7 +150,6 @@ public class Support { public static const COMMON_EVENT_TIMEZONE_CHANGED: String = "usual.event.TIMEZONE_CHANGED" /** * This commonEvent means when the dialog to dismiss. - * */ @!APILevel[ since: "22", @@ -175,7 +158,6 @@ public class Support { public static const COMMON_EVENT_CLOSE_SYSTEM_DIALOGS: String = "usual.event.CLOSE_SYSTEM_DIALOGS" /** * This commonEvent means when a new application package is installed on the device. - * */ @!APILevel[ since: "22", @@ -185,7 +167,6 @@ public class Support { /** * This commonEvent means when a new version application package is installed on the device and * replace the old version.the data contains the name of the package. - * */ @!APILevel[ since: "22", @@ -195,7 +176,6 @@ public class Support { /** * This commonEvent means when a new version application package is installed on the device and * replace the old version, it does not contain additional data and only be sent to the replaced application. - * */ @!APILevel[ since: "22", @@ -204,7 +184,6 @@ public class Support { public static const COMMON_EVENT_MY_PACKAGE_REPLACED: String = "usual.event.MY_PACKAGE_REPLACED" /** * This commonEvent means when an existing application package is removed from the device. - * */ @!APILevel[ since: "22", @@ -213,7 +192,6 @@ public class Support { public static const COMMON_EVENT_PACKAGE_REMOVED: String = "usual.event.PACKAGE_REMOVED" /** * This commonEvent means when an existing application package is removed from the device. - * */ @!APILevel[ since: "22", @@ -222,7 +200,6 @@ public class Support { public static const COMMON_EVENT_BUNDLE_REMOVED: String = "usual.event.BUNDLE_REMOVED" /** * This commonEvent means when an existing application package is completely removed from the device. - * */ @!APILevel[ since: "22", @@ -231,7 +208,6 @@ public class Support { public static const COMMON_EVENT_PACKAGE_FULLY_REMOVED: String = "usual.event.PACKAGE_FULLY_REMOVED" /** * This commonEvent means when an existing application package has been changed. - * */ @!APILevel[ since: "22", @@ -240,7 +216,6 @@ public class Support { public static const COMMON_EVENT_PACKAGE_CHANGED: String = "usual.event.PACKAGE_CHANGED" /** * This commonEvent means the user has restarted a package, and all of its processes have been killed. - * */ @!APILevel[ since: "22", @@ -249,7 +224,6 @@ public class Support { public static const COMMON_EVENT_PACKAGE_RESTARTED: String = "usual.event.PACKAGE_RESTARTED" /** * This commonEvent means the user has cleared the package data. - * */ @!APILevel[ since: "22", @@ -258,7 +232,6 @@ public class Support { public static const COMMON_EVENT_PACKAGE_DATA_CLEARED: String = "usual.event.PACKAGE_DATA_CLEARED" /** * This commonEvent means the user has cleared the package cache. - * */ @!APILevel[ since: "22", @@ -267,7 +240,6 @@ public class Support { public static const COMMON_EVENT_PACKAGE_CACHE_CLEARED: String = "usual.event.PACKAGE_CACHE_CLEARED" /** * This commonEvent means the packages have been suspended. - * */ @!APILevel[ since: "22", @@ -276,7 +248,6 @@ public class Support { public static const COMMON_EVENT_PACKAGES_SUSPENDED: String = "usual.event.PACKAGES_SUSPENDED" /** * This commonEvent means the packages have been un-suspended. - * */ @!APILevel[ since: "22", @@ -285,7 +256,6 @@ public class Support { public static const COMMON_EVENT_PACKAGES_UNSUSPENDED: String = "usual.event.PACKAGES_UNSUSPENDED" /** * This commonEvent Sent to a package that has been suspended by the system. - * */ @!APILevel[ since: "22", @@ -294,7 +264,6 @@ public class Support { public static const COMMON_EVENT_MY_PACKAGE_SUSPENDED: String = "usual.event.MY_PACKAGE_SUSPENDED" /** * Sent to a package that has been un-suspended. - * */ @!APILevel[ since: "22", @@ -303,7 +272,6 @@ public class Support { public static const COMMON_EVENT_MY_PACKAGE_UNSUSPENDED: String = "usual.event.MY_PACKAGE_UNSUSPENDED" /** * A user id has been removed from the system. - * */ @!APILevel[ since: "22", @@ -312,7 +280,6 @@ public class Support { public static const COMMON_EVENT_UID_REMOVED: String = "usual.event.UID_REMOVED" /** * The application is first launched after installed. - * */ @!APILevel[ since: "22", @@ -321,7 +288,6 @@ public class Support { public static const COMMON_EVENT_PACKAGE_FIRST_LAUNCH: String = "usual.event.PACKAGE_FIRST_LAUNCH" /** * Sent by system package verifier when a package need to be verified. - * */ @!APILevel[ since: "22", @@ -330,7 +296,6 @@ public class Support { public static const COMMON_EVENT_PACKAGE_NEEDS_VERIFICATION: String = "usual.event.PACKAGE_NEEDS_VERIFICATION" /** * Sent by system package verifier when a package is verified. - * */ @!APILevel[ since: "22", @@ -340,7 +305,6 @@ public class Support { /** * Resources for a set of packages (which were previously unavailable) are currently * available since the media on which they exist is available. - * */ @!APILevel[ since: "22", @@ -349,7 +313,6 @@ public class Support { public static const COMMON_EVENT_EXTERNAL_APPLICATIONS_AVAILABLE: String = "usual.event.EXTERNAL_APPLICATIONS_AVAILABLE" /** * Resources for a set of packages are currently unavailable since the media on which they exist is unavailable. - * */ @!APILevel[ since: "22", @@ -358,7 +321,6 @@ public class Support { public static const COMMON_EVENT_EXTERNAL_APPLICATIONS_UNAVAILABLE: String = "usual.event.EXTERNAL_APPLICATIONS_UNAVAILABLE" /** * The device configuration such as orientation,locale have been changed. - * */ @!APILevel[ since: "22", @@ -366,8 +328,7 @@ public class Support { ] public static const COMMON_EVENT_CONFIGURATION_CHANGED: String = "usual.event.CONFIGURATION_CHANGED" /** - * The current device"s locale has changed. - * + * The current device's locale has changed. */ @!APILevel[ since: "22", @@ -376,7 +337,6 @@ public class Support { public static const COMMON_EVENT_LOCALE_CHANGED: String = "usual.event.LOCALE_CHANGED" /** * Indicates low memory condition notification acknowledged by user and package management should be started. - * */ @!APILevel[ since: "22", @@ -385,7 +345,6 @@ public class Support { public static const COMMON_EVENT_MANAGE_PACKAGE_STORAGE: String = "usual.event.MANAGE_PACKAGE_STORAGE" /** * Send by the smart function when the system in drive mode. - * */ @!APILevel[ since: "22", @@ -394,7 +353,6 @@ public class Support { public static const COMMON_EVENT_DRIVE_MODE: String = "common.event.DRIVE_MODE" /** * Send by the smart function when the system in home mode. - * */ @!APILevel[ since: "22", @@ -403,7 +361,6 @@ public class Support { public static const COMMON_EVENT_HOME_MODE: String = "common.event.HOME_MODE" /** * Send by the smart function when the system in office mode. - * */ @!APILevel[ since: "22", @@ -412,7 +369,6 @@ public class Support { public static const COMMON_EVENT_OFFICE_MODE: String = "common.event.OFFICE_MODE" /** * Remind new user of preparing to start. - * */ @!APILevel[ since: "22", @@ -421,7 +377,6 @@ public class Support { public static const COMMON_EVENT_USER_STARTED: String = "usual.event.USER_STARTED" /** * Remind previous user of that the service has been the background. - * */ @!APILevel[ since: "22", @@ -430,7 +385,6 @@ public class Support { public static const COMMON_EVENT_USER_BACKGROUND: String = "usual.event.USER_BACKGROUND" /** * Remind new user of that the service has been the foreground. - * */ @!APILevel[ since: "22", @@ -439,7 +393,6 @@ public class Support { public static const COMMON_EVENT_USER_FOREGROUND: String = "usual.event.USER_FOREGROUND" /** * Remind new user of that the service has been switched to new user. - * */ @!APILevel[ since: "22", @@ -448,7 +401,6 @@ public class Support { public static const COMMON_EVENT_USER_SWITCHED: String = "usual.event.USER_SWITCHED" /** * Remind new user of that the service has been starting. - * */ @!APILevel[ since: "22", @@ -457,7 +409,6 @@ public class Support { public static const COMMON_EVENT_USER_STARTING: String = "usual.event.USER_STARTING" /** * Remind new user of that the service has been unlocked. - * */ @!APILevel[ since: "22", @@ -466,7 +417,6 @@ public class Support { public static const COMMON_EVENT_USER_UNLOCKED: String = "usual.event.USER_UNLOCKED" /** * Remind new user of that the service has been stopping. - * */ @!APILevel[ since: "22", @@ -475,7 +425,6 @@ public class Support { public static const COMMON_EVENT_USER_STOPPING: String = "usual.event.USER_STOPPING" /** * Remind new user of that the service has stopped. - * */ @!APILevel[ since: "22", @@ -484,7 +433,6 @@ public class Support { public static const COMMON_EVENT_USER_STOPPED: String = "usual.event.USER_STOPPED" /** * Distributed account login successfully. - * */ @!APILevel[ since: "22", @@ -493,7 +441,6 @@ public class Support { public static const COMMON_EVENT_DISTRIBUTED_ACCOUNT_LOGIN: String = "common.event.DISTRIBUTED_ACCOUNT_LOGIN" /** * Distributed account logout successfully. - * */ @!APILevel[ since: "22", @@ -502,7 +449,6 @@ public class Support { public static const COMMON_EVENT_DISTRIBUTED_ACCOUNT_LOGOUT: String = "common.event.DISTRIBUTED_ACCOUNT_LOGOUT" /** * Distributed account is invalid. - * */ @!APILevel[ since: "22", @@ -511,7 +457,6 @@ public class Support { public static const COMMON_EVENT_DISTRIBUTED_ACCOUNT_TOKEN_INVALID: String = "common.event.DISTRIBUTED_ACCOUNT_TOKEN_INVALID" /** * Distributed account logs off. - * */ @!APILevel[ since: "22", @@ -520,7 +465,6 @@ public class Support { public static const COMMON_EVENT_DISTRIBUTED_ACCOUNT_LOGOFF: String = "common.event.DISTRIBUTED_ACCOUNT_LOGOFF" /** * WIFI state. - * */ @!APILevel[ since: "22", @@ -529,7 +473,6 @@ public class Support { public static const COMMON_EVENT_WIFI_POWER_STATE: String = "usual.event.wifi.POWER_STATE" /** * WIFI scan results. - * */ @!APILevel[ since: "22", @@ -538,7 +481,6 @@ public class Support { public static const COMMON_EVENT_WIFI_SCAN_FINISHED: String = "usual.event.wifi.SCAN_FINISHED" /** * WIFI RSSI change. - * */ @!APILevel[ since: "22", @@ -547,7 +489,6 @@ public class Support { public static const COMMON_EVENT_WIFI_RSSI_VALUE: String = "usual.event.wifi.RSSI_VALUE" /** * WIFI connect state. - * */ @!APILevel[ since: "22", @@ -556,7 +497,6 @@ public class Support { public static const COMMON_EVENT_WIFI_CONN_STATE: String = "usual.event.wifi.CONN_STATE" /** * WIFI hotspot state. - * */ @!APILevel[ since: "22", @@ -565,7 +505,6 @@ public class Support { public static const COMMON_EVENT_WIFI_HOTSPOT_STATE: String = "usual.event.wifi.HOTSPOT_STATE" /** * WIFI ap sta join. - * */ @!APILevel[ since: "22", @@ -574,7 +513,6 @@ public class Support { public static const COMMON_EVENT_WIFI_AP_STA_JOIN: String = "usual.event.wifi.WIFI_HS_STA_JOIN" /** * WIFI ap sta join. - * */ @!APILevel[ since: "22", @@ -583,7 +521,6 @@ public class Support { public static const COMMON_EVENT_WIFI_AP_STA_LEAVE: String = "usual.event.wifi.WIFI_HS_STA_LEAVE" /** * Indicates Wi-Fi MpLink state notification acknowledged by binding or unbinding MpLink. - * */ @!APILevel[ since: "22", @@ -592,7 +529,6 @@ public class Support { public static const COMMON_EVENT_WIFI_MPLINK_STATE_CHANGE: String = "usual.event.wifi.mplink.STATE_CHANGE" /** * Indicates Wi-Fi P2P connection state notification acknowledged by connecting or disconnected P2P. - * */ @!APILevel[ since: "22", @@ -601,7 +537,6 @@ public class Support { public static const COMMON_EVENT_WIFI_P2P_CONN_STATE: String = "usual.event.wifi.p2p.CONN_STATE_CHANGE" /** * Indicates that the Wi-Fi P2P state change. - * */ @!APILevel[ since: "22", @@ -610,7 +545,6 @@ public class Support { public static const COMMON_EVENT_WIFI_P2P_STATE_CHANGED: String = "usual.event.wifi.p2p.STATE_CHANGE" /** * Indicates that the Wi-Fi P2P peers state change. - * */ @!APILevel[ since: "22", @@ -619,7 +553,6 @@ public class Support { public static const COMMON_EVENT_WIFI_P2P_PEERS_STATE_CHANGED: String = "usual.event.wifi.p2p.DEVICES_CHANGE" /** * Indicates that the Wi-Fi P2P discovery state change. - * */ @!APILevel[ since: "22", @@ -628,7 +561,6 @@ public class Support { public static const COMMON_EVENT_WIFI_P2P_PEERS_DISCOVERY_STATE_CHANGED: String = "usual.event.wifi.p2p.PEER_DISCOVERY_STATE_CHANGE" /** * Indicates that the Wi-Fi P2P current device state change. - * */ @!APILevel[ since: "22", @@ -637,7 +569,6 @@ public class Support { public static const COMMON_EVENT_WIFI_P2P_CURRENT_DEVICE_STATE_CHANGED: String = "usual.event.wifi.p2p.CURRENT_DEVICE_CHANGE" /** * Indicates that the Wi-Fi P2P group info is changed. - * */ @!APILevel[ since: "22", @@ -646,7 +577,6 @@ public class Support { public static const COMMON_EVENT_WIFI_P2P_GROUP_STATE_CHANGED: String = "usual.event.wifi.p2p.GROUP_STATE_CHANGED" /** * Bluetooth.handsfree.ag.connect.state.update. - * */ @!APILevel[ since: "22", @@ -655,7 +585,6 @@ public class Support { public static const COMMON_EVENT_BLUETOOTH_HANDSFREE_AG_CONNECT_STATE_UPDATE: String = "usual.event.bluetooth.handsfree.ag.CONNECT_STATE_UPDATE" /** * Bluetooth.handsfree.ag.current.device.update. - * */ @!APILevel[ since: "22", @@ -664,7 +593,6 @@ public class Support { public static const COMMON_EVENT_BLUETOOTH_HANDSFREE_AG_CURRENT_DEVICE_UPDATE: String = "usual.event.bluetooth.handsfree.ag.CURRENT_DEVICE_UPDATE" /** * Bluetooth.handsfree.ag.audio.state.update. - * */ @!APILevel[ since: "22", @@ -673,7 +601,6 @@ public class Support { public static const COMMON_EVENT_BLUETOOTH_HANDSFREE_AG_AUDIO_STATE_UPDATE: String = "usual.event.bluetooth.handsfree.ag.AUDIO_STATE_UPDATE" /** * Bluetooth.a2dpsource.connect.state.update. - * */ @!APILevel[ since: "22", @@ -682,7 +609,6 @@ public class Support { public static const COMMON_EVENT_BLUETOOTH_A2DPSOURCE_CONNECT_STATE_UPDATE: String = "usual.event.bluetooth.a2dpsource.CONNECT_STATE_UPDATE" /** * Bluetooth.a2dpsource.current.device.update. - * */ @!APILevel[ since: "22", @@ -691,7 +617,6 @@ public class Support { public static const COMMON_EVENT_BLUETOOTH_A2DPSOURCE_CURRENT_DEVICE_UPDATE: String = "usual.event.bluetooth.a2dpsource.CURRENT_DEVICE_UPDATE" /** * Bluetooth.a2dpsource.playing.state.update. - * */ @!APILevel[ since: "22", @@ -700,7 +625,6 @@ public class Support { public static const COMMON_EVENT_BLUETOOTH_A2DPSOURCE_PLAYING_STATE_UPDATE: String = "usual.event.bluetooth.a2dpsource.PLAYING_STATE_UPDATE" /** * Bluetooth.a2dpsource.avrcp.connect.state.update. - * */ @!APILevel[ since: "22", @@ -709,7 +633,6 @@ public class Support { public static const COMMON_EVENT_BLUETOOTH_A2DPSOURCE_AVRCP_CONNECT_STATE_UPDATE: String = "usual.event.bluetooth.a2dpsource.AVRCP_CONNECT_STATE_UPDATE" /** * Bluetooth.a2dpsource.codec.value.update. - * */ @!APILevel[ since: "22", @@ -718,7 +641,6 @@ public class Support { public static const COMMON_EVENT_BLUETOOTH_A2DPSOURCE_CODEC_VALUE_UPDATE: String = "usual.event.bluetooth.a2dpsource.CODEC_VALUE_UPDATE" /** * Bluetooth.remotedevice.discovered. - * */ @!APILevel[ since: "22", @@ -727,7 +649,6 @@ public class Support { public static const COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_DISCOVERED: String = "usual.event.bluetooth.remotedevice.DISCOVERED" /** * Bluetooth.remotedevice.class.value.update. - * */ @!APILevel[ since: "22", @@ -736,7 +657,6 @@ public class Support { public static const COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CLASS_VALUE_UPDATE: String = "usual.event.bluetooth.remotedevice.CLASS_VALUE_UPDATE" /** * Bluetooth.remotedevice.acl.connected. - * */ @!APILevel[ since: "22", @@ -745,7 +665,6 @@ public class Support { public static const COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_ACL_CONNECTED: String = "usual.event.bluetooth.remotedevice.ACL_CONNECTED" /** * Bluetooth.remotedevice.acl.disconnected. - * */ @!APILevel[ since: "22", @@ -754,7 +673,6 @@ public class Support { public static const COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_ACL_DISCONNECTED: String = "usual.event.bluetooth.remotedevice.ACL_DISCONNECTED" /** * Bluetooth.remotedevice.name.update. - * */ @!APILevel[ since: "22", @@ -763,7 +681,6 @@ public class Support { public static const COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_NAME_UPDATE: String = "usual.event.bluetooth.remotedevice.NAME_UPDATE" /** * Bluetooth.remotedevice.pair.state. - * */ @!APILevel[ since: "22", @@ -772,7 +689,6 @@ public class Support { public static const COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_PAIR_STATE: String = "usual.event.bluetooth.remotedevice.PAIR_STATE" /** * Bluetooth.remotedevice.battery.value.update. - * */ @!APILevel[ since: "22", @@ -781,7 +697,6 @@ public class Support { public static const COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_BATTERY_VALUE_UPDATE: String = "usual.event.bluetooth.remotedevice.BATTERY_VALUE_UPDATE" /** * Bluetooth.remotedevice.sdp.result. - * */ @!APILevel[ since: "22", @@ -790,7 +705,6 @@ public class Support { public static const COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_SDP_RESULT: String = "usual.event.bluetooth.remotedevice.SDP_RESULT" /** * Bluetooth.remotedevice.uuid.value. - * */ @!APILevel[ since: "22", @@ -799,7 +713,6 @@ public class Support { public static const COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_UUID_VALUE: String = "usual.event.bluetooth.remotedevice.UUID_VALUE" /** * Bluetooth.remotedevice.pairing.req. - * */ @!APILevel[ since: "22", @@ -808,7 +721,6 @@ public class Support { public static const COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_PAIRING_REQ: String = "usual.event.bluetooth.remotedevice.PAIRING_REQ" /** * Bluetooth.remotedevice.pairing.cancel. - * */ @!APILevel[ since: "22", @@ -817,7 +729,6 @@ public class Support { public static const COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_PAIRING_CANCEL: String = "usual.event.bluetooth.remotedevice.PAIRING_CANCEL" /** * Bluetooth.remotedevice.connect.req. - * */ @!APILevel[ since: "22", @@ -825,8 +736,7 @@ public class Support { ] public static const COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CONNECT_REQ: String = "usual.event.bluetooth.remotedevice.CONNECT_REQ" /** - * Bluetooth.remotedevice.connect.reply - * + * Bluetooth.remotedevice.connect.reply. */ @!APILevel[ since: "22", @@ -835,7 +745,6 @@ public class Support { public static const COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CONNECT_REPLY: String = "usual.event.bluetooth.remotedevice.CONNECT_REPLY" /** * Bluetooth.remotedevice.connect.cancel. - * */ @!APILevel[ since: "22", @@ -844,7 +753,6 @@ public class Support { public static const COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CONNECT_CANCEL: String = "usual.event.bluetooth.remotedevice.CONNECT_CANCEL" /** * Bluetooth.handsfreeunit.connect.state.update. - * */ @!APILevel[ since: "22", @@ -853,7 +761,6 @@ public class Support { public static const COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_CONNECT_STATE_UPDATE: String = "usual.event.bluetooth.handsfreeunit.CONNECT_STATE_UPDATE" /** * Bluetooth.handsfreeunit.audio.state.update. - * */ @!APILevel[ since: "22", @@ -862,7 +769,6 @@ public class Support { public static const COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_AUDIO_STATE_UPDATE: String = "usual.event.bluetooth.handsfreeunit.AUDIO_STATE_UPDATE" /** * Bluetooth.handsfreeunit.ag.common.event. - * */ @!APILevel[ since: "22", @@ -871,7 +777,6 @@ public class Support { public static const COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_AG_COMMON_EVENT: String = "usual.event.bluetooth.handsfreeunit.AG_COMMON_EVENT" /** * Bluetooth.handsfreeunit.ag.call.state.update. - * */ @!APILevel[ since: "22", @@ -880,7 +785,6 @@ public class Support { public static const COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_AG_CALL_STATE_UPDATE: String = "usual.event.bluetooth.handsfreeunit.AG_CALL_STATE_UPDATE" /** * Bluetooth.host.state.update. - * */ @!APILevel[ since: "22", @@ -889,7 +793,6 @@ public class Support { public static const COMMON_EVENT_BLUETOOTH_HOST_STATE_UPDATE: String = "usual.event.bluetooth.host.STATE_UPDATE" /** * Bluetooth.host.req.discoverable. - * */ @!APILevel[ since: "22", @@ -898,7 +801,6 @@ public class Support { public static const COMMON_EVENT_BLUETOOTH_HOST_REQ_DISCOVERABLE: String = "usual.event.bluetooth.host.REQ_DISCOVERABLE" /** * Bluetooth.host.req.enable. - * */ @!APILevel[ since: "22", @@ -907,7 +809,6 @@ public class Support { public static const COMMON_EVENT_BLUETOOTH_HOST_REQ_ENABLE: String = "usual.event.bluetooth.host.REQ_ENABLE" /** * Bluetooth.host.req.disable. - * */ @!APILevel[ since: "22", @@ -916,7 +817,6 @@ public class Support { public static const COMMON_EVENT_BLUETOOTH_HOST_REQ_DISABLE: String = "usual.event.bluetooth.host.REQ_DISABLE" /** * Bluetooth.host.scan.mode.update. - * */ @!APILevel[ since: "22", @@ -925,7 +825,6 @@ public class Support { public static const COMMON_EVENT_BLUETOOTH_HOST_SCAN_MODE_UPDATE: String = "usual.event.bluetooth.host.SCAN_MODE_UPDATE" /** * Bluetooth.host.discovery.started. - * */ @!APILevel[ since: "22", @@ -934,7 +833,6 @@ public class Support { public static const COMMON_EVENT_BLUETOOTH_HOST_DISCOVERY_STARTED: String = "usual.event.bluetooth.host.DISCOVERY_STARTED" /** * Bluetooth.host.discovery.finished. - * */ @!APILevel[ since: "22", @@ -943,7 +841,6 @@ public class Support { public static const COMMON_EVENT_BLUETOOTH_HOST_DISCOVERY_FINISHED: String = "usual.event.bluetooth.host.DISCOVERY_FINISHED" /** * Bluetooth.host.name.update. - * */ @!APILevel[ since: "22", @@ -952,7 +849,6 @@ public class Support { public static const COMMON_EVENT_BLUETOOTH_HOST_NAME_UPDATE: String = "usual.event.bluetooth.host.NAME_UPDATE" /** * Bluetooth.a2dp.connect.state.update. - * */ @!APILevel[ since: "22", @@ -961,7 +857,6 @@ public class Support { public static const COMMON_EVENT_BLUETOOTH_A2DPSINK_CONNECT_STATE_UPDATE: String = "usual.event.bluetooth.a2dpsink.CONNECT_STATE_UPDATE" /** * Bluetooth.a2dp.playing.state.update. - * */ @!APILevel[ since: "22", @@ -970,7 +865,6 @@ public class Support { public static const COMMON_EVENT_BLUETOOTH_A2DPSINK_PLAYING_STATE_UPDATE: String = "usual.event.bluetooth.a2dpsink.PLAYING_STATE_UPDATE" /** * Bluetooth.a2dp.audio.state.update. - * */ @!APILevel[ since: "22", @@ -979,7 +873,6 @@ public class Support { public static const COMMON_EVENT_BLUETOOTH_A2DPSINK_AUDIO_STATE_UPDATE: String = "usual.event.bluetooth.a2dpsink.AUDIO_STATE_UPDATE" /** * Nfc state change. - * */ @!APILevel[ since: "22", @@ -988,7 +881,6 @@ public class Support { public static const COMMON_EVENT_NFC_ACTION_ADAPTER_STATE_CHANGED: String = "usual.event.nfc.action.ADAPTER_STATE_CHANGED" /** * Nfc field on detected. - * */ @!APILevel[ since: "22", @@ -997,7 +889,6 @@ public class Support { public static const COMMON_EVENT_NFC_ACTION_RF_FIELD_ON_DETECTED: String = "usual.event.nfc.action.RF_FIELD_ON_DETECTED" /** * Nfc field off detected. - * */ @!APILevel[ since: "22", @@ -1006,7 +897,6 @@ public class Support { public static const COMMON_EVENT_NFC_ACTION_RF_FIELD_OFF_DETECTED: String = "usual.event.nfc.action.RF_FIELD_OFF_DETECTED" /** * Sent when stop charging battery. - * */ @!APILevel[ since: "22", @@ -1015,7 +905,6 @@ public class Support { public static const COMMON_EVENT_DISCHARGING: String = "usual.event.DISCHARGING" /** * Sent when start charging battery. - * */ @!APILevel[ since: "22", @@ -1023,8 +912,7 @@ public class Support { ] public static const COMMON_EVENT_CHARGING: String = "usual.event.CHARGING" /** - * Sent when device"s idle mode changed - * + * Sent when device's idle mode changed. */ @!APILevel[ since: "22", @@ -1032,8 +920,7 @@ public class Support { ] public static const COMMON_EVENT_DEVICE_IDLE_MODE_CHANGED: String = "usual.event.DEVICE_IDLE_MODE_CHANGED" /** - * Sent when device"s charge idle mode changed. - * + * Sent when device's charge idle mode changed. */ @!APILevel[ since: "22", @@ -1041,8 +928,7 @@ public class Support { ] public static const COMMON_EVENT_CHARGE_IDLE_MODE_CHANGED: String = "usual.event.CHARGE_IDLE_MODE_CHANGED" /** - * Sent when device"s power save mode changed - * + * Sent when device's power save mode changed. */ @!APILevel[ since: "22", @@ -1051,7 +937,6 @@ public class Support { public static const COMMON_EVENT_POWER_SAVE_MODE_CHANGED: String = "usual.event.POWER_SAVE_MODE_CHANGED" /** * User added. - * */ @!APILevel[ since: "22", @@ -1060,7 +945,6 @@ public class Support { public static const COMMON_EVENT_USER_ADDED: String = "usual.event.USER_ADDED" /** * User removed. - * */ @!APILevel[ since: "22", @@ -1069,7 +953,6 @@ public class Support { public static const COMMON_EVENT_USER_REMOVED: String = "usual.event.USER_REMOVED" /** * Sent when ability is added. - * */ @!APILevel[ since: "22", @@ -1078,7 +961,6 @@ public class Support { public static const COMMON_EVENT_ABILITY_ADDED: String = "common.event.ABILITY_ADDED" /** * Sent when ability is removed. - * */ @!APILevel[ since: "22", @@ -1087,7 +969,6 @@ public class Support { public static const COMMON_EVENT_ABILITY_REMOVED: String = "common.event.ABILITY_REMOVED" /** * Sent when ability is updated. - * */ @!APILevel[ since: "22", @@ -1096,7 +977,6 @@ public class Support { public static const COMMON_EVENT_ABILITY_UPDATED: String = "common.event.ABILITY_UPDATED" /** * Gps mode state changed. - * */ @!APILevel[ since: "22", @@ -1106,7 +986,6 @@ public class Support { /** * The ivi is about to go into sleep state when the ivi is turned off power. * This is a protected common event that can only be sent by system. - * */ @!APILevel[ since: "22", @@ -1116,7 +995,6 @@ public class Support { /** * The ivi is slept and notify the app stop playing. * This is a protected common event that can only be sent by system. - * */ @!APILevel[ since: "22", @@ -1126,7 +1004,6 @@ public class Support { /** * The ivi is standby and notify the app stop playing. * This is a protected common event that can only be sent by system. - * */ @!APILevel[ since: "22", @@ -1136,17 +1013,15 @@ public class Support { /** * The app stop playing and save state. * This is a protected common event that can only be sent by system. - * */ @!APILevel[ since: "22", syscap: "SystemCapability.Notification.CommonEvent" ] - public static const COMMON_EVENT_IVI_LASTMODE_SAVE: String = "common.event.IVI_LASTMODE_SAVE" + public static const COMMON_EVENT_IVI_LAST_MODE_SAVE: String = "common.event.IVI_LASTMODE_SAVE" /** * The ivi is voltage abnormal. * This is a protected common event that can only be sent by system. - * */ @!APILevel[ since: "22", @@ -1157,7 +1032,6 @@ public class Support { * The ivi temperature is too high. * This is a protected common event that can only be sent by system.this common event will be delete later, * please use COMMON_EVENT_IVI_TEMPERATURE_ABNORMAL. - * */ @!APILevel[ since: "22", @@ -1168,7 +1042,6 @@ public class Support { * The ivi temperature is extreme high. * This is a protected common event that can only be sent by system.this common event will be delete later, * please use COMMON_EVENT_IVI_TEMPERATURE_ABNORMAL. - * */ @!APILevel[ since: "22", @@ -1178,7 +1051,6 @@ public class Support { /** * The ivi temperature is abnormal. * This is a protected common event that can only be sent by system. - * */ @!APILevel[ since: "22", @@ -1188,7 +1060,6 @@ public class Support { /** * The ivi voltage is recovery. * This is a protected common event that can only be sent by system. - * */ @!APILevel[ since: "22", @@ -1198,7 +1069,6 @@ public class Support { /** * The ivi temperature is recovery. * This is a protected common event that can only be sent by system. - * */ @!APILevel[ since: "22", @@ -1208,7 +1078,6 @@ public class Support { /** * The battery service is active. * This is a protected common event that can only be sent by system. - * */ @!APILevel[ since: "22", @@ -1218,7 +1087,6 @@ public class Support { /** * The usb state change events. * This is a protected common event that can only be sent by system. - * */ @!APILevel[ since: "22", @@ -1228,7 +1096,6 @@ public class Support { /** * The usb port changed. * This is a protected common event that can only be sent by system. - * */ @!APILevel[ since: "22", @@ -1238,7 +1105,6 @@ public class Support { /** * The usb device attached. * This is a protected common event that can only be sent by system. - * */ @!APILevel[ since: "22", @@ -1248,7 +1114,6 @@ public class Support { /** * The usb device detached. * This is a protected common event that can only be sent by system. - * */ @!APILevel[ since: "22", @@ -1258,7 +1123,6 @@ public class Support { /** * The usb accessory attached. * This is a protected common event that can only be sent by system. - * */ @!APILevel[ since: "22", @@ -1268,7 +1132,6 @@ public class Support { /** * The usb accessory detached. * This is a protected common event that can only be sent by system. - * */ @!APILevel[ since: "22", @@ -1278,7 +1141,6 @@ public class Support { /** * The external storage was removed. * This is a protected common event that can only be sent by system. - * */ @!APILevel[ since: "22", @@ -1288,7 +1150,6 @@ public class Support { /** * The external storage was unmounted. * This is a protected common event that can only be sent by system. - * */ @!APILevel[ since: "22", @@ -1298,7 +1159,6 @@ public class Support { /** * The external storage was mounted. * This is a protected common event that can only be sent by system. - * */ @!APILevel[ since: "22", @@ -1308,7 +1168,6 @@ public class Support { /** * The external storage was bad removal. * This is a protected common event that can only be sent by system. - * */ @!APILevel[ since: "22", @@ -1318,7 +1177,6 @@ public class Support { /** * The external storage was unmountable. * This is a protected common event that can only be sent by system. - * */ @!APILevel[ since: "22", @@ -1328,7 +1186,6 @@ public class Support { /** * The external storage was eject. * This is a protected common event that can only be sent by system. - * */ @!APILevel[ since: "22", @@ -1339,7 +1196,6 @@ public class Support { * The external storage was removed. * This is a protected common event that can only be sent by system. * This API can be called only by system applications. - * */ @!APILevel[ since: "22", @@ -1350,7 +1206,6 @@ public class Support { * The external storage was unmounted. * This is a protected common event that can only be sent by system. * This API can be called only by system applications. - * */ @!APILevel[ since: "22", @@ -1361,7 +1216,6 @@ public class Support { * The external storage was mounted. * This is a protected common event that can only be sent by system. * This API can be called only by system applications. - * */ @!APILevel[ since: "22", @@ -1372,7 +1226,6 @@ public class Support { * The external storage was bad removal. * This is a protected common event that can only be sent by system. * This API can be called only by system applications. - * */ @!APILevel[ since: "22", @@ -1383,7 +1236,6 @@ public class Support { * The external storage was eject. * This is a protected common event that can only be sent by system. * This API can be called only by system applications. - * */ @!APILevel[ since: "22", @@ -1393,7 +1245,6 @@ public class Support { /** * The visible of account was updated. * This is a protected common event that can only be sent by system. - * */ @!APILevel[ since: "22", @@ -1403,7 +1254,6 @@ public class Support { /** * Account was deleted. * This is a protected common event that can only be sent by system. - * */ @!APILevel[ since: "22", @@ -1413,7 +1263,6 @@ public class Support { /** * Foundation was ready. * This is a protected common event that can only be sent by system. - * */ @!APILevel[ since: "22", @@ -1423,7 +1272,6 @@ public class Support { /** * Indicates the common event Action indicating that the airplane mode status of the device changes. * Users can register this event to listen to the change of the airplane mode status of the device. - * */ @!APILevel[ since: "22", @@ -1432,7 +1280,6 @@ public class Support { public static const COMMON_EVENT_AIRPLANE_MODE_CHANGED: String = "usual.event.AIRPLANE_MODE" /** * sent by the window manager service when the window mode is split. - * */ @!APILevel[ since: "22", @@ -1443,7 +1290,6 @@ public class Support { * The notification slot has been updated. * This is a protected common event that can only be sent by system. * This API can be called only by system applications. - * */ @!APILevel[ since: "22", @@ -1453,7 +1299,6 @@ public class Support { /** * Indicate the action of a common event that the spn display information has been updated. * This common event can be triggered only by system. - * */ @!APILevel[ since: "22", @@ -1463,7 +1308,6 @@ public class Support { /** * Indicate the result of quick fix apply. * This common event can be triggered only by system. - * */ @!APILevel[ since: "22", @@ -1473,7 +1317,6 @@ public class Support { /** * Indicate the result of quick fix revoke. * This common event can be triggered only by system. - * */ @!APILevel[ since: "22", @@ -1483,7 +1326,6 @@ public class Support { /** * Indicate the action of a common event that the user information has been updated. * This common event can be triggered only by system. - * */ @!APILevel[ since: "22", @@ -1493,7 +1335,6 @@ public class Support { /** * Indicate http proxy has been changed. * This is a protected common event that can only be sent by system. - * */ @!APILevel[ since: "22", @@ -1503,7 +1344,6 @@ public class Support { /** * Indicates the action of a common event that the phone SIM card state has changed. * This is a protected common event that can only be sent by system. - * */ @!APILevel[ since: "22", @@ -1512,8 +1352,7 @@ public class Support { public static const COMMON_EVENT_SIM_STATE_CHANGED: String = "usual.event.SIM_STATE_CHANGED" /** * Indicates the action of a common event that the call state has been changed. - * To subscribe to this protected common event, your application must have the ohos.permission.GET_TELEPHONY_STATE - * + * This is a protected common event that can only be sent by system. */ @!APILevel[ since: "22", @@ -1523,7 +1362,6 @@ public class Support { /** * Indicates the action of a common event that the network state has been changed. * This is a protected common event that can only be sent by system. - * */ @!APILevel[ since: "22", @@ -1533,7 +1371,6 @@ public class Support { /** * Indicates the action of a common event that the signal info has been changed. * This is a protected common event that can only be sent by system. - * */ @!APILevel[ since: "22", @@ -1542,7 +1379,6 @@ public class Support { public static const COMMON_EVENT_SIGNAL_INFO_CHANGED: String = "usual.event.SIGNAL_INFO_CHANGED" /** * This commonEvent means when the screen is unlocked. - * */ @!APILevel[ since: "22", @@ -1551,7 +1387,6 @@ public class Support { public static const COMMON_EVENT_SCREEN_UNLOCKED: String = "usual.event.SCREEN_UNLOCKED" /** * This commonEvent means when the screen is locked. - * */ @!APILevel[ since: "22", @@ -1561,7 +1396,6 @@ public class Support { /** * Indicates the action of a common event that the network connectivity changed. * This is a protected common event that can only be sent by system. - * */ @!APILevel[ since: "22", diff --git a/ohos/common_event_publish_data/common_event_publish_data.cj b/ohos/common_event_publish_data/common_event_publish_data.cj index 9030c09..abcdb57 100644 --- a/ohos/common_event_publish_data/common_event_publish_data.cj +++ b/ohos/common_event_publish_data/common_event_publish_data.cj @@ -19,13 +19,12 @@ package ohos.common_event_publish_data import std.collection.HashMap import ohos.labels.APILevel -import ohos.value_type.{ValueType, CArrParameters, CParameters, createCpCString, createCArrParam} +import ohos.value_type.{CommonEventValueType, CArrParameters, CParameters, createCpCString, createCArrParam} import ohos.ffi.{CArrString, CTypeResource} import ohos.business_exception.BusinessException /** * The CommonEventPublishData module provides APIs for defining common event content and attributes. - * */ @!APILevel[ since: "22", @@ -34,7 +33,7 @@ import ohos.business_exception.BusinessException public class CommonEventPublishData { /** * Bundle name of the subscriber that can receive the common event. - * + * The default value is empty, which means any subscriber can receive public events, regardless of the subscribed bundlName. */ @!APILevel[ since: "22", @@ -42,8 +41,7 @@ public class CommonEventPublishData { ] public var bundleName: String /** - * Common event data transferred by the publisher. The default value is 0. - * + * Common event data transferred by the publisher. */ @!APILevel[ since: "22", @@ -52,7 +50,6 @@ public class CommonEventPublishData { public var code: Int32 /** * Common event data transferred by the publisher. The data size cannot exceed 64 KB. - * */ @!APILevel[ since: "22", @@ -61,7 +58,6 @@ public class CommonEventPublishData { public var data: String /** * Permissions required for subscribers to receive the common event. - * */ @!APILevel[ since: "22", @@ -70,7 +66,6 @@ public class CommonEventPublishData { public var subscriberPermissions: Array /** * Whether the common event is an ordered one. - * */ @!APILevel[ since: "22", @@ -78,27 +73,34 @@ public class CommonEventPublishData { ] public var isOrdered: Bool /** - * Whether the common event is a sticky one. Only system applications and system services are allowed to - * send sticky events. - * + * Whether the common event is a sticky one. Only system applications and system services are allowed to send sticky events. */ @!APILevel[ since: "22", - syscap: "SystemCapability.Notification.CommonEvent", - permission: "ohos.permission.COMMONEVENT_STICKY" + permission: "ohos.permission.COMMONEVENT_STICKY", + syscap: "SystemCapability.Notification.CommonEvent" ] public var isSticky: Bool /** - * Additional information about the common event transferred by the publisher. - * + * The description of the parameters in a common event. */ @!APILevel[ since: "22", syscap: "SystemCapability.Notification.CommonEvent" ] - public var parameters: HashMap + public var parameters: HashMap /** - * init the CommonEventPublishData + * CommonEventPublishData constructor. + * + * @param { String } [bundleName] - Bundle name of the subscriber that can receive the common event. + * @param { String } [data] - Common event data transferred by the publisher. The data size cannot exceed 64 KB. + * @param { Int32 } [code] - Common event data transferred by the publisher. The default value is 0. + * @param { Array } [subscriberPermissions] - Permissions required for subscribers to + * receive the common event. + * @param { Bool } [isOrdered] - Whether the common event is an ordered one. + * @param { Bool } [isSticky] - Whether the common event is a sticky one. Only system applications + * and system services are allowed to send sticky events. + * @param { HashMap } [parameters] - The description of the parameters in a common event. */ @!APILevel[ since: "22", @@ -111,7 +113,7 @@ public class CommonEventPublishData { subscriberPermissions!: Array = Array(), isOrdered!: Bool = false, isSticky!: Bool = false, - parameters!: HashMap = HashMap() + parameters!: HashMap = HashMap() ) { this.bundleName = bundleName this.data = data diff --git a/ohos/common_event_subscribe_info/common_event_subscribe_info.cj b/ohos/common_event_subscribe_info/common_event_subscribe_info.cj index 21aa8cd..bdb0593 100644 --- a/ohos/common_event_subscribe_info/common_event_subscribe_info.cj +++ b/ohos/common_event_subscribe_info/common_event_subscribe_info.cj @@ -89,7 +89,7 @@ public class CommonEventSubscribeInfo { ] public var publisherPermission: String /** - * Device ID. Use @ohos.deviceInfo to obtain the UDID as the device ID of the subscriber. Not supported currently. + * Device ID. Use @ohos.device_info to obtain the UDID as the device ID of the subscriber. Not supported currently. */ @!APILevel[ since: "22", @@ -98,7 +98,7 @@ public class CommonEventSubscribeInfo { public var publisherDeviceId: String /** * User ID. If this parameter is not specified, the default value, which is the ID of the current user, will be - * used.The value must be an existing user ID in the system. Use getOsAccountLocalId to obtain the system account + * used. The value must be an existing user ID in the system. Use getOsAccountLocalId to obtain the system account * ID and use it as the user ID of the subscriber. */ @!APILevel[ @@ -107,8 +107,10 @@ public class CommonEventSubscribeInfo { ] public var userId: Int32 /** - * Subscriber priority. The value ranges from –100 to +1000. If the value exceeds the upper or lower limit, the - * upper or lower limit is used. + * Subscriber priority. The value ranges from –100 to +1000. If the value exceeds the upper or lower limit, the upper or lower limit is used. + * The default value is 0. + * The higher the numerical value, the higher the priority. + * The value should be set by subscribers of the same event. */ @!APILevel[ since: "22", @@ -126,8 +128,16 @@ public class CommonEventSubscribeInfo { private static const UNDEFINED_USER = -3i32 /** - * init the CommonEventSubscribeInfo - */ + * CommonEventSubscribeInfo constructor. + * + * @param { Array } events - Common events to subscribe to. + * @param { String } [publisherPermission] - Permission of the publisher. + * @param { String } [publisherDeviceId] - Device ID. + * @param { Int32 } [userId] - User ID. + * @param { Int32 } [priority] - The value ranges from –100 to +1000. If the value exceeds the upper or lower limit, + * the upper or lower limit is used. + * @param { String } [publisherBundleName] - Bundle name of the publisher to subscribe to. + */ @!APILevel[ since: "22", syscap: "SystemCapability.Notification.CommonEvent" diff --git a/ohos/value_type/parameters.cj b/ohos/value_type/parameters.cj index ed98f90..899a268 100644 --- a/ohos/value_type/parameters.cj +++ b/ohos/value_type/parameters.cj @@ -36,7 +36,7 @@ const ARRAYFD_TYPE: Int8 = 10 protected struct Parameters { protected Parameters( protected let key: String, - protected let value: ValueType + protected let value: CommonEventValueType ) {} protected init(c: CParameters) { @@ -47,13 +47,13 @@ protected struct Parameters { case c.valueType == F64_TYPE => Float64Value(CPointer(c.value).read()) case c.valueType == STRING_TYPE => StringValue(CString(CPointer(c.value)).toString()) case c.valueType == BOOL_TYPE => BoolValue(CPointer(c.value).read()) - case c.valueType == FD_TYPE => Fd(CPointer(c.value).read()) + case c.valueType == FD_TYPE => FD(CPointer(c.value).read()) case c.valueType == ARRSTRING_TYPE => ArrayString(c.toArrString()) case c.valueType == ARRAYI32_TYPE => ArrayInt32(c.toArr()) case c.valueType == ARRAYI64_TYPE => ArrayInt64(c.toArr()) case c.valueType == ARRAYBOOL_TYPE => ArrayBool(c.toArr()) case c.valueType == ARRAYF64_TYPE => ArrayFloat64(c.toArr()) - case _ => ArrayFd(c.toArr()) + case _ => ArrayFD(c.toArr()) } } } @@ -129,10 +129,7 @@ protected struct CArrParameters { } } -/** -* @throws { BusinessException } 1500009 - Error obtaining system parameters. -*/ -unsafe protected func createCArrParam(parameters: HashMap): CArrParameters { +unsafe protected func createCArrParam(parameters: HashMap): CArrParameters { let cp = safeMalloc(count: parameters.size) let ptr = CArrParameters(cp, parameters.size) var count = 0 @@ -199,7 +196,7 @@ func throwIfEmpty(arr: Array): Unit { } } -func getValue(value: ValueType): (Int8, CPointer, Int64) { +func getValue(value: CommonEventValueType): (Int8, CPointer, Int64) { unsafe { match (value) { case Int32Value(v) => return (INT_TYPE, createPtr(v), 1) @@ -208,7 +205,7 @@ func getValue(value: ValueType): (Int8, CPointer, Int64) { let ptr = LibC.mallocCString(v).getChars() return (STRING_TYPE, CPointer(ptr), 1) case BoolValue(v) => return (BOOL_TYPE, createPtr(v), 1) - case Fd(v) => return (FD_TYPE, createPtr(v), 1) + case FD(v) => return (FD_TYPE, createPtr(v), 1) case ArrayString(v) => throwIfEmpty(v) let ptr = createCpCString(v) @@ -225,7 +222,7 @@ func getValue(value: ValueType): (Int8, CPointer, Int64) { case ArrayFloat64(v) => throwIfEmpty(v) return (ARRAYF64_TYPE, createArrPtr(v), v.size) - case ArrayFd(v) => + case ArrayFD(v) => throwIfEmpty(v) return (ARRAYFD_TYPE, createArrPtr(v), v.size) case _ => throw BusinessException(1500009, "Error obtaining system parameters.") diff --git a/ohos/value_type/value_type.cj b/ohos/value_type/value_type.cj index e11fcb0..9e8b0dd 100644 --- a/ohos/value_type/value_type.cj +++ b/ohos/value_type/value_type.cj @@ -26,7 +26,7 @@ import ohos.labels.APILevel since: "22", syscap: "SystemCapability.Notification.CommonEvent" ] -public enum ValueType { +public enum CommonEventValueType { /** * Int32 type value */ @@ -35,85 +35,95 @@ public enum ValueType { syscap: "SystemCapability.Notification.CommonEvent" ] Int32Value(Int32) + | /** * Float64 type value */ - | @!APILevel[ + @!APILevel[ since: "22", syscap: "SystemCapability.Notification.CommonEvent" ] Float64Value(Float64) + | /** * String type value */ - | @!APILevel[ + @!APILevel[ since: "22", syscap: "SystemCapability.Notification.CommonEvent" ] StringValue(String) + | /** * Bool type value */ - | @!APILevel[ + @!APILevel[ since: "22", syscap: "SystemCapability.Notification.CommonEvent" ] BoolValue(Bool) + | /** * FD type value */ - | @!APILevel[ + @!APILevel[ since: "22", syscap: "SystemCapability.Notification.CommonEvent" ] - Fd(Int32) + FD(Int32) + | /** * String array type value */ - | @!APILevel[ + @!APILevel[ since: "22", syscap: "SystemCapability.Notification.CommonEvent" ] ArrayString(Array) + | /** * Int32 array type value */ - | @!APILevel[ + @!APILevel[ since: "22", syscap: "SystemCapability.Notification.CommonEvent" ] ArrayInt32(Array) + | /** * Int64 array type value */ - | @!APILevel[ + @!APILevel[ since: "22", syscap: "SystemCapability.Notification.CommonEvent" ] ArrayInt64(Array) + | /** * Bool array type value */ - | @!APILevel[ + @!APILevel[ since: "22", syscap: "SystemCapability.Notification.CommonEvent" ] ArrayBool(Array) + | /** * Float64 array type value */ - | @!APILevel[ + @!APILevel[ since: "22", syscap: "SystemCapability.Notification.CommonEvent" ] ArrayFloat64(Array) + | /** * FD array type value */ - | @!APILevel[ + @!APILevel[ since: "22", syscap: "SystemCapability.Notification.CommonEvent" ] - ArrayFd(Array) + ArrayFD(Array) | ... } diff --git a/test/common_event_manager/test/entry/src/main/cangjie/src/Test_common_event_manager.cj b/test/common_event_manager/test/entry/src/main/cangjie/src/Test_common_event_manager.cj index 7bb5404..8dbd1c2 100644 --- a/test/common_event_manager/test/entry/src/main/cangjie/src/Test_common_event_manager.cj +++ b/test/common_event_manager/test/entry/src/main/cangjie/src/Test_common_event_manager.cj @@ -39,7 +39,7 @@ class Test_common_event_manager { sleepFor(1.second) } - let support1 = Support + let support1 = CommonEventSupport .COMMON_EVENT_SCREEN_ON @TestCase @@ -112,14 +112,14 @@ class Test_common_event_manager { parameter.add("1", CEMValueType.BoolValue(true)) parameter.add("2", CEMValueType.Int32Value(1)) parameter.add("3", CEMValueType.Float64Value(1.1)) - parameter.add("4", CEMValueType.Fd(4)) + parameter.add("4", CEMValueType.FD(4)) parameter.add("5", CEMValueType.StringValue("5")) parameter.add("6", CEMValueType.ArrayBool([false, true])) parameter.add("7", CEMValueType.ArrayInt32([3, 4])) parameter.add("8", CEMValueType.ArrayInt64([4, 4])) parameter.add("9", CEMValueType.ArrayFloat64([4.5, 4.5])) parameter.add("10", CEMValueType.ArrayString(["5+5", "=10"])) - parameter.add("11", CEMValueType.ArrayFd([5, 6, 7])) + parameter.add("11", CEMValueType.ArrayFD([5, 6, 7])) let commonEventPublishData00 = CommonEventPublishData(bundleName: "com.example.myapplication", data: "initial data", code: 123321, parameters: parameter) func delayMs(d: Int64): Unit { @@ -193,13 +193,13 @@ class Test_common_event_manager { parameters.add("2", CEMValueType.Float64Value(1.1)) parameters.add("3", CEMValueType.StringValue("111")) parameters.add("4", CEMValueType.BoolValue(true)) - parameters.add("5", CEMValueType.Fd(1)) + parameters.add("5", CEMValueType.FD(1)) parameters.add("6", CEMValueType.ArrayString(["123"])) parameters.add("7", CEMValueType.ArrayInt32([1, 2])) parameters.add("8", CEMValueType.ArrayInt64([1, 2])) parameters.add("9", CEMValueType.ArrayBool([true, false])) parameters.add("10", CEMValueType.ArrayFloat64([1.1, 2.1])) - parameters.add("11", CEMValueType.ArrayFd([1, 2])) + parameters.add("11", CEMValueType.ArrayFD([1, 2])) let pData = CommonEventPublishData(bundleName: "com.example.myapplication", data: "newbee", code: 123321, subscriberPermissions: ["123321"], parameters: parameters) CommonEventManager.subscribe(sub, callback) @@ -209,187 +209,187 @@ class Test_common_event_manager { @TestCase @Tag[APILevel22, TestLevel0] func test_support_value1(): Unit { - Support() - @Expect(Support.COMMON_EVENT_ABILITY_ADDED, "common.event.ABILITY_ADDED") - @Expect(Support.COMMON_EVENT_ABILITY_REMOVED, "common.event.ABILITY_REMOVED") - @Expect(Support.COMMON_EVENT_ABILITY_UPDATED, "common.event.ABILITY_UPDATED") - @Expect(Support.COMMON_EVENT_ACCOUNT_DELETED, "usual.event.data.ACCOUNT_DELETED") - @Expect(Support.COMMON_EVENT_AIRPLANE_MODE_CHANGED, "usual.event.AIRPLANE_MODE") - @Expect(Support.COMMON_EVENT_BATTERY_CHANGED, "usual.event.BATTERY_CHANGED") - @Expect(Support.COMMON_EVENT_BATTERY_LOW, "usual.event.BATTERY_LOW") - @Expect(Support.COMMON_EVENT_BATTERY_OKAY, "usual.event.BATTERY_OKAY") - @Expect(Support.COMMON_EVENT_BLUETOOTH_HANDSFREE_AG_CONNECT_STATE_UPDATE, "usual.event.bluetooth.handsfree.ag.CONNECT_STATE_UPDATE") - @Expect(Support.COMMON_EVENT_BLUETOOTH_HANDSFREE_AG_CURRENT_DEVICE_UPDATE, "usual.event.bluetooth.handsfree.ag.CURRENT_DEVICE_UPDATE") - @Expect(Support.COMMON_EVENT_BLUETOOTH_HANDSFREE_AG_AUDIO_STATE_UPDATE, "usual.event.bluetooth.handsfree.ag.AUDIO_STATE_UPDATE") - @Expect(Support.COMMON_EVENT_BLUETOOTH_A2DPSOURCE_CONNECT_STATE_UPDATE, "usual.event.bluetooth.a2dpsource.CONNECT_STATE_UPDATE") - @Expect(Support.COMMON_EVENT_BLUETOOTH_A2DPSOURCE_CURRENT_DEVICE_UPDATE, "usual.event.bluetooth.a2dpsource.CURRENT_DEVICE_UPDATE") - @Expect(Support.COMMON_EVENT_BLUETOOTH_A2DPSOURCE_PLAYING_STATE_UPDATE, "usual.event.bluetooth.a2dpsource.PLAYING_STATE_UPDATE") - @Expect(Support.COMMON_EVENT_BLUETOOTH_A2DPSOURCE_AVRCP_CONNECT_STATE_UPDATE, "usual.event.bluetooth.a2dpsource.AVRCP_CONNECT_STATE_UPDATE") - @Expect(Support.COMMON_EVENT_BLUETOOTH_A2DPSOURCE_CODEC_VALUE_UPDATE, "usual.event.bluetooth.a2dpsource.CODEC_VALUE_UPDATE") - @Expect(Support.COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_DISCOVERED, "usual.event.bluetooth.remotedevice.DISCOVERED") - @Expect(Support.COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CLASS_VALUE_UPDATE, "usual.event.bluetooth.remotedevice.CLASS_VALUE_UPDATE") - @Expect(Support.COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_ACL_CONNECTED, "usual.event.bluetooth.remotedevice.ACL_CONNECTED") - @Expect(Support.COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_ACL_DISCONNECTED, "usual.event.bluetooth.remotedevice.ACL_DISCONNECTED") - @Expect(Support.COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_NAME_UPDATE, "usual.event.bluetooth.remotedevice.NAME_UPDATE") - @Expect(Support.COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_PAIR_STATE, "usual.event.bluetooth.remotedevice.PAIR_STATE") - @Expect(Support.COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_BATTERY_VALUE_UPDATE, "usual.event.bluetooth.remotedevice.BATTERY_VALUE_UPDATE") - @Expect(Support.COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_SDP_RESULT, "usual.event.bluetooth.remotedevice.SDP_RESULT") - @Expect(Support.COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_UUID_VALUE, "usual.event.bluetooth.remotedevice.UUID_VALUE") - @Expect(Support.COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_PAIRING_REQ, "usual.event.bluetooth.remotedevice.PAIRING_REQ") - @Expect(Support.COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_PAIRING_CANCEL, "usual.event.bluetooth.remotedevice.PAIRING_CANCEL") - @Expect(Support.COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CONNECT_REQ, "usual.event.bluetooth.remotedevice.CONNECT_REQ") - @Expect(Support.COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CONNECT_REPLY, "usual.event.bluetooth.remotedevice.CONNECT_REPLY") - @Expect(Support.COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CONNECT_CANCEL, "usual.event.bluetooth.remotedevice.CONNECT_CANCEL") - @Expect(Support.COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_CONNECT_STATE_UPDATE, "usual.event.bluetooth.handsfreeunit.CONNECT_STATE_UPDATE") - @Expect(Support.COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_AUDIO_STATE_UPDATE, "usual.event.bluetooth.handsfreeunit.AUDIO_STATE_UPDATE") - @Expect(Support.COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_AG_COMMON_EVENT, "usual.event.bluetooth.handsfreeunit.AG_COMMON_EVENT") - @Expect(Support.COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_AG_CALL_STATE_UPDATE, "usual.event.bluetooth.handsfreeunit.AG_CALL_STATE_UPDATE") - @Expect(Support.COMMON_EVENT_BLUETOOTH_HOST_STATE_UPDATE, "usual.event.bluetooth.host.STATE_UPDATE") - @Expect(Support.COMMON_EVENT_BLUETOOTH_HOST_REQ_DISCOVERABLE, "usual.event.bluetooth.host.REQ_DISCOVERABLE") - @Expect(Support.COMMON_EVENT_BLUETOOTH_HOST_REQ_ENABLE, "usual.event.bluetooth.host.REQ_ENABLE") - @Expect(Support.COMMON_EVENT_BLUETOOTH_HOST_REQ_DISABLE, "usual.event.bluetooth.host.REQ_DISABLE") - @Expect(Support.COMMON_EVENT_BLUETOOTH_HOST_SCAN_MODE_UPDATE, "usual.event.bluetooth.host.SCAN_MODE_UPDATE") - @Expect(Support.COMMON_EVENT_BLUETOOTH_HOST_DISCOVERY_STARTED, "usual.event.bluetooth.host.DISCOVERY_STARTED") - @Expect(Support.COMMON_EVENT_BLUETOOTH_HOST_DISCOVERY_FINISHED, "usual.event.bluetooth.host.DISCOVERY_FINISHED") - @Expect(Support.COMMON_EVENT_BLUETOOTH_HOST_NAME_UPDATE, "usual.event.bluetooth.host.NAME_UPDATE") - @Expect(Support.COMMON_EVENT_BLUETOOTH_A2DPSINK_CONNECT_STATE_UPDATE, "usual.event.bluetooth.a2dpsink.CONNECT_STATE_UPDATE") - @Expect(Support.COMMON_EVENT_BLUETOOTH_A2DPSINK_PLAYING_STATE_UPDATE, "usual.event.bluetooth.a2dpsink.PLAYING_STATE_UPDATE") - @Expect(Support.COMMON_EVENT_BLUETOOTH_A2DPSINK_AUDIO_STATE_UPDATE, "usual.event.bluetooth.a2dpsink.AUDIO_STATE_UPDATE") - @Expect(Support.COMMON_EVENT_BUNDLE_REMOVED, "usual.event.BUNDLE_REMOVED") - @Expect(Support.COMMON_EVENT_BOOT_COMPLETED, "usual.event.BOOT_COMPLETED") + CommonEventSupport() + @Expect(CommonEventSupport.COMMON_EVENT_ABILITY_ADDED, "common.event.ABILITY_ADDED") + @Expect(CommonEventSupport.COMMON_EVENT_ABILITY_REMOVED, "common.event.ABILITY_REMOVED") + @Expect(CommonEventSupport.COMMON_EVENT_ABILITY_UPDATED, "common.event.ABILITY_UPDATED") + @Expect(CommonEventSupport.COMMON_EVENT_ACCOUNT_DELETED, "usual.event.data.ACCOUNT_DELETED") + @Expect(CommonEventSupport.COMMON_EVENT_AIRPLANE_MODE_CHANGED, "usual.event.AIRPLANE_MODE") + @Expect(CommonEventSupport.COMMON_EVENT_BATTERY_CHANGED, "usual.event.BATTERY_CHANGED") + @Expect(CommonEventSupport.COMMON_EVENT_BATTERY_LOW, "usual.event.BATTERY_LOW") + @Expect(CommonEventSupport.COMMON_EVENT_BATTERY_OKAY, "usual.event.BATTERY_OKAY") + @Expect(CommonEventSupport.COMMON_EVENT_BLUETOOTH_HANDSFREE_AG_CONNECT_STATE_UPDATE, "usual.event.bluetooth.handsfree.ag.CONNECT_STATE_UPDATE") + @Expect(CommonEventSupport.COMMON_EVENT_BLUETOOTH_HANDSFREE_AG_CURRENT_DEVICE_UPDATE, "usual.event.bluetooth.handsfree.ag.CURRENT_DEVICE_UPDATE") + @Expect(CommonEventSupport.COMMON_EVENT_BLUETOOTH_HANDSFREE_AG_AUDIO_STATE_UPDATE, "usual.event.bluetooth.handsfree.ag.AUDIO_STATE_UPDATE") + @Expect(CommonEventSupport.COMMON_EVENT_BLUETOOTH_A2DPSOURCE_CONNECT_STATE_UPDATE, "usual.event.bluetooth.a2dpsource.CONNECT_STATE_UPDATE") + @Expect(CommonEventSupport.COMMON_EVENT_BLUETOOTH_A2DPSOURCE_CURRENT_DEVICE_UPDATE, "usual.event.bluetooth.a2dpsource.CURRENT_DEVICE_UPDATE") + @Expect(CommonEventSupport.COMMON_EVENT_BLUETOOTH_A2DPSOURCE_PLAYING_STATE_UPDATE, "usual.event.bluetooth.a2dpsource.PLAYING_STATE_UPDATE") + @Expect(CommonEventSupport.COMMON_EVENT_BLUETOOTH_A2DPSOURCE_AVRCP_CONNECT_STATE_UPDATE, "usual.event.bluetooth.a2dpsource.AVRCP_CONNECT_STATE_UPDATE") + @Expect(CommonEventSupport.COMMON_EVENT_BLUETOOTH_A2DPSOURCE_CODEC_VALUE_UPDATE, "usual.event.bluetooth.a2dpsource.CODEC_VALUE_UPDATE") + @Expect(CommonEventSupport.COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_DISCOVERED, "usual.event.bluetooth.remotedevice.DISCOVERED") + @Expect(CommonEventSupport.COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CLASS_VALUE_UPDATE, "usual.event.bluetooth.remotedevice.CLASS_VALUE_UPDATE") + @Expect(CommonEventSupport.COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_ACL_CONNECTED, "usual.event.bluetooth.remotedevice.ACL_CONNECTED") + @Expect(CommonEventSupport.COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_ACL_DISCONNECTED, "usual.event.bluetooth.remotedevice.ACL_DISCONNECTED") + @Expect(CommonEventSupport.COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_NAME_UPDATE, "usual.event.bluetooth.remotedevice.NAME_UPDATE") + @Expect(CommonEventSupport.COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_PAIR_STATE, "usual.event.bluetooth.remotedevice.PAIR_STATE") + @Expect(CommonEventSupport.COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_BATTERY_VALUE_UPDATE, "usual.event.bluetooth.remotedevice.BATTERY_VALUE_UPDATE") + @Expect(CommonEventSupport.COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_SDP_RESULT, "usual.event.bluetooth.remotedevice.SDP_RESULT") + @Expect(CommonEventSupport.COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_UUID_VALUE, "usual.event.bluetooth.remotedevice.UUID_VALUE") + @Expect(CommonEventSupport.COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_PAIRING_REQ, "usual.event.bluetooth.remotedevice.PAIRING_REQ") + @Expect(CommonEventSupport.COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_PAIRING_CANCEL, "usual.event.bluetooth.remotedevice.PAIRING_CANCEL") + @Expect(CommonEventSupport.COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CONNECT_REQ, "usual.event.bluetooth.remotedevice.CONNECT_REQ") + @Expect(CommonEventSupport.COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CONNECT_REPLY, "usual.event.bluetooth.remotedevice.CONNECT_REPLY") + @Expect(CommonEventSupport.COMMON_EVENT_BLUETOOTH_REMOTEDEVICE_CONNECT_CANCEL, "usual.event.bluetooth.remotedevice.CONNECT_CANCEL") + @Expect(CommonEventSupport.COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_CONNECT_STATE_UPDATE, "usual.event.bluetooth.handsfreeunit.CONNECT_STATE_UPDATE") + @Expect(CommonEventSupport.COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_AUDIO_STATE_UPDATE, "usual.event.bluetooth.handsfreeunit.AUDIO_STATE_UPDATE") + @Expect(CommonEventSupport.COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_AG_COMMON_EVENT, "usual.event.bluetooth.handsfreeunit.AG_COMMON_EVENT") + @Expect(CommonEventSupport.COMMON_EVENT_BLUETOOTH_HANDSFREEUNIT_AG_CALL_STATE_UPDATE, "usual.event.bluetooth.handsfreeunit.AG_CALL_STATE_UPDATE") + @Expect(CommonEventSupport.COMMON_EVENT_BLUETOOTH_HOST_STATE_UPDATE, "usual.event.bluetooth.host.STATE_UPDATE") + @Expect(CommonEventSupport.COMMON_EVENT_BLUETOOTH_HOST_REQ_DISCOVERABLE, "usual.event.bluetooth.host.REQ_DISCOVERABLE") + @Expect(CommonEventSupport.COMMON_EVENT_BLUETOOTH_HOST_REQ_ENABLE, "usual.event.bluetooth.host.REQ_ENABLE") + @Expect(CommonEventSupport.COMMON_EVENT_BLUETOOTH_HOST_REQ_DISABLE, "usual.event.bluetooth.host.REQ_DISABLE") + @Expect(CommonEventSupport.COMMON_EVENT_BLUETOOTH_HOST_SCAN_MODE_UPDATE, "usual.event.bluetooth.host.SCAN_MODE_UPDATE") + @Expect(CommonEventSupport.COMMON_EVENT_BLUETOOTH_HOST_DISCOVERY_STARTED, "usual.event.bluetooth.host.DISCOVERY_STARTED") + @Expect(CommonEventSupport.COMMON_EVENT_BLUETOOTH_HOST_DISCOVERY_FINISHED, "usual.event.bluetooth.host.DISCOVERY_FINISHED") + @Expect(CommonEventSupport.COMMON_EVENT_BLUETOOTH_HOST_NAME_UPDATE, "usual.event.bluetooth.host.NAME_UPDATE") + @Expect(CommonEventSupport.COMMON_EVENT_BLUETOOTH_A2DPSINK_CONNECT_STATE_UPDATE, "usual.event.bluetooth.a2dpsink.CONNECT_STATE_UPDATE") + @Expect(CommonEventSupport.COMMON_EVENT_BLUETOOTH_A2DPSINK_PLAYING_STATE_UPDATE, "usual.event.bluetooth.a2dpsink.PLAYING_STATE_UPDATE") + @Expect(CommonEventSupport.COMMON_EVENT_BLUETOOTH_A2DPSINK_AUDIO_STATE_UPDATE, "usual.event.bluetooth.a2dpsink.AUDIO_STATE_UPDATE") + @Expect(CommonEventSupport.COMMON_EVENT_BUNDLE_REMOVED, "usual.event.BUNDLE_REMOVED") + @Expect(CommonEventSupport.COMMON_EVENT_BOOT_COMPLETED, "usual.event.BOOT_COMPLETED") } @TestCase @Tag[APILevel22, TestLevel0] func test_support_value2(): Unit { - @Expect(Support.COMMON_EVENT_CONNECTIVITY_CHANGE, "usual.event.CONNECTIVITY_CHANGE") - @Expect(Support.COMMON_EVENT_CALL_STATE_CHANGED, "usual.event.CALL_STATE_CHANGED") - @Expect(Support.COMMON_EVENT_CHARGE_IDLE_MODE_CHANGED, "usual.event.CHARGE_IDLE_MODE_CHANGED") - @Expect(Support.COMMON_EVENT_CHARGING, "usual.event.CHARGING") - @Expect(Support.COMMON_EVENT_CONFIGURATION_CHANGED, "usual.event.CONFIGURATION_CHANGED") - @Expect(Support.COMMON_EVENT_CLOSE_SYSTEM_DIALOGS, "usual.event.CLOSE_SYSTEM_DIALOGS") - @Expect(Support.COMMON_EVENT_DISK_EJECT, "usual.event.data.DISK_EJECT") - @Expect(Support.COMMON_EVENT_DISK_UNMOUNTABLE, "usual.event.data.DISK_UNMOUNTABLE") - @Expect(Support.COMMON_EVENT_DISK_BAD_REMOVAL, "usual.event.data.DISK_BAD_REMOVAL") - @Expect(Support.COMMON_EVENT_DISK_MOUNTED, "usual.event.data.DISK_MOUNTED") - @Expect(Support.COMMON_EVENT_DISK_UNMOUNTED, "usual.event.data.DISK_UNMOUNTED") - @Expect(Support.COMMON_EVENT_DISK_REMOVED, "usual.event.data.DISK_REMOVED") - @Expect(Support.COMMON_EVENT_DEVICE_IDLE_MODE_CHANGED, "usual.event.DEVICE_IDLE_MODE_CHANGED") - @Expect(Support.COMMON_EVENT_DISCHARGING, "usual.event.DISCHARGING") - @Expect(Support.COMMON_EVENT_DISTRIBUTED_ACCOUNT_LOGOFF, "common.event.DISTRIBUTED_ACCOUNT_LOGOFF") - @Expect(Support.COMMON_EVENT_DISTRIBUTED_ACCOUNT_TOKEN_INVALID, "common.event.DISTRIBUTED_ACCOUNT_TOKEN_INVALID") - @Expect(Support.COMMON_EVENT_DISTRIBUTED_ACCOUNT_LOGOUT, "common.event.DISTRIBUTED_ACCOUNT_LOGOUT") - @Expect(Support.COMMON_EVENT_DISTRIBUTED_ACCOUNT_LOGIN, "common.event.DISTRIBUTED_ACCOUNT_LOGIN") - @Expect(Support.COMMON_EVENT_DRIVE_MODE, "common.event.DRIVE_MODE") - @Expect(Support.COMMON_EVENT_DATE_CHANGED, "usual.event.DATE_CHANGED") - @Expect(Support.COMMON_EVENT_EXTERNAL_APPLICATIONS_UNAVAILABLE, "usual.event.EXTERNAL_APPLICATIONS_UNAVAILABLE") - @Expect(Support.COMMON_EVENT_EXTERNAL_APPLICATIONS_AVAILABLE, "usual.event.EXTERNAL_APPLICATIONS_AVAILABLE") - @Expect(Support.COMMON_EVENT_FOUNDATION_READY, "common.event.FOUNDATION_READY") - @Expect(Support.COMMON_EVENT_HOME_MODE, "common.event.HOME_MODE") - @Expect(Support.COMMON_EVENT_HTTP_PROXY_CHANGE, "usual.event.HTTP_PROXY_CHANGE") - @Expect(Support.COMMON_EVENT_IVI_SLEEP, "common.event.IVI_SLEEP") - @Expect(Support.COMMON_EVENT_IVI_PAUSE, "common.event.IVI_PAUSE") - @Expect(Support.COMMON_EVENT_IVI_STANDBY, "common.event.IVI_STANDBY") - @Expect(Support.COMMON_EVENT_IVI_LASTMODE_SAVE, "common.event.IVI_LASTMODE_SAVE") - @Expect(Support.COMMON_EVENT_IVI_VOLTAGE_ABNORMAL, "common.event.IVI_VOLTAGE_ABNORMAL") - @Expect(Support.COMMON_EVENT_IVI_HIGH_TEMPERATURE, "common.event.IVI_HIGH_TEMPERATURE") - @Expect(Support.COMMON_EVENT_IVI_EXTREME_TEMPERATURE, "common.event.IVI_EXTREME_TEMPERATURE") - @Expect(Support.COMMON_EVENT_IVI_TEMPERATURE_ABNORMAL, "common.event.IVI_TEMPERATURE_ABNORMAL") - @Expect(Support.COMMON_EVENT_IVI_VOLTAGE_RECOVERY, "common.event.IVI_VOLTAGE_RECOVERY") - @Expect(Support.COMMON_EVENT_IVI_TEMPERATURE_RECOVERY, "common.event.IVI_TEMPERATURE_RECOVERY") - @Expect(Support.COMMON_EVENT_IVI_ACTIVE, "common.event.IVI_ACTIVE") - @Expect(Support.COMMON_EVENT_LOCKED_BOOT_COMPLETED, "usual.event.LOCKED_BOOT_COMPLETED") - @Expect(Support.COMMON_EVENT_LOCALE_CHANGED, "usual.event.LOCALE_CHANGED") - @Expect(Support.COMMON_EVENT_LOCATION_MODE_STATE_CHANGED, "usual.event.location.MODE_STATE_CHANGED") - @Expect(Support.COMMON_EVENT_MY_PACKAGE_REPLACED, "usual.event.MY_PACKAGE_REPLACED") - @Expect(Support.COMMON_EVENT_MY_PACKAGE_SUSPENDED, "usual.event.MY_PACKAGE_SUSPENDED") - @Expect(Support.COMMON_EVENT_MY_PACKAGE_UNSUSPENDED, "usual.event.MY_PACKAGE_UNSUSPENDED") + @Expect(CommonEventSupport.COMMON_EVENT_CONNECTIVITY_CHANGE, "usual.event.CONNECTIVITY_CHANGE") + @Expect(CommonEventSupport.COMMON_EVENT_CALL_STATE_CHANGED, "usual.event.CALL_STATE_CHANGED") + @Expect(CommonEventSupport.COMMON_EVENT_CHARGE_IDLE_MODE_CHANGED, "usual.event.CHARGE_IDLE_MODE_CHANGED") + @Expect(CommonEventSupport.COMMON_EVENT_CHARGING, "usual.event.CHARGING") + @Expect(CommonEventSupport.COMMON_EVENT_CONFIGURATION_CHANGED, "usual.event.CONFIGURATION_CHANGED") + @Expect(CommonEventSupport.COMMON_EVENT_CLOSE_SYSTEM_DIALOGS, "usual.event.CLOSE_SYSTEM_DIALOGS") + @Expect(CommonEventSupport.COMMON_EVENT_DISK_EJECT, "usual.event.data.DISK_EJECT") + @Expect(CommonEventSupport.COMMON_EVENT_DISK_UNMOUNTABLE, "usual.event.data.DISK_UNMOUNTABLE") + @Expect(CommonEventSupport.COMMON_EVENT_DISK_BAD_REMOVAL, "usual.event.data.DISK_BAD_REMOVAL") + @Expect(CommonEventSupport.COMMON_EVENT_DISK_MOUNTED, "usual.event.data.DISK_MOUNTED") + @Expect(CommonEventSupport.COMMON_EVENT_DISK_UNMOUNTED, "usual.event.data.DISK_UNMOUNTED") + @Expect(CommonEventSupport.COMMON_EVENT_DISK_REMOVED, "usual.event.data.DISK_REMOVED") + @Expect(CommonEventSupport.COMMON_EVENT_DEVICE_IDLE_MODE_CHANGED, "usual.event.DEVICE_IDLE_MODE_CHANGED") + @Expect(CommonEventSupport.COMMON_EVENT_DISCHARGING, "usual.event.DISCHARGING") + @Expect(CommonEventSupport.COMMON_EVENT_DISTRIBUTED_ACCOUNT_LOGOFF, "common.event.DISTRIBUTED_ACCOUNT_LOGOFF") + @Expect(CommonEventSupport.COMMON_EVENT_DISTRIBUTED_ACCOUNT_TOKEN_INVALID, "common.event.DISTRIBUTED_ACCOUNT_TOKEN_INVALID") + @Expect(CommonEventSupport.COMMON_EVENT_DISTRIBUTED_ACCOUNT_LOGOUT, "common.event.DISTRIBUTED_ACCOUNT_LOGOUT") + @Expect(CommonEventSupport.COMMON_EVENT_DISTRIBUTED_ACCOUNT_LOGIN, "common.event.DISTRIBUTED_ACCOUNT_LOGIN") + @Expect(CommonEventSupport.COMMON_EVENT_DRIVE_MODE, "common.event.DRIVE_MODE") + @Expect(CommonEventSupport.COMMON_EVENT_DATE_CHANGED, "usual.event.DATE_CHANGED") + @Expect(CommonEventSupport.COMMON_EVENT_EXTERNAL_APPLICATIONS_UNAVAILABLE, "usual.event.EXTERNAL_APPLICATIONS_UNAVAILABLE") + @Expect(CommonEventSupport.COMMON_EVENT_EXTERNAL_APPLICATIONS_AVAILABLE, "usual.event.EXTERNAL_APPLICATIONS_AVAILABLE") + @Expect(CommonEventSupport.COMMON_EVENT_FOUNDATION_READY, "common.event.FOUNDATION_READY") + @Expect(CommonEventSupport.COMMON_EVENT_HOME_MODE, "common.event.HOME_MODE") + @Expect(CommonEventSupport.COMMON_EVENT_HTTP_PROXY_CHANGE, "usual.event.HTTP_PROXY_CHANGE") + @Expect(CommonEventSupport.COMMON_EVENT_IVI_SLEEP, "common.event.IVI_SLEEP") + @Expect(CommonEventSupport.COMMON_EVENT_IVI_PAUSE, "common.event.IVI_PAUSE") + @Expect(CommonEventSupport.COMMON_EVENT_IVI_STANDBY, "common.event.IVI_STANDBY") + @Expect(CommonEventSupport.COMMON_EVENT_IVI_LAST_MODE_SAVE, "common.event.IVI_LASTMODE_SAVE") + @Expect(CommonEventSupport.COMMON_EVENT_IVI_VOLTAGE_ABNORMAL, "common.event.IVI_VOLTAGE_ABNORMAL") + @Expect(CommonEventSupport.COMMON_EVENT_IVI_HIGH_TEMPERATURE, "common.event.IVI_HIGH_TEMPERATURE") + @Expect(CommonEventSupport.COMMON_EVENT_IVI_EXTREME_TEMPERATURE, "common.event.IVI_EXTREME_TEMPERATURE") + @Expect(CommonEventSupport.COMMON_EVENT_IVI_TEMPERATURE_ABNORMAL, "common.event.IVI_TEMPERATURE_ABNORMAL") + @Expect(CommonEventSupport.COMMON_EVENT_IVI_VOLTAGE_RECOVERY, "common.event.IVI_VOLTAGE_RECOVERY") + @Expect(CommonEventSupport.COMMON_EVENT_IVI_TEMPERATURE_RECOVERY, "common.event.IVI_TEMPERATURE_RECOVERY") + @Expect(CommonEventSupport.COMMON_EVENT_IVI_ACTIVE, "common.event.IVI_ACTIVE") + @Expect(CommonEventSupport.COMMON_EVENT_LOCKED_BOOT_COMPLETED, "usual.event.LOCKED_BOOT_COMPLETED") + @Expect(CommonEventSupport.COMMON_EVENT_LOCALE_CHANGED, "usual.event.LOCALE_CHANGED") + @Expect(CommonEventSupport.COMMON_EVENT_LOCATION_MODE_STATE_CHANGED, "usual.event.location.MODE_STATE_CHANGED") + @Expect(CommonEventSupport.COMMON_EVENT_MY_PACKAGE_REPLACED, "usual.event.MY_PACKAGE_REPLACED") + @Expect(CommonEventSupport.COMMON_EVENT_MY_PACKAGE_SUSPENDED, "usual.event.MY_PACKAGE_SUSPENDED") + @Expect(CommonEventSupport.COMMON_EVENT_MY_PACKAGE_UNSUSPENDED, "usual.event.MY_PACKAGE_UNSUSPENDED") } @TestCase @Tag[APILevel22, TestLevel0] func test_support_value3(): Unit { - @Expect(Support.COMMON_EVENT_MANAGE_PACKAGE_STORAGE, "usual.event.MANAGE_PACKAGE_STORAGE") - @Expect(Support.COMMON_EVENT_NFC_ACTION_ADAPTER_STATE_CHANGED, "usual.event.nfc.action.ADAPTER_STATE_CHANGED") - @Expect(Support.COMMON_EVENT_NFC_ACTION_RF_FIELD_ON_DETECTED, "usual.event.nfc.action.RF_FIELD_ON_DETECTED") - @Expect(Support.COMMON_EVENT_NFC_ACTION_RF_FIELD_OFF_DETECTED, "usual.event.nfc.action.RF_FIELD_OFF_DETECTED") - @Expect(Support.COMMON_EVENT_NETWORK_STATE_CHANGED, "usual.event.NETWORK_STATE_CHANGED") - @Expect(Support.COMMON_EVENT_OFFICE_MODE, "common.event.OFFICE_MODE") - @Expect(Support.COMMON_EVENT_POWER_CONNECTED, "usual.event.POWER_CONNECTED") - @Expect(Support.COMMON_EVENT_POWER_DISCONNECTED, "usual.event.POWER_DISCONNECTED") - @Expect(Support.COMMON_EVENT_PACKAGE_ADDED, "usual.event.PACKAGE_ADDED") - @Expect(Support.COMMON_EVENT_PACKAGE_REPLACED, "usual.event.PACKAGE_REPLACED") - @Expect(Support.COMMON_EVENT_PACKAGE_REMOVED, "usual.event.PACKAGE_REMOVED") - @Expect(Support.COMMON_EVENT_PACKAGE_FULLY_REMOVED, "usual.event.PACKAGE_FULLY_REMOVED") - @Expect(Support.COMMON_EVENT_PACKAGE_CHANGED, "usual.event.PACKAGE_CHANGED") - @Expect(Support.COMMON_EVENT_PACKAGE_RESTARTED, "usual.event.PACKAGE_RESTARTED") - @Expect(Support.COMMON_EVENT_PACKAGE_DATA_CLEARED, "usual.event.PACKAGE_DATA_CLEARED") - @Expect(Support.COMMON_EVENT_PACKAGE_CACHE_CLEARED, "usual.event.PACKAGE_CACHE_CLEARED") - @Expect(Support.COMMON_EVENT_PACKAGES_SUSPENDED, "usual.event.PACKAGES_SUSPENDED") - @Expect(Support.COMMON_EVENT_PACKAGES_UNSUSPENDED, "usual.event.PACKAGES_UNSUSPENDED") - @Expect(Support.COMMON_EVENT_PACKAGE_FIRST_LAUNCH, "usual.event.PACKAGE_FIRST_LAUNCH") - @Expect(Support.COMMON_EVENT_PACKAGE_NEEDS_VERIFICATION, "usual.event.PACKAGE_NEEDS_VERIFICATION") - @Expect(Support.COMMON_EVENT_PACKAGE_VERIFIED, "usual.event.PACKAGE_VERIFIED") - @Expect(Support.COMMON_EVENT_POWER_SAVE_MODE_CHANGED, "usual.event.POWER_SAVE_MODE_CHANGED") - @Expect(Support.COMMON_EVENT_QUICK_FIX_APPLY_RESULT, "usual.event.QUICK_FIX_APPLY_RESULT") - @Expect(Support.COMMON_EVENT_QUICK_FIX_REVOKE_RESULT, "usual.event.QUICK_FIX_REVOKE_RESULT") - @Expect(Support.COMMON_EVENT_SHUTDOWN, "usual.event.SHUTDOWN") - @Expect(Support.COMMON_EVENT_SCREEN_OFF, "usual.event.SCREEN_OFF") - @Expect(Support.COMMON_EVENT_SCREEN_ON, "usual.event.SCREEN_ON") - @Expect(Support.COMMON_EVENT_SPLIT_SCREEN, "common.event.SPLIT_SCREEN") - @Expect(Support.COMMON_EVENT_SLOT_CHANGE, "usual.event.SLOT_CHANGE") - @Expect(Support.COMMON_EVENT_SPN_INFO_CHANGED, "usual.event.SPN_INFO_CHANGED") - @Expect(Support.COMMON_EVENT_SIGNAL_INFO_CHANGED, "usual.event.SIGNAL_INFO_CHANGED") - @Expect(Support.COMMON_EVENT_SIM_STATE_CHANGED, "usual.event.SIM_STATE_CHANGED") - @Expect(Support.COMMON_EVENT_SCREEN_LOCKED, "usual.event.SCREEN_LOCKED") + @Expect(CommonEventSupport.COMMON_EVENT_MANAGE_PACKAGE_STORAGE, "usual.event.MANAGE_PACKAGE_STORAGE") + @Expect(CommonEventSupport.COMMON_EVENT_NFC_ACTION_ADAPTER_STATE_CHANGED, "usual.event.nfc.action.ADAPTER_STATE_CHANGED") + @Expect(CommonEventSupport.COMMON_EVENT_NFC_ACTION_RF_FIELD_ON_DETECTED, "usual.event.nfc.action.RF_FIELD_ON_DETECTED") + @Expect(CommonEventSupport.COMMON_EVENT_NFC_ACTION_RF_FIELD_OFF_DETECTED, "usual.event.nfc.action.RF_FIELD_OFF_DETECTED") + @Expect(CommonEventSupport.COMMON_EVENT_NETWORK_STATE_CHANGED, "usual.event.NETWORK_STATE_CHANGED") + @Expect(CommonEventSupport.COMMON_EVENT_OFFICE_MODE, "common.event.OFFICE_MODE") + @Expect(CommonEventSupport.COMMON_EVENT_POWER_CONNECTED, "usual.event.POWER_CONNECTED") + @Expect(CommonEventSupport.COMMON_EVENT_POWER_DISCONNECTED, "usual.event.POWER_DISCONNECTED") + @Expect(CommonEventSupport.COMMON_EVENT_PACKAGE_ADDED, "usual.event.PACKAGE_ADDED") + @Expect(CommonEventSupport.COMMON_EVENT_PACKAGE_REPLACED, "usual.event.PACKAGE_REPLACED") + @Expect(CommonEventSupport.COMMON_EVENT_PACKAGE_REMOVED, "usual.event.PACKAGE_REMOVED") + @Expect(CommonEventSupport.COMMON_EVENT_PACKAGE_FULLY_REMOVED, "usual.event.PACKAGE_FULLY_REMOVED") + @Expect(CommonEventSupport.COMMON_EVENT_PACKAGE_CHANGED, "usual.event.PACKAGE_CHANGED") + @Expect(CommonEventSupport.COMMON_EVENT_PACKAGE_RESTARTED, "usual.event.PACKAGE_RESTARTED") + @Expect(CommonEventSupport.COMMON_EVENT_PACKAGE_DATA_CLEARED, "usual.event.PACKAGE_DATA_CLEARED") + @Expect(CommonEventSupport.COMMON_EVENT_PACKAGE_CACHE_CLEARED, "usual.event.PACKAGE_CACHE_CLEARED") + @Expect(CommonEventSupport.COMMON_EVENT_PACKAGES_SUSPENDED, "usual.event.PACKAGES_SUSPENDED") + @Expect(CommonEventSupport.COMMON_EVENT_PACKAGES_UNSUSPENDED, "usual.event.PACKAGES_UNSUSPENDED") + @Expect(CommonEventSupport.COMMON_EVENT_PACKAGE_FIRST_LAUNCH, "usual.event.PACKAGE_FIRST_LAUNCH") + @Expect(CommonEventSupport.COMMON_EVENT_PACKAGE_NEEDS_VERIFICATION, "usual.event.PACKAGE_NEEDS_VERIFICATION") + @Expect(CommonEventSupport.COMMON_EVENT_PACKAGE_VERIFIED, "usual.event.PACKAGE_VERIFIED") + @Expect(CommonEventSupport.COMMON_EVENT_POWER_SAVE_MODE_CHANGED, "usual.event.POWER_SAVE_MODE_CHANGED") + @Expect(CommonEventSupport.COMMON_EVENT_QUICK_FIX_APPLY_RESULT, "usual.event.QUICK_FIX_APPLY_RESULT") + @Expect(CommonEventSupport.COMMON_EVENT_QUICK_FIX_REVOKE_RESULT, "usual.event.QUICK_FIX_REVOKE_RESULT") + @Expect(CommonEventSupport.COMMON_EVENT_SHUTDOWN, "usual.event.SHUTDOWN") + @Expect(CommonEventSupport.COMMON_EVENT_SCREEN_OFF, "usual.event.SCREEN_OFF") + @Expect(CommonEventSupport.COMMON_EVENT_SCREEN_ON, "usual.event.SCREEN_ON") + @Expect(CommonEventSupport.COMMON_EVENT_SPLIT_SCREEN, "common.event.SPLIT_SCREEN") + @Expect(CommonEventSupport.COMMON_EVENT_SLOT_CHANGE, "usual.event.SLOT_CHANGE") + @Expect(CommonEventSupport.COMMON_EVENT_SPN_INFO_CHANGED, "usual.event.SPN_INFO_CHANGED") + @Expect(CommonEventSupport.COMMON_EVENT_SIGNAL_INFO_CHANGED, "usual.event.SIGNAL_INFO_CHANGED") + @Expect(CommonEventSupport.COMMON_EVENT_SIM_STATE_CHANGED, "usual.event.SIM_STATE_CHANGED") + @Expect(CommonEventSupport.COMMON_EVENT_SCREEN_LOCKED, "usual.event.SCREEN_LOCKED") } @TestCase @Tag[APILevel22, TestLevel0] func test_support_value4(): Unit { - @Expect(Support.COMMON_EVENT_SCREEN_UNLOCKED, "usual.event.SCREEN_UNLOCKED") - @Expect(Support.COMMON_EVENT_THERMAL_LEVEL_CHANGED, "usual.event.THERMAL_LEVEL_CHANGED") - @Expect(Support.COMMON_EVENT_TIME_TICK, "usual.event.TIME_TICK") - @Expect(Support.COMMON_EVENT_TIME_CHANGED, "usual.event.TIME_CHANGED") - @Expect(Support.COMMON_EVENT_TIMEZONE_CHANGED, "usual.event.TIMEZONE_CHANGED") - @Expect(Support.COMMON_EVENT_UID_REMOVED, "usual.event.UID_REMOVED") - @Expect(Support.COMMON_EVENT_USER_STARTED, "usual.event.USER_STARTED") - @Expect(Support.COMMON_EVENT_USER_BACKGROUND, "usual.event.USER_BACKGROUND") - @Expect(Support.COMMON_EVENT_USER_FOREGROUND, "usual.event.USER_FOREGROUND") - @Expect(Support.COMMON_EVENT_USER_SWITCHED, "usual.event.USER_SWITCHED") - @Expect(Support.COMMON_EVENT_USER_STARTING, "usual.event.USER_STARTING") - @Expect(Support.COMMON_EVENT_USER_UNLOCKED, "usual.event.USER_UNLOCKED") - @Expect(Support.COMMON_EVENT_USER_STOPPING, "usual.event.USER_STOPPING") - @Expect(Support.COMMON_EVENT_USER_STOPPED, "usual.event.USER_STOPPED") - @Expect(Support.COMMON_EVENT_USER_ADDED, "usual.event.USER_ADDED") - @Expect(Support.COMMON_EVENT_USER_REMOVED, "usual.event.USER_REMOVED") - @Expect(Support.COMMON_EVENT_USB_STATE, "usual.event.hardware.usb.action.USB_STATE") - @Expect(Support.COMMON_EVENT_USB_PORT_CHANGED, "usual.event.hardware.usb.action.USB_PORT_CHANGED") - @Expect(Support.COMMON_EVENT_USB_DEVICE_ATTACHED, "usual.event.hardware.usb.action.USB_DEVICE_ATTACHED") - @Expect(Support.COMMON_EVENT_USB_DEVICE_DETACHED, "usual.event.hardware.usb.action.USB_DEVICE_DETACHED") - @Expect(Support.COMMON_EVENT_USB_ACCESSORY_ATTACHED, "usual.event.hardware.usb.action.USB_ACCESSORY_ATTACHED") - @Expect(Support.COMMON_EVENT_USB_ACCESSORY_DETACHED, "usual.event.hardware.usb.action.USB_ACCESSORY_DETACHED") - @Expect(Support.COMMON_EVENT_USER_INFO_UPDATED, "usual.event.USER_INFO_UPDATED") - @Expect(Support.COMMON_EVENT_VOLUME_REMOVED, "usual.event.data.VOLUME_REMOVED") - @Expect(Support.COMMON_EVENT_VOLUME_UNMOUNTED, "usual.event.data.VOLUME_UNMOUNTED") - @Expect(Support.COMMON_EVENT_VOLUME_MOUNTED, "usual.event.data.VOLUME_MOUNTED") - @Expect(Support.COMMON_EVENT_VOLUME_BAD_REMOVAL, "usual.event.data.VOLUME_BAD_REMOVAL") - @Expect(Support.COMMON_EVENT_VOLUME_EJECT, "usual.event.data.VOLUME_EJECT") - @Expect(Support.COMMON_EVENT_VISIBLE_ACCOUNTS_UPDATED, "usual.event.data.VISIBLE_ACCOUNTS_UPDATED") - @Expect(Support.COMMON_EVENT_WIFI_POWER_STATE, "usual.event.wifi.POWER_STATE") - @Expect(Support.COMMON_EVENT_WIFI_SCAN_FINISHED, "usual.event.wifi.SCAN_FINISHED") - @Expect(Support.COMMON_EVENT_WIFI_RSSI_VALUE, "usual.event.wifi.RSSI_VALUE") - @Expect(Support.COMMON_EVENT_WIFI_CONN_STATE, "usual.event.wifi.CONN_STATE") - @Expect(Support.COMMON_EVENT_WIFI_HOTSPOT_STATE, "usual.event.wifi.HOTSPOT_STATE") - @Expect(Support.COMMON_EVENT_WIFI_AP_STA_JOIN, "usual.event.wifi.WIFI_HS_STA_JOIN") - @Expect(Support.COMMON_EVENT_WIFI_AP_STA_LEAVE, "usual.event.wifi.WIFI_HS_STA_LEAVE") - @Expect(Support.COMMON_EVENT_WIFI_MPLINK_STATE_CHANGE, "usual.event.wifi.mplink.STATE_CHANGE") - @Expect(Support.COMMON_EVENT_WIFI_P2P_CONN_STATE, "usual.event.wifi.p2p.CONN_STATE_CHANGE") - @Expect(Support.COMMON_EVENT_WIFI_P2P_STATE_CHANGED, "usual.event.wifi.p2p.STATE_CHANGE") - @Expect(Support.COMMON_EVENT_WIFI_P2P_PEERS_STATE_CHANGED, "usual.event.wifi.p2p.DEVICES_CHANGE") - @Expect(Support.COMMON_EVENT_WIFI_P2P_PEERS_DISCOVERY_STATE_CHANGED, "usual.event.wifi.p2p.PEER_DISCOVERY_STATE_CHANGE") - @Expect(Support.COMMON_EVENT_WIFI_P2P_CURRENT_DEVICE_STATE_CHANGED, "usual.event.wifi.p2p.CURRENT_DEVICE_CHANGE") - @Expect(Support.COMMON_EVENT_WIFI_P2P_GROUP_STATE_CHANGED, "usual.event.wifi.p2p.GROUP_STATE_CHANGED") + @Expect(CommonEventSupport.COMMON_EVENT_SCREEN_UNLOCKED, "usual.event.SCREEN_UNLOCKED") + @Expect(CommonEventSupport.COMMON_EVENT_THERMAL_LEVEL_CHANGED, "usual.event.THERMAL_LEVEL_CHANGED") + @Expect(CommonEventSupport.COMMON_EVENT_TIME_TICK, "usual.event.TIME_TICK") + @Expect(CommonEventSupport.COMMON_EVENT_TIME_CHANGED, "usual.event.TIME_CHANGED") + @Expect(CommonEventSupport.COMMON_EVENT_TIMEZONE_CHANGED, "usual.event.TIMEZONE_CHANGED") + @Expect(CommonEventSupport.COMMON_EVENT_UID_REMOVED, "usual.event.UID_REMOVED") + @Expect(CommonEventSupport.COMMON_EVENT_USER_STARTED, "usual.event.USER_STARTED") + @Expect(CommonEventSupport.COMMON_EVENT_USER_BACKGROUND, "usual.event.USER_BACKGROUND") + @Expect(CommonEventSupport.COMMON_EVENT_USER_FOREGROUND, "usual.event.USER_FOREGROUND") + @Expect(CommonEventSupport.COMMON_EVENT_USER_SWITCHED, "usual.event.USER_SWITCHED") + @Expect(CommonEventSupport.COMMON_EVENT_USER_STARTING, "usual.event.USER_STARTING") + @Expect(CommonEventSupport.COMMON_EVENT_USER_UNLOCKED, "usual.event.USER_UNLOCKED") + @Expect(CommonEventSupport.COMMON_EVENT_USER_STOPPING, "usual.event.USER_STOPPING") + @Expect(CommonEventSupport.COMMON_EVENT_USER_STOPPED, "usual.event.USER_STOPPED") + @Expect(CommonEventSupport.COMMON_EVENT_USER_ADDED, "usual.event.USER_ADDED") + @Expect(CommonEventSupport.COMMON_EVENT_USER_REMOVED, "usual.event.USER_REMOVED") + @Expect(CommonEventSupport.COMMON_EVENT_USB_STATE, "usual.event.hardware.usb.action.USB_STATE") + @Expect(CommonEventSupport.COMMON_EVENT_USB_PORT_CHANGED, "usual.event.hardware.usb.action.USB_PORT_CHANGED") + @Expect(CommonEventSupport.COMMON_EVENT_USB_DEVICE_ATTACHED, "usual.event.hardware.usb.action.USB_DEVICE_ATTACHED") + @Expect(CommonEventSupport.COMMON_EVENT_USB_DEVICE_DETACHED, "usual.event.hardware.usb.action.USB_DEVICE_DETACHED") + @Expect(CommonEventSupport.COMMON_EVENT_USB_ACCESSORY_ATTACHED, "usual.event.hardware.usb.action.USB_ACCESSORY_ATTACHED") + @Expect(CommonEventSupport.COMMON_EVENT_USB_ACCESSORY_DETACHED, "usual.event.hardware.usb.action.USB_ACCESSORY_DETACHED") + @Expect(CommonEventSupport.COMMON_EVENT_USER_INFO_UPDATED, "usual.event.USER_INFO_UPDATED") + @Expect(CommonEventSupport.COMMON_EVENT_VOLUME_REMOVED, "usual.event.data.VOLUME_REMOVED") + @Expect(CommonEventSupport.COMMON_EVENT_VOLUME_UNMOUNTED, "usual.event.data.VOLUME_UNMOUNTED") + @Expect(CommonEventSupport.COMMON_EVENT_VOLUME_MOUNTED, "usual.event.data.VOLUME_MOUNTED") + @Expect(CommonEventSupport.COMMON_EVENT_VOLUME_BAD_REMOVAL, "usual.event.data.VOLUME_BAD_REMOVAL") + @Expect(CommonEventSupport.COMMON_EVENT_VOLUME_EJECT, "usual.event.data.VOLUME_EJECT") + @Expect(CommonEventSupport.COMMON_EVENT_VISIBLE_ACCOUNTS_UPDATED, "usual.event.data.VISIBLE_ACCOUNTS_UPDATED") + @Expect(CommonEventSupport.COMMON_EVENT_WIFI_POWER_STATE, "usual.event.wifi.POWER_STATE") + @Expect(CommonEventSupport.COMMON_EVENT_WIFI_SCAN_FINISHED, "usual.event.wifi.SCAN_FINISHED") + @Expect(CommonEventSupport.COMMON_EVENT_WIFI_RSSI_VALUE, "usual.event.wifi.RSSI_VALUE") + @Expect(CommonEventSupport.COMMON_EVENT_WIFI_CONN_STATE, "usual.event.wifi.CONN_STATE") + @Expect(CommonEventSupport.COMMON_EVENT_WIFI_HOTSPOT_STATE, "usual.event.wifi.HOTSPOT_STATE") + @Expect(CommonEventSupport.COMMON_EVENT_WIFI_AP_STA_JOIN, "usual.event.wifi.WIFI_HS_STA_JOIN") + @Expect(CommonEventSupport.COMMON_EVENT_WIFI_AP_STA_LEAVE, "usual.event.wifi.WIFI_HS_STA_LEAVE") + @Expect(CommonEventSupport.COMMON_EVENT_WIFI_MPLINK_STATE_CHANGE, "usual.event.wifi.mplink.STATE_CHANGE") + @Expect(CommonEventSupport.COMMON_EVENT_WIFI_P2P_CONN_STATE, "usual.event.wifi.p2p.CONN_STATE_CHANGE") + @Expect(CommonEventSupport.COMMON_EVENT_WIFI_P2P_STATE_CHANGED, "usual.event.wifi.p2p.STATE_CHANGE") + @Expect(CommonEventSupport.COMMON_EVENT_WIFI_P2P_PEERS_STATE_CHANGED, "usual.event.wifi.p2p.DEVICES_CHANGE") + @Expect(CommonEventSupport.COMMON_EVENT_WIFI_P2P_PEERS_DISCOVERY_STATE_CHANGED, "usual.event.wifi.p2p.PEER_DISCOVERY_STATE_CHANGE") + @Expect(CommonEventSupport.COMMON_EVENT_WIFI_P2P_CURRENT_DEVICE_STATE_CHANGED, "usual.event.wifi.p2p.CURRENT_DEVICE_CHANGE") + @Expect(CommonEventSupport.COMMON_EVENT_WIFI_P2P_GROUP_STATE_CHANGED, "usual.event.wifi.p2p.GROUP_STATE_CHANGED") } @TestCase