diff options
author | Zhuoyao Zhang <zhuoyao@google.com> | 2017-02-13 18:03:06 -0800 |
---|---|---|
committer | Zhuoyao Zhang <zhuoyao@google.com> | 2017-02-13 18:03:06 -0800 |
commit | 3bef939f948ba93bebd92ee59f4a4f1a099b0e42 (patch) | |
tree | 6876b0a813110f20d6a456c05efa2072b0e9b073 /contexthub/1.0 | |
parent | e445f52e23e6fd67bea16c4877517439ffce77f1 (diff) | |
download | platform_hardware_interfaces-3bef939f948ba93bebd92ee59f4a4f1a099b0e42.tar.gz platform_hardware_interfaces-3bef939f948ba93bebd92ee59f4a4f1a099b0e42.tar.bz2 platform_hardware_interfaces-3bef939f948ba93bebd92ee59f4a4f1a099b0e42.zip |
Update .vts files on master based on the latest .hal file and hidl-gen
Test: mma
Change-Id: I9558f300505db83e26f7c241c5cf729cd005a07b
Diffstat (limited to 'contexthub/1.0')
-rw-r--r-- | contexthub/1.0/vts/Contexthub.vts | 485 | ||||
-rw-r--r-- | contexthub/1.0/vts/ContexthubCallback.vts | 485 |
2 files changed, 0 insertions, 970 deletions
diff --git a/contexthub/1.0/vts/Contexthub.vts b/contexthub/1.0/vts/Contexthub.vts index b06efe6dc4..a5cdc81f6e 100644 --- a/contexthub/1.0/vts/Contexthub.vts +++ b/contexthub/1.0/vts/Contexthub.vts @@ -9,491 +9,6 @@ import: "android.hardware.contexthub@1.0::types" import: "android.hidl.base@1.0::types" interface: { - attribute: { - name: "::android::hardware::contexthub::V1_0::Result" - type: TYPE_ENUM - enum_value: { - scalar_type: "uint32_t" - - enumerator: "OK" - scalar_value: { - uint32_t: 0 - } - enumerator: "UNKNOWN_FAILURE" - scalar_value: { - uint32_t: 1 - } - enumerator: "BAD_PARAMS" - scalar_value: { - uint32_t: 2 - } - enumerator: "NOT_INIT" - scalar_value: { - uint32_t: 3 - } - enumerator: "TRANSACTION_FAILED" - scalar_value: { - uint32_t: 4 - } - enumerator: "TRANSACTION_PENDING" - scalar_value: { - uint32_t: 5 - } - } - } - - attribute: { - name: "::android::hardware::contexthub::V1_0::NanoAppFlags" - type: TYPE_ENUM - enum_value: { - scalar_type: "uint32_t" - - enumerator: "SIGNED" - scalar_value: { - uint32_t: 1 - } - enumerator: "ENCRYPTED" - scalar_value: { - uint32_t: 2 - } - } - } - - attribute: { - name: "::android::hardware::contexthub::V1_0::NanoAppBinary" - type: TYPE_STRUCT - struct_value: { - name: "appId" - type: TYPE_SCALAR - scalar_type: "uint64_t" - } - struct_value: { - name: "appVersion" - type: TYPE_SCALAR - scalar_type: "uint32_t" - } - struct_value: { - name: "flags" - type: TYPE_MASK - scalar_type: "uint32_t" - predefined_type: "::android::hardware::contexthub::V1_0::NanoAppFlags" - } - struct_value: { - name: "targetChreApiMajorVersion" - type: TYPE_SCALAR - scalar_type: "uint8_t" - } - struct_value: { - name: "targetChreApiMinorVersion" - type: TYPE_SCALAR - scalar_type: "uint8_t" - } - struct_value: { - name: "customBinary" - type: TYPE_VECTOR - vector_value: { - type: TYPE_SCALAR - scalar_type: "uint8_t" - } - } - } - - attribute: { - name: "::android::hardware::contexthub::V1_0::SensorType" - type: TYPE_ENUM - enum_value: { - scalar_type: "uint32_t" - - enumerator: "RESERVED" - scalar_value: { - uint32_t: 0 - } - enumerator: "ACCELEROMETER" - scalar_value: { - uint32_t: 1 - } - enumerator: "GYROSCOPE" - scalar_value: { - uint32_t: 2 - } - enumerator: "MAGNETOMETER" - scalar_value: { - uint32_t: 3 - } - enumerator: "BAROMETER" - scalar_value: { - uint32_t: 4 - } - enumerator: "PROXIMITY_SENSOR" - scalar_value: { - uint32_t: 5 - } - enumerator: "AMBIENT_LIGHT_SENSOR" - scalar_value: { - uint32_t: 6 - } - enumerator: "STATIONARY_DETECT" - scalar_value: { - uint32_t: 7 - } - enumerator: "INSTANT_MOTION_DETECT" - scalar_value: { - uint32_t: 8 - } - enumerator: "GPS" - scalar_value: { - uint32_t: 256 - } - enumerator: "WIFI" - scalar_value: { - uint32_t: 512 - } - enumerator: "AUDIO" - scalar_value: { - uint32_t: 768 - } - enumerator: "CAMERA" - scalar_value: { - uint32_t: 1024 - } - enumerator: "BLE" - scalar_value: { - uint32_t: 1280 - } - enumerator: "WWAN" - scalar_value: { - uint32_t: 1536 - } - enumerator: "PRIVATE_SENSOR_BASE" - scalar_value: { - uint32_t: 65536 - } - } - } - - attribute: { - name: "::android::hardware::contexthub::V1_0::PhysicalSensor" - type: TYPE_STRUCT - struct_value: { - name: "sensorType" - type: TYPE_ENUM - predefined_type: "::android::hardware::contexthub::V1_0::SensorType" - } - struct_value: { - name: "type" - type: TYPE_STRING - } - struct_value: { - name: "name" - type: TYPE_STRING - } - struct_value: { - name: "vendor" - type: TYPE_STRING - } - struct_value: { - name: "version" - type: TYPE_SCALAR - scalar_type: "uint32_t" - } - struct_value: { - name: "fifoReservedCount" - type: TYPE_SCALAR - scalar_type: "uint32_t" - } - struct_value: { - name: "fifoMaxCount" - type: TYPE_SCALAR - scalar_type: "uint32_t" - } - struct_value: { - name: "minDelayMs" - type: TYPE_SCALAR - scalar_type: "uint64_t" - } - struct_value: { - name: "maxDelayMs" - type: TYPE_SCALAR - scalar_type: "uint64_t" - } - struct_value: { - name: "peakPowerMw" - type: TYPE_SCALAR - scalar_type: "float_t" - } - } - - attribute: { - name: "::android::hardware::contexthub::V1_0::ContextHub" - type: TYPE_STRUCT - struct_value: { - name: "name" - type: TYPE_STRING - } - struct_value: { - name: "vendor" - type: TYPE_STRING - } - struct_value: { - name: "toolchain" - type: TYPE_STRING - } - struct_value: { - name: "platformVersion" - type: TYPE_SCALAR - scalar_type: "uint32_t" - } - struct_value: { - name: "toolchainVersion" - type: TYPE_SCALAR - scalar_type: "uint32_t" - } - struct_value: { - name: "hubId" - type: TYPE_SCALAR - scalar_type: "uint32_t" - } - struct_value: { - name: "peakMips" - type: TYPE_SCALAR - scalar_type: "float_t" - } - struct_value: { - name: "stoppedPowerDrawMw" - type: TYPE_SCALAR - scalar_type: "float_t" - } - struct_value: { - name: "sleepPowerDrawMw" - type: TYPE_SCALAR - scalar_type: "float_t" - } - struct_value: { - name: "peakPowerDrawMw" - type: TYPE_SCALAR - scalar_type: "float_t" - } - struct_value: { - name: "connectedSensors" - type: TYPE_VECTOR - vector_value: { - type: TYPE_STRUCT - predefined_type: "::android::hardware::contexthub::V1_0::PhysicalSensor" - } - } - struct_value: { - name: "maxSupportedMsgLen" - type: TYPE_SCALAR - scalar_type: "uint32_t" - } - struct_value: { - name: "chrePlatformId" - type: TYPE_SCALAR - scalar_type: "uint64_t" - } - struct_value: { - name: "chreApiMajorVersion" - type: TYPE_SCALAR - scalar_type: "uint8_t" - } - struct_value: { - name: "chreApiMinorVersion" - type: TYPE_SCALAR - scalar_type: "uint8_t" - } - struct_value: { - name: "chrePatchVersion" - type: TYPE_SCALAR - scalar_type: "uint16_t" - } - } - - attribute: { - name: "::android::hardware::contexthub::V1_0::HostEndPoint" - type: TYPE_ENUM - enum_value: { - scalar_type: "uint16_t" - - enumerator: "BROADCAST" - scalar_value: { - uint16_t: 65535 - } - enumerator: "UNSPECIFIED" - scalar_value: { - uint16_t: 65534 - } - } - } - - attribute: { - name: "::android::hardware::contexthub::V1_0::ContextHubMsg" - type: TYPE_STRUCT - struct_value: { - name: "appName" - type: TYPE_SCALAR - scalar_type: "uint64_t" - } - struct_value: { - name: "hostEndPoint" - type: TYPE_SCALAR - scalar_type: "uint16_t" - } - struct_value: { - name: "msgType" - type: TYPE_SCALAR - scalar_type: "uint32_t" - } - struct_value: { - name: "msg" - type: TYPE_VECTOR - vector_value: { - type: TYPE_SCALAR - scalar_type: "uint8_t" - } - } - } - - attribute: { - name: "::android::hardware::contexthub::V1_0::HubMemoryType" - type: TYPE_ENUM - enum_value: { - scalar_type: "uint32_t" - - enumerator: "MAIN" - scalar_value: { - uint32_t: 0 - } - enumerator: "SECONDARY" - scalar_value: { - uint32_t: 1 - } - enumerator: "TCM" - scalar_value: { - uint32_t: 2 - } - } - } - - attribute: { - name: "::android::hardware::contexthub::V1_0::HubMemoryFlag" - type: TYPE_ENUM - enum_value: { - scalar_type: "uint32_t" - - enumerator: "READ" - scalar_value: { - uint32_t: 1 - } - enumerator: "WRITE" - scalar_value: { - uint32_t: 2 - } - enumerator: "EXEC" - scalar_value: { - uint32_t: 4 - } - } - } - - attribute: { - name: "::android::hardware::contexthub::V1_0::MemRange" - type: TYPE_STRUCT - struct_value: { - name: "totalBytes" - type: TYPE_SCALAR - scalar_type: "uint32_t" - } - struct_value: { - name: "freeBytes" - type: TYPE_SCALAR - scalar_type: "uint32_t" - } - struct_value: { - name: "type" - type: TYPE_ENUM - predefined_type: "::android::hardware::contexthub::V1_0::HubMemoryType" - } - struct_value: { - name: "flags" - type: TYPE_MASK - scalar_type: "uint32_t" - predefined_type: "::android::hardware::contexthub::V1_0::HubMemoryFlag" - } - } - - attribute: { - name: "::android::hardware::contexthub::V1_0::AsyncEventType" - type: TYPE_ENUM - enum_value: { - scalar_type: "uint32_t" - - enumerator: "RESTARTED" - scalar_value: { - uint32_t: 1 - } - } - } - - attribute: { - name: "::android::hardware::contexthub::V1_0::TransactionResult" - type: TYPE_ENUM - enum_value: { - scalar_type: "int32_t" - - enumerator: "SUCCESS" - scalar_value: { - int32_t: 0 - } - enumerator: "FAILURE" - scalar_value: { - int32_t: 1 - } - } - } - - attribute: { - name: "::android::hardware::contexthub::V1_0::HubAppInfo" - type: TYPE_STRUCT - struct_value: { - name: "appId" - type: TYPE_SCALAR - scalar_type: "uint64_t" - } - struct_value: { - name: "version" - type: TYPE_SCALAR - scalar_type: "uint32_t" - } - struct_value: { - name: "memUsage" - type: TYPE_VECTOR - vector_value: { - type: TYPE_STRUCT - predefined_type: "::android::hardware::contexthub::V1_0::MemRange" - } - } - struct_value: { - name: "enabled" - type: TYPE_SCALAR - scalar_type: "bool_t" - } - } - - attribute: { - name: "::android::hidl::base::V1_0::DebugInfo" - type: TYPE_STRUCT - struct_value: { - name: "pid" - type: TYPE_SCALAR - scalar_type: "int32_t" - } - struct_value: { - name: "ptr" - type: TYPE_SCALAR - scalar_type: "uint64_t" - } - } - api: { name: "getHubs" return_type_hidl: { diff --git a/contexthub/1.0/vts/ContexthubCallback.vts b/contexthub/1.0/vts/ContexthubCallback.vts index 7897a83991..59ff2febda 100644 --- a/contexthub/1.0/vts/ContexthubCallback.vts +++ b/contexthub/1.0/vts/ContexthubCallback.vts @@ -8,491 +8,6 @@ import: "android.hardware.contexthub@1.0::types" import: "android.hidl.base@1.0::types" interface: { - attribute: { - name: "::android::hardware::contexthub::V1_0::Result" - type: TYPE_ENUM - enum_value: { - scalar_type: "uint32_t" - - enumerator: "OK" - scalar_value: { - uint32_t: 0 - } - enumerator: "UNKNOWN_FAILURE" - scalar_value: { - uint32_t: 1 - } - enumerator: "BAD_PARAMS" - scalar_value: { - uint32_t: 2 - } - enumerator: "NOT_INIT" - scalar_value: { - uint32_t: 3 - } - enumerator: "TRANSACTION_FAILED" - scalar_value: { - uint32_t: 4 - } - enumerator: "TRANSACTION_PENDING" - scalar_value: { - uint32_t: 5 - } - } - } - - attribute: { - name: "::android::hardware::contexthub::V1_0::NanoAppFlags" - type: TYPE_ENUM - enum_value: { - scalar_type: "uint32_t" - - enumerator: "SIGNED" - scalar_value: { - uint32_t: 1 - } - enumerator: "ENCRYPTED" - scalar_value: { - uint32_t: 2 - } - } - } - - attribute: { - name: "::android::hardware::contexthub::V1_0::NanoAppBinary" - type: TYPE_STRUCT - struct_value: { - name: "appId" - type: TYPE_SCALAR - scalar_type: "uint64_t" - } - struct_value: { - name: "appVersion" - type: TYPE_SCALAR - scalar_type: "uint32_t" - } - struct_value: { - name: "flags" - type: TYPE_MASK - scalar_type: "uint32_t" - predefined_type: "::android::hardware::contexthub::V1_0::NanoAppFlags" - } - struct_value: { - name: "targetChreApiMajorVersion" - type: TYPE_SCALAR - scalar_type: "uint8_t" - } - struct_value: { - name: "targetChreApiMinorVersion" - type: TYPE_SCALAR - scalar_type: "uint8_t" - } - struct_value: { - name: "customBinary" - type: TYPE_VECTOR - vector_value: { - type: TYPE_SCALAR - scalar_type: "uint8_t" - } - } - } - - attribute: { - name: "::android::hardware::contexthub::V1_0::SensorType" - type: TYPE_ENUM - enum_value: { - scalar_type: "uint32_t" - - enumerator: "RESERVED" - scalar_value: { - uint32_t: 0 - } - enumerator: "ACCELEROMETER" - scalar_value: { - uint32_t: 1 - } - enumerator: "GYROSCOPE" - scalar_value: { - uint32_t: 2 - } - enumerator: "MAGNETOMETER" - scalar_value: { - uint32_t: 3 - } - enumerator: "BAROMETER" - scalar_value: { - uint32_t: 4 - } - enumerator: "PROXIMITY_SENSOR" - scalar_value: { - uint32_t: 5 - } - enumerator: "AMBIENT_LIGHT_SENSOR" - scalar_value: { - uint32_t: 6 - } - enumerator: "STATIONARY_DETECT" - scalar_value: { - uint32_t: 7 - } - enumerator: "INSTANT_MOTION_DETECT" - scalar_value: { - uint32_t: 8 - } - enumerator: "GPS" - scalar_value: { - uint32_t: 256 - } - enumerator: "WIFI" - scalar_value: { - uint32_t: 512 - } - enumerator: "AUDIO" - scalar_value: { - uint32_t: 768 - } - enumerator: "CAMERA" - scalar_value: { - uint32_t: 1024 - } - enumerator: "BLE" - scalar_value: { - uint32_t: 1280 - } - enumerator: "WWAN" - scalar_value: { - uint32_t: 1536 - } - enumerator: "PRIVATE_SENSOR_BASE" - scalar_value: { - uint32_t: 65536 - } - } - } - - attribute: { - name: "::android::hardware::contexthub::V1_0::PhysicalSensor" - type: TYPE_STRUCT - struct_value: { - name: "sensorType" - type: TYPE_ENUM - predefined_type: "::android::hardware::contexthub::V1_0::SensorType" - } - struct_value: { - name: "type" - type: TYPE_STRING - } - struct_value: { - name: "name" - type: TYPE_STRING - } - struct_value: { - name: "vendor" - type: TYPE_STRING - } - struct_value: { - name: "version" - type: TYPE_SCALAR - scalar_type: "uint32_t" - } - struct_value: { - name: "fifoReservedCount" - type: TYPE_SCALAR - scalar_type: "uint32_t" - } - struct_value: { - name: "fifoMaxCount" - type: TYPE_SCALAR - scalar_type: "uint32_t" - } - struct_value: { - name: "minDelayMs" - type: TYPE_SCALAR - scalar_type: "uint64_t" - } - struct_value: { - name: "maxDelayMs" - type: TYPE_SCALAR - scalar_type: "uint64_t" - } - struct_value: { - name: "peakPowerMw" - type: TYPE_SCALAR - scalar_type: "float_t" - } - } - - attribute: { - name: "::android::hardware::contexthub::V1_0::ContextHub" - type: TYPE_STRUCT - struct_value: { - name: "name" - type: TYPE_STRING - } - struct_value: { - name: "vendor" - type: TYPE_STRING - } - struct_value: { - name: "toolchain" - type: TYPE_STRING - } - struct_value: { - name: "platformVersion" - type: TYPE_SCALAR - scalar_type: "uint32_t" - } - struct_value: { - name: "toolchainVersion" - type: TYPE_SCALAR - scalar_type: "uint32_t" - } - struct_value: { - name: "hubId" - type: TYPE_SCALAR - scalar_type: "uint32_t" - } - struct_value: { - name: "peakMips" - type: TYPE_SCALAR - scalar_type: "float_t" - } - struct_value: { - name: "stoppedPowerDrawMw" - type: TYPE_SCALAR - scalar_type: "float_t" - } - struct_value: { - name: "sleepPowerDrawMw" - type: TYPE_SCALAR - scalar_type: "float_t" - } - struct_value: { - name: "peakPowerDrawMw" - type: TYPE_SCALAR - scalar_type: "float_t" - } - struct_value: { - name: "connectedSensors" - type: TYPE_VECTOR - vector_value: { - type: TYPE_STRUCT - predefined_type: "::android::hardware::contexthub::V1_0::PhysicalSensor" - } - } - struct_value: { - name: "maxSupportedMsgLen" - type: TYPE_SCALAR - scalar_type: "uint32_t" - } - struct_value: { - name: "chrePlatformId" - type: TYPE_SCALAR - scalar_type: "uint64_t" - } - struct_value: { - name: "chreApiMajorVersion" - type: TYPE_SCALAR - scalar_type: "uint8_t" - } - struct_value: { - name: "chreApiMinorVersion" - type: TYPE_SCALAR - scalar_type: "uint8_t" - } - struct_value: { - name: "chrePatchVersion" - type: TYPE_SCALAR - scalar_type: "uint16_t" - } - } - - attribute: { - name: "::android::hardware::contexthub::V1_0::HostEndPoint" - type: TYPE_ENUM - enum_value: { - scalar_type: "uint16_t" - - enumerator: "BROADCAST" - scalar_value: { - uint16_t: 65535 - } - enumerator: "UNSPECIFIED" - scalar_value: { - uint16_t: 65534 - } - } - } - - attribute: { - name: "::android::hardware::contexthub::V1_0::ContextHubMsg" - type: TYPE_STRUCT - struct_value: { - name: "appName" - type: TYPE_SCALAR - scalar_type: "uint64_t" - } - struct_value: { - name: "hostEndPoint" - type: TYPE_SCALAR - scalar_type: "uint16_t" - } - struct_value: { - name: "msgType" - type: TYPE_SCALAR - scalar_type: "uint32_t" - } - struct_value: { - name: "msg" - type: TYPE_VECTOR - vector_value: { - type: TYPE_SCALAR - scalar_type: "uint8_t" - } - } - } - - attribute: { - name: "::android::hardware::contexthub::V1_0::HubMemoryType" - type: TYPE_ENUM - enum_value: { - scalar_type: "uint32_t" - - enumerator: "MAIN" - scalar_value: { - uint32_t: 0 - } - enumerator: "SECONDARY" - scalar_value: { - uint32_t: 1 - } - enumerator: "TCM" - scalar_value: { - uint32_t: 2 - } - } - } - - attribute: { - name: "::android::hardware::contexthub::V1_0::HubMemoryFlag" - type: TYPE_ENUM - enum_value: { - scalar_type: "uint32_t" - - enumerator: "READ" - scalar_value: { - uint32_t: 1 - } - enumerator: "WRITE" - scalar_value: { - uint32_t: 2 - } - enumerator: "EXEC" - scalar_value: { - uint32_t: 4 - } - } - } - - attribute: { - name: "::android::hardware::contexthub::V1_0::MemRange" - type: TYPE_STRUCT - struct_value: { - name: "totalBytes" - type: TYPE_SCALAR - scalar_type: "uint32_t" - } - struct_value: { - name: "freeBytes" - type: TYPE_SCALAR - scalar_type: "uint32_t" - } - struct_value: { - name: "type" - type: TYPE_ENUM - predefined_type: "::android::hardware::contexthub::V1_0::HubMemoryType" - } - struct_value: { - name: "flags" - type: TYPE_MASK - scalar_type: "uint32_t" - predefined_type: "::android::hardware::contexthub::V1_0::HubMemoryFlag" - } - } - - attribute: { - name: "::android::hardware::contexthub::V1_0::AsyncEventType" - type: TYPE_ENUM - enum_value: { - scalar_type: "uint32_t" - - enumerator: "RESTARTED" - scalar_value: { - uint32_t: 1 - } - } - } - - attribute: { - name: "::android::hardware::contexthub::V1_0::TransactionResult" - type: TYPE_ENUM - enum_value: { - scalar_type: "int32_t" - - enumerator: "SUCCESS" - scalar_value: { - int32_t: 0 - } - enumerator: "FAILURE" - scalar_value: { - int32_t: 1 - } - } - } - - attribute: { - name: "::android::hardware::contexthub::V1_0::HubAppInfo" - type: TYPE_STRUCT - struct_value: { - name: "appId" - type: TYPE_SCALAR - scalar_type: "uint64_t" - } - struct_value: { - name: "version" - type: TYPE_SCALAR - scalar_type: "uint32_t" - } - struct_value: { - name: "memUsage" - type: TYPE_VECTOR - vector_value: { - type: TYPE_STRUCT - predefined_type: "::android::hardware::contexthub::V1_0::MemRange" - } - } - struct_value: { - name: "enabled" - type: TYPE_SCALAR - scalar_type: "bool_t" - } - } - - attribute: { - name: "::android::hidl::base::V1_0::DebugInfo" - type: TYPE_STRUCT - struct_value: { - name: "pid" - type: TYPE_SCALAR - scalar_type: "int32_t" - } - struct_value: { - name: "ptr" - type: TYPE_SCALAR - scalar_type: "uint64_t" - } - } - api: { name: "handleClientMsg" arg: { |