/dalvik/libcore/nio/src/main/java/java/nio/ |
ReadWriteLongArrayBuffer.java | 113 public LongBuffer put(long[] src, int off, int len) { 115 if (off < 0 || len < 0 || (long) off + (long) len > length) { 118 if (len > remaining()) { 121 System.arraycopy(src, off, backingArray, offset + position, len); 122 position += len;
|
ReadWriteShortArrayBuffer.java | 116 public ShortBuffer put(short[] src, int off, int len) { 118 if (off < 0 || len < 0 || (long) off + (long) len > length) { 121 if (len > remaining()) { 124 System.arraycopy(src, off, backingArray, offset + position, len); 125 position += len;
|
ShortArrayBuffer.java | 69 public final ShortBuffer get(short[] dest, int off, int len) { 71 if (off < 0 || len < 0 || (long) off + (long) len > length) { 74 if (len > remaining()) { 77 System.arraycopy(backingArray, offset + position, dest, off, len); 78 position += len;
|
/dalvik/libcore/support/src/test/java/org/apache/harmony/security/tests/support/interfaces/ |
DSAKeyPairGeneratorImpl.java | 61 int len = 512; local 62 while (len <= 1024) { 63 if (len == modlen) { 67 len = len + 8; 68 if (len == 1032) {
|
/dalvik/libcore/x-net/src/main/java/org/apache/harmony/xnet/provider/jsse/ |
SSLEngineAppData.java | 63 int len = buffer.length; local 69 if (len - pos < rem) { 71 dsts[i].put(buffer, pos, len - pos); 72 pos = len; 80 if (pos != len) { 92 return len;
|
SSLEngineDataStream.java | 69 int len = (length < available) ? length : available; local 70 available -= len; 71 consumed += len; 72 byte[] res = new byte[len]; 78 len --; 79 if (len == 0) {
|
/external/bison/lib/ |
basename.c | 73 size_t len; local 75 for (len = strlen (name); 1 < len && ISSLASH (name[len - 1]); len--) 78 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;
|
/external/dropbear/ |
buffer.h | 34 unsigned int len; /* the used size */ member in struct:buf 47 void buf_setlen(buffer* buf, unsigned int len); 55 unsigned char* buf_getptr(buffer* buf, unsigned int len); 56 unsigned char* buf_getwriteptr(buffer* buf, unsigned int len); 60 void buf_putstring(buffer* buf, const unsigned char* str, unsigned int len); 61 void buf_putbytes(buffer *buf, const unsigned char *bytes, unsigned int len);
|
cli-service.c | 52 unsigned int len; local 56 servicename = buf_getstring(ses.payload, &len); 60 && len == SSH_SERVICE_USERAUTH_LEN 61 && strncmp(SSH_SERVICE_USERAUTH, servicename, len) == 0) { 71 && len == SSH_SERVICE_CONNECTION_LEN 72 && strncmp(SSH_SERVICE_CONNECTION, servicename, len) == 0) {
|
/external/dropbear/libtomcrypt/src/encauth/eax/ |
eax_done.c | 31 unsigned long x, len; local 52 len = MAXBLOCKSIZE; 53 if ((err = omac_done(&eax->ctomac, ctmac, &len)) != CRYPT_OK) { 59 /* note we specifically don't reset len so the two lens are minimal */ 61 if ((err = omac_done(&eax->headeromac, headermac, &len)) != CRYPT_OK) { 71 for (x = 0; x < len && x < *taglen; x++) {
|
/external/dropbear/libtomcrypt/src/modes/cbc/ |
cbc_decrypt.c | 25 @param len The number of bytes to process (must be multiple of block length) 29 int cbc_decrypt(const unsigned char *ct, unsigned char *pt, unsigned long len, symmetric_CBC *cbc) 52 if (len % cbc->blocklen) { 62 return cipher_descriptor[cbc->cipher].accel_cbc_decrypt(ct, pt, len / cbc->blocklen, cbc->IV, &cbc->key); 64 while (len) { 87 len -= cbc->blocklen;
|
cbc_encrypt.c | 25 @param len The number of bytes to process (must be multiple of block length) 29 int cbc_encrypt(const unsigned char *pt, unsigned char *ct, unsigned long len, symmetric_CBC *cbc) 46 if (len % cbc->blocklen) { 56 return cipher_descriptor[cbc->cipher].accel_cbc_encrypt(pt, ct, len / cbc->blocklen, cbc->IV, &cbc->key); 58 while (len) { 88 len -= cbc->blocklen;
|
/external/dropbear/libtomcrypt/src/pk/asn1/der/utf8/ |
der_decode_utf8_string.c | 33 unsigned long x, y, z, len; local 59 len = 0; 62 len = (len << 8) | in[x++]; 65 len = in[x++] & 0x7F; 68 if (len + x > inlen) {
|
/external/icu4c/common/ |
uscript.c | 35 int32_t len=0; local 57 len =0; 59 const UChar* name = ures_getNextString(resD,&len,NULL,&localErrorCode); 62 u_UCharsToChars(name,cName,len); 72 return len; 93 return len;
|
/external/iproute2/ip/ |
ipprefix.c | 40 int len = n->nlmsg_len; local 50 len -= NLMSG_LENGTH(sizeof(*prefix)); 51 if (len < 0) { 52 fprintf(stderr, "BUG: wrong nlmsg len %d\n", len); 70 parse_rtattr(tb, RTA_MAX, RTM_RTA(prefix), len);
|
/external/opencore/oscl/oscl/osclio/src/ |
oscl_socket_stats.cpp | 109 int32 len = 0; local 113 if (PV_SOCKET_STR_LEN - len <= 0) 118 len += oscl_snprintf(iLogStr + len, PV_SOCKET_STR_LEN - len, "%s (n=%d) %d " 126 len += oscl_snprintf(iLogStr + len, PV_SOCKET_STR_LEN - len, "%s %d " 140 int32 len = 0; local 145 if (PV_SOCKET_STR_LEN - len <= 0 184 int32 len = 0; local [all...] |
/external/openssl/crypto/evp/ |
openbsd_hw.c | 169 cryp.len=inl; 178 memcpy(lb,&in[cryp.len-ctx->cipher->iv_len],ctx->cipher->iv_len); 204 cryp.len=cinl; 231 memcpy(ctx->iv,&out[cryp.len-ctx->cipher->iv_len],ctx->cipher->iv_len); 278 int len; 287 md_data->len=0; 316 static int do_digest(int ses,unsigned char *md,const void *data,int len) 326 if(!len) 335 cryp.len=len; [all...] |
/external/openssl/crypto/x509/ |
x509name.c | 67 int X509_NAME_get_text_by_NID(X509_NAME *name, int nid, char *buf, int len) 73 return(X509_NAME_get_text_by_OBJ(name,obj,buf,len)); 77 int len) 85 i=(data->length > (len-1))?(len-1):data->length; 175 unsigned char *bytes, int len, int loc, int set) 179 ne = X509_NAME_ENTRY_create_by_OBJ(NULL, obj, type, bytes, len); 187 unsigned char *bytes, int len, int loc, int set) 191 ne = X509_NAME_ENTRY_create_by_NID(NULL, nid, type, bytes, len); 199 const unsigned char *bytes, int len, int loc, int set [all...] |
/external/oprofile/libop/ |
op_mangle.c | 41 size_t len; local 53 len = strlen(op_samples_current_dir) + strlen(dep_name) + 1 57 len += strlen(cg_image_name) + 1; 60 len += strlen(anon_name); 65 len += 256; 67 mangled = xmalloc(len);
|
/external/skia/src/gl/ |
SkGLDevice_SWLayer.cpp | 59 void SkGLDevice_SWLayer::drawText(const SkDraw& draw, const void* text, size_t len, 61 draw.drawText((const char*)text, len, x, y, paint); 64 void SkGLDevice_SWLayer::drawPosText(const SkDraw& draw, const void* text, size_t len, 67 draw.drawPosText((const char*)text, len, xpos, y, scalarsPerPos, paint); 71 size_t len, const SkPath& path, 74 draw.drawTextOnPath((const char*)text, len, path, matrix, paint);
|
/external/srec/shared/src/ |
CommandLine.c | 23 LCHAR* key, LCHAR* value, size_t* len) 41 if (LSTRLEN(*argv) + 1 > *len) 43 *len = LSTRLEN(*argv) + 1; 46 *len = LSTRLEN(*argv) + 1; 57 *len = 1; 68 *len = 1;
|
/external/tcpdump/ |
print-rt6.c | 49 int i, len; local 53 len = dp->ip6r_len; 60 printf("srcrt (len=%d", dp->ip6r_len); /*)*/ 81 if (len % 2 == 1) 83 len >>= 1; 85 for (i = 0; i < len; i++) {
|
/external/webkit/WebCore/platform/text/ |
TextBoundaries.cpp | 39 int findNextWordFromIndex(const UChar* chars, int len, int position, bool forward) 41 TextBreakIterator* it = wordBreakIterator(chars, len); 48 if (position < len && isAlphanumeric(chars[position - 1])) 54 return len; 70 void findWordBoundary(const UChar* chars, int len, int position, int* start, int* end) 72 TextBreakIterator* it = wordBreakIterator(chars, len);
|
/external/webkit/WebCore/platform/text/mac/ |
TextBoundaries.mm | 33 void findWordBoundary(const UChar* chars, int len, int position, int* start, int* end) 36 length:len freeWhenDone:NO]; 38 NSRange range = [attr doubleClickAtIndex:(position >= len) ? len - 1 : position]; 45 int findNextWordFromIndex(const UChar* chars, int len, int position, bool forward) 48 length:len freeWhenDone:NO];
|