Home
last modified time | relevance | path

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

12

/external/adhd/cras/src/common/
Dbyte_buffer.h18 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 …]
Dcras_shm.h25 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/
Dresize_default_initialized.pass.cpp30 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/
Dshm_unittest.cc86 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 …]
Ddev_io_stubs.cc24 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()
Dhfp_info_unittest.cc89 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()
Dcras_client_unittest.cc188 area.config.used_size = shm_writable_frames_ * format_bytes; in StreamConnected()
247 area.config.used_size = shm_writable_frames_ * format_bytes; in StreamConnectedFail()
Daudio_thread_unittest.cc709 shm_area.config.used_size = 4096 * 4; in TEST()
710 rstream.shm.config.used_size = 4096 * 4; in TEST()
/external/perfetto/src/tracing/core/
Dstartup_trace_writer.cc95 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/
Dcras_hfp_info.c116 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()
Dcras_rstream.c27 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()
Dfloat_buffer.h43 b->buf->used_size = max_size; in float_buffer_create()
/external/v8/src/heap/
Dconcurrent-marking.cc196 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()
Dstore-buffer.cc66 const size_t used_size = RoundUp(requested_size, CommitPageSize()); in SetUp() local
67 if (!reservation.SetPermissions(start, used_size, in SetUp()
Dspaces.cc3385 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/
DsljitLir.c407 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()
DsljitLir.h336 sljit_uw used_size; member
DsljitNativeSPARC_common.c326 buf_end = buf_ptr + (buf->used_size >> 2); in sljit_generate_code()
DsljitNativeARM_64.c252 buf_end = buf_ptr + (buf->used_size >> 2); in sljit_generate_code()
DsljitNativePPC_common.c367 buf_end = buf_ptr + (buf->used_size >> 2); in sljit_generate_code()
DsljitNativeARM_T2_32.c392 buf_end = buf_ptr + (buf->used_size >> 1); in sljit_generate_code()
DsljitNativeMIPS_common.c412 buf_end = buf_ptr + (buf->used_size >> 2); in sljit_generate_code()
DsljitNativeARM_32.c641 buf_end = buf_ptr + (buf->used_size >> 2); in sljit_generate_code()
DsljitNativeTILEGX_64.c1025 buf_end = buf_ptr + (buf->used_size >> 3); in sljit_generate_code()
DsljitNativeX86_common.c518 buf_end = buf_ptr + buf->used_size; in sljit_generate_code()

12