Home
last modified time | relevance | path

Searched refs:allocated_size (Results 1 – 25 of 45) sorted by relevance

12

/external/protobuf/src/google/protobuf/
Drepeated_field.cc70 if (old_rep && old_rep->allocated_size > 0) { in InternalExtend()
72 old_rep->allocated_size * sizeof(rep_->elements[0])); in InternalExtend()
73 rep_->allocated_size = old_rep->allocated_size; in InternalExtend()
75 rep_->allocated_size = 0; in InternalExtend()
92 for (int i = start + num; i < rep_->allocated_size; ++i) in CloseGap()
95 rep_->allocated_size -= num; in CloseGap()
Drepeated_field.h523 int allocated_size;
1363 for (int i = 0; i < rep_->allocated_size; i++) {
1433 if (rep_ != NULL && current_size_ < rep_->allocated_size) {
1436 if (!rep_ || rep_->allocated_size == total_size_) {
1439 ++rep_->allocated_size;
1487 int allocated_elems = rep_->allocated_size - current_size_;
1491 if (rep_->allocated_size < current_size_) {
1492 rep_->allocated_size = current_size_;
1565 for (int i = 0; i < rep_->allocated_size; ++i) {
1576 if (rep_ != NULL && current_size_ < rep_->allocated_size) {
[all …]
/external/webrtc/webrtc/video/
Dvideo_capture_input_unittest.cc270 (frame1.allocated_size(kYPlane) == frame2.allocated_size(kYPlane)) && in EqualBufferFrames()
271 (frame1.allocated_size(kUPlane) == frame2.allocated_size(kUPlane)) && in EqualBufferFrames()
272 (frame1.allocated_size(kVPlane) == frame2.allocated_size(kVPlane)) && in EqualBufferFrames()
274 frame1.allocated_size(kYPlane)) == 0) && in EqualBufferFrames()
276 frame1.allocated_size(kUPlane)) == 0) && in EqualBufferFrames()
278 frame1.allocated_size(kVPlane)) == 0)); in EqualBufferFrames()
Dvideo_encoder_unittest.cc111 frame_.allocated_size(webrtc::kYPlane)); in EncodeFrame()
113 frame_.allocated_size(webrtc::kUPlane)); in EncodeFrame()
115 frame_.allocated_size(webrtc::kVPlane)); in EncodeFrame()
/external/webrtc/webrtc/common_video/
Di420_video_frame_unittest.cc64 frame.allocated_size(kYPlane)); in TEST()
66 frame.allocated_size(kUPlane)); in TEST()
68 frame.allocated_size(kVPlane)); in TEST()
110 memset(small_frame.buffer(kYPlane), 1, small_frame.allocated_size(kYPlane)); in TEST()
111 memset(small_frame.buffer(kUPlane), 2, small_frame.allocated_size(kUPlane)); in TEST()
112 memset(small_frame.buffer(kVPlane), 3, small_frame.allocated_size(kVPlane)); in TEST()
212 EXPECT_LE(kSizeY, frame2.allocated_size(kYPlane)); in TEST()
213 EXPECT_LE(kSizeUv, frame2.allocated_size(kUPlane)); in TEST()
214 EXPECT_LE(kSizeUv, frame2.allocated_size(kVPlane)); in TEST()
/external/webp/src/utils/
Dbit_writer_utils.c208 size_t allocated_size; in VP8LBitWriterResize() local
218 allocated_size = (3 * max_bytes) >> 1; in VP8LBitWriterResize()
219 if (allocated_size < size_required) allocated_size = size_required; in VP8LBitWriterResize()
221 allocated_size = (((allocated_size >> 10) + 1) << 10); in VP8LBitWriterResize()
222 allocated_buf = (uint8_t*)WebPSafeMalloc(1ULL, allocated_size); in VP8LBitWriterResize()
233 bw->end_ = bw->buf_ + allocated_size; in VP8LBitWriterResize()
/external/pcre/dist2/src/sljit/
DsljitExecAllocator.c154 static sljit_uw allocated_size; variable
211 allocated_size += size; in sljit_malloc_exec()
232 allocated_size += size; in sljit_malloc_exec()
243 allocated_size += chunk_size; in sljit_malloc_exec()
260 allocated_size -= header->size; in sljit_free_exec()
288 if (total_size - free_block->size > (allocated_size * 3 / 2)) { in sljit_free_exec()
DsljitProtExecAllocator.c238 static sljit_uw allocated_size; variable
298 allocated_size += size; in sljit_malloc_exec()
326 allocated_size += size; in sljit_malloc_exec()
338 allocated_size += chunk_size; in sljit_malloc_exec()
357 allocated_size -= header->size; in sljit_free_exec()
385 if (total_size - free_block->size > (allocated_size * 3 / 2)) { in sljit_free_exec()
/external/v8/src/
Dinstruction-stream.cc55 const uint32_t allocated_size = RoundUp(d.size(), page_size); in CreateOffHeapInstructionStream() local
58 AllocatePages(GetRandomMmapAddr(), allocated_size, page_size, in CreateOffHeapInstructionStream()
63 CHECK(SetPermissions(allocated_bytes, allocated_size, in CreateOffHeapInstructionStream()
/external/curl/lib/
Dsendf.c138 return psnd->buffer && psnd->allocated_size && in Curl_recv_has_postponed_data()
146 size_t bytestorecv = psnd->allocated_size - psnd->recv_size; in pre_receive_plain()
161 psnd->allocated_size = 2 * conn->data->set.buffer_size; in pre_receive_plain()
162 psnd->buffer = malloc(psnd->allocated_size); in pre_receive_plain()
168 bytestorecv = psnd->allocated_size; in pre_receive_plain()
179 psnd->allocated_size = 0; in pre_receive_plain()
192 DEBUGASSERT(psnd->allocated_size > 0); in get_pre_recved()
193 DEBUGASSERT(psnd->recv_size <= psnd->allocated_size); in get_pre_recved()
210 psnd->allocated_size = 0; in get_pre_recved()
/external/webrtc/webrtc/test/
Dframe_generator_unittest.cc62 ASSERT_EQ(y_size, frame->allocated_size(PlaneType::kYPlane)); in CheckFrameAndMutate()
66 ASSERT_EQ(uv_size, frame->allocated_size(PlaneType::kUPlane)); in CheckFrameAndMutate()
70 ASSERT_EQ(uv_size, frame->allocated_size(PlaneType::kVPlane)); in CheckFrameAndMutate()
Dframe_generator.cc42 memset(frame_.buffer(kYPlane), 0x80, frame_.allocated_size(kYPlane)); in NextFrame()
43 memset(frame_.buffer(kUPlane), u, frame_.allocated_size(kUPlane)); in NextFrame()
44 memset(frame_.buffer(kVPlane), v, frame_.allocated_size(kVPlane)); in NextFrame()
/external/compiler-rt/lib/interception/
Dinterception_win.cc293 uptr allocated_size; member
356 current->allocated_size = 0; in AllocateMemoryForTrampoline()
360 } else if (current->max_size - current->allocated_size > size) { in AllocateMemoryForTrampoline()
363 uptr next_address = current->content + current->allocated_size; in AllocateMemoryForTrampoline()
379 uptr allocated_space = region->content + region->allocated_size; in AllocateMemoryForTrampoline()
380 region->allocated_size += size; in AllocateMemoryForTrampoline()
/external/webrtc/webrtc/modules/video_processing/test/
Dvideo_processing_unittest.cc75 memset(video_frame_.buffer(kYPlane), 0, video_frame_.allocated_size(kYPlane)); in SetUp()
76 memset(video_frame_.buffer(kUPlane), 0, video_frame_.allocated_size(kUPlane)); in SetUp()
77 memset(video_frame_.buffer(kVPlane), 0, video_frame_.allocated_size(kVPlane)); in SetUp()
384 int allocated_size1 = frame1.allocated_size(plane_type);
385 int allocated_size2 = frame2.allocated_size(plane_type);
/external/webrtc/webrtc/modules/video_coding/codecs/vp8/
Dsimulcast_unittest.h242 memset(frame->buffer(plane_type), 0, frame->allocated_size(plane_type)); in CreateImage()
314 input_frame_.allocated_size(kYPlane)); in SetUpCodec()
316 input_frame_.allocated_size(kUPlane)); in SetUpCodec()
318 input_frame_.allocated_size(kVPlane)); in SetUpCodec()
564 input_frame_.allocated_size(kYPlane)); in SwitchingToOneStream()
566 input_frame_.allocated_size(kUPlane)); in SwitchingToOneStream()
568 input_frame_.allocated_size(kVPlane)); in SwitchingToOneStream()
605 input_frame_.allocated_size(kYPlane)); in SwitchingToOneStream()
607 input_frame_.allocated_size(kUPlane)); in SwitchingToOneStream()
609 input_frame_.allocated_size(kVPlane)); in SwitchingToOneStream()
/external/grpc-grpc/src/core/tsi/
Dfake_transport_security.cc48 size_t allocated_size; member
159 frame->allocated_size = frame->size; in tsi_fake_frame_ensure_size()
161 static_cast<unsigned char*>(gpr_malloc(frame->allocated_size)); in tsi_fake_frame_ensure_size()
162 } else if (frame->size > frame->allocated_size) { in tsi_fake_frame_ensure_size()
166 frame->allocated_size = frame->size; in tsi_fake_frame_ensure_size()
182 frame->allocated_size = TSI_FAKE_FRAME_INITIAL_ALLOCATED_SIZE; in tsi_fake_frame_decode()
184 static_cast<unsigned char*>(gpr_malloc(frame->allocated_size)); in tsi_fake_frame_decode()
/external/clang/lib/Sema/
DAttributeList.cpp34 size_t AttributeList::allocated_size() const { in allocated_size() function in AttributeList
76 size_t size = cur->allocated_size(); in reclaimPool()
/external/tensorflow/tensorflow/core/framework/
Dtracking_allocator.cc92 allocated_bytes = (*itr).second.allocated_size; in DeallocateRaw()
134 return (*it).second.allocated_size; in AllocatedSize()
Dtracking_allocator.h124 size_t allocated_size; member
/external/webrtc/webrtc/common_video/libyuv/
Dscaler_unittest.cc109 EXPECT_GT(width_ * height_, test_frame2.allocated_size(kYPlane)); in TEST_F()
110 EXPECT_GT(size_uv_, test_frame2.allocated_size(kUPlane)); in TEST_F()
111 EXPECT_GT(size_uv_, test_frame2.allocated_size(kVPlane)); in TEST_F()
/external/v8/src/heap/
Dstore-buffer.cc47 const size_t allocated_size = reservation.size(); in SetUp() local
55 Address* vm_limit = reinterpret_cast<Address*>(start + allocated_size); in SetUp()
/external/webrtc/webrtc/modules/video_render/test/testAPI/
DtestAPI.cc279 memset(frame->buffer(kYPlane), color, frame->allocated_size(kYPlane)); in GetTestVideoFrame()
280 memset(frame->buffer(kUPlane), color, frame->allocated_size(kUPlane)); in GetTestVideoFrame()
281 memset(frame->buffer(kVPlane), color, frame->allocated_size(kVPlane)); in GetTestVideoFrame()
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_malloc_mac.inc38 uptr allocated_size = RoundUpTo(sizeof(sanitizer_zone), page_size);
39 COMMON_MALLOC_MEMALIGN(page_size, allocated_size);
47 mprotect(new_zone, allocated_size, PROT_READ);
/external/compiler-rt/lib/asan/
Dasan_allocator.cc384 uptr allocated_size = allocator.GetActuallyAllocatedSize(allocated); in Allocate() local
385 PoisonShadow((uptr)allocated, allocated_size, kAsanHeapLeftRedzoneMagic); in Allocate()
902 uptr allocated_size = instance.AllocationSize(ptr); in __sanitizer_get_allocated_size() local
904 if (allocated_size == 0) { in __sanitizer_get_allocated_size()
908 return allocated_size; in __sanitizer_get_allocated_size()
/external/pdfium/third_party/libtiff/
Dtif_close.c99 if (tif->tif_fieldscompat[i].allocated_size) in TIFFCleanup()

12