/external/chromium_org/remoting/host/ |
D | curtain_mode_linux.cc | 65 XDeviceInfo* device_info = &devices[i]; in IsXvfbSession() local 66 if (device_info->use == IsXExtensionPointer) { in IsXvfbSession() 67 if (strcmp(device_info->name, "Xvfb mouse") == 0) { in IsXvfbSession() 69 } else if (strcmp(device_info->name, "Virtual core XTEST pointer") != 0) { in IsXvfbSession() 71 HOST_LOG << "Non Xvfb mouse found: " << device_info->name; in IsXvfbSession() 73 } else if (device_info->use == IsXExtensionKeyboard) { in IsXvfbSession() 74 if (strcmp(device_info->name, "Xvfb keyboard") == 0) { in IsXvfbSession() 76 } else if (strcmp(device_info->name, in IsXvfbSession() 79 HOST_LOG << "Non Xvfb keyboard found: " << device_info->name; in IsXvfbSession() 81 } else if (device_info->use == IsXPointer) { in IsXvfbSession() [all …]
|
/external/chromium_org/device/hid/ |
D | hid_service_linux.cc | 57 HidDeviceInfo device_info; in Connect() local 58 if (!GetDeviceInfo(device_id, &device_info)) in Connect() 63 device_info.device_id); in Connect() 67 return new HidConnectionLinux(device_info, dev_node); in Connect() 89 scoped_ptr<HidDeviceInfo> device_info(new HidDeviceInfo); in OnDeviceAdded() local 90 device_info->device_id = device_path; in OnDeviceAdded() 111 device_info->vendor_id = int_property; in OnDeviceAdded() 115 device_info->product_id = int_property; in OnDeviceAdded() 120 device_info->serial_number = str_property; in OnDeviceAdded() 124 device_info->product_name = str_property; in OnDeviceAdded() [all …]
|
D | hid_service_mac.cc | 121 void PopulateDeviceInfo(io_service_t service, HidDeviceInfo* device_info) { in PopulateDeviceInfo() argument 133 device_info->device_id = service_path; in PopulateDeviceInfo() 134 device_info->vendor_id = in PopulateDeviceInfo() 136 device_info->product_id = in PopulateDeviceInfo() 138 device_info->product_name = in PopulateDeviceInfo() 140 device_info->serial_number = in PopulateDeviceInfo() 143 hid_device, &device_info->has_report_id, &device_info->collections); in PopulateDeviceInfo() 144 device_info->max_input_report_size = in PopulateDeviceInfo() 146 if (device_info->has_report_id && device_info->max_input_report_size > 0) { in PopulateDeviceInfo() 147 device_info->max_input_report_size--; in PopulateDeviceInfo() [all …]
|
D | hid_service_win.cc | 196 HidDeviceInfo device_info; in PlatformAddDevice() local 197 device_info.device_id = device_path; in PlatformAddDevice() 230 device_info.vendor_id = attrib.VendorID; in PlatformAddDevice() 231 device_info.product_id = attrib.ProductID; in PlatformAddDevice() 243 device_info.max_input_report_size = capabilities.InputReportByteLength; in PlatformAddDevice() 244 device_info.max_output_report_size = capabilities.OutputReportByteLength; in PlatformAddDevice() 245 device_info.max_feature_report_size = in PlatformAddDevice() 276 device_info.has_report_id = true; in PlatformAddDevice() 278 device_info.collections.push_back(collection_info); in PlatformAddDevice() 283 if (device_info.max_input_report_size > 0) { in PlatformAddDevice() [all …]
|
D | hid_connection.cc | 41 bool FindCollectionByReportId(const HidDeviceInfo& device_info, in FindCollectionByReportId() argument 45 std::find_if(device_info.collections.begin(), in FindCollectionByReportId() 46 device_info.collections.end(), in FindCollectionByReportId() 48 if (collection_iter != device_info.collections.end()) { in FindCollectionByReportId() 58 bool HasProtectedCollection(const HidDeviceInfo& device_info) { in HasProtectedCollection() argument 59 return std::find_if(device_info.collections.begin(), in HasProtectedCollection() 60 device_info.collections.end(), in HasProtectedCollection() 61 CollectionIsProtected()) != device_info.collections.end(); in HasProtectedCollection() 66 HidConnection::HidConnection(const HidDeviceInfo& device_info) in HidConnection() argument 67 : device_info_(device_info), closed_(false) { in HidConnection() [all …]
|
D | hid_device_filter.cc | 41 bool HidDeviceFilter::Matches(const HidDeviceInfo& device_info) const { in Matches() 43 if (device_info.vendor_id != vendor_id_) { in Matches() 47 if (product_id_set_ && device_info.product_id != product_id_) { in Matches() 55 device_info.collections.begin(); in Matches() 56 i != device_info.collections.end() && !found_matching_collection; in Matches() 77 const HidDeviceInfo& device_info, in MatchesAny() argument 82 if (i->Matches(device_info)) { in MatchesAny()
|
D | hid_connection_linux.cc | 32 HidConnectionLinux::HidConnectionLinux(HidDeviceInfo device_info, in HidConnectionLinux() argument 34 : HidConnection(device_info) { in HidConnectionLinux() 114 DCHECK_GT(device_info().max_feature_report_size, 0); in PlatformGetFeatureReport() 116 new net::IOBufferWithSize(device_info().max_feature_report_size)); in PlatformGetFeatureReport() 150 size_t expected_report_size = device_info().max_input_report_size + 1; in OnFileCanReadWithoutBlocking() 153 if (!device_info().has_report_id) { in OnFileCanReadWithoutBlocking() 171 if (!device_info().has_report_id) { in OnFileCanReadWithoutBlocking()
|
/external/chromium_org/extensions/browser/api/hid/ |
D | hid_device_manager.cc | 54 device::HidDeviceInfo device_info; in GetApiDevices() local 56 if (hid_service->GetDeviceInfo(device_id, &device_info)) { in GetApiDevices() 58 !HidDeviceFilter::MatchesAny(device_info, filters)) { in GetApiDevices() 62 if (!HasPermission(extension, device_info)) { in GetApiDevices() 68 api_device_info.vendor_id = device_info.vendor_id; in GetApiDevices() 69 api_device_info.product_id = device_info.product_id; in GetApiDevices() 70 api_device_info.max_input_report_size = device_info.max_input_report_size; in GetApiDevices() 72 device_info.max_output_report_size; in GetApiDevices() 74 device_info.max_feature_report_size; in GetApiDevices() 77 collections_iter = device_info.collections.begin(); in GetApiDevices() [all …]
|
/external/chromium_org/content/renderer/media/ |
D | media_stream_video_capture_source_unittest.cc | 24 explicit MockVideoCapturerDelegate(const StreamDeviceInfo& device_info) in MockVideoCapturerDelegate() argument 25 : VideoCapturerDelegate(device_info) {} in MockVideoCapturerDelegate() 50 void InitWithDeviceInfo(const StreamDeviceInfo& device_info) { in InitWithDeviceInfo() argument 51 delegate_ = new MockVideoCapturerDelegate(device_info); in InitWithDeviceInfo() 53 device_info, in InitWithDeviceInfo() 102 StreamDeviceInfo device_info; in TEST_F() local 103 device_info.device.type = MEDIA_TAB_VIDEO_CAPTURE; in TEST_F() 104 InitWithDeviceInfo(device_info); in TEST_F() 118 StreamDeviceInfo device_info; in TEST_F() local 119 device_info.device.type = MEDIA_DESKTOP_VIDEO_CAPTURE; in TEST_F() [all …]
|
D | media_stream_dispatcher.cc | 19 bool RemoveStreamDeviceFromArray(const StreamDeviceInfo device_info, in RemoveStreamDeviceFromArray() argument 23 if (StreamDeviceInfo::IsEqual(*device_it, device_info)) { in RemoveStreamDeviceFromArray() 105 const StreamDeviceInfo& device_info) { in StopStreamDevice() argument 108 << ", {device_id = " << device_info.device.id << "}"; in StopStreamDevice() 116 if (RemoveStreamDeviceFromArray(device_info, &audio_array) || in StopStreamDevice() 117 RemoveStreamDeviceFromArray(device_info, &video_array)) { in StopStreamDevice() 129 device_info.device.id)); in StopStreamDevice() 292 const StreamDeviceInfo& device_info) { in OnDeviceStopped() argument 296 << ", {device_id = " << device_info.device.id << "})"; in OnDeviceStopped() 305 if (IsAudioInputMediaType(device_info.device.type)) in OnDeviceStopped() [all …]
|
D | media_stream_video_capturer_source.cc | 41 const StreamDeviceInfo& device_info) in VideoCapturerDelegate() argument 42 : session_id_(device_info.session_id), in VideoCapturerDelegate() 43 is_screen_cast_(device_info.device.type == MEDIA_TAB_VIDEO_CAPTURE || in VideoCapturerDelegate() 44 device_info.device.type == MEDIA_DESKTOP_VIDEO_CAPTURE) { in VideoCapturerDelegate() 210 const StreamDeviceInfo& device_info, in MediaStreamVideoCapturerSource() argument 214 SetDeviceInfo(device_info); in MediaStreamVideoCapturerSource() 238 if (device_info().device.type == MEDIA_TAB_VIDEO_CAPTURE || in StartSourceImpl() 239 device_info().device.type == MEDIA_DESKTOP_VIDEO_CAPTURE) { in StartSourceImpl()
|
/external/chromium_org/extensions/browser/api/usb_private/ |
D | usb_private_api.cc | 107 usb_private::DeviceInfo device_info; in AsyncWorkStart() local 108 device_info.vendor_id = device->vendor_id(); in AsyncWorkStart() 109 device_info.product_id = device->product_id(); in AsyncWorkStart() 111 const char* name = device::UsbIds::GetVendorName(device_info.vendor_id); in AsyncWorkStart() 113 device_info.vendor_name.reset(new std::string(name)); in AsyncWorkStart() 116 name = device::UsbIds::GetProductName(device_info.vendor_id, in AsyncWorkStart() 117 device_info.product_id); in AsyncWorkStart() 119 device_info.product_name.reset(new std::string(name)); in AsyncWorkStart() 124 device_info.manufacturer_string.reset( in AsyncWorkStart() 129 device_info.product_string.reset(new std::string(base::UTF16ToUTF8(utf16))); in AsyncWorkStart() [all …]
|
/external/chromium_org/ui/gfx/ |
D | screen_android.cc | 34 gfx::DeviceDisplayInfo device_info; in GetPrimaryDisplay() local 35 const float device_scale_factor = device_info.GetDIPScale(); in GetPrimaryDisplay() 40 gfx::Rect(device_info.GetPhysicalDisplayWidth() in GetPrimaryDisplay() 41 ? device_info.GetPhysicalDisplayWidth() in GetPrimaryDisplay() 42 : device_info.GetDisplayWidth(), in GetPrimaryDisplay() 43 device_info.GetPhysicalDisplayHeight() in GetPrimaryDisplay() 44 ? device_info.GetPhysicalDisplayHeight() in GetPrimaryDisplay() 45 : device_info.GetDisplayHeight()); in GetPrimaryDisplay() 52 display.SetRotationAsDegree(device_info.GetRotationDegrees()); in GetPrimaryDisplay()
|
/external/chromium_org/device/bluetooth/ |
D | bluetooth_task_manager_win.cc | 98 void GetDeviceState(const BLUETOOTH_DEVICE_INFO& device_info, in GetDeviceState() argument 100 state->name = base::SysWideToUTF8(device_info.szName); in GetDeviceState() 101 state->address = BluetoothAddressToCanonicalString(device_info.Address); in GetDeviceState() 102 state->bluetooth_class = device_info.ulClassofDevice; in GetDeviceState() 104 state->connected = !!device_info.fConnected; in GetDeviceState() 105 state->authenticated = !!device_info.fAuthenticated; in GetDeviceState() 434 BLUETOOTH_DEVICE_INFO device_info; in SearchClassicDevices() local 435 ZeroMemory(&device_info, sizeof(device_info)); in SearchClassicDevices() 436 device_info.dwSize = sizeof(BLUETOOTH_DEVICE_INFO); in SearchClassicDevices() 438 BluetoothFindFirstDevice(&device_search_params, &device_info); in SearchClassicDevices() [all …]
|
D | bluetooth_low_energy_win.cc | 249 scoped_ptr<device::win::BluetoothLowEnergyDeviceInfo>& device_info, in CollectBluetoothLowEnergyDeviceInstanceId() argument 274 device_info->id = base::SysWideToUTF8(instance_id.get()); in CollectBluetoothLowEnergyDeviceInstanceId() 282 scoped_ptr<device::win::BluetoothLowEnergyDeviceInfo>& device_info, in CollectBluetoothLowEnergyDeviceFriendlyName() argument 298 device_info->friendly_name = property_value->AsString(); in CollectBluetoothLowEnergyDeviceFriendlyName() 327 scoped_ptr<device::win::BluetoothLowEnergyDeviceInfo>& device_info, in CollectBluetoothLowEnergyDeviceAddress() argument 335 device_info->id, &device_info->address, error); in CollectBluetoothLowEnergyDeviceAddress() 341 scoped_ptr<device::win::BluetoothLowEnergyDeviceInfo>& device_info, in CollectBluetoothLowEnergyDeviceStatus() argument 357 device_info->connected = !(value->AsUint32() & DN_DEVICE_DISCONNECTED); in CollectBluetoothLowEnergyDeviceStatus() 361 device_info->visible = true; in CollectBluetoothLowEnergyDeviceStatus() 362 device_info->authenticated = true; in CollectBluetoothLowEnergyDeviceStatus() [all …]
|
/external/chromium_org/components/storage_monitor/ |
D | storage_monitor_linux_unittest.cc | 600 StorageInfo device_info; in TEST_F() local 601 EXPECT_TRUE(notifier()->GetStorageInfoForPath(test_path_a, &device_info)); in TEST_F() 602 EXPECT_EQ(GetDeviceId(kDeviceDCIM1), device_info.device_id()); in TEST_F() 603 EXPECT_EQ(test_path_a.value(), device_info.location()); in TEST_F() 604 EXPECT_EQ(88788ULL, device_info.total_size_in_bytes()); in TEST_F() 605 EXPECT_EQ(base::ASCIIToUTF16("volume label"), device_info.storage_label()); in TEST_F() 606 EXPECT_EQ(base::ASCIIToUTF16("vendor name"), device_info.vendor_name()); in TEST_F() 607 EXPECT_EQ(base::ASCIIToUTF16("model name"), device_info.model_name()); in TEST_F() 609 EXPECT_TRUE(notifier()->GetStorageInfoForPath(test_path_b, &device_info)); in TEST_F() 610 EXPECT_EQ(GetDeviceId(kDeviceNoDCIM), device_info.device_id()); in TEST_F() [all …]
|
/external/chromium_org/chrome/browser/extensions/api/signed_in_devices/ |
D | signed_in_devices_api_unittest.cc | 41 static DeviceInfo* CloneDeviceInfo(const DeviceInfo* device_info) { in CloneDeviceInfo() argument 42 return new DeviceInfo(device_info->guid(), in CloneDeviceInfo() 43 device_info->client_name(), in CloneDeviceInfo() 44 device_info->chrome_version(), in CloneDeviceInfo() 45 device_info->sync_user_agent(), in CloneDeviceInfo() 46 device_info->device_type(), in CloneDeviceInfo() 47 device_info->signin_scoped_device_id()); in CloneDeviceInfo() 171 DeviceInfo* device_info) { in VerifyDictionaryWithDeviceInfo() argument 173 device_info->set_public_id(public_id); in VerifyDictionaryWithDeviceInfo() 175 scoped_ptr<base::DictionaryValue> expected_value(device_info->ToValue()); in VerifyDictionaryWithDeviceInfo()
|
D | signed_in_devices_manager.cc | 30 void FillDeviceInfo(const DeviceInfo& device_info, in FillDeviceInfo() argument 32 api_device_info->id = device_info.public_id(); in FillDeviceInfo() 33 api_device_info->name = device_info.client_name(); in FillDeviceInfo() 35 device_info.GetOSString()); in FillDeviceInfo() 37 device_info.GetDeviceTypeString()); in FillDeviceInfo() 38 api_device_info->chrome_version = device_info.chrome_version(); in FillDeviceInfo()
|
/external/chromium_org/chrome/browser/media_galleries/win/ |
D | mtp_device_delegate_impl_win.cc | 66 const MTPDeviceDelegateImplWin::StorageDeviceInfo& device_info, in GetFileObjectIdFromPathOnBlockingPoolThread() argument 72 device_info.registered_device_path); in GetFileObjectIdFromPathOnBlockingPoolThread() 76 if (device_info.registered_device_path == file_path.value()) in GetFileObjectIdFromPathOnBlockingPoolThread() 77 return device_info.storage_object_id; in GetFileObjectIdFromPathOnBlockingPoolThread() 80 if (!base::FilePath(device_info.registered_device_path).AppendRelativePath( in GetFileObjectIdFromPathOnBlockingPoolThread() 87 base::string16 parent_id(device_info.storage_object_id); in GetFileObjectIdFromPathOnBlockingPoolThread() 104 const MTPDeviceDelegateImplWin::StorageDeviceInfo& device_info, in CreateFileEnumeratorOnBlockingPoolThread() argument 107 DCHECK(!device_info.registered_device_path.empty()); in CreateFileEnumeratorOnBlockingPoolThread() 111 device_info.registered_device_path); in CreateFileEnumeratorOnBlockingPoolThread() 116 GetFileObjectIdFromPathOnBlockingPoolThread(device_info, root); in CreateFileEnumeratorOnBlockingPoolThread() [all …]
|
/external/chromium_org/chrome/browser/ui/webui/ |
D | gcm_internals_ui.cc | 151 base::DictionaryValue* device_info = new base::DictionaryValue(); in ReturnResults() local 152 results.Set("deviceInfo", device_info); in ReturnResults() 154 device_info->SetBoolean("profileServiceCreated", profile_service != NULL); in ReturnResults() 155 device_info->SetBoolean("gcmEnabled", in ReturnResults() 158 device_info->SetString("signedInUserName", in ReturnResults() 163 device_info->SetBoolean("gcmClientCreated", stats->gcm_client_created); in ReturnResults() 164 device_info->SetString("gcmClientState", stats->gcm_client_state); in ReturnResults() 165 device_info->SetBoolean("connectionClientCreated", in ReturnResults() 167 device_info->SetString("registeredAppIds", in ReturnResults() 170 device_info->SetString("connectionState", stats->connection_state); in ReturnResults() [all …]
|
/external/chromium_org/media/audio/win/ |
D | audio_manager_win.cc | 75 static base::string16 GetDeviceAndDriverInfo(HDEVINFO device_info, in GetDeviceAndDriverInfo() argument 81 SetupDiGetDeviceInstallParams(device_info, device_data, in GetDeviceAndDriverInfo() 85 SetupDiSetDeviceInstallParams(device_info, device_data, in GetDeviceAndDriverInfo() 91 if (SetupDiBuildDriverInfoList(device_info, device_data, in GetDeviceAndDriverInfo() 93 if (SetupDiEnumDriverInfo(device_info, device_data, SPDIT_COMPATDRIVER, 0, in GetDeviceAndDriverInfo() 102 SetupDiDestroyDriverInfoList(device_info, device_data, SPDIT_COMPATDRIVER); in GetDeviceAndDriverInfo() 105 SetupDiSetDeviceInstallParams(device_info, device_data, in GetDeviceAndDriverInfo() 207 HDEVINFO device_info = SetupDiGetClassDevs( in GetAudioInputDeviceModel() local 209 if (device_info == INVALID_HANDLE_VALUE) in GetAudioInputDeviceModel() 215 while (SetupDiEnumDeviceInterfaces(device_info, 0, &AM_KSCATEGORY_AUDIO, in GetAudioInputDeviceModel() [all …]
|
/external/chromium_org/chrome/browser/devtools/device/ |
D | self_device_provider.cc | 38 AndroidDeviceManager::DeviceInfo device_info; in QueryDeviceInfo() local 39 device_info.model = kDeviceModel; in QueryDeviceInfo() 40 device_info.connected = true; in QueryDeviceInfo() 47 device_info.browser_info.push_back(browser_info); in QueryDeviceInfo() 50 FROM_HERE, base::Bind(callback, device_info)); in QueryDeviceInfo()
|
/external/chromium_org/third_party/skia/platform_tools/android/bin/ |
D | adb_list_devices.py | 39 device_info = [] 48 device_info.append(value) 49 return device_info 146 device_info = [serial, status] 147 device_info.extend(GetDeviceInfo(adb, serial, props_to_get)) 148 output_lines.append(device_info)
|
/external/skia/platform_tools/android/bin/ |
D | adb_list_devices.py | 39 device_info = [] 48 device_info.append(value) 49 return device_info 146 device_info = [serial, status] 147 device_info.extend(GetDeviceInfo(adb, serial, props_to_get)) 148 output_lines.append(device_info)
|
/external/chromium_org/components/sync_driver/ |
D | device_info_sync_service.cc | 68 const std::string& id = iter->GetSpecifics().device_info().cache_guid(); in MergeDataAndStartSyncing() 77 iter->GetSpecifics().device_info().has_backup_timestamp(); in MergeDataAndStartSyncing() 80 ? iter->GetSpecifics().device_info().backup_timestamp() in MergeDataAndStartSyncing() 173 sync_data.GetSpecifics().device_info().cache_guid(); in ProcessSyncChanges() 262 sync_data->GetSpecifics().device_info(); in UpdateBackupTime() 303 const sync_pb::DeviceInfoSpecifics& specifics = entity.device_info(); in CreateLocalData() 315 sync_data.GetSpecifics().device_info(); in CreateDeviceInfo() 328 << sync_data.GetSpecifics().device_info().client_name() in StoreSyncData() 337 << iter->second.GetSpecifics().device_info().client_name() in DeleteSyncData()
|