Home
last modified time | relevance | path

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

/frameworks/base/core/jni/
Dandroid_hardware_location_ActivityRecognitionHardware.cpp30 static activity_recognition_device_t* sDevice = NULL; variable
143 error = activity_recognition_open(&sModule->common, &sDevice); in class_init()
160 sDevice->register_activity_callback(sDevice, &sCallbacks); in class_init()
173 if (sDevice != NULL) { in initialize()
174 sDevice->register_activity_callback(sDevice, &sCallbacks); in initialize()
184 if (sDevice == NULL) { in release()
188 int error = activity_recognition_close(sDevice); in release()
199 if (sModule != NULL && sDevice != NULL ) { in is_supported()
249 return sDevice->enable_activity_event( in enable_activity_event()
250 sDevice, in enable_activity_event()
[all …]
/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()