Searched refs:len (Results 51 - 75 of 722) sorted by relevance

1234567891011>>

/system/core/libsync/include/sync/
H A Dsync.h45 uint32_t len; member in struct:sync_fence_info_data
52 uint32_t len; member in struct:sync_pt_info
/system/nfc/halimpl/bcm2079x/include/
H A Dbuildcfg.h30 extern uint8_t* scru_dump_hex(uint8_t* p, char* p_title, uint32_t len,
32 void DispNci(uint8_t* p, uint16_t len, bool is_recv);
H A Dspdhelper.h28 static bool isPatchBad(uint8_t* prm, uint32_t len);
37 bool isPatchBadImpl(uint8_t* prm, uint32_t len);
/system/nfc/src/nfc/nci/
H A Dnci_hrcv.c46 uint8_t *pp, len, op_code; local
55 len = *pp++;
73 nfc_ncif_set_config_status(pp, len);
77 nfc_ncif_proc_conn_create_rsp(p, p_msg->len, *p_old);
103 uint8_t *pp, len, op_code; local
111 len = *pp++;
132 nfc_ncif_proc_credits(pp, len);
152 uint8_t *pp, len, op_code; local
159 len = *pp++;
220 uint8_t *pp, len, op_cod local
292 uint8_t *pp, len, op_code; local
348 uint8_t *pp, len, op_code; local
424 uint8_t *pp, len, op_code; local
451 uint8_t *pp, len, op_code; local
[all...]
/system/core/adb/client/
H A Dusb_dispatch.cpp30 int usb_write(usb_handle* h, const void* data, int len) { argument
32 ? libusb::usb_write(reinterpret_cast<libusb::usb_handle*>(h), data, len)
33 : native::usb_write(reinterpret_cast<native::usb_handle*>(h), data, len);
36 int usb_read(usb_handle* h, void* data, int len) { argument
38 ? libusb::usb_read(reinterpret_cast<libusb::usb_handle*>(h), data, len)
39 : native::usb_read(reinterpret_cast<native::usb_handle*>(h), data, len);
/system/extras/ioshark/
H A Dioshark.h86 #define prw_len u.prw_a.len
88 size_t len; member in struct:ioshark_file_operation::__anon1713::prw_args
90 #define rw_len u.rw_a.len
92 size_t len; member in struct:ioshark_file_operation::__anon1713::rw_args
95 #define mmap_len u.mmap_a.len
99 size_t len; member in struct:ioshark_file_operation::__anon1713::mmap_args
/system/bt/stack/gatt/
H A Datt_protocol.cc56 p_buf->len = GATT_HDR_SIZE; /* opcode + 2 bytes mtu */
76 p_buf->len = GATT_OP_CODE_SIZE;
83 p_buf->len += 1;
112 p_buf->len = GATT_HDR_SIZE + 1 + 1;
135 p_buf->len = GATT_OP_CODE_SIZE + 4;
140 p_buf->len += gatt_build_uuid_to_stream(&p, uuid);
157 uint16_t len = p_value_type->value_len; local
163 p_buf->len = 5; /* opcode + s_handle + e_handle */
169 p_buf->len += gatt_build_uuid_to_stream(&p, p_value_type->uuid);
171 if (p_value_type->value_len + p_buf->len > payload_siz
270 attp_build_value_cmd(uint16_t payload_size, uint8_t op_code, uint16_t handle, uint16_t offset, uint16_t len, uint8_t* p_data) argument
[all...]
H A Dgatt_sr.cc116 uint16_t ii, total_len, len; local
138 len = sizeof(BT_HDR) + L2CAP_MIN_OFFSET + mtu;
139 p_buf = (BT_HDR*)osi_calloc(len);
145 p_buf->len = 1;
165 total_len = (p_buf->len + p_rsp->attr_value.len);
169 len = p_rsp->attr_value.len - (total_len - mtu);
171 GATT_TRACE_DEBUG("multi read overflow available len=%d val_len=%d",
172 len, p_rs
288 gatt_process_exec_write_req(tGATT_TCB* p_tcb, uint8_t op_code, UNUSED_ATTR uint16_t len, uint8_t* p_data) argument
344 gatt_process_read_multi_req(tGATT_TCB* p_tcb, uint8_t op_code, uint16_t len, uint8_t* p_data) argument
516 uint16_t len = *p_len; local
586 uint16_t len = *p_len; local
638 gatts_process_primary_service_req(tGATT_TCB* p_tcb, uint8_t op_code, uint16_t len, uint8_t* p_data) argument
696 gatts_process_find_info(tGATT_TCB* p_tcb, uint8_t op_code, uint16_t len, uint8_t* p_data) argument
750 gatts_process_mtu_req(tGATT_TCB* p_tcb, uint16_t len, uint8_t* p_data) argument
814 gatts_process_read_by_type_req(tGATT_TCB* p_tcb, uint8_t op_code, uint16_t len, uint8_t* p_data) argument
887 gatts_process_write_req(tGATT_TCB* p_tcb, tGATT_SRV_LIST_ELEM& el, uint16_t handle, uint8_t op_code, uint16_t len, uint8_t* p_data, bt_gatt_db_attribute_type_t gatt_type) argument
977 gatts_process_read_req(tGATT_TCB* p_tcb, tGATT_SRV_LIST_ELEM& el, uint8_t op_code, uint16_t handle, UNUSED_ATTR uint16_t len, uint8_t* p_data) argument
1022 gatts_process_attribute_req(tGATT_TCB* p_tcb, uint8_t op_code, uint16_t len, uint8_t* p_data) argument
1205 gatt_server_handle_client_req(tGATT_TCB* p_tcb, uint8_t op_code, uint16_t len, uint8_t* p_data) argument
[all...]
/system/core/libcutils/
H A Dfs_config.c251 static size_t strip(const char* path, size_t len, const char suffix[]) { argument
252 if (len < strlen(suffix)) return len;
253 if (strncmp(path + len - strlen(suffix), suffix, strlen(suffix))) return len;
254 return len - strlen(suffix);
265 size_t len = strlen(target_out_path); local
266 len = strip(target_out_path, len, "/");
267 len
279 fs_config_cmp(bool dir, const char* prefix, size_t len, const char* path, size_t plen) argument
316 ssize_t len, remainder = host_len - sizeof(header); local
364 size_t len = ALIGN(sizeof(*p) + strlen(pc->prefix) + 1, sizeof(uint64_t)); local
[all...]
H A Dstrdup8to16.c46 size_t len; local
50 len = strlen8to16(s);
53 if (len && SIZE_MAX/len < sizeof(char16_t))
57 ret = (char16_t *) malloc (sizeof(char16_t) * len);
70 size_t len = 0; local
85 len++;
88 len++;
93 len++;
98 return len;
[all...]
H A Dproperties.cpp41 int len = property_get(key, buf, ""); local
42 if (len == 1) {
49 } else if (len > 1) {
71 int len = property_get(key, buf, ""); local
72 if (len > 0) {
115 int len = __system_property_get(key, value); local
116 if (len > 0) {
117 return len;
120 len = strnlen(default_value, PROPERTY_VALUE_MAX - 1);
121 memcpy(value, default_value, len);
[all...]
/system/core/libcutils/tests/
H A DMemsetTest.cpp81 static size_t GetIncrement(size_t len, size_t min_incr) { argument
82 if (len >= 4096) {
84 } else if (len >= 1024) {
143 for (size_t len = incr; len <= MAX_TEST_SIZE; len += incr) {
144 incr = GetIncrement(len, min_incr);
150 SetFencepost(&buf_align[len]);
152 memset(buf_align, 0xff, len);
154 android_memset16(reinterpret_cast<uint16_t*>(buf_align), value, len); local
156 android_memset32(reinterpret_cast<uint32_t*>(buf_align), value, len); local
[all...]
/system/core/include/system/
H A Dqemu_pipe.h81 // Send a framed message |buff| of |len| bytes through the |fd| descriptor.
86 size_t len) {
88 snprintf(header, sizeof(header), "%04zx", len);
94 ret = TEMP_FAILURE_RETRY(write(fd, buff, len));
95 if (ret != (ssize_t)len) {
102 // Read a frame message from |fd|, and store it into |buff| of |len| bytes.
103 // If the framed message is larger than |len|, then this returns -1 and the
107 static int __inline__ qemu_pipe_frame_recv(int fd, void* buff, size_t len) { argument
120 if (size > len) {
122 len);
84 qemu_pipe_frame_send(int fd, const void* buff, size_t len) argument
[all...]
/system/core/libsystem/include/system/
H A Dqemu_pipe.h81 // Send a framed message |buff| of |len| bytes through the |fd| descriptor.
86 size_t len) {
88 snprintf(header, sizeof(header), "%04zx", len);
94 ret = TEMP_FAILURE_RETRY(write(fd, buff, len));
95 if (ret != (ssize_t)len) {
102 // Read a frame message from |fd|, and store it into |buff| of |len| bytes.
103 // If the framed message is larger than |len|, then this returns -1 and the
107 static int __inline__ qemu_pipe_frame_recv(int fd, void* buff, size_t len) { argument
120 if (size > len) {
122 len);
84 qemu_pipe_frame_send(int fd, const void* buff, size_t len) argument
[all...]
/system/bt/btif/src/
H A Dbtif_gatt_util.cc78 p_dest->len = uuidType(p_src->uu);
80 switch (p_dest->len) {
95 LOG_ERROR(LOG_TAG, "%s: Unknown UUID length %d!", __func__, p_dest->len);
103 p_dest->attr_value.len = p_src->attr_value.len;
142 if (p_src->len == LEN_UUID_16 || p_src->len == LEN_UUID_32) {
146 switch (p_src->len) {
167 LOG_ERROR(LOG_TAG, "%s: Unknown UUID length %d!", __func__, p_src->len);
177 if (p_uuid->len
191 uint16_t len = 0; local
[all...]
/system/core/include/private/
H A Dandroid_logger.h46 uint16_t len; member in struct:__anon1439
118 size_t len);
126 const char* buf, size_t len,
134 int __android_log_security_bwrite(int32_t tag, const void* payload, size_t len);
177 ssize_t len = android_log_write_list_buffer(ctx, &cp); local
178 if (len < 0) ret = len;
179 if (!cp || (len <= 0)) return std::string("");
180 return std::string(cp, len);
/system/core/liblog/include/private/
H A Dandroid_logger.h46 uint16_t len; member in struct:__anon1541
118 size_t len);
126 const char* buf, size_t len,
134 int __android_log_security_bwrite(int32_t tag, const void* payload, size_t len);
177 ssize_t len = android_log_write_list_buffer(ctx, &cp); local
178 if (len < 0) ret = len;
179 if (!cp || (len <= 0)) return std::string("");
180 return std::string(cp, len);
/system/core/libdiskconfig/
H A Dwrite_lst.c39 item->len = data_len;
79 if (write(fd, lst->data, lst->len) != (int)lst->len) {
80 ALOGE("Failed writing %u bytes at position %lld.", lst->len,
85 ALOGI("Would write %d bytes @ offset %lld.", lst->len, (long long)lst->offset);
/system/core/logd/
H A DLogUtils.h47 char* log_strntok_r(char* s, ssize_t& len, char*& saveptr, ssize_t& sublen);
50 static inline const char* strnstr(const char* s, ssize_t len, argument
52 if (len <= 0) return nullptr;
58 if (len <= (ssize_t)needleLen) return nullptr;
59 --len;
/system/bt/stack/btm/
H A Dbtm_ble_adv_filter.cc321 uint8_t len = BTM_BLE_ADV_FILT_META_HDR_LENGTH; local
323 uint8_t len_max = len + BTM_BLE_PF_STR_LEN_MAX;
335 len += size;
340 FROM_HERE, HCI_BLE_ADV_FILTER_OCF, param, len,
366 uint8_t len = BTM_BLE_ADV_FILT_META_HDR_LENGTH; local
367 int len_max = len + BTM_BLE_PF_STR_LEN_MAX + BTM_BLE_PF_STR_LEN_MAX;
383 len += size + 2;
385 len += 2;
392 len += 2;
396 len
418 uint8_t len = BTM_BLE_ADV_FILT_META_HDR_LENGTH; local
516 const uint8_t len = BTM_BLE_ADV_FILT_META_HDR_LENGTH + BTM_BLE_META_ADDR_LEN; local
556 uint8_t len = BTM_BLE_ADV_FILT_META_HDR_LENGTH; local
636 uint8_t len = BTM_BLE_ADV_FILT_META_HDR_LENGTH + BTM_BLE_PF_FEAT_SEL_LEN; local
676 uint8_t len = BTM_BLE_ADV_FILT_META_HDR_LENGTH + local
[all...]
/system/core/liblog/
H A Dlog_event_list.c38 unsigned len; /* Length or raw buffer. */ member in struct:__anon1551
71 size_t len) {
79 len = (len <= MAX_EVENT_PAYLOAD) ? len : MAX_EVENT_PAYLOAD;
80 context->len = len;
81 memcpy(context->storage, msg, len);
204 ssize_t len; local
217 len
70 create_android_log_parser(const char* msg, size_t len) argument
302 ssize_t len; local
336 ssize_t len; local
[all...]
/system/core/fastboot/
H A Dusb_linux.cpp99 ssize_t Read(void* data, size_t len) override;
100 ssize_t Write(const void* data, size_t len) override;
126 static int check(void *_desc, int len, unsigned type, int size) argument
130 if(len < size) return -1;
132 if(hdr->bLength > len) return -1;
139 char *ptr, int len, int writable,
153 if (check(ptr, len, USB_DT_DEVICE, USB_DT_DEVICE_SIZE))
156 len -= dev->bLength;
159 if (check(ptr, len, USB_DT_CONFIG, USB_DT_CONFIG_SIZE))
162 len
138 filter_usb_device(char* sysfs_name, char *ptr, int len, int writable, ifc_match_func callback, int *ept_in_id, int *ept_out_id, int *ifc_id) argument
387 Write(const void* _data, size_t len) argument
422 Read(void* _data, size_t len) argument
[all...]
/system/core/libutils/
H A DString16.cpp108 String16::String16(const String16& o, size_t len, size_t begin) argument
111 setTo(o, len, begin);
116 size_t len = strlen16(o); local
117 SharedBuffer* buf = SharedBuffer::alloc((len+1)*sizeof(char16_t));
129 String16::String16(const char16_t* o, size_t len) argument
131 SharedBuffer* buf = SharedBuffer::alloc((len+1)*sizeof(char16_t));
135 memcpy(str, o, len*sizeof(char16_t));
136 str[len] = 0;
154 String16::String16(const char* o, size_t len) argument
155 : mString(allocFromUTF8(o, len))
176 setTo(const String16& other, size_t len, size_t begin) argument
202 setTo(const char16_t* other, size_t len) argument
265 insert(size_t pos, const char16_t* chrs, size_t len) argument
391 remove(size_t len, size_t begin) argument
[all...]
/system/bt/hci/src/
H A Dpacket_fragmenter.cc76 uint16_t remaining_length = packet->len;
88 packet->len = max_packet_size;
93 packet->len = remaining_length;
131 CHECK(acl_length == packet->len - HCI_ACL_PREAMBLE_SIZE);
151 __func__, packet->len, L2CAP_HEADER_SIZE);
170 if (full_length <= packet->len) {
171 if (full_length < packet->len)
174 __func__, l2cap_length, packet->len);
183 partial_packet->len = full_length;
184 partial_packet->offset = packet->len;
[all...]
/system/core/toolbox/upstream-netbsd/usr.bin/grep/
H A Dfile.c145 size_t len; local
163 len = p - bufpos;
164 bufrem -= len;
166 *lenp = len;
171 for (len = bufrem, off = 0; ; len += bufrem) {
173 if (grep_lnbufgrow(len + LNBUFBUMP))
175 memcpy(lnbuf + off, bufpos, len - off);
176 off = len;
187 len
[all...]

Completed in 506 milliseconds

1234567891011>>