Home
last modified time | relevance | path

Searched refs:UsbAccessory (Results 1 – 24 of 24) sorted by relevance

/frameworks/base/libs/usb/src/com/android/future/usb/
DUsbManager.java93 public static UsbAccessory getAccessory(Intent intent) { in getAccessory()
94 android.hardware.usb.UsbAccessory accessory = in getAccessory()
99 return new UsbAccessory(accessory); in getAccessory()
109 public UsbAccessory[] getAccessoryList() { in getAccessoryList()
111 android.hardware.usb.UsbAccessory accessory = mService.getCurrentAccessory(); in getAccessoryList()
115 return new UsbAccessory[] { new UsbAccessory(accessory) }; in getAccessoryList()
129 public ParcelFileDescriptor openAccessory(UsbAccessory accessory) { in openAccessory()
131 return mService.openAccessory(new android.hardware.usb.UsbAccessory( in openAccessory()
150 public boolean hasPermission(UsbAccessory accessory) { in hasPermission()
152 return mService.hasAccessoryPermission(new android.hardware.usb.UsbAccessory( in hasPermission()
[all …]
DUsbAccessory.java22 public class UsbAccessory { class
31 /* package */ UsbAccessory(android.hardware.usb.UsbAccessory accessory) { in UsbAccessory() method in UsbAccessory
105 if (obj instanceof UsbAccessory) { in equals()
106 UsbAccessory accessory = (UsbAccessory)obj; in equals()
/frameworks/base/core/java/android/hardware/usb/
DUsbAccessory.java47 public class UsbAccessory implements Parcelable { class
75 public UsbAccessory(String manufacturer, String model, String description, in UsbAccessory() method in UsbAccessory
89 public UsbAccessory(String[] strings) { in UsbAccessory() method in UsbAccessory
163 if (obj instanceof UsbAccessory) { in equals()
164 UsbAccessory accessory = (UsbAccessory)obj; in equals()
195 public static final Parcelable.Creator<UsbAccessory> CREATOR =
196 new Parcelable.Creator<UsbAccessory>() {
197 public UsbAccessory createFromParcel(Parcel in) {
204 return new UsbAccessory(manufacturer, model, description, version, uri, serial);
207 public UsbAccessory[] newArray(int size) {
[all …]
DIUsbManager.aidl20 import android.hardware.usb.UsbAccessory;
37 UsbAccessory getCurrentAccessory(); in getCurrentAccessory()
42 ParcelFileDescriptor openAccessory(in UsbAccessory accessory); in openAccessory()
52 void setAccessoryPackage(in UsbAccessory accessory, String packageName); in setAccessoryPackage()
58 boolean hasAccessoryPermission(in UsbAccessory accessory); in hasAccessoryPermission()
70 void requestAccessoryPermission(in UsbAccessory accessory, String packageName, in requestAccessoryPermission()
77 void grantAccessoryPermission(in UsbAccessory accessory, int uid); in grantAccessoryPermission()
DUsbManager.java286 public UsbAccessory[] getAccessoryList() { in getAccessoryList()
288 UsbAccessory accessory = mService.getCurrentAccessory(); in getAccessoryList()
292 return new UsbAccessory[] { accessory }; in getAccessoryList()
306 public ParcelFileDescriptor openAccessory(UsbAccessory accessory) { in openAccessory()
342 public boolean hasPermission(UsbAccessory accessory) { in hasPermission()
395 public void requestPermission(UsbAccessory accessory, PendingIntent pi) { in requestPermission()
DUsbAccessory.aidl19 parcelable UsbAccessory;
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/
DUsbDisconnectedReceiver.java24 import android.hardware.usb.UsbAccessory;
33 private UsbAccessory mAccessory;
43 public UsbDisconnectedReceiver(Activity activity, UsbAccessory accessory) { in UsbDisconnectedReceiver()
60 UsbAccessory accessory = in onReceive()
61 (UsbAccessory)intent.getParcelableExtra(UsbManager.EXTRA_ACCESSORY); in onReceive()
DUsbAccessoryUriActivity.java26 import android.hardware.usb.UsbAccessory;
47 private UsbAccessory mAccessory;
55 mAccessory = (UsbAccessory)intent.getParcelableExtra(UsbManager.EXTRA_ACCESSORY); in onCreate()
DUsbResolverActivity.java25 import android.hardware.usb.UsbAccessory;
46 private UsbAccessory mAccessory;
77 mAccessory = (UsbAccessory)target.getParcelableExtra(UsbManager.EXTRA_ACCESSORY); in onCreate()
DUsbConfirmActivity.java30 import android.hardware.usb.UsbAccessory;
56 private UsbAccessory mAccessory;
67 mAccessory = (UsbAccessory)intent.getParcelableExtra(UsbManager.EXTRA_ACCESSORY); in onCreate()
DUsbPermissionActivity.java29 import android.hardware.usb.UsbAccessory;
55 private UsbAccessory mAccessory;
68 mAccessory = (UsbAccessory)intent.getParcelableExtra(UsbManager.EXTRA_ACCESSORY); in onCreate()
/frameworks/base/services/java/com/android/server/usb/
DUsbService.java23 import android.hardware.usb.UsbAccessory;
84 public UsbAccessory getCurrentAccessory() { in getCurrentAccessory()
93 public ParcelFileDescriptor openAccessory(UsbAccessory accessory) { in openAccessory()
106 public void setAccessoryPackage(UsbAccessory accessory, String packageName) { in setAccessoryPackage()
115 public boolean hasAccessoryPermission(UsbAccessory accessory) { in hasAccessoryPermission()
124 public void requestAccessoryPermission(UsbAccessory accessory, String packageName, in requestAccessoryPermission()
134 public void grantAccessoryPermission(UsbAccessory accessory, int uid) { in grantAccessoryPermission()
DUsbSettingsManager.java31 import android.hardware.usb.UsbAccessory;
75 private final HashMap<UsbAccessory, SparseBooleanArray> mAccessoryPermissionMap =
76 new HashMap<UsbAccessory, SparseBooleanArray>();
259 public AccessoryFilter(UsbAccessory accessory) { in AccessoryFilter()
301 public boolean matches(UsbAccessory acc) { in matches()
327 if (obj instanceof UsbAccessory) { in equals()
328 UsbAccessory accessory = (UsbAccessory)obj; in equals()
469 UsbDevice device, UsbAccessory accessory) { in packageMatchesLocked()
520 UsbAccessory accessory, Intent intent) { in getAccessoryMatchesLocked()
561 public void accessoryAttached(UsbAccessory accessory) { in accessoryAttached()
[all …]
DUsbDeviceManager.java31 import android.hardware.usb.UsbAccessory;
199 mAccessoryStrings[UsbAccessory.MANUFACTURER_STRING] != null && in startAccessoryMode()
200 mAccessoryStrings[UsbAccessory.MODEL_STRING] != null); in startAccessoryMode()
292 private UsbAccessory mCurrentAccessory;
496 mCurrentAccessory = new UsbAccessory(mAccessoryStrings); in updateCurrentAccessory()
608 public UsbAccessory getCurrentAccessory() { in getCurrentAccessory()
724 public UsbAccessory getCurrentAccessory() { in getCurrentAccessory()
729 public ParcelFileDescriptor openAccessory(UsbAccessory accessory) { in openAccessory()
730 UsbAccessory currentAccessory = mHandler.getCurrentAccessory(); in openAccessory()
/frameworks/base/libs/usb/tests/AccessoryChat/src/com/android/accessorychat/
DAccessoryChat.java37 import android.hardware.usb.UsbAccessory;
67UsbAccessory accessory = (UsbAccessory) intent.getParcelableExtra(UsbManager.EXTRA_ACCESSORY);
102 UsbAccessory[] accessories = mUsbManager.getAccessoryList(); in onResume()
103 UsbAccessory accessory = (accessories == null ? null : accessories[0]); in onResume()
139 private void openAccessory(UsbAccessory accessory) { in openAccessory()
/frameworks/base/docs/html/guide/topics/connectivity/usb/
Daccessory.jd123 <td>{@link android.hardware.usb.UsbAccessory}</td>
148 android.hardware.usb.UsbAccessory} object is contained inside the intent that is passed to your
150 android.hardware.usb.UsbAccessory} object in the following manner:</p>
152 UsbAccessory accessory = UsbManager.getAccessory(intent);
156 android.hardware.usb.UsbAccessory} object in the following manner:</p>
158 UsbAccessory accessory = (UsbAccessory) intent.getParcelableExtra(UsbManager.EXTRA_ACCESSORY);
298 <p>In your activity, you can obtain the {@link android.hardware.usb.UsbAccessory} that represents
301 UsbAccessory accessory = UsbManager.getAccessory(intent);
306 UsbAccessory accessory = (UsbAccessory)intent.getParcelableExtra(UsbManager.EXTRA_ACCESSORY);
318 UsbAccessory[] accessoryList = manager.getAcccessoryList();
[all …]
/frameworks/base/docs/html/about/versions/
Dandroid-2.3.4.jd88 <li>Obtaining a {@link android.hardware.usb.UsbAccessory} from a filtered intent
90 filter, the {@link android.hardware.usb.UsbAccessory} object is contained
92 add-on library, you can get the {@link android.hardware.usb.UsbAccessory} object
95 <pre>UsbAccessory accessory = UsbManager.getAccessory(intent)</pre></li>
103 (through {@link android.hardware.usb.UsbAccessory}).</li>
Dandroid-3.1.jd93 <li>{@link android.hardware.usb.UsbAccessory}, representing external hardware
/frameworks/base/libs/usb/tests/AccessoryChat/
DREADME.txt4 via the UsbAccessory class.
/frameworks/base/docs/html/tools/adk/
Dadk2.jd547 import com.android.future.usb.UsbAccessory;
551 UsbAccessory acc = mUSBManager.getAccessoryList()[0];
561 import android.hardware.usb.UsbAccessory
565 UsbAccessory acc = (UsbAccessory)
/frameworks/base/api/
D14.txt9610 public class UsbAccessory implements android.os.Parcelable {
9714 method public android.hardware.usb.UsbAccessory[] getAccessoryList();
9717 method public boolean hasPermission(android.hardware.usb.UsbAccessory);
9718 method public android.os.ParcelFileDescriptor openAccessory(android.hardware.usb.UsbAccessory);
9721 …method public void requestPermission(android.hardware.usb.UsbAccessory, android.app.PendingIntent);
D15.txt9646 public class UsbAccessory implements android.os.Parcelable {
9750 method public android.hardware.usb.UsbAccessory[] getAccessoryList();
9753 method public boolean hasPermission(android.hardware.usb.UsbAccessory);
9754 method public android.os.ParcelFileDescriptor openAccessory(android.hardware.usb.UsbAccessory);
9757 …method public void requestPermission(android.hardware.usb.UsbAccessory, android.app.PendingIntent);
Dcurrent.txt9950 public class UsbAccessory implements android.os.Parcelable {
10054 method public android.hardware.usb.UsbAccessory[] getAccessoryList();
10057 method public boolean hasPermission(android.hardware.usb.UsbAccessory);
10058 method public android.os.ParcelFileDescriptor openAccessory(android.hardware.usb.UsbAccessory);
10061 …method public void requestPermission(android.hardware.usb.UsbAccessory, android.app.PendingIntent);
D16.txt9950 public class UsbAccessory implements android.os.Parcelable {
10054 method public android.hardware.usb.UsbAccessory[] getAccessoryList();
10057 method public boolean hasPermission(android.hardware.usb.UsbAccessory);
10058 method public android.os.ParcelFileDescriptor openAccessory(android.hardware.usb.UsbAccessory);
10061 …method public void requestPermission(android.hardware.usb.UsbAccessory, android.app.PendingIntent);