/sdk/emulator/opengl/shared/OpenglCodecCommon/ |
Win32PipeStream.cpp | 194 const unsigned char *Win32PipeStream::readFully(void *buf, size_t len) 203 size_t res = len; 206 if (! ::ReadFile(m_pipe, (char *)buf + (len - res), res, &readcount, NULL) || readcount == 0) { 217 size_t len = *inout_len; local 227 if (!::ReadFile(m_pipe, (char *)buf, len, &readcount, NULL)) {
|
glUtils.cpp | 459 int len = 0; local 467 len += l; 469 return len;
|
/system/core/libcutils/ |
fs.c | 123 int len = snprintf(buf, BUF_SIZE, "%d", value) + 1; local 124 if (len > BUF_SIZE) { 128 if (TEMP_FAILURE_RETRY(write(fd, buf, len)) < len) {
|
record_stream.c | 76 size_t len; local 84 len = ntohl(*((uint32_t *)p_begin)); 86 p_ret = p_begin + HEADER_SIZE + len;
|
strdup8to16.c | 46 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...] |
/system/core/logd/ |
libaudit.c | 213 ssize_t len; local 233 len = TEMP_FAILURE_RETRY(recvfrom(fd, rep, sizeof(*rep), flags, 239 if (len < 0) { 261 if (!NLMSG_OK(&rep->nlh, (size_t)len)) { 262 rc = (len == sizeof(*rep)) ? -EFBIG : -EBADE;
|
/system/core/toolbox/ |
mkswap.c | 28 ssize_t len; local 64 len = write(fd, &sw_hdr, sizeof(sw_hdr)); 65 if (len != sizeof(sw_hdr)) { 78 len = write(fd, MAGIC_SWAP_HEADER, MAGIC_SWAP_HEADER_LEN); 79 if (len != MAGIC_SWAP_HEADER_LEN) {
|
/system/core/toolbox/upstream-netbsd/bin/kill/ |
kill.c | 215 int len, nl; local 225 for (len = 0, sig = 1; sig < NSIG; sig++) { 229 if (len + nl >= termwidth) { 231 len = 0; 233 if (len != 0) 235 len += nl; 238 if (len != 0)
|
/bionic/libc/arch-arm64/generic/bionic/ |
strnlen.S | 37 #define len x0 define 68 mov len, limit 110 MIN (len, limit). */ 112 sub len, src, srcin 117 sub len, len, #8 130 sub len, len, #8 133 add len, len, pos, lsr #3 /* Bits to bytes. * [all...] |
/bionic/libc/bionic/ |
system_properties_compat.c | 76 unsigned len = strlen(name); local 79 if (len >= PROP_NAME_MAX) 81 if (len < 1) 86 if(TOC_NAME_LEN(entry) != len) continue; 89 if(memcmp(name, pi->name, len)) continue; 99 unsigned serial, len; local 108 len = SERIAL_VALUE_LEN(serial); 109 memcpy(value, pi->value, len + 1); 114 return len;
|
/bionic/libc/kernel/uapi/linux/ |
ashmem.h | 32 __u32 len; member in struct:ashmem_pin
|
auto_fs.h | 45 int len; member in struct:autofs_packet_missing 51 int len; member in struct:autofs_packet_expire
|
virtio_ring.h | 34 __u32 len; member in struct:vring_desc 47 __u32 len; member in struct:vring_used_elem
|
/bionic/libc/kernel/uapi/linux/netfilter_bridge/ |
ebt_802_3.h | 52 __be16 len; member in struct:ebt_802_3_hdr
|
/bionic/libc/tzcode/ |
strptime.c | 115 size_t len = 0; local 211 len = strlen(_ctloc(day[i])); 212 if (strncasecmp(_ctloc(day[i]), (const char*)bp, len) == 0) 216 len = strlen(_ctloc(abday[i])); 217 if (strncasecmp(_ctloc(abday[i]), (const char*)bp, len) == 0) 226 bp += len; 235 len = strlen(_ctloc(mon[i])); 236 if (strncasecmp(_ctloc(mon[i]), (const char*)bp, len) == 0) 240 len = strlen(_ctloc(abmon[i])); 241 if (strncasecmp(_ctloc(abmon[i]), (const char*)bp, len) == 0 [all...] |
/bionic/libc/upstream-openbsd/lib/libc/gen/ |
exec.c | 136 size_t lp, ln, len; local 160 len = strlen(path) + 1; 161 cur = alloca(len); 166 strlcpy(cur, path, len);
|
fnmatch.c | 104 size_t len; local 120 len = (size_t)(colon - pattern); 125 if (!strncmp(pattern, cc->name, len) && cc->name[len] == '\0') {
|
/bionic/libc/upstream-openbsd/lib/libc/stdio/ |
mktemp.c | 49 size_t len; local 52 len = strlen(path); 53 if (len < MIN_X || slen < 0 || (size_t)slen > len - MIN_X) { 57 ep = path + len - slen;
|
/bootable/recovery/mtdutils/ |
flash_image.c | 106 int len; local 107 while ((len = read(fd, buf, sizeof(buf))) > 0) { 108 wrote = mtd_write_data(out, buf, len); 109 if (wrote != len) die("error writing %s", argv[1]); 111 if (len < 0) die("error reading %s", argv[2]); 134 len = read(fd, buf, left > (int)sizeof(buf) ? (int)sizeof(buf) : left); 135 if (len <= 0) die("error reading %s", argv[2]); 136 if (mtd_write_data(out, buf, len) != len) 138 left -= len; [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/hce/ |
HceUtils.java | 52 int len = s.length(); local 53 if (len % 2 != 0) { 55 len++; 57 byte[] data = new byte[len / 2]; 58 for (int i = 0; i < len; i += 2) {
|
/cts/suite/audio_quality/lib/src/ |
RWBuffer.h | 82 size_t len = str.length(); local 83 assertWriteCapacity(len); 84 memcpy(mBuffer + mWrPoint, str.string(), len); 85 mWrPoint += len;
|
/dalvik/dexgen/src/com/android/dexgen/util/ |
Bits.java | 114 int len = bits.length; local 116 for (int i = 0; i < len; i++) { 132 int len = bits.length; local 135 for (int i = 0; i < len; i++) { 167 int len = bits.length; local 170 for (int arrayIdx = idx >> 5; arrayIdx < len; arrayIdx++) {
|
HexParser.java | 45 int len = src.length(); local 46 byte[] result = new byte[len / 2]; 50 while (at < len) { 53 nlAt = len;
|
/dalvik/dx/src/com/android/dx/util/ |
Bits.java | 114 int len = bits.length; local 116 for (int i = 0; i < len; i++) { 132 int len = bits.length; local 135 for (int i = 0; i < len; i++) { 167 int len = bits.length; local 170 for (int arrayIdx = idx >> 5; arrayIdx < len; arrayIdx++) {
|
HexParser.java | 45 int len = src.length(); local 46 byte[] result = new byte[len / 2]; 50 while (at < len) { 53 nlAt = len;
|