/external/adhd/cras/src/tests/ |
D | shm_unittest.cc | 90 uint32_t used_size = cras_shm_used_size(&shm_); in TEST_F() local 91 uint32_t used_frames = used_size / cras_shm_frame_bytes(&shm_); in TEST_F() 92 shm_.header->write_offset[0] = (used_size / 2); in TEST_F() 93 shm_.header->read_offset[0] = (used_size / 4); in TEST_F() 94 shm_.header->write_offset[1] = (used_size / 2); in TEST_F() 97 EXPECT_EQ(cras_shm_buff_for_idx(&shm_, 0) + (used_size / 4), (uint8_t*)buf_); in TEST_F() 111 uint32_t used_size = cras_shm_used_size(&shm_); in TEST_F() local 112 uint32_t used_frames = used_size / cras_shm_frame_bytes(&shm_); in TEST_F() 113 shm_.header->write_offset[0] = (used_size / 2); in TEST_F() 114 shm_.header->read_offset[0] = (used_size / 4); in TEST_F() [all …]
|
D | dev_io_stubs.cc | 25 uint32_t used_size = cb_threshold * 2 * frame_bytes; in create_shm() local 33 shm->header->config.used_size = used_size; in create_shm() 37 uint32_t samples_size = cras_shm_calculate_samples_size(used_size); in create_shm()
|
D | cras_abi_unittest.cc | 46 uint32_t used_size = frames * 4; in InitShm() local 47 cras_shm_set_used_size(shm, used_size); in InitShm() 48 shm->samples_info.length = used_size * 2; in InitShm()
|
D | cras_client_unittest.cc | 53 uint32_t used_size = shm_writable_frames_ * 4; in InitShm() local 54 cras_shm_set_used_size(shm, used_size); in InitShm() 55 shm->samples_info.length = used_size * 2; in InitShm() 187 header->config.used_size = shm_writable_frames_ * format_bytes; in StreamConnected() 232 header.config.used_size = shm_writable_frames_ * format_bytes; in StreamConnectedFail()
|
D | hfp_info_unittest.cc | 105 ASSERT_GE(info->playback_buf->used_size / 2, buffer_frames + queued); in TEST() 122 ASSERT_GE(info->playback_buf->used_size / 2, buffer_frames + buffer_frames2); in TEST() 152 buf_increment_write(info->capture_buf, info->capture_buf->used_size - 100); in TEST() 165 ASSERT_GE(info->capture_buf->used_size / 2, buffer_frames + buffer_frames2); in TEST() 198 buffer_count = info->capture_buf->used_size; in TEST()
|
D | dev_stream_unittest.cc | 197 uint32_t used_size; in SetupShm() local 205 used_size = kBufferFrames * cras_shm_frame_bytes(shm); in SetupShm() 206 cras_shm_set_used_size(shm, used_size); in SetupShm() 209 calloc(1, cras_shm_calculate_samples_size(used_size))); in SetupShm() 210 shm->samples_info.length = cras_shm_calculate_samples_size(used_size); in SetupShm()
|
D | audio_thread_unittest.cc | 114 uint32_t used_size = 4096 * frame_bytes; in SetupRstream() local 126 calloc(1, cras_shm_calculate_samples_size(used_size))); in SetupRstream() 129 cras_shm_set_used_size(rstream->shm, used_size); in SetupRstream()
|
/external/adhd/cras/src/common/ |
D | byte_buffer.h | 18 unsigned int used_size; member 31 buf->used_size = buffer_size_bytes; in byte_buffer_create() 36 size_t used_size) in byte_buffer_set_used_size() argument 38 buf->used_size = MIN(used_size, buf->max_size); in byte_buffer_set_used_size() 50 if (buf->level >= buf->used_size) in buf_writable() 55 return buf->used_size - buf->write_idx; in buf_writable() 66 return buf->used_size - buf->read_idx; in buf_readable() 73 buf->level = MIN(readable, buf->used_size); in buf_adjust_readable() 74 buf->write_idx = (buf->read_idx + buf->level) % buf->used_size; in buf_adjust_readable() 85 return buf->used_size - buf->level; in buf_available() [all …]
|
D | cras_shm.h | 26 uint32_t used_size; member 73 static inline uint32_t cras_shm_calculate_samples_size(uint32_t used_size) in cras_shm_calculate_samples_size() argument 75 return used_size * CRAS_NUM_SHM_BUFFERS; in cras_shm_calculate_samples_size() 195 if (read_offset > shm->config.used_size) in cras_shm_get_checked_read_offset() 214 write_offset = MIN(write_offset, shm->config.used_size); in cras_shm_get_checked_write_offset() 313 const unsigned used_size = shm->config.used_size; in cras_shm_get_bytes_queued() local 319 read_offset = MIN(shm->header->read_offset[i], used_size); in cras_shm_get_bytes_queued() 320 write_offset = MIN(shm->header->write_offset[i], used_size); in cras_shm_get_bytes_queued() 345 const unsigned used_size = shm->config.used_size; in cras_shm_get_frames_in_curr_buffer() local 347 read_offset = MIN(shm->header->read_offset[buf_idx], used_size); in cras_shm_get_frames_in_curr_buffer() [all …]
|
/external/llvm-project/libcxx/test/libcxx/strings/basic.string/string.modifiers/ |
D | resize_default_initialized.pass.cpp | 29 unsigned used_size = buff_size - 16; in test_buffer_usage() local 32 write_c_str(&s[0], used_size); in test_buffer_usage() 34 assert(strlen(s.data()) == used_size); in test_buffer_usage() 35 s.__resize_default_init(used_size); in test_buffer_usage() 36 assert(s.size() == used_size); in test_buffer_usage() 37 assert(s.data()[used_size] == '\0'); in test_buffer_usage() 38 for (unsigned i=0; i < used_size; ++i) { in test_buffer_usage()
|
/external/libcxx/test/libcxx/strings/basic.string/string.modifiers/ |
D | resize_default_initialized.pass.cpp | 30 unsigned used_size = buff_size - 16; in test_buffer_usage() local 33 write_c_str(&s[0], used_size); in test_buffer_usage() 35 assert(strlen(s.data()) == used_size); in test_buffer_usage() 36 s.__resize_default_init(used_size); in test_buffer_usage() 37 assert(s.size() == used_size); in test_buffer_usage() 38 assert(s.data()[used_size] == '\0'); in test_buffer_usage() 39 for (unsigned i=0; i < used_size; ++i) { in test_buffer_usage()
|
/external/adhd/cras/client/libcras/src/ |
D | cras_shm.rs | 59 used_size: VolatileRef<'a, u32>, field 120 used_size: vref_from_addr!(addr, config.used_size), in new() 158 let used_size = self.get_used_size(); in buffer_len_from_offset() localVariable 167 let mut buffer_length = used_size.min(self.samples_len - offset); in buffer_len_from_offset() 242 self.used_size.load() as usize in get_used_size() 942 header.used_size.store(5); in cras_audio_header_write_offset_test() 966 header.used_size.store(5); in cras_audio_header_read_offset_test() 990 header.used_size.store(10); in cras_audio_header_commit_written_frame_test() 1007 header.used_size.store(10); in cras_audio_header_get_readable_frames_test() 1023 header.used_size.store(10); in cras_audio_header_commit_read_frames_test() [all …]
|
D | cras_shm_stream.rs | 163 let used_size = self.header.get_used_size(); in callback() localVariable 167 if frames < (used_size / self.frame_size) as u32 { in callback()
|
/external/crosvm/fuzz/ |
D | virtqueue_fuzzer.rs | 94 let used_size = 4 + (queue_size * size_of::<virtq_used_elem>()) + 2; localVariable 95 buf.resize(used_size, 0);
|
/external/adhd/cras/src/server/ |
D | cras_rstream.c | 39 uint32_t frame_bytes, used_size; in setup_shm_area() local 59 used_size = stream->buffer_frames * frame_bytes; in setup_shm_area() 71 cras_shm_calculate_samples_size(used_size), in setup_shm_area() 91 cras_shm_set_used_size(stream->shm, used_size); in setup_shm_area()
|
D | float_buffer.h | 42 b->buf->used_size = max_size; in float_buffer_create()
|
D | cras_hfp_info.c | 156 info->playback_buf->used_size); in hfp_info_rm_iodev() 197 return info->playback_buf->used_size / in hfp_buf_size() 200 return info->capture_buf->used_size / info->input_format_bytes; in hfp_buf_size()
|
/external/perfetto/src/protozero/filtering/ |
D | message_filter.cc | 132 auto used_size = static_cast<size_t>(out_ - out_buf_.get()); in FilterMessageFragments() local 133 FilteredMessage res{std::move(out_buf_), used_size}; in FilterMessageFragments()
|
/external/pcre/dist2/src/sljit/ |
D | sljitLir.c | 407 compiler->buf->used_size = 0; in sljit_create_compiler() 409 compiler->abuf->used_size = 0; in sljit_create_compiler() 557 …if (compiler->buf->used_size + size <= (BUF_SIZE - (sljit_uw)SLJIT_OFFSETOF(struct sljit_memory_fr… in ensure_buf() 558 ret = compiler->buf->memory + compiler->buf->used_size; in ensure_buf() 559 compiler->buf->used_size += size; in ensure_buf() 566 new_frag->used_size = size; in ensure_buf() 576 …if (compiler->abuf->used_size + size <= (ABUF_SIZE - (sljit_uw)SLJIT_OFFSETOF(struct sljit_memory_… in ensure_abuf() 577 ret = compiler->abuf->memory + compiler->abuf->used_size; in ensure_abuf() 578 compiler->abuf->used_size += size; in ensure_abuf() 585 new_frag->used_size = size; in ensure_abuf()
|
D | sljitLir.h | 346 sljit_uw used_size; member
|
D | sljitNativeS390X.c | 1168 sljit_uw len = buf->used_size / sizeof(sljit_ins); in sljit_generate_code() 1253 sljit_uw len = buf->used_size / sizeof(sljit_ins); in sljit_generate_code()
|
D | sljitNativeSPARC_common.c | 330 buf_end = buf_ptr + (buf->used_size >> 2); in sljit_generate_code()
|
D | sljitNativeARM_64.c | 262 buf_end = buf_ptr + (buf->used_size >> 2); in sljit_generate_code()
|
/external/tensorflow/tensorflow/lite/ |
D | interpreter_builder.cc | 275 size_t used_size = in Allocate() local 280 return aligned_alloc(used_alignment, used_size); in Allocate()
|
/external/adhd/cras/client/cras-sys/src/ |
D | gen.rs | 4678 pub used_size: u32, field 4694 unsafe { &(*(::std::ptr::null::<cras_audio_shm_config>())).used_size as *const _ as usize }, in bindgen_test_layout_cras_audio_shm_config() 4700 stringify!(used_size) in bindgen_test_layout_cras_audio_shm_config()
|