Searched refs:current_device (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/libs/usb/tests/accessorytest/ |
D | usb.c | 30 static struct usb_device *current_device = NULL; variable 48 while (current_device && ret >= 0) { in read_thread() 51 ret = usb_device_bulk_transfer(current_device, read_ep, buffer, sizeof(buffer), 1000); in read_thread() 70 if (!line || !current_device) in write_thread() 72 ret = usb_device_bulk_transfer(current_device, write_ep, line, strlen(line), 1000); in write_thread() 100 if (!current_device && vendorId == 0x18D1 && productId >= 0x2D00 && productId <= 0x2D05) { in usb_device_added() 104 current_device = device; in usb_device_added() 191 if (device != current_device) in usb_device_added() 200 if (current_device && !strcmp(usb_device_get_name(current_device), devname)) { in usb_device_removed() 202 usb_device_close(current_device); in usb_device_removed() [all …]
|
/frameworks/compile/libbcc/gdb_plugin/ |
D | android-commands.py | 104 self.current_device = device 115 if not self.current_device: 135 if self.current_device and len(self.current_device) > 0: 136 largs.insert(0, self.current_device) 257 if self.current_device == str(serial): 262 self.current_device = str(serial)
|