Lines Matching refs:device
59 using cricket::Device;
77 virtual cricket::VideoCapturer* Create(const cricket::Device& device) {
125 std::vector<Device> devices;
126 // Ensure that calls to video device work if COM is not yet initialized.
155 std::vector<Device> audio_ins, audio_outs, video_ins;
156 std::vector<cricket::Device> video_in_devs;
157 cricket::Device def_video;
173 Device device;
176 cricket::DeviceManagerInterface::kDefaultDeviceName, &device));
177 EXPECT_EQ("-1", device.id);
179 cricket::DeviceManagerInterface::kDefaultDeviceName, &device));
180 EXPECT_EQ("-1", device.id);
181 EXPECT_FALSE(dm->GetAudioInputDevice("_NOT A REAL DEVICE_", &device));
182 EXPECT_FALSE(dm->GetAudioOutputDevice("_NOT A REAL DEVICE_", &device));
185 // Test that we get the video capture device by name properly.
188 Device device;
190 EXPECT_FALSE(dm->GetVideoCaptureDevice("_NOT A REAL DEVICE_", &device));
191 std::vector<Device> video_ins;
194 // Get the default device with the parameter kDefaultDeviceName.
196 cricket::DeviceManagerInterface::kDefaultDeviceName, &device));
198 // Get the first device with the parameter video_ins[0].name.
199 EXPECT_TRUE(dm->GetVideoCaptureDevice(video_ins[0].name, &device));
200 EXPECT_EQ(device.name, video_ins[0].name);
201 EXPECT_EQ(device.id, video_ins[0].id);
208 Device device;
211 EXPECT_TRUE(dm->GetVideoCaptureDevice(test_file, &device));
212 EXPECT_TRUE(cricket::FileVideoCapturer::IsFileVideoCapturerDevice(device));
218 std::vector<Device> audio_ins, audio_outs, video_ins;
219 audio_ins.push_back(Device(imaginary, imaginary));
220 audio_outs.push_back(Device(imaginary, imaginary));
221 video_ins.push_back(Device(imaginary, imaginary));
237 static bool CompareDeviceList(std::vector<Device>& devices,
272 std::vector<Device> devices;
274 devices.push_back(Device(kTotalDevicesName[i], i));
295 bool CheckIsV4L2Device(const std::string& device) {
296 return std::find(device_paths_.begin(), device_paths_.end(), device)
314 "/sys/class/video4linux/video0/name", "Video Device 1"));
316 "/sys/class/video4linux/video1/model", "Bad Device"));
319 "Video Device 2"));
323 std::vector<Device> video_ins;
327 EXPECT_EQ("Video Device 1", video_ins.at(0).name);
328 EXPECT_EQ("Video Device 2", video_ins.at(1).name);
342 "param1: value1\nname: Video Device 1\n param2: value2\n"));
345 "param1: value1\nname: Bad Device\n param2: value2\n"));
348 "param1: value1\nname: Video Device 2\n param2: value2\n"));
352 std::vector<Device> video_ins;
356 EXPECT_EQ("Video Device 1", video_ins.at(0).name);
357 EXPECT_EQ("Video Device 2", video_ins.at(1).name);
373 std::vector<Device> video_ins;
430 Device device("white", "white_id");
431 dm_->SetVideoCaptureDeviceMaxFormat(device.name, kHdFormat);
433 dm_->CreateVideoCapturer(device));
441 const Device device("regular", "regular_id");
443 dm_->CreateVideoCapturer(device));
451 const Device device("un_white", "un_white_id");
452 dm_->SetVideoCaptureDeviceMaxFormat(device.name, kHdFormat);
453 dm_->ClearVideoCaptureDeviceMaxFormat(device.name);
455 dm_->CreateVideoCapturer(device));
463 const Device device("any_device", "any_device");
466 dm_->CreateVideoCapturer(device));