/external/adhd/cras/src/tests/ |
dev_io_stubs.cc | 22 ShmPtr create_shm(size_t cb_threshold) { 24 uint32_t used_size = cb_threshold * 2 * frame_bytes; 36 size_t cb_threshold, 44 rstream->buffer_frames = cb_threshold * 2; 45 rstream->cb_threshold = cb_threshold; 49 cras_frames_to_time(cb_threshold, 68 size_t cb_threshold, 70 ShmPtr shm = create_shm(cb_threshold); 71 RstreamPtr rstream = create_rstream(1, CRAS_STREAM_INPUT, cb_threshold, [all...] |
dev_io_unittest.cc | 45 const size_t cb_threshold = 480; local 51 create_stream(1, 1, CRAS_STREAM_INPUT, cb_threshold, &format); 59 DevicePtr dev = create_device(CRAS_STREAM_INPUT, cb_threshold,
|
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,
|
timing_unittest.cc | 77 const size_t cb_threshold = 480; local 83 create_stream(1, 1, CRAS_STREAM_INPUT, cb_threshold, &format); 92 timespec dev_time = SingleInputDevNextWake(cb_threshold, 0, &start, 105 const size_t cb_threshold = 3000; local 113 create_stream(1, 1, CRAS_STREAM_INPUT, cb_threshold, &format); 136 const size_t cb_threshold = 3000; local 144 create_stream(1, 1, CRAS_STREAM_INPUT, cb_threshold, &format); 194 const size_t cb_threshold = 480; local 201 create_stream(1, 1, CRAS_STREAM_INPUT, cb_threshold, &format); 205 AddFakeDataToStream(stream1.get(), cb_threshold); [all...] |
server_metrics_unittest.cc | 93 config.cb_threshold = 1024; 104 EXPECT_EQ(sent_msg->data.stream_config.cb_threshold, 1024);
|
audio_thread_unittest_obsolete.cc | 137 (*rstream)->cb_threshold = cb_threshold_; 274 // If no samples are present, it should sleep for cb_threshold frames. 414 rstream_->cb_threshold = cb_threshold_; 565 (*rstream)->cb_threshold = cb_threshold_; 711 // Have cb_threshold samples left. 740 // Have cb_threshold samples left. 759 // It should sleep until there is a total of cb_threshold + min_buffer_level 777 // Have cb_threshold samples left. 794 // Have cb_threshold samples left. 824 // Have cb_threshold samples left 2189 unsigned int cb_threshold = cras_rstream_get_cb_threshold(rstream); local [all...] |
dev_stream_unittest.cc | 123 rstream_.cb_threshold = kBufferFrames / 2; 280 // Available frames at stream side is bound by cb_threshold, which 728 // However, written frames is less than cb_threshold. 741 written_frames = rstream_.cb_threshold + 10; 749 // Stream should send one cb_threshold to client. 754 EXPECT_EQ(rstream_.cb_threshold, cras_rstream_audio_ready_count); 773 // Stream should send one cb_threshold to client and reset schedule. 778 EXPECT_EQ(rstream_.cb_threshold, cras_rstream_audio_ready_count); 822 // However, written frames is less than cb_threshold. 835 written_frames = rstream_.cb_threshold + 10 [all...] |
cras_client_unittest.cc | 79 config->cb_threshold = 512; 130 stream_.config->cb_threshold = 480;
|
rstream_unittest.cc | 38 config_.cb_threshold = 2048; 110 config_.cb_threshold = 3;
|
iodev_unittest.cc | [all...] |
audio_thread_unittest.cc | 125 rstream->cb_threshold = 480; [all...] |
cras_test_client.c | 595 "cb_threshold: %u\n" 602 (unsigned int)info->streams[i].cb_threshold, [all...] |
rclient_unittest.cc | 151 connect_msg_.cb_threshold = 240;
|
/external/adhd/cras/src/server/ |
cras_rstream.h | 50 * cb_threshold - Callback client when this much is left. 77 size_t cb_threshold; member in struct:cras_rstream 107 * cb_threshold - # of frames when to request more from the client. 120 size_t cb_threshold; member in struct:cras_rstream_config 157 return stream->cb_threshold; 317 return cras_shm_frames_written(shm) >= rstream->cb_threshold;
|
cras_server_metrics.c | 35 unsigned cb_threshold; member in struct:cras_server_metrics_stream_config 136 data.stream_config.cb_threshold = (unsigned)config->cb_threshold; 157 config.cb_threshold);
|
server_stream.c | 67 stream_config->cb_threshold = server_stream_block_size;
|
cras_rstream.c | 90 size_t cb_threshold, 124 if (!buffer_meets_size_limit(cb_threshold, format->frame_rate)) { 125 syslog(LOG_ERR, "rstream: cb_threshold too low\n"); 221 config->cb_threshold, config->client, 236 stream->cb_threshold = config->cb_threshold; 258 config->stream_id, config->buffer_frames, config->cb_threshold); 337 stream->cb_threshold);
|
cras_iodev.c | 795 unsigned int cb_threshold = dev_stream_cb_threshold(stream); local 808 iodev->min_cb_level = MIN(iodev->min_cb_level, cb_threshold); 809 iodev->max_cb_level = MAX(iodev->max_cb_level, cb_threshold); 818 unsigned int cb_threshold; local 830 cb_threshold = dev_stream_cb_threshold(out); 831 iodev->min_cb_level = MIN(iodev->min_cb_level, cb_threshold); 832 iodev->max_cb_level = MAX(iodev->max_cb_level, cb_threshold); [all...] |
audio_thread.c | 333 if (offset > stream->cb_threshold) 334 offset = stream->cb_threshold; 339 if (offset > stream->cb_threshold) 340 offset = stream->cb_threshold; 593 si->cb_threshold = stream->stream->cb_threshold; [all...] |
dev_stream.c | 453 unsigned int cb_threshold = cras_rstream_get_cb_threshold(rstream); local 457 cb_threshold); 460 cb_threshold); 734 * 1. Device has less than one cb_threshold of data. 739 * 5. Repeat 3 and 4 until there is less than one cb_threshold of data. 747 * cb_threshold of data.
|
cras_rclient.c | 71 stream_config.cb_threshold = msg->cb_threshold;
|
/external/adhd/cras/src/common/ |
cras_messages.h | 106 uint32_t cb_threshold; /* callback client when this much is left */ member in struct:cras_connect_message 126 uint32_t cb_threshold; /* callback client when this much is left */ member in struct:cras_connect_message_old 137 size_t cb_threshold, 148 m->cb_threshold = cb_threshold;
|
cras_types.h | 265 uint32_t cb_threshold; member in struct:audio_stream_debug_info
|
/external/adhd/cras/src/libcras/ |
cras_client.c | 125 size_t cb_threshold; member in struct:cras_stream_params 1045 num_frames = MIN(num_frames, stream->config->cb_threshold); [all...] |
cras_client.h | 526 * cb_threshold - For playback, call back for more data when the buffer 542 size_t cb_threshold, [all...] |