OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:sDevice
(Results
1 - 5
of
5
) sorted by null
/frameworks/base/libs/usb/tests/AccessoryChat/accessorychat/
accessorychat.c
32
struct usb_device *
sDevice
= NULL;
38
while (
sDevice
&& ret >= 0) {
41
ret = usb_device_bulk_transfer(
sDevice
, endpoint, buffer, sizeof(buffer), 1000);
61
if (!line || !
sDevice
)
63
ret = usb_device_bulk_transfer(
sDevice
, endpoint, line, strlen(line), 1000);
102
if (!
sDevice
&& (productId == 0x2D00 || productId == 0x2D01)) {
110
sDevice
= device;
169
if (device !=
sDevice
)
176
if (
sDevice
&& !strcmp(usb_device_get_name(
sDevice
), devname))
[
all
...]
/cts/apps/cts-usb-accessory/
cts-usb-accessory.c
32
struct usb_device *
sDevice
= NULL;
40
while (
sDevice
&& ret >= 0) {
42
ret = usb_device_bulk_transfer(
sDevice
, endpoints[0], buffer, sizeof(buffer), 1000);
55
usb_device_bulk_transfer(
sDevice
, endpoints[1], message, strlen(message), 1000);
94
if (!
sDevice
&& (vendorId == 0x18D1 && (productId == 0x2D00 || productId == 0x2D01))) {
103
sDevice
= device;
165
if (device !=
sDevice
)
172
if (
sDevice
&& !strcmp(usb_device_get_name(
sDevice
), devname)) {
173
usb_device_close(
sDevice
);
[
all
...]
/frameworks/base/core/jni/
android_hardware_location_ActivityRecognitionHardware.cpp
30
static activity_recognition_device_t*
sDevice
= NULL;
143
error = activity_recognition_open(&sModule->common, &
sDevice
);
160
sDevice
->register_activity_callback(
sDevice
, &sCallbacks);
173
if (
sDevice
!= NULL) {
174
sDevice
->register_activity_callback(
sDevice
, &sCallbacks);
184
if (
sDevice
== NULL) {
188
int error = activity_recognition_close(
sDevice
);
199
if (sModule != NULL &&
sDevice
!= NULL )
[
all
...]
/hardware/libhardware/tests/keymaster/
keymaster_test.cpp
344
ASSERT_EQ(0, keymaster_open(mod, &
sDevice
))
350
ASSERT_TRUE(
sDevice
->generate_keypair != NULL)
353
ASSERT_TRUE(
sDevice
->import_keypair != NULL)
356
ASSERT_TRUE(
sDevice
->get_keypair_public != NULL)
359
ASSERT_TRUE(
sDevice
->sign_data != NULL)
362
ASSERT_TRUE(
sDevice
->verify_data != NULL)
367
ASSERT_EQ(0, keymaster_close(
sDevice
));
371
static keymaster_device_t*
sDevice
;
374
keymaster_device_t* KeymasterBaseTest::
sDevice
= NULL;
406
sDevice
->generate_keypair(sDevice, key_type, ¶ms, &key_blob, &key_blob_length)
[
all
...]
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
UiDevice.java
64
private static UiDevice
sDevice
;
114
if (
sDevice
== null) {
115
sDevice
= new UiDevice();
117
return
sDevice
;
Completed in 179 milliseconds