Home
last modified time | relevance | path

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

/system/logging/logd/
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()
/system/core/libutils/binder/
DVectorImpl.cpp384 size_t new_size; in _grow() local
385 LOG_ALWAYS_FATAL_IF(__builtin_add_overflow(mCount, amount, &new_size), "new_size overflow"); in _grow()
387 if (capacity() < new_size) { in _grow()
396 LOG_ALWAYS_FATAL_IF(__builtin_add_overflow(new_size, (new_size / 2), &new_capacity), in _grow()
446 mCount = new_size; in _grow()
463 size_t new_size; in _shrink() local
464 LOG_ALWAYS_FATAL_IF(__builtin_sub_overflow(mCount, amount, &new_size)); in _shrink()
466 if (new_size < (capacity() / 2)) { in _shrink()
469 const size_t new_capacity = max(kMinVectorCapacity, new_size * 2); in _shrink()
476 if ((where == new_size) && in _shrink()
[all …]
DSharedBuffer.cpp101 SharedBuffer* SharedBuffer::reset(size_t new_size) const in reset()
104 SharedBuffer* sb = alloc(new_size); in reset()
/system/extras/ioshark/
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()
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()
/system/core/fs_mgr/libsnapshot/
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()
/system/libufdt/
Dufdt_prop_dict.c104 int new_size = dict->mem_size * 2; in _ufdt_prop_dict_enlarge_if_needed() local
106 _ufdt_prop_dict_construct_int(&temp_dict, dict->fdtp, new_size); in _ufdt_prop_dict_enlarge_if_needed()
123 dict->mem_size = new_size; in _ufdt_prop_dict_enlarge_if_needed()
Dufdt_convert.c72 int new_size = tree->mem_size_fdtps * 2; in ufdt_add_fdt() local
73 void **new_fdtps = dto_malloc(sizeof(void *) * new_size); in ufdt_add_fdt()
80 tree->mem_size_fdtps = new_size; in ufdt_add_fdt()
/system/keymaster/android_keymaster/
Dserializable.cpp76 size_t new_size = buffer_size_ + size - available_write(); in reserve() local
77 uint8_t* new_buffer = new (std::nothrow) uint8_t[new_size]; in reserve()
82 buffer_size_ = new_size; in reserve()
/system/core/property_service/libpropertyinfoserializer/
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()
/system/nfc/src/nfa/ee/
Dnfa_ee_act.cc110 void nfa_ee_check_set_routing(uint16_t new_size, int* p_max_len, uint8_t* p,
507 uint8_t new_size = (uint8_t)(pp - p_start); in nfa_ee_add_aid_route_to_ecb() local
508 nfa_ee_check_set_routing(new_size, p_max_len, ps, p_cur_offset); in nfa_ee_add_aid_route_to_ecb()
513 *p_cur_offset = new_size; in nfa_ee_add_aid_route_to_ecb()
516 memcpy(p, p_start, new_size); in nfa_ee_add_aid_route_to_ecb()
517 pp += new_size; in nfa_ee_add_aid_route_to_ecb()
521 *p_cur_offset += new_size; in nfa_ee_add_aid_route_to_ecb()
582 uint8_t new_size = (uint8_t)(pp - p_start); in nfa_ee_add_sys_code_route_to_ecb() local
583 nfa_ee_check_set_routing(new_size, p_max_len, p_buff, p_cur_offset); in nfa_ee_add_sys_code_route_to_ecb()
588 *p_cur_offset = new_size; in nfa_ee_add_sys_code_route_to_ecb()
[all …]
/system/update_engine/payload_generator/
Dblock_mapping.cc143 size_t new_size, in MapPartitionBlocks() argument
158 new_fd, 0, new_size / block_size, new_block_ids)); in MapPartitionBlocks()
Dblock_mapping.h107 size_t new_size,
/system/keymaster/include/keymaster/
Dandroid_keymaster_utils.h195 const uint8_t* Reset(size_t new_size) { in Reset()
197 accessBlobData(this) = new (std::nothrow) uint8_t[new_size]; in Reset()
198 if (accessBlobData(this)) accessBlobSize(this) = new_size; in Reset()
/system/extras/simpleperf/
Drecord.cpp393 size_t new_size = size() - old_name_len + new_name_len; in SetCommandName() local
394 char* new_binary = new char[new_size]; in SetCommandName()
396 header.size = new_size; in SetCommandName()
404 CHECK_EQ(p, new_binary + new_size); in SetCommandName()
723 uint32_t new_size = size() + add_size_in_callchain; in ReplaceRegAndStackWithCallChain() local
724 CHECK_GT(new_size, reduce_size); in ReplaceRegAndStackWithCallChain()
725 new_size -= reduce_size; in ReplaceRegAndStackWithCallChain()
727 BuildBinaryWithNewCallChain(new_size, ips); in ReplaceRegAndStackWithCallChain()
785 size_t new_size = in UpdateUserCallChain() local
788 BuildBinaryWithNewCallChain(new_size, user_ips); in UpdateUserCallChain()
[all …]
Drecord.h433 void BuildBinaryWithNewCallChain(uint32_t new_size, const std::vector<uint64_t>& ips);
/system/update_engine/scripts/
Dpayload_info_unittest.py88 def __init__(self, partition_name, operations, old_size, new_size): argument
92 self.new_partition_info = FakePartitionInfo(new_size)
/system/logging/liblog/
Dpmsg_reader.cpp154 static void* realloc_or_free(void* ptr, size_t new_size) { in realloc_or_free() argument
155 void* result = realloc(ptr, new_size); in realloc_or_free()
/system/chre/external/flatbuffers/include/flatbuffers/
Dflatbuffers.h626 size_t new_size, size_t in_use_back,
628 FLATBUFFERS_ASSERT(new_size > old_size); // vector_downward only grows
629 uint8_t *new_p = allocate(new_size);
630 memcpy_downward(old_p, old_size, new_p, new_size, in_use_back,
642 size_t new_size, size_t in_use_back,
644 memcpy(new_p + new_size - in_use_back, old_p + old_size - in_use_back,
701 size_t old_size, size_t new_size,
704 return allocator ? allocator->reallocate_downward(old_p, old_size, new_size,
707 old_p, old_size, new_size, in_use_back, in_use_front);
710 return allocator->reallocate_downward(old_p, old_size, new_size,
/system/core/libutils/include/utils/
DString16.h156 void* editResize(size_t new_size);
/system/core/libutils/binder/include/utils/
DString16.h156 void* editResize(size_t new_size);
/system/core/fs_mgr/liblp/
Dbuilder.cpp649 uint64_t new_size, bool force_check) { in ValidatePartitionSizeChange() argument
653 if (!force_check && new_size <= old_size) { in ValidatePartitionSizeChange()
659 uint64_t space_needed = new_size - old_size; in ValidatePartitionSizeChange()
/system/core/fs_mgr/liblp/include/liblp/
Dbuilder.h391 bool ValidatePartitionSizeChange(Partition* partition, uint64_t old_size, uint64_t new_size,
/system/update_engine/payload_consumer/
Dinstall_operation_executor.cc364 auto dst_size = patch_reader->header().new_size; in ExecuteZucchiniOperation()