Home
last modified time | relevance | path

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

12345678910>>...17

/system/core/libcutils/
Dproperties_test.cpp111 size_t len = property_get(PROPERTY_TEST_KEY, mValue, PROPERTY_TEST_VALUE_DEFAULT); in TEST_F() local
118 size_t len = SetAndGetProperty("hello_world"); in TEST_F() local
127 size_t len = SetAndGetProperty("", EMPTY_STRING_DEFAULT); in TEST_F() local
137 int len = SetAndGetProperty(maxLengthString.c_str()); in TEST_F() local
152 size_t len = property_get(PROPERTY_TEST_KEY, mValue, PROPERTY_TEST_VALUE_DEFAULT); in TEST_F() local
170 int len = property_get(PROPERTY_TEST_KEY, mValue, oneLongerString.c_str()); in TEST_F() local
183 int len = property_get(PROPERTY_TEST_KEY, mValue, maxLengthString.c_str()); in TEST_F() local
196 int len = property_get(PROPERTY_TEST_KEY, mValue, oneCharString.c_str()); in TEST_F() local
209 int len = property_get(PROPERTY_TEST_KEY, mValue, zeroCharString.c_str()); in TEST_F() local
220 int len = property_get(PROPERTY_TEST_KEY, mValue, NULL); in TEST_F() local
Dstrdup16to8.cpp29 extern size_t strnlen16to8(const char16_t* utf16Str, size_t len) in strnlen16to8()
109 extern char* strncpy16to8(char* utf8Str, const char16_t* utf16Str, size_t len) in strncpy16to8()
152 size_t len = strnlen16to8(s, n); in strndup16to8() local
/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
470 uint8_t *pp, len, op_code; in nci_proc_prop_rsp() local
525 uint8_t *pp, len, op_code; in nci_proc_prop_ntf() local
/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()
132 void feat_enable_cb(uint8_t* p, uint16_t len) { in feat_enable_cb()
156 uint16_t len) { in storage_config_cb()
177 uint16_t len) { in param_enable_cb()
198 uint16_t len) { in disable_cb()
235 uint8_t len = BTM_BLE_BATCH_SCAN_READ_RESULTS_LEN; in btm_ble_read_batchscan_reports() local
249 tBTM_BLE_SCAN_REP_CBACK cb, uint8_t* p, uint16_t len) { in read_reports_cb()
304 uint8_t len = BTM_BLE_BATCH_SCAN_STORAGE_CFG_LEN; in btm_ble_set_storage_config() local
327 uint8_t len = BTM_BLE_BATCH_SCAN_PARAM_CONFIG_LEN; in btm_ble_set_batchscan_param() local
344 uint8_t len = BTM_BLE_BATCH_SCAN_ENB_DISB_LEN; in btm_ble_enable_batchscan() 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()
155 String8::String8(const char* o, size_t len) in String8()
173 String8::String8(const char16_t* o, size_t len) in String8()
183 String8::String8(const char32_t* o, size_t len) in String8()
239 status_t String8::setTo(const char* other, size_t len) in setTo()
250 status_t String8::setTo(const char16_t* other, size_t len) in setTo()
261 status_t String8::setTo(const char32_t* other, size_t len) in setTo()
396 size_t len = size(); in find() local
[all …]
/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/netd/resolv/
Dhostent.h51 #define HENT_ARRAY(dst, anum, ptr, len) do { \ argument
59 #define HENT_COPY(dst, src, slen, ptr, len) do { \ argument
67 #define HENT_SCOPY(dst, src, ptr, len) do { \ argument
/system/extras/ext4_utils/
Dwipe.cpp38 int wipe_block_device(int fd, s64 len) in wipe_block_device()
80 int wipe_block_device(int fd __attribute__((unused)), s64 len __attribute__((unused))) in wipe_block_device()
/system/core/libsparse/
Doutput_file.cpp88 int64_t len; member
135 static int file_pad(struct output_file* out, int64_t len) { in file_pad()
147 static int file_write(struct output_file* out, void* data, size_t len) { in file_write()
206 static int gz_file_pad(struct output_file* out, int64_t len) { in gz_file_pad()
229 static int gz_file_write(struct output_file* out, void* data, size_t len) { in gz_file_write()
286 static int callback_file_write(struct output_file* out, void* data, size_t len) { in callback_file_write()
306 int read_all(int fd, void* buf, size_t len) { in read_all()
349 static int write_sparse_fill_chunk(struct output_file* out, unsigned int len, uint32_t fill_val) { in write_sparse_fill_chunk()
379 static int write_sparse_data_chunk(struct output_file* out, unsigned int len, void* data) { in write_sparse_data_chunk()
446 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()
157 int (*write)(void* priv, const void* data, size_t len), void* priv) { in sparse_file_callback()
181 static int foreach_chunk_write(void* priv, const void* data, size_t len) { in foreach_chunk_write()
188 int (*write)(void* priv, const void* data, size_t len, in sparse_file_foreach_chunk()
218 static int out_counter_write(void* priv, const void* data __unused, size_t len) { in out_counter_write()
252 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/core/adb/daemon/
Dusb_legacy.cpp125 static int usb_ffs_write(usb_handle* h, const void* data, int len) { in usb_ffs_write()
145 static int usb_ffs_read(usb_handle* h, void* data, int len, bool allow_partial) { in usb_ffs_read()
176 static int usb_ffs_do_aio(usb_handle* h, const void* data, int len, bool read) { in usb_ffs_do_aio()
235 static int usb_ffs_aio_read(usb_handle* h, void* data, int len, bool allow_partial) { in usb_ffs_aio_read()
239 static int usb_ffs_aio_write(usb_handle* h, const void* data, int len) { in usb_ffs_aio_write()
308 int usb_write(usb_handle* h, const void* data, int len) { in usb_write()
312 int usb_read(usb_handle* h, void* data, int len) { in usb_read()
/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/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/core/liblog/
Dlogger_write.cpp243 size_t len, i; in __write_to_log_daemon() local
274 size_t len; in __write_to_log_daemon() local
320 size_t len = vec[0].iov_len; in __write_to_log_daemon() local
536 int __android_log_bwrite(int32_t tag, const void* payload, size_t len) { in __android_log_bwrite()
547 int __android_log_stats_bwrite(int32_t tag, const void* payload, size_t len) { in __android_log_stats_bwrite()
558 int __android_log_security_bwrite(int32_t tag, const void* payload, size_t len) { in __android_log_security_bwrite()
574 int __android_log_btwrite(int32_t tag, char type, const void* payload, size_t len) { in __android_log_btwrite()
594 uint32_t len = strlen(payload); in __android_log_bswrite() local
615 uint32_t len = strlen(payload); in __android_log_security_bswrite() local
630 size_t len, i; in __write_to_log_null() 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()
229 ssize_t len = 0; in onDataAvailable() local
266 const char* real_string, ssize_t len) { in calculateCorrection()
295 log_time LogKlog::sniffTime(const char*& buf, ssize_t len, bool reverse) { in sniffTime()
368 pid_t LogKlog::sniffPid(const char*& buf, ssize_t len) { in sniffPid()
415 static int parseKernelPrio(const char*& buf, ssize_t len) { in parseKernelPrio()
436 void LogKlog::synchronize(const char* buf, ssize_t len) { in synchronize()
499 static const char* strnrchr(const char* s, ssize_t len, char c) { in strnrchr()
[all …]
DLogBufferElement.cpp38 const char* msg, uint16_t len) in LogBufferElement()
61 const int len = sizeof(android_event_header_t); in LogBufferElement() local
172 size_t len = strlen(name + 1); in populateDroppedMessage() local
201 size_t len = snprintf(nullptr, 0, format_uid, mUid, name ? name : "", in populateDroppedMessage() local
/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 …]
/system/core/base/include/android-base/
Dcmsg.h67 ssize_t SendFileDescriptors(int sock, const void* data, size_t len, Args&&... sent_fds) { in SendFileDescriptors()
82 ssize_t ReceiveFileDescriptors(int sock, void* data, size_t len, Args&&... received_fds) { in ReceiveFileDescriptors()
/system/core/toolbox/upstream-netbsd/usr.bin/grep/
Dfastgrep.c205 grep_search(fastgrep_t *fg, const unsigned char *data, size_t len, regmatch_t *pmatch) in grep_search()
281 grep_cmp(const unsigned char *pat, const unsigned char *data, size_t len) in grep_cmp()
326 grep_revstr(unsigned char *str, int len) in grep_revstr()
/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/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()
/system/core/qemu_pipe/
Dqemu_pipe.cpp71 int qemu_pipe_frame_send(int fd, const void* buff, size_t len) { in qemu_pipe_frame_send()
85 int qemu_pipe_frame_recv(int fd, void* buff, size_t len) { in qemu_pipe_frame_recv()

12345678910>>...17