Package: android.hardware.usb.gadget@1.0

types

Properties

GadgetFunction

enum GadgetFunction: uint64_t
Details
Members
NONE = 0
Removes all the functions and pulls down the gadget.
ADB = 1 << 0
Android Debug Bridge function.
ACCESSORY = 1 << 1
Android open accessory protocol function.
MTP = 1 << 2
Media Transfer protocol function.
MIDI = 1 << 3
Peripheral mode USB Midi function.
PTP = 1 << 4
Picture transfer protocol function.
RNDIS = 1 << 5
Tethering function.
AUDIO_SOURCE = 1 << 6
AOAv2.0 - Audio Source function.

Status

enum Status: uint32_t
Details
Members
SUCCESS = 0
ERROR = 1
Error value when the HAL operation fails for reasons not listed here.
FUNCTIONS_APPLIED = 2
USB configuration applied successfully.
FUNCTIONS_NOT_APPLIED = 3
USB confgiuration failed to apply.
CONFIGURATION_NOT_SUPPORTED = 4
USB configuration not supported.