Home
last modified time | relevance | path

Searched refs:cb_threshold (Results 1 – 25 of 26) sorted by relevance

12

/external/adhd/cras/src/tests/
Ddev_io_stubs.cc22 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 …]
Dtiming_unittest.cc77 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 …]
Ddev_io_stubs.h58 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,
Ddev_io_unittest.cc45 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()
Daudio_thread_unittest_obsolete.cc137 (*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 …]
Ddev_stream_unittest.cc123 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 …]
Dserver_metrics_unittest.cc93 config.cb_threshold = 1024; in TEST()
104 EXPECT_EQ(sent_msg->data.stream_config.cb_threshold, 1024); in TEST()
Dcras_client_unittest.cc79 config->cb_threshold = 512; in SetUp()
130 stream_.config->cb_threshold = 480; in TEST_F()
Drstream_unittest.cc38 config_.cb_threshold = 2048; in SetUp()
110 config_.cb_threshold = 3; in TEST_F()
Diodev_unittest.cc1446 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()
Drclient_unittest.cc151 connect_msg_.cb_threshold = 240; in SetUp()
Daudio_thread_unittest.cc125 rstream->cb_threshold = 480; in SetupRstream()
/external/adhd/cras/src/server/
Dcras_server_metrics.c35 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()
Dcras_rstream.c90 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()
Dcras_rstream.h77 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()
Dcras_iodev.c795 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()
Dserver_stream.c67 stream_config->cb_threshold = server_stream_block_size; in server_stream_create()
Daudio_thread.c333 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()
Ddev_stream.c453 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()
Dcras_rclient.c71 stream_config.cb_threshold = msg->cb_threshold; in handle_client_stream_connect()
Dcras_iodev_list.c521 rc = cras_iodev_open(dev, rstream->cb_threshold, &rstream->format); in init_device()
/external/adhd/cras/src/common/
Dcras_messages.h106 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()
Dcras_types.h265 uint32_t cb_threshold; member
/external/adhd/cras/src/libcras/
Dcras_client.c125 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()
Dcras_client.h542 size_t cb_threshold,

12