com/android/commands/hid/Hid.class
Hid.java
package com.android.commands.hid
public com.android.commands.hid.Hid extends java.lang.Object {
private static final String TAG
private final com.android.commands.hid.Event$Reader mReader
private final android.util.SparseArray mDevices
private static void usage ()
public static void main (java.lang.String[])
java.io.File f
Exception e
String[] args
java.io.InputStream stream
private void <init> (java.io.InputStream)
java.io.UnsupportedEncodingException e
java.io.InputStream in
private void run ()
com.android.commands.hid.Event e
java.io.IOException ex
int i
private void process (com.android.commands.hid.Event)
com.android.commands.hid.Device d
com.android.commands.hid.Event e
int index
private void registerDevice (com.android.commands.hid.Event)
com.android.commands.hid.Event e
int id
com.android.commands.hid.Device d
private static void error (java.lang.String)
String msg
private static void error (java.lang.String, java.lang.Exception)
String msg
Exception e
}
com/android/commands/hid/Event.class
Event.java
package com.android.commands.hid
public com.android.commands.hid.Event extends java.lang.Object {
private static final String TAG
public static final String COMMAND_REGISTER
public static final String COMMAND_DELAY
public static final String COMMAND_REPORT
public static final String COMMAND_SET_GET_REPORT_RESPONSE
public static final String COMMAND_SEND_SET_REPORT_REPLY
private int mId
private String mCommand
private String mName
private String mUniq
private byte[] mDescriptor
private int mVid
private int mPid
private com.android.commands.hid.Event$Bus mBus
private byte[] mReport
private android.util.SparseArray mFeatureReports
private java.util.Map mOutputs
private int mDuration
private Boolean mReply
public void <init> ()
public int getId ()
public java.lang.String getCommand ()
public java.lang.String getName ()
public java.lang.String getUniq ()
public byte[] getDescriptor ()
public int getVendorId ()
public int getProductId ()
public int getBus ()
public byte[] getReport ()
public android.util.SparseArray getFeatureReports ()
public java.util.Map getOutputs ()
public int getDuration ()
public java.lang.Boolean getReply ()
public java.lang.String toString ()
private static void error (java.lang.String, java.lang.Exception)
String msg
Exception e
}
com/android/commands/hid/Event$Reader.class
Event.java
package com.android.commands.hid
public com.android.commands.hid.Event$Reader extends java.lang.Object {
private android.util.JsonReader mReader
public void <init> (java.io.InputStreamReader)
java.io.InputStreamReader in
public com.android.commands.hid.Event getNextEvent () throws java.io.IOException
String name
IllegalStateException ex
com.android.commands.hid.Event$Builder eb
com.android.commands.hid.Event e
private byte[] readData () throws java.io.IOException
RuntimeException e
int d
int i
java.util.ArrayList data
byte[] rawData
private int readInt () throws java.io.IOException
String val
private boolean readBool () throws java.io.IOException
String val
private com.android.commands.hid.Event$Bus readBus () throws java.io.IOException
String val
private android.util.SparseArray readFeatureReports () throws java.lang.IllegalStateException java.io.IOException
String name
int id
byte[] data
RuntimeException e
android.util.SparseArray featureReports
private java.util.Map readOutputs () throws java.lang.IllegalStateException java.io.IOException
String name
byte[] output
byte[] response
RuntimeException e
java.util.Map outputs
private void consumeRemainingElements () throws java.io.IOException
}
com/android/commands/hid/Event$Bus.class
Event.java
package com.android.commands.hid
final enum com.android.commands.hid.Event$Bus extends java.lang.Enum {
public static final enum com.android.commands.hid.Event$Bus USB
public static final enum com.android.commands.hid.Event$Bus BLUETOOTH
private int mValue
private static final synthetic com.android.commands.hid.Event$Bus[] $VALUES
public static com.android.commands.hid.Event$Bus[] values ()
public static com.android.commands.hid.Event$Bus valueOf (java.lang.String)
String name
private void <init> (java.lang.String, int, int)
int value
int getValue ()
private static synthetic com.android.commands.hid.Event$Bus[] $values ()
static void <clinit> ()
}
com/android/commands/hid/Event$Builder.class
Event.java
package com.android.commands.hid
com.android.commands.hid.Event$Builder extends java.lang.Object {
private com.android.commands.hid.Event mEvent
public void <init> ()
public void setId (int)
int id
private void setCommand (java.lang.String)
String command
public void setName (java.lang.String)
String name
public void setUniq (java.lang.String)
String uniq
public void setDescriptor (byte[])
byte[] descriptor
public void setReport (byte[])
byte[] report
public void setFeatureReports (android.util.SparseArray)
android.util.SparseArray reports
public void setOutputs (java.util.Map)
java.util.Map outputs
public void setVid (int)
int vid
public void setPid (int)
int pid
public void setBus (com.android.commands.hid.Event$Bus)
com.android.commands.hid.Event$Bus bus
public void setDuration (int)
int duration
public void setReply (boolean)
boolean success
public com.android.commands.hid.Event build ()
}
com/android/commands/hid/Device.class
Device.java
package com.android.commands.hid
public com.android.commands.hid.Device extends java.lang.Object {
private static final String TAG
private static final int MSG_OPEN_DEVICE
private static final int MSG_SEND_REPORT
private static final int MSG_SEND_GET_FEATURE_REPORT_REPLY
private static final int MSG_SEND_SET_REPORT_REPLY
private static final int MSG_CLOSE_DEVICE
private static final byte UHID_EVENT_TYPE_UHID_OUTPUT
private static final byte UHID_EVENT_TYPE_SET_REPORT
private final int mId
private final android.os.HandlerThread mThread
private final com.android.commands.hid.Device$DeviceHandler mHandler
private final android.util.SparseArray mFeatureReports
private final java.util.Map mOutputs
private final java.io.OutputStream mOutputStream
private long mTimeToSend
private final Object mCond
private int mResponseId
private static native long nativeOpenDevice (java.lang.String, java.lang.String, int, int, int, int, byte[], com.android.commands.hid.Device$DeviceCallback)
private static native void nativeSendReport (long, byte[])
private static native void nativeSendGetFeatureReportReply (long, int, byte[])
private static native void nativeSendSetReportReply (long, int, boolean)
private static native void nativeCloseDevice (long)
public void <init> (int, java.lang.String, java.lang.String, int, int, int, byte[], byte[], android.util.SparseArray, java.util.Map)
int id
String name
String uniq
int vid
int pid
int bus
byte[] descriptor
byte[] report
android.util.SparseArray featureReports
java.util.Map outputs
com.android.internal.os.SomeArgs args
public void sendReport (byte[])
byte[] report
android.os.Message msg
public void setGetReportResponse (byte[])
byte[] report
public void sendSetReportReply (boolean)
boolean success
android.os.Message msg
public void addDelay (int)
int delay
public void close ()
android.os.Message msg
static void <clinit> ()
}
com/android/commands/hid/Device$DeviceHandler.class
Device.java
package com.android.commands.hid
com.android.commands.hid.Device$DeviceHandler extends android.os.Handler {
private long mPtr
private int mBarrierToken
final synthetic com.android.commands.hid.Device this$0
public void <init> (com.android.commands.hid.Device, android.os.Looper)
android.os.Looper looper
public void handleMessage (android.os.Message)
com.android.internal.os.SomeArgs args
boolean success
android.os.Message msg
public void pauseEvents ()
public void resumeEvents ()
}
com/android/commands/hid/Device$DeviceCallback.class
Device.java
package com.android.commands.hid
com.android.commands.hid.Device$DeviceCallback extends java.lang.Object {
final synthetic com.android.commands.hid.Device this$0
private void <init> (com.android.commands.hid.Device)
public void onDeviceOpen ()
public void onDeviceGetReport (int, int)
int requestId
int reportId
byte[] report
android.os.Message msg
private void sendReportOutput (byte, byte, byte[])
int i
org.json.JSONArray dataArray
org.json.JSONException e
java.io.IOException e
byte eventId
byte rtype
byte[] data
org.json.JSONObject json
public void onDeviceSetReport (int, byte, byte[])
int id
byte rType
byte[] data
public void onDeviceOutput (byte, byte[])
byte rtype
byte[] data
byte[] response
android.os.Message msg
public void onDeviceError ()
android.os.Message msg
}
com/android/commands/hid/
com/android/commands/
com/android/
com/
META-INF/MANIFEST.MF
META-INF/