Package: android.hardware.contexthub@1.0

types

Properties

Result

enum Result: uint32_t
Details
Members
OK
UNKNOWN_FAILURE
BAD_PARAMS
NOT_INIT
TRANSACTION_FAILED
TRANSACTION_PENDING

NanoAppFlags

enum NanoAppFlags: uint32_t
Details
Members
SIGNED = 1 << 0
ENCRYPTED = 1 << 1

SensorType

enum SensorType: uint32_t
Details
Members
RESERVED
ACCELEROMETER
GYROSCOPE
MAGNETOMETER
BAROMETER
PROXIMITY_SENSOR
AMBIENT_LIGHT_SENSOR
STATIONARY_DETECT
INSTANT_MOTION_DETECT
GPS = 0x100
WIFI = 0x200
AUDIO = 0x300
CAMERA = 0x400
BLE = 0x500
WWAN = 0x600
PRIVATE_SENSOR_BASE = 0x10000

HostEndPoint

enum HostEndPoint: uint16_t
Details
Members
BROADCAST = 0xFFFF
UNSPECIFIED = 0xFFFE

HubMemoryType

enum HubMemoryType: uint32_t
Details
Members
MAIN = 0
SECONDARY = 1
TCM = 2

HubMemoryFlag

enum HubMemoryFlag: uint32_t
Details
Members
READ = 1 << 0
WRITE = 1 << 1
EXEC = 1 << 2

AsyncEventType

enum AsyncEventType: uint32_t
Details
Members
RESTARTED = 1

TransactionResult

enum TransactionResult: int32_t
Details
Members
SUCCESS
FAILURE

NanoAppBinary

struct NanoAppBinary {uint64_t appId; uint32_t appVersion; bitfield flags; uint8_t targetChreApiMajorVersion; uint8_t targetChreApiMinorVersion; vec customBinary}
Details
Members
appId
appVersion
flags
targetChreApiMajorVersion
targetChreApiMinorVersion
customBinary

PhysicalSensor

struct PhysicalSensor {SensorType sensorType; string type; string name; string vendor; uint32_t version; uint32_t fifoReservedCount; uint32_t fifoMaxCount; uint64_t minDelayMs; uint64_t maxDelayMs; float peakPowerMw}
Details
Members
sensorType
type
name
vendor
version
fifoReservedCount
fifoMaxCount
minDelayMs
maxDelayMs
peakPowerMw

ContextHub

struct ContextHub {string name; string vendor; string toolchain; uint32_t platformVersion; uint32_t toolchainVersion; uint32_t hubId; float peakMips; float stoppedPowerDrawMw; float sleepPowerDrawMw; float peakPowerDrawMw; vec connectedSensors; uint32_t maxSupportedMsgLen; uint64_t chrePlatformId; uint8_t chreApiMajorVersion; uint8_t chreApiMinorVersion; uint16_t chrePatchVersion}
Details
Members
name
vendor
toolchain
platformVersion
toolchainVersion
hubId
peakMips
stoppedPowerDrawMw
sleepPowerDrawMw
peakPowerDrawMw
connectedSensors
maxSupportedMsgLen
chrePlatformId
chreApiMajorVersion
chreApiMinorVersion
chrePatchVersion

ContextHubMsg

struct ContextHubMsg {uint64_t appName; uint16_t hostEndPoint; uint32_t msgType; vec msg}
Details
Members
appName
hostEndPoint
msgType
msg

MemRange

struct MemRange {uint32_t totalBytes; uint32_t freeBytes; HubMemoryType type; bitfield flags}
Details
Members
totalBytes
freeBytes
type
flags

HubAppInfo

struct HubAppInfo {uint64_t appId; uint32_t version; vec memUsage; bool enabled}
Details
Members
appId
version
memUsage
enabled