/frameworks/base/tests/UsbHostExternalManagmentTest/UsbHostExternalManagmentTestApp/src/com/android/hardware/usb/externalmanagementtest/ |
D | UsbDeviceStateController.java | 22 import android.hardware.usb.UsbDevice; 38 void onDeviceResetComplete(UsbDevice device); in onDeviceResetComplete() 39 void onAoapStartComplete(UsbDevice devie); in onAoapStartComplete() 56 private final LinkedList<UsbDevice> mDevicesRemoved = new LinkedList<>(); 57 private final LinkedList<UsbDevice> mDevicesAdded = new LinkedList<>(); 102 public void startDeviceReset(UsbDevice device) { in startDeviceReset() 110 private void doHandleDeviceReset(UsbDevice device) { in doHandleDeviceReset() 112 UsbDevice completedDevice = null; in doHandleDeviceReset() 135 UsbDevice device = request.device; in doHandleAoapStart() 167 private UsbDevice resetUsbDeviceAndConfirmModeChange(UsbDevice device) { in resetUsbDeviceAndConfirmModeChange() [all …]
|
D | UsbUtil.java | 22 import android.hardware.usb.UsbDevice; 32 public static LinkedList<UsbDevice> findAllPossibleAndroidDevices(UsbManager usbManager) { in findAllPossibleAndroidDevices() 33 HashMap<String, UsbDevice> devices = usbManager.getDeviceList(); in findAllPossibleAndroidDevices() 34 LinkedList<UsbDevice> androidDevices = null; in findAllPossibleAndroidDevices() 35 for (UsbDevice device : devices.values()) { in findAllPossibleAndroidDevices() 46 public static boolean possiblyAndroid(UsbDevice device) { in possiblyAndroid() 61 public static boolean isTheSameDevice(UsbDevice l, UsbDevice r) { in isTheSameDevice() 70 public static boolean isDevicesMatching(UsbDevice l, UsbDevice r) { in isDevicesMatching() 78 public static boolean isDeviceConnected(UsbManager usbManager, UsbDevice device) { in isDeviceConnected() 79 HashMap<String, UsbDevice> devices = usbManager.getDeviceList(); in isDeviceConnected() [all …]
|
D | UsbHostManagementActivity.java | 27 import android.hardware.usb.UsbDevice; 61 private UsbDevice mUsbDevice = null; 80 mUsbDevice = intent.<UsbDevice>getParcelableExtra(UsbManager.EXTRA_DEVICE); in onCreate() 84 LinkedList<UsbDevice> devices = UsbUtil.findAllPossibleAndroidDevices(usbManager); in onCreate() 135 private void startAoap(UsbDevice device) { in startAoap() 141 private void startAoapActivity(UsbDevice device) { in startAoapActivity() 162 private void resetDevice(UsbDevice device) { in resetDevice() 169 HashMap<String, UsbDevice> devices = usbManager.getDeviceList(); in dumpUsbDevices() 172 for (UsbDevice device : devices.values()) { in dumpUsbDevices() 186 private void handleUsbDeviceAttached(UsbDevice device) { in handleUsbDeviceAttached() [all …]
|
D | AoapInterface.java | 19 import android.hardware.usb.UsbDevice; 128 public static boolean isDeviceInAoapMode(UsbDevice device) { in isDeviceInAoapMode()
|
/frameworks/base/core/java/android/hardware/usb/ |
D | UsbDevice.java | 43 public class UsbDevice implements Parcelable { class 69 public UsbDevice(@NonNull String name, int vendorId, int productId, int Class, int subClass, in UsbDevice() method in UsbDevice 262 if (o instanceof UsbDevice) { in equals() 263 return ((UsbDevice)o).mName.equals(mName); in equals() 291 public static final Parcelable.Creator<UsbDevice> CREATOR = 292 new Parcelable.Creator<UsbDevice>() { 293 public UsbDevice createFromParcel(Parcel in) { 305 UsbDevice device = new UsbDevice(name, vendorId, productId, clasz, subClass, protocol, 311 public UsbDevice[] newArray(int size) { 312 return new UsbDevice[size];
|
D | IUsbManager.aidl | 22 import android.hardware.usb.UsbDevice; 50 void setDevicePackage(in UsbDevice device, String packageName, int userId); in setDevicePackage() 58 boolean hasDevicePermission(in UsbDevice device, String packageName); in hasDevicePermission() 67 void requestDevicePermission(in UsbDevice device, String packageName, in PendingIntent pi); in requestDevicePermission() 77 void grantDevicePermission(in UsbDevice device, int uid); in grantDevicePermission()
|
D | UsbManager.java | 380 public HashMap<String,UsbDevice> getDeviceList() { in getDeviceList() 381 HashMap<String,UsbDevice> result = new HashMap<String,UsbDevice>(); in getDeviceList() 389 result.put(name, (UsbDevice)bundle.get(name)); in getDeviceList() 405 public UsbDeviceConnection openDevice(UsbDevice device) { in openDevice() 497 public boolean hasPermission(UsbDevice device) { in hasPermission() 552 public void requestPermission(UsbDevice device, PendingIntent pi) { in requestPermission() 594 public void grantPermission(UsbDevice device) { in grantPermission() 606 public void grantPermission(UsbDevice device, int uid) { in grantPermission() 624 public void grantPermission(UsbDevice device, String packageName) { in grantPermission()
|
D | DeviceFilter.java | 72 public DeviceFilter(UsbDevice device) { in DeviceFilter() 173 public boolean matches(UsbDevice device) { in matches() 273 if (obj instanceof UsbDevice) { in equals() 274 UsbDevice device = (UsbDevice)obj; in equals()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/ |
D | UsbDisconnectedReceiver.java | 25 import android.hardware.usb.UsbDevice; 32 private UsbDevice mDevice; 35 public UsbDisconnectedReceiver(Activity activity, UsbDevice device) { in UsbDisconnectedReceiver() 55 UsbDevice device = (UsbDevice)intent.getParcelableExtra(UsbManager.EXTRA_DEVICE); in onReceive()
|
D | UsbResolverActivity.java | 24 import android.hardware.usb.UsbDevice; 49 private UsbDevice mDevice; 88 mDevice = (UsbDevice)target.getParcelableExtra(UsbManager.EXTRA_DEVICE); in onCreate()
|
D | UsbPermissionActivity.java | 32 import android.hardware.usb.UsbDevice; 62 private UsbDevice mDevice; 75 mDevice = (UsbDevice)intent.getParcelableExtra(UsbManager.EXTRA_DEVICE); in onCreate() 149 private boolean canBeDefault(@NonNull UsbDevice device, @NonNull PackageInfo packageInfo) { in canBeDefault()
|
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/ |
D | TestUtil.java | 19 import android.hardware.usb.UsbDevice; 49 static UsbDevice setupMtpDevice( in setupMtpDevice() 55 final UsbDevice device = findMtpDevice(usbManager, manager); in setupMtpDevice() 85 private static UsbDevice findMtpDevice( in findMtpDevice() 88 final HashMap<String,UsbDevice> devices = usbManager.getDeviceList(); in findMtpDevice() 92 final UsbDevice device = devices.values().iterator().next(); in findMtpDevice()
|
/frameworks/base/tests/UsbHostExternalManagmentTest/AoapTestHost/src/com/android/hardware/usb/aoaphosttest/ |
D | UsbAoapHostTestActivity.java | 25 import android.hardware.usb.UsbDevice; 45 private UsbDevice mUsbDevice; 91 private static boolean isDevicesMatching(UsbDevice l, UsbDevice r) { in isDevicesMatching() 101 private final UsbDevice mDevice; 107 private ReaderThread(UsbDevice device, UsbDeviceConnection conn) { in ReaderThread() 158 UsbDevice device = intent.getParcelableExtra(UsbManager.EXTRA_DEVICE); in onReceive()
|
/frameworks/base/services/usb/java/com/android/server/usb/ |
D | MtpNotificationManager.java | 29 import android.hardware.usb.UsbDevice; 75 void showNotification(UsbDevice device) { in showNotification() 117 final UsbDevice device = in onReceive() 118 intent.getExtras().<UsbDevice>getParcelable(UsbManager.EXTRA_DEVICE); in onReceive() 130 static boolean shouldShowNotification(PackageManager packageManager, UsbDevice device) { in shouldShowNotification() 136 private static boolean isMtpDevice(UsbDevice device) { in isMtpDevice() 155 void onOpenInApp(UsbDevice device); in onOpenInApp()
|
D | UsbUserSettingsManager.java | 29 import android.hardware.usb.UsbDevice; 86 void removeDevicePermissions(@NonNull UsbDevice device) { in removeDevicePermissions() 111 private boolean isCameraDevicePresent(UsbDevice device) { in isCameraDevicePresent() 160 public boolean hasPermission(UsbDevice device, String packageName, int uid) { in hasPermission() 192 public void checkPermission(UsbDevice device, String packageName, int uid) { in checkPermission() 234 public void requestPermission(UsbDevice device, String packageName, PendingIntent pi, int uid) { in requestPermission() 285 public void grantDevicePermission(UsbDevice device, int uid) { in grantDevicePermission()
|
/frameworks/base/tests/AccessoryDisplay/sink/src/com/android/accessorydisplay/sink/ |
D | SinkActivity.java | 28 import android.hardware.usb.UsbDevice; 76 private UsbDevice mDevice; 124 UsbDevice device = intent.<UsbDevice>getParcelableExtra(UsbManager.EXTRA_DEVICE); in onCreate() 129 Map<String, UsbDevice> devices = mUsbManager.getDeviceList(); in onCreate() 131 for (UsbDevice device : devices.values()) { in onCreate() 145 private void onDeviceAttached(UsbDevice device) { in onDeviceAttached() 152 private void onDeviceDetached(UsbDevice device) { in onDeviceDetached() 159 private void connect(UsbDevice device) { in connect() 464 private static boolean isAccessory(UsbDevice device) { in isAccessory() 490 UsbDevice device = intent.<UsbDevice>getParcelableExtra(UsbManager.EXTRA_DEVICE); in onReceive()
|
/frameworks/base/media/tests/CameraBrowser/src/com/android/camerabrowser/ |
D | DeviceDisconnectedReceiver.java | 24 import android.hardware.usb.UsbDevice; 45 UsbDevice device = (UsbDevice)intent.getParcelableExtra(UsbManager.EXTRA_DEVICE); in onReceive()
|
D | MtpClient.java | 25 import android.hardware.usb.UsbDevice; 67 UsbDevice usbDevice = (UsbDevice)intent.getParcelableExtra(UsbManager.EXTRA_DEVICE); 135 static public boolean isCamera(UsbDevice device) { in isCamera() 171 private MtpDevice openDeviceLocked(UsbDevice usbDevice) { in openDeviceLocked() 243 return mDevices.get(UsbDevice.getDeviceName(id)); in getDevice() 256 for (UsbDevice usbDevice : mUsbManager.getDeviceList().values()) { in getDeviceList()
|
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/ |
D | MtpManager.java | 22 import android.hardware.usb.UsbDevice; 77 UsbDevice rawDevice = null; in openDevice() 78 for (final UsbDevice candidate : mManager.getDeviceList().values()) { in openDevice() 121 for (UsbDevice device : mManager.getDeviceList().values()) { in getDevices() 266 private MtpDeviceRecord createDeviceRecord(UsbDevice device) { in createDeviceRecord() 296 static boolean isMtpDevice(UsbDevice device) { in isMtpDevice()
|
D | UsbIntentReceiver.java | 22 import android.hardware.usb.UsbDevice; 31 final UsbDevice device = intent.getExtras().getParcelable(UsbManager.EXTRA_DEVICE); in onReceive()
|
D | ReceiverActivity.java | 21 import android.hardware.usb.UsbDevice; 41 final UsbDevice device = getIntent().getParcelableExtra(UsbManager.EXTRA_DEVICE); in onCreate()
|
/frameworks/base/services/usb/java/com/android/server/usb/descriptors/ |
D | UsbDeviceDescriptor.java | 19 import android.hardware.usb.UsbDevice; 138 public UsbDevice toAndroid(UsbDescriptorParser parser) { in toAndroid() 155 UsbDevice device = new UsbDevice(parser.getDeviceAddr(), mVendorID, mProductID, in toAndroid()
|
/frameworks/av/services/audiopolicy/engineconfigurable/parameter-framework/examples/ |
D | policy_criteria.txt | 2 …onyRx BackMic RemoteSubmix AnlgDockHeadset DgtlDockHeadset UsbAccessory UsbDevice FmTuner TvTuner … 3 … BluetoothA2dpSpeaker Hdmi AnlgDockHeadset DgtlDockHeadset UsbAccessory UsbDevice RemoteSubmix Tel…
|
/frameworks/av/services/audiopolicy/engineconfigurable/wrapper/config/ |
D | audio_policy_criteria.conf | 51 …,BluetoothA2dpSpeaker,Hdmi,AnlgDockHeadset,DgtlDockHeadset,UsbAccessory,UsbDevice,RemoteSubmix,Tel… 58 …onyRx,BackMic,RemoteSubmix,AnlgDockHeadset,DgtlDockHeadset,UsbAccessory,UsbDevice,FmTuner,TvTune,L…
|
/frameworks/base/media/java/android/mtp/ |
D | MtpDevice.java | 22 import android.hardware.usb.UsbDevice; 44 private final UsbDevice mDevice; 65 public MtpDevice(@NonNull UsbDevice device) { in MtpDevice()
|