/system/core/include/mincrypt/ |
rsa.h | 41 int len; /* Length of n[] in number of uint32_t */ member in struct:RSAPublicKey 49 const int len,
|
/system/core/libcutils/ |
process_name.c | 43 int len = strlen(new_name); local 44 char* copy = (char*) malloc(len + 1); 49 if (len < 16) { 52 prctl(PR_SET_NAME, (unsigned long) new_name + len - 15, 0, 0, 0);
|
strdup16to8.c | 29 extern size_t strnlen16to8(const char16_t* utf16Str, size_t len) 34 * potentially be as big as 3*len, which will overflow 35 * for len > SIZE_MAX/3. 43 * dst = malloc(strnlen16to8(utf16,len)+1) 55 /* Fast path for the usual case where 3*len is < SIZE_MAX-1. 57 if (len < (SIZE_MAX-1)/3) { 58 while (len--) { 72 while (len--) { 102 * not just "len". 107 extern char* strncpy16to8(char* utf8Str, const char16_t* utf16Str, size_t len) 146 size_t len; local [all...] |
/system/core/toolbox/ |
getsebool.c | 17 int i, get_all = 0, rc = 0, active, pending, len = 0, opt; local 31 rc = security_get_boolean_names(&names, &len); 38 if (!len) { 53 if (!len) { 56 len = argc - 1; 57 names = malloc(sizeof(char *) * len); 62 for (i = 0; i < len; i++) { 72 for (i = 0; i < len; i++) { 100 for (i = 0; i < len; i++)
|
/system/netd/ |
oem_iptables_hook.cpp | 34 size_t len = strnlen(cmd, 255); local 37 if (len == 255) {
|
/bionic/libc/bionic/ |
malloc_debug_check_mapinfo.c | 43 int len = strlen(line); local 45 if(len < 1) return 0; 46 line[--len] = 0; 48 if(len < 50) return 0; 51 mi = dlmalloc(sizeof(mapinfo) + (len - 47));
|
ssp.c | 48 ssize_t len = read(fd, &__stack_chk_guard, local 51 if (len == sizeof(__stack_chk_guard))
|
/bionic/libc/inet/ |
inet_ntop.c | 105 struct { int base, len; } best, cur; member in struct:__anon50 119 best.len = 0; 121 cur.len = 0; 125 cur.base = i, cur.len = 1; 127 cur.len++; 130 if (best.base == -1 || cur.len > best.len) 137 if (best.base == -1 || cur.len > best.len) 140 if (best.base != -1 && best.len < 2 [all...] |
/bionic/libc/kernel/common/linux/ |
msm_hw3d.h | 45 unsigned long len; member in struct:hw3d_region
|
/bionic/libc/regex/ |
regerror.c | 82 size_t len; local 106 len = strlen(s) + 1; 111 return(len);
|
/bionic/libc/stdio/ |
fvwrite.c | 50 size_t len; local 57 if ((len = uio->uio_resid) == 0) 70 len = iov->iov_len; 73 while (len == 0) { \ 76 len = iov->iov_len; \ 86 w = (*fp->_write)(fp->_cookie, p, len); 88 w = (*fp->_write)(fp->_cookie, p, MIN(len, BUFSIZ2)); 93 len -= w; 110 (__SALC | __SSTR) && fp->_w < (int)len) { 119 } while (_size < (int)(blen + len)); [all...] |
/bootable/recovery/ |
adb_install.cpp | 64 int len = property_get("ro.debuggable", value, NULL); local 65 if (len == 1 && value[0] == '1') {
|
/cts/suite/audio_quality/lib/src/ |
SimpleScriptExec.cpp | 74 size_t len = 0; local 81 while((len = fread(buffer, 1, READ_SIZE, fpipe)) > 0) { 82 result.append(buffer, len);
|
/cts/tools/signature-tools/src/signature/ |
Main.java | 127 int len = orig.length - 1; local 128 String[] newa = new String[len]; 130 System.arraycopy(orig, n + 1, newa, n, len - n);
|
/dalvik/libdex/ |
CmdUtils.cpp | 115 int len = strlen(fileName); local 120 if (len < 5) { 129 if (strcasecmp(fileName + len -3, "dex") != 0) {
|
/development/tools/emulator/system/libqemu/ |
test_guest_1.c | 68 int len = snprintf(buff, sizeof(buff), "Hello World %d\n", count); local 69 printf("%4d: Sending %d bytes\n", count, len); 70 int ret = pipe_send(pipe, buff, len); 72 fprintf(stderr,"Sending %d bytes failed: %s\n", len, strerror(errno)); 76 total += len; 79 ret = pipe_recv(pipe, buff2, len); 86 if (ret != len) { 87 fprintf(stderr, "Message size mismatch sent=%d received=%d\n", len, ret); 90 if (memcmp(buff, buff2, len) != 0) {
|
/development/tools/emulator/system/qemu-props/ |
qemu-props.c | 86 int len = qemud_channel_recv(qemud_fd, temp, sizeof temp - 1); local 89 if (len < 0 || len > BUFF_SIZE-1 || temp[0] == '\0') 92 temp[len] = '\0'; /* zero-terminate string */ 94 DD("received: %.*s", len, temp);
|
/device/asus/grouper/power/ |
power.c | 35 int len; local 44 len = write(fd, s, strlen(s)); 45 if (len < 0) { 94 int len; local
|
/device/moto/wingray/taudio/ |
tplay.c | 26 int len = -1; local 32 len = atoi(optarg); 35 fprintf(stderr, "Usage: %s [-n<len>] name\n", 60 if (len < 0) 61 len = 4096; 63 printf("write length: %d\n", len); 65 buffer = malloc(len); 66 FAILIF(!buffer, "Could not allocate %d bytes!\n", len); 70 nr = read(ifd, buffer, len);
|
/external/apache-harmony/crypto/src/test/api/java.injected/javax/crypto/ |
ExemptionMechanismSpiTest.java | 60 int len = MyExemptionMechanismSpi.getLength(); local 62 assertEquals("Incorrect length", bbRes.length, len); 64 emSpi.engineGenExemptionBlob(new byte[1], len), len);
|
/external/apache-http/src/org/apache/commons/codec/language/ |
SoundexUtils.java | 43 int len = str.length(); local 44 char[] chars = new char[len]; 46 for (int i = 0; i < len; i++) { 51 if (count == len) {
|
/external/apache-http/src/org/apache/http/impl/entity/ |
EntityDeserializer.java | 77 long len = this.lenStrategy.determineLength(message); local 78 if (len == ContentLengthStrategy.CHUNKED) { 82 } else if (len == ContentLengthStrategy.IDENTITY) { 88 entity.setContentLength(len); 89 entity.setContent(new ContentLengthInputStream(inbuffer, len));
|
EntitySerializer.java | 73 long len = this.lenStrategy.determineLength(message); local 74 if (len == ContentLengthStrategy.CHUNKED) { 76 } else if (len == ContentLengthStrategy.IDENTITY) { 79 return new ContentLengthOutputStream(outbuffer, len);
|
StrictContentLengthStrategy.java | 210 long len = Long.parseLong(s); local 211 return len;
|
/external/bluetooth/bluez/compat/ |
msdun.c | 59 unsigned len = 0; local 63 r = read(fd, buf + len, sizeof(buf) - len - 1); 72 len += r; 74 if (len < strlen(str)) 76 buf[len] = 0;
|