/aosp12/art/libartbase/base/ |
H A D | arena_allocator_test.cc | 161 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 D | bit_vector.cc | 357 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 D | SerializedData.h | 32 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 D | mremap.cpp | 39 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 D | VectorImpl.cpp | 386 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 D | snapshot_metadata_updater.cpp | 76 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 D | fake_redef_object.cc | 84 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 D | redef_object.cc | 97 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 D | avrcp_common.h | 170 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 D | compile_ioshark.h | 51 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 D | ioshark_bench.h | 68 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 D | libxbc.c | 65 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 D | HashBase.tcc | 189 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 D | dex_file_ext.cc | 144 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 D | ufdt_prop_dict.c | 103 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 D | updater_runtime_dynamic_partitions.cpp | 237 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 D | nfa_ee_act.cc | 458 *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 D | indirect_reference_table.cc | 218 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 D | linear_alloc.cc | 26 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 D | serializable.cpp | 81 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 D | dlmalloc_space.cc | 310 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 D | printf_common.h | 646 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 D | assembler.h | 116 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 D | types.h | 61 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 D | trie_node_arena.h | 80 auto new_size = (current_data_pointer_ + aligned_size + data_.size()) * 2; in AllocateData() local 81 data_.resize(new_size, '\0'); in AllocateData()
|