Home
last modified time | relevance | path

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

/development/host/windows/usb/winusb/
Dadb_winusb_interface.cpp165 USB_STRING_DESCRIPTOR* ser_num = &initial_ser_num; in GetSerialNumber() local
174 reinterpret_cast<PUCHAR>(ser_num), in GetSerialNumber()
178 if (ser_num != &initial_ser_num) in GetSerialNumber()
179 delete[] reinterpret_cast<char*>(ser_num); in GetSerialNumber()
185 if (ser_num != &initial_ser_num) in GetSerialNumber()
186 delete[] reinterpret_cast<char*>(ser_num); in GetSerialNumber()
188 ser_num = in GetSerialNumber()
197 unsigned long str_len = (ser_num->bLength - in GetSerialNumber()
204 if (ser_num != &initial_ser_num) in GetSerialNumber()
205 delete[] reinterpret_cast<char*>(ser_num); in GetSerialNumber()
[all …]
/development/host/windows/usb/adb_winapi_test/
Dadb_winapi_test.cpp345 char ser_num[1024]; in TestInterfaceHandle() local
346 unsigned long ser_num_size = sizeof(ser_num); in TestInterfaceHandle()
347 if (AdbGetSerialNumber(interface_handle, ser_num, &ser_num_size, true)) { in TestInterfaceHandle()
348 printf("\n+++ Serial number: %s", ser_num); in TestInterfaceHandle()
473 char* ser_num = NULL; in DeviceHandShake() local
475 if (!AdbGetSerialNumber(adb_interface, ser_num, &name_size, true)) { in DeviceHandShake()
476 ser_num = reinterpret_cast<char*>(malloc(name_size)); in DeviceHandShake()
477 if (NULL != ser_num) { in DeviceHandShake()
478 if (!AdbGetSerialNumber(adb_interface, ser_num, &name_size, true)) { in DeviceHandShake()
483 printf("\nInterface serial number is %s", ser_num); in DeviceHandShake()
[all …]