Home
last modified time | relevance | path

Searched refs:device_handle (Results 1 – 3 of 3) sorted by relevance

/system/core/adb/tools/
Dcheck_ms_os_desc.cpp86 static void check_ms_os_desc_v1(libusb_device_handle* device_handle, const std::string& serial) { in check_ms_os_desc_v1() argument
87 auto os_desc = get_descriptor(device_handle, 0x03, 0xEE, 0x12); in check_ms_os_desc_v1()
109 int rc = libusb_control_transfer(device_handle, 0xC0, vendor_code, 0x00, 0x04, data.data(), in check_ms_os_desc_v1()
128 rc = libusb_control_transfer(device_handle, 0xC0, vendor_code, 0x00, 0x04, data.data(), in check_ms_os_desc_v1()
159 static void check_ms_os_desc_v2(libusb_device_handle* device_handle, const std::string& serial) { in check_ms_os_desc_v2() argument
161 int rc = libusb_get_bos_descriptor(device_handle, &bos); in check_ms_os_desc_v2()
223 libusb_device_handle* device_handle = nullptr; in main() local
224 int rc = libusb_open(device, &device_handle); in main()
235 get_string_descriptor(device_handle, device_desc.iSerialNumber); in main()
249 check_ms_os_desc_v1(device_handle, *serial); in main()
[all …]
Dadb_usbreset.cpp140 libusb_device_handle* device_handle; in main() local
141 rc = libusb_open(device, &device_handle); in main()
148 rc = libusb_get_string_descriptor_ascii(device_handle, device_desc.iSerialNumber, in main()
160 selected_devices.push_back(std::make_pair(std::move(serial), device_handle)); in main()
163 selected_devices.push_back(std::make_pair(std::move(serial), device_handle)); in main()
175 for (auto& [serial, device_handle] : selected_devices) { in main()
176 rc = libusb_reset_device(device_handle); in main()
/system/core/adb/client/
Dusb_libusb.cpp92 unique_device_handle&& device_handle, uint8_t interface, uint8_t bulk_in, in usb_handle()
97 device_handle(device_handle.release()), in usb_handle()
118 libusb_device_handle* handle = device_handle; in Close()
123 device_handle = nullptr; in Close()
138 libusb_device_handle* device_handle; member
411 if (!it->second->device_handle) { in device_disconnected()
568 if (!h->device_handle) { in usb_write()
574 info->transfer->dev_handle = h->device_handle; in usb_write()
591 if (!h->device_handle) { in usb_read()
597 info->transfer->dev_handle = h->device_handle; in usb_read()
[all …]