Home
last modified time | relevance | path

Searched refs:device_index (Results 1 – 25 of 33) sorted by relevance

12

/external/tensorflow/tensorflow/python/framework/
Ddevice.py69 device_index=None): argument
89 self.device_index = device_index
97 self.device_index = None
167 self.device_index = int(y[1])
173 self.device_index = int(y[2])
193 if dev.device_index is not None:
194 self.device_index = dev.device_index
212 if self.device_index is not None:
213 device_index_string = str(self.device_index)
Ddevice_test.py39 device_type="CPU", device_index=2)
44 self.assertEqual(2, d.device_index)
47 d = device.DeviceSpec(device_type="GPU", device_index=0)
57 d.device_index = 0
63 d.device_index = 2
66 d.device_index = 1
69 d.device_index = None
99 self.assertEquals(None, d.device_index)
101 self.assertEquals(7, d.device_index)
103 self.assertEquals(7, d.device_index)
/external/adhd/cras/src/tests/
Dalsa_jack_unittest.cc206 unsigned int device_index, in run_test_with_elem_list() argument
221 device_index, in run_test_with_elem_list()
256 unsigned int device_index, in run_test_with_section() argument
272 device_index, in run_test_with_section()
418 int device_index, in run_gpio_jack_test() argument
438 jack_list = cras_alsa_jack_list_create(0, "c1", device_index, in run_gpio_jack_test()
456 int device_index = 1; in TEST() local
468 device_index, is_first_device, direction, should_create_jack, in TEST()
473 int device_index = 1; in TEST() local
485 device_index, is_first_device, direction, should_create_jack, in TEST()
[all …]
/external/webrtc/webrtc/tools/e2e_quality/audio/
Daudio_e2e_harness.cc75 int device_index; in RunHarness() local
76 for (device_index = 0; device_index < num_devices; device_index++) { in RunHarness()
77 ASSERT_EQ(0, hardware->GetPlayoutDeviceName(device_index, device_name, in RunHarness()
85 ASSERT_EQ(0, hardware->SetPlayoutDevice(device_index)); in RunHarness()
/external/webrtc/webrtc/modules/desktop_capture/win/
Dscreen_capture_utils.cc22 for (int device_index = 0;; ++device_index) { in GetScreenList() local
25 enum_result = EnumDisplayDevices(NULL, device_index, &device, 0); in GetScreenList()
36 screen.id = device_index; in GetScreenList()
/external/adhd/cras/src/server/
Dcras_alsa_card.c85 unsigned device_index, in create_iodev_for_device() argument
98 if (alsa_iodev_index(node->iodev) == device_index) { in create_iodev_for_device()
101 card_name, dev_name, dev_id, device_index); in create_iodev_for_device()
113 device_index, in create_iodev_for_device()
128 info->card_index, device_index); in create_iodev_for_device()
136 device_index); in create_iodev_for_device()
161 size_t device_index) in should_ignore_dev() argument
168 device_index); in should_ignore_dev()
Dcras_alsa_jack.c126 size_t device_index; member
437 target_device_name, card_name, jack_list->device_index); in gpio_jack_match_device()
445 jack_list->device_index); in gpio_jack_match_device()
836 int device_index; in hctl_jack_device_index() local
844 device_index = atoi(substr); in hctl_jack_device_index()
845 if (device_index < 0) in hctl_jack_device_index()
847 return (unsigned int)device_index; in hctl_jack_device_index()
925 if (hctl_jack_device_index(name) != jack_list->device_index) in find_jack_controls()
981 != jack_list->device_index) in find_jack_controls()
1025 snd_ctl_elem_id_set_device(elem_id, jack_list->device_index); in find_hctl_jack_for_section()
[all …]
Dcras_alsa_io.c135 uint32_t device_index; member
1566 size_t device_index, in set_iodev_name() argument
1578 device_index); in set_iodev_name()
1591 dev->info.stable_id = SuperFastHash((const char *)&device_index, in set_iodev_name()
1592 sizeof(device_index), in set_iodev_name()
1934 size_t device_index, in alsa_iodev_create() argument
1960 aio->device_index = device_index; in alsa_iodev_create()
1984 device_index); in alsa_iodev_create()
2054 set_iodev_name(iodev, card_name, dev_name, card_index, device_index, in alsa_iodev_create()
2061 device_index, in alsa_iodev_create()
[all …]
Dcras_alsa_io.h41 size_t device_index,
Dcras_alsa_jack.h51 unsigned int device_index,
/external/adhd/cras/src/server/config/
Dcras_device_blacklist.c51 unsigned device_index) in cras_device_blacklist_check() argument
59 vendor_id, product_id, desc_checksum, device_index); in cras_device_blacklist_check()
Dcras_device_blacklist.h48 unsigned device_index);
/external/autotest/client/site_tests/audio_AlsaAPI/
Daudio_AlsaAPI.py62 for card_index, device_index in self._devices:
63 device = 'hw:%s,%s' % (card_index, device_index)
/external/webrtc/webrtc/modules/audio_device/linux/
Daudio_mixer_manager_pulse_linux.h89 bool GetSinkInfoByIndex(int device_index)const ;
90 bool GetSourceInfoByIndex(int device_index) const;
Daudio_mixer_manager_pulse_linux.cc1131 int device_index) const { in GetSinkInfoByIndex()
1136 device_index, PaSinkInfoCallback, (void*) this); in GetSinkInfoByIndex()
1143 int device_index) const { in GetSourceInfoByIndex()
1148 _paContext, device_index, PaSourceInfoCallback, (void*) this); in GetSourceInfoByIndex()
/external/tensorflow/tensorflow/contrib/verbs/
Drdma.cc122 int dev_num, device_index, device_to_open = 0; in set_device() local
131 for (device_index = 0; device_index < dev_num; device_index++) { in set_device()
133 ibv_get_device_name(dev_list[device_index]))) { in set_device()
134 CHECK(get_dev_active_port_count(dev_list[device_index]) != 0) in set_device()
135 << "Device " << ibv_get_device_name(dev_list[device_index]) in set_device()
137 return dev_list[device_index]; in set_device()
147 for (device_index = 0; device_index < dev_num; device_index++) { in set_device()
149 if (get_dev_active_port_count(dev_list[device_index]) > 0) { in set_device()
155 device_to_open = device_index; in set_device()
/external/tensorflow/tensorflow/python/client/
Dvirtual_gpu_test.py107 for device_index in range(self._num_devices):
108 if self._device_probabilities[device_index] > random_num:
109 op_device += (device_index,)
/external/tensorflow/tensorflow/tools/api/golden/v1/
Dtensorflow.-device-spec.pbtxt19 …argspec: "args=[\'self\', \'job\', \'replica\', \'task\', \'device_type\', \'device_index\'], vara…
/external/tensorflow/tensorflow/contrib/framework/python/ops/
Dvariables.py768 device_index=0, argument
789 self._device_index = device_index
798 device_index=self._device_index)
/external/tensorflow/tensorflow/python/distribute/
Ddevice_util.py52 replica=0, task=0, device_type="CPU", device_index=0)
/external/tensorflow/tensorflow/python/profiler/
Dpprof_profiler.py283 for device_index, device_stats in enumerate(
296 (device_index + 1, device_count, device_stats.device))
/external/tensorflow/tensorflow/python/tpu/
Dtpu_system_metadata.py137 spec.device_index)
/external/webrtc/webrtc/sound/
Dpulseaudiosoundsystem.cc318 uint32_t device_index = symbol_table()->pa_stream_get_device_index()( in SetVolume() local
323 device_index, in SetVolume()
343 device_index, in SetVolume()
/external/tensorflow/tensorflow/python/debug/cli/
Dprofile_analyzer_cli.py477 self, device_name, device_index, device_count, argument
536 device_index + 1, device_count, device_name)
/external/adhd/cras/
DREADME27 <vendor_id>_<product_id>_<checksum>_<device_index> = 1

12