Home
last modified time | relevance | path

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

/frameworks/base/libs/usb/tests/AccessoryChat/accessorychat/
Daccessorychat.c32 struct usb_device *sDevice = NULL; variable
38 while (sDevice && ret >= 0) { in read_thread()
41 ret = usb_device_bulk_transfer(sDevice, endpoint, buffer, sizeof(buffer), 1000); in read_thread()
61 if (!line || !sDevice) in write_thread()
63 ret = usb_device_bulk_transfer(sDevice, endpoint, line, strlen(line), 1000); in write_thread()
102 if (!sDevice && (productId == 0x2D00 || productId == 0x2D01)) { in usb_device_added()
110 sDevice = device; in usb_device_added()
169 if (device != sDevice) in usb_device_added()
176 if (sDevice && !strcmp(usb_device_get_name(sDevice), devname)) { in usb_device_removed()
177 usb_device_close(sDevice); in usb_device_removed()
[all …]
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
DUiDevice.java67 private static UiDevice sDevice; field in UiDevice
117 if (sDevice == null) { in getInstance()
118 sDevice = new UiDevice(); in getInstance()
120 return sDevice; in getInstance()