Home
last modified time | relevance | path

Searched refs:UsbDeviceHandle (Results 1 – 19 of 19) sorted by relevance

/external/chromium_org/device/usb/
Dusb_device_handle.h38 class UsbDeviceHandle : public base::RefCountedThreadSafe<UsbDeviceHandle> {
100 friend class base::RefCountedThreadSafe<UsbDeviceHandle>;
102 UsbDeviceHandle() {}; in UsbDeviceHandle() function
104 virtual ~UsbDeviceHandle() {}; in ~UsbDeviceHandle()
106 DISALLOW_COPY_AND_ASSIGN(UsbDeviceHandle);
Dusb_device.h16 class UsbDeviceHandle; variable
46 virtual scoped_refptr<UsbDeviceHandle> Open() = 0;
52 virtual bool Close(scoped_refptr<UsbDeviceHandle> handle) = 0;
Dusb_device_handle_impl.cc46 const UsbDeviceHandle::TransferRequestType request_type, in CreateRequestType()
47 const UsbDeviceHandle::TransferRecipient recipient) { in CreateRequestType()
51 case UsbDeviceHandle::STANDARD: in CreateRequestType()
54 case UsbDeviceHandle::CLASS: in CreateRequestType()
57 case UsbDeviceHandle::VENDOR: in CreateRequestType()
60 case UsbDeviceHandle::RESERVED: in CreateRequestType()
66 case UsbDeviceHandle::DEVICE: in CreateRequestType()
69 case UsbDeviceHandle::INTERFACE: in CreateRequestType()
72 case UsbDeviceHandle::ENDPOINT: in CreateRequestType()
75 case UsbDeviceHandle::OTHER: in CreateRequestType()
Dusb_device_impl.cc215 scoped_refptr<UsbDeviceHandle> UsbDeviceImpl::Open() { in Open()
234 bool UsbDeviceImpl::Close(scoped_refptr<UsbDeviceHandle> handle) { in Close()
345 scoped_refptr<UsbDeviceHandle> device_handle = Open(); in GetManufacturer()
376 scoped_refptr<UsbDeviceHandle> device_handle = Open(); in GetProduct()
407 scoped_refptr<UsbDeviceHandle> device_handle = Open(); in GetSerialNumber()
Dusb_device_impl.h39 virtual scoped_refptr<UsbDeviceHandle> Open() OVERRIDE;
40 virtual bool Close(scoped_refptr<UsbDeviceHandle> handle) OVERRIDE;
Dusb_device_filter_unittest.cc27 MOCK_METHOD0(Open, scoped_refptr<UsbDeviceHandle>());
28 MOCK_METHOD1(Close, bool(scoped_refptr<UsbDeviceHandle>));
Dusb_device_handle_impl.h34 class UsbDeviceHandleImpl : public UsbDeviceHandle {
Dusb_device_handle_unittest.cc45 scoped_refptr<UsbDeviceHandle> handle_;
/external/chromium_org/extensions/browser/api/usb/
Dusb_device_resource.h19 class UsbDeviceHandle; variable
31 scoped_refptr<device::UsbDeviceHandle> device);
34 scoped_refptr<device::UsbDeviceHandle> device() { return device_; } in device()
42 scoped_refptr<device::UsbDeviceHandle> device_;
Dusb_api.cc56 using device::UsbDeviceHandle;
126 UsbDeviceHandle::TransferRequestType* output) { in ConvertRequestTypeFromApi()
129 *output = UsbDeviceHandle::STANDARD; in ConvertRequestTypeFromApi()
132 *output = UsbDeviceHandle::CLASS; in ConvertRequestTypeFromApi()
135 *output = UsbDeviceHandle::VENDOR; in ConvertRequestTypeFromApi()
138 *output = UsbDeviceHandle::RESERVED; in ConvertRequestTypeFromApi()
147 UsbDeviceHandle::TransferRecipient* output) { in ConvertRecipientFromApi()
150 *output = UsbDeviceHandle::DEVICE; in ConvertRecipientFromApi()
153 *output = UsbDeviceHandle::INTERFACE; in ConvertRecipientFromApi()
156 *output = UsbDeviceHandle::ENDPOINT; in ConvertRecipientFromApi()
[all …]
Dusb_apitest.cc21 using device::UsbDeviceHandle;
45 class MockUsbDeviceHandle : public UsbDeviceHandle {
47 MockUsbDeviceHandle() : UsbDeviceHandle() {} in MockUsbDeviceHandle()
115 virtual scoped_refptr<UsbDeviceHandle> Open() OVERRIDE { in Open()
119 virtual bool Close(scoped_refptr<UsbDeviceHandle> handle) OVERRIDE { in Close()
230 UsbDeviceHandle::STANDARD, in IN_PROC_BROWSER_TEST_F()
231 UsbDeviceHandle::DEVICE, in IN_PROC_BROWSER_TEST_F()
Dusb_device_resource.cc20 using device::UsbDeviceHandle;
36 scoped_refptr<UsbDeviceHandle> device) in UsbDeviceResource()
Dusb_api.h44 scoped_refptr<device::UsbDeviceHandle> GetDeviceHandleOrCompleteWithError(
63 device::UsbDeviceHandle::TransferRequestType* output);
66 device::UsbDeviceHandle::TransferRecipient* output);
89 std::vector<scoped_refptr<device::UsbDeviceHandle> > device_handles_;
143 scoped_refptr<device::UsbDeviceHandle> handle_;
/external/chromium_org/chrome/browser/devtools/device/usb/
Dandroid_usb_device.h77 scoped_refptr<device::UsbDeviceHandle> device,
93 scoped_refptr<device::UsbDeviceHandle> usb_device() { return usb_handle_; } in usb_device()
128 void TerminateIfReleased(scoped_refptr<device::UsbDeviceHandle> usb_handle);
138 scoped_refptr<device::UsbDeviceHandle> usb_handle_;
Dandroid_usb_device.cc31 using device::UsbDeviceHandle;
74 scoped_refptr<UsbDeviceHandle> usb_handle, in ClaimInterface()
146 void ReleaseInterface(scoped_refptr<UsbDeviceHandle> usb_device, in ReleaseInterface()
204 scoped_refptr<UsbDeviceHandle> usb_handle = device->Open(); in OpenAndroidDeviceOnFileThread()
318 scoped_refptr<UsbDeviceHandle> usb_device, in AndroidUsbDevice()
615 scoped_refptr<UsbDeviceHandle> usb_handle) { in TerminateIfReleased()
636 scoped_refptr<UsbDeviceHandle> usb_handle = usb_handle_; in Terminate()
Dandroid_usb_browsertest.cc24 using device::UsbDeviceHandle;
110 class MockUsbDeviceHandle : public UsbDeviceHandle {
362 virtual scoped_refptr<UsbDeviceHandle> Open() OVERRIDE { in Open()
385 virtual bool Close(scoped_refptr<UsbDeviceHandle> handle) OVERRIDE { in Close()
/external/chromium_org/apps/
Dsaved_devices_service_unittest.cc23 using device::UsbDeviceHandle;
33 MOCK_METHOD0(Open, scoped_refptr<UsbDeviceHandle>());
34 MOCK_METHOD1(Close, bool(scoped_refptr<UsbDeviceHandle>));
Dsaved_devices_service.cc31 using device::UsbDeviceHandle;
/external/chromium_org/extensions/browser/api/usb_private/
Dusb_private_api.cc27 using device::UsbDeviceHandle;