/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() 76 return buf->used_size - buf->level; in buf_available() 95 buf->read_idx %= buf->used_size; in buf_increment_read() 114 buf->write_idx %= buf->used_size; in buf_increment_write() [all …]
|
D | cras_shm.h | 25 uint32_t used_size; member 80 return shm->area->samples + shm->config.used_size * idx; in cras_shm_buff_for_idx() 91 if (offset > shm->config.used_size) in cras_shm_check_read_offset() 104 if (offset > shm->config.used_size) in cras_shm_check_write_offset() 105 return shm->config.used_size; in cras_shm_check_write_offset() 209 const unsigned used_size = shm->config.used_size; in cras_shm_get_bytes_queued() local 215 read_offset = MIN(shm->area->read_offset[i], used_size); in cras_shm_get_bytes_queued() 216 write_offset = MIN(shm->area->write_offset[i], used_size); in cras_shm_get_bytes_queued() 241 const unsigned used_size = shm->config.used_size; in cras_shm_get_frames_in_curr_buffer() local 243 read_offset = MIN(shm->area->read_offset[buf_idx], used_size); in cras_shm_get_frames_in_curr_buffer() [all …]
|
/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/src/tests/ |
D | shm_unittest.cc | 86 shm_.config.used_size = 480 * shm_.config.frame_bytes; in TEST_F() 95 EXPECT_EQ(shm_.area->samples + shm_.config.used_size, (uint8_t *)buf_); in TEST_F() 103 shm_.config.used_size = 480 * shm_.config.frame_bytes; in TEST_F() 112 EXPECT_EQ(shm_.area->samples + shm_.config.used_size, (uint8_t *)buf_); in TEST_F() 122 shm_.config.used_size = 480 * shm_.config.frame_bytes; in TEST_F() 131 shm_.config.used_size * shm_.area->read_buf_idx + in TEST_F() 155 shm_.config.used_size = 480 * shm_.config.frame_bytes; in TEST_F() 166 shm_.config.used_size = 480 * shm_.config.frame_bytes; in TEST_F() 178 shm_.config.used_size = 480 * shm_.config.frame_bytes; in TEST_F() 188 EXPECT_EQ(shm_.area->samples + shm_.config.used_size, ret); in TEST_F() [all …]
|
D | dev_io_stubs.cc | 24 uint32_t used_size = cb_threshold * 2 * frame_bytes; in create_shm() local 25 uint32_t shm_size = sizeof(cras_audio_shm_area) + used_size * 2; in create_shm() 28 shm->config.used_size = used_size; in create_shm()
|
D | hfp_info_unittest.cc | 89 ASSERT_GE(info->playback_buf->used_size / 2, buffer_frames + queued); in TEST() 106 ASSERT_GE(info->playback_buf->used_size / 2, buffer_frames + buffer_frames2); in TEST() 136 buf_increment_write(info->capture_buf, info->capture_buf->used_size - 100); in TEST() 149 ASSERT_GE(info->capture_buf->used_size / 2, buffer_frames + buffer_frames2); in TEST() 180 buffer_count = info->capture_buf->used_size; in TEST()
|
D | cras_client_unittest.cc | 188 area.config.used_size = shm_writable_frames_ * format_bytes; in StreamConnected() 247 area.config.used_size = shm_writable_frames_ * format_bytes; in StreamConnectedFail()
|
D | audio_thread_unittest.cc | 709 shm_area.config.used_size = 4096 * 4; in TEST() 710 rstream.shm.config.used_size = 4096 * 4; in TEST()
|
/external/perfetto/src/tracing/core/ |
D | startup_trace_writer.cc | 95 size_t used_size = 0; in TotalUsedSize() local 97 used_size += slice.GetUsedRange().size(); in TotalUsedSize() 99 return used_size; in TotalUsedSize() 278 size_t used_size = 0; in used_buffer_size() local 281 used_size += slice.GetUsedRange().size(); in used_buffer_size() 283 return used_size; in used_buffer_size()
|
/external/adhd/cras/src/server/ |
D | cras_hfp_info.c | 116 return info->playback_buf->used_size / cras_get_format_bytes(dev->format); in hfp_buf_size() 182 unsigned int used_size = in hfp_info_set_packet_size() local 185 byte_buffer_set_used_size(info->playback_buf, used_size); in hfp_info_set_packet_size() 186 byte_buffer_set_used_size(info->capture_buf, used_size); in hfp_info_set_packet_size()
|
D | cras_rstream.c | 27 size_t used_size, samples_size, frame_bytes; in setup_shm() local 35 used_size = stream->buffer_frames * frame_bytes; in setup_shm() 36 samples_size = used_size * CRAS_NUM_SHM_BUFFERS; in setup_shm() 59 cras_shm_set_used_size(shm, used_size); in setup_shm()
|
D | float_buffer.h | 43 b->buf->used_size = max_size; in float_buffer_create()
|
/external/v8/src/heap/ |
D | concurrent-marking.cc | 196 int used_size = map->UsedInstanceSize(); in VisitJSFunction() local 197 DCHECK_LE(used_size, size); in VisitJSFunction() 198 DCHECK_GE(used_size, JSObject::kHeaderSize); in VisitJSFunction() 199 const SlotSnapshot& snapshot = MakeSlotSnapshotWeak(map, object, used_size); in VisitJSFunction() 436 int used_size = map->UsedInstanceSize(); in VisitJSObjectSubclass() local 437 DCHECK_LE(used_size, size); in VisitJSObjectSubclass() 438 DCHECK_GE(used_size, T::kHeaderSize); in VisitJSObjectSubclass() 439 const SlotSnapshot& snapshot = MakeSlotSnapshot(map, object, used_size); in VisitJSObjectSubclass()
|
D | store-buffer.cc | 66 const size_t used_size = RoundUp(requested_size, CommitPageSize()); in SetUp() local 67 if (!reservation.SetPermissions(start, used_size, in SetUp()
|
D | spaces.cc | 3385 size_t used_size = ::RoundUp((object_address - address()) + object_size, in AllocateChunk() local 3387 if (used_size < CommittedPhysicalMemory()) { in AllocateChunk() 3388 return address() + used_size; in AllocateChunk()
|
/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() 545 …if (compiler->buf->used_size + size <= (BUF_SIZE - (sljit_uw)SLJIT_OFFSETOF(struct sljit_memory_fr… in ensure_buf() 546 ret = compiler->buf->memory + compiler->buf->used_size; in ensure_buf() 547 compiler->buf->used_size += size; in ensure_buf() 554 new_frag->used_size = size; in ensure_buf() 564 …if (compiler->abuf->used_size + size <= (ABUF_SIZE - (sljit_uw)SLJIT_OFFSETOF(struct sljit_memory_… in ensure_abuf() 565 ret = compiler->abuf->memory + compiler->abuf->used_size; in ensure_abuf() 566 compiler->abuf->used_size += size; in ensure_abuf() 573 new_frag->used_size = size; in ensure_abuf()
|
D | sljitLir.h | 336 sljit_uw used_size; member
|
D | sljitNativeSPARC_common.c | 326 buf_end = buf_ptr + (buf->used_size >> 2); in sljit_generate_code()
|
D | sljitNativeARM_64.c | 252 buf_end = buf_ptr + (buf->used_size >> 2); in sljit_generate_code()
|
D | sljitNativePPC_common.c | 367 buf_end = buf_ptr + (buf->used_size >> 2); in sljit_generate_code()
|
D | sljitNativeARM_T2_32.c | 392 buf_end = buf_ptr + (buf->used_size >> 1); in sljit_generate_code()
|
D | sljitNativeMIPS_common.c | 412 buf_end = buf_ptr + (buf->used_size >> 2); in sljit_generate_code()
|
D | sljitNativeARM_32.c | 641 buf_end = buf_ptr + (buf->used_size >> 2); in sljit_generate_code()
|
D | sljitNativeTILEGX_64.c | 1025 buf_end = buf_ptr + (buf->used_size >> 3); in sljit_generate_code()
|
D | sljitNativeX86_common.c | 518 buf_end = buf_ptr + buf->used_size; in sljit_generate_code()
|