Home
last modified time | relevance | path

Searched refs:max_size (Results 1 – 25 of 42) 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/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 LegacyLruCache<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/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/unwinding/libunwindstack/
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.cpp130 uint64_t max_size; in PtraceRead() local
131 if (__builtin_add_overflow(addr, bytes, &max_size)) { in PtraceRead()
296 uint64_t max_size; in Init() local
297 if (!__builtin_add_overflow(size, offset_, &max_size) && max_size < size_) { in Init()
299 size_ = max_size; in Init()
/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/logging/logd/
DSerializedLogBuffer.cpp31 size_t max_size, uint64_t sequence, log_time realtime, in LogToLogBuffer() argument
35 log_buffer.push_back(SerializedLogChunk(max_size / SerializedLogBuffer::kChunkSizeDivisor)); in LogToLogBuffer()
41 log_buffer.push_back(SerializedLogChunk(max_size / SerializedLogBuffer::kChunkSizeDivisor)); in LogToLogBuffer()
51 void ClearLogsByUid(std::list<SerializedLogChunk>& log_buffer, uid_t uid, size_t max_size, in ClearLogsByUid() argument
75 SerializedLogChunk(max_size / SerializedLogBuffer::kChunkSizeDivisor)); in ClearLogsByUid()
84 LogToLogBuffer(new_logs, max_size, entry.sequence(), entry.realtime(), entry.uid(), in ClearLogsByUid()
DSerializedLogBuffer.h79 void ClearLogsByUid(std::list<SerializedLogChunk>& log_buffer, uid_t uid, size_t max_size,
DSimpleLogBuffer.h65 size_t max_size(log_id_t id) REQUIRES_SHARED(logd_lock) { return max_size_[id]; } in max_size() function
/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/keymaster/android_keymaster/
Dpure_soft_secure_key_storage.cpp27 explicit PureSoftSecureStorageMap(uint32_t max_size) : max_size_(max_size) {} in PureSoftSecureStorageMap() argument
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/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/core/fs_mgr/libsnapshot/
Ddm_snapshot_internals.h41 if (modified_chunks_.max_size() <= chunk_id) { in WriteChunk()
/system/core/libappfuse/include/libappfuse/
DFuseBuffer.h46 bool WriteWithBody(int fd, size_t max_size, const void* data) const;
/system/security/keystore2/src/crypto/
Dlib.rs224 let max_size: usize = EVP_MAX_MD_SIZE.try_into().unwrap(); in hkdf_extract() localVariable
225 let mut buf = ZVec::new(max_size)?; in hkdf_extract()
243 if out_len > max_size { in hkdf_extract()
/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.cc618 uint16_t max_size = 0; in gatts_write_attr_perm_check() local
634 max_size = 2; in gatts_write_attr_perm_check()
657 } else if (len != max_size) { in gatts_write_attr_perm_check()

12