/frameworks/base/core/java/android/hardware/usb/ |
D | UsbDevice.java | 40 public class UsbDevice implements Parcelable { class 64 public UsbDevice(String name, int vendorId, int productId, in UsbDevice() method in UsbDevice 257 if (o instanceof UsbDevice) { in equals() 258 return ((UsbDevice)o).mName.equals(mName); in equals() 286 public static final Parcelable.Creator<UsbDevice> CREATOR = 287 new Parcelable.Creator<UsbDevice>() { 288 public UsbDevice createFromParcel(Parcel in) { 300 UsbDevice device = new UsbDevice(name, vendorId, productId, clasz, subClass, protocol, 306 public UsbDevice[] newArray(int size) { 307 return new UsbDevice[size];
|
D | IUsbManager.aidl | 21 import android.hardware.usb.UsbDevice; 49 void setDevicePackage(in UsbDevice device, String packageName, int userId); in setDevicePackage() 57 boolean hasDevicePermission(in UsbDevice device); in hasDevicePermission() 66 void requestDevicePermission(in UsbDevice device, String packageName, in PendingIntent pi); in requestDevicePermission() 76 void grantDevicePermission(in UsbDevice device, int uid); in grantDevicePermission()
|
D | UsbManager.java | 305 public HashMap<String,UsbDevice> getDeviceList() { in getDeviceList() 309 HashMap<String,UsbDevice> result = new HashMap<String,UsbDevice>(); in getDeviceList() 311 result.put(name, (UsbDevice)bundle.get(name)); in getDeviceList() 326 public UsbDeviceConnection openDevice(UsbDevice device) { in openDevice() 386 public boolean hasPermission(UsbDevice device) { in hasPermission() 429 public void requestPermission(UsbDevice device, PendingIntent pi) { in requestPermission() 470 public void grantPermission(UsbDevice device) { in grantPermission()
|
D | UsbDeviceConnection.java | 32 private final UsbDevice mDevice; 41 public UsbDeviceConnection(UsbDevice device) { in UsbDeviceConnection()
|
D | UsbDevice.aidl | 19 parcelable UsbDevice;
|
/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; 45 private UsbDevice mDevice; 73 mDevice = (UsbDevice)target.getParcelableExtra(UsbManager.EXTRA_DEVICE); in onCreate()
|
D | UsbConfirmActivity.java | 28 import android.hardware.usb.UsbDevice; 52 private UsbDevice mDevice; 63 mDevice = (UsbDevice) intent.getParcelableExtra(UsbManager.EXTRA_DEVICE); in onCreate()
|
D | UsbPermissionActivity.java | 28 import android.hardware.usb.UsbDevice; 53 private UsbDevice mDevice; 66 mDevice = (UsbDevice)intent.getParcelableExtra(UsbManager.EXTRA_DEVICE); in onCreate()
|
/frameworks/base/services/usb/java/com/android/server/usb/ |
D | MtpNotificationManager.java | 30 import android.hardware.usb.UsbDevice; 73 void showNotification(UsbDevice device) { in showNotification() 112 final UsbDevice device = in onReceive() 113 intent.getExtras().<UsbDevice>getParcelable(UsbManager.EXTRA_DEVICE); in onReceive() 125 static boolean shouldShowNotification(PackageManager packageManager, UsbDevice device) { in shouldShowNotification() 131 private static boolean isMtpDevice(UsbDevice device) { in isMtpDevice() 150 void onOpenInApp(UsbDevice device); in onOpenInApp()
|
D | UsbHostManager.java | 22 import android.hardware.usb.UsbDevice; 45 private final HashMap<String, UsbDevice> mDevices = new HashMap<String, UsbDevice>(); 54 private UsbDevice mNewDevice; 156 mNewDevice = new UsbDevice(deviceName, vendorID, productID, in beginUsbDeviceAdded() 242 UsbDevice device = mDevices.remove(deviceName); in usbDeviceRemoved() 278 UsbDevice device = mDevices.get(deviceName); in openDevice()
|
D | UsbAlsaManager.java | 23 import android.hardware.usb.UsbDevice; 68 private final HashMap<UsbDevice,UsbAudioDevice> 69 mAudioDevices = new HashMap<UsbDevice,UsbAudioDevice>(); 71 private final HashMap<UsbDevice,UsbMidiDevice> 72 mMidiDevices = new HashMap<UsbDevice,UsbMidiDevice>(); 350 /* package */ void usbDeviceAdded(UsbDevice usbDevice) { in usbDeviceAdded() 438 /* package */ void usbDeviceRemoved(UsbDevice usbDevice) { in usbDeviceRemoved() 502 for (HashMap.Entry<UsbDevice,UsbAudioDevice> entry : mAudioDevices.entrySet()) { in getConnectedDevices() 513 for (UsbDevice device : mAudioDevices.keySet()) { in dump() 517 for (UsbDevice device : mMidiDevices.keySet()) { in dump() [all …]
|
D | UsbSettingsManager.java | 32 import android.hardware.usb.UsbDevice; 131 public DeviceFilter(UsbDevice device) { in DeviceFilter() 232 public boolean matches(UsbDevice device) { in matches() 321 if (obj instanceof UsbDevice) { in equals() 322 UsbDevice device = (UsbDevice)obj; in equals() 531 public void onOpenInApp(UsbDevice device) { in UsbSettingsManager() 670 UsbDevice device, UsbAccessory accessory) { in packageMatchesLocked() 706 private final ArrayList<ResolveInfo> getDeviceMatchesLocked(UsbDevice device, Intent intent) { in getDeviceMatchesLocked() 735 public void deviceAttached(UsbDevice device) { in deviceAttached() 749 private void resolveActivity(Intent intent, UsbDevice device) { in resolveActivity() [all …]
|
/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/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/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/base/media/java/android/mtp/ |
D | MtpDevice.java | 21 import android.hardware.usb.UsbDevice; 40 private final UsbDevice mDevice; 51 public MtpDevice(UsbDevice device) { in MtpDevice()
|
/frameworks/base/docs/html/guide/topics/connectivity/usb/ |
D | host.jd | 63 <td>{@link android.hardware.usb.UsbDevice}</td> 109 android.hardware.usb.UsbManager} to retrieve the desired {@link android.hardware.usb.UsbDevice}. 251 <p>In your activity, you can obtain the {@link android.hardware.usb.UsbDevice} that represents 254 UsbDevice device = (UsbDevice) intent.getParcelableExtra(UsbManager.EXTRA_DEVICE); 267 HashMap<String, UsbDevice> deviceList = manager.getDeviceList(); 268 UsbDevice device = deviceList.get("deviceName"); 276 HashMap<String, UsbDevice> deviceList = manager.getDeviceList(); 277 Iterator<UsbDevice> deviceIterator = deviceList.values().iterator(); 279 UsbDevice device = deviceIterator.next(); 314 UsbDevice device = (UsbDevice)intent.getParcelableExtra(UsbManager.EXTRA_DEVICE); [all …]
|
/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/av/services/audiopolicy/engineconfigurable/parameter-framework/examples/Settings/ |
D | device_for_input_source.pfw | 300 conf: UsbDevice 301 AvailableInputDevices Includes UsbDevice 426 conf: UsbDevice 427 AvailableInputDevices Includes UsbDevice 510 conf: UsbDevice 512 AvailableInputDevices Includes UsbDevice
|