Home
last modified time | relevance | path

Searched defs:len (Results 1 – 25 of 436) sorted by relevance

12345678910>>...18

/system/nfc/src/nfc/nci/
Dnci_hrcv.cc54 uint8_t *pp, len, op_code; in nci_proc_core_rsp() local
114 uint8_t *pp, len, op_code; in nci_proc_core_ntf() local
170 uint8_t *pp, len, op_code; in nci_proc_rf_management_rsp() local
241 uint8_t *pp, len, op_code; in nci_proc_rf_management_ntf() local
318 uint8_t *pp, len, op_code; in nci_proc_ee_management_rsp() local
382 uint8_t *pp, len, op_code; in nci_proc_ee_management_ntf() local
468 uint8_t *pp, len, op_code; in nci_proc_prop_rsp() local
523 uint8_t *pp, len, op_code; in nci_proc_prop_ntf() local
/system/core/libutils/
DString8.cpp57 static char* allocFromUTF8(const char* in, size_t len) in allocFromUTF8()
77 static char* allocFromUTF16(const char16_t* in, size_t len) in allocFromUTF16()
98 static char* allocFromUTF32(const char32_t* in, size_t len) in allocFromUTF32()
142 String8::String8(const char* o, size_t len) in String8()
160 String8::String8(const char16_t* o, size_t len) in String8()
170 String8::String8(const char32_t* o, size_t len) in String8()
226 status_t String8::setTo(const char* other, size_t len) in setTo()
237 status_t String8::setTo(const char16_t* other, size_t len) in setTo()
248 status_t String8::setTo(const char32_t* other, size_t len) in setTo()
377 size_t len = size(); in find() local
[all …]
/system/bt/stack/btm/
Dbtm_ble_batchscan.cc61 void btm_ble_batchscan_filter_track_adv_vse_cback(uint8_t len, uint8_t* p) { in btm_ble_batchscan_filter_track_adv_vse_cback()
134 void feat_enable_cb(uint8_t* p, uint16_t len) { in feat_enable_cb()
158 uint16_t len) { in storage_config_cb()
179 uint16_t len) { in param_enable_cb()
200 uint16_t len) { in disable_cb()
237 uint8_t len = BTM_BLE_BATCH_SCAN_READ_RESULTS_LEN; in btm_ble_read_batchscan_reports() local
251 tBTM_BLE_SCAN_REP_CBACK cb, uint8_t* p, uint16_t len) { in read_reports_cb()
306 uint8_t len = BTM_BLE_BATCH_SCAN_STORAGE_CFG_LEN; in btm_ble_set_storage_config() local
329 uint8_t len = BTM_BLE_BATCH_SCAN_PARAM_CONFIG_LEN; in btm_ble_set_batchscan_param() local
346 uint8_t len = BTM_BLE_BATCH_SCAN_ENB_DISB_LEN; in btm_ble_enable_batchscan() local
/system/core/libnetutils/
Dchecksum.c34 uint32_t ip_checksum_add(uint32_t current, const void* data, int len) { in ip_checksum_add()
77 uint16_t ip_checksum(const void* data, int len) { in ip_checksum()
92 uint32_t ipv6_pseudo_header_checksum(const struct ip6_hdr* ip6, uint32_t len, uint8_t protocol) { in ipv6_pseudo_header_checksum()
111 uint32_t ipv4_pseudo_header_checksum(const struct iphdr* ip, uint16_t len) { in ipv4_pseudo_header_checksum()
/system/extras/ext4_utils/
Dwipe.cpp40 int wipe_block_device(int fd, s64 len) in wipe_block_device()
82 int wipe_block_device(int fd __attribute__((unused)), s64 len __attribute__((unused))) in wipe_block_device()
/system/core/libsparse/
Doutput_file.cpp82 int64_t len; member
129 static int file_pad(struct output_file* out, int64_t len) { in file_pad()
141 static int file_write(struct output_file* out, void* data, size_t len) { in file_write()
200 static int gz_file_pad(struct output_file* out, int64_t len) { in gz_file_pad()
223 static int gz_file_write(struct output_file* out, void* data, size_t len) { in gz_file_write()
280 static int callback_file_write(struct output_file* out, void* data, size_t len) { in callback_file_write()
300 int read_all(int fd, void* buf, size_t len) { in read_all()
343 static int write_sparse_fill_chunk(struct output_file* out, unsigned int len, uint32_t fill_val) { in write_sparse_fill_chunk()
373 static int write_sparse_data_chunk(struct output_file* out, unsigned int len, void* data) { in write_sparse_data_chunk()
440 static int write_normal_data_chunk(struct output_file* out, unsigned int len, void* data) { in write_normal_data_chunk()
[all …]
Dsparse.cpp30 struct sparse_file* sparse_file_new(unsigned int block_size, int64_t len) { in sparse_file_new()
53 int sparse_file_add_data(struct sparse_file* s, void* data, unsigned int len, unsigned int block) { in sparse_file_add_data()
57 int sparse_file_add_fill(struct sparse_file* s, uint32_t fill_val, unsigned int len, in sparse_file_add_fill()
63 unsigned int len, unsigned int block) { in sparse_file_add_file()
67 int sparse_file_add_fd(struct sparse_file* s, int fd, int64_t file_offset, unsigned int len, in sparse_file_add_fd()
169 int (*write)(void* priv, const void* data, size_t len), void* priv) { in sparse_file_callback()
193 static int foreach_chunk_write(void* priv, const void* data, size_t len) { in foreach_chunk_write()
200 int (*write)(void* priv, const void* data, size_t len, in sparse_file_foreach_chunk()
230 static int out_counter_write(void* priv, const void* data __unused, size_t len) { in out_counter_write()
264 unsigned int len) { in move_chunks_up_to_len()
Dsparse_read.cpp99 int AddToSparseFile(struct sparse_file* s, int64_t len, unsigned int block) override { in AddToSparseFile()
103 int ReadValue(void* ptr, int len) override { return read_all(fd, ptr, len); } in ReadValue()
105 int GetCrc32(uint32_t* crc32, int64_t len) override { in GetCrc32()
143 int AddToSparseFile(struct sparse_file* s, int64_t len, unsigned int block) override { in AddToSparseFile()
147 int ReadValue(void* ptr, int len) override { in ReadValue()
153 int GetCrc32(uint32_t* crc32, int64_t len) override { in GetCrc32()
178 int64_t len = blocks * s->block_size; in process_raw_chunk() local
210 int64_t len = (int64_t)blocks * s->block_size; in process_fill_chunk() local
254 int64_t len = (int64_t)blocks * s->block_size; in process_skip_chunk() local
486 int64_t len; in sparse_file_import_source() local
[all …]
/system/bt/bta/test/gatt/
Ddatabase_test.cc102 constexpr size_t len = sizeof(StoredAttribute); in TEST() local
136 constexpr size_t len = sizeof(StoredAttribute); in TEST() local
167 constexpr size_t len = sizeof(StoredAttribute); in TEST() local
194 constexpr size_t len = sizeof(StoredAttribute); in TEST() local
/system/bt/stack/include/
Dadvertise_data_parser.h53 uint8_t len = ad[position]; in RemoveTrailingZeros() local
81 uint8_t len = ad[position]; in IsValid() local
116 uint8_t len = ad[position]; in GetFieldByType() local
/system/bt/btif/src/
Dbtif_sock_util.cc63 int sock_send_all(int sock_fd, const uint8_t* buf, int len) { in sock_send_all()
78 int sock_recv_all(int sock_fd, uint8_t* buf, int len) { in sock_recv_all()
94 int sock_send_fd(int sock_fd, const uint8_t* buf, int len, int send_fd) { in sock_send_fd()
/system/core/fastboot/device/
Dusb.cpp78 static int usb_ffs_write(usb_handle* h, const void* data, int len) { in usb_ffs_write()
98 static int usb_ffs_read(usb_handle* h, void* data, int len, bool allow_partial) { in usb_ffs_read()
129 static int usb_ffs_do_aio(usb_handle* h, const void* data, int len, bool read) { in usb_ffs_do_aio()
188 static int usb_ffs_aio_read(usb_handle* h, void* data, int len, bool /* allow_partial */) { in usb_ffs_aio_read()
192 static int usb_ffs_aio_write(usb_handle* h, const void* data, int len) { in usb_ffs_aio_write()
/system/bt/stack/avdt/
Davdt_msg.cc276 uint8_t len; in avdt_msg_bld_cfg() local
522 static uint8_t avdt_msg_prs_cfg(AvdtpSepConfig* p_cfg, uint8_t* p, uint16_t len, in avdt_msg_prs_cfg()
678 UNUSED_ATTR uint16_t len) { in avdt_msg_prs_none()
693 static uint8_t avdt_msg_prs_single(tAVDT_MSG* p_msg, uint8_t* p, uint16_t len) { in avdt_msg_prs_single()
721 uint16_t len) { in avdt_msg_prs_setconfig_cmd()
773 uint16_t len) { in avdt_msg_prs_reconfig_cmd()
818 static uint8_t avdt_msg_prs_multi(tAVDT_MSG* p_msg, uint8_t* p, uint16_t len) { in avdt_msg_prs_multi()
855 uint16_t len) { in avdt_msg_prs_security_cmd()
886 uint16_t len) { in avdt_msg_prs_discover_rsp()
927 static uint8_t avdt_msg_prs_svccap(tAVDT_MSG* p_msg, uint8_t* p, uint16_t len) { in avdt_msg_prs_svccap()
[all …]
/system/bt/stack/gatt/
Dgatt_sr.cc117 uint16_t ii, total_len, len; in process_read_multi_rsp() local
288 void gatt_process_exec_write_req(tGATT_TCB& tcb, uint8_t op_code, uint16_t len, in gatt_process_exec_write_req()
353 void gatt_process_read_multi_req(tGATT_TCB& tcb, uint8_t op_code, uint16_t len, in gatt_process_read_multi_req()
521 BT_HDR* p_msg, uint16_t& len, in gatt_build_find_info_rsp()
568 static tGATT_STATUS read_handles(uint16_t& len, uint8_t*& p, uint16_t& s_hdl, in read_handles()
585 static tGATT_STATUS gatts_validate_packet_format(uint8_t op_code, uint16_t& len, in gatts_validate_packet_format()
618 uint16_t len, uint8_t* p_data) { in gatts_process_primary_service_req()
677 uint16_t len, uint8_t* p_data) { in gatts_process_find_info()
728 static void gatts_process_mtu_req(tGATT_TCB& tcb, uint16_t len, in gatts_process_mtu_req()
792 uint16_t len, uint8_t* p_data) { in gatts_process_read_by_type_req()
[all …]
Dgatt_cl.cc372 tGATT_CLCB* p_clcb, uint16_t len, in gatt_process_find_type_value_rsp()
418 UNUSED_ATTR uint8_t op_code, uint16_t len, in gatt_process_read_info_rsp()
508 UNUSED_ATTR uint16_t len, uint8_t* p_data) { in gatt_process_error_rsp()
564 uint8_t op_code, uint16_t len, in gatt_process_prep_write_rsp()
608 void gatt_process_notification(tGATT_TCB& tcb, uint8_t op_code, uint16_t len, in gatt_process_notification()
700 uint8_t op_code, uint16_t len, in gatt_process_read_by_type_rsp()
893 UNUSED_ATTR uint8_t op_code, uint16_t len, in gatt_process_read_rsp()
989 void gatt_process_mtu_rsp(tGATT_TCB& tcb, tGATT_CLCB* p_clcb, uint16_t len, in gatt_process_mtu_rsp()
1066 uint16_t len, uint8_t* p_data) { in gatt_client_handle_server_rsp()
/system/core/adb/
Dtypes.cpp41 void IOVector::drop_front(IOVector::size_type len) { in drop_front()
65 IOVector IOVector::take_front(IOVector::size_type len) { in take_front()
196 iterate_blocks([&result](const char* data, size_t len) { in iovecs()
/system/core/libcutils/
Dproperties_test.cpp107 size_t len = property_get(PROPERTY_TEST_KEY, mValue, PROPERTY_TEST_VALUE_DEFAULT); in TEST_F() local
114 size_t len = SetAndGetProperty("hello_world"); in TEST_F() local
123 size_t len = SetAndGetProperty("", EMPTY_STRING_DEFAULT); in TEST_F() local
133 int len = SetAndGetProperty(maxLengthString.c_str()); in TEST_F() local
148 size_t len = property_get(PROPERTY_TEST_KEY, mValue, PROPERTY_TEST_VALUE_DEFAULT); in TEST_F() local
163 int len = property_get(PROPERTY_TEST_KEY, mValue, oneLongerString.c_str()); in TEST_F() local
176 int len = property_get(PROPERTY_TEST_KEY, mValue, maxLengthString.c_str()); in TEST_F() local
189 int len = property_get(PROPERTY_TEST_KEY, mValue, oneCharString.c_str()); in TEST_F() local
202 int len = property_get(PROPERTY_TEST_KEY, mValue, zeroCharString.c_str()); in TEST_F() local
213 int len = property_get(PROPERTY_TEST_KEY, mValue, NULL); in TEST_F() local
/system/core/logd/
DLogKlog.cpp52 static char* is_prio(char* s, ssize_t len) { in is_prio()
65 static char* is_timestamp(char* s, ssize_t len) { in is_timestamp()
99 char* android::log_strntok_r(char* s, ssize_t& len, char*& last, in log_strntok_r()
228 ssize_t len = 0; in onDataAvailable() local
265 const char* real_string, ssize_t len) { in calculateCorrection()
294 log_time LogKlog::sniffTime(const char*& buf, ssize_t len, bool reverse) { in sniffTime()
361 pid_t LogKlog::sniffPid(const char*& buf, ssize_t len) { in sniffPid()
408 static int parseKernelPrio(const char*& buf, ssize_t len) { in parseKernelPrio()
453 static const char* strnrchr(const char* s, ssize_t len, char c) { in strnrchr()
496 int LogKlog::log(const char* buf, ssize_t len) { in log()
/system/libbase/include/android-base/
Dcmsg.h67 ssize_t SendFileDescriptors(borrowed_fd sock, const void* data, size_t len, Args&&... sent_fds) { in SendFileDescriptors()
82 ssize_t ReceiveFileDescriptors(borrowed_fd sock, void* data, size_t len, Args&&... received_fds) { in ReceiveFileDescriptors()
/system/extras/verity/
Dbuild_verity_tree.cpp48 int64_t len = sparse_file_len(file, false, false); in generate_verity_tree() local
61 auto hash_callback = [](void* priv, const void* data, size_t len) { in generate_verity_tree()
/system/core/liblog/
Dlog_event_list.cpp41 unsigned len; /* Length or raw buffer. */ member
62 size_t len) { in init_parser_context()
82 android_log_context create_android_log_parser(const char* msg, size_t len) { in create_android_log_parser()
122 int android_log_parser_reset(android_log_context context, const char* msg, size_t len) { in android_log_parser_reset()
214 int32_t len = strnlen(value, maxlen); in android_log_write_string8_len() local
288 ssize_t len; in android_log_write_list() local
320 ssize_t len; in android_log_write_list_buffer() local
/system/core/qemu_pipe/
Dqemu_pipe.cpp70 int qemu_pipe_frame_send(int fd, const void* buff, size_t len) { in qemu_pipe_frame_send()
84 int qemu_pipe_frame_recv(int fd, void* buff, size_t len) { in qemu_pipe_frame_recv()
/system/core/adb/client/
Dusb_dispatch.cpp39 int usb_write(usb_handle* h, const void* data, int len) { in usb_write()
45 int usb_read(usb_handle* h, void* data, int len) { in usb_read()
/system/core/adb/pairing_auth/
Dpairing_auth.cpp197 size_t PairingAuthCtx::SafeEncryptedSize(size_t len) { in SafeEncryptedSize()
202 size_t PairingAuthCtx::SafeDecryptedSize(size_t len) { in SafeDecryptedSize()
207 PairingAuthCtx* pairing_auth_server_new(const uint8_t* pswd, size_t len) { in pairing_auth_server_new()
216 PairingAuthCtx* pairing_auth_client_new(const uint8_t* pswd, size_t len) { in pairing_auth_client_new()
246 size_t pairing_auth_safe_encrypted_size(PairingAuthCtx* ctx, size_t len) { in pairing_auth_safe_encrypted_size()
270 size_t pairing_auth_safe_decrypted_size(PairingAuthCtx* ctx, const uint8_t* buf, size_t len) { in pairing_auth_safe_decrypted_size()
/system/libufdt/
Dufdt_node.c86 const char *name, int len) { in ufdt_node_get_subnode_by_name_len()
100 const struct ufdt_node *node, const char *name, int len) { in ufdt_node_get_property_by_name_len()
127 const char *name, int len, in ufdt_node_get_fdt_prop_data_by_name_len()
151 int len = 0; in ufdt_node_get_phandle() local
163 const char *path, int len) { in ufdt_node_get_node_by_path_len()
193 bool ufdt_node_name_eq(const struct ufdt_node *node, const char *name, int len) { in ufdt_node_name_eq()

12345678910>>...18