/system/logging/logd/ |
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()
|
/system/extras/ioshark/ |
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()
|
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()
|
/system/core/libutils/ |
D | VectorImpl.cpp | 386 size_t new_size; in _grow() local 387 LOG_ALWAYS_FATAL_IF(__builtin_add_overflow(mCount, amount, &new_size), "new_size overflow"); in _grow() 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 466 LOG_ALWAYS_FATAL_IF(__builtin_sub_overflow(mCount, amount, &new_size)); in _shrink() 468 if (new_size < (capacity() / 2)) { in _shrink() 471 const size_t new_capacity = max(kMinVectorCapacity, new_size * 2); in _shrink() 478 if ((where == new_size) && in _shrink() [all …]
|
D | SharedBuffer.cpp | 101 SharedBuffer* SharedBuffer::reset(size_t new_size) const in reset() 104 SharedBuffer* sb = alloc(new_size); in reset()
|
/system/core/fs_mgr/libsnapshot/ |
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()
|
/system/bt/include/hardware/avrcp/ |
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()
|
/system/libufdt/ |
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()
|
D | ufdt_convert.c | 70 int new_size = tree->mem_size_fdtps * 2; in ufdt_add_fdt() local 71 void **new_fdtps = dto_malloc(sizeof(void *) * new_size); in ufdt_add_fdt() 78 tree->mem_size_fdtps = new_size; in ufdt_add_fdt()
|
/system/keymaster/android_keymaster/ |
D | serializable.cpp | 77 size_t new_size = buffer_size_ + size - available_write(); in reserve() local 78 uint8_t* new_buffer = new (std::nothrow) uint8_t[new_size]; in reserve() 83 buffer_size_ = new_size; in reserve()
|
/system/core/property_service/libpropertyinfoserializer/ |
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()
|
/system/nfc/src/nfa/ee/ |
D | nfa_ee_act.cc | 111 void nfa_ee_check_set_routing(uint16_t new_size, int* p_max_len, uint8_t* p, 452 uint8_t new_size = (uint8_t)(pp - p_start); in nfa_ee_add_aid_route_to_ecb() local 453 nfa_ee_check_set_routing(new_size, p_max_len, ps, p_cur_offset); in nfa_ee_add_aid_route_to_ecb() 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() 503 uint8_t new_size = (uint8_t)(pp - p_start); in nfa_ee_add_sys_code_route_to_ecb() local 504 nfa_ee_check_set_routing(new_size, p_max_len, p_buff, p_cur_offset); in nfa_ee_add_sys_code_route_to_ecb() 509 *p_cur_offset = new_size; in nfa_ee_add_sys_code_route_to_ecb() [all …]
|
/system/update_engine/payload_generator/ |
D | block_mapping.cc | 143 size_t new_size, in MapPartitionBlocks() argument 158 new_fd, 0, new_size / block_size, new_block_ids)); in MapPartitionBlocks()
|
D | block_mapping.h | 107 size_t new_size,
|
/system/keymaster/include/keymaster/ |
D | android_keymaster_utils.h | 193 const uint8_t* Reset(size_t new_size) { in Reset() 195 accessBlobData(this) = new (std::nothrow) uint8_t[new_size]; in Reset() 196 if (accessBlobData(this)) accessBlobSize(this) = new_size; in Reset()
|
/system/extras/simpleperf/ |
D | record.cpp | 349 size_t new_size = size() - old_name_len + new_name_len; in SetCommandName() local 350 char* new_binary = new char[new_size]; in SetCommandName() 352 header.size = new_size; in SetCommandName() 360 CHECK_EQ(p, new_binary + new_size); in SetCommandName() 595 uint32_t new_size = size() + size_added_in_callchain - size_reduced_in_reg_stack; in ReplaceRegAndStackWithCallChain() local 596 BuildBinaryWithNewCallChain(new_size, ips); in ReplaceRegAndStackWithCallChain() 654 size_t new_size = in UpdateUserCallChain() local 657 BuildBinaryWithNewCallChain(new_size, user_ips); in UpdateUserCallChain() 660 void SampleRecord::BuildBinaryWithNewCallChain(uint32_t new_size, in BuildBinaryWithNewCallChain() argument 664 if (new_size > size()) { in BuildBinaryWithNewCallChain() [all …]
|
D | record.h | 417 void BuildBinaryWithNewCallChain(uint32_t new_size, const std::vector<uint64_t>& ips);
|
/system/update_engine/scripts/ |
D | payload_info_unittest.py | 88 def __init__(self, partition_name, operations, old_size, new_size): argument 92 self.new_partition_info = FakePartitionInfo(new_size)
|
/system/logging/liblog/ |
D | pmsg_reader.cpp | 154 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/update_engine/client_library/ |
D | client_dbus.cc | 54 out_status->new_size_bytes = status.new_size(); in ConvertToUpdateEngineStatus()
|
/system/chre/external/flatbuffers/include/flatbuffers/ |
D | flatbuffers.h | 626 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/ |
D | String16.h | 131 void* editResize(size_t new_size);
|
/system/core/fs_mgr/liblp/ |
D | builder.cpp | 649 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/ |
D | builder.h | 389 bool ValidatePartitionSizeChange(Partition* partition, uint64_t old_size, uint64_t new_size,
|
/system/update_engine/cros/ |
D | omaha_request_action_unittest.cc | 964 int64_t new_size = fake_update_response_.size; in TEST_F() local 967 fake_prefs_->SetInt64(kPrefsUpdateOverCellularTargetSize, new_size); in TEST_F()
|