/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 | 51 public class UsbAccessory implements Parcelable { class 79 public UsbAccessory(@NonNull String manufacturer, @NonNull String model, in UsbAccessory() method in UsbAccessory 104 public UsbAccessory(@NonNull String manufacturer, @NonNull String model, in UsbAccessory() method in UsbAccessory 188 if (obj instanceof UsbAccessory) { in equals() 189 UsbAccessory accessory = (UsbAccessory)obj; in equals() 218 public static final @android.annotation.NonNull Parcelable.Creator<UsbAccessory> CREATOR = 219 new Parcelable.Creator<UsbAccessory>() { 220 public UsbAccessory createFromParcel(Parcel in) { 229 return new UsbAccessory(manufacturer, model, description, version, uri, 233 public UsbAccessory[] newArray(int size) { [all …]
|
D | IUsbManager.aidl | 21 import android.hardware.usb.UsbAccessory; 40 UsbAccessory getCurrentAccessory(); in getCurrentAccessory() 45 ParcelFileDescriptor openAccessory(in UsbAccessory accessory); in openAccessory() 55 void setAccessoryPackage(in UsbAccessory accessory, String packageName, int userId); in setAccessoryPackage() 61 boolean hasAccessoryPermission(in UsbAccessory accessory); in hasAccessoryPermission() 73 void requestAccessoryPermission(in UsbAccessory accessory, String packageName, in requestAccessoryPermission() 80 void grantAccessoryPermission(in UsbAccessory accessory, int uid); in grantAccessoryPermission()
|
D | AccessoryFilter.java | 53 public AccessoryFilter(UsbAccessory accessory) { in AccessoryFilter() 95 public boolean matches(UsbAccessory acc) { in matches() 128 if (obj instanceof UsbAccessory) { in equals() 129 UsbAccessory accessory = (UsbAccessory)obj; in equals()
|
D | UsbManager.java | 452 public UsbAccessory[] getAccessoryList() { in getAccessoryList() 457 UsbAccessory accessory = mService.getCurrentAccessory(); in getAccessoryList() 461 return new UsbAccessory[] { accessory }; in getAccessoryList() 479 public ParcelFileDescriptor openAccessory(UsbAccessory accessory) { in openAccessory() 540 public boolean hasPermission(UsbAccessory accessory) { in hasPermission() 601 public void requestPermission(UsbAccessory accessory, PendingIntent pi) { in requestPermission()
|
D | UsbAccessory.aidl | 19 parcelable UsbAccessory;
|
/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/ |
D | SourceActivity.java | 28 import android.hardware.usb.UsbAccessory; 53 private UsbAccessory mAccessory; 82 UsbAccessory accessory = in onCreate() 83 (UsbAccessory) intent.getParcelableExtra(UsbManager.EXTRA_ACCESSORY); in onCreate() 88 UsbAccessory[] accessories = mUsbManager.getAccessoryList(); in onCreate() 90 for (UsbAccessory accessory : accessories) { in onCreate() 116 private void onAccessoryAttached(UsbAccessory accessory) { in onAccessoryAttached() 123 private void onAccessoryDetached(UsbAccessory accessory) { in onAccessoryDetached() 130 private void connect(UsbAccessory accessory) { in connect() 193 private static boolean isSink(UsbAccessory accessory) { in isSink() [all …]
|
/frameworks/base/libs/usb/api/ |
D | current.txt | 4 public class UsbAccessory { 14 method public static com.android.future.usb.UsbAccessory getAccessory(android.content.Intent); 15 method public com.android.future.usb.UsbAccessory[] getAccessoryList(); 17 method public boolean hasPermission(com.android.future.usb.UsbAccessory); 18 … method public android.os.ParcelFileDescriptor openAccessory(com.android.future.usb.UsbAccessory); 19 …method public void requestPermission(com.android.future.usb.UsbAccessory, android.app.PendingInten…
|
/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 | 23 import android.hardware.usb.UsbAccessory; 45 private UsbAccessory mAccessory; 53 mAccessory = (UsbAccessory)intent.getParcelableExtra(UsbManager.EXTRA_ACCESSORY); in onCreate()
|
D | UsbResolverActivity.java | 25 import android.hardware.usb.UsbAccessory; 50 private UsbAccessory mAccessory; 92 mAccessory = (UsbAccessory)target.getParcelableExtra(UsbManager.EXTRA_ACCESSORY); in onCreate()
|
D | UsbConfirmActivity.java | 27 import android.hardware.usb.UsbAccessory; 53 private UsbAccessory mAccessory; 64 mAccessory = (UsbAccessory)intent.getParcelableExtra(UsbManager.EXTRA_ACCESSORY); in onCreate()
|
D | UsbPermissionActivity.java | 27 import android.hardware.usb.UsbAccessory; 54 private UsbAccessory mAccessory; 67 mAccessory = (UsbAccessory)intent.getParcelableExtra(UsbManager.EXTRA_ACCESSORY); in onCreate()
|
/frameworks/base/tests/UsbHostExternalManagmentTest/AoapTestDevice/src/com/android/hardware/usb/aoapdevicetest/ |
D | UsbAoapDeviceTestActivity.java | 24 import android.hardware.usb.UsbAccessory; 47 private UsbAccessory mAccessory; 65 UsbAccessory accessory = in onCreate() 66 (UsbAccessory) intent.getParcelableExtra(UsbManager.EXTRA_ACCESSORY); in onCreate() 94 private void onAccessoryAttached(UsbAccessory accessory) { in onAccessoryAttached() 117 private void onAccessoryDetached(UsbAccessory accessory) { in onAccessoryDetached() 162 UsbAccessory accessory = intent.getParcelableExtra(UsbManager.EXTRA_ACCESSORY); in onReceive()
|
/frameworks/base/services/usb/java/com/android/server/usb/ |
D | UsbPermissionManager.java | 25 import android.hardware.usb.UsbAccessory; 56 private final HashMap<UsbAccessory, SparseBooleanArray> mAccessoryPermissionMap = 75 void removeAccessoryPermissions(@NonNull UsbAccessory accessory) { in removeAccessoryPermissions() 116 void grantAccessoryPermission(@NonNull UsbAccessory accessory, int uid) { in grantAccessoryPermission() 154 boolean hasPermission(@NonNull UsbAccessory accessory, int uid) { in hasPermission() 181 @Nullable UsbAccessory accessory, in requestPermissionDialog() 228 for (UsbAccessory accessory : mAccessoryPermissionMap.keySet()) { in dump()
|
D | UsbUserSettingsManager.java | 38 import android.hardware.usb.UsbAccessory; 99 void removeAccessoryPermissions(@NonNull UsbAccessory accessory) { in removeAccessoryPermissions() 170 public boolean hasPermission(UsbAccessory accessory, int uid) { in hasPermission() 181 public void checkPermission(UsbAccessory accessory, int uid) { in checkPermission() 189 @Nullable UsbAccessory accessory, in requestPermissionDialog() 240 public void requestPermission(UsbAccessory accessory, String packageName, PendingIntent pi, in requestPermission() 263 public void grantAccessoryPermission(UsbAccessory accessory, int uid) { in grantAccessoryPermission() 330 private boolean canBeDefault(@NonNull UsbAccessory accessory, String packageName) { in canBeDefault()
|
D | UsbHandlerManager.java | 25 import android.hardware.usb.UsbAccessory; 56 void showUsbAccessoryUriActivity(@NonNull UsbAccessory accessory, in showUsbAccessoryUriActivity() 84 @Nullable UsbAccessory accessory) { in confirmUsbHandler()
|
D | UsbSerialReader.java | 25 import android.hardware.usb.UsbAccessory; 98 settings.checkPermission((UsbAccessory) mDevice, uid); in getSerial()
|
D | UsbService.java | 39 import android.hardware.usb.UsbAccessory; 276 public UsbAccessory getCurrentAccessory() { in getCurrentAccessory() 286 public ParcelFileDescriptor openAccessory(UsbAccessory accessory) { in openAccessory() 334 public void setAccessoryPackage(UsbAccessory accessory, String packageName, int userId) { in setAccessoryPackage() 364 public boolean hasAccessoryPermission(UsbAccessory accessory) { in hasAccessoryPermission() 391 UsbAccessory accessory, String packageName, PendingIntent pi) { in requestAccessoryPermission() 417 public void grantAccessoryPermission(UsbAccessory accessory, int uid) { in grantAccessoryPermission()
|
D | UsbDeviceManager.java | 46 import android.hardware.usb.UsbAccessory; 402 mAccessoryStrings[UsbAccessory.MANUFACTURER_STRING] != null && in startAccessoryMode() 403 mAccessoryStrings[UsbAccessory.MODEL_STRING] != null); in startAccessoryMode() 454 private UsbAccessory mCurrentAccessory; 629 accessoryStrings[UsbAccessory.SERIAL_STRING]); in updateCurrentAccessory() 631 mCurrentAccessory = new UsbAccessory( in updateCurrentAccessory() 632 accessoryStrings[UsbAccessory.MANUFACTURER_STRING], in updateCurrentAccessory() 633 accessoryStrings[UsbAccessory.MODEL_STRING], in updateCurrentAccessory() 634 accessoryStrings[UsbAccessory.DESCRIPTION_STRING], in updateCurrentAccessory() 635 accessoryStrings[UsbAccessory.VERSION_STRING], in updateCurrentAccessory() [all …]
|
D | UsbSettingsManager.java | 24 import android.hardware.usb.UsbAccessory; 196 void usbAccessoryRemoved(@NonNull UsbAccessory accessory) { in usbAccessoryRemoved()
|
/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/av/services/audiopolicy/engineconfigurable/parameter-framework/examples/Phone/Settings/ |
D | device_for_product_strategy_enforced_audible.pfw | 48 AvailableOutputDevices Excludes UsbAccessory 225 conf: UsbAccessory 227 AvailableOutputDevices Includes UsbAccessory
|
/frameworks/base/libs/usb/tests/AccessoryChat/ |
D | README.txt | 4 via the UsbAccessory class.
|