HomeSort by relevance Sort by last modified time
    Searched full:len (Results 926 - 950 of 5669) sorted by null

<<31323334353637383940>>

  /external/qemu/android/utils/
path.c 108 int len = end - start; local
109 char* result = android_alloc(len+1);
110 memcpy(result, start, len);
111 result[len] = 0;
284 path_mkdir_recursive( char* path, unsigned len, int mode )
291 while (len > 0 && ispathsep(path[len-1]))
292 len -= 1;
294 if (len == 0) {
301 len2 = len-1
340 unsigned len = (unsigned)strlen(path); local
    [all...]
  /external/zlib/
minigzip.c 103 int len; local
113 len = (int)fread(buf, 1, sizeof(buf), in);
118 if (len == 0) break;
120 if (gzwrite(out, buf, (unsigned)len) != len) error(gzerror(out, &err));
135 int len; local
152 len = gzwrite(out, (char *)buf, (unsigned)buf_len);
154 if (len != (int)buf_len) error(gzerror(out, &err));
171 int len; local
175 len = gzread(in, buf, sizeof(buf))
230 uInt len = (uInt)strlen(file); local
    [all...]
  /frameworks/base/libs/ui/
EventRecurrence.cpp 161 match_proc(const LHSProc* p, const char16_t* str, size_t len)
165 if (p->textSize == len) {
166 if (0 == memcmp(p->text, str, len*sizeof(char16_t))) {
178 parse_int(const char16_t* str, size_t len, int* out,
184 if (len == 0) {
197 for (; i<len; i++) {
228 parse_int_list(const char16_t* str, size_t len, int* countOut, int** listOut,
234 if (len == 0) {
243 for (size_t i=0; i<len; i++) {
254 for (i=0; i<len; i++)
349 size_t len = str.size(); local
    [all...]
  /sdk/emulator/qtools/
decoder.cpp 145 int len = end_ - next_; local
146 if (len > 0)
147 memcpy(buf_, next_, len);
150 int nbytes = kBufSize - len;
151 int rval = fread(buf_ + len, 1, nbytes, fstream_);
162 end_ = &buf_[len + rval];
167 void Decoder::Read(char *dest, int len)
169 while (len > 0) {
177 if (nbytes > len)
178 nbytes = len;
215 int len = prefix_to_len[byte0]; local
239 int len = prefix_to_len[byte0]; local
    [all...]
  /system/core/libcutils/
open_memstream.c 286 size_t len;
292 stream = open_memstream(&buf, &len);
295 printf("buf=%s, len=%zu\n", buf, len);
301 printf("buf=%s, len=%zu\n", buf, len);
307 stream = open_memstream(&buf, &len);
310 printf("buf=%s, len=%zu\n", buf, len);
316 printf("buf=%s, len=%zu\n", buf, len)
    [all...]
  /bionic/libc/kernel/common/linux/
socket.h 63 #define __CMSG_NXTHDR(ctl, len, cmsg) __cmsg_nxthdr((ctl),(len),(cmsg))
66 #define CMSG_ALIGN(len) ( ((len)+sizeof(long)-1) & ~(sizeof(long)-1) )
69 #define CMSG_SPACE(len) (CMSG_ALIGN(sizeof(struct cmsghdr)) + CMSG_ALIGN(len))
70 #define CMSG_LEN(len) (CMSG_ALIGN(sizeof(struct cmsghdr)) + (len))
72 #define __CMSG_FIRSTHDR(ctl,len) ((len) >= sizeof(struct cmsghdr) ? (struct cmsghdr *)(ctl) : (struct cmsghdr *)NULL
    [all...]
  /bootable/recovery/mtdutils/
flash_image.c 103 int len; local
104 while ((len = read(fd, buf, sizeof(buf))) > 0) {
105 wrote = mtd_write_data(out, buf, len);
106 if (wrote != len) die("error writing %s", argv[1]);
108 if (len < 0) die("error reading %s", argv[2]);
131 len = read(fd, buf, left > (int)sizeof(buf) ? (int)sizeof(buf) : left);
132 if (len <= 0) die("error reading %s", argv[2]);
133 if (mtd_write_data(out, buf, len) != len)
135 left -= len;
    [all...]
  /external/bluetooth/bluez/src/
sdpd-server.c 167 int sk, len, size; local
179 len = recv(sk, &hdr, sizeof(sdp_pdu_hdr_t), MSG_PEEK);
180 if (len <= 0) {
190 len = recv(sk, buf, size, 0);
191 if (len <= 0) {
197 handle_request(sk, buf, len);
214 socklen_t len = sizeof(addr); local
216 nsk = accept(l2cap_sock, (struct sockaddr *) &addr, &len);
219 socklen_t len = sizeof(addr); local
221 nsk = accept(unix_sock, (struct sockaddr *) &addr, &len);
    [all...]
  /external/bluetooth/bluez/tools/
ppporc.c 68 /* Read exactly len bytes (Signal safe)*/
69 static inline int read_n(int fd, char *buf, int len)
73 while (!__io_canceled && len > 0) {
74 if ((w = read(fd, buf, len)) < 0) {
81 len -= w;
89 /* Write exactly len bytes (Signal safe)*/
90 static inline int write_n(int fd, char *buf, int len)
94 while (!__io_canceled && len > 0) {
95 if ((w = write(fd, buf, len)) < 0) {
102 len -= w
    [all...]
  /external/bluetooth/glib/docs/reference/glib/tmpl/
strings.sgml 31 @len: contains the length of the string, not including the
34 string before it needs to be reallocated. May be larger than @len.
51 @len:
165 @len:
218 @len:
263 @len:
286 @len:
297 @len:
307 @len:
317 @len:
    [all...]
  /external/icu4c/test/letest/
xmlreader.cpp 49 le_int32 len = 0; local
57 len = numbers.extract(start, end - start, number, ARRAY_SIZE(number), US_INV);
58 number[len] = '\0';
75 len = numbers.extract(start, end - start, number, ARRAY_SIZE(number), US_INV);
76 number[len] = '\0';
95 le_int32 len = 0; local
103 len = numbers.extract(start, end - start, number, ARRAY_SIZE(number), US_INV);
104 number[len] = '\0';
125 len = numbers.extract(start, end - start, number, ARRAY_SIZE(number), US_INV);
126 number[len] = '\0'
    [all...]
  /external/kernel-headers/original/linux/sunrpc/
xdr.h 26 unsigned int len; member in struct:xdr_netobj
59 len; /* Length of XDR encoded message */ member in struct:xdr_buf
91 u32 * xdr_encode_opaque_fixed(u32 *p, const void *ptr, unsigned int len);
92 u32 * xdr_encode_opaque(u32 *p, const void *ptr, unsigned int len);
103 static inline u32 *xdr_encode_array(u32 *p, const void *s, unsigned int len)
105 return xdr_encode_opaque(p, s, len);
156 typedef size_t (*skb_read_actor_t)(skb_reader_t *desc, void *to, size_t len);
193 unsigned int base, unsigned int len);
196 extern void xdr_read_pages(struct xdr_stream *xdr, unsigned int len);
197 extern void xdr_enter_page(struct xdr_stream *xdr, unsigned int len);
    [all...]
  /external/openssl/crypto/engine/
eng_fat.c 97 static int int_def_cb(const char *alg, int len, void *arg)
100 if (!strncmp(alg, "ALL", len))
102 else if (!strncmp(alg, "RSA", len))
104 else if (!strncmp(alg, "DSA", len))
106 else if (!strncmp(alg, "ECDH", len))
108 else if (!strncmp(alg, "ECDSA", len))
110 else if (!strncmp(alg, "DH", len))
112 else if (!strncmp(alg, "RAND", len))
114 else if (!strncmp(alg, "CIPHERS", len))
116 else if (!strncmp(alg, "DIGESTS", len))
    [all...]
  /external/openssl/crypto/err/
err_prn.c 66 void ERR_print_errors_cb(int (*cb)(const char *str, size_t len, void *u),
87 static int print_fp(const char *str, size_t len, void *fp)
89 return fwrite(str, 1, len, fp);
97 void ERR_error_string_n(unsigned long e, char *buf, size_t len)
118 BIO_snprintf(buf, len,"error:%08lX:%s:%s:%s", e, ls?ls:lsbuf,
120 if (strlen(buf) == len-1)
125 if (len > NUM_COLONS) /* ... if possible */
133 if (colon == NULL || colon > &buf[len-1] - NUM_COLONS + i)
136 * (buf[len-1] is the terminating 0)*/
137 colon = &buf[len-1] - NUM_COLONS + i
    [all...]
  /external/skia/src/effects/
SkDashPathEffect.cpp 46 SkScalar len = 0; local
51 len += intervals[i];
53 fIntervalLength = len;
55 if (len > 0) // we don't handle 0 length dash arrays
60 if (phase > len)
61 phase = SkScalarMod(phase, len);
62 phase = len - phase;
64 else if (phase >= len)
65 phase = SkScalarMod(phase, len);
67 SkASSERT(phase >= 0 && phase < len);
    [all...]
  /external/wpa_supplicant/
bignum.c 77 * @len: Length of the buffer, can be %NULL if buffer is known to be long
81 int bignum_get_unsigned_bin(const struct bignum *n, u8 *buf, size_t *len)
84 if (len && need > *len) {
85 *len = need;
92 if (len)
93 *len = need;
102 * @len: Length of buf in octets
105 int bignum_set_unsigned_bin(struct bignum *n, const u8 *buf, size_t len)
107 if (mp_read_unsigned_bin((mp_int *) n, (u8 *) buf, len) != MP_OKAY)
    [all...]
crypto.c 35 void md4_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac)
42 MD4_Update(&ctx, addr[i], len[i]);
69 void md5_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac)
76 MD5_Update(&ctx, addr[i], len[i]);
81 void sha1_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac)
88 SHA1_Update(&ctx, addr[i], len[i]);
157 void * aes_encrypt_init(const u8 *key, size_t len)
163 if (AES_set_encrypt_key(key, 8 * len, ak) < 0) {
183 void * aes_decrypt_init(const u8 *key, size_t len)
189 if (AES_set_decrypt_key(key, 8 * len, ak) < 0)
    [all...]
  /external/wpa_supplicant_6/wpa_supplicant/src/common/
ieee802_11_common.c 34 "information element ignored (len=%lu)",
57 "(len=%lu)",
80 "(subtype=%d len=%lu)",
93 "(type=%d len=%lu)\n",
108 "(type=%d len=%lu)\n",
117 "len=%lu)",
129 * @len: Length of IE buffer in octets
134 ParseRes ieee802_11_parse_elems(u8 *start, size_t len,
138 size_t left = len;
157 wpa_hexdump(MSG_MSGDUMP, "IEs", start, len);
    [all...]
  /external/wpa_supplicant_6/wpa_supplicant/src/l2_packet/
l2_packet_privsep.c 27 const u8 *buf, size_t len);
69 const u8 *buf, size_t len)
82 io[3].iov_len = len;
135 const u8 *buf, size_t len),
141 size_t len; local
156 len = os_strlen(own_dir) + 50;
157 l2->own_socket_path = os_malloc(len);
162 os_snprintf(l2->own_socket_path, len, "%s/wpa_privsep-l2-%d-%d",
218 "(len=%d)", res);
257 int l2_packet_get_ip_addr(struct l2_packet_data *l2, char *buf, size_t len)
    [all...]
  /external/wpa_supplicant_6/wpa_supplicant/src/tls/
bignum.c 77 * @len: Length of the buffer, can be %NULL if buffer is known to be long
81 int bignum_get_unsigned_bin(const struct bignum *n, u8 *buf, size_t *len)
84 if (len && need > *len) {
85 *len = need;
92 if (len)
93 *len = need;
102 * @len: Length of buf in octets
105 int bignum_set_unsigned_bin(struct bignum *n, const u8 *buf, size_t len)
107 if (mp_read_unsigned_bin((mp_int *) n, (u8 *) buf, len) != MP_OKAY)
    [all...]
  /external/zlib/contrib/blast/
blast.c 125 int len; /* current number of bits in code */ local
126 int code; /* len bits being decoded */
127 int first; /* first code of length len */
128 int count; /* number of codes of length len */
129 int index; /* index of first code of length len in symbol table */
137 len = 1;
144 if (code < first + count) { /* if length len, return symbol */
146 s->bitcnt = (s->bitcnt - len) & 7;
153 len++;
155 left = (MAXBITS+1) - len;
188 int len; \/* current length when stepping through h->count[] *\/ local
281 int len; \/* length for copy *\/ local
    [all...]
  /ndk/build/platforms/android-3/arch-arm/usr/include/linux/
socket.h 63 #define __CMSG_NXTHDR(ctl, len, cmsg) __cmsg_nxthdr((ctl),(len),(cmsg))
66 #define CMSG_ALIGN(len) ( ((len)+sizeof(long)-1) & ~(sizeof(long)-1) )
69 #define CMSG_SPACE(len) (CMSG_ALIGN(sizeof(struct cmsghdr)) + CMSG_ALIGN(len))
70 #define CMSG_LEN(len) (CMSG_ALIGN(sizeof(struct cmsghdr)) + (len))
72 #define __CMSG_FIRSTHDR(ctl,len) ((len) >= sizeof(struct cmsghdr) ? (struct cmsghdr *)(ctl) : (struct cmsghdr *)NULL
    [all...]
  /ndk/build/platforms/android-4/arch-arm/usr/include/linux/
socket.h 63 #define __CMSG_NXTHDR(ctl, len, cmsg) __cmsg_nxthdr((ctl),(len),(cmsg))
66 #define CMSG_ALIGN(len) ( ((len)+sizeof(long)-1) & ~(sizeof(long)-1) )
69 #define CMSG_SPACE(len) (CMSG_ALIGN(sizeof(struct cmsghdr)) + CMSG_ALIGN(len))
70 #define CMSG_LEN(len) (CMSG_ALIGN(sizeof(struct cmsghdr)) + (len))
72 #define __CMSG_FIRSTHDR(ctl,len) ((len) >= sizeof(struct cmsghdr) ? (struct cmsghdr *)(ctl) : (struct cmsghdr *)NULL
    [all...]
  /ndk/build/platforms/android-5/arch-arm/usr/include/linux/
socket.h 63 #define __CMSG_NXTHDR(ctl, len, cmsg) __cmsg_nxthdr((ctl),(len),(cmsg))
66 #define CMSG_ALIGN(len) ( ((len)+sizeof(long)-1) & ~(sizeof(long)-1) )
69 #define CMSG_SPACE(len) (CMSG_ALIGN(sizeof(struct cmsghdr)) + CMSG_ALIGN(len))
70 #define CMSG_LEN(len) (CMSG_ALIGN(sizeof(struct cmsghdr)) + (len))
72 #define __CMSG_FIRSTHDR(ctl,len) ((len) >= sizeof(struct cmsghdr) ? (struct cmsghdr *)(ctl) : (struct cmsghdr *)NULL
    [all...]
  /ndk/build/platforms/android-5/arch-x86/usr/include/linux/
socket.h 63 #define __CMSG_NXTHDR(ctl, len, cmsg) __cmsg_nxthdr((ctl),(len),(cmsg))
66 #define CMSG_ALIGN(len) ( ((len)+sizeof(long)-1) & ~(sizeof(long)-1) )
69 #define CMSG_SPACE(len) (CMSG_ALIGN(sizeof(struct cmsghdr)) + CMSG_ALIGN(len))
70 #define CMSG_LEN(len) (CMSG_ALIGN(sizeof(struct cmsghdr)) + (len))
72 #define __CMSG_FIRSTHDR(ctl,len) ((len) >= sizeof(struct cmsghdr) ? (struct cmsghdr *)(ctl) : (struct cmsghdr *)NULL
    [all...]

Completed in 379 milliseconds

<<31323334353637383940>>