/frameworks/base/core/java/android/hardware/usb/ |
UsbDevice.aidl | 19 parcelable UsbDevice;
|
IUsbManager.aidl | 21 import android.hardware.usb.UsbDevice; 47 void setDevicePackage(in UsbDevice device, String packageName, int userId); 55 boolean hasDevicePermission(in UsbDevice device); 64 void requestDevicePermission(in UsbDevice device, String packageName, in PendingIntent pi); 74 void grantDevicePermission(in UsbDevice device, int uid);
|
UsbDevice.java | 44 public class UsbDevice implements Parcelable { 46 private static final String TAG = "UsbDevice"; 57 * UsbDevice should only be instantiated by UsbService implementation 60 public UsbDevice(String name, int vendorId, int productId, 160 if (o instanceof UsbDevice) { 161 return ((UsbDevice)o).mName.equals(mName); 176 return "UsbDevice[mName=" + mName + ",mVendorId=" + mVendorId + 182 public static final Parcelable.Creator<UsbDevice> CREATOR = 183 new Parcelable.Creator<UsbDevice>() { 184 public UsbDevice createFromParcel(Parcel in) [all...] |
UsbManager.java | 83 * <li> {@link #EXTRA_DEVICE} containing the {@link android.hardware.usb.UsbDevice} 95 * <li> {@link #EXTRA_DEVICE} containing the {@link android.hardware.usb.UsbDevice} 201 * containing the UsbDevice object for the device. 215 * passed into {@link #requestPermission(UsbDevice, PendingIntent)} 240 public HashMap<String,UsbDevice> getDeviceList() { 244 HashMap<String,UsbDevice> result = new HashMap<String,UsbDevice>(); 246 result.put(name, (UsbDevice)bundle.get(name)); 262 public UsbDeviceConnection openDevice(UsbDevice device) { 318 * {@link #requestPermission(UsbDevice, PendingIntent)} o [all...] |
UsbDeviceConnection.java | 32 private final UsbDevice mDevice; 38 * UsbDevice should only be instantiated by UsbService implementation 41 public UsbDeviceConnection(UsbDevice device) {
|
/external/chromium_org/chrome/browser/usb/ |
usb_service.h | 30 class UsbDevice; 38 typedef scoped_ptr<std::vector<scoped_refptr<UsbDevice> > > 45 scoped_refptr<UsbDevice> GetDeviceById(uint32 unique_id); 50 void GetDevices(std::vector<scoped_refptr<UsbDevice> >* devices); 62 static bool DeviceMatches(scoped_refptr<UsbDevice> device, 75 typedef std::map<PlatformUsbDevice, scoped_refptr<UsbDevice> > DeviceMap;
|
usb_device.h | 23 // A UsbDevice object represents a detected USB device, providing basic 26 class UsbDevice : public base::RefCountedThreadSafe<UsbDevice> { 60 friend class base::RefCountedThreadSafe<UsbDevice>; 63 UsbDevice(scoped_refptr<UsbContext> context, 70 UsbDevice(); 71 virtual ~UsbDevice(); 82 // Retain the context so that it will not be released before UsbDevice. 91 DISALLOW_COPY_AND_ASSIGN(UsbDevice);
|
usb_device.cc | 36 UsbDevice::UsbDevice( 51 UsbDevice::UsbDevice() 59 UsbDevice::~UsbDevice() { 72 void UsbDevice::RequestUsbAcess( 101 scoped_refptr<UsbDeviceHandle> UsbDevice::Open() { 117 bool UsbDevice::Close(scoped_refptr<UsbDeviceHandle> handle) { 132 scoped_refptr<UsbConfigDescriptor> UsbDevice::ListInterfaces() [all...] |
usb_device_handle.h | 30 class UsbDevice; 61 scoped_refptr<UsbDevice> device() const; 64 // Notifies UsbDevice to drop the reference of this object; cancels all the 118 friend class UsbDevice; 120 // This constructor is called by UsbDevice. 122 UsbDevice* device, PlatformUsbDeviceHandle handle, 129 UsbDevice* device_;
|
usb_service.cc | 100 void UsbService::GetDevices(std::vector<scoped_refptr<UsbDevice> >* devices) { 110 scoped_refptr<UsbDevice> UsbService::GetDeviceById(uint32 unique_id) { 127 std::set<UsbDevice*> connected_devices; 137 UsbDevice* new_device = new UsbDevice(context_, 158 // UsbDevice will be destroyed after this. The corresponding
|
usb_interface.h | 45 class UsbDevice; 131 friend class UsbDevice;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/ |
UsbDisconnectedReceiver.java | 25 import android.hardware.usb.UsbDevice; 32 private UsbDevice mDevice; 35 public UsbDisconnectedReceiver(Activity activity, UsbDevice device) { 55 UsbDevice device = (UsbDevice)intent.getParcelableExtra(UsbManager.EXTRA_DEVICE);
|
UsbResolverActivity.java | 24 import android.hardware.usb.UsbDevice; 45 private UsbDevice mDevice; 73 mDevice = (UsbDevice)target.getParcelableExtra(UsbManager.EXTRA_DEVICE);
|
/frameworks/base/media/tests/CameraBrowser/src/com/android/camerabrowser/ |
DeviceDisconnectedReceiver.java | 24 import android.hardware.usb.UsbDevice; 45 UsbDevice device = (UsbDevice)intent.getParcelableExtra(UsbManager.EXTRA_DEVICE);
|
MtpClient.java | 25 import android.hardware.usb.UsbDevice; 67 UsbDevice usbDevice = (UsbDevice)intent.getParcelableExtra(UsbManager.EXTRA_DEVICE); 68 String deviceName = usbDevice.getDeviceName(); 75 mtpDevice = openDeviceLocked(usbDevice); 95 mtpDevice = openDeviceLocked(usbDevice); 129 * Tests to see if a {@link android.hardware.usb.UsbDevice} 135 static public boolean isCamera(UsbDevice device) { 165 * Opens the {@link android.hardware.usb.UsbDevice} for an MTP or PT [all...] |
/frameworks/base/services/java/com/android/server/usb/ |
UsbHostManager.java | 21 import android.hardware.usb.UsbDevice; 43 private final HashMap<String, UsbDevice> mDevices = new HashMap<String, UsbDevice>(); 153 UsbDevice device = new UsbDevice(deviceName, vendorID, productID, 163 UsbDevice device = mDevices.remove(deviceName); 198 UsbDevice device = mDevices.get(deviceName);
|
UsbService.java | 27 import android.hardware.usb.UsbDevice; 163 public void setDevicePackage(UsbDevice device, String packageName, int userId) { 175 public boolean hasDevicePermission(UsbDevice device) { 187 public void requestDevicePermission(UsbDevice device, String packageName, PendingIntent pi) { 200 public void grantDevicePermission(UsbDevice device, int uid) {
|
UsbSettingsManager.java | 32 import android.hardware.usb.UsbDevice; 120 public DeviceFilter(UsbDevice device) { 184 public boolean matches(UsbDevice device) { 226 if (obj instanceof UsbDevice) { 227 UsbDevice device = (UsbDevice)obj; 541 UsbDevice device, UsbAccessory accessory) { 577 private final ArrayList<ResolveInfo> getDeviceMatchesLocked(UsbDevice device, Intent intent) { 606 public void deviceAttached(UsbDevice device) { 627 public void deviceDetached(UsbDevice device) [all...] |
/frameworks/base/media/java/android/mtp/ |
MtpDevice.java | 19 import android.hardware.usb.UsbDevice; 27 * android.hardware.usb.UsbDevice} and then use methods in this class to get information about the 34 private final UsbDevice mDevice; 43 * @param device the {@link android.hardware.usb.UsbDevice} for the MTP or PTP device 45 public MtpDevice(UsbDevice device) { 86 * This returns the same value as {@link android.hardware.usb.UsbDevice#getDeviceName} 87 * for the device's {@link android.hardware.usb.UsbDevice} 97 * This returns the same value as {@link android.hardware.usb.UsbDevice#getDeviceId} 98 * for the device's {@link android.hardware.usb.UsbDevice}
|
/development/samples/USB/AdbTest/src/com/android/adb/ |
AdbTestActivity.java | 25 import android.hardware.usb.UsbDevice; 42 private UsbDevice mDevice; 60 for (UsbDevice device : mManager.getDeviceList().values()) { 120 private boolean setAdbInterface(UsbDevice device, UsbInterface intf) { 161 static private UsbInterface findAdbInterface(UsbDevice device) { 179 UsbDevice device = (UsbDevice)intent.getParcelableExtra(UsbManager.EXTRA_DEVICE); 186 UsbDevice device = intent.getParcelableExtra(UsbManager.EXTRA_DEVICE);
|
/frameworks/base/tests/AccessoryDisplay/sink/src/com/android/accessorydisplay/sink/ |
SinkActivity.java | 28 import android.hardware.usb.UsbDevice; 76 private UsbDevice mDevice; 124 UsbDevice device = intent.<UsbDevice>getParcelableExtra(UsbManager.EXTRA_DEVICE); 129 Map<String, UsbDevice> devices = mUsbManager.getDeviceList(); 131 for (UsbDevice device : devices.values()) { 145 private void onDeviceAttached(UsbDevice device) { 152 private void onDeviceDetached(UsbDevice device) { 159 private void connect(UsbDevice device) { 464 private static boolean isAccessory(UsbDevice device) [all...] |
UsbAccessoryBulkTransport.java | 22 import android.hardware.usb.UsbDevice; 29 * Sends or receives messages using bulk endpoints associated with a {@link UsbDevice}
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
MtpClient.java | 26 import android.hardware.usb.UsbDevice; 75 UsbDevice usbDevice = (UsbDevice)intent.getParcelableExtra(UsbManager.EXTRA_DEVICE); 76 String deviceName = usbDevice.getDeviceName(); 83 mtpDevice = openDeviceLocked(usbDevice); 106 mtpDevice = openDeviceLocked(usbDevice); 143 * Tests to see if a {@link android.hardware.usb.UsbDevice} 149 static public boolean isCamera(UsbDevice device) { 179 * Opens the {@link android.hardware.usb.UsbDevice} for an MTP or PT [all...] |
/development/samples/USB/MissileLauncher/src/com/android/missilelauncher/ |
MissileLauncherActivity.java | 29 import android.hardware.usb.UsbDevice; 47 private UsbDevice mDevice; 99 UsbDevice device = (UsbDevice)intent.getParcelableExtra(UsbManager.EXTRA_DEVICE); 114 private void setDevice(UsbDevice device) {
|
/external/chromium_org/chrome/browser/extensions/api/usb/ |
usb_api.h | 20 class UsbDevice; 38 scoped_refptr<UsbDevice> GetDeviceOrOrCompleteWithError( 81 void OpenDevices(scoped_ptr<std::vector<scoped_refptr<UsbDevice> > > devices); 93 static void SetDeviceForTest(UsbDevice* device); 103 scoped_ptr<std::vector<scoped_refptr<UsbDevice> > > devices);
|