Home
last modified time | relevance | path

Searched refs:devices (Results 1 – 25 of 727) sorted by relevance

12345678910>>...30

/external/deqp/android/scripts/
Dinstall.py55 def installToDevices (devices, doParallel): argument
56 padLen = max([len(device.model) for device in devices])+1
58 …(device, ("(%s):%s" % (device.model, ' ' * (padLen - len(device.model))))) for device in devices]);
60 common.serialApply(installToDevice, [(device, ) for device in devices]);
63 devices = common.getDevices(common.ADB_BIN)
64 installToDevices(devices, doParallel)
78 devices = common.getDevices(common.ADB_BIN) variable
79 if len(devices) == 0:
81 elif len(devices) == 1:
82 installToDevice(devices[0])
[all …]
/external/webrtc/talk/media/devices/
Ddevicemanager.cc94 std::vector<Device> devices; in GetCapabilities() local
96 if (GetAudioInputDevices(&devices) && !devices.empty()) { in GetCapabilities()
99 if (GetAudioOutputDevices(&devices) && !devices.empty()) { in GetCapabilities()
102 if (GetVideoCaptureDevices(&devices) && !devices.empty()) { in GetCapabilities()
108 bool DeviceManager::GetAudioInputDevices(std::vector<Device>* devices) { in GetAudioInputDevices() argument
109 return GetAudioDevices(true, devices); in GetAudioInputDevices()
112 bool DeviceManager::GetAudioOutputDevices(std::vector<Device>* devices) { in GetAudioOutputDevices() argument
113 return GetAudioDevices(false, devices); in GetAudioOutputDevices()
124 bool DeviceManager::GetVideoCaptureDevices(std::vector<Device>* devices) { in GetVideoCaptureDevices() argument
125 devices->clear(); in GetVideoCaptureDevices()
[all …]
Dwin32devicemanager.cc146 std::vector<Device> devices; in GetDefaultVideoCaptureDevice() local
147 ret = (GetVideoCaptureDevices(&devices) && !devices.empty()); in GetDefaultVideoCaptureDevice()
149 *device = devices[0]; in GetDefaultVideoCaptureDevice()
150 for (size_t i = 0; i < devices.size(); ++i) { in GetDefaultVideoCaptureDevice()
151 if (strnicmp(devices[i].id.c_str(), kUsbDevicePathPrefix, in GetDefaultVideoCaptureDevice()
153 *device = devices[i]; in GetDefaultVideoCaptureDevice()
175 bool Win32DeviceManager::GetVideoCaptureDevices(std::vector<Device>* devices) { in GetVideoCaptureDevices() argument
176 devices->clear(); in GetVideoCaptureDevices()
177 if (!GetDevices(CLSID_VideoInputDeviceCategory, devices)) { in GetVideoCaptureDevices()
180 return FilterDevices(devices, kFilteredVideoDevicesName); in GetVideoCaptureDevices()
[all …]
Dfakedevicemanager.h52 std::vector<Device> devices; in GetCapabilities() local
167 void SetAudioInputDevices(const std::vector<std::string>& devices) { in SetAudioInputDevices() argument
169 for (size_t i = 0; i < devices.size(); ++i) { in SetAudioInputDevices()
170 input_devices_.push_back(Device(devices[i], in SetAudioInputDevices()
175 void SetAudioOutputDevices(const std::vector<std::string>& devices) { in SetAudioOutputDevices() argument
177 for (size_t i = 0; i < devices.size(); ++i) { in SetAudioOutputDevices()
178 output_devices_.push_back(Device(devices[i], in SetAudioOutputDevices()
183 void SetVideoCaptureDevices(const std::vector<std::string>& devices) { in SetVideoCaptureDevices() argument
185 for (size_t i = 0; i < devices.size(); ++i) { in SetVideoCaptureDevices()
186 vidcap_devices_.push_back(Device(devices[i], in SetVideoCaptureDevices()
[all …]
Ddevicemanager_unittest.cc125 std::vector<Device> devices; in TEST() local
128 EXPECT_TRUE(dm->GetVideoCaptureDevices(&devices)); in TEST()
237 static bool CompareDeviceList(std::vector<Device>& devices, in CompareDeviceList() argument
239 if (list_size != static_cast<int>(devices.size())) { in CompareDeviceList()
243 if (devices[i].name.compare(device_list[i]) != 0) { in CompareDeviceList()
272 std::vector<Device> devices; in TEST() local
274 devices.push_back(Device(kTotalDevicesName[i], i)); in TEST()
276 EXPECT_TRUE(CompareDeviceList(devices, kTotalDevicesName, in TEST()
279 EXPECT_TRUE(DeviceManager::FilterDevices(&devices, NULL)); in TEST()
281 EXPECT_TRUE(CompareDeviceList(devices, kTotalDevicesName, in TEST()
[all …]
Ddummydevicemanager.h41 std::vector<std::string> devices; in DummyDeviceManager() local
42 devices.push_back(DeviceManagerInterface::kDefaultDeviceName); in DummyDeviceManager()
43 SetAudioInputDevices(devices); in DummyDeviceManager()
44 SetAudioOutputDevices(devices); in DummyDeviceManager()
45 SetVideoCaptureDevices(devices); in DummyDeviceManager()
/external/chromium-trace/catapult/telemetry/third_party/pyserial/serial/tools/
Dlist_ports_posix.py34 devices = glob.glob('/dev/com*')
35 return [(d, d, d) for d in devices]
39 devices = glob.glob('/dev/cua*')
40 return [(d, d, d) for d in devices]
46 devices = glob.glob('/dev/cuad*')
47 return [(d, d, d) for d in devices]
55 devices = glob.glob('/dev/dty*')
56 return [(d, d, d) for d in devices]
61 devices = glob.glob('/dev/ttyf*')
62 return [(d, d, d) for d in devices]
[all …]
/external/openssh/
Dauth2-chall.c65 KbdintDevice *devices[] = { variable
82 char *devices; member
95 for (i = 0; devices[i] != NULL; i++) in remove_kbdint_device()
96 if (strcmp(devices[i]->name, devname) == 0) { in remove_kbdint_device()
97 for (j = i; devices[j] != NULL; j++) in remove_kbdint_device()
98 devices[j] = devices[j+1]; in remove_kbdint_device()
119 for (i = 0; devices[i]; i++) { in kbdint_alloc()
122 buffer_append(&b, devices[i]->name, in kbdint_alloc()
123 strlen(devices[i]->name)); in kbdint_alloc()
126 kbdintctxt->devices = xstrdup(buffer_ptr(&b)); in kbdint_alloc()
[all …]
/external/chromium-trace/catapult/telemetry/telemetry/internal/platform/
Ddevice_finder.py22 devices = []
24 devices.extend(device.FindAllAvailableDevices(options))
25 return devices
30 devices = []
34 devices = _GetAllAvailableDevices(options)
36 devices = android_device.FindAllAvailableDevices(options)
38 devices = _GetAllAvailableDevices(options)
39 devices = [d for d in devices if d.guid ==
42 devices.sort(key=lambda device: device.name)
43 return devices
Dgpu_info_unittest.py34 self.assertTrue(len(info.devices) == 2)
35 self.assertTrue(isinstance(info.devices[0], gpu_device.GPUDevice))
36 self.assertEquals(info.devices[0].vendor_id, 1000)
37 self.assertEquals(info.devices[0].device_id, 2000)
38 self.assertEquals(info.devices[0].vendor_string, 'a')
39 self.assertEquals(info.devices[0].device_string, 'b')
40 self.assertTrue(isinstance(info.devices[1], gpu_device.GPUDevice))
41 self.assertEquals(info.devices[1].vendor_id, 3000)
42 self.assertEquals(info.devices[1].device_id, 4000)
43 self.assertEquals(info.devices[1].vendor_string, 'k')
[all …]
Dandroid_device_unittest.py118 devices = android_device.FindAllAvailableDevices(finder_options)
120 self.assertIsNotNone(devices)
121 self.assertEquals(len(devices), 0)
129 devices = android_device.FindAllAvailableDevices(finder_options)
131 self.assertIsNotNone(devices)
132 self.assertEquals(len(devices), 1)
133 self.assertEquals('015d14fec128220c', devices[0].device_id)
144 devices = android_device.FindAllAvailableDevices(finder_options)
146 self.assertIsNotNone(devices)
147 self.assertEquals(len(devices), 3)
[all …]
Dandroid_device.py119 devices = AndroidDevice.GetAllConnectedDevices(blacklist)
120 if len(devices) == 0:
123 if len(devices) > 1:
126 '\n'.join([' --device=%s' % d.device_id for d in devices]))
128 return devices[0]
172 devices = []
179 devices = AndroidDevice.GetAllConnectedDevices(blacklist)
181 if not devices and _HasValidAdb():
188 return devices
Dsystem_info_unittest.py27 self.assertTrue(len(info.gpu.devices) == 1)
28 self.assertTrue(isinstance(info.gpu.devices[0], gpu_device.GPUDevice))
29 self.assertEquals(info.gpu.devices[0].vendor_id, 1000)
30 self.assertEquals(info.gpu.devices[0].device_id, 2000)
31 self.assertEquals(info.gpu.devices[0].vendor_string, 'a')
32 self.assertEquals(info.gpu.devices[0].device_string, 'b')
/external/chromium-trace/catapult/devil/devil/utils/
Dparallelizer_test.py86 devices = [ParallelizerTestObject(True) for _ in xrange(0, 10)]
87 self.assertTrue(all(d.doReturnTheThing() for d in devices))
88 ParallelizerTestObject.parallel(devices).doSetTheThing(False).pFinish(1)
89 self.assertTrue(not any(d.doReturnTheThing() for d in devices))
92 devices = [ParallelizerTestObject(True) for _ in xrange(0, 10)]
94 devices).doReturnTheThing().pGet(1)
100 devices = [ParallelizerTestObject(Exception('thing %d' % i))
102 p = ParallelizerTestObject.parallel(devices).doRaiseTheThing()
114 devices = [
121 p = ParallelizerTestObject.parallel(devices)
[all …]
/external/libdrm/tests/
Ddrmdevice.c67 drmDevicePtr *devices; in main() local
78 devices = calloc(max_devices, sizeof(drmDevicePtr)); in main()
79 if (devices == NULL) { in main()
84 ret = drmGetDevices(devices, max_devices); in main()
87 free(devices); in main()
92 print_device_info(devices[i], i); in main()
95 if (devices[i]->available_nodes & 1 << j) { in main()
96 fd = open(devices[i]->nodes[j], O_RDONLY | O_CLOEXEC, 0); in main()
109 drmFreeDevices(devices, ret); in main()
110 free(devices); in main()
/external/autotest/client/common_lib/cros/fake_device_server/
Ddevices_unittest.py14 from fake_device_server import devices
31 self.devices = devices.Devices(
44 new_device = self.devices.create_device(None, good_device_config)
52 self.devices.create_device, None, bad_device_config)
58 returned_json = self.devices.GET(1234)
63 self.devices.GET, 1235)
72 returned_json = self.devices.GET()
85 self.devices.DELETE(12345)
93 self.devices.DELETE, 12500)
/external/autotest/client/site_tests/platform_CrosDisksDBus/
Dplatform_CrosDisksDBus.py97 devices = self.cros_disks.enumerate_devices()
98 for device in devices:
107 devices = self.cros_disks.enumerate_auto_mountable_devices()
108 for device in devices:
117 devices = self.cros_disks.enumerate_auto_mountable_devices()
118 for device in devices:
128 devices = self.cros_disks.enumerate_auto_mountable_devices()
129 for device in devices:
138 devices = self.cros_disks.enumerate_devices()
139 for device in devices:
/external/webrtc/webrtc/tools/rtcbot/
Dbotmanager.js177 this.listDevices_(function (devices) { argument
178 for (var i = 0; i < devices.length; i++) {
179 if (!this.connectedDevices_[devices[i]]) {
180 this.connectedDevices_[devices[i]] = devices[i];
181 callback(this.connectedDevices_[devices[i]]);
185 if (devices.length == 0) {
196 var devices = [];
209 devices.push(tempList[i].split("\t")[0]);
212 callback(devices);
/external/libpcap/
DREADME.macosx2 to the BPF devices to capture packets with libpcap and allows users with
3 write access to the BPF devices to send packets with libpcap.
5 On some systems that use BPF, the BPF devices live on the root file
6 system, and the permissions and/or ownership on those devices can be
8 devices.
10 On newer versions of FreeBSD, the BPF devices live on devfs, and devfs
12 devices to give users other than root permission to read or write those
13 devices.
15 On Mac OS X, the BPF devices live on devfs, but the OS X version of
18 those devices.
[all …]
/external/webrtc/webrtc/sound/
Dnullsoundsystem.cc109 SoundSystemInterface::SoundDeviceLocatorList *devices) { in EnumeratePlaybackDevices() argument
110 ClearSoundDeviceLocatorList(devices); in EnumeratePlaybackDevices()
113 devices->push_back(device); in EnumeratePlaybackDevices()
118 SoundSystemInterface::SoundDeviceLocatorList *devices) { in EnumerateCaptureDevices() argument
119 ClearSoundDeviceLocatorList(devices); in EnumerateCaptureDevices()
122 devices->push_back(device); in EnumerateCaptureDevices()
Dsoundsysteminterface.cc18 SoundSystemInterface::SoundDeviceLocatorList *devices) { in ClearSoundDeviceLocatorList() argument
19 for (SoundDeviceLocatorList::iterator i = devices->begin(); in ClearSoundDeviceLocatorList()
20 i != devices->end(); in ClearSoundDeviceLocatorList()
26 devices->clear(); in ClearSoundDeviceLocatorList()
/external/autotest/client/profilers/powertop/src/
Durbnum.c48 static struct device_data *devices; variable
53 ptr = devices; in cachunk_urbs()
68 ptr = devices; in update_urbnum()
96 ptr->next = devices; in update_urbnum()
97 devices = ptr; in update_urbnum()
161 dev = devices; in count_usb_urbs()
177 dev = devices; in display_usb_activity()
191 dev = devices; in usb_activity_hint()
202 dev = devices; in usb_activity_hint()
/external/ImageMagick/MagickCore/
Dopencl.c198 if (clEnv->devices != (MagickCLDevice *) NULL) in RelinquishMagickCLDevices()
201 clEnv->devices[i]=RelinquishMagickCLDevice(clEnv->devices[i]); in RelinquishMagickCLDevices()
202 clEnv->devices=(MagickCLDevice *) RelinquishMagickMemory(clEnv->devices); in RelinquishMagickCLDevices()
380 clEnv->devices[i]->enabled=MagickFalse; in SelectOpenCLDevice()
384 device=clEnv->devices[i]; in SelectOpenCLDevice()
394 other_device=clEnv->devices[j]; in SelectOpenCLDevice()
799 device=clEnv->devices[i]; in LoadOpenCLDeviceBenchmark()
916 clEnv->devices[i]->score=1.0; in LoadOpenCLBenchmarks()
958 clEnv->devices[i]->enabled=MagickFalse; in AutoSelectOpenCLDevices()
973 if (clEnv->devices[i]->score == MAGICKCORE_OPENCL_UNDEFINED_SCORE) in AutoSelectOpenCLDevices()
[all …]
/external/chromium-trace/catapult/devil/devil/android/
Ddevice_list.py26 devices = json.load(f)
27 if not isinstance(devices, list) or not all(isinstance(d, basestring)
28 for d in devices):
29 logging.warning('Unrecognized device file format: %s', devices)
31 return [d for d in devices if d != '(error)']
/external/v8/build/android/
Dadb_logcat_monitor.py29 devices = {} variable
44 process, logcat_num = devices[device_id]
64 devices[device_id] = (process, logcat_num + 1)
128 if not device_id in devices:
130 devices[device_id] = (None, 0)
132 for device in devices:
142 for process, _ in devices.itervalues():

12345678910>>...30