Home
last modified time | relevance | path

Searched refs:max_size (Results 1 – 25 of 38) sorted by relevance

12

/system/libbase/
Dlogging_splitters_test.cpp169 ptrdiff_t max_size = LOGGER_ENTRY_MAX_PAYLOAD - strlen(tag) - 35; in TEST() local
170 auto long_string_a = std::string(max_size, 'a'); in TEST()
171 auto long_string_b = std::string(max_size, 'b'); in TEST()
172 auto long_string_c = std::string(max_size, 'c'); in TEST()
182 ptrdiff_t max_size = LOGGER_ENTRY_MAX_PAYLOAD - tag.size() - 35; in TEST() local
186 auto second_string_size = max_size - first_string_size - 1; in TEST()
189 auto exact_string = std::string(max_size, 'c'); in TEST()
191 auto large_string = std::string(max_size + 50, 'd'); in TEST()
210 ptrdiff_t max_size = LOGGER_ENTRY_MAX_PAYLOAD - tag.size() - 35; in TEST() local
214 auto second_string_size = max_size - first_string_size - 1 - 2 * file_header.size(); in TEST()
[all …]
Dlogging_splitters.h57 ptrdiff_t max_size = LOGGER_ENTRY_MAX_PAYLOAD - strlen(tag) - 35; in SplitByLogdChunks() local
58 if (max_size <= 0) { in SplitByLogdChunks()
70 __attribute__((uninitialized)) char logd_chunk[max_size + 1]; in SplitByLogdChunks()
100 if (chunk_position != 0 && chunk_position + (newline - msg) + 1 + file_header_size > max_size) { in SplitByLogdChunks()
115 chunk_position + static_cast<int>(strlen(msg)) + 1 + file_header_size <= max_size) { in SplitByLogdChunks()
/system/nfc/src/nfc/include/
Dndef_utils.h248 extern void NDEF_MsgInit(uint8_t* p_msg, uint32_t max_size,
262 extern tNDEF_STATUS NDEF_MsgAddRec(uint8_t* p_msg, uint32_t max_size,
279 extern tNDEF_STATUS NDEF_MsgAppendPayload(uint8_t* p_msg, uint32_t max_size,
295 extern tNDEF_STATUS NDEF_MsgReplacePayload(uint8_t* p_msg, uint32_t max_size,
311 extern tNDEF_STATUS NDEF_MsgReplaceType(uint8_t* p_msg, uint32_t max_size,
327 extern tNDEF_STATUS NDEF_MsgReplaceId(uint8_t* p_msg, uint32_t max_size,
/system/core/libunwindstack/
DDexFile.cpp57 size_t max_size = info->end - dex_file_offset_in_memory; in Create() local
59 size_t size = max_size; in Create()
64 if (art_dex_file != nullptr && size <= max_size) { in Create()
76 return DexFileFromMemory::Create(dex_file_offset_in_memory, memory, info->name, max_size); in Create()
114 size_t max_size) { in Create() argument
125 if (size > max_size) { in Create()
DMapInfo.cpp49 uint64_t max_size; in InitFileMemoryFromPreviousReadOnlyMap() local
50 if (!Elf::GetInfo(memory, &max_size) || max_size < map_size) { in InitFileMemoryFromPreviousReadOnlyMap()
54 if (!memory->Init(name, prev_real_map->offset, max_size)) { in InitFileMemoryFromPreviousReadOnlyMap()
92 uint64_t max_size = 0; in GetFileMemory() local
93 if (Elf::GetInfo(memory.get(), &max_size)) { in GetFileMemory()
95 if (max_size > map_size) { in GetFileMemory()
96 if (memory->Init(name, offset, max_size)) { in GetFileMemory()
DMemory.cpp115 uint64_t max_size; in PtraceRead() local
116 if (__builtin_add_overflow(addr, bytes, &max_size)) { in PtraceRead()
273 uint64_t max_size; in Init() local
274 if (!__builtin_add_overflow(size, offset_, &max_size) && max_size < size_) { in Init()
276 size_ = max_size; in Init()
DDexFile.h59 size_t max_size);
/system/core/libsparse/
Dsimg2simg.cpp45 int64_t max_size; in main() local
55 max_size = atoll(argv[3]); in main()
69 files = sparse_file_resparse(s, max_size, nullptr, 0); in main()
81 files = sparse_file_resparse(s, max_size, out_s, files); in main()
/system/bt/common/
Dlru_unittest.cc202 int max_size = 0xFFFFF; // 2^20 = 1M in TEST() local
203 LruCache<int, int> cache(static_cast<size_t>(max_size), "testing"); in TEST()
206 for (int key = 0; key < max_size; key++) { in TEST()
211 for (int key = 0; key < max_size; key++) { in TEST()
216 for (int key = 0; key < max_size; key++) { in TEST()
217 int new_key = key + max_size; in TEST()
225 for (int key = max_size; key < 2 * max_size; key++) { in TEST()
/system/security/keystore/
Dkeymaster_enforcement.h42 explicit AccessTimeMap(uint32_t max_size) : max_size_(max_size) {} in AccessTimeMap() argument
65 explicit AccessCountMap(uint32_t max_size) : max_size_(max_size) {} in AccessCountMap() argument
/system/sepolicy/tests/include/
Dsepol_wrap.h15 int get_type(char *out, size_t max_size, void *policydbp, void *type_iterp);
19 int get_genfs(char *out, size_t max_size, void *policydbp, void *genfs_iterp);
/system/core/libappfuse/
DFuseBuffer.cc40 bool CheckHeaderLength(const FuseMessage<T>* self, const char* name, size_t max_size) { in CheckHeaderLength() argument
42 if (header.len >= sizeof(header) && header.len <= max_size) { in CheckHeaderLength()
88 size_t max_size) { in WriteInternal() argument
89 if (!CheckHeaderLength<T>(self, "Write", max_size)) { in WriteInternal()
179 bool FuseMessage<T>::WriteWithBody(int fd, size_t max_size, const void* data) const { in WriteWithBody() argument
181 return WriteInternal(this, fd, 0, data, max_size) == ResultOrAgain::kSuccess; in WriteWithBody()
/system/sepolicy/tests/
Dsepol_wrap.cpp50 int get_genfs(char *out, size_t max_size, void *policydbp, void *genfs_iterp) in get_genfs() argument
56 len = snprintf(out, max_size, "%s %s %s:%s:%s:s0", in get_genfs()
63 if (len >= max_size) { in get_genfs()
159 int get_type(char *out, size_t max_size, void *policydbp, void *type_iterp) in get_type() argument
182 len = snprintf(out, max_size, "%s", db->p_type_val_to_name[i->bit]); in get_type()
183 if (len >= max_size) { in get_type()
268 static int get_avtab_allow_rule(char *out, size_t max_size, policydb_t *db, in get_avtab_allow_rule() argument
280 len = snprintf(out, max_size, "allow,%s,%s,%s,%s", in get_avtab_allow_rule()
288 if (len >= max_size) { in get_avtab_allow_rule()
/system/bt/osi/test/fuzzers/ringbuffer/
Dfuzz_ringbuffer.cc103 size_t max_size = ringbuffer_size(buf); in callArbitraryFunction() local
104 if (max_size == 0) { in callArbitraryFunction()
107 size_t size = dataProvider->ConsumeIntegralInRange<size_t>(1, max_size); in callArbitraryFunction()
/system/nfc/src/nfc/ndef/
Dndef_utils.cc806 void NDEF_MsgInit(uint8_t* p_msg, uint32_t max_size, uint32_t* p_cur_size) { in NDEF_MsgInit() argument
808 memset(p_msg, 0, max_size); in NDEF_MsgInit()
822 extern tNDEF_STATUS NDEF_MsgAddRec(uint8_t* p_msg, uint32_t max_size, in NDEF_MsgAddRec() argument
841 if ((*p_cur_size + recSize) > max_size) return (NDEF_MSG_INSUFFICIENT_MEM); in NDEF_MsgAddRec()
908 tNDEF_STATUS NDEF_MsgAppendPayload(uint8_t* p_msg, uint32_t max_size, in NDEF_MsgAppendPayload() argument
945 if ((*p_cur_size + add_pl_len + incr_lenfld) > max_size) in NDEF_MsgAppendPayload()
990 tNDEF_STATUS NDEF_MsgReplacePayload(uint8_t* p_msg, uint32_t max_size, in NDEF_MsgReplacePayload() argument
1028 if ((*p_cur_size + paylen_delta + 3) > max_size) in NDEF_MsgReplacePayload()
1035 } else if ((*p_cur_size + paylen_delta) > max_size) in NDEF_MsgReplacePayload()
1099 tNDEF_STATUS NDEF_MsgReplaceType(uint8_t* p_msg, uint32_t max_size, in NDEF_MsgReplaceType() argument
[all …]
/system/bt/hci/include/
Dhci_hal.h67 size_t max_size);
/system/update_engine/payload_generator/
Dpayload_generation_config.cc160 uint64_t max_size; in LoadDynamicPartitionMetadata() local
161 if (!base::StringToUint64(buf, &max_size)) { in LoadDynamicPartitionMetadata()
166 group->set_size(max_size); in LoadDynamicPartitionMetadata()
/system/keymaster/android_keymaster/
Dkeymaster_enforcement.cpp34 explicit AccessTimeMap(uint32_t max_size) : max_size_(max_size) {} in AccessTimeMap() argument
56 explicit AccessCountMap(uint32_t max_size) : max_size_(max_size) {} in AccessCountMap() argument
/system/core/libappfuse/include/libappfuse/
DFuseBuffer.h46 bool WriteWithBody(int fd, size_t max_size, const void* data) const;
/system/core/logd/
DSimpleLogBuffer.h63 unsigned long max_size(log_id_t id) REQUIRES_SHARED(lock_) { return max_size_[id]; } in max_size() function
/system/nfc/src/nfc/tags/
Drw_t1t_ndef.cc624 ndef_data.max_size = (uint32_t)rw_t1t_get_ndef_max_size(); in rw_t1t_handle_read_rsp()
627 if (ndef_data.max_size < ndef_data.cur_size) { in rw_t1t_handle_read_rsp()
629 ndef_data.max_size = ndef_data.cur_size; in rw_t1t_handle_read_rsp()
696 ndef_data.max_size = (uint32_t)rw_t1t_get_ndef_max_size(); in rw_t1t_handle_read_rsp()
697 if (ndef_data.max_size < ndef_data.cur_size) { in rw_t1t_handle_read_rsp()
699 ndef_data.max_size = ndef_data.cur_size; in rw_t1t_handle_read_rsp()
715 ndef_data.max_size = (uint32_t)rw_t1t_get_ndef_max_size(); in rw_t1t_handle_read_rsp()
716 if (ndef_data.max_size < ndef_data.cur_size) { in rw_t1t_handle_read_rsp()
718 ndef_data.max_size = ndef_data.cur_size; in rw_t1t_handle_read_rsp()
738 ndef_data.max_size = (uint32_t)rw_t1t_get_ndef_max_size(); in rw_t1t_handle_read_rsp()
[all …]
/system/nfc/src/nfa/include/
Dnfa_dta_int.h153 uint32_t max_size; member
/system/bt/stack/gatt/
Dgatt_db.cc590 uint16_t max_size = 0; in gatts_write_attr_perm_check() local
606 max_size = 2; in gatts_write_attr_perm_check()
629 } else if (len != max_size) { in gatts_write_attr_perm_check()
/system/nfc/src/nfa/rw/
Dnfa_rw_act.cc210 p_rw_data->ndef.cur_size, p_rw_data->ndef.max_size, in nfa_rw_handle_ndef_detect()
224 conn_evt_data.ndef_detect.max_size = nfa_rw_cb.ndef_max_size = in nfa_rw_handle_ndef_detect()
225 p_rw_data->ndef.max_size; in nfa_rw_handle_ndef_detect()
289 conn_evt_data.ndef_detect.max_size = 0; in nfa_rw_handle_ndef_detect()
296 conn_evt_data.ndef_detect.max_size = nfa_rw_cb.ndef_max_size = in nfa_rw_handle_ndef_detect()
297 p_rw_data->ndef.max_size; in nfa_rw_handle_ndef_detect()
1010 nfa_rw_cb.ndef_max_size = p_rw_data->ndef.max_size; in nfa_rw_handle_t4t_evt()
1652 conn_evt_data.ndef_detect.max_size = 0; in nfa_rw_detect_ndef()
2971 conn_evt_data.ndef_detect.max_size = 0; in nfa_rw_op_req_while_busy()
3054 conn_evt_data.ndef_detect.max_size = 0; in nfa_rw_op_req_while_inactive()
/system/core/fastboot/
Dfastboot.cpp828 static struct sparse_file** load_sparse_files(int fd, int64_t max_size) { in load_sparse_files() argument
832 if (max_size <= 0 || max_size > std::numeric_limits<uint32_t>::max()) { in load_sparse_files()
833 die("invalid max size %" PRId64, max_size); in load_sparse_files()
836 int files = sparse_file_resparse(s, max_size, nullptr, 0); in load_sparse_files()
842 files = sparse_file_resparse(s, max_size, out_s, files); in load_sparse_files()

12