自己转的比较全面的USB声明文件:
unit Androidapi.JNI.USB; interface uses
AndroidAPI.JNIBridge,
Androidapi.JNI.JavaTypes,
Androidapi.JNI.os,
androidapi.JNI.App; type JUsbInterface = interface;
JUsbEndPoint = interface;
JUsbManager = interface;
JUsbRequest = interface; JUsbInterfaceClass = interface(JObjectClass)
['{C8CD6F55-CD21-417D-8234-C715E861D81F}']
function _GetCREATOR : JParcelable_Creator; cdecl; // A: $
function describeContents : Integer; cdecl; // ()I A: $
function getEndpoint(&index : Integer) : JUsbEndpoint; cdecl; // (I)Landroid/hardware/usb/UsbEndpoint; A: $
function getEndpointCount : Integer; cdecl; // ()I A: $
function getId : Integer; cdecl; // ()I A: $
function getInterfaceClass : Integer; cdecl; // ()I A: $
function getInterfaceProtocol : Integer; cdecl; // ()I A: $
function getInterfaceSubclass : Integer; cdecl; // ()I A: $
function toString : JString; cdecl; // ()Ljava/lang/String; A: $
procedure writeToParcel(parcel : JParcel; flags : Integer) ; cdecl; // (Landroid/os/Parcel;I)V A: $
property CREATOR : JParcelable_Creator read _GetCREATOR; // Landroid/os/Parcelable$Creator; A: $
end; [JavaSignature('android/hardware/usb/UsbInterface')]
JUsbInterface = interface(JObject)
['{BD59133B-06ED-424A-9C3E-A3F7020DB784}']
function describeContents : Integer; cdecl; // ()I A: $
function getEndpoint(&index : Integer) : JUsbEndpoint; cdecl; // (I)Landroid/hardware/usb/UsbEndpoint; A: $
function getEndpointCount : Integer; cdecl; // ()I A: $
function getId : Integer; cdecl; // ()I A: $
function getInterfaceClass : Integer; cdecl; // ()I A: $
function getInterfaceProtocol : Integer; cdecl; // ()I A: $
function getInterfaceSubclass : Integer; cdecl; // ()I A: $
function toString : JString; cdecl; // ()Ljava/lang/String; A: $
procedure writeToParcel(parcel : JParcel; flags : Integer) ; cdecl; // (Landroid/os/Parcel;I)V A: $
end; TJUsbInterface = class(TJavaGenericImport<JUsbInterfaceClass, JUsbInterface>)
end; JUsbAccessory = interface; JUsbAccessoryClass = interface(JObjectClass)
['{98C18E63-827C-44F3-9CF6-9C82D7F1BBFE}']
function _GetCREATOR : JParcelable_Creator; cdecl; // A: $
function describeContents : Integer; cdecl; // ()I A: $
function equals(obj : JObject) : boolean; cdecl; // (Ljava/lang/Object;)Z A: $
function getDescription : JString; cdecl; // ()Ljava/lang/String; A: $
function getManufacturer : JString; cdecl; // ()Ljava/lang/String; A: $
function getModel : JString; cdecl; // ()Ljava/lang/String; A: $
function getSerial : JString; cdecl; // ()Ljava/lang/String; A: $
function getUri : JString; cdecl; // ()Ljava/lang/String; A: $
function getVersion : JString; cdecl; // ()Ljava/lang/String; A: $
function hashCode : Integer; cdecl; // ()I A: $
function toString : JString; cdecl; // ()Ljava/lang/String; A: $
procedure writeToParcel(parcel : JParcel; flags : Integer) ; cdecl; // (Landroid/os/Parcel;I)V A: $
property CREATOR : JParcelable_Creator read _GetCREATOR; // Landroid/os/Parcelable$Creator; A: $
end; [JavaSignature('android/hardware/usb/UsbAccessory')]
JUsbAccessory = interface(JObject)
['{CA84BEB5-FADB-42DD-9120-4FCEA58EB211}']
function describeContents : Integer; cdecl; // ()I A: $
function equals(obj : JObject) : boolean; cdecl; // (Ljava/lang/Object;)Z A: $
function getDescription : JString; cdecl; // ()Ljava/lang/String; A: $
function getManufacturer : JString; cdecl; // ()Ljava/lang/String; A: $
function getModel : JString; cdecl; // ()Ljava/lang/String; A: $
function getSerial : JString; cdecl; // ()Ljava/lang/String; A: $
function getUri : JString; cdecl; // ()Ljava/lang/String; A: $
function getVersion : JString; cdecl; // ()Ljava/lang/String; A: $
function hashCode : Integer; cdecl; // ()I A: $
function toString : JString; cdecl; // ()Ljava/lang/String; A: $
procedure writeToParcel(parcel : JParcel; flags : Integer) ; cdecl; // (Landroid/os/Parcel;I)V A: $
end; TJUsbAccessory = class(TJavaGenericImport<JUsbAccessoryClass, JUsbAccessory>)
end;
JUsbDevice = interface; JUsbDeviceClass = interface(JObjectClass)
['{322E87AC-CF09-4502-8FB0-CC1ADC520615}']
function _GetCREATOR : JParcelable_Creator; cdecl; // A: $
function describeContents : Integer; cdecl; // ()I A: $
function equals(o : JObject) : boolean; cdecl; // (Ljava/lang/Object;)Z A: $
function getDeviceClass : Integer; cdecl; // ()I A: $
function getDeviceId : Integer; cdecl; overload; // ()I A: $
function getDeviceId(&name : JString) : Integer; cdecl; overload; // (Ljava/lang/String;)I A: $
function getDeviceName : JString; cdecl; overload; // ()Ljava/lang/String; A: $
function getDeviceName(id : Integer) : JString; cdecl; overload; // (I)Ljava/lang/String; A: $
function getDeviceProtocol : Integer; cdecl; // ()I A: $
function getDeviceSubclass : Integer; cdecl; // ()I A: $
function getInterface(&index : Integer) : JUsbInterface; cdecl; // (I)Landroid/hardware/usb/UsbInterface; A: $
function getInterfaceCount : Integer; cdecl; // ()I A: $
function getProductId : Integer; cdecl; // ()I A: $
function getVendorId : Integer; cdecl; // ()I A: $
function hashCode : Integer; cdecl; // ()I A: $
function toString : JString; cdecl; // ()Ljava/lang/String; A: $
procedure writeToParcel(parcel : JParcel; flags : Integer) ; cdecl; // (Landroid/os/Parcel;I)V A: $
property CREATOR : JParcelable_Creator read _GetCREATOR; // Landroid/os/Parcelable$Creator; A: $
end; [JavaSignature('android/hardware/usb/UsbDevice')]
JUsbDevice = interface(JObject)
['{894CF2BF-306D-49BA-9776-D89F60E90353}']
function describeContents : Integer; cdecl; // ()I A: $
function equals(o : JObject) : boolean; cdecl; // (Ljava/lang/Object;)Z A: $
function getDeviceClass : Integer; cdecl; // ()I A: $
function getDeviceId : Integer; cdecl; overload; // ()I A: $
function getDeviceName : JString; cdecl; overload; // ()Ljava/lang/String; A: $
function getDeviceProtocol : Integer; cdecl; // ()I A: $
function getDeviceSubclass : Integer; cdecl; // ()I A: $
function getInterface(&index : Integer) : JUsbInterface; cdecl; // (I)Landroid/hardware/usb/UsbInterface; A: $
function getInterfaceCount : Integer; cdecl; // ()I A: $
function getProductId : Integer; cdecl; // ()I A: $
function getVendorId : Integer; cdecl; // ()I A: $
function hashCode : Integer; cdecl; // ()I A: $
function toString : JString; cdecl; // ()Ljava/lang/String; A: $
procedure writeToParcel(parcel : JParcel; flags : Integer) ; cdecl; // (Landroid/os/Parcel;I)V A: $
end; TJUsbDevice = class(TJavaGenericImport<JUsbDeviceClass, JUsbDevice>)
end; JUsbDeviceConnection = interface; JUsbDeviceConnectionClass = interface(JObjectClass)
['{87714045-C806-4665-8115-A3E814566A46}']
function bulkTransfer(endpoint : JUsbEndpoint; buffer : TJavaArray<Byte>; length : Integer; timeout : Integer) : Integer; cdecl; overload;// (Landroid/hardware/usb/UsbEndpoint;[BII)I A: $
function bulkTransfer(endpoint : JUsbEndpoint; buffer : TJavaArray<Byte>; offset : Integer; length : Integer; timeout : Integer) : Integer; cdecl; overload;// (Landroid/hardware/usb/UsbEndpoint;[BIII)I A: $
function claimInterface(intf : JUsbInterface; force : boolean) : boolean; cdecl;// (Landroid/hardware/usb/UsbInterface;Z)Z A: $
function controlTransfer(requestType : Integer; request : Integer; value : Integer; &index : Integer; buffer : TJavaArray<Byte>; length : Integer; timeout : Integer) : Integer; cdecl; overload;// (IIII[BII)I A: $
function controlTransfer(requestType : Integer; request : Integer; value : Integer; &index : Integer; buffer : TJavaArray<Byte>; offset : Integer; length : Integer; timeout : Integer) : Integer; cdecl; overload;// (IIII[BIII)I A: $
function getFileDescriptor : Integer; cdecl; // ()I A: $
function getRawDescriptors : TJavaArray<Byte>; cdecl; // ()[B A: $
function getSerial : JString; cdecl; // ()Ljava/lang/String; A: $
function releaseInterface(intf : JUsbInterface) : boolean; cdecl; // (Landroid/hardware/usb/UsbInterface;)Z A: $
function requestWait : JUsbRequest; cdecl; // ()Landroid/hardware/usb/UsbRequest; A: $
procedure close ; cdecl; // ()V A: $
end; [JavaSignature('android/hardware/usb/UsbDeviceConnection')]
JUsbDeviceConnection = interface(JObject)
['{0946E9B4-626D-46F3-BE00-5C9B9EE7D545}']
function bulkTransfer(endpoint : JUsbEndpoint; buffer : TJavaArray<Byte>; length : Integer; timeout : Integer) : Integer; cdecl; overload;// (Landroid/hardware/usb/UsbEndpoint;[BII)I A: $
function bulkTransfer(endpoint : JUsbEndpoint; buffer : TJavaArray<Byte>; offset : Integer; length : Integer; timeout : Integer) : Integer; cdecl; overload;// (Landroid/hardware/usb/UsbEndpoint;[BIII)I A: $
function claimInterface(intf : JUsbInterface; force : boolean) : boolean; cdecl;// (Landroid/hardware/usb/UsbInterface;Z)Z A: $
function controlTransfer(requestType : Integer; request : Integer; value : Integer; &index : Integer; buffer : TJavaArray<Byte>; length : Integer; timeout : Integer) : Integer; cdecl; overload;// (IIII[BII)I A: $
function controlTransfer(requestType : Integer; request : Integer; value : Integer; &index : Integer; buffer : TJavaArray<Byte>; offset : Integer; length : Integer; timeout : Integer) : Integer; cdecl; overload;// (IIII[BIII)I A: $
function getFileDescriptor : Integer; cdecl; // ()I A: $
function getRawDescriptors : TJavaArray<Byte>; cdecl; // ()[B A: $
function getSerial : JString; cdecl; // ()Ljava/lang/String; A: $
function releaseInterface(intf : JUsbInterface) : boolean; cdecl; // (Landroid/hardware/usb/UsbInterface;)Z A: $
function requestWait : JUsbRequest; cdecl; // ()Landroid/hardware/usb/UsbRequest; A: $
procedure close ; cdecl; // ()V A: $
end; TJUsbDeviceConnection = class(TJavaGenericImport<JUsbDeviceConnectionClass, JUsbDeviceConnection>)
end; JUsbEndpointClass = interface(JObjectClass)
['{42D2502A-B42F-4A3D-A8F5-719DD014F925}']
function _GetCREATOR : JParcelable_Creator; cdecl; // A: $
function describeContents : Integer; cdecl; // ()I A: $
function getAddress : Integer; cdecl; // ()I A: $
function getAttributes : Integer; cdecl; // ()I A: $
function getDirection : Integer; cdecl; // ()I A: $
function getEndpointNumber : Integer; cdecl; // ()I A: $
function getInterval : Integer; cdecl; // ()I A: $
function getMaxPacketSize : Integer; cdecl; // ()I A: $
function getType : Integer; cdecl; // ()I A: $
function toString : JString; cdecl; // ()Ljava/lang/String; A: $
procedure writeToParcel(parcel : JParcel; flags : Integer) ; cdecl; // (Landroid/os/Parcel;I)V A: $
property CREATOR : JParcelable_Creator read _GetCREATOR; // Landroid/os/Parcelable$Creator; A: $
end; [JavaSignature('android/hardware/usb/UsbEndpoint')]
JUsbEndpoint = interface(JObject)
['{3DA76151-8683-40C5-9D74-EC46C3EE6BE9}']
function describeContents : Integer; cdecl; // ()I A: $
function getAddress : Integer; cdecl; // ()I A: $
function getAttributes : Integer; cdecl; // ()I A: $
function getDirection : Integer; cdecl; // ()I A: $
function getEndpointNumber : Integer; cdecl; // ()I A: $
function getInterval : Integer; cdecl; // ()I A: $
function getMaxPacketSize : Integer; cdecl; // ()I A: $
function getType : Integer; cdecl; // ()I A: $
function toString : JString; cdecl; // ()Ljava/lang/String; A: $
procedure writeToParcel(parcel : JParcel; flags : Integer) ; cdecl; // (Landroid/os/Parcel;I)V A: $
end; TJUsbEndpoint = class(TJavaGenericImport<JUsbEndpointClass, JUsbEndpoint>)
end; JUsbManagerClass = interface(JObjectClass)
['{00663E01-CEEF-47D5-BF37-513629999939}']
function _GetACTION_USB_ACCESSORY_ATTACHED : JString; cdecl; // A: $
function _GetACTION_USB_ACCESSORY_DETACHED : JString; cdecl; // A: $
function _GetACTION_USB_DEVICE_ATTACHED : JString; cdecl; // A: $
function _GetACTION_USB_DEVICE_DETACHED : JString; cdecl; // A: $
function _GetEXTRA_ACCESSORY : JString; cdecl; // A: $
function _GetEXTRA_DEVICE : JString; cdecl; // A: $
function _GetEXTRA_PERMISSION_GRANTED : JString; cdecl; // A: $
function getAccessoryList : TJavaArray<JUsbAccessory>; cdecl; // ()[Landroid/hardware/usb/UsbAccessory; A: $
function getDeviceList : JHashMap; cdecl; // ()Ljava/util/HashMap; A: $
function hasPermission(accessory : JUsbAccessory) : boolean; cdecl; overload;// (Landroid/hardware/usb/UsbAccessory;)Z A: $
function hasPermission(device : JUsbDevice) : boolean; cdecl; overload; // (Landroid/hardware/usb/UsbDevice;)Z A: $
function openAccessory(accessory : JUsbAccessory) : JParcelFileDescriptor; cdecl;// (Landroid/hardware/usb/UsbAccessory;)Landroid/os/ParcelFileDescriptor; A: $
function openDevice(device : JUsbDevice) : JUsbDeviceConnection; cdecl; // (Landroid/hardware/usb/UsbDevice;)Landroid/hardware/usb/UsbDeviceConnection; A: $
procedure requestPermission(accessory : JUsbAccessory; pi : JPendingIntent) ; cdecl; overload;// (Landroid/hardware/usb/UsbAccessory;Landroid/app/PendingIntent;)V A: $
procedure requestPermission(device : JUsbDevice; pi : JPendingIntent) ; cdecl; overload;// (Landroid/hardware/usb/UsbDevice;Landroid/app/PendingIntent;)V A: $
property ACTION_USB_ACCESSORY_ATTACHED : JString read _GetACTION_USB_ACCESSORY_ATTACHED;// Ljava/lang/String; A: $
property ACTION_USB_ACCESSORY_DETACHED : JString read _GetACTION_USB_ACCESSORY_DETACHED;// Ljava/lang/String; A: $
property ACTION_USB_DEVICE_ATTACHED : JString read _GetACTION_USB_DEVICE_ATTACHED;// Ljava/lang/String; A: $
property ACTION_USB_DEVICE_DETACHED : JString read _GetACTION_USB_DEVICE_DETACHED;// Ljava/lang/String; A: $
property EXTRA_ACCESSORY : JString read _GetEXTRA_ACCESSORY; // Ljava/lang/String; A: $
property EXTRA_DEVICE : JString read _GetEXTRA_DEVICE; // Ljava/lang/String; A: $
property EXTRA_PERMISSION_GRANTED : JString read _GetEXTRA_PERMISSION_GRANTED;// Ljava/lang/String; A: $
end; [JavaSignature('android/hardware/usb/UsbManager')]
JUsbManager = interface(JObject)
['{B49F7F12-1E88-442D-88D6-E67E24A0A3FF}']
function getAccessoryList : TJavaArray<JUsbAccessory>; cdecl; // ()[Landroid/hardware/usb/UsbAccessory; A: $
function getDeviceList : JHashMap; cdecl; // ()Ljava/util/HashMap; A: $
function hasPermission(accessory : JUsbAccessory) : boolean; cdecl; overload;// (Landroid/hardware/usb/UsbAccessory;)Z A: $
function hasPermission(device : JUsbDevice) : boolean; cdecl; overload; // (Landroid/hardware/usb/UsbDevice;)Z A: $
function openAccessory(accessory : JUsbAccessory) : JParcelFileDescriptor; cdecl;// (Landroid/hardware/usb/UsbAccessory;)Landroid/os/ParcelFileDescriptor; A: $
function openDevice(device : JUsbDevice) : JUsbDeviceConnection; cdecl; // (Landroid/hardware/usb/UsbDevice;)Landroid/hardware/usb/UsbDeviceConnection; A: $
procedure requestPermission(accessory : JUsbAccessory; pi : JPendingIntent) ; cdecl; overload;// (Landroid/hardware/usb/UsbAccessory;Landroid/app/PendingIntent;)V A: $
procedure requestPermission(device : JUsbDevice; pi : JPendingIntent) ; cdecl; overload;// (Landroid/hardware/usb/UsbDevice;Landroid/app/PendingIntent;)V A: $
end; TJUsbManager = class(TJavaGenericImport<JUsbManagerClass, JUsbManager>)
end; JUsbRequestClass = interface(JObjectClass)
['{DDD3609C-991D-44C3-A262-6EC3AE6CA978}']
function cancel : boolean; cdecl; // ()Z A: $
function getClientData : JObject; cdecl; // ()Ljava/lang/Object; A: $
function getEndpoint : JUsbEndpoint; cdecl; // ()Landroid/hardware/usb/UsbEndpoint; A: $
function init : JUsbRequest; cdecl; // ()V A: $
function initialize(connection : JUsbDeviceConnection; endpoint : JUsbEndpoint) : boolean; cdecl;// (Landroid/hardware/usb/UsbDeviceConnection;Landroid/hardware/usb/UsbEndpoint;)Z A: $
function queue(buffer : JByteBuffer; length : Integer) : boolean; cdecl; // (Ljava/nio/ByteBuffer;I)Z A: $
procedure close ; cdecl; // ()V A: $
procedure setClientData(data : JObject) ; cdecl; // (Ljava/lang/Object;)V A: $
end; [JavaSignature('android/hardware/usb/UsbRequest')]
JUsbRequest = interface(JObject)
['{3D42DD85-7C3D-464A-A717-89F25373F9A9}']
function cancel : boolean; cdecl; // ()Z A: $
function getClientData : JObject; cdecl; // ()Ljava/lang/Object; A: $
function getEndpoint : JUsbEndpoint; cdecl; // ()Landroid/hardware/usb/UsbEndpoint; A: $
function initialize(connection : JUsbDeviceConnection; endpoint : JUsbEndpoint) : boolean; cdecl;// (Landroid/hardware/usb/UsbDeviceConnection;Landroid/hardware/usb/UsbEndpoint;)Z A: $
function queue(buffer : JByteBuffer; length : Integer) : boolean; cdecl; // (Ljava/nio/ByteBuffer;I)Z A: $
procedure close ; cdecl; // ()V A: $
procedure setClientData(data : JObject) ; cdecl; // (Ljava/lang/Object;)V A: $
end; TJUsbRequest = class(TJavaGenericImport<JUsbRequestClass, JUsbRequest>)
end; JUsbConstants = interface; JUsbConstantsClass = interface(JObjectClass)
['{82AD42D7-224A-4DA7-8AFF-E1208FE2DDD2}']
function _GetUSB_CLASS_APP_SPEC : Integer; cdecl; // A: $
function _GetUSB_CLASS_AUDIO : Integer; cdecl; // A: $
function _GetUSB_CLASS_CDC_DATA : Integer; cdecl; // A: $
function _GetUSB_CLASS_COMM : Integer; cdecl; // A: $
function _GetUSB_CLASS_CONTENT_SEC : Integer; cdecl; // A: $
function _GetUSB_CLASS_CSCID : Integer; cdecl; // A: $
function _GetUSB_CLASS_HID : Integer; cdecl; // A: $
function _GetUSB_CLASS_HUB : Integer; cdecl; // A: $
function _GetUSB_CLASS_MASS_STORAGE : Integer; cdecl; // A: $
function _GetUSB_CLASS_MISC : Integer; cdecl; // A: $
function _GetUSB_CLASS_PER_INTERFACE : Integer; cdecl; // A: $
function _GetUSB_CLASS_PHYSICA : Integer; cdecl; // A: $
function _GetUSB_CLASS_PRINTER : Integer; cdecl; // A: $
function _GetUSB_CLASS_STILL_IMAGE : Integer; cdecl; // A: $
function _GetUSB_CLASS_VENDOR_SPEC : Integer; cdecl; // A: $
function _GetUSB_CLASS_VIDEO : Integer; cdecl; // A: $
function _GetUSB_CLASS_WIRELESS_CONTROLLER : Integer; cdecl; // A: $
function _GetUSB_DIR_IN : Integer; cdecl; // A: $
function _GetUSB_DIR_OUT : Integer; cdecl; // A: $
function _GetUSB_ENDPOINT_DIR_MASK : Integer; cdecl; // A: $
function _GetUSB_ENDPOINT_NUMBER_MASK : Integer; cdecl; // A: $
function _GetUSB_ENDPOINT_XFERTYPE_MASK : Integer; cdecl; // A: $
function _GetUSB_ENDPOINT_XFER_BULK : Integer; cdecl; // A: $
function _GetUSB_ENDPOINT_XFER_CONTROL : Integer; cdecl; // A: $
function _GetUSB_ENDPOINT_XFER_INT : Integer; cdecl; // A: $
function _GetUSB_ENDPOINT_XFER_ISOC : Integer; cdecl; // A: $
function _GetUSB_INTERFACE_SUBCLASS_BOOT : Integer; cdecl; // A: $
function _GetUSB_SUBCLASS_VENDOR_SPEC : Integer; cdecl; // A: $
function _GetUSB_TYPE_CLASS : Integer; cdecl; // A: $
function _GetUSB_TYPE_MASK : Integer; cdecl; // A: $
function _GetUSB_TYPE_RESERVED : Integer; cdecl; // A: $
function _GetUSB_TYPE_STANDARD : Integer; cdecl; // A: $
function _GetUSB_TYPE_VENDOR : Integer; cdecl; // A: $
function init : JUsbConstants; cdecl; // ()V A: $
property USB_CLASS_APP_SPEC : Integer read _GetUSB_CLASS_APP_SPEC; // I A: $
property USB_CLASS_AUDIO : Integer read _GetUSB_CLASS_AUDIO; // I A: $
property USB_CLASS_CDC_DATA : Integer read _GetUSB_CLASS_CDC_DATA; // I A: $
property USB_CLASS_COMM : Integer read _GetUSB_CLASS_COMM; // I A: $
property USB_CLASS_CONTENT_SEC : Integer read _GetUSB_CLASS_CONTENT_SEC; // I A: $
property USB_CLASS_CSCID : Integer read _GetUSB_CLASS_CSCID; // I A: $
property USB_CLASS_HID : Integer read _GetUSB_CLASS_HID; // I A: $
property USB_CLASS_HUB : Integer read _GetUSB_CLASS_HUB; // I A: $
property USB_CLASS_MASS_STORAGE : Integer read _GetUSB_CLASS_MASS_STORAGE; // I A: $
property USB_CLASS_MISC : Integer read _GetUSB_CLASS_MISC; // I A: $
property USB_CLASS_PER_INTERFACE : Integer read _GetUSB_CLASS_PER_INTERFACE;// I A: $
property USB_CLASS_PHYSICA : Integer read _GetUSB_CLASS_PHYSICA; // I A: $
property USB_CLASS_PRINTER : Integer read _GetUSB_CLASS_PRINTER; // I A: $
property USB_CLASS_STILL_IMAGE : Integer read _GetUSB_CLASS_STILL_IMAGE; // I A: $
property USB_CLASS_VENDOR_SPEC : Integer read _GetUSB_CLASS_VENDOR_SPEC; // I A: $
property USB_CLASS_VIDEO : Integer read _GetUSB_CLASS_VIDEO; // I A: $
property USB_CLASS_WIRELESS_CONTROLLER : Integer read _GetUSB_CLASS_WIRELESS_CONTROLLER;// I A: $
property USB_DIR_IN : Integer read _GetUSB_DIR_IN; // I A: $
property USB_DIR_OUT : Integer read _GetUSB_DIR_OUT; // I A: $
property USB_ENDPOINT_DIR_MASK : Integer read _GetUSB_ENDPOINT_DIR_MASK; // I A: $
property USB_ENDPOINT_NUMBER_MASK : Integer read _GetUSB_ENDPOINT_NUMBER_MASK;// I A: $
property USB_ENDPOINT_XFERTYPE_MASK : Integer read _GetUSB_ENDPOINT_XFERTYPE_MASK;// I A: $
property USB_ENDPOINT_XFER_BULK : Integer read _GetUSB_ENDPOINT_XFER_BULK; // I A: $
property USB_ENDPOINT_XFER_CONTROL : Integer read _GetUSB_ENDPOINT_XFER_CONTROL;// I A: $
property USB_ENDPOINT_XFER_INT : Integer read _GetUSB_ENDPOINT_XFER_INT; // I A: $
property USB_ENDPOINT_XFER_ISOC : Integer read _GetUSB_ENDPOINT_XFER_ISOC; // I A: $
property USB_INTERFACE_SUBCLASS_BOOT : Integer read _GetUSB_INTERFACE_SUBCLASS_BOOT;// I A: $
property USB_SUBCLASS_VENDOR_SPEC : Integer read _GetUSB_SUBCLASS_VENDOR_SPEC;// I A: $
property USB_TYPE_CLASS : Integer read _GetUSB_TYPE_CLASS; // I A: $
property USB_TYPE_MASK : Integer read _GetUSB_TYPE_MASK; // I A: $
property USB_TYPE_RESERVED : Integer read _GetUSB_TYPE_RESERVED; // I A: $
property USB_TYPE_STANDARD : Integer read _GetUSB_TYPE_STANDARD; // I A: $
property USB_TYPE_VENDOR : Integer read _GetUSB_TYPE_VENDOR; // I A: $
end; [JavaSignature('android/hardware/usb/UsbConstants')]
JUsbConstants = interface(JObject)
['{0C48B886-B3F1-4161-8312-0E2D239EA601}']
end; TJUsbConstants = class(TJavaGenericImport<JUsbConstantsClass, JUsbConstants>)
end; const
TJUsbManagerACTION_USB_DEVICE_ATTACHED = 'android.hardware.usb.action.USB_DEVICE_ATTACHED';
TJUsbManagerACTION_USB_DEVICE_DETACHED = 'android.hardware.usb.action.USB_DEVICE_DETACHED';
TJUsbManagerACTION_USB_ACCESSORY_ATTACHED = 'android.hardware.usb.action.USB_ACCESSORY_ATTACHED';
TJUsbManagerACTION_USB_ACCESSORY_DETACHED = 'android.hardware.usb.action.USB_ACCESSORY_DETACHED';
TJUsbManagerEXTRA_DEVICE = 'device';
TJUsbManagerEXTRA_ACCESSORY = 'accessory';
TJUsbManagerEXTRA_PERMISSION_GRANTED = 'permission'; const
TJUsbConstantsUSB_ENDPOINT_DIR_MASK = ;
TJUsbConstantsUSB_DIR_OUT = ;
TJUsbConstantsUSB_DIR_IN = ;
TJUsbConstantsUSB_ENDPOINT_NUMBER_MASK = ;
TJUsbConstantsUSB_ENDPOINT_XFERTYPE_MASK = ;
TJUsbConstantsUSB_ENDPOINT_XFER_CONTROL = ;
TJUsbConstantsUSB_ENDPOINT_XFER_ISOC = ;
TJUsbConstantsUSB_ENDPOINT_XFER_BULK = ;
TJUsbConstantsUSB_ENDPOINT_XFER_INT = ;
TJUsbConstantsUSB_TYPE_MASK = ;
TJUsbConstantsUSB_TYPE_STANDARD = ;
TJUsbConstantsUSB_TYPE_CLASS = ;
TJUsbConstantsUSB_TYPE_VENDOR = ;
TJUsbConstantsUSB_TYPE_RESERVED = ;
TJUsbConstantsUSB_CLASS_PER_INTERFACE = ;
TJUsbConstantsUSB_CLASS_AUDIO = ;
TJUsbConstantsUSB_CLASS_COMM = ;
TJUsbConstantsUSB_CLASS_HID = ;
TJUsbConstantsUSB_CLASS_PHYSICA = ;
TJUsbConstantsUSB_CLASS_STILL_IMAGE = ;
TJUsbConstantsUSB_CLASS_PRINTER = ;
TJUsbConstantsUSB_CLASS_MASS_STORAGE = ;
TJUsbConstantsUSB_CLASS_HUB = ;
TJUsbConstantsUSB_CLASS_CDC_DATA = ;
TJUsbConstantsUSB_CLASS_CSCID = ;
TJUsbConstantsUSB_CLASS_CONTENT_SEC = ;
TJUsbConstantsUSB_CLASS_VIDEO = ;
TJUsbConstantsUSB_CLASS_WIRELESS_CONTROLLER = ;
TJUsbConstantsUSB_CLASS_MISC = ;
TJUsbConstantsUSB_CLASS_APP_SPEC = ;
TJUsbConstantsUSB_CLASS_VENDOR_SPEC = ;
TJUsbConstantsUSB_INTERFACE_SUBCLASS_BOOT = ;
TJUsbConstantsUSB_SUBCLASS_VENDOR_SPEC = ; implementation end.