/system/nfc/src/include/ |
H A D | config.h | 25 int GetStrValue(const char* name, char* p_value, unsigned long len); 26 int GetNumValue(const char* name, void* p_value, unsigned long len);
|
/system/nfc/src/nfc/llcp/ |
H A D | llcp_link.c | 777 p_msg->len = LLCP_PDU_SYMM_SIZE; 805 p_msg->len = 1; 944 ui_pdu_length = p_msg->len; /* including LLCP header */ 956 p_last_buf->offset - p_last_buf->len; 961 (uint8_t*)(p_last_buf + 1) + p_last_buf->offset + p_last_buf->len; 969 p_last_buf->len += LLCP_PDU_AGF_LEN_SIZE + ui_pdu_length; 986 p_msg->len += LLCP_PDU_AGF_LEN_SIZE; 1000 p_msg->len = LLCP_PDU_AGF_LEN_SIZE + ui_pdu_length; 1056 p_agf->len -= LLCP_PDU_HEADER_SIZE; 1062 agf_length = p_agf->len; [all...] |
/system/security/keystore-engine/ |
H A D | keystore_backend_binder.cpp | 39 const char *key_id, const uint8_t* in, size_t len, uint8_t** reply, 50 auto inBlob = blob2hidlVec(in ,len); 38 sign( const char *key_id, const uint8_t* in, size_t len, uint8_t** reply, size_t* reply_len) argument
|
/system/bt/stack/l2cap/ |
H A D | l2c_fcr.cc | 139 return (l2c_fcr_updcrc(L2CAP_FCR_INIT_CRC, p, p_buf->len)); 158 l2c_fcr_updcrc(L2CAP_FCR_INIT_CRC, p, p_buf->len + L2CAP_PKT_OVERHEAD)); 360 p_buf2->len = no_of_bytes; 456 UINT16_TO_STREAM(p, p_buf->len + L2CAP_FCS_LEN - L2CAP_PKT_OVERHEAD); 466 p = ((uint8_t*)(p_buf + 1)) + p_buf->offset + p_buf->len; 470 p_buf->len += L2CAP_FCS_LEN; 477 p_ccb->local_cid, p_buf->len, 486 p_ccb->local_cid, p_buf->len, 534 p_buf->len = L2CAP_PKT_OVERHEAD + L2CAP_FCR_OVERHEAD; 549 p_buf->len [all...] |
/system/core/adb/daemon/ |
H A D | usb.cpp | 372 static int usb_ffs_write(usb_handle* h, const void* data, int len) { argument 373 D("about to write (fd=%d, len=%d)", h->bulk_in, len); 376 while (len > 0) { 377 int write_len = std::min(h->max_rw, len); 384 len -= n; 391 static int usb_ffs_read(usb_handle* h, void* data, int len) { argument 392 D("about to read (fd=%d, len=%d)", h->bulk_out, len); 395 while (len > 465 usb_write(usb_handle* h, const void* data, int len) argument 469 usb_read(usb_handle* h, void* data, int len) argument [all...] |
/system/core/adb/ |
H A D | jdwp_service.cpp | 195 D("truncating JDWP process list (max len = %zu)", bufferlen); 213 size_t len = jdwp_process_list(buffer + header_len, bufferlen - header_len); local 214 snprintf(head, sizeof head, "%04zx", len); 216 return len + header_len; 247 int len = TEMP_FAILURE_RETRY(recv(socket, buf, sizeof(buf), 0)); local 249 if (len == 0) { 252 } else if (len < 0) { 253 if (len < 0 && errno == EAGAIN) { 261 len); 490 p->len 528 int len = jdwp_process_list_msg(buffer, sizeof(buffer)); local [all...] |
/system/core/liblog/ |
H A D | logger_read.c | 202 struct logger_list* logger_list, char* buf, size_t len) { 203 LOGGER_LIST_FUNCTION(logger_list, -ENODEV, getStats, buf, len); 207 struct logger_list* logger_list, char* buf, size_t len) { 208 LOGGER_LIST_FUNCTION(logger_list, -ENODEV, getPrune, buf, len); 212 struct logger_list* logger_list, char* buf, size_t len) { 213 LOGGER_LIST_FUNCTION(logger_list, -ENODEV, setPrune, buf, len); 342 /* propagate errors, or make sure len & hdr_size members visible */ 343 if (ret < (int)(sizeof(log_msg->entry.len) + sizeof(log_msg->entry.hdr_size))) { 344 if (ret >= (int)sizeof(log_msg->entry.len)) { 345 log_msg->entry.len 201 android_logger_get_statistics( struct logger_list* logger_list, char* buf, size_t len) argument 206 android_logger_get_prune_list( struct logger_list* logger_list, char* buf, size_t len) argument 211 android_logger_set_prune_list( struct logger_list* logger_list, char* buf, size_t len) argument [all...] |
H A D | local_logger.c | 100 unsigned short len; member in struct:LogBufferElement 191 log->size[logId] += element->len; 192 log->totalSize[logId] += element->len; 204 log->size[logId] -= e->len; 232 return element->len; 291 size_t len, i; local 298 len = 0; 300 len += vec[i].iov_len; 303 if (len > LOGGER_ENTRY_MAX_PAYLOAD) { 304 len [all...] |
H A D | properties.c | 91 static int __android_log_level(const char* tag, size_t len, int default_prio) { argument 96 const size_t taglen = tag ? len : 0; 163 last_tag = calloc(1, len + 1); 165 if (last_tag) last_tag_len = len + 1; 166 } else if (len >= last_tag_len) { 167 last_tag = realloc(last_tag, len + 1); 169 if (last_tag) last_tag_len = len + 1; 172 strncpy(last_tag, tag, len); 173 last_tag[len] = '\0'; 177 strncpy(key + sizeof(log_namespace) - 1, tag, len); 266 __android_log_is_loggable_len(int prio, const char* tag, size_t len, int default_prio) argument [all...] |
/system/extras/simpleperf/ |
H A D | record_file_writer.cpp | 160 bool RecordFileWriter::WriteData(const void* buf, size_t len) { argument 161 if (!Write(buf, len)) { 164 data_section_size_ += len; 168 bool RecordFileWriter::Write(const void* buf, size_t len) { argument 169 if (fwrite(buf, len, 1, record_fp_) != 1) { 176 bool RecordFileWriter::Read(void* buf, size_t len) { argument 177 if (len != 0u && fread(buf, len, 1, record_fp_) != 1) { 246 uint32_t len = static_cast<uint32_t>(Align(s.size() + 1, 64)); local 247 if (!Write(&len, sizeo 316 uint32_t len = symbol->len; local [all...] |
H A D | UnixSocket.h | 39 uint32_t len; member in struct:UnixSocketMessage 65 uint32_t aligned_len = Align(message.len, UnixSocketMessageAlignment); 70 if (message.len <= data_.size() - write_head) { 71 memcpy(data_.data() + write_head, &message, message.len); 76 message.len - len1);
|
H A D | thread_tree.cpp | 36 // Compare map->len instead of map->get_end_addr() here. Because we set map's 37 // len to std::numeric_limits<uint64_t>::max() in FindMapByAddr(), which makes 39 if (map1->len != map2->len) { 40 return map1->len < map2->len; 102 void ThreadTree::AddKernelMap(uint64_t start_addr, uint64_t len, uint64_t pgoff, argument 104 // kernel map len can be 0 when record command is not run in supervisor mode. 105 if (len == 0) { 110 AllocateMap(MapEntry(start_addr, len, pgof 129 AddThreadMap(int pid, int tid, uint64_t start_addr, uint64_t len, uint64_t pgoff, uint64_t time, const std::string& filename) argument [all...] |
/system/bt/bta/hd/ |
H A D | bta_hd_api.cc | 172 if (p_report->len > BTA_HD_REPORT_LEN) { 174 "%s, report len (%d) > MTU len (%d), can't send report." 176 __func__, p_report->len, BTA_HD_REPORT_LEN); 187 p_buf->len = p_report->len; 188 memcpy(p_buf->data, p_report->p_data, p_report->len);
|
/system/bt/btif/co/ |
H A D | bta_pan_co.cc | 181 "p_buf->len:%d, offset:%d", 182 __func__, p_buf->len, p_buf->offset); 194 (char*)(p_buf + 1) + p_buf->offset, p_buf->len, ext, 235 UNUSED_ATTR uint8_t* p_data, UNUSED_ATTR uint16_t len, 296 UNUSED_ATTR uint16_t len, 313 UNUSED_ATTR uint16_t len, 232 bta_pan_co_tx_write(UNUSED_ATTR uint16_t handle, UNUSED_ATTR uint8_t app_id, UNUSED_ATTR BD_ADDR src, UNUSED_ATTR BD_ADDR dst, UNUSED_ATTR uint16_t protocol, UNUSED_ATTR uint8_t* p_data, UNUSED_ATTR uint16_t len, UNUSED_ATTR bool ext, UNUSED_ATTR bool forward) argument 293 bta_pan_co_pfilt_ind(UNUSED_ATTR uint16_t handle, UNUSED_ATTR bool indication, UNUSED_ATTR tBTA_PAN_STATUS result, UNUSED_ATTR uint16_t len, UNUSED_ATTR uint8_t* p_filters) argument 310 bta_pan_co_mfilt_ind(UNUSED_ATTR uint16_t handle, UNUSED_ATTR bool indication, UNUSED_ATTR tBTA_PAN_STATUS result, UNUSED_ATTR uint16_t len, UNUSED_ATTR uint8_t* p_filters) argument
|
/system/bt/tools/scripts/ |
H A D | btsnooz.py | 97 while offset < len(decompressed): 104 while offset < len(decompressed): 124 while offset < len(decompressed): 131 while offset < len(decompressed): 144 if len(sys.argv) > 2:
|
/system/core/libion/ |
H A D | ion.c | 62 int ion_alloc(int fd, size_t len, size_t align, unsigned int heap_mask, argument 67 .len = len, 143 int ion_alloc_fd(int fd, size_t len, size_t align, unsigned int heap_mask, argument 148 ret = ion_alloc(fd, len, align, heap_mask, flags, &handle);
|
/system/core/logd/ |
H A D | libaudit.c | 211 ssize_t len; local 231 len = TEMP_FAILURE_RETRY(recvfrom(fd, rep, sizeof(*rep), flags, 237 if (len < 0) { 256 if (!NLMSG_OK(&rep->nlh, (size_t)len)) { 257 rc = (len == sizeof(*rep)) ? -EFBIG : -EBADE;
|
/system/hwservicemanager/ |
H A D | TokenManager.cpp | 17 static void ReadRandomBytes(uint8_t *buf, size_t len) { argument 25 while ((n = TEMP_FAILURE_RETRY(read(fd, buf, len))) > 0) { 26 len -= n; 29 if (len > 0) { 30 ALOGW("%s: there are %d bytes skipped", __func__, (int)len);
|
/system/libhwbinder/ |
H A D | Parcel.cpp | 448 status_t Parcel::setData(const uint8_t* buffer, size_t len) argument 450 if (len > INT32_MAX) { 456 status_t err = restartWrite(len); 458 memcpy(const_cast<uint8_t*>(data()), buffer, len); 459 mDataSize = len; 504 status_t Parcel::finishWrite(size_t len) argument 506 if (len > INT32_MAX) { 512 //printf("Finish write of %d\n", len); 513 mDataPos += len; 523 status_t Parcel::writeUnpadded(const void* data, size_t len) argument 548 write(const void* data, size_t len) argument 564 writeInplace(size_t len) argument 703 writeString16(const char16_t* str, size_t len) argument 1328 const size_t len = eos - str; local 1338 size_t len; local 1370 size_t len; local 1951 growData(size_t len) argument [all...] |
/system/keymaster/ |
H A D | asymmetric_key.cpp | 75 int len = i2d_ASN1_BIT_STRING(key_usage.get(), nullptr); local 76 if (len < 0) { 79 UniquePtr<uint8_t[]> asn1_key_usage(new uint8_t[len]); 84 len = i2d_ASN1_BIT_STRING(key_usage.get(), &p); 85 if (len < 0) { 92 !ASN1_OCTET_STRING_set(key_usage_str.get(), asn1_key_usage.get(), len)) { 204 int len = i2d_X509(certificate, nullptr); local 205 if (len < 0) 208 uint8_t* data = new uint8_t[len]; 215 blob->data_length = len; [all...] |
/system/core/liblog/tests/ |
H A D | liblog_benchmark.cpp | 148 pmsg_header.len = 235 buffer->pmsg_header.len = 309 buffer->pmsg_header.len = 383 buffer->pmsg_header.len = 455 buffer->pmsg_header.len = 624 if ((log_msg.entry.len != (4 + 1 + 8)) || 702 if ((log_msg.entry.len != (4 + 1 + 8)) || 790 size_t len; local 791 if (android_lookupEventTag_len(map, &len, tag) == NULL) continue; 811 size_t len; local 837 size_t len; local 859 size_t len; local 878 size_t len; local 894 send_to_control(char* buf, size_t len) argument 987 size_t len; local [all...] |
/system/bt/stack/avrc/ |
H A D | avrc_pars_ct.cc | 49 uint16_t len; local 61 BE_STREAM_TO_UINT16(len, p); 62 AVRC_TRACE_DEBUG("%s ctype:0x%x pdu:0x%x, len:%d/0x%x", __func__, 63 p_msg->hdr.ctype, p_result->pdu, len, len); 75 if (len != 1) 167 /* read the entire packet len */ 229 "%s type %d id %d mtype %d stype %d ps %d cs %d name len %d", 252 AVRC_TRACE_DEBUG("%s type %d playable %d cs %d name len %d", 273 AVRC_TRACE_DEBUG("%s media type %d charset id %d len 408 uint16_t len; local [all...] |
/system/core/include/log/ |
H A D | log_event_list.h | 66 uint16_t len; member in struct:__anon1434 105 android_log_context create_android_log_parser(const char* msg, size_t len); 134 log_msg.entry.len - sizeof(uint32_t)); 249 bool AppendString(const char* value, size_t len) { argument 250 int retval = android_log_write_string8_len(ctx, value, len); 283 bool Append(const char* value, size_t len) { argument 284 int retval = android_log_write_string8_len(ctx, value, len);
|
/system/core/liblog/include/log/ |
H A D | log_event_list.h | 66 uint16_t len; member in struct:__anon1537 105 android_log_context create_android_log_parser(const char* msg, size_t len); 134 log_msg.entry.len - sizeof(uint32_t)); 249 bool AppendString(const char* value, size_t len) { argument 250 int retval = android_log_write_string8_len(ctx, value, len); 283 bool Append(const char* value, size_t len) { argument 284 int retval = android_log_write_string8_len(ctx, value, len);
|
/system/libvintf/ |
H A D | RuntimeInfo-target.cpp | 64 void streamConfig(const char *buf, size_t len); 85 int len; local 86 while ((len = gzread(f, buf, sizeof buf)) > 0) { 87 streamConfig(buf, len); 90 if (len < 0) { 123 void RuntimeInfoFetcher::streamConfig(const char *buf, size_t len) { argument 126 const char *stop = buf + len;
|