Home
last modified time | relevance | path

Searched refs:new_size (Results 1 – 25 of 67) sorted by relevance

123

/aosp12/art/libartbase/base/
H A Darena_allocator_test.cc161 const size_t new_size = ArenaAllocator::kAlignment * 3; in TEST_F() local
162 void* realloc_allocation = allocator.Realloc(original_allocation, original_size, new_size); in TEST_F()
174 const size_t new_size = ArenaAllocator::kAlignment * 2 + (ArenaAllocator::kAlignment / 2); in TEST_F() local
175 void* realloc_allocation = allocator.Realloc(original_allocation, original_size, new_size); in TEST_F()
187 const size_t new_size = ArenaAllocator::kAlignment * 4; in TEST_F() local
200 const size_t new_size = ArenaAllocator::kAlignment * 3; in TEST_F() local
232 const size_t new_size = arena_allocator::kArenaDefaultSize + in TEST_F() local
250 const size_t new_size = ArenaAllocator::kAlignment * 3; in TEST_F() local
284 const size_t new_size = ArenaAllocator::kAlignment * 4; in TEST_F() local
301 const size_t new_size = ArenaAllocator::kAlignment * 3; in TEST_F() local
[all …]
H A Dbit_vector.cc357 uint32_t new_size = BitsToWords(idx + 1); in EnsureSize() local
358 DCHECK_GT(new_size, storage_size_); in EnsureSize()
360 static_cast<uint32_t*>(allocator_->Alloc(new_size * kWordBytes)); in EnsureSize()
363 memset(&new_storage[storage_size_], 0, (new_size - storage_size_) * kWordBytes); in EnsureSize()
371 storage_size_ = new_size; in EnsureSize()
/aosp12/system/logging/logd/
H A DSerializedData.h32 void Resize(size_t new_size) { in Resize() argument
34 data_.reset(new uint8_t[new_size]); in Resize()
35 size_ = new_size; in Resize()
36 } else if (new_size == 0) { in Resize()
39 } else if (new_size != size_) { in Resize()
40 std::unique_ptr<uint8_t[]> new_data(new uint8_t[new_size]); in Resize()
41 size_t copy_size = std::min(size_, new_size); in Resize()
44 size_ = new_size; in Resize()
/aosp12/bionic/libc/bionic/
H A Dmremap.cpp39 void* mremap(void* old_address, size_t old_size, size_t new_size, int flags, ...) { in mremap() argument
41 size_t rounded = __BIONIC_ALIGN(new_size, PAGE_SIZE); in mremap()
42 if (rounded < new_size || rounded > PTRDIFF_MAX) { in mremap()
56 return __mremap(old_address, old_size, new_size, flags, new_address); in mremap()
/aosp12/system/core/libutils/
H A DVectorImpl.cpp386 size_t new_size; in _grow() local
389 if (capacity() < new_size) { in _grow()
398 LOG_ALWAYS_FATAL_IF(__builtin_add_overflow(new_size, (new_size / 2), &new_capacity), in _grow()
448 mCount = new_size; in _grow()
465 size_t new_size; in _shrink() local
468 if (new_size < (capacity() / 2)) { in _shrink()
478 if ((where == new_size) && in _shrink()
496 if (where != new_size) { in _shrink()
511 if (where != new_size) { in _shrink()
513 _do_move_backward(to, from, new_size - where); in _shrink()
[all …]
/aosp12/system/core/fs_mgr/libsnapshot/
H A Dsnapshot_metadata_updater.cpp76 auto new_size = partition_update->new_partition_info().size(); in ShrinkPartitions() local
77 if (existing_partition->size() <= new_size) { in ShrinkPartitions()
80 if (!builder_->ResizePartition(existing_partition, new_size)) { in ShrinkPartitions()
246 auto new_size = partition_update->new_partition_info().size(); in GrowPartitions() local
247 if (existing_partition->size() >= new_size) { in GrowPartitions()
250 if (!builder_->ResizePartition(existing_partition, new_size)) { in GrowPartitions()
/aosp12/art/test/1959-redefine-object-instrument/
H A Dfake_redef_object.cc84 size_t new_size; in RedefineObjectHook() local
85 *new_class_data = writer.CreateImage(&allocator, &new_size); in RedefineObjectHook()
86 if (new_size > std::numeric_limits<jint>::max()) { in RedefineObjectHook()
92 *new_class_data_len = static_cast<jint>(new_size); in RedefineObjectHook()
/aosp12/art/test/980-redefine-object/
H A Dredef_object.cc97 size_t new_size; in RedefineObjectHook() local
98 *new_class_data = writer.CreateImage(&allocator, &new_size); in RedefineObjectHook()
99 if (new_size > std::numeric_limits<jint>::max()) { in RedefineObjectHook()
105 *new_class_data_len = static_cast<jint>(new_size); in RedefineObjectHook()
/aosp12/system/bt/include/hardware/avrcp/
H A Davrcp_common.h170 void resize(size_t new_size) { in resize() argument
171 new_size = new_size < kHeaderSize() ? 0 : new_size - kHeaderSize(); in resize()
172 if (value_.size() > new_size) { in resize()
173 value_.resize(new_size); in resize()
/aosp12/system/extras/ioshark/
H A Dcompile_ioshark.h51 files_db_update_size(void *node, u_int64_t new_size) in files_db_update_size() argument
55 if (db_node->size < new_size) in files_db_update_size()
56 db_node->size = new_size; in files_db_update_size()
H A Dioshark_bench.h68 files_db_update_size(void *node, u_int64_t new_size) in files_db_update_size() argument
72 if (db_node->size < new_size) in files_db_update_size()
73 db_node->size = new_size; in files_db_update_size()
/aosp12/bootable/libbootloader/libxbc/
H A Dlibxbc.c65 int32_t new_size = 0; in addBootConfigParameters() local
71 memcpy(&new_size, (void *)end, BOOTCONFIG_SIZE_SIZE); in addBootConfigParameters()
73 new_size = bootconfig_size; in addBootConfigParameters()
/aosp12/frameworks/compile/mclinker/include/mcld/ADT/
H A DHashBase.tcc189 unsigned int new_size; in mayRehash() local
194 new_size = compute_bucket_count(m_NumOfBuckets); in mayRehash()
197 new_size = m_NumOfBuckets; in mayRehash()
201 doRehash(new_size); in mayRehash()
/aosp12/art/libdexfile/external/
H A Ddex_file_ext.cc144 size_t* _Nullable new_size, in ADexFile_create() argument
150 if (new_size != nullptr) { in ADexFile_create()
151 *new_size = sizeof(art::DexFile::Header); in ADexFile_create()
175 if (new_size != nullptr) { in ADexFile_create()
176 *new_size = file_size; in ADexFile_create()
/aosp12/system/libufdt/
H A Dufdt_prop_dict.c103 int new_size = dict->mem_size * 2; in _ufdt_prop_dict_enlarge_if_needed() local
105 _ufdt_prop_dict_construct_int(&temp_dict, dict->fdtp, new_size); in _ufdt_prop_dict_enlarge_if_needed()
122 dict->mem_size = new_size; in _ufdt_prop_dict_enlarge_if_needed()
/aosp12/bootable/recovery/updater/
H A Dupdater_runtime_dynamic_partitions.cpp237 auto new_size = params.uint_arg(1, "maximum_size"); in PerformOpResizeGroup() local
238 if (!new_size.has_value()) return false; in PerformOpResizeGroup()
247 if (old_size != new_size.value()) { in PerformOpResizeGroup()
248 if (!params.builder->ChangeGroupSize(group_name_suffix, new_size.value())) { in PerformOpResizeGroup()
250 << new_size.value() << "."; in PerformOpResizeGroup()
/aosp12/system/nfc/src/nfa/ee/
H A Dnfa_ee_act.cc458 *p_cur_offset = new_size; in nfa_ee_add_aid_route_to_ecb()
461 memcpy(p, p_start, new_size); in nfa_ee_add_aid_route_to_ecb()
462 pp += new_size; in nfa_ee_add_aid_route_to_ecb()
466 *p_cur_offset += new_size; in nfa_ee_add_aid_route_to_ecb()
509 *p_cur_offset = new_size; in nfa_ee_add_sys_code_route_to_ecb()
512 memcpy(p, p_start, new_size); in nfa_ee_add_sys_code_route_to_ecb()
513 pp += new_size; in nfa_ee_add_sys_code_route_to_ecb()
517 *p_cur_offset += new_size; in nfa_ee_add_sys_code_route_to_ecb()
1175 uint16_t new_size; in nfa_ee_api_add_aid() local
1191 if (new_size > NFC_GetLmrtSize()) { in nfa_ee_api_add_aid()
[all …]
/aosp12/art/runtime/
H A Dindirect_reference_table.cc218 bool IndirectReferenceTable::Resize(size_t new_size, std::string* error_msg) { in Resize() argument
219 CHECK_GT(new_size, max_entries_); in Resize()
222 if (new_size > kMaxEntries) { in Resize()
223 *error_msg = android::base::StringPrintf("Requested size exceeds maximum: %zu", new_size); in Resize()
228 const size_t table_bytes = RoundUp(new_size * sizeof(IrtEntry), kPageSize); in Resize()
242 DCHECK_GE(real_new_size, new_size); in Resize()
H A Dlinear_alloc.cc26 void* LinearAlloc::Realloc(Thread* self, void* ptr, size_t old_size, size_t new_size) { in Realloc() argument
28 return allocator_.Realloc(ptr, old_size, new_size); in Realloc()
/aosp12/system/keymaster/android_keymaster/
H A Dserializable.cpp81 size_t new_size = buffer_size_ + size - available_write(); in reserve() local
82 uint8_t* new_buffer = new (std::nothrow) uint8_t[new_size]; in reserve()
87 buffer_size_ = new_size; in reserve()
/aosp12/art/runtime/gc/space/
H A Ddlmalloc_space.cc310 void DlMallocSpace::SetFootprintLimit(size_t new_size) { in SetFootprintLimit() argument
312 VLOG(heap) << "DlMallocSpace::SetFootprintLimit " << PrettySize(new_size); in SetFootprintLimit()
316 if (new_size < current_space_size) { in SetFootprintLimit()
318 new_size = current_space_size; in SetFootprintLimit()
320 mspace_set_footprint_limit(mspace_, new_size); in SetFootprintLimit()
/aosp12/bionic/libc/stdio/
H A Dprintf_common.h646 int new_size = *tablesize * 2; in __grow_type_table() local
648 if (new_size < getpagesize()) new_size = getpagesize(); in __grow_type_table()
651 *typetable = static_cast<unsigned char*>(mmap(nullptr, new_size, in __grow_type_table()
657 unsigned char* new_table = static_cast<unsigned char*>(mmap(nullptr, new_size, in __grow_type_table()
665 memset(*typetable + *tablesize, T_UNUSED, (new_size - *tablesize)); in __grow_type_table()
667 *tablesize = new_size; in __grow_type_table()
/aosp12/art/compiler/utils/
H A Dassembler.h116 void Resize(size_t new_size) { in Resize() argument
117 if (new_size > Capacity()) { in Resize()
118 ExtendCapacity(new_size); in Resize()
120 cursor_ = contents_ + new_size; in Resize()
/aosp12/packages/modules/adb/
H A Dtypes.h61 void resize(size_t new_size) { in resize()
63 allocate(new_size); in resize()
65 CHECK_GE(capacity_, new_size); in resize()
66 size_ = new_size; in resize()
/aosp12/system/core/property_service/libpropertyinfoserializer/
H A Dtrie_node_arena.h80 auto new_size = (current_data_pointer_ + aligned_size + data_.size()) * 2; in AllocateData() local
81 data_.resize(new_size, '\0'); in AllocateData()

123