Home
last modified time | relevance | path

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

12

/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,
Drw_api.h195 uint32_t max_size; /* max number of bytes available for NDEF data */ member
/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/core/libunwindstack/
DMapInfo.cpp46 uint64_t max_size; in InitFileMemoryFromPreviousReadOnlyMap() local
47 if (!Elf::GetInfo(memory, &max_size) || max_size < map_size) { in InitFileMemoryFromPreviousReadOnlyMap()
51 if (!memory->Init(name, prev_map->offset, max_size)) { in InitFileMemoryFromPreviousReadOnlyMap()
89 uint64_t max_size = 0; in GetFileMemory() local
90 if (Elf::GetInfo(memory.get(), &max_size)) { in GetFileMemory()
92 if (max_size > map_size) { in GetFileMemory()
93 if (memory->Init(name, offset, max_size)) { in GetFileMemory()
DMemory.cpp107 uint64_t max_size; in PtraceRead() local
108 if (__builtin_add_overflow(addr, bytes, &max_size)) { in PtraceRead()
240 uint64_t max_size; in Init() local
241 if (!__builtin_add_overflow(size, offset_, &max_size) && max_size < size_) { in Init()
243 size_ = max_size; in Init()
/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/nfc/src/nfc/ndef/
Dndef_utils.cc802 void NDEF_MsgInit(uint8_t* p_msg, uint32_t max_size, uint32_t* p_cur_size) { in NDEF_MsgInit() argument
804 memset(p_msg, 0, max_size); in NDEF_MsgInit()
818 extern tNDEF_STATUS NDEF_MsgAddRec(uint8_t* p_msg, uint32_t max_size, in NDEF_MsgAddRec() argument
837 if ((*p_cur_size + recSize) > max_size) return (NDEF_MSG_INSUFFICIENT_MEM); in NDEF_MsgAddRec()
904 tNDEF_STATUS NDEF_MsgAppendPayload(uint8_t* p_msg, uint32_t max_size, in NDEF_MsgAppendPayload() argument
941 if ((*p_cur_size + add_pl_len + incr_lenfld) > max_size) in NDEF_MsgAppendPayload()
986 tNDEF_STATUS NDEF_MsgReplacePayload(uint8_t* p_msg, uint32_t max_size, in NDEF_MsgReplacePayload() argument
1024 if ((*p_cur_size + paylen_delta + 3) > max_size) in NDEF_MsgReplacePayload()
1031 } else if ((*p_cur_size + paylen_delta) > max_size) in NDEF_MsgReplacePayload()
1095 tNDEF_STATUS NDEF_MsgReplaceType(uint8_t* p_msg, uint32_t max_size, in NDEF_MsgReplaceType() argument
[all …]
/system/bt/hci/include/
Dhci_hal.h66 size_t max_size);
/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/update_engine/payload_generator/
Dpayload_generation_config.cc149 uint64_t max_size; in LoadDynamicPartitionMetadata() local
150 if (!base::StringToUint64(buf, &max_size)) { in LoadDynamicPartitionMetadata()
154 group->set_size(max_size); in LoadDynamicPartitionMetadata()
/system/bt/stack/sdp/
Dsdp_main.cc146 uint16_t sdp_set_max_attr_list_size(uint16_t max_size) { in sdp_set_max_attr_list_size() argument
147 if (max_size > (sdp_cb.l2cap_my_cfg.mtu - 16)) in sdp_set_max_attr_list_size()
148 max_size = sdp_cb.l2cap_my_cfg.mtu - 16; in sdp_set_max_attr_list_size()
150 sdp_cb.max_attr_list_size = max_size; in sdp_set_max_attr_list_size()
Dsdpint.h230 extern uint16_t sdp_set_max_attr_list_size(uint16_t max_size);
/system/core/libappfuse/include/libappfuse/
DFuseBuffer.h46 bool WriteWithBody(int fd, size_t max_size, const void* data) const;
/system/netd/resolv/dns_responder/
Ddns_tls_frontend.cpp345 const int max_size = 4096; in handleOneRequest() local
346 uint8_t recv_buffer[max_size]; in handleOneRequest()
347 int rlen = recv(backend_socket_.get(), recv_buffer, max_size, 0); in handleOneRequest()
/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 …]
Drw_mfc.cc1153 ndef_data.max_size = 3356; in rw_mfc_ntf_tlv_detect_complete()
1155 ndef_data.max_size = 716; in rw_mfc_ntf_tlv_detect_complete()
1391 ndef_data.max_size = 0; in rw_mfc_process_error()
Drw_t2t.cc205 ndef_data.max_size = 0; in rw_t2t_proc_data()
544 ndef_data.max_size = 0; in rw_t2t_process_error()
/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.cpp806 static struct sparse_file** load_sparse_files(int fd, int64_t max_size) { in load_sparse_files() argument
810 if (max_size <= 0 || max_size > std::numeric_limits<uint32_t>::max()) { in load_sparse_files()
811 die("invalid max size %" PRId64, max_size); in load_sparse_files()
814 int files = sparse_file_resparse(s, max_size, nullptr, 0); in load_sparse_files()
820 files = sparse_file_resparse(s, max_size, out_s, files); in load_sparse_files()
/system/core/adb/
Dtest_device.py663 max_size = 16 * (1 << 10)
669 size = random.randrange(min_size, max_size, 1024)
682 max_size = 16 * (1 << 10)
686 size = random.randrange(min_size, max_size, 1024)

12