/external/chromium_org/third_party/libjingle/source/talk/media/devices/ |
D | devicemanager.cc | 120 std::vector<Device> devices; in GetCapabilities() local 122 if (GetAudioInputDevices(&devices) && !devices.empty()) { in GetCapabilities() 125 if (GetAudioOutputDevices(&devices) && !devices.empty()) { in GetCapabilities() 128 if (GetVideoCaptureDevices(&devices) && !devices.empty()) { in GetCapabilities() 134 bool DeviceManager::GetAudioInputDevices(std::vector<Device>* devices) { in GetAudioInputDevices() argument 135 return GetAudioDevices(true, devices); in GetAudioInputDevices() 138 bool DeviceManager::GetAudioOutputDevices(std::vector<Device>* devices) { in GetAudioOutputDevices() argument 139 return GetAudioDevices(false, devices); in GetAudioOutputDevices() 150 bool DeviceManager::GetVideoCaptureDevices(std::vector<Device>* devices) { in GetVideoCaptureDevices() argument 151 devices->clear(); in GetVideoCaptureDevices() [all …]
|
D | win32devicemanager.cc | 135 std::vector<Device> devices; in GetDefaultVideoCaptureDevice() local 136 ret = (GetVideoCaptureDevices(&devices) && !devices.empty()); in GetDefaultVideoCaptureDevice() 138 *device = devices[0]; in GetDefaultVideoCaptureDevice() 139 for (size_t i = 0; i < devices.size(); ++i) { in GetDefaultVideoCaptureDevice() 140 if (strnicmp(devices[i].id.c_str(), kUsbDevicePathPrefix, in GetDefaultVideoCaptureDevice() 142 *device = devices[i]; in GetDefaultVideoCaptureDevice() 164 bool Win32DeviceManager::GetVideoCaptureDevices(std::vector<Device>* devices) { in GetVideoCaptureDevices() argument 165 devices->clear(); in GetVideoCaptureDevices() 166 if (!GetDevices(CLSID_VideoInputDeviceCategory, devices)) { in GetVideoCaptureDevices() 169 return FilterDevices(devices, kFilteredVideoDevicesName); in GetVideoCaptureDevices() [all …]
|
D | fakedevicemanager.h | 51 std::vector<Device> devices; in GetCapabilities() local 152 void SetAudioInputDevices(const std::vector<std::string>& devices) { in SetAudioInputDevices() argument 154 for (size_t i = 0; i < devices.size(); ++i) { in SetAudioInputDevices() 155 input_devices_.push_back(Device(devices[i], in SetAudioInputDevices() 160 void SetAudioOutputDevices(const std::vector<std::string>& devices) { in SetAudioOutputDevices() argument 162 for (size_t i = 0; i < devices.size(); ++i) { in SetAudioOutputDevices() 163 output_devices_.push_back(Device(devices[i], in SetAudioOutputDevices() 168 void SetVideoCaptureDevices(const std::vector<std::string>& devices) { in SetVideoCaptureDevices() argument 170 for (size_t i = 0; i < devices.size(); ++i) { in SetVideoCaptureDevices() 171 vidcap_devices_.push_back(Device(devices[i], in SetVideoCaptureDevices() [all …]
|
D | dummydevicemanager.h | 41 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()
|
D | devicemanager_unittest.cc | 108 std::vector<Device> devices; in TEST() local 111 EXPECT_TRUE(dm->GetVideoCaptureDevices(&devices)); in TEST() 220 static bool CompareDeviceList(std::vector<Device>& devices, in CompareDeviceList() argument 222 if (list_size != static_cast<int>(devices.size())) { in CompareDeviceList() 226 if (devices[i].name.compare(device_list[i]) != 0) { in CompareDeviceList() 255 std::vector<Device> devices; in TEST() local 257 devices.push_back(Device(kTotalDevicesName[i], i)); in TEST() 259 EXPECT_TRUE(CompareDeviceList(devices, kTotalDevicesName, in TEST() 262 EXPECT_TRUE(DeviceManager::FilterDevices(&devices, NULL)); in TEST() 264 EXPECT_TRUE(CompareDeviceList(devices, kTotalDevicesName, in TEST() [all …]
|
/external/openssh/ |
D | auth2-chall.c | 64 KbdintDevice *devices[] = { variable 81 char *devices; member 93 for (i = 0; devices[i] != NULL; i++) in remove_kbdint_device() 94 if (strcmp(devices[i]->name, devname) == 0) { in remove_kbdint_device() 95 for (j = i; devices[j] != NULL; j++) in remove_kbdint_device() 96 devices[j] = devices[j+1]; in remove_kbdint_device() 117 for (i = 0; devices[i]; i++) { in kbdint_alloc() 120 buffer_append(&b, devices[i]->name, in kbdint_alloc() 121 strlen(devices[i]->name)); in kbdint_alloc() 124 kbdintctxt->devices = xstrdup(buffer_ptr(&b)); in kbdint_alloc() [all …]
|
/external/chromium_org/chrome/browser/extensions/api/signed_in_devices/ |
D | id_mapping_helper_unittest.cc | 32 ScopedVector<DeviceInfo> devices; in TEST() local 34 devices.push_back(new DeviceInfo( in TEST() 38 devices.push_back(new DeviceInfo( in TEST() 44 CreateMappingForUnmappedDevices(&(devices.get()), &dictionary); in TEST() 46 std::string public_id1 = devices[0]->public_id(); in TEST() 47 std::string public_id2 = devices[1]->public_id(); in TEST() 55 devices.push_back(new DeviceInfo( in TEST() 59 CreateMappingForUnmappedDevices(&(devices.get()), &dictionary); in TEST() 62 EXPECT_EQ(public_id1, devices[0]->public_id()); in TEST() 63 EXPECT_EQ(public_id2, devices[1]->public_id()); in TEST() [all …]
|
/external/chromium_org/ui/events/x/ |
D | device_list_cache_x.cc | 33 if (xp->second.devices) in ~DeviceListCacheX() 34 XFreeDeviceList(xp->second.devices); in ~DeviceListCacheX() 38 if (xip->second.devices) in ~DeviceListCacheX() 39 XIFreeDeviceInfo(xip->second.devices); in ~DeviceListCacheX() 49 if (new_x_dev_list.devices) in UpdateDeviceList() 50 XFreeDeviceList(new_x_dev_list.devices); in UpdateDeviceList() 51 new_x_dev_list.devices = XListInputDevices(display, &new_x_dev_list.count); in UpdateDeviceList() 54 if (new_xi_dev_list.devices) in UpdateDeviceList() 55 XIFreeDeviceInfo(new_xi_dev_list.devices); in UpdateDeviceList() 56 new_xi_dev_list.devices = IsXI2Available() ? in UpdateDeviceList() [all …]
|
/external/chromium_org/chrome/browser/storage_monitor/ |
D | storage_monitor_unittest.cc | 86 std::vector<StorageInfo> devices = monitor.GetAllAvailableStorages(); in TEST() local 87 EXPECT_EQ(0U, devices.size()); in TEST() 101 std::vector<StorageInfo> devices = monitor.GetAllAvailableStorages(); in TEST() local 102 ASSERT_EQ(1U, devices.size()); in TEST() 103 EXPECT_EQ(kDeviceId1, devices[0].device_id()); in TEST() 104 EXPECT_EQ(kDeviceName1, devices[0].name()); in TEST() 105 EXPECT_EQ(kDevicePath1.value(), devices[0].location()); in TEST() 114 devices = monitor.GetAllAvailableStorages(); in TEST() 115 ASSERT_EQ(2U, devices.size()); in TEST() 116 EXPECT_EQ(kDeviceId1, devices[0].device_id()); in TEST() [all …]
|
D | media_storage_util.cc | 44 StorageInfoList devices = in FindRemovableStorageLocationById() local 46 for (StorageInfoList::const_iterator it = devices.begin(); in FindRemovableStorageLocationById() 47 it != devices.end(); ++it) { in FindRemovableStorageLocationById() 55 void FilterAttachedDevicesOnFileThread(MediaStorageUtil::DeviceIdSet* devices) { in FilterAttachedDevicesOnFileThread() argument 59 for (MediaStorageUtil::DeviceIdSet::const_iterator it = devices->begin(); in FilterAttachedDevicesOnFileThread() 60 it != devices->end(); in FilterAttachedDevicesOnFileThread() 86 devices->erase(*it); in FilterAttachedDevicesOnFileThread() 121 void MediaStorageUtil::FilterAttachedDevices(DeviceIdSet* devices, in FilterAttachedDevices() argument 124 FilterAttachedDevicesOnFileThread(devices); in FilterAttachedDevices() 131 devices), in FilterAttachedDevices() [all …]
|
/external/chromium_org/chrome/browser/ui/webui/options/ |
D | media_devices_selection_handler.cc | 54 const content::MediaStreamDevices& devices) { in OnUpdateAudioDevices() argument 55 UpdateDevicesMenu(AUDIO, devices); in OnUpdateAudioDevices() 59 const content::MediaStreamDevices& devices) { in OnUpdateVideoDevices() argument 60 UpdateDevicesMenu(VIDEO, devices); in OnUpdateVideoDevices() 86 DeviceType type, const content::MediaStreamDevices& devices) { in UpdateDevicesMenu() argument 106 for (size_t i = 0; i < devices.size(); ++i) { in UpdateDevicesMenu() 108 entry->SetString("name", devices[i].name); in UpdateDevicesMenu() 109 entry->SetString("id", devices[i].id); in UpdateDevicesMenu() 111 if (devices[i].id == default_device) in UpdateDevicesMenu() 117 if (!devices.empty() && default_id.empty()) in UpdateDevicesMenu() [all …]
|
/external/chromium_org/chrome/common/extensions/docs/examples/api/deviceInfo/basic/ |
D | popup.js | 5 function dumpDevices(devices) { argument 7 $('#deviceinfos').append(outputDevicesToList(devices)); 10 function outputDevicesToList(devices) { argument 19 for (i = 0; i < devices.length; i++) { 21 "<td>" + devices[i].name + "</td>" + 22 "<td>" + devices[i].os + "</td>" + 23 "<td>" + devices[i].id + "</td>" + 24 "<td>" + devices[i].type + "</td>" + 25 "<td>" + devices[i].chromeVersion + "</td>" +
|
/external/chromium_org/chrome/browser/resources/chromeos/ |
D | image_burner.js | 116 gotoInitialState: function(devices) { argument 117 if (devices.length == 0) { 119 } else if (devices.length == 1) { 123 if (devices[0].type == 'sd') 158 this.devices = []; property in DeviceSelection 166 if (this.devices.length == 0) { 169 this.selectDevice(this.devices[0].devicePath); 233 this.devices = newDevices; 236 if (this.devices.length > 0) { 237 for (var i = 0; i < this.devices.length; i++) { [all …]
|
/external/chromium/third_party/libjingle/source/talk/session/phone/ |
D | devicemanager.cc | 203 std::vector<Device> devices; in GetCapabilities() local 205 if (GetAudioInputDevices(&devices) && !devices.empty()) { in GetCapabilities() 208 if (GetAudioOutputDevices(&devices) && !devices.empty()) { in GetCapabilities() 211 if (GetVideoCaptureDevices(&devices) && !devices.empty()) { in GetCapabilities() 217 bool DeviceManager::GetAudioInputDevices(std::vector<Device>* devices) { in GetAudioInputDevices() argument 218 return GetAudioDevicesByPlatform(true, devices); in GetAudioInputDevices() 221 bool DeviceManager::GetAudioOutputDevices(std::vector<Device>* devices) { in GetAudioOutputDevices() argument 222 return GetAudioDevicesByPlatform(false, devices); in GetAudioOutputDevices() 239 bool DeviceManager::GetVideoCaptureDevices(std::vector<Device>* devices) { in GetVideoCaptureDevices() argument 240 devices->clear(); in GetVideoCaptureDevices() [all …]
|
/external/bluetooth/bluedroid/stack/hid/ |
D | hidh_conn.c | 112 hh_cb.devices[xx].in_use = FALSE ; in hidh_conn_reg() 113 hh_cb.devices[xx].conn.conn_state = HID_CONN_STATE_UNUSED; in hidh_conn_reg() 130 tHID_CONN *p_hcon = &hh_cb.devices[dhandle].conn; in hidh_conn_disconnect() 216 p_hcon = &hh_cb.devices[i].conn; in hidh_l2cif_connect_ind() 217 p_dev = &hh_cb.devices[i]; in hidh_l2cif_connect_ind() 300 hh_cb.devices[p_tle->param].conn_tries++; in hidh_proc_repage_timeout() 301 hh_cb.callback( (UINT8) p_tle->param, hh_cb.devices[p_tle->param].addr, in hidh_proc_repage_timeout() 302 HID_HDEV_EVT_RETRYING, hh_cb.devices[p_tle->param].conn_tries, NULL ) ; in hidh_proc_repage_timeout() 324 dhandle = ((UINT32)p_dev - (UINT32)&(hh_cb.devices[0]))/ sizeof(tHID_HOST_DEV_CTB); in hidh_sec_check_complete_orig() 331 …if ((p_dev->conn.intr_cid = L2CA_ConnectReq (HID_PSM_INTERRUPT, hh_cb.devices[dhandle].addr)) == 0) in hidh_sec_check_complete_orig() [all …]
|
D | hidh_api.c | 345 if((hh_cb.devices[i].in_use) && in HID_HostAddDev() 346 (!memcmp(addr, hh_cb.devices[i].addr, BD_ADDR_LEN))) in HID_HostAddDev() 354 if( !hh_cb.devices[i].in_use) in HID_HostAddDev() 362 if (!hh_cb.devices[i].in_use) in HID_HostAddDev() 364 hh_cb.devices[i].in_use = TRUE; in HID_HostAddDev() 365 memcpy( hh_cb.devices[i].addr, addr, sizeof( BD_ADDR ) ) ; in HID_HostAddDev() 366 hh_cb.devices[i].state = HID_DEV_NO_CONN; in HID_HostAddDev() 367 hh_cb.devices[i].conn_tries = 0 ; in HID_HostAddDev() 371 hh_cb.devices[i].attr_mask = attr_mask; in HID_HostAddDev() 393 if( (dev_handle >= HID_HOST_MAX_DEVICES) || (!hh_cb.devices[dev_handle].in_use) ) in HID_HostRemoveDev() [all …]
|
/external/chromium_org/tools/telemetry/telemetry/core/ |
D | gpu_info_unittest.py | 32 self.assertTrue(len(info.devices) == 2) 33 self.assertTrue(isinstance(info.devices[0], gpu_device.GPUDevice)) 34 self.assertEquals(info.devices[0].vendor_id, 1000) 35 self.assertEquals(info.devices[0].device_id, 2000) 36 self.assertEquals(info.devices[0].vendor_string, 'a') 37 self.assertEquals(info.devices[0].device_string, 'b') 38 self.assertTrue(isinstance(info.devices[1], gpu_device.GPUDevice)) 39 self.assertEquals(info.devices[1].vendor_id, 3000) 40 self.assertEquals(info.devices[1].device_id, 4000) 41 self.assertEquals(info.devices[1].vendor_string, 'k') [all …]
|
/external/chromium_org/ppapi/proxy/ |
D | device_enumeration_resource_helper.cc | 40 PP_Resource* devices, in EnumerateDevices0_2() argument 44 if (!devices) in EnumerateDevices0_2() 53 AsWeakPtr(), devices, callback)); in EnumerateDevices0_2() 75 std::vector<DeviceRefData> devices; in EnumerateDevicesSync() local 80 &devices); in EnumerateDevicesSync() 83 result = WriteToArrayOutput(devices, output); in EnumerateDevicesSync() 139 const std::vector<DeviceRefData>& devices) { in OnPluginMsgEnumerateDevicesReply0_2() argument 150 OBJECT_IS_PROXY, owner_->pp_instance(), devices); in OnPluginMsgEnumerateDevicesReply0_2() 160 const std::vector<DeviceRefData>& devices) { in OnPluginMsgEnumerateDevicesReply() argument 171 result = WriteToArrayOutput(devices, output); in OnPluginMsgEnumerateDevicesReply() [all …]
|
/external/chromium_org/content/browser/renderer_host/media/ |
D | video_capture_manager_unittest.cc | 146 StreamDeviceInfoArray devices; in TEST_F() local 150 .Times(1).WillOnce(SaveArg<1>(&devices)); in TEST_F() 159 int video_session_id = vcm_->Open(devices.front()); in TEST_F() 172 StreamDeviceInfoArray devices; in TEST_F() local 176 .Times(1).WillOnce(SaveArg<1>(&devices)); in TEST_F() 185 int video_session_id_first = vcm_->Open(devices.front()); in TEST_F() 189 int video_session_id_second = vcm_->Open(devices.front()); in TEST_F() 202 StreamDeviceInfoArray devices; in TEST_F() local 208 .Times(1).WillOnce(SaveArg<1>(&devices)); in TEST_F() 211 ASSERT_EQ(devices.size(), 2u); in TEST_F() [all …]
|
D | media_stream_manager.cc | 259 StreamDeviceInfoArray devices; member in content::MediaStreamManager::DeviceRequest 429 for (StreamDeviceInfoArray::iterator device_it = request->devices.begin(); in CancelRequest() 430 device_it != request->devices.end(); ++device_it) { in CancelRequest() 478 StreamDeviceInfoArray& devices = request->devices; in StopStreamDevice() local 479 for (StreamDeviceInfoArray::iterator device_it = devices.begin(); in StopStreamDevice() 480 device_it != devices.end(); ++device_it) { in StopStreamDevice() 496 StreamDeviceInfoArray* devices = &request->devices; in StopDevice() local 497 StreamDeviceInfoArray::iterator device_it = devices->begin(); in StopDevice() 498 while (device_it != devices->end()) { in StopDevice() 506 device_it = devices->erase(device_it); in StopDevice() [all …]
|
/external/chromium_org/chrome/browser/media/ |
D | media_capture_devices_dispatcher.cc | 51 const content::MediaStreamDevices& devices, in FindDeviceWithId() argument 53 content::MediaStreamDevices::const_iterator iter = devices.begin(); in FindDeviceWithId() 54 for (; iter != devices.end(); ++iter) { in FindDeviceWithId() 126 content::MediaStreamDevices& devices, in GetDevicesForDesktopCapture() argument 135 devices.push_back(content::MediaStreamDevice( in GetDevicesForDesktopCapture() 139 devices.push_back(content::MediaStreamDevice( in GetDevicesForDesktopCapture() 271 content::MediaStreamDevices devices; in ProcessDesktopCaptureAccessRequest() local 275 callback.Run(devices, ui.Pass()); in ProcessDesktopCaptureAccessRequest() 295 callback.Run(devices, ui.Pass()); in ProcessDesktopCaptureAccessRequest() 312 devices, media_id, capture_audio, true, in ProcessDesktopCaptureAccessRequest() [all …]
|
/external/chromium_org/build/android/buildbot/ |
D | bb_device_status_check.py | 129 devices = [] 132 devices = f.read().splitlines() 136 return devices 301 devices = android_commands.GetAttachedDevices() 303 if set(expected_devices) != set(devices): 310 devices = android_commands.GetAttachedDevices() 311 if set(expected_devices) == set(devices): 315 devices = android_commands.GetAttachedDevices() 323 if devices: 325 zip(*[DeviceInfo(dev, options) for dev in devices])) [all …]
|
/external/chromium_org/device/bluetooth/ |
D | bluetooth_adapter.cc | 23 DeviceList devices; in GetDevices() local 26 devices.push_back(const_cast<BluetoothDevice *>(*i)); in GetDevices() 28 return devices; in GetDevices() 32 ConstDeviceList devices; in GetDevices() local 36 devices.push_back(iter->second); in GetDevices() 38 return devices; in GetDevices()
|
/external/chromium_org/build/android/ |
D | adb_install_apk.py | 61 devices = android_commands.GetAttachedDevices() 62 if not devices: 68 pool = multiprocessing.Pool(len(devices)) 70 pool.map(_InstallApk, zip([options.apk] * len(devices), 71 [options.apk_package] * len(devices), 72 [options.keep_data] * len(devices), 73 devices))
|
/external/chromium_org/chrome/browser/extensions/api/dial/ |
D | dial_apitest.cc | 51 extensions::DialRegistry::DeviceList devices; in IN_PROC_BROWSER_TEST_F() local 61 devices.push_back(device1); in IN_PROC_BROWSER_TEST_F() 62 api->SendEventOnUIThread(devices); in IN_PROC_BROWSER_TEST_F() 69 devices.push_back(device2); in IN_PROC_BROWSER_TEST_F() 70 api->SendEventOnUIThread(devices); in IN_PROC_BROWSER_TEST_F() 77 devices.push_back(device3); in IN_PROC_BROWSER_TEST_F() 78 api->SendEventOnUIThread(devices); in IN_PROC_BROWSER_TEST_F()
|