/external/adhd/cras/src/tests/ |
D | audio_thread_unittest.cc | 261 SetupDevice(&iodev, CRAS_STREAM_OUTPUT); in TEST_F() 265 adev = thread_->open_devs[CRAS_STREAM_OUTPUT]; in TEST_F() 268 thread_rm_open_dev(thread_, CRAS_STREAM_OUTPUT, iodev.info.idx); in TEST_F() 269 adev = thread_->open_devs[CRAS_STREAM_OUTPUT]; in TEST_F() 279 SetupDevice(&iodev, CRAS_STREAM_OUTPUT); in TEST_F() 283 adev = thread_->open_devs[CRAS_STREAM_OUTPUT]; in TEST_F() 323 thread_rm_open_dev(thread_, CRAS_STREAM_OUTPUT, iodev.info.idx); in TEST_F() 351 SetupDevice(&odev, CRAS_STREAM_OUTPUT); in TEST_F() 352 SetupDevice(&odev2, CRAS_STREAM_OUTPUT); in TEST_F() 353 SetupDevice(&odev3, CRAS_STREAM_OUTPUT); in TEST_F() [all …]
|
D | iodev_list_unittest.cc | 154 d1_.direction = CRAS_STREAM_OUTPUT; in SetUp() 167 d2_.direction = CRAS_STREAM_OUTPUT; in SetUp() 180 d3_.direction = CRAS_STREAM_OUTPUT; in SetUp() 313 d1_.direction = CRAS_STREAM_OUTPUT; in TEST_F() 320 cras_iodev_list_add_active_node(CRAS_STREAM_OUTPUT, in TEST_F() 380 d1_.direction = CRAS_STREAM_OUTPUT; in TEST_F() 388 cras_iodev_list_add_active_node(CRAS_STREAM_OUTPUT, in TEST_F() 440 d1_.direction = CRAS_STREAM_OUTPUT; in TEST_F() 454 cras_iodev_list_add_active_node(CRAS_STREAM_OUTPUT, in TEST_F() 457 rstream.direction = CRAS_STREAM_OUTPUT; in TEST_F() [all …]
|
D | hfp_alsa_iodev_unittest.cc | 159 fake_sco_out.direction = CRAS_STREAM_OUTPUT; in TEST_F() 164 EXPECT_EQ(CRAS_STREAM_OUTPUT, iodev->direction); in TEST_F() 204 fake_sco_out.direction = CRAS_STREAM_OUTPUT; in TEST_F() 225 fake_sco_out.direction = CRAS_STREAM_OUTPUT; in TEST_F() 246 fake_sco_out.direction = CRAS_STREAM_OUTPUT; in TEST_F() 271 fake_sco_out.direction = CRAS_STREAM_OUTPUT; in TEST_F() 286 fake_sco_out.direction = CRAS_STREAM_OUTPUT; in TEST_F() 299 fake_sco_out.direction = CRAS_STREAM_OUTPUT; in TEST_F() 312 fake_sco_out.direction = CRAS_STREAM_OUTPUT; in TEST_F() 325 fake_sco_out.direction = CRAS_STREAM_OUTPUT; in TEST_F() [all …]
|
D | alsa_jack_unittest.cc | 163 CRAS_STREAM_OUTPUT, fake_jack_cb, in TEST() 181 fake_hctl, CRAS_STREAM_OUTPUT, in TEST() 229 if (direction == CRAS_STREAM_OUTPUT) { in run_test_with_elem_list() 292 jack_list = run_test_with_elem_list(CRAS_STREAM_OUTPUT, elem_names, 0, NULL, in TEST() 310 fake_hctl, CRAS_STREAM_OUTPUT, in TEST() 360 fake_hctl, CRAS_STREAM_OUTPUT, in TEST() 390 if (direction == CRAS_STREAM_OUTPUT) { in run_gpio_jack_test() 414 enum CRAS_STREAM_DIRECTION direction = CRAS_STREAM_OUTPUT; in TEST() 446 enum CRAS_STREAM_DIRECTION direction = CRAS_STREAM_OUTPUT; in TEST() 462 enum CRAS_STREAM_DIRECTION direction = CRAS_STREAM_OUTPUT; in TEST() [all …]
|
D | audio_thread_unittest_obsolete.cc | 91 output_dev_.direction = CRAS_STREAM_OUTPUT; in SetUp() 498 iodev_.direction = CRAS_STREAM_OUTPUT; in SetUp() 681 iodev_.direction = CRAS_STREAM_OUTPUT; in TEST_F() 1069 EXPECT_EQ(480, thread_->buffer_frames[CRAS_STREAM_OUTPUT]); in TEST_F() 1070 EXPECT_EQ(96, thread_->cb_threshold[CRAS_STREAM_OUTPUT]); in TEST_F() 1079 EXPECT_EQ(0, thread_->buffer_frames[CRAS_STREAM_OUTPUT]); in TEST_F() 1080 EXPECT_EQ(0, thread_->cb_threshold[CRAS_STREAM_OUTPUT]); in TEST_F() 1096 iodev_.direction = CRAS_STREAM_OUTPUT; in SetUp() 1203 if (direction == CRAS_STREAM_OUTPUT) in add_rm_two_streams() 1231 if (direction == CRAS_STREAM_OUTPUT) in add_rm_two_streams() [all …]
|
D | alsa_io_unittest.cc | 270 CRAS_STREAM_OUTPUT); in TEST() 298 CRAS_STREAM_OUTPUT); in TEST() 309 CRAS_STREAM_OUTPUT); in TEST() 349 CRAS_STREAM_OUTPUT); in TEST() 381 CRAS_STREAM_OUTPUT); in TEST() 417 CRAS_STREAM_OUTPUT); in TEST() 426 NULL, CRAS_STREAM_OUTPUT); in TEST() 435 NULL, CRAS_STREAM_OUTPUT); in TEST() 452 NULL, CRAS_STREAM_OUTPUT); in TEST() 465 NULL, CRAS_STREAM_OUTPUT); in TEST() [all …]
|
D | timing_unittest.cc | 83 DevicePtr dev = create_device(CRAS_STREAM_OUTPUT, dev_cb_threshold, in SingleOutputDevNextWake() 827 DevicePtr out_dev = create_device(CRAS_STREAM_OUTPUT, 1024, &format, in TEST_F() 845 create_rstream(1, CRAS_STREAM_OUTPUT, 480, &format, shm.get()); in TEST_F() 869 DevicePtr dev = create_device(CRAS_STREAM_OUTPUT, 1024, &format, in TEST_F() 874 StreamPtr stream = create_stream(1, 1, CRAS_STREAM_OUTPUT, 480, &format); in TEST_F() 881 create_rstream(1, CRAS_STREAM_OUTPUT, 480, &format, shm.get()); in TEST_F() 900 DevicePtr dev = create_device(CRAS_STREAM_OUTPUT, 1024, &format, in TEST_F() 910 create_rstream(1, CRAS_STREAM_OUTPUT, 480, &format, shm.get()); in TEST_F() 930 DevicePtr dev = create_device(CRAS_STREAM_OUTPUT, 1024, &format, in TEST_F() 942 create_rstream(1, CRAS_STREAM_OUTPUT, 480, &format, shm.get()); in TEST_F() [all …]
|
D | hfp_iodev_unittest.cc | 95 iodev = hfp_iodev_create(CRAS_STREAM_OUTPUT, fake_device, fake_slc, in TEST_F() 98 ASSERT_EQ(CRAS_STREAM_OUTPUT, iodev->direction); in TEST_F() 129 iodev = hfp_iodev_create(CRAS_STREAM_OUTPUT, fake_device, fake_slc, in TEST_F() 180 iodev = hfp_iodev_create(CRAS_STREAM_OUTPUT, fake_device, fake_slc, in TEST_F() 203 iodev = hfp_iodev_create(CRAS_STREAM_OUTPUT, fake_device, fake_slc, in TEST_F()
|
D | stream_list_unittest.cc | 69 s1_config.direction = CRAS_STREAM_OUTPUT; in TEST() 101 s2_config.direction = CRAS_STREAM_OUTPUT; in TEST() 106 s3_config.direction = CRAS_STREAM_OUTPUT; in TEST() 142 s1_config.direction = CRAS_STREAM_OUTPUT; in TEST()
|
D | system_state_unittest.cc | 381 cras_system_state_stream_added(CRAS_STREAM_OUTPUT, CRAS_CLIENT_TYPE_CHROME); in TEST() 385 cras_system_state_stream_removed(CRAS_STREAM_OUTPUT, CRAS_CLIENT_TYPE_CHROME); in TEST() 398 cras_system_state_stream_added(CRAS_STREAM_OUTPUT, CRAS_CLIENT_TYPE_CHROME); in TEST() 404 1, cras_system_state_get_active_streams_by_direction(CRAS_STREAM_OUTPUT)); in TEST() 411 cras_system_state_stream_removed(CRAS_STREAM_OUTPUT, CRAS_CLIENT_TYPE_CHROME); in TEST() 417 0, cras_system_state_get_active_streams_by_direction(CRAS_STREAM_OUTPUT)); in TEST()
|
D | alsa_mixer_unittest.cc | 288 CRAS_STREAM_OUTPUT); in TEST() 363 CRAS_STREAM_OUTPUT); in TEST() 442 CRAS_STREAM_OUTPUT); in TEST() 553 CRAS_STREAM_OUTPUT); in TEST() 772 CRAS_STREAM_OUTPUT, MIXER_NAME_VOLUME); in SetUp() 947 CRAS_STREAM_OUTPUT, MIXER_NAME_VOLUME); in TEST() 1049 CRAS_STREAM_OUTPUT, MIXER_NAME_VOLUME); in TEST() 1126 CRAS_STREAM_OUTPUT, MIXER_NAME_VOLUME); in TEST() 1200 CRAS_STREAM_OUTPUT, MIXER_NAME_VOLUME); in TEST() 1202 mixer_name_add(names, "Playback", CRAS_STREAM_OUTPUT, MIXER_NAME_VOLUME); in TEST() [all …]
|
D | playback_rclient_unittest.cc | 108 cras_fill_connect_message(&msg, CRAS_STREAM_OUTPUT, stream_id, in TEST_F() 134 if (dir == CRAS_STREAM_OUTPUT) in TEST_F() 162 cras_fill_connect_message(&msg, CRAS_STREAM_OUTPUT, stream_id, in TEST_F() 188 cras_fill_connect_message(&msg, CRAS_STREAM_OUTPUT, stream_id, in TEST_F()
|
D | alsa_ucm_unittest.cc | 248 CRAS_STREAM_OUTPUT); in TEST() 283 dev_name = ucm_get_dev_for_jack(mgr, value_2.c_str(), CRAS_STREAM_OUTPUT); in TEST() 312 dev_name = ucm_get_dev_for_jack(mgr, value.c_str(), CRAS_STREAM_OUTPUT); in TEST() 363 ucm_get_dev_for_mixer(mgr, value_1.c_str(), CRAS_STREAM_OUTPUT); in TEST() 392 EXPECT_EQ(2, ucm_get_alsa_dev_idx_for_dev(mgr, "Dev2", CRAS_STREAM_OUTPUT)); in TEST() 418 ucm_get_sample_rate_for_dev(mgr, "Dev2", CRAS_STREAM_OUTPUT); in TEST() 449 rc = ucm_get_channels_for_dev(mgr, "Dev2", CRAS_STREAM_OUTPUT, in TEST() 1066 mgr, CRAS_STREAM_OUTPUT, "test_card:0", list_devices_callback, in TEST() 1187 enum CRAS_STREAM_DIRECTION dir = CRAS_STREAM_OUTPUT; in TEST() 1196 ucm_section_create(NULL, NULL, 0, -1, CRAS_STREAM_OUTPUT, NULL, NULL); in TEST() [all …]
|
D | hfp_info_unittest.cc | 48 dev.direction = CRAS_STREAM_OUTPUT; in TEST() 67 dev.direction = CRAS_STREAM_OUTPUT; in TEST() 89 dev.direction = CRAS_STREAM_OUTPUT; in TEST() 207 dev.direction = CRAS_STREAM_OUTPUT; in TEST() 314 dev.direction = CRAS_STREAM_OUTPUT; in TEST() 492 dev.direction = CRAS_STREAM_OUTPUT; in TEST()
|
D | loopback_iodev_unittest.cc | 94 iodev.direction = CRAS_STREAM_OUTPUT; in TEST_F() 132 iodev1.direction = CRAS_STREAM_OUTPUT; in TEST_F() 133 iodev2.direction = CRAS_STREAM_OUTPUT; in TEST_F()
|
D | server_metrics_unittest.cc | 66 iodev.direction = CRAS_STREAM_OUTPUT; in TEST() 78 EXPECT_EQ(sent_msgs[0].data.device_data.direction, CRAS_STREAM_OUTPUT); in TEST() 100 CRAS_STREAM_OUTPUT); in TEST() 125 cras_server_metrics_highest_hw_level(hw_level, CRAS_STREAM_OUTPUT); in TEST() 199 stream.direction = CRAS_STREAM_OUTPUT; in TEST()
|
/external/adhd/cras/src/server/ |
D | cras_alsa_mixer.c | 150 if (dir == CRAS_STREAM_OUTPUT) { in mixer_control_element_create() 367 if (control->dir == CRAS_STREAM_OUTPUT) in mixer_control_set_dBFS() 396 if (control->dir == CRAS_STREAM_OUTPUT) in mixer_control_get_dBFS() 425 if (control->dir == CRAS_STREAM_OUTPUT) in mixer_control_set_mute() 451 CRAS_STREAM_OUTPUT); in add_main_volume_control() 525 dir == CRAS_STREAM_OUTPUT ? "output" : "input", name, index); in add_control_with_name() 535 if (dir == CRAS_STREAM_OUTPUT) in add_control_with_name() 584 dir == CRAS_STREAM_OUTPUT ? "output" : "input", c->name); in add_control_with_coupled_mixers() 591 if (dir == CRAS_STREAM_OUTPUT) in add_control_with_coupled_mixers() 614 dir == CRAS_STREAM_OUTPUT ? "output" : "input", c->name); in add_control_by_name() [all …]
|
D | cras_iodev_list.c | 104 DL_FOREACH (devs[CRAS_STREAM_OUTPUT].iodevs, dev) in find_dev() 153 dev->direction == CRAS_STREAM_OUTPUT ? "output" : "input", in add_dev_to_list() 314 DL_FOREACH (devs[CRAS_STREAM_OUTPUT].iodevs, dev) { in sys_vol_change() 328 DL_FOREACH (devs[CRAS_STREAM_OUTPUT].iodevs, dev) { in sys_mute_change() 361 if (dev->direction != CRAS_STREAM_OUTPUT) in possibly_enable_echo_reference() 411 DL_FOREACH (enabled_devs[CRAS_STREAM_OUTPUT], edev) { in idle_dev_check() 519 DL_FOREACH (enabled_devs[CRAS_STREAM_OUTPUT], edev) { in suspend_devs() 561 if (rstream->direction == CRAS_STREAM_OUTPUT) in resume_devs() 565 DL_FOREACH (enabled_devs[CRAS_STREAM_OUTPUT], edev) { in resume_devs() 1080 fallback_devs[CRAS_STREAM_OUTPUT] = empty_iodev_create( in cras_iodev_list_init() [all …]
|
D | cras_alsa_card.c | 127 direction == CRAS_STREAM_OUTPUT ? "playback" : "capture", in create_iodev_for_device() 170 CRAS_STREAM_OUTPUT); in filter_controls() 217 CRAS_STREAM_OUTPUT, MIXER_NAME_VOLUME)); in add_controls_and_iodevs_by_matching() 225 CRAS_STREAM_OUTPUT, in add_controls_and_iodevs_by_matching() 266 CRAS_STREAM_OUTPUT); in add_controls_and_iodevs_by_matching() 355 if (section->dir == CRAS_STREAM_OUTPUT) in add_controls_and_iodevs_with_ucm()
|
D | cras_alsa_io.c | 396 if (aio->base.direction == CRAS_STREAM_OUTPUT) { in open_dev() 849 if (aio->base.direction == CRAS_STREAM_OUTPUT) { in init_device_settings() 878 if (aio->base.direction == CRAS_STREAM_OUTPUT) { in free_alsa_iodev_resources() 990 if (node->dev->direction == CRAS_STREAM_OUTPUT) { in set_node_initial_state() 1001 node->dev->direction == CRAS_STREAM_OUTPUT) in set_node_initial_state() 1381 if (node->dev->direction == CRAS_STREAM_OUTPUT) in get_jack_from_node() 1663 if (aio->base.direction == CRAS_STREAM_OUTPUT) { in get_fixed_rate() 1684 if (aio->base.direction == CRAS_STREAM_OUTPUT) { in get_fixed_channels() 1771 if (aio->base.direction == CRAS_STREAM_OUTPUT) { in enable_active_ucm() 2066 if (direction != CRAS_STREAM_INPUT && direction != CRAS_STREAM_OUTPUT) in alsa_iodev_create() [all …]
|
D | cras_alsa_ucm.c | 626 if (direction == CRAS_STREAM_OUTPUT) in ucm_get_dev_for_jack() 652 if (dir == CRAS_STREAM_OUTPUT) { in ucm_get_dev_for_mixer() 754 if (direction == CRAS_STREAM_OUTPUT) in ucm_get_alsa_dev_idx_for_dev() 780 if (direction == CRAS_STREAM_OUTPUT) in ucm_get_sample_rate_for_dev() 802 if (direction == CRAS_STREAM_OUTPUT) in ucm_get_channels_for_dev() 845 return ucm_get_mixer_names(mgr, dev, coupled_mixers, CRAS_STREAM_OUTPUT, in ucm_get_coupled_mixer_names() 873 *dir = CRAS_STREAM_OUTPUT; in ucm_get_dir_for_device() 933 if (dir == CRAS_STREAM_OUTPUT) in ucm_parse_device_section() 1166 CRAS_STREAM_OUTPUT, MIXER_NAME_MAIN_VOLUME); in ucm_get_main_volume_names() 1179 if (direction == CRAS_STREAM_OUTPUT) in ucm_list_section_devices_by_device_name()
|
D | cras_alsa_jack.c | 552 if (direction == CRAS_STREAM_OUTPUT && in open_and_monitor_gpio() 557 else if (direction == CRAS_STREAM_OUTPUT && in open_and_monitor_gpio() 596 if (direction == CRAS_STREAM_OUTPUT) in open_and_monitor_gpio_with_section() 708 } else if (data->jack_list->direction == CRAS_STREAM_OUTPUT) { in gpio_switch_list_by_matching() 866 return jack_matches_regex(jack_name, direction == CRAS_STREAM_OUTPUT ? in is_jack_uac2() 895 if (jack_list->direction == CRAS_STREAM_OUTPUT) { in find_jack_controls() 928 if (jack_list->direction == CRAS_STREAM_OUTPUT) in find_jack_controls() 1020 if (jack_list->direction == CRAS_STREAM_OUTPUT) in find_hctl_jack_for_section() 1090 if (direction != CRAS_STREAM_INPUT && direction != CRAS_STREAM_OUTPUT) in cras_alsa_jack_list_create()
|
D | cras_hfp_info.c | 131 if (direction == CRAS_STREAM_OUTPUT) { in hfp_info_add_iodev() 154 if (direction == CRAS_STREAM_OUTPUT && info->output_format_bytes) { in hfp_info_rm_iodev() 179 if (direction == CRAS_STREAM_OUTPUT && info->output_format_bytes) { in hfp_buf_acquire() 196 if (direction == CRAS_STREAM_OUTPUT && info->output_format_bytes) in hfp_buf_size() 208 if (direction == CRAS_STREAM_OUTPUT && info->output_format_bytes) in hfp_buf_release() 220 if (direction == CRAS_STREAM_OUTPUT && info->output_format_bytes) in hfp_buf_queued()
|
/external/adhd/cras/src/tools/cras_monitor/ |
D | cras_monitor.c | 48 case CRAS_STREAM_OUTPUT: in string_for_direction() 97 } else if (dir == CRAS_STREAM_OUTPUT) { in node_name_for_node_id() 139 node_name_for_node_id(client, CRAS_STREAM_OUTPUT, node_id); in output_node_volume_changed() 149 node_name_for_node_id(client, CRAS_STREAM_OUTPUT, node_id); in node_left_right_swapped_changed()
|
/external/adhd/cras/src/libcras/ |
D | cras_helpers.c | 119 params = cras_client_unified_params_create(CRAS_STREAM_OUTPUT, 2048, in cras_helper_add_stream_simple() 154 return cras_helper_add_stream_simple(client, CRAS_STREAM_OUTPUT, data, in cras_helper_play_buffer()
|