Merge completed

This commit is contained in:
atreeof_wind
2025-11-17 16:37:10 +08:00
8 changed files with 270 additions and 417 deletions
+4 -11
View File
@@ -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<String, ValueType>
public var parameters: HashMap<String, CommonEventValueType>
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<String, ValueType>()
parameters = HashMap<String, CommonEventValueType>()
for (i in 0..size) {
let cp = unsafe { dataPtr.read(i) }
let parameter = Parameters(cp)
@@ -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<CommonEventData> } 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<CommonEventData>): 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()) }
File diff suppressed because it is too large Load Diff
@@ -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<String>
/**
* 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<String, ValueType>
public var parameters: HashMap<String, CommonEventValueType>
/**
* 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<String> } [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<String, CommonEventValueType> } [parameters] - The description of the parameters in a common event.
*/
@!APILevel[
since: "22",
@@ -111,7 +113,7 @@ public class CommonEventPublishData {
subscriberPermissions!: Array<String> = Array<String>(),
isOrdered!: Bool = false,
isSticky!: Bool = false,
parameters!: HashMap<String, ValueType> = HashMap<String, ValueType>()
parameters!: HashMap<String, CommonEventValueType> = HashMap<String, CommonEventValueType>()
) {
this.bundleName = bundleName
this.data = data
@@ -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<String> } 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"
+7 -10
View File
@@ -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<Float64>(c.value).read())
case c.valueType == STRING_TYPE => StringValue(CString(CPointer<UInt8>(c.value)).toString())
case c.valueType == BOOL_TYPE => BoolValue(CPointer<Bool>(c.value).read())
case c.valueType == FD_TYPE => Fd(CPointer<Int32>(c.value).read())
case c.valueType == FD_TYPE => FD(CPointer<Int32>(c.value).read())
case c.valueType == ARRSTRING_TYPE => ArrayString(c.toArrString())
case c.valueType == ARRAYI32_TYPE => ArrayInt32(c.toArr<Int32>())
case c.valueType == ARRAYI64_TYPE => ArrayInt64(c.toArr<Int64>())
case c.valueType == ARRAYBOOL_TYPE => ArrayBool(c.toArr<Bool>())
case c.valueType == ARRAYF64_TYPE => ArrayFloat64(c.toArr<Float64>())
case _ => ArrayFd(c.toArr<Int32>())
case _ => ArrayFD(c.toArr<Int32>())
}
}
}
@@ -129,10 +129,7 @@ protected struct CArrParameters {
}
}
/**
* @throws { BusinessException } 1500009 - Error obtaining system parameters.
*/
unsafe protected func createCArrParam(parameters: HashMap<String, ValueType>): CArrParameters {
unsafe protected func createCArrParam(parameters: HashMap<String, CommonEventValueType>): CArrParameters {
let cp = safeMalloc<CParameters>(count: parameters.size)
let ptr = CArrParameters(cp, parameters.size)
var count = 0
@@ -199,7 +196,7 @@ func throwIfEmpty<T>(arr: Array<T>): Unit {
}
}
func getValue(value: ValueType): (Int8, CPointer<Unit>, Int64) {
func getValue(value: CommonEventValueType): (Int8, CPointer<Unit>, Int64) {
unsafe {
match (value) {
case Int32Value(v) => return (INT_TYPE, createPtr<Int32>(v), 1)
@@ -208,7 +205,7 @@ func getValue(value: ValueType): (Int8, CPointer<Unit>, Int64) {
let ptr = LibC.mallocCString(v).getChars()
return (STRING_TYPE, CPointer<Unit>(ptr), 1)
case BoolValue(v) => return (BOOL_TYPE, createPtr<Bool>(v), 1)
case Fd(v) => return (FD_TYPE, createPtr<Int32>(v), 1)
case FD(v) => return (FD_TYPE, createPtr<Int32>(v), 1)
case ArrayString(v) =>
throwIfEmpty(v)
let ptr = createCpCString(v)
@@ -225,7 +222,7 @@ func getValue(value: ValueType): (Int8, CPointer<Unit>, Int64) {
case ArrayFloat64(v) =>
throwIfEmpty(v)
return (ARRAYF64_TYPE, createArrPtr<Float64>(v), v.size)
case ArrayFd(v) =>
case ArrayFD(v) =>
throwIfEmpty(v)
return (ARRAYFD_TYPE, createArrPtr<Int32>(v), v.size)
case _ => throw BusinessException(1500009, "Error obtaining system parameters.")
+23 -13
View File
@@ -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<String>)
|
/**
* Int32 array type value
*/
| @!APILevel[
@!APILevel[
since: "22",
syscap: "SystemCapability.Notification.CommonEvent"
]
ArrayInt32(Array<Int32>)
|
/**
* Int64 array type value
*/
| @!APILevel[
@!APILevel[
since: "22",
syscap: "SystemCapability.Notification.CommonEvent"
]
ArrayInt64(Array<Int64>)
|
/**
* Bool array type value
*/
| @!APILevel[
@!APILevel[
since: "22",
syscap: "SystemCapability.Notification.CommonEvent"
]
ArrayBool(Array<Bool>)
|
/**
* Float64 array type value
*/
| @!APILevel[
@!APILevel[
since: "22",
syscap: "SystemCapability.Notification.CommonEvent"
]
ArrayFloat64(Array<Float64>)
|
/**
* FD array type value
*/
| @!APILevel[
@!APILevel[
since: "22",
syscap: "SystemCapability.Notification.CommonEvent"
]
ArrayFd(Array<Int32>)
ArrayFD(Array<Int32>)
| ...
}
@@ -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