Home
last modified time | relevance | path

Searched refs:UsbDevice (Results 1 – 15 of 15) sorted by relevance

/external/chromium_org/components/usb_service/
Dusb_device.h21 class USB_SERVICE_EXPORT UsbDevice
22 : public base::RefCountedThreadSafe<UsbDevice> {
55 UsbDevice(uint16 vendor_id, uint16 product_id, uint32 unique_id) in UsbDevice() function
58 virtual ~UsbDevice() {} in ~UsbDevice()
61 friend class base::RefCountedThreadSafe<UsbDevice>;
67 DISALLOW_COPY_AND_ASSIGN(UsbDevice);
Dusb_service.h17 class UsbDevice; variable
31 virtual scoped_refptr<UsbDevice> GetDeviceById(uint32 unique_id) = 0;
36 virtual void GetDevices(std::vector<scoped_refptr<UsbDevice> >* devices) = 0;
Dusb_service_impl.cc40 virtual scoped_refptr<UsbDevice> GetDeviceById(uint32 unique_id) OVERRIDE;
42 std::vector<scoped_refptr<UsbDevice> >* devices) OVERRIDE;
62 scoped_refptr<UsbDevice> UsbServiceImpl::GetDeviceById(uint32 unique_id) { in GetDeviceById()
73 std::vector<scoped_refptr<UsbDevice> >* devices) { in GetDevices()
111 std::set<UsbDevice*> connected_devices; in RefreshDevices()
Dusb_device_handle.h21 class UsbDevice; variable
45 virtual scoped_refptr<UsbDevice> GetDevice() const = 0;
Dusb_device_impl.h26 class UsbDeviceImpl : public UsbDevice {
Dusb_device_handle_impl.cc138 friend class UsbDevice;
209 scoped_refptr<UsbDevice> UsbDeviceHandleImpl::GetDevice() const { in GetDevice()
210 return static_cast<UsbDevice*>(device_); in GetDevice()
Dusb_device_impl.cc45 : UsbDevice(vendor_id, product_id, unique_id), in UsbDeviceImpl()
Dusb_device_handle_impl.h40 virtual scoped_refptr<UsbDevice> GetDevice() const OVERRIDE;
/external/chromium_org/media/base/android/java/src/org/chromium/media/
DUsbMidiDeviceFactoryAndroid.java13 import android.hardware.usb.UsbDevice;
50 private Set<UsbDevice> mRequestedDevices;
89 Map<String, UsbDevice> devices = mUsbManager.getDeviceList(); in enumerateDevices()
92 mRequestedDevices = new HashSet<UsbDevice>(); in enumerateDevices()
93 for (UsbDevice device : devices.values()) { in enumerateDevices()
131 UsbDevice device = (UsbDevice)intent.getParcelableExtra(UsbManager.EXTRA_DEVICE); in onRequestDone()
DUsbMidiDeviceAndroid.java9 import android.hardware.usb.UsbDevice;
77 UsbMidiDeviceAndroid(UsbManager manager, UsbDevice device) { in UsbMidiDeviceAndroid()
111 private void startListen(final UsbDevice device) { in startListen()
/external/chromium_org/extensions/browser/api/usb/
Dusb_apitest.cc19 using usb_service::UsbDevice;
95 virtual scoped_refptr<UsbDevice> GetDevice() const OVERRIDE { in GetDevice()
99 void set_device(UsbDevice* device) { device_ = device; } in set_device()
102 UsbDevice* device_;
117 class MockUsbDevice : public UsbDevice {
120 : UsbDevice(0, 0, 0), mock_handle_(mock_handle) { in MockUsbDevice()
151 explicit MockUsbService(scoped_refptr<UsbDevice> device) : device_(device) {} in MockUsbService()
154 virtual scoped_refptr<UsbDevice> GetDeviceById(uint32 unique_id) OVERRIDE { in GetDeviceById()
160 std::vector<scoped_refptr<UsbDevice> >* devices) OVERRIDE { in GetDevices()
165 scoped_refptr<UsbDevice> device_;
Dusb_api.cc53 using usb_service::UsbDevice;
65 typedef std::vector<scoped_refptr<UsbDevice> > DeviceVector;
315 std::vector<scoped_refptr<UsbDevice> >::iterator i, in RequestUsbDevicesAccessHelper()
344 std::vector<scoped_refptr<UsbDevice> >::iterator i = devices->begin(); in RequestUsbDevicesAccess()
374 base::Value* PopulateDevice(UsbDevice* device) { in PopulateDevice()
419 scoped_refptr<UsbDevice> UsbAsyncApiFunction::GetDeviceOrOrCompleteWithError( in GetDeviceOrOrCompleteWithError()
437 scoped_refptr<UsbDevice> device; in GetDeviceOrOrCompleteWithError()
678 scoped_refptr<UsbDevice> device = in AsyncWorkStart()
710 scoped_refptr<UsbDevice> device = in AsyncWorkStart()
Dusb_api.h34 scoped_refptr<usb_service::UsbDevice> GetDeviceOrOrCompleteWithError(
82 scoped_ptr<std::vector<scoped_refptr<usb_service::UsbDevice> > > devices);
102 scoped_ptr<std::vector<scoped_refptr<usb_service::UsbDevice> > > devices);
/external/chromium_org/chrome/browser/devtools/device/usb/
Dandroid_usb_browsertest.cc225 virtual scoped_refptr<UsbDevice> GetDevice() const OVERRIDE { in GetDevice()
446 class MockUsbDevice : public UsbDevice {
448 MockUsbDevice() : UsbDevice(0, 0, 0) {} in MockUsbDevice()
488 virtual scoped_refptr<UsbDevice> GetDeviceById(uint32 unique_id) OVERRIDE { in GetDeviceById()
494 std::vector<scoped_refptr<UsbDevice> >* devices) OVERRIDE { in GetDevices()
499 std::vector<scoped_refptr<UsbDevice> > devices_;
508 virtual scoped_refptr<UsbDevice> GetDeviceById(uint32 unique_id) OVERRIDE { in GetDeviceById()
514 std::vector<scoped_refptr<UsbDevice> >* devices) OVERRIDE { in GetDevices()
Dandroid_usb_device.cc29 using usb_service::UsbDevice;
54 typedef std::vector<scoped_refptr<UsbDevice> > UsbDevices;
55 typedef std::set<scoped_refptr<UsbDevice> > UsbDeviceSet;
205 scoped_refptr<UsbDevice> device, in OpenAndroidDeviceOnFileThread()