/external/adhd/cras/src/tests/ |
D | dev_io_stubs.cc | 22 ShmPtr create_shm(size_t cb_threshold) { in create_shm() argument 24 uint32_t used_size = cb_threshold * 2 * frame_bytes; in create_shm() 36 size_t cb_threshold, in create_rstream() argument 44 rstream->buffer_frames = cb_threshold * 2; in create_rstream() 45 rstream->cb_threshold = cb_threshold; in create_rstream() 49 cras_frames_to_time(cb_threshold, in create_rstream() 68 size_t cb_threshold, in create_stream() argument 70 ShmPtr shm = create_shm(cb_threshold); in create_stream() 71 RstreamPtr rstream = create_rstream(1, CRAS_STREAM_INPUT, cb_threshold, in create_stream() 97 size_t cb_threshold, in create_open_iodev() argument [all …]
|
D | timing_unittest.cc | 77 const size_t cb_threshold = 480; in TEST_F() local 83 create_stream(1, 1, CRAS_STREAM_INPUT, cb_threshold, &format); in TEST_F() 92 timespec dev_time = SingleInputDevNextWake(cb_threshold, 0, &start, in TEST_F() 105 const size_t cb_threshold = 3000; in TEST_F() local 113 create_stream(1, 1, CRAS_STREAM_INPUT, cb_threshold, &format); in TEST_F() 136 const size_t cb_threshold = 3000; in TEST_F() local 144 create_stream(1, 1, CRAS_STREAM_INPUT, cb_threshold, &format); in TEST_F() 194 const size_t cb_threshold = 480; in TEST_F() local 201 create_stream(1, 1, CRAS_STREAM_INPUT, cb_threshold, &format); in TEST_F() 205 AddFakeDataToStream(stream1.get(), cb_threshold); in TEST_F() [all …]
|
D | dev_io_stubs.h | 58 ShmPtr create_shm(size_t cb_threshold); 61 size_t cb_threshold, 68 size_t cb_threshold, 74 size_t cb_threshold, 78 size_t cb_threshold,
|
D | dev_io_unittest.cc | 45 const size_t cb_threshold = 480; in TEST_F() local 51 create_stream(1, 1, CRAS_STREAM_INPUT, cb_threshold, &format); in TEST_F() 59 DevicePtr dev = create_device(CRAS_STREAM_INPUT, cb_threshold, in TEST_F()
|
D | audio_thread_unittest_obsolete.cc | 137 (*rstream)->cb_threshold = cb_threshold_; in SetupRstream() 414 rstream_->cb_threshold = cb_threshold_; in TEST_F() 565 (*rstream)->cb_threshold = cb_threshold_; in SetupRstream() 896 rstream_->cb_threshold -= 20; in TEST_F() 1089 EXPECT_EQ(96, thread_->cb_threshold[CRAS_STREAM_OUTPUT]); in TEST_F() 1099 EXPECT_EQ(0, thread_->cb_threshold[CRAS_STREAM_OUTPUT]); in TEST_F() 1208 new_stream->cb_threshold = 80; in add_rm_two_streams() 1224 EXPECT_EQ(32, thread->cb_threshold[direction]); in add_rm_two_streams() 1226 EXPECT_EQ(80, thread->cb_threshold[direction]); in add_rm_two_streams() 1233 second_stream->cb_threshold = 12; in add_rm_two_streams() [all …]
|
D | dev_stream_unittest.cc | 123 rstream_.cb_threshold = kBufferFrames / 2; in SetUp() 741 written_frames = rstream_.cb_threshold + 10; in TEST_F() 754 EXPECT_EQ(rstream_.cb_threshold, cras_rstream_audio_ready_count); in TEST_F() 778 EXPECT_EQ(rstream_.cb_threshold, cras_rstream_audio_ready_count); in TEST_F() 835 written_frames = rstream_.cb_threshold + 10; in TEST_F() 881 cras_shm_buffer_written(&rstream_.shm, rstream_.cb_threshold); in TEST_F() 889 cras_shm_buffer_written(&rstream_.shm, rstream_.cb_threshold); in TEST_F() 915 written_frames = rstream_.cb_threshold + 10; in TEST_F() 919 &level_tstamp, rstream_.cb_threshold, 0, in TEST_F() 966 44100, rstream_.cb_threshold - written_frames, 48000); in TEST_F() [all …]
|
D | server_metrics_unittest.cc | 93 config.cb_threshold = 1024; in TEST() 104 EXPECT_EQ(sent_msg->data.stream_config.cb_threshold, 1024); in TEST()
|
D | cras_client_unittest.cc | 79 config->cb_threshold = 512; in SetUp() 130 stream_.config->cb_threshold = 480; in TEST_F()
|
D | rstream_unittest.cc | 38 config_.cb_threshold = 2048; in SetUp() 110 config_.cb_threshold = 3; in TEST_F()
|
D | iodev_unittest.cc | 1446 rstream1.cb_threshold = 800; in TEST() 1448 rstream2.cb_threshold = 400; in TEST() 1453 cras_iodev_open(&iodev, rstream1.cb_threshold, &audio_fmt); in TEST() 1489 rstream.cb_threshold = 800; in TEST() 1494 cras_iodev_open(&iodev, rstream.cb_threshold, &audio_fmt); in TEST() 1601 rstream1.cb_threshold = min_cb_level; in TEST() 1625 cras_iodev_open(&iodev, rstream1.cb_threshold, &fmt); in TEST() 2139 rstream1.cb_threshold = 240; in TEST() 2483 return dev_stream->stream->cb_threshold; in dev_stream_cb_threshold()
|
D | rclient_unittest.cc | 151 connect_msg_.cb_threshold = 240; in SetUp()
|
D | audio_thread_unittest.cc | 125 rstream->cb_threshold = 480; in SetupRstream()
|
/external/adhd/cras/src/server/ |
D | cras_server_metrics.c | 35 unsigned cb_threshold; member 136 data.stream_config.cb_threshold = (unsigned)config->cb_threshold; in cras_server_metrics_stream_config() 157 config.cb_threshold); in metrics_stream_config()
|
D | cras_rstream.c | 90 size_t cb_threshold, in verify_rstream_parameters() argument 124 if (!buffer_meets_size_limit(cb_threshold, format->frame_rate)) { in verify_rstream_parameters() 221 config->cb_threshold, config->client, in cras_rstream_create() 236 stream->cb_threshold = config->cb_threshold; in cras_rstream_create() 258 config->stream_id, config->buffer_frames, config->cb_threshold); in cras_rstream_create() 337 stream->cb_threshold); in cras_rstream_request_audio()
|
D | cras_rstream.h | 77 size_t cb_threshold; member 120 size_t cb_threshold; member 157 return stream->cb_threshold; in cras_rstream_get_cb_threshold() 317 return cras_shm_frames_written(shm) >= rstream->cb_threshold; in cras_rstream_input_level_met()
|
D | cras_iodev.c | 795 unsigned int cb_threshold = dev_stream_cb_threshold(stream); in cras_iodev_add_stream() local 808 iodev->min_cb_level = MIN(iodev->min_cb_level, cb_threshold); in cras_iodev_add_stream() 809 iodev->max_cb_level = MAX(iodev->max_cb_level, cb_threshold); in cras_iodev_add_stream() 818 unsigned int cb_threshold; in cras_iodev_rm_stream() local 830 cb_threshold = dev_stream_cb_threshold(out); in cras_iodev_rm_stream() 831 iodev->min_cb_level = MIN(iodev->min_cb_level, cb_threshold); in cras_iodev_rm_stream() 832 iodev->max_cb_level = MAX(iodev->max_cb_level, cb_threshold); in cras_iodev_rm_stream()
|
D | server_stream.c | 67 stream_config->cb_threshold = server_stream_block_size; in server_stream_create()
|
D | audio_thread.c | 333 if (offset > stream->cb_threshold) in append_stream() 334 offset = stream->cb_threshold; in append_stream() 339 if (offset > stream->cb_threshold) in append_stream() 340 offset = stream->cb_threshold; in append_stream() 593 si->cb_threshold = stream->stream->cb_threshold; in append_stream_dump_info()
|
D | dev_stream.c | 453 unsigned int cb_threshold = cras_rstream_get_cb_threshold(rstream); in dev_stream_cb_threshold() local 457 cb_threshold); in dev_stream_cb_threshold() 460 cb_threshold); in dev_stream_cb_threshold()
|
D | cras_rclient.c | 71 stream_config.cb_threshold = msg->cb_threshold; in handle_client_stream_connect()
|
D | cras_iodev_list.c | 521 rc = cras_iodev_open(dev, rstream->cb_threshold, &rstream->format); in init_device()
|
/external/adhd/cras/src/common/ |
D | cras_messages.h | 106 uint32_t cb_threshold; /* callback client when this much is left */ member 126 uint32_t cb_threshold; /* callback client when this much is left */ member 137 size_t cb_threshold, in cras_fill_connect_message() argument 148 m->cb_threshold = cb_threshold; in cras_fill_connect_message()
|
D | cras_types.h | 265 uint32_t cb_threshold; member
|
/external/adhd/cras/src/libcras/ |
D | cras_client.c | 125 size_t cb_threshold; member 1045 num_frames = MIN(num_frames, stream->config->cb_threshold); in config_capture_buf() 1189 num_frames = MIN(num_frames, config->cb_threshold); in handle_playback_request() 1514 stream->config->cb_threshold, in send_connect_message() 2268 size_t cb_threshold, in cras_client_stream_params_create() argument 2285 params->cb_threshold = cb_threshold; in cras_client_stream_params_create() 2355 params->cb_threshold = block_size; in cras_client_unified_params_create()
|
D | cras_client.h | 542 size_t cb_threshold,
|