Home
last modified time | relevance | path

Searched refs:device_id (Results 1 – 25 of 76) sorted by relevance

1234

/external/autotest/client/common_lib/cros/fake_device_server/
Dcommands.py46 def new_device(self, device_id): argument
55 self.device_commands[device_id] = {}
58 def remove_device(self, device_id): argument
64 del self.device_commands[device_id]
74 device_id = command_resource.get('deviceId', None)
75 if not device_id:
79 if device_id not in self.device_commands:
81 400, 'Unknown device with id %s' % device_id)
95 self.device_commands[device_id][command_id] = command_resource
118 device_id = kwargs.get('deviceId', None)
[all …]
Ddevices.py53 def _handle_state_patch(self, device_id, api_key, data): argument
133 device_id = args.pop(0) if args else None
135 if device_id is None or operation != 'patchState':
140 self._handle_state_patch(device_id, api_key, data)
141 return {'state': self.resource.get_data_val(device_id,
173 device_id, _, _ = common_util.parse_common_args(args, kwargs)
182 device_id, data)
183 new_device = self.resource.update_data_val(device_id, api_key,
/external/webrtc/talk/media/webrtc/
Dfakewebrtcdeviceinfo.h47 void AddDevice(const std::string& device_name, const std::string& device_id) { in AddDevice() argument
48 devices_.push_back(Device(device_name, device_id)); in AddDevice()
50 void AddCapability(const std::string& device_id, in AddCapability() argument
53 reinterpret_cast<const char*>(device_id.c_str())); in AddCapability()
63 char* device_id, in GetDeviceName() argument
71 rtc::strcpyn(reinterpret_cast<char*>(device_id), device_id_len, in GetDeviceName()
79 virtual int32_t NumberOfCapabilities(const char* device_id) { in NumberOfCapabilities() argument
80 Device* dev = GetDeviceById(device_id); in NumberOfCapabilities()
84 virtual int32_t GetCapability(const char* device_id, in GetCapability() argument
87 Device* dev = GetDeviceById(device_id); in GetCapability()
[all …]
/external/libweave/src/notification/
Dnotification_parser_unittest.cc43 "deviceId": "device_id", in TEST_F()
46 "deviceId": "device_id", in TEST_F()
61 "deviceId": "device_id", in TEST_F()
84 std::string device_id; in TEST_F() local
85 EXPECT_CALL(delegate_, OnDeviceDeleted(_)).WillOnce(SaveArg<0>(&device_id)); in TEST_F()
87 EXPECT_EQ("some_device_id", device_id); in TEST_F()
93 "deviceId": "device_id", in TEST_F()
96 "deviceId": "device_id", in TEST_F()
115 "deviceId": "device_id", in TEST_F()
118 "deviceId": "device_id", in TEST_F()
[all …]
/external/opencv3/samples/gpu/
Ddriver_api_stereo_multi.cpp56 struct Worker { void operator()(int device_id) const; };
203 void Worker::operator()(int device_id) const in operator ()()
205 contextOn(device_id); in operator ()()
207 bm[device_id]->compute(d_left[device_id], d_right[device_id], d_result[device_id]); in operator ()()
209 std::cout << "GPU #" << device_id << " (" << DeviceInfo().name() in operator ()()
Dmulti.cpp47 struct Worker { void operator()(int device_id) const; };
79 void Worker::operator()(int device_id) const in operator ()()
81 setDevice(device_id); in operator ()()
99 std::cout << "GPU #" << device_id << " (" << DeviceInfo().name() << "): " in operator ()()
Ddriver_api_multi.cpp54 struct Worker { void operator()(int device_id) const; };
121 void Worker::operator()(int device_id) const in operator ()()
124 safeCall(cuCtxPushCurrent(contexts[device_id])); in operator ()()
142 std::cout << "GPU #" << device_id << " (" << DeviceInfo().name() << "): " in operator ()()
/external/autotest/client/site_tests/buffet_IntermittentConnectivity/
Dbuffet_IntermittentConnectivity.py23 device_id = self._helper.register_with_server()
24 self._helper.check_buffet_is_polling(device_id)
32 expected_device_id=device_id,
40 expected_device_id=device_id,
42 self._helper.check_buffet_is_polling(device_id)
/external/libdrm/radeon/
Dradeon_cs_gem.c60 uint32_t device_id; member
344 bof_t *bcs, *blob, *array, *bo, *size, *handle, *device_id, *root; in cs_gem_dump_bof() local
349 root = device_id = bcs = blob = array = bo = size = handle = NULL; in cs_gem_dump_bof()
353 device_id = bof_int32(csm->device_id); in cs_gem_dump_bof()
354 if (device_id == NULL) in cs_gem_dump_bof()
356 if (bof_object_set(root, "device_id", device_id)) in cs_gem_dump_bof()
358 bof_decref(device_id); in cs_gem_dump_bof()
359 device_id = NULL; in cs_gem_dump_bof()
414 sprintf(tmp, "d-0x%04X-%08d.bof", csm->device_id, csm->nbof++); in cs_gem_dump_bof()
422 bof_decref(device_id); in cs_gem_dump_bof()
[all …]
/external/autotest/client/site_tests/buffet_RefreshAccessToken/
Dbuffet_RefreshAccessToken.py22 device_id = self._helper.register_with_server()
23 self._helper.check_buffet_is_polling(device_id)
30 self._helper.check_buffet_is_polling(device_id)
32 buffet_tester.STATUS_CONNECTED, expected_device_id=device_id)
/external/autotest/client/site_tests/buffet_RestartWhenRegistered/
Dbuffet_RestartWhenRegistered.py22 device_id = self._helper.register_with_server()
23 self._helper.check_buffet_is_polling(device_id)
29 self._helper.check_buffet_is_polling(device_id)
31 buffet_tester.STATUS_CONNECTED, expected_device_id=device_id)
/external/autotest/client/common_lib/cros/tendo/
Dbuffet_tester.py131 actual_device_id = buffet.device_id
150 def check_buffet_is_polling(self, device_id, timeout_seconds=30): argument
162 'deviceId': device_id,
166 self._command_client.create_command(device_id, command_resource)
216 device_id = dbus_util.dbus2primitive(
219 device_resource = self._device_client.get_device(device_id)
227 expected_device_id=device_id,
229 return device_id
/external/libweave/src/
Dconfig_unittest.cc69 EXPECT_FALSE(GetSettings().device_id.empty()); in TEST_F()
93 "device_id": "state_device_id" in TEST_F()
99 EXPECT_FALSE(GetSettings().device_id.empty()); in TEST_F()
100 EXPECT_NE(GetSettings().cloud_id, GetSettings().device_id); in TEST_F()
104 "device_id": "state_device_id", in TEST_F()
111 EXPECT_EQ("state_device_id", GetSettings().device_id); in TEST_F()
138 "device_id": "state_device_id", in TEST_F()
166 EXPECT_EQ("state_device_id", GetSettings().device_id); in TEST_F()
243 EXPECT_EQ("set_device_id", GetSettings().device_id); in TEST_F()
/external/chromium-trace/catapult/telemetry/telemetry/internal/platform/
Dandroid_device.py30 def __init__(self, device_id, enable_performance_mode=True): argument
32 name='Android device %s' % device_id, guid=device_id)
33 self._device_id = device_id
42 def device_id(self): member in AndroidDevice
126 '\n'.join([' --device=%s' % d.device_id for d in devices]))
Dgpu_device.py19 def __init__(self, vendor_id, device_id, vendor_string, device_string): argument
21 self._device_id = device_id
61 def device_id(self): member in GPUDevice
/external/chromium-trace/catapult/telemetry/third_party/webpagereplay/
Dadb_install_cert.py42 def __init__(self, device_id, cert_name, cert_path): argument
45 self.device_id = device_id
60 if self.device_id:
61 cmd.extend(['-s', self.device_id])
185 logging.info('Installing %s on %s', self.cert_path, self.device_id)
235 cert_installer = AndroidCertInstaller(args.device_id, args.cert_name,
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/boto/cognito/sync/
Dlayer1.py371 dataset_name, device_id): argument
393 identity_pool_id, identity_id, dataset_name, device_id)
397 dataset_name, device_id): argument
419 identity_pool_id, identity_id, dataset_name, device_id)
423 sync_session_token, device_id=None, argument
470 if device_id is not None:
471 params['DeviceId'] = device_id
/external/autotest/client/common_lib/cros/fake_device_server/client_lib/
Dcommands.py35 def list_commands(self, device_id): argument
40 request = urllib2.Request(self.get_url(params={'deviceId':device_id}),
69 def create_command(self, device_id, data): argument
76 data['deviceId'] = device_id
/external/autotest/client/tests/kvm/tests/
Dpci_hotplug.py83 device_id = test_type + "-" + virt_utils.generate_random_id()
87 pci_add_cmd = "device_add id=%s,driver=%s" % (device_id,
107 controller_id = "controller-" + device_id
122 (device_id, tested_model, driver_id))
133 if not device_id in after_add:
147 cmd = "device_del %s" % device_id
Dnic_bonding.py51 device_id = vm.get_peer(vm.netdev_id[vlan])
52 vm.monitor.cmd("set_link %s down" % device_id)
54 vm.monitor.cmd("set_link %s up" % device_id)
/external/webrtc/webrtc/modules/video_capture/windows/
Dvideo_capture_factory_windows.cc26 const char* device_id) { in Create() argument
27 if (device_id == NULL) in Create()
32 if (capture->Init(id, device_id) != 0) { in Create()
/external/autotest/client/site_tests/buffet_InvalidCredentials/
Dbuffet_InvalidCredentials.py22 device_id = self._helper.register_with_server()
23 self._helper.check_buffet_is_polling(device_id)
32 expected_device_id=device_id,
/external/skia/platform_tools/android/apps/visualbenchsdl/src/main/java/org/libsdl/app/
DSDLActivity.java438 public static native int onNativePadDown(int device_id, int keycode); in onNativePadDown() argument
439 public static native int onNativePadUp(int device_id, int keycode); in onNativePadUp() argument
440 public static native void onNativeJoy(int device_id, int axis, in onNativeJoy() argument
442 public static native void onNativeHat(int device_id, int hat_id, in onNativeHat() argument
454 public static native int nativeAddJoystick(int device_id, String name, in nativeAddJoystick() argument
457 public static native int nativeRemoveJoystick(int device_id); in nativeRemoveJoystick() argument
1513 public int device_id; field in SDLJoystickHandler_API12.SDLJoystick
1552 joystick.device_id = deviceIds[i]; in pollInputDevices()
1572 SDLActivity.nativeAddJoystick(joystick.device_id, joystick.name, 0, -1, in pollInputDevices()
1581 int device_id = mJoysticks.get(i).device_id; in pollInputDevices() local
[all …]
/external/autotest/client/site_tests/buffet_Registration/
Dbuffet_Registration.py22 device_id = self._helper.register_with_server()
23 self._helper.check_buffet_is_polling(device_id)
/external/mesa3d/src/gallium/winsys/i915/sw/
Di915_sw_winsys.c13 i915_sw_get_device_id(unsigned int *device_id) in i915_sw_get_device_id() argument
16 *device_id = 0x27A2; in i915_sw_get_device_id()

1234