Home
last modified time | relevance | path

Searched refs:len (Results 1 – 25 of 86) sorted by relevance

1234

/dalvik/vm/
DUtfString.cpp109 size_t len = 0; in dvmUtf8Len() local
113 len++; in dvmUtf8Len()
124 return len; in dvmUtf8Len()
140 static int utf16_utf8ByteLen(const u2* utf16Str, int len) in utf16_utf8ByteLen() argument
144 while (len--) { in utf16_utf8ByteLen()
167 static void convertUtf16ToUtf8(char* utf8Str, const u2* utf16Str, int len) in convertUtf16ToUtf8() argument
169 assert(len >= 0); in convertUtf16ToUtf8()
171 while (len--) { in convertUtf16ToUtf8()
197 static inline u4 computeUtf16Hash(const u2* utf16Str, size_t len) in computeUtf16Hash() argument
201 while (len--) in computeUtf16Hash()
[all …]
DUtfString.h118 StringObject* dvmCreateStringFromUnicode(const u2* unichars, int len);
133 int start, int len, char* buf);
DDdm.cpp261 int type, len; in dvmDdmSendThreadNotification() local
283 len = stringLen*2 + sizeof(u4)*2; in dvmDdmSendThreadNotification()
296 len = 4; in dvmDdmSendThreadNotification()
301 dvmDbgDdmSendChunk(type, len, buf); in dvmDdmSendThreadNotification()
473 size_t len; in dvmDdmGetRecentAllocations() local
475 if (!dvmGenerateTrackedAllocationReport(&data, &len)) { in dvmDdmGetRecentAllocations()
481 ArrayObject* arrayObj = dvmAllocPrimitiveArray('B', len, ALLOC_DEFAULT); in dvmDdmGetRecentAllocations()
483 memcpy(arrayObj->contents, data, len); in dvmDdmGetRecentAllocations()
DLinearAlloc.cpp348 int cc, start, len; in dvmLinearAlloc() local
352 len = (lastWriteOff - firstWriteOff) + SYSTEM_PAGE_SIZE; in dvmLinearAlloc()
354 LOGVV("--- calling mprotect(start=%d len=%d RW)", start, len); in dvmLinearAlloc()
355 cc = mprotect(pHdr->mapAddr + start, len, PROT_READ | PROT_WRITE); in dvmLinearAlloc()
358 start, len, strerror(errno)); in dvmLinearAlloc()
400 int len = strlen(str); in dvmLinearStrdup() local
401 void* mem = dvmLinearAlloc(classLoader, len+1); in dvmLinearStrdup()
402 memcpy(mem, str, len+1); in dvmLinearStrdup()
462 u4 len = *pLen & LENGTHFLAG_MASK; in updatePages() local
466 lastPage = ((u1*)mem - (u1*)pHdr->mapAddr + (len-1)) / SYSTEM_PAGE_SIZE; in updatePages()
/dalvik/dx/src/com/android/dx/rop/code/
DRegisterSpecSet.java62 int len = specs.length; in equals() local
64 if ((len != otherSpecs.length) || (size() != otherSet.size())) { in equals()
68 for (int i = 0; i < len; i++) { in equals()
87 int len = specs.length; in hashCode() local
90 for (int i = 0; i < len; i++) { in hashCode()
102 int len = specs.length; in toString() local
103 StringBuffer sb = new StringBuffer(len * 25); in toString()
108 for (int i = 0; i < len; i++) { in toString()
144 int len = specs.length; in size() local
147 for (int i = 0; i < len; i++) { in size()
[all …]
/dalvik/dexgen/src/com/android/dexgen/rop/code/
DRegisterSpecSet.java63 int len = specs.length; in equals() local
65 if ((len != otherSpecs.length) || (size() != otherSet.size())) { in equals()
69 for (int i = 0; i < len; i++) { in equals()
88 int len = specs.length; in hashCode() local
91 for (int i = 0; i < len; i++) { in hashCode()
103 int len = specs.length; in toString() local
104 StringBuffer sb = new StringBuffer(len * 25); in toString()
109 for (int i = 0; i < len; i++) { in toString()
145 int len = specs.length; in size() local
148 for (int i = 0; i < len; i++) { in size()
[all …]
/dalvik/dx/src/com/android/dx/util/
DIndentingWriter.java139 public void write(char[] cbuf, int off, int len) throws IOException { in write() argument
141 while (len > 0) { in write()
144 len--; in write()
151 public void write(String str, int off, int len) throws IOException { in write() argument
153 while (len > 0) { in write()
156 len--; in write()
DBits.java114 int len = bits.length; in isEmpty() local
116 for (int i = 0; i < len; i++) { in isEmpty()
132 int len = bits.length; in bitCount() local
135 for (int i = 0; i < len; i++) { in bitCount()
167 int len = bits.length; in findFirst() local
170 for (int arrayIdx = idx >> 5; arrayIdx < len; arrayIdx++) { in findFirst()
DHexParser.java45 int len = src.length(); in parse() local
46 byte[] result = new byte[len / 2]; in parse()
50 while (at < len) { in parse()
53 nlAt = len; in parse()
/dalvik/dexgen/src/com/android/dexgen/util/
DIndentingWriter.java139 public void write(char[] cbuf, int off, int len) throws IOException { in write() argument
141 while (len > 0) { in write()
144 len--; in write()
151 public void write(String str, int off, int len) throws IOException { in write() argument
153 while (len > 0) { in write()
156 len--; in write()
DBits.java114 int len = bits.length; in isEmpty() local
116 for (int i = 0; i < len; i++) { in isEmpty()
132 int len = bits.length; in bitCount() local
135 for (int i = 0; i < len; i++) { in bitCount()
167 int len = bits.length; in findFirst() local
170 for (int arrayIdx = idx >> 5; arrayIdx < len; arrayIdx++) { in findFirst()
DHexParser.java45 int len = src.length(); in parse() local
46 byte[] result = new byte[len / 2]; in parse()
50 while (at < len) { in parse()
53 nlAt = len; in parse()
DFixedSizeList.java250 int len = arr.length; in toString0() local
251 StringBuffer sb = new StringBuffer(len * 10 + 10); in toString0()
257 for (int i = 0; i < len; i++) { in toString0()
/dalvik/tools/hprof-conv/
DHprofConv.c322 static int computeClassDumpLen(const unsigned char* origBuf, int len) in computeClassDumpLen() argument
330 len -= blockLen; in computeClassDumpLen()
332 if (len < 0) in computeClassDumpLen()
337 len -= 2; in computeClassDumpLen()
351 len -= 2 + 1 + basicLen; in computeClassDumpLen()
352 if (len < 0) in computeClassDumpLen()
358 len -= 2; in computeClassDumpLen()
372 len -= kIdentSize + 1 + basicLen; in computeClassDumpLen()
373 if (len < 0) in computeClassDumpLen()
379 len -= 2; in computeClassDumpLen()
[all …]
/dalvik/vm/mterp/
Dgen-mterp.py61 if len(tokens) != 2:
77 if len(tokens) != 2:
99 if len(tokens) != 2:
118 if len(tokens) != 2:
136 if len(tokens) != 2:
148 if len(tokens) != 2:
161 if len(tokens) != 3:
181 if len(tokens) != 3:
214 if len(tokens) != 1:
231 if len(tokens) != 1:
[all …]
/dalvik/vm/compiler/template/
Dgen-template.py55 if len(tokens) != 2:
77 if len(tokens) != 2:
92 if len(tokens) != 2:
109 if len(tokens) != 2:
122 if len(tokens) != 3:
138 if len(tokens) != 1:
178 for i in xrange(len(opcodes)):
253 if len(tokens) < 2:
262 if len(tokens) == 3:
271 if len(tokens) < 2:
[all …]
/dalvik/tools/dmtracedump/
DCreateTestTrace.c86 char *strndup(const char *src, size_t len) in strndup() argument
88 char *dest = (char *) malloc(len + 1); in strndup()
89 strncpy(dest, src, len); in strndup()
90 dest[len] = 0; in strndup()
122 int len; in parseInputFile() local
223 len = cp - save_cp; in parseInputFile()
224 records[nextRecord].fullName = strndup(save_cp, len); in parseInputFile()
232 len = cp - save_cp; in parseInputFile()
233 if (len > 0) in parseInputFile()
234 records[nextRecord].className = strndup(save_cp, len); in parseInputFile()
[all …]
/dalvik/dexgen/src/com/android/dexgen/rop/cst/
DCstUtf8.java47 int len = string.length(); in stringToUtf8Bytes() local
48 byte[] bytes = new byte[len * 3]; // Avoid having to reallocate. in stringToUtf8Bytes()
51 for (int i = 0; i < len; i++) { in stringToUtf8Bytes()
245 int len = string.length(); in toHuman() local
246 StringBuilder sb = new StringBuilder(len * 3 / 2); in toHuman()
248 for (int i = 0; i < len; i++) { in toHuman()
268 (i < (len - 1)) ? string.charAt(i + 1) : 0; in toHuman()
/dalvik/dx/src/com/android/dx/rop/cst/
DCstString.java47 int len = string.length(); in stringToUtf8Bytes() local
48 byte[] bytes = new byte[len * 3]; // Avoid having to reallocate. in stringToUtf8Bytes()
51 for (int i = 0; i < len; i++) { in stringToUtf8Bytes()
245 int len = string.length(); in toHuman() local
246 StringBuilder sb = new StringBuilder(len * 3 / 2); in toHuman()
248 for (int i = 0; i < len; i++) { in toHuman()
268 (i < (len - 1)) ? string.charAt(i + 1) : 0; in toHuman()
/dalvik/vm/native/
Djava_lang_VMClassLoader.cpp38 int len = args[4]; in Dalvik_java_lang_VMClassLoader_defineClass() local
43 loader, name, data, offset, len); in Dalvik_java_lang_VMClassLoader_defineClass()
65 int len = args[3]; in Dalvik_java_lang_VMClassLoader_defineClass2() local
68 loader, data, offset, len); in Dalvik_java_lang_VMClassLoader_defineClass2()
/dalvik/dx/src/com/android/dx/command/dump/
DBaseDumper.java126 public void parsed(ByteArray bytes, int offset, int len, String human) { in parsed() argument
140 String hex = rawBytes ? hexDump(offset, len) : ""; in parsed()
142 at += len; in parsed()
263 protected final String hexDump(int offset, int len) { in hexDump() argument
264 return Hex.dump(bytes, offset, len, offset, hexCols, 4); in hexDump()
/dalvik/dx/src/com/android/dx/command/
DMain.java168 int len = orig.length - 1; in without() local
169 String[] newa = new String[len]; in without()
171 System.arraycopy(orig, n + 1, newa, n, len - n); in without()
/dalvik/vm/alloc/TEST/HeapBitmapTest/include/cutils/
Dashmem.h9 ashmem_create_region(const char *name, size_t len) in ashmem_create_region() argument
/dalvik/libdex/
DCmdUtils.cpp115 int len = strlen(fileName); in dexOpenAndMap() local
120 if (len < 5) { in dexOpenAndMap()
129 if (strcasecmp(fileName + len -3, "dex") != 0) { in dexOpenAndMap()
Dsha1.h17 unsigned long len);

1234