Home
last modified time | relevance | path

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

/packages/modules/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()