Home
last modified time | relevance | path

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

/system/core/libutils/
DVectorImpl.cpp388 size_t new_size; in _grow() local
389 LOG_ALWAYS_FATAL_IF(!safe_add(&new_size, mCount, amount), "new_size overflow"); in _grow()
391 if (capacity() < new_size) { in _grow()
400 LOG_ALWAYS_FATAL_IF(!safe_add(&new_capacity, new_size, (new_size / 2)), in _grow()
449 mCount = new_size; in _grow()
466 size_t new_size; in _shrink() local
467 LOG_ALWAYS_FATAL_IF(!safe_sub(&new_size, mCount, amount)); in _shrink()
469 if (new_size < (capacity() / 2)) { in _shrink()
472 const size_t new_capacity = max(kMinVectorCapacity, new_size * 2); in _shrink()
479 if ((where == new_size) && in _shrink()
[all …]
DSharedBuffer.cpp100 SharedBuffer* SharedBuffer::reset(size_t new_size) const in reset()
103 SharedBuffer* sb = alloc(new_size); in reset()
/system/extras/ioshark/
Dcompile_ioshark.h45 files_db_update_size(void *node, u_int64_t new_size) in files_db_update_size() argument
49 if (db_node->size < new_size) in files_db_update_size()
50 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/update_engine/
Dupdate_engine_client.cc138 int64_t new_size) override;
143 const string& new_version, int64_t new_size) { in HandleStatusUpdate() argument
150 LOG(INFO) << " new_size: " << new_size; in HandleStatusUpdate()
158 int64_t new_size = 0; in ShowStatus() local
163 &new_version, &new_size)) { in ShowStatus()
178 new_version.c_str(), new_size); in ShowStatus()
188 int64_t new_size = 0; in GetNeedReboot() local
191 &new_version, &new_size)) { in GetNeedReboot()
214 int64_t new_size) override;
/system/update_engine/client_library/
Dclient_dbus.cc149 int64_t new_size; in StatusUpdateHandlersRegistered() local
155 &new_size)) { in StatusUpdateHandlersRegistered()
163 last_checked_time, progress, update_status, new_version, new_size); in StatusUpdateHandlersRegistered()
172 int64_t new_size) { in RunStatusUpdateHandlers() argument
178 last_checked_time, progress, status, new_version, new_size); in RunStatusUpdateHandlers()
Dclient_binder.cc183 int64_t new_size; in RegisterStatusUpdateHandler() local
186 &new_version, &new_size)) { in RegisterStatusUpdateHandler()
191 new_version, new_size); in RegisterStatusUpdateHandler()
Dclient_dbus.h97 int64_t new_size);
/system/bt/include/hardware/avrcp/
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()
/system/libufdt/
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()
Dufdt_convert.c70 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/
Dserializable.cpp72 size_t new_size = buffer_size_ + size - available_write(); in reserve() local
73 uint8_t* new_buffer = new (std::nothrow) uint8_t[new_size]; in reserve()
79 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/update_engine/client_library/include/update_engine/
Dstatus_update_handler.h42 int64_t new_size) = 0;
/system/nfc/src/nfa/ee/
Dnfa_ee_act.cc107 void nfa_ee_check_set_routing(uint16_t new_size, int* p_max_len, uint8_t* p,
433 uint8_t new_size = (uint8_t)(pp - p_start); in nfa_ee_add_aid_route_to_ecb() local
434 nfa_ee_check_set_routing(new_size, p_max_len, ps, p_cur_offset); in nfa_ee_add_aid_route_to_ecb()
439 *p_cur_offset = new_size; in nfa_ee_add_aid_route_to_ecb()
442 memcpy(p, p_start, new_size); in nfa_ee_add_aid_route_to_ecb()
443 pp += new_size; in nfa_ee_add_aid_route_to_ecb()
447 *p_cur_offset += new_size; in nfa_ee_add_aid_route_to_ecb()
484 uint8_t new_size = (uint8_t)(pp - p_start); in nfa_ee_add_sys_code_route_to_ecb() local
485 nfa_ee_check_set_routing(new_size, p_max_len, p_buff, p_cur_offset); in nfa_ee_add_sys_code_route_to_ecb()
490 *p_cur_offset = new_size; in nfa_ee_add_sys_code_route_to_ecb()
[all …]
/system/update_engine/payload_generator/
Dblock_mapping.cc142 size_t new_size, in MapPartitionBlocks() argument
157 new_fd, 0, new_size / block_size, new_block_ids)); in MapPartitionBlocks()
Dblock_mapping.h105 size_t new_size,
/system/keymaster/include/keymaster/
Dandroid_keymaster_utils.h338 const uint8_t* Reset(size_t new_size) { in Reset()
340 accessBlobData(this) = new (std::nothrow) uint8_t[new_size]; in Reset()
342 accessBlobSize(this) = new_size; in Reset()
/system/extras/simpleperf/
Drecord.cpp649 size_t new_size = size() - callchain_data.ip_nr * sizeof(uint64_t) + in UpdateUserCallChain() local
651 if (new_size == size()) { in UpdateUserCallChain()
654 char* new_binary = new char[new_size]; in UpdateUserCallChain()
656 SetSize(new_size); in UpdateUserCallChain()
711 CHECK_EQ(p, new_binary + new_size) << "sample_type = " << std::hex << sample_type; in UpdateUserCallChain()
/system/core/libpixelflinger/codeflinger/
Dblending.cpp130 int new_size = temp.size() < 8 ? temp.size() : 8; in build_blending() local
131 expand(fb, fb, new_size); in build_blending()