Searched defs:len (Results 1 - 25 of 37) sorted by relevance

12

/dalvik/vm/alloc/TEST/HeapBitmapTest/include/cutils/
H A Dashmem.h9 ashmem_create_region(const char *name, size_t len) argument
/dalvik/dexgen/src/com/android/dexgen/util/
H A DIndentingWriter.java139 public void write(char[] cbuf, int off, int len) throws IOException { argument
141 while (len > 0) {
144 len--;
151 public void write(String str, int off, int len) throws IOException { argument
153 while (len > 0) {
156 len--;
/dalvik/dx/src/com/android/dx/cf/iface/
H A DParseObserver.java64 * @param len number of bytes parsed
67 public void parsed(ByteArray bytes, int offset, int len, String human); argument
/dalvik/dx/src/com/android/dx/util/
H A DIndentingWriter.java139 public void write(char[] cbuf, int off, int len) throws IOException { argument
141 while (len > 0) {
144 len--;
151 public void write(String str, int off, int len) throws IOException { argument
153 while (len > 0) {
156 len--;
/dalvik/libdex/
H A DCmdUtils.cpp115 int len = strlen(fileName); local
120 if (len < 5) {
129 if (strcasecmp(fileName + len -3, "dex") != 0) {
H A DInstrUtils.cpp670 u4 len = insns[2] | (((u4)insns[3]) << 16); local
672 width = 4 + (elemWidth * len + 1) / 2;
H A Dsha1.cpp26 unsigned int len)
29 unsigned long len)
31 The 'len' parameter was declared an int which works fine on 32
34 function to generate incorrect values if len was greater than
35 8191 (8K - 1) due to the 'len << 3' on line 3 of SHA1Update().
216 unsigned long len) /* JHB */
221 if ((context->count[0] += len << 3) < (len << 3))
223 context->count[1] += (len >> 29);
224 if ((j + len) > 6
215 SHA1Update(SHA1_CTX* context, const unsigned char* data, unsigned long len) argument
[all...]
H A DZipArchive.cpp49 #define kLFHLen 30 // excluding variable-len fields
54 #define kCDELen 46 // excluding variable-len fields
92 static unsigned int computeHash(const char* str, int len) argument
96 while (len--)
/dalvik/dx/src/com/android/dx/command/dump/
H A DDotDumper.java93 public void parsed(ByteArray bytes, int offset, int len, String human) { argument
H A DBlockDumper.java137 public void parsed(ByteArray bytes, int offset, int len, String human) { argument
139 super.parsed(bytes, offset, len, human);
239 int len;
240 for (int j = start; j < end; j += len) {
241 len = code.parseInstruction(j, codeObserver);
H A DBaseDumper.java126 public void parsed(ByteArray bytes, int offset, int len, String human) { argument
140 String hex = rawBytes ? hexDump(offset, len) : "";
142 at += len;
260 * @param len length to dump
263 protected final String hexDump(int offset, int len) { argument
264 return Hex.dump(bytes, offset, len, offset, hexCols, 4);
/dalvik/vm/
H A DDvmDex.cpp144 int dvmDexFileOpenPartial(const void* addr, int len, DvmDex** ppDvmDex) argument
156 pDexFile = dexFileParse((u1*)addr, len, parseFlags);
H A DDdm.cpp78 ALOGW("WARNING: bad chunk found (len=%u pktLen=%d)", length, dataLen);
127 ALOGW("WARNING: chunk off=%d len=%d exceeds reply array len %d",
146 ALOGV("dvmHandleDdm returning type=%.4s buf=%p len=%d",
261 int type, len; local
283 len = stringLen*2 + sizeof(u4)*2;
296 len = 4;
301 dvmDbgDdmSendChunk(type, len, buf);
340 * (1b) header len
473 size_t len; local
[all...]
H A DLinearAlloc.cpp348 int cc, start, len; local
352 len = (lastWriteOff - firstWriteOff) + SYSTEM_PAGE_SIZE;
354 LOGVV("--- calling mprotect(start=%d len=%d RW)", start, len);
355 cc = mprotect(pHdr->mapAddr + start, len, PROT_READ | PROT_WRITE);
358 start, len, strerror(errno));
400 int len = strlen(str); local
401 void* mem = dvmLinearAlloc(classLoader, len+1);
402 memcpy(mem, str, len+1);
462 u4 len local
[all...]
H A DUtfString.cpp109 size_t len = 0; local
113 len++;
124 return len;
140 static int utf16_utf8ByteLen(const u2* utf16Str, int len) argument
144 while (len--) {
165 * not just "len".
167 static void convertUtf16ToUtf8(char* utf8Str, const u2* utf16Str, int len) argument
169 assert(len >= 0);
171 while (len--) {
197 static inline u4 computeUtf16Hash(const u2* utf16Str, size_t len) argument
212 int len = dvmGetFieldInt(strObj, STRING_FIELDOFF_COUNT); local
260 dvmCreateStringFromUnicode(const u2* unichars, int len) argument
291 int len = dvmGetFieldInt(jstr, STRING_FIELDOFF_COUNT); local
308 dvmGetStringUtfRegion(const StringObject* jstr, int start, int len, char* buf) argument
319 int len = dvmGetFieldInt(this, STRING_FIELDOFF_COUNT); local
[all...]
H A DInit.cpp487 int len = strlen(pCtrl->pkgOrClass); local
488 if (len >= 3 && strcmp(pCtrl->pkgOrClass + len-3, "///") == 0) {
491 *(pCtrl->pkgOrClass + len-2) = '\0';
492 pCtrl->pkgOrClassLen = len - 2;
496 pCtrl->pkgOrClassLen = len;
H A DNative.cpp245 * (Should we have this take buffer+len and avoid the alloc? It gets
251 int len; local
253 len = snprintf(buf, sizeof(buf), OS_SHARED_LIB_FORMAT_STR, libName);
254 if (len >= (int) sizeof(buf))
584 static char* mangleString(const char* str, int len) argument
586 //ALOGI("mangling '%s' %d", str, len);
588 assert(str[len] == '\0');
696 int len; local
709 createJniNameString(meth->clazz->descriptor, meth->name, &len);
713 mangleCM = mangleString(preMangleCM, len);
[all...]
H A DSync.cpp254 static char *logWriteString(char *dst, const char *value, size_t len) argument
257 len = len < 32 ? len : 32;
258 set4LE((u1 *)dst, len);
260 memcpy(dst, value, len);
261 return dst + len;
276 size_t len;
291 len = strlen(procName);
292 cp = logWriteString(cp, procName, len);
[all...]
H A DThread.cpp1191 int len = s - threadName; local
1192 if (len < 15 || hasAt || !hasDot) {
1195 s = threadName + len - 15;
3147 size_t len;
3166 len = strlen(grp);
3167 grp[len-1] = '\0'; /* Drop the trailing '\n' */
3169 if (bufLen <= len) {
3170 len = bufLen - 1;
3172 strncpy(buf, grp, len);
3173 buf[len]
[all...]
/dalvik/vm/native/
H A Djava_lang_VMClassLoader.cpp26 * byte[] data, int offset, int len)
38 int len = args[4]; local
43 loader, name, data, offset, len);
53 * int len)
65 int len = args[3]; local
68 loader, data, offset, len);
H A Ddalvik_system_DexFile.cpp27 size_t len = strlen(name); local
29 return (len >= 5)
30 && (name[len - 5] != '/')
31 && (strcmp(&name[len - 4], ".dex") == 0);
/dalvik/tools/dmtracedump/
H A DCreateTestTrace.c86 char *strndup(const char *src, size_t len) argument
88 char *dest = (char *) malloc(len + 1);
89 strncpy(dest, src, len);
90 dest[len] = 0;
122 int len; local
223 len = cp - save_cp;
224 records[nextRecord].fullName = strndup(save_cp, len);
232 len = cp - save_cp;
233 if (len > 0)
234 records[nextRecord].className = strndup(save_cp, len);
478 int len; local
[all...]
/dalvik/vm/compiler/
H A DDataflow.cpp1072 int len = strlen(buffer); local
1074 if (snprintf(buffer + len, 250 - len, "s%d(v%d_%d) ",
1076 DECODE_SUB(ssa2DalvikValue)) >= (250 - len)) {
/dalvik/tools/hprof-conv/
H A DHprofConv.c322 static int computeClassDumpLen(const unsigned char* origBuf, int len) argument
330 len -= blockLen;
332 if (len < 0)
337 len -= 2;
351 len -= 2 + 1 + basicLen;
352 if (len < 0)
358 len -= 2;
372 len -= kIdentSize + 1 + basicLen;
373 if (len < 0)
379 len
395 computeInstanceDumpLen(const unsigned char* origBuf, int len) argument
404 computeObjectArrayDumpLen(const unsigned char* origBuf, int len) argument
413 computePrimitiveArrayDumpLen(const unsigned char* origBuf, int len) argument
431 int len = ebGetLength(pBuf); local
[all...]
/dalvik/vm/reflect/
H A DProxy.cpp577 size_t len = exceptionArray->length; local
578 for (size_t i = 0; i < len - 1; i++) {
581 for (size_t j = i + 1; j < len; j++) {

Completed in 1998 milliseconds

12