Searched refs:len (Results 176 - 200 of 722) sorted by relevance

1234567891011>>

/system/core/libcutils/
H A Dsched_policy.cpp212 size_t len; local
232 len = strlen(grp);
233 grp[len-1] = '\0'; /* Drop the trailing '\n' */
235 if (bufLen <= len) {
236 len = bufLen - 1;
238 strncpy(buf, grp, len);
239 buf[len] = '\0';
348 int len = snprintf(buf, sizeof(buf), "%llu", slack); local
349 if (write(fd, buf, len) != len) {
[all...]
/system/core/liblog/
H A Dpmsg_writer.c143 pmsgHeader.len = sizeof(pmsgHeader) + sizeof(header);
170 pmsgHeader.len += payloadSize;
195 static inline const char* strnrchr(const char* buf, size_t len, char c) { argument
196 const char* cp = buf + len;
200 return buf + len;
210 size_t len) {
252 for (ts.tv_nsec = 0, length = len; length;
259 len -= length;
296 return ret ? ret : (len - length);
306 return len;
206 __android_log_pmsg_file_write(log_id_t logId, char prio, const char* filename, const char* buf, size_t len) argument
[all...]
H A Devent_tag_map.cpp70 MapString(const char* str, size_t len) : alloc(NULL), str(str, len) { argument
346 size_t len = map->mapLen[which]; local
347 char* endp = cp + len;
350 if (!len || (*(endp - 1) != '\n')) {
353 which, len);
531 size_t* len,
533 if (len) *len = 0;
539 if (len) *le
530 android_lookupEventTag_len(const EventTagMap* map, size_t* len, unsigned int tag) argument
544 android_lookupEventFormat_len( const EventTagMap* map, size_t* len, unsigned int tag) argument
562 size_t len; local
576 size_t len = strlen(tagname); local
[all...]
/system/nfc/src/nfc/llcp/
H A Dllcp_sdp.c67 llcp_cb.sdp_cb.p_snl->len += LLCP_PDU_HEADER_SIZE;
94 llcp_cb.sdp_cb.p_snl->len;
101 llcp_cb.sdp_cb.p_snl->len += LLCP_SDREQ_MIN_LEN + name_len;
129 llcp_cb.sdp_cb.p_snl->len = 0;
135 llcp_cb.sdp_cb.p_snl->offset - llcp_cb.sdp_cb.p_snl->len;
141 (llcp_cb.sdp_cb.p_snl->len + LLCP_SDREQ_MIN_LEN + name_len <=
154 llcp_cb.sdp_cb.p_snl->len = 0;
190 llcp_cb.sdp_cb.p_snl->len;
197 llcp_cb.sdp_cb.p_snl->len += 2 + LLCP_SDRES_LEN; /* type and length */
223 llcp_cb.sdp_cb.p_snl->len
[all...]
/system/netd/server/
H A DXfrmController.cpp115 void logHex(const char* desc16, const char* buf, size_t len) { argument
116 char* printBuf = new char[len * 2 + 1 + 26]; // len->ascii, +newline, +prefix strlen
122 sprintf(printBuf + offset, "[%4.4u]: ", (len > 9999) ? 9999 : (unsigned)len);
125 for (uint32_t j = 0; j < (uint32_t)len; j++) {
172 static int validateResponse(NetlinkResponse response, size_t len) { argument
173 if (len < sizeof(nlmsghdr)) {
186 if (len < sizeof(NetlinkResponse::_err_)) {
261 void fillXfrmNlaHdr(nlattr* hdr, uint16_t type, uint16_t len) { argument
508 socklen_t len = sizeof(saddr); local
597 int len; local
611 int len = NLA_HDRLEN + sizeof(xfrm_algo); local
621 int len = NLA_HDRLEN + sizeof(xfrm_algo_auth); local
675 int len; local
694 int len; local
[all...]
/system/bt/bta/gatt/
H A Dbta_gatts_utils.cc185 if (src.len == 0 || tar.len == 0) {
190 if (src.len == 2 && tar.len == 2) {
195 if (src.len == LEN_UUID_16) {
202 if (tar.len == LEN_UUID_16) {
/system/core/libsysutils/src/
H A DFrameworkListener.cpp58 int len; local
60 len = TEMP_FAILURE_RETRY(read(c->getSocket(), buffer, sizeof(buffer)));
61 if (len < 0) {
64 } else if (!len) {
66 } else if (buffer[len-1] != '\0') {
77 for (i = 0; i < len; i++) {
H A DNetlinkEvent.cpp136 int len = IFLA_PAYLOAD(nh); local
138 for (rta = IFLA_RTA(ifi); RTA_OK(rta, len); rta = RTA_NEXT(rta, len)) {
175 int len = IFA_PAYLOAD(nh); local
176 for (rta = IFA_RTA(ifaddr); RTA_OK(rta, len); rta = RTA_NEXT(rta, len)) {
271 int len = 0; local
282 len = nla_len(payload);
283 if (len > 256) len
339 size_t len = RTM_PAYLOAD(nh); local
402 int len = NLMSG_PAYLOAD(nh, sizeof(*msg)); local
639 size_t len = strlen(paramName); local
[all...]
H A DSocketClient.cpp101 int SocketClient::sendBinaryMsg(int code, const void *data, int len) { argument
103 // 4 bytes for the code & null + 4 bytes for the len
107 // Write the len
108 uint32_t tmp = htonl(len);
115 vec[1].iov_len = len;
118 int result = sendDataLockedv(vec, (len > 0) ? 2 : 1);
132 int len = strlen(arg); local
133 char *result = (char *)malloc(len * 2 + 3);
135 const char *end = arg + len;
170 int SocketClient::sendData(const void *data, int len) { argument
[all...]
/system/core/adb/
H A Dsockets.cpp126 D("LS(%d): enqueue %zu", s->id, p->len);
141 while (p->len > 0) {
142 int r = adb_write(s->fd, p->ptr, p->len);
144 p->len -= r;
159 if (p->len == 0) {
199 D("LS(%d): discarding %zu bytes", s->id, p->len);
260 while (p->len > 0) {
261 int r = adb_write(fd, p->ptr, p->len);
271 p->len -= r;
281 if (p->len
517 size_t len = strlen(destination) + 1; local
552 unhex(char* s, int len) argument
657 unsigned len; local
[all...]
H A Dadb_auth.h53 void adbd_auth_confirm_key(const char* data, size_t len, atransport* t);
/system/bt/bta/include/
H A Dbta_hd_api.h75 uint16_t len; member in struct:__anon358
99 uint16_t len; member in struct:__anon362
107 uint16_t len; member in struct:__anon363
/system/bt/btcore/src/
H A Dbdaddr.cc63 size_t len = strlen(string); local
64 if (len != 17) return false;
66 for (size_t i = 0; i < len; ++i) {
/system/core/include/ziparchive/
H A Dzip_writer.h130 int32_t WriteBytes(const void* data, size_t len);
164 int32_t StoreBytes(FileEntry* file, const void* data, size_t len);
165 int32_t CompressBytes(FileEntry* file, const void* data, size_t len);
/system/extras/showmap/
H A Dshowmap.cpp34 int len = strlen(name); local
35 return len >= 4 && name[0] == '/'
36 && name[len - 3] == '.' && name[len - 2] == 's' && name[len - 1] == 'o';
92 int len; local
94 if (sscanf(line, "%63s %n", field, &len) == 1
97 if (sscanf(line + len, "%d kB", &size) == 1) {
176 int len; local
186 len
[all...]
/system/netd/netutils_wrappers/
H A DNetUtilsWrapper-1.0.cpp114 size_t len = strlen(netcmds[i]); local
115 if (!strncmp(basename, netcmds[i], len)) {
117 basename[len] = '\0';
/system/security/keystore-engine/
H A Dandroid_engine.cpp146 * big-endian integer to |out|. Both |in| and |out| are |len| bytes long. It
148 int rsa_private_transform(RSA *rsa, uint8_t *out, const uint8_t *in, size_t len) { argument
149 ALOGV("rsa_private_transform(%p, %p, %p, %u)", rsa, out, in, (unsigned) len);
161 int32_t ret = g_keystore_backend->sign(key_id, in, len, &reply, &reply_len);
173 if (reply_len > len) {
178 ALOGW("Reply len %zu greater than expected %zu", reply_len, len);
179 memcpy(out, &reply[reply_len - len], len);
180 } else if (reply_len < len) {
[all...]
/system/core/include/log/
H A Dlog_read.h56 uint16_t len; /* length of the payload */ member in struct:logger_entry
74 uint16_t len; /* length of the payload */ member in struct:logger_entry_v2
93 uint16_t len; /* length of the payload */ member in struct:logger_entry_v3
112 uint16_t len; /* length of the payload */ member in struct:logger_entry_v4
191 unsigned int len() { function in struct:log_msg
194 entry.len;
230 char* buf, size_t len);
232 char* buf, size_t len);
234 size_t len);
/system/core/libdiskconfig/
H A Dconfig_mbr.c28 /* start and len are in LBA units */
31 uint32_t start, uint32_t len)
33 if (len > 0) {
47 pentry->len_lba = len;
145 uint32_t len; /* in lba units */ local
162 len = kb_to_lba(pinfo->len_kb, dinfo->sect_size);
169 len = dinfo->num_lba - *lba;
173 (uint32_t)(((uint64_t)len * (uint64_t)dinfo->sect_size) /
178 pinfo->type, 1, len);
181 *lba += len;
30 cfg_pentry(struct pc_partition *pentry, uint8_t status, uint8_t type, uint32_t start, uint32_t len) argument
[all...]
/system/core/liblog/include/log/
H A Dlog_read.h56 uint16_t len; /* length of the payload */ member in struct:logger_entry
74 uint16_t len; /* length of the payload */ member in struct:logger_entry_v2
93 uint16_t len; /* length of the payload */ member in struct:logger_entry_v3
112 uint16_t len; /* length of the payload */ member in struct:logger_entry_v4
191 unsigned int len() { function in struct:log_msg
194 entry.len;
230 char* buf, size_t len);
232 char* buf, size_t len);
234 size_t len);
/system/core/liblog/include_vndk/log/
H A Dlog_read.h56 uint16_t len; /* length of the payload */ member in struct:logger_entry
74 uint16_t len; /* length of the payload */ member in struct:logger_entry_v2
93 uint16_t len; /* length of the payload */ member in struct:logger_entry_v3
112 uint16_t len; /* length of the payload */ member in struct:logger_entry_v4
191 unsigned int len() { function in struct:log_msg
194 entry.len;
230 char* buf, size_t len);
232 char* buf, size_t len);
234 size_t len);
/system/libhwbinder/
H A DBufferedTextOutput.cpp53 status_t append(const char* txt, size_t len) { argument
54 if ((len+bufferPos) > bufferSize) {
55 size_t newSize = ((len+bufferPos)*3)/2;
56 if (newSize < (len+bufferPos)) return NO_MEMORY; // overflow
62 if ((len+bufferPos) < bufferPos) return NO_MEMORY; // integer overflow
63 memcpy(buffer+bufferPos, txt, len);
64 bufferPos += len;
162 status_t BufferedTextOutput::print(const char* txt, size_t len) argument
166 const char* const end = txt+len;
/system/bt/hci/include/
H A Dbt_hci_bdroid.h75 uint16_t len; member in struct:__anon717
/system/core/init/
H A Dueventd.cpp128 int len = strlen(name); local
130 if ((name[len - 1] == '*') && (wildcard_chr == (name + len - 1))) {
132 name[len - 1] = '\0';
/system/core/logd/
H A DLogAudit.h43 int log(char* buf, size_t len);

Completed in 453 milliseconds

1234567891011>>