/bionic/libc/bionic/ |
strndup.c | 33 size_t slen = (size_t)strlen(s); local 36 if (slen < n) 37 n = slen;
|
/bionic/libc/wchar/ |
wcsxfrm.c | 38 size_t slen; local 47 slen = wcslen(src); 49 if (slen < len) 56 return (slen);
|
/external/harfbuzz/src/ |
harfbuzz-hebrew.c | 78 int slen = 1; local 137 shapedChars[slen] = 0x25cc; 138 attributes[slen].clusterStart = TRUE; 139 attributes[slen].mark = FALSE; 140 attributes[slen].combiningClass = 0; 141 cluster_start = slen; 142 ++slen; 153 shapedChars[slen] = uc[i]; 156 attributes[slen].clusterStart = TRUE; 157 attributes[slen].mark = FALSE [all...] |
/external/harfbuzz_ng/src/hb-old/ |
harfbuzz-hebrew.c | 78 int slen = 1; local 137 shapedChars[slen] = 0x25cc; 138 attributes[slen].clusterStart = TRUE; 139 attributes[slen].mark = FALSE; 140 attributes[slen].combiningClass = 0; 141 cluster_start = slen; 142 ++slen; 153 shapedChars[slen] = uc[i]; 156 attributes[slen].clusterStart = TRUE; 157 attributes[slen].mark = FALSE [all...] |
/external/wpa_supplicant_8/wpa_supplicant/ |
hs20_supplicant.c | 139 const u8 *sa, const u8 *data, size_t slen) 146 if (slen < 2) 153 slen--; 156 slen--; 162 wpa_hexdump_ascii(MSG_DEBUG, "HS Capability List", pos, slen); 167 wpa_hexdump_ascii(MSG_DEBUG, "oper friendly name", pos, slen); 171 wpabuf_alloc_copy(pos, slen); 175 wpa_hexdump(MSG_DEBUG, "WAN Metrics", pos, slen); 176 if (slen < 13) { 187 anqp->hs20_wan_metrics = wpabuf_alloc_copy(pos, slen); [all...] |
hs20_supplicant.h | 18 const u8 *sa, const u8 *data, size_t slen);
|
/external/openssh/openbsd-compat/ |
realpath.c | 58 int serrno, slen; local 150 slen = readlink(resolved, symlink, sizeof(symlink) - 1); 151 if (slen < 0) 153 symlink[slen] = '\0'; 171 if (symlink[slen - 1] != '/') { 172 if (slen + 1 >= sizeof(symlink)) { 176 symlink[slen] = '/'; 177 symlink[slen + 1] = 0;
|
mktemp.c | 51 mkstemps(char *path, int slen) 55 return (_gettemp(path, &fd, 0, slen) ? fd : -1); 73 _gettemp(path, doopen, domkdir, slen) 77 int slen; 91 trv -= slen;
|
/frameworks/av/media/libstagefright/codecs/mp3dec/src/ |
pvmp3_get_scale_factors.cpp | 100 const int32 slen[2][16] = variable 149 scalefac->l[sfb] = getNbits(pMainData, slen[0][gr_info->scalefac_compress]); 156 scalefac->s[window][sfb] = getNbits(pMainData, slen[0][gr_info->scalefac_compress]); 163 scalefac->s[window][sfb] = getNbits(pMainData, slen[1][gr_info->scalefac_compress]); 175 scalefac->s[window][sfb] = getNbits(pMainData, slen[i][gr_info->scalefac_compress]); 196 int32 tmp1 = slen[(i>>1)][gr_info->scalefac_compress];
|
/bionic/libc/upstream-freebsd/lib/libc/stdlib/ |
realpath.c | 57 int m, slen; local 195 slen = readlink(resolved, symlink, sizeof(symlink) - 1); 196 if (slen < 0) { 201 symlink[slen] = '\0'; 219 if (symlink[slen - 1] != '/') { 220 if (slen + 1 >= sizeof(symlink)) { 226 symlink[slen] = '/'; 227 symlink[slen + 1] = 0;
|
/system/core/toolbox/ |
dynarray.c | 69 void strlist_append_b( strlist_t *list, const void* str, size_t slen ) 71 char *copy = malloc(slen+1); 72 memcpy(copy, str, slen); 73 copy[slen] = '\0';
|
/bionic/libc/upstream-freebsd/lib/libc/stdio/ |
mktemp.c | 56 mkstemps(char *path, int slen) 60 return (_gettemp(path, &fd, 0, slen) ? fd : -1); 93 _gettemp(char *path, int *doopen, int domkdir, int slen) 102 if ((doopen != NULL && domkdir) || slen < 0) { 113 trv -= slen;
|
/packages/apps/UnifiedEmail/src/com/android/mail/lib/base/ |
CharEscaper.java | 120 int slen = s.length(); 130 for (; index < slen; index++) { 145 destSize = sizeNeeded + (slen - index) + DEST_PAD; 164 int charsLeft = slen - lastEscape; 172 s.getChars(lastEscape, slen, dest, destIndex);
|
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/base/ |
CharEscaper.java | 121 int slen = s.length(); 131 for (; index < slen; index++) { 146 destSize = sizeNeeded + (slen - index) + DEST_PAD; 165 int charsLeft = slen - lastEscape; 173 s.getChars(lastEscape, slen, dest, destIndex);
|
/external/chromium_org/third_party/openssl/openssl/crypto/asn1/ |
asn1_mac.h | 111 c.slen = length; 125 (((c.inf&1) == 0)?(c.slen <= 0): \ 126 (c.eos=ASN1_const_check_infinite_end(&c.p,c.slen))) 131 if (func(&(b),&c.p,c.slen) == NULL) \ 133 c.slen-=(c.p-c.q); 138 if (((D2I_OF(type))func)(&(b),&c.p,c.slen) == NULL) \ 140 c.slen-=(c.p-c.q); 145 if (func(&(b),&c.p,c.slen) < 0) \ 147 c.slen-=(c.p-c.q); 150 if ((c.slen != 0) && ((M_ASN1_next & (~V_ASN1_CONSTRUCTED)) [all...] |
/external/chromium_org/third_party/openssl/openssl/include/openssl/ |
asn1_mac.h | 111 c.slen = length; 125 (((c.inf&1) == 0)?(c.slen <= 0): \ 126 (c.eos=ASN1_const_check_infinite_end(&c.p,c.slen))) 131 if (func(&(b),&c.p,c.slen) == NULL) \ 133 c.slen-=(c.p-c.q); 138 if (((D2I_OF(type))func)(&(b),&c.p,c.slen) == NULL) \ 140 c.slen-=(c.p-c.q); 145 if (func(&(b),&c.p,c.slen) < 0) \ 147 c.slen-=(c.p-c.q); 150 if ((c.slen != 0) && ((M_ASN1_next & (~V_ASN1_CONSTRUCTED)) [all...] |
/external/openssl/crypto/asn1/ |
asn1_mac.h | 111 c.slen = length; 125 (((c.inf&1) == 0)?(c.slen <= 0): \ 126 (c.eos=ASN1_const_check_infinite_end(&c.p,c.slen))) 131 if (func(&(b),&c.p,c.slen) == NULL) \ 133 c.slen-=(c.p-c.q); 138 if (((D2I_OF(type))func)(&(b),&c.p,c.slen) == NULL) \ 140 c.slen-=(c.p-c.q); 145 if (func(&(b),&c.p,c.slen) < 0) \ 147 c.slen-=(c.p-c.q); 150 if ((c.slen != 0) && ((M_ASN1_next & (~V_ASN1_CONSTRUCTED)) [all...] |
/external/openssl/include/openssl/ |
asn1_mac.h | 111 c.slen = length; 125 (((c.inf&1) == 0)?(c.slen <= 0): \ 126 (c.eos=ASN1_const_check_infinite_end(&c.p,c.slen))) 131 if (func(&(b),&c.p,c.slen) == NULL) \ 133 c.slen-=(c.p-c.q); 138 if (((D2I_OF(type))func)(&(b),&c.p,c.slen) == NULL) \ 140 c.slen-=(c.p-c.q); 145 if (func(&(b),&c.p,c.slen) < 0) \ 147 c.slen-=(c.p-c.q); 150 if ((c.slen != 0) && ((M_ASN1_next & (~V_ASN1_CONSTRUCTED)) [all...] |
/external/openssh/ |
ssh-rsa.c | 46 u_int slen, dlen, len; local 64 slen = RSA_size(key->rsa); 65 sig = xmalloc(slen); 78 if (len < slen) { 79 u_int diff = slen - len; 80 debug("slen %u > len %u", slen, len); 83 } else if (len > slen) { 84 error("ssh_rsa_sign: slen %u slen2 %u", slen, len) [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ |
StringIO.py | 219 slen = self.len 220 if spos == slen: 224 if spos > slen: 225 self.buflist.append('\0'*(spos - slen)) 226 slen = spos 228 if spos < slen: 233 if newpos > slen: 234 slen = newpos 237 slen = newpos 238 self.len = slen [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/ |
StringIO.py | 219 slen = self.len 220 if spos == slen: 224 if spos > slen: 225 self.buflist.append('\0'*(spos - slen)) 226 slen = spos 228 if spos < slen: 233 if newpos > slen: 234 slen = newpos 237 slen = newpos 238 self.len = slen [all...] |
/bionic/libc/include/ |
string.h | 220 size_t slen = __builtin_strlen(s); local 221 if (__builtin_constant_p(slen)) { 222 return slen; 241 size_t slen = __builtin_strlen(s); local 242 if (__builtin_constant_p(slen) && (slen < bos)) { 262 size_t slen = __builtin_strlen(s); local 263 if (__builtin_constant_p(slen) && (slen < bos)) {
|
/external/chromium_org/courgette/third_party/ |
bsdiff.h | 82 uint32 slen; // Length of the file to be patched. member in struct:courgette::MBSPatchHeader_
|
/external/iputils/ninfod/ |
ninfod_name.c | 209 static int compare_dnsname(const char *s, size_t slen, 214 if (slen < 1 || nlen < 1) 217 if (slen == nlen && memcmp(s, n, slen) == 0) 219 if (*(s0 + slen - 1) || *(n0 + nlen - 1)) 221 while (s < s0 + slen && n < n0 + nlen) { 224 if (s + *s + 1 > s0 + slen || n + *n + 1 > n0 + nlen) 227 if (s == s0 + slen - 1) 229 else if (s + 1 == s0 + slen - 1)
|
/external/wpa_supplicant_8/src/p2p/ |
p2p_sd.c | 278 u16 slen; local 308 slen = *pos++; 309 next = pos + slen; 310 if (next > end || slen < 2) { 326 slen = WPA_GET_LE16(pos); 328 if (pos + slen > end) 330 end = pos + slen; 341 slen = WPA_GET_LE16(pos); 343 if (pos + slen > end || slen < 3 + 1) 430 u16 slen; local [all...] |