/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 | 48 public class UsbAccessory implements Parcelable { class 76 public UsbAccessory(@NonNull String manufacturer, @NonNull String model, in UsbAccessory() method in UsbAccessory 91 public UsbAccessory(String[] strings) { in UsbAccessory() method in UsbAccessory 161 if (obj instanceof UsbAccessory) { in equals() 162 UsbAccessory accessory = (UsbAccessory)obj; in equals() 191 public static final Parcelable.Creator<UsbAccessory> CREATOR = 192 new Parcelable.Creator<UsbAccessory>() { 193 public UsbAccessory createFromParcel(Parcel in) { 200 return new UsbAccessory(manufacturer, model, description, version, uri, serial); 203 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 | 430 public UsbAccessory[] getAccessoryList() { in getAccessoryList() 435 UsbAccessory accessory = mService.getCurrentAccessory(); in getAccessoryList() 439 return new UsbAccessory[] { accessory }; in getAccessoryList() 457 public ParcelFileDescriptor openAccessory(UsbAccessory accessory) { in openAccessory() 518 public boolean hasPermission(UsbAccessory accessory) { in hasPermission() 579 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 …]
|
D | UsbAccessoryStreamTransport.java | 22 import android.hardware.usb.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 | 23 import android.hardware.usb.UsbAccessory; 45 private UsbAccessory mAccessory; 53 mAccessory = (UsbAccessory)intent.getParcelableExtra(UsbManager.EXTRA_ACCESSORY); in onCreate()
|
D | UsbResolverActivity.java | 23 import android.hardware.usb.UsbAccessory; 50 private UsbAccessory mAccessory; 92 mAccessory = (UsbAccessory)target.getParcelableExtra(UsbManager.EXTRA_ACCESSORY); in onCreate()
|
D | UsbPermissionActivity.java | 31 import android.hardware.usb.UsbAccessory; 63 private UsbAccessory mAccessory; 76 mAccessory = (UsbAccessory)intent.getParcelableExtra(UsbManager.EXTRA_ACCESSORY); in onCreate() 191 private boolean canBeDefault(@NonNull UsbAccessory accessory, in canBeDefault()
|
D | UsbConfirmActivity.java | 27 import android.hardware.usb.UsbAccessory; 53 private UsbAccessory mAccessory; 64 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/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/services/usb/java/com/android/server/usb/ |
D | UsbUserSettingsManager.java | 27 import android.hardware.usb.UsbAccessory; 59 private final HashMap<UsbAccessory, SparseBooleanArray> mAccessoryPermissionMap = 97 void removeAccessoryPermissions(@NonNull UsbAccessory accessory) { in removeAccessoryPermissions() 178 public boolean hasPermission(UsbAccessory accessory) { in hasPermission() 198 public void checkPermission(UsbAccessory accessory) { in checkPermission() 266 public void requestPermission(UsbAccessory accessory, String packageName, PendingIntent pi) { in requestPermission() 297 public void grantAccessoryPermission(UsbAccessory accessory, int uid) { in grantAccessoryPermission() 328 for (UsbAccessory accessory : mAccessoryPermissionMap.keySet()) { in dump()
|
D | UsbService.java | 30 import android.hardware.usb.UsbAccessory; 278 public UsbAccessory getCurrentAccessory() { in getCurrentAccessory() 288 public ParcelFileDescriptor openAccessory(UsbAccessory accessory) { in openAccessory() 326 public void setAccessoryPackage(UsbAccessory accessory, String packageName, int userId) { in setAccessoryPackage() 344 public boolean hasAccessoryPermission(UsbAccessory accessory) { in hasAccessoryPermission() 358 UsbAccessory accessory, String packageName, PendingIntent pi) { in requestAccessoryPermission() 371 public void grantAccessoryPermission(UsbAccessory accessory, int uid) { in grantAccessoryPermission()
|
D | UsbSettingsManager.java | 24 import android.hardware.usb.UsbAccessory; 189 void usbAccessoryRemoved(@NonNull UsbAccessory accessory) { in usbAccessoryRemoved()
|
/frameworks/av/services/audiopolicy/engineconfigurable/parameter-framework/examples/ |
D | policy_criteria.txt | 2 …Hdmi TelephonyRx BackMic RemoteSubmix AnlgDockHeadset DgtlDockHeadset UsbAccessory UsbDevice FmTun… 3 …pHeadphones BluetoothA2dpSpeaker Hdmi AnlgDockHeadset DgtlDockHeadset UsbAccessory UsbDevice Remot…
|
/frameworks/av/services/audiopolicy/engineconfigurable/wrapper/config/ |
D | audio_policy_criteria.conf | 51 …pHeadphones,BluetoothA2dpSpeaker,Hdmi,AnlgDockHeadset,DgtlDockHeadset,UsbAccessory,UsbDevice,Remot… 58 …Hdmi,TelephonyRx,BackMic,RemoteSubmix,AnlgDockHeadset,DgtlDockHeadset,UsbAccessory,UsbDevice,FmTun…
|
/frameworks/av/services/audiopolicy/engineconfigurable/parameter-framework/examples/Settings/ |
D | device_for_strategy_enforced_audible.pfw | 46 AvailableOutputDevices Excludes UsbAccessory 222 conf: UsbAccessory 224 AvailableOutputDevices Includes UsbAccessory
|
D | device_for_strategy_rerouting.pfw | 173 conf: UsbAccessory 174 AvailableOutputDevices Includes UsbAccessory
|
D | device_for_strategy_phone.pfw | 271 AvailableOutputDevices Excludes UsbAccessory 294 conf: UsbAccessory 299 AvailableOutputDevices Includes UsbAccessory
|
/frameworks/base/libs/usb/tests/AccessoryChat/ |
D | README.txt | 4 via the UsbAccessory class.
|