Searched refs:allocated_size (Results 1 - 25 of 44) sorted by relevance

12

/external/protobuf/src/google/protobuf/
H A Drepeated_field.cc70 if (old_rep && old_rep->allocated_size > 0) {
72 old_rep->allocated_size * sizeof(rep_->elements[0]));
73 rep_->allocated_size = old_rep->allocated_size;
75 rep_->allocated_size = 0;
92 for (int i = start + num; i < rep_->allocated_size; ++i)
95 rep_->allocated_size -= num;
H A Drepeated_field.h523 int allocated_size; member in struct:google::protobuf::internal::RepeatedPtrFieldBase::Rep
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/libchrome/base/trace_event/
H A Dheap_profiler_allocation_register_posix.cc51 void FreeGuardedVirtualMemory(void* address, size_t allocated_size) { argument
52 size_t size = bits::Align(allocated_size, GetPageSize()) + GetGuardSize();
H A Dmalloc_dump_provider.cc148 size_t allocated_size; member in struct:base::trace_event::__anon11059::WinHeapInfo
169 crt_heap_info->allocated_size += heap_entry.cbData;
241 allocated_objects_size = main_heap_info.allocated_size;
/external/webrtc/webrtc/common_video/
H A Di420_video_frame_unittest.cc64 frame.allocated_size(kYPlane));
66 frame.allocated_size(kUPlane));
68 frame.allocated_size(kVPlane));
110 memset(small_frame.buffer(kYPlane), 1, small_frame.allocated_size(kYPlane));
111 memset(small_frame.buffer(kUPlane), 2, small_frame.allocated_size(kUPlane));
112 memset(small_frame.buffer(kVPlane), 3, small_frame.allocated_size(kVPlane));
212 EXPECT_LE(kSizeY, frame2.allocated_size(kYPlane));
213 EXPECT_LE(kSizeUv, frame2.allocated_size(kUPlane));
214 EXPECT_LE(kSizeUv, frame2.allocated_size(kVPlane));
/external/webrtc/webrtc/video/
H A Dvideo_capture_input_unittest.cc270 (frame1.allocated_size(kYPlane) == frame2.allocated_size(kYPlane)) &&
271 (frame1.allocated_size(kUPlane) == frame2.allocated_size(kUPlane)) &&
272 (frame1.allocated_size(kVPlane) == frame2.allocated_size(kVPlane)) &&
274 frame1.allocated_size(kYPlane)) == 0) &&
276 frame1.allocated_size(kUPlane)) == 0) &&
278 frame1.allocated_size(kVPlane)) == 0));
H A Dvideo_encoder_unittest.cc111 frame_.allocated_size(webrtc::kYPlane));
113 frame_.allocated_size(webrtc::kUPlane));
115 frame_.allocated_size(webrtc::kVPlane));
/external/webp/src/utils/
H A Dbit_writer_utils.c208 size_t allocated_size; local
218 allocated_size = (3 * max_bytes) >> 1;
219 if (allocated_size < size_required) allocated_size = size_required;
221 allocated_size = (((allocated_size >> 10) + 1) << 10);
222 allocated_buf = (uint8_t*)WebPSafeMalloc(1ULL, allocated_size);
233 bw->end_ = bw->buf_ + allocated_size;
/external/pcre/dist2/src/sljit/
H A DsljitExecAllocator.c147 static sljit_uw allocated_size; variable
204 allocated_size += size;
225 allocated_size += size;
236 allocated_size += chunk_size;
253 allocated_size -= header->size;
280 /* If this block is freed, we still have (allocated_size / 2) free space. */
281 if (total_size - free_block->size > (allocated_size * 3 / 2)) {
/external/compiler-rt/lib/sanitizer_common/
H A 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/pdfium/third_party/libtiff/
H A Dtif_close.c99 if (tif->tif_fieldscompat[i].allocated_size)
H A Dtif_dir.h271 uint32 allocated_size; /* 0 if array is constant, other if modified by future definition extension support */ member in struct:_TIFFFieldArray
/external/curl/lib/
H A Dsendf.c137 return psnd->buffer && psnd->allocated_size &&
145 size_t bytestorecv = psnd->allocated_size - psnd->recv_size;
160 psnd->allocated_size = 2 * conn->data->set.buffer_size;
161 psnd->buffer = malloc(psnd->allocated_size);
167 bytestorecv = psnd->allocated_size;
178 psnd->allocated_size = 0;
191 DEBUGASSERT(psnd->allocated_size > 0);
192 DEBUGASSERT(psnd->recv_size <= psnd->allocated_size);
209 psnd->allocated_size = 0;
/external/clang/lib/Sema/
H A DAttributeList.cpp34 size_t AttributeList::allocated_size() const { function in class:AttributeList
76 size_t size = cur->allocated_size();
/external/tensorflow/tensorflow/core/framework/
H A Dtracking_allocator.cc92 allocated_bytes = (*itr).second.allocated_size;
134 return (*it).second.allocated_size;
H A Dtracking_allocator.h125 size_t allocated_size; member in struct:tensorflow::TrackingAllocator::Chunk
/external/syslinux/core/fs/ntfs/
H A Dntfs.h83 int64_t allocated_size; member in struct:ntfs_inode
294 int64_t allocated_size; member in struct:ntfs_attr_record::__anon23777::__anon23779
297 * allocated_size if attribute value is
339 uint64_t allocated_size; member in struct:ntfs_filename_attr
397 uint32_t allocated_size; member in struct:ntfs_idx_header
/external/webrtc/webrtc/test/
H A Dframe_generator_unittest.cc62 ASSERT_EQ(y_size, frame->allocated_size(PlaneType::kYPlane));
66 ASSERT_EQ(uv_size, frame->allocated_size(PlaneType::kUPlane));
70 ASSERT_EQ(uv_size, frame->allocated_size(PlaneType::kVPlane));
H A Dframe_generator.cc42 memset(frame_.buffer(kYPlane), 0x80, frame_.allocated_size(kYPlane));
43 memset(frame_.buffer(kUPlane), u, frame_.allocated_size(kUPlane));
44 memset(frame_.buffer(kVPlane), v, frame_.allocated_size(kVPlane));
/external/webrtc/webrtc/modules/video_processing/test/
H A Dvideo_processing_unittest.cc75 memset(video_frame_.buffer(kYPlane), 0, video_frame_.allocated_size(kYPlane));
76 memset(video_frame_.buffer(kUPlane), 0, video_frame_.allocated_size(kUPlane));
77 memset(video_frame_.buffer(kVPlane), 0, video_frame_.allocated_size(kVPlane));
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/
H A Dsimulcast_unittest.h242 memset(frame->buffer(plane_type), 0, frame->allocated_size(plane_type));
314 input_frame_.allocated_size(kYPlane));
316 input_frame_.allocated_size(kUPlane));
318 input_frame_.allocated_size(kVPlane));
564 input_frame_.allocated_size(kYPlane));
566 input_frame_.allocated_size(kUPlane));
568 input_frame_.allocated_size(kVPlane));
605 input_frame_.allocated_size(kYPlane));
607 input_frame_.allocated_size(kUPlane));
609 input_frame_.allocated_size(kVPlan
[all...]
/external/compiler-rt/lib/interception/
H A Dinterception_win.cc293 uptr allocated_size; member in struct:__interception::TrampolineMemoryRegion
356 current->allocated_size = 0;
360 } else if (current->max_size - current->allocated_size > size) {
363 uptr next_address = current->content + current->allocated_size;
379 uptr allocated_space = region->content + region->allocated_size;
380 region->allocated_size += size;
/external/webrtc/webrtc/
H A Dvideo_frame.h94 int allocated_size(PlaneType type) const;
/external/tensorflow/tensorflow/core/common_runtime/gpu/
H A Dgpu_bfc_allocator_test.cc392 size_t allocated_size = initial_ptrs_allocated_sizes[2 * i] + local
394 EXPECT_EQ(bin_info.total_bytes_in_use, allocated_size);
395 EXPECT_EQ(bin_info.total_bytes_in_bin, allocated_size);
/external/webrtc/webrtc/common_video/libyuv/
H A Dscaler_unittest.cc109 EXPECT_GT(width_ * height_, test_frame2.allocated_size(kYPlane));
110 EXPECT_GT(size_uv_, test_frame2.allocated_size(kUPlane));
111 EXPECT_GT(size_uv_, test_frame2.allocated_size(kVPlane));

Completed in 730 milliseconds

12