/external/webrtc/webrtc/sound/ |
H A D | soundsysteminterface.cc | 18 SoundSystemInterface::SoundDeviceLocatorList *devices) { 19 for (SoundDeviceLocatorList::iterator i = devices->begin(); 20 i != devices->end(); 26 devices->clear(); 17 ClearSoundDeviceLocatorList( SoundSystemInterface::SoundDeviceLocatorList *devices) argument
|
H A D | soundsystemproxy.cc | 16 SoundDeviceLocatorList *devices) { 17 return wrapped_ ? wrapped_->EnumeratePlaybackDevices(devices) : false; 21 SoundDeviceLocatorList *devices) { 22 return wrapped_ ? wrapped_->EnumerateCaptureDevices(devices) : false; 15 EnumeratePlaybackDevices( SoundDeviceLocatorList *devices) argument 20 EnumerateCaptureDevices( SoundDeviceLocatorList *devices) argument
|
H A D | nullsoundsystem.cc | 109 SoundSystemInterface::SoundDeviceLocatorList *devices) { 110 ClearSoundDeviceLocatorList(devices); 113 devices->push_back(device); 118 SoundSystemInterface::SoundDeviceLocatorList *devices) { 119 ClearSoundDeviceLocatorList(devices); 122 devices->push_back(device); 108 EnumeratePlaybackDevices( SoundSystemInterface::SoundDeviceLocatorList *devices) argument 117 EnumerateCaptureDevices( SoundSystemInterface::SoundDeviceLocatorList *devices) argument
|
H A D | soundsysteminterface.h | 27 // 1) Concurrent enumeration and opening of devices from different threads. 76 static void ClearSoundDeviceLocatorList(SoundDeviceLocatorList *devices); 83 // Enumerates the available devices. (Any pre-existing locators in the lists 85 virtual bool EnumeratePlaybackDevices(SoundDeviceLocatorList *devices) = 0; 86 virtual bool EnumerateCaptureDevices(SoundDeviceLocatorList *devices) = 0;
|
H A D | soundsystemproxy.h | 28 bool EnumeratePlaybackDevices(SoundDeviceLocatorList *devices) override; 29 bool EnumerateCaptureDevices(SoundDeviceLocatorList *devices) override;
|
/external/webrtc/talk/media/devices/ |
H A D | dummydevicemanager.h | 34 #include "talk/media/devices/fakedevicemanager.h" 41 std::vector<std::string> devices; local 42 devices.push_back(DeviceManagerInterface::kDefaultDeviceName); 43 SetAudioInputDevices(devices); 44 SetAudioOutputDevices(devices); 45 SetVideoCaptureDevices(devices);
|
H A D | devicemanager.cc | 28 #include "talk/media/devices/devicemanager.h" 32 #include "talk/media/devices/deviceinfo.h" 33 #include "talk/media/devices/filevideocapturer.h" 34 #include "talk/media/devices/yuvframescapturer.h" 94 std::vector<Device> devices; local 96 if (GetAudioInputDevices(&devices) && !devices.empty()) { 99 if (GetAudioOutputDevices(&devices) && !devices.empty()) { 102 if (GetVideoCaptureDevices(&devices) 108 GetAudioInputDevices(std::vector<Device>* devices) argument 112 GetAudioOutputDevices(std::vector<Device>* devices) argument 124 GetVideoCaptureDevices(std::vector<Device>* devices) argument 144 std::vector<Device> devices; local 287 std::vector<Device> devices; local 306 std::vector<Device> devices; local 354 FilterDevices(std::vector<Device>* devices, const char* const exclusion_list[]) argument [all...] |
/external/chromium-trace/catapult/telemetry/telemetry/internal/platform/ |
H A D | device_finder.py | 5 """Finds devices that can be controlled by telemetry.""" 21 """Returns a list of all available devices.""" 22 devices = [] 24 devices.extend(device.FindAllAvailableDevices(options)) 25 return devices 29 """Returns a list of devices matching the options.""" 30 devices = [] 34 devices = _GetAllAvailableDevices(options) 36 devices = android_device.FindAllAvailableDevices(options) 38 devices [all...] |
H A D | gpu_info_unittest.py | 14 'devices': [ 34 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[ [all...] |
H A D | system_info_unittest.py | 17 'devices': [ 27 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') 38 'devices': [ 55 'devices': [{'vendor_id': 1000, 'device_id': 2000,
|
/external/chromium-trace/catapult/telemetry/third_party/pyserial/serial/tools/ |
H A D | list_ports_posix.py | 34 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/deqp/android/scripts/ |
H A D | install.py | 55 def installToDevices (devices, doParallel): 56 padLen = max([len(device.model) for device in devices])+1 58 common.parallelApply(installToDevice, [(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) 70 parser.add_argument('-a', '--all', dest='all', action="store_true", help="Install to all devices.") 78 devices = common.getDevices(common.ADB_BIN) variable 79 if len(devices) == 0: 80 common.die('No devices connecte 91 devices = common.getDevices(common.ADB_BIN) variable 93 devices = [dev for dev in devices if dev.serial in args.serial] variable [all...] |
/external/v8/build/android/ |
H A D | host_heartbeat.py | 7 """Sends a heart beat pulse to the currently online Android devices. 8 This heart beat lets the devices know that they are connected to a host. 25 devices = device_utils.DeviceUtils.HealthyDevices(blacklist=None) 26 for d in devices:
|
H A D | adb_logcat_monitor.py | 7 """Saves logcats from all connected devices. 11 This script will repeatedly poll adb for new devices and save logcats 29 devices = {} variable 44 process, logcat_num = devices[device_id] 64 devices[device_id] = (process, logcat_num + 1) 77 list of devices or an empty list on timeout 81 out, err = subprocess.Popen([adb_cmd, 'devices'], 88 logging.warning('"adb devices" command timed out') 91 logging.exception('Exception from "adb devices"') 109 # Set up the alarm for calling 'adb devices' [all...] |
/external/chromium-trace/catapult/devil/devil/android/ |
H A D | device_list.py | 5 """A module to keep track of devices across builds.""" 13 """Returns a list of devices. 16 file_name: the file name containing a list of devices. 26 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/openssh/ |
H A D | auth2-chall.c | 65 KbdintDevice *devices[] = { variable 82 char *devices; member in struct:KbdintAuthctxt 95 for (i = 0; devices[i] != NULL; i++) 96 if (strcmp(devices[i]->name, devname) == 0) { 97 for (j = i; devices[j] != NULL; j++) 98 devices[j] = devices[j+1]; 119 for (i = 0; devices[i]; i++) { 122 buffer_append(&b, devices[i]->name, 123 strlen(devices[ [all...] |
/external/libdrm/tests/ |
H A D | drmdevice.c | 67 drmDevicePtr *devices; local 78 devices = calloc(max_devices, sizeof(drmDevicePtr)); 79 if (devices == NULL) { 84 ret = drmGetDevices(devices, max_devices); 87 free(devices); 92 print_device_info(devices[i], i); 95 if (devices[i]->available_nodes & 1 << j) { 96 fd = open(devices[i]->nodes[j], O_RDONLY | O_CLOEXEC, 0); 109 drmFreeDevices(devices, ret); 110 free(devices); [all...] |
/external/chromium-trace/catapult/devil/devil/android/tools/ |
H A D | script_common.py | 16 devices = device_utils.DeviceUtils.HealthyDevices(blacklist) 17 if not devices: 21 available = set(str(d) for d in devices) 28 return devices
|
H A D | script_common_test.py | 22 devices = [ 27 return_value=devices): 29 devices, 33 devices = [ 38 return_value=devices):
|
H A D | adb_run_shell_cmd.py | 17 'Run an adb shell command on selected devices') 19 parser.add_argument('-d', '--device', action='append', dest='devices', 21 help='Device to run cmd on. Runs on all devices if not ' 22 'specified. Set multiple times for multiple devices') 34 devices = device_utils.DeviceUtils.HealthyDevices( 35 blacklist=args.blacklist_file, device_arg=args.devices) 37 p_out = (device_utils.DeviceUtils.parallel(devices).RunShellCommand( 42 for device, output in zip(devices, p_out):
|
/external/autotest/client/common_lib/cros/fake_device_server/ |
H A D | devices_unittest.py | 7 """Unit tests for devices.py.""" 14 from fake_device_server import devices namespace 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() 75 self.assertTrue('devices' i [all...] |
/external/autotest/server/site_tests/audio_AudioRoutingUSB/ |
H A D | audio_AudioRoutingUSB.py | 73 devices = set() 76 devices.add(line[1:]) 77 logging.info('opened devices: %s', devices) 78 if len(devices) != 1: 80 return devices.pop()
|
/external/chromium-trace/catapult/devil/devil/utils/ |
H A D | parallelizer_test.py | 86 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/deqp/external/vulkancts/framework/vulkan/ |
H A D | vkDeviceUtil.cpp | 86 const vector<VkPhysicalDevice> devices = enumeratePhysicalDevices(vkInstance, instance); local 88 if (devices.empty()) 89 TCU_THROW(NotSupportedError, "No Vulkan devices available"); 91 if (!de::inBounds(cmdLine.getVKDeviceId(), 1, (int)devices.size()+1)) 94 return devices[(size_t)(cmdLine.getVKDeviceId()-1)];
|
/external/autotest/client/site_tests/platform_CrosDisksDBus/ |
H A D | platform_CrosDisksDBus.py | 96 # Check if EnumerateDevices method returns a list of devices. 97 devices = self.cros_disks.enumerate_devices() 98 for device in devices: 106 # of 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 [all...] |