/external/libopus/src/ |
repacketizer_demo.c | 63 int len[48]; local 123 len[i] = char_to_int(ch); 124 /*fprintf(stderr, "in len = %d\n", len[i]);*/ 125 if (len[i]>1500 || len[i]<0) 140 err = fread(packets[i], 1, len[i], fin); 146 err = opus_repacketizer_cat(rp, packets[i], len[i]); 177 /*fprintf(stderr, "out len = %d\n", err);*/ 205 /*fprintf(stderr, "out len = %d\n", err);* [all...] |
/external/libpcap/tests/ |
nonblocktest.c | 201 register u_int len = 0; local 210 len += strlen(*p++) + 1; 212 buf = (char *)malloc(len);
|
/external/libpng/contrib/libtests/ |
timepng.c | 255 size_t len = strlen(filename); local 257 if (filename[len-1] == '\n') 259 filename[len-1] = 0; 273 filename+len-32);
|
/external/libselinux/src/ |
booleans.c | 36 int security_get_boolean_names(char ***names, int *len) 43 assert(len); 50 *len = scandir(path, &namelist, &filename_select, alphasort); 51 if (*len <= 0) { 55 n = (char **)malloc(sizeof(char *) * *len); 61 for (i = 0; i < *len; i++) { 71 for (i = 0; i < *len; i++) { 88 int fd, len; local 101 len = strlen(name) + strlen(selinux_mnt) + sizeof(SELINUX_BOOL_DIR); 102 fname = (char *)malloc(sizeof(char) * len); 163 int fd, ret, len; local [all...] |
/external/libsepol/src/ |
genusers.c | 39 size_t len = 0; local 59 while ((nread = getline(&buffer, &len, fp)) > 0) { 292 int sepol_genusers(void *data, size_t len, 301 if (policydb_from_image(NULL, data, len, &policydb) < 0)
|
/external/libunwind/src/x86/ |
Ginit.c | 98 size_t len; local 101 len = PAGE_SIZE; 103 len = PAGE_SIZE * 2; 117 if (mincore ((void *) addr, len, mvec) == -1) 119 if (msync ((void *) addr, len, MS_ASYNC) == -1)
|
/external/libunwind/src/x86_64/ |
Ginit.c | 74 static int (*mem_validate_func) (void *addr, size_t len); 75 static int msync_validate (void *addr, size_t len) 77 return msync (addr, len, MS_ASYNC); 81 static int mincore_validate (void *addr, size_t len) 84 return mincore (addr, len, mvec); 119 size_t len; local 122 len = PAGE_SIZE; 124 len = PAGE_SIZE * 2; 137 if (mem_validate_func ((void *) addr, len) == -1)
|
/external/libunwind/tests/ |
ia64-test-dyn1.c | 26 make_executable (void *addr, size_t len) 28 if (mprotect ((void *) (((long) addr) & -getpagesize ()), len, 34 flush_cache (addr, len); 44 size_t len; local 46 len = (uintptr_t) end - GET_ENTRY (func) + EXTRA; 47 mem = malloc (len); 50 __FUNCTION__, name, mem, len); 51 memend = (char *) mem + len; 65 len = (char *) memend - (char *) mem; 66 memcpy (mem, addr, len); [all...] |
test-async-sig.c | 101 size_t len = strlen (name); local 103 memcpy (buf + 1, name, len); 104 buf[len + 1] = '>'; 105 buf[len + 2] = '\0';
|
/external/libvpx/libvpx/third_party/libmkv/ |
EbmlWriter.c | 63 int len; local 66 len = 4; 68 len = 3; 70 len = 2; 72 len = 1; 74 Ebml_Serialize(glob, (void *)&class_id, sizeof(class_id), len); local 117 unsigned char len = 0x88; local 120 Ebml_Serialize(glob, &len, sizeof(len), 1);
|
/external/libvpx/libvpx/third_party/nestegg/halloc/src/ |
halloc.c | 58 void * halloc(void * ptr, size_t len) 72 if (! len) 75 p = allocator(0, len + sizeof_hblock); 91 if (len) 93 p = allocator(p, len + sizeof_hblock); 144 void * h_malloc(size_t len) 146 return halloc(0, len); 149 void * h_calloc(size_t n, size_t len) 151 void * ptr = halloc(0, len*=n); 152 return ptr ? memset(ptr, 0, len) : NULL 167 size_t len = strlen(str); local [all...] |
/external/linux-tools-perf/perf-3.12.0/tools/perf/ui/tui/ |
util.c | 75 int x, y, len, key; local 86 len = sep - t; 87 if (max_len < len) 88 max_len = len; 112 len = 5; 113 while (len--) { 114 SLsmg_gotorc(y + len - 1, x); 124 len = 0; 128 if (len == 0) 130 SLsmg_gotorc(y, x + --len); 164 int len; local [all...] |
/external/linux-tools-perf/perf-3.12.0/tools/perf/util/ |
path.c | 31 size_t len = (ret >= size) ? size - 1 : ret; local 32 memcpy(dest, src, len); 33 dest[len] = '\0'; 61 size_t len; local 63 len = strlen(perf_dir); 64 if (n < len + 1) 66 memcpy(buf, perf_dir, len); 67 if (len && !is_dir_sep(perf_dir[len-1])) 68 buf[len++] = '/' 91 unsigned len; local 107 unsigned len; local [all...] |
strlist.c | 77 const size_t len = strlen(entry); local 79 if (len == 0) 81 entry[len - 1] = '\0';
|
/external/lldb/examples/scripting/ |
dictionary.c | 29 int len = strlen (start); local 30 char *end = start + len - 1; 177 int len = strlen (word); local 180 for (i = 0; i < len; ++i) 183 if ((len > 0) && (word[len-1] == '\n')) 185 word[len-1] = '\0'; 186 len = len - 1;
|
/external/lldb/source/Core/ |
ConnectionMachPort.cpp | 128 int len = snprintf(port_name, sizeof(port_name), "%s", port); local 129 if (len < sizeof(port_name))
|
/external/mdnsresponder/mDNSShared/ |
PlatformCommon.c | 42 socklen_t len = sizeof(addr); local 74 if ((getsockname(sock, &addr.s, &len)) < 0) 88 unsigned int len = strlen(option); local 89 if (len + 1 + MAX_ESCAPED_DOMAIN_NAME > sizeof(buf)-1) { LogMsg("GetConfigOption: option %s too long", option); return mDNSfalse; } 93 if (!strncmp(buf, option, len)) 95 strncpy(dst, buf + len + 1, MAX_ESCAPED_DOMAIN_NAME-1); 97 len = strlen(dst); 98 if (len && dst[len-1] == '\n') dst[len-1] = '\0'; // chop newlin [all...] |
/external/mesa3d/src/gallium/auxiliary/rbug/ |
rbug_context.c | 48 LEN(8); /* header */ 84 LEN(8); /* header */ 85 LEN(8); /* context */ 123 LEN(8); /* header */ 124 LEN(8); /* context */ 125 LEN(4); /* block */ 164 LEN(8); /* header */ 165 LEN(8); /* context */ 166 LEN(4); /* step */ 205 LEN(8); /* header * 492 uint32_t len = 0; local 519 uint32_t len = 0; local 547 uint32_t len = 0; local 575 uint32_t len = 0; local 603 uint32_t len = 0; local 635 uint32_t len = 0; local 662 uint32_t len = 0; local 690 uint32_t len = 0; local 724 uint32_t len = 0; local [all...] |
rbug_texture.c | 48 LEN(8); /* header */ 84 LEN(8); /* header */ 85 LEN(8); /* texture */ 132 LEN(8); /* header */ 133 LEN(8); /* texture */ 134 LEN(4); /* face */ 135 LEN(4); /* level */ 136 LEN(4); /* zslice */ 137 LEN(4); /* x */ 138 LEN(4); /* y * 432 uint32_t len = 0; local 459 uint32_t len = 0; local 495 uint32_t len = 0; local 529 uint32_t len = 0; local 557 uint32_t len = 0; local 595 uint32_t len = 0; local [all...] |
/external/mesa3d/src/gallium/auxiliary/util/ |
u_cpu_detect.c | 112 int len = sizeof (has_vu); local 115 err = sysctl(sels, 2, &has_vu, &len, NULL, 0); 240 int len; local 245 len = sizeof (ncpu); 246 sysctl(mib, 2, &ncpu, &len, NULL, 0);
|
u_string.h | 145 size_t len = strlen(needle); local 148 if (util_strncmp(p, needle, len) == 0) {
|
/external/mesa3d/src/gallium/state_trackers/d3d1x/dxgi/src/ |
dxgi_loader.cpp | 76 size_t len; local 81 len = (next) ? next - cur : strlen(cur); 83 if (!loader(cur, len, loader_data)) 107 dlopen_pipe_module_cb(const char *dir, size_t len, void *callback_data) 113 if (len) { 115 "%.*s/" PIPE_PREFIX "%s" UTIL_DL_EXT, len, dir, pmod->name);
|
/external/mockito/cglib-and-asm/src/org/mockito/asm/ |
ByteVector.java | 205 int len = length;
local 213 data[len++] = (byte) (charLength >>> 8);
214 data[len++] = (byte) charLength;
218 data[len++] = (byte) c;
234 length = len;
241 data[len++] = (byte) c;
243 data[len++] = (byte) (0xE0 | c >> 12 & 0xF);
244 data[len++] = (byte) (0x80 | c >> 6 & 0x3F);
245 data[len++] = (byte) (0x80 | c & 0x3F);
247 data[len++] = (byte) (0xC0 | c >> 6 & 0x1F); [all...] |
/external/mockito/cglib-and-asm/src/org/mockito/asm/signature/ |
SignatureReader.java | 73 int len = signature.length();
local 103 while (pos < len) {
108 while (pos < len) {
|
/external/openssl/apps/ |
dh.c | 282 int len,l,bits; local 284 len=BN_num_bytes(dh->p); 286 data=(unsigned char *)OPENSSL_malloc(len);
|