/frameworks/base/libs/usb/src/com/android/future/usb/ |
D | UsbManager.java | 93 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 …]
|
D | UsbAccessory.java | 22 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/ |
D | UsbAccessory.java | 47 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 …]
|
D | IUsbManager.aidl | 20 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()
|
D | UsbManager.java | 286 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()
|
D | UsbAccessory.aidl | 19 parcelable UsbAccessory;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/ |
D | UsbDisconnectedReceiver.java | 24 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()
|
D | UsbAccessoryUriActivity.java | 26 import android.hardware.usb.UsbAccessory; 47 private UsbAccessory mAccessory; 55 mAccessory = (UsbAccessory)intent.getParcelableExtra(UsbManager.EXTRA_ACCESSORY); in onCreate()
|
D | UsbResolverActivity.java | 25 import android.hardware.usb.UsbAccessory; 46 private UsbAccessory mAccessory; 77 mAccessory = (UsbAccessory)target.getParcelableExtra(UsbManager.EXTRA_ACCESSORY); in onCreate()
|
D | UsbConfirmActivity.java | 30 import android.hardware.usb.UsbAccessory; 56 private UsbAccessory mAccessory; 67 mAccessory = (UsbAccessory)intent.getParcelableExtra(UsbManager.EXTRA_ACCESSORY); in onCreate()
|
D | UsbPermissionActivity.java | 29 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/ |
D | UsbService.java | 23 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()
|
D | UsbSettingsManager.java | 31 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 …]
|
D | UsbDeviceManager.java | 31 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/ |
D | AccessoryChat.java | 37 import android.hardware.usb.UsbAccessory; 67 … UsbAccessory 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/ |
D | accessory.jd | 123 <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/ |
D | android-2.3.4.jd | 88 <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>
|
D | android-3.1.jd | 93 <li>{@link android.hardware.usb.UsbAccessory}, representing external hardware
|
/frameworks/base/libs/usb/tests/AccessoryChat/ |
D | README.txt | 4 via the UsbAccessory class.
|
/frameworks/base/docs/html/tools/adk/ |
D | adk2.jd | 547 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/ |
D | 14.txt | 9610 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);
|
D | 15.txt | 9646 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);
|
D | current.txt | 9950 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);
|
D | 16.txt | 9950 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);
|