Searched refs:len (Results 1 - 25 of 63) sorted by relevance

123

/dalvik/vm/alloc/TEST/HeapBitmapTest/include/cutils/
H A Dashmem.h9 ashmem_create_region(const char *name, size_t len) argument
/dalvik/libdex/
H A Dsha1.h17 unsigned long len);
H A DCmdUtils.c111 int len = strlen(fileName); local
116 if (len < 5) {
125 if (strcasecmp(fileName + len -3, "dex") != 0) {
/dalvik/vm/
H A DUtfString.c150 int ic, len = 0; local
153 len++;
164 return len;
180 static int utf16_utf8ByteLen(const u2* utf16Str, int len) argument
184 while (len--) {
205 * not just "len".
207 static void convertUtf16ToUtf8(char* utf8Str, const u2* utf16Str, int len) argument
209 assert(len >= 0);
211 while (len--) {
237 static inline u4 dvmComputeUtf16Hash(const u2* utf16Str, int len) argument
249 int offset, len; local
332 dvmCreateStringFromUnicode(const u2* unichars, int len) argument
391 int len, byteLen, offset; local
419 dvmCreateCstrFromStringRegion(StringObject* jstr, int start, int len, char* buf) argument
436 int len, offset; local
[all...]
H A DUtfString.h95 StringObject* dvmCreateStringFromUnicode(const u2* unichars, int len);
109 void dvmCreateCstrFromStringRegion(StringObject* jstr, int start, int len,
H A DLinearAlloc.c348 int cc, start, len; local
352 len = (lastWriteOff - firstWriteOff) + SYSTEM_PAGE_SIZE;
354 LOGVV("--- calling mprotect(start=%d len=%d RW)\n", 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 DNative.c246 * (Should we have this take buffer+len and avoid the alloc? It gets
252 int len; local
254 len = snprintf(buf, sizeof(buf), OS_SHARED_LIB_FORMAT_STR, libName);
255 if (len >= (int) sizeof(buf))
581 static char* mangleString(const char* str, int len) argument
587 //LOGI("mangling '%s' %d\n", str, len);
589 assert(str[len] == '\0');
698 int len; local
711 createJniNameString(meth->clazz->descriptor, meth->name, &len);
715 mangleCM = mangleString(preMangleCM, len);
769 size_t len = strlen(buf); local
[all...]
/dalvik/dx/src/com/android/dx/rop/code/
H A DRegisterSpecSet.java63 int len = specs.length;
65 if ((len != otherSpecs.length) || (size() != otherSet.size())) {
69 for (int i = 0; i < len; i++) {
88 int len = specs.length;
91 for (int i = 0; i < len; i++) {
103 int len = specs.length;
104 StringBuffer sb = new StringBuffer(len * 25);
109 for (int i = 0; i < len; i++) {
145 int len = specs.length;
148 for (int i = 0; i < len;
[all...]
/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--;
H A DBits.java114 int len = bits.length;
116 for (int i = 0; i < len; i++) {
132 int len = bits.length;
135 for (int i = 0; i < len; i++) {
167 int len = bits.length;
170 for (int arrayIdx = idx >> 5; arrayIdx < len; arrayIdx++) {
H A DHexParser.java45 int len = src.length();
46 byte[] result = new byte[len / 2];
50 while (at < len) {
53 nlAt = len;
H A DFixedSizeList.java250 int len = arr.length;
251 StringBuffer sb = new StringBuffer(len * 10 + 10);
257 for (int i = 0; i < len; i++) {
H A DTwoColumnOutput.java235 int len = buf.length();
237 if ((len != 0) && (buf.charAt(len - 1) != '\n')) {
/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/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/vm/mterp/
H A Dgen-mterp.py55 if len(tokens) != 2:
77 if len(tokens) != 2:
94 if len(tokens) != 2:
111 if len(tokens) != 2:
124 if len(tokens) != 3:
143 if len(tokens) != 1:
167 if len(opcodes) != 256:
169 % len(opcodes)
179 assert len(opcodes) == 256
198 if len(asm_stub_tex
[all...]
/dalvik/vm/compiler/template/
H A 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:
177 for i in xrange(len(opcodes)):
252 if len(tokens) < 2:
261 if len(tokens) == 3:
270 if len(token
[all...]
/dalvik/dx/src/com/android/dx/rop/cst/
H A DCstUtf8.java47 int len = string.length();
48 byte[] bytes = new byte[len * 3]; // Avoid having to reallocate.
51 for (int i = 0; i < len; i++) {
245 int len = string.length();
246 StringBuilder sb = new StringBuilder(len * 3 / 2);
248 for (int i = 0; i < len; i++) {
268 (i < (len - 1)) ? string.charAt(i + 1) : 0;
/dalvik/dx/src/com/android/dx/command/
H A DMain.java166 int len = orig.length - 1;
167 String[] newa = new String[len];
169 System.arraycopy(orig, n + 1, newa, n, len - n);
/dalvik/vm/native/
H A Djava_lang_VMClassLoader.c26 * byte[] data, int offset, int len, ProtectionDomain pd)
38 int len = args[4]; local
44 loader, name, data, offset, len, pd);
54 * int len, ProtectionDomain pd)
66 int len = args[3]; local
70 loader, data, offset, len, pd);
H A DInternalNative.c174 int len = strlen(name); local
184 if (name[len-1] != ';')
187 if (i != len-1)
195 for ( ; i < len; i++) {
/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/dx/src/com/android/dx/command/dump/
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/tools/
H A Ddeadcode.py90 start = match + len(method)
97 if len(sys.argv) is not 2 or not sys.argv[1].endswith(".jar"):
/dalvik/libnativehelper/include/nativehelper/
H A Djni.h842 jstring NewString(const jchar* unicodeChars, jsize len) argument
843 { return functions->NewString(this, unicodeChars, len); }
939 void GetBooleanArrayRegion(jbooleanArray array, jsize start, jsize len, argument
941 { functions->GetBooleanArrayRegion(this, array, start, len, buf); }
942 void GetByteArrayRegion(jbyteArray array, jsize start, jsize len, argument
944 { functions->GetByteArrayRegion(this, array, start, len, buf); }
945 void GetCharArrayRegion(jcharArray array, jsize start, jsize len, argument
947 { functions->GetCharArrayRegion(this, array, start, len, buf); }
948 void GetShortArrayRegion(jshortArray array, jsize start, jsize len, argument
950 { functions->GetShortArrayRegion(this, array, start, len, bu
951 GetIntArrayRegion(jintArray array, jsize start, jsize len, jint* buf) argument
954 GetLongArrayRegion(jlongArray array, jsize start, jsize len, jlong* buf) argument
957 GetFloatArrayRegion(jfloatArray array, jsize start, jsize len, jfloat* buf) argument
960 GetDoubleArrayRegion(jdoubleArray array, jsize start, jsize len, jdouble* buf) argument
964 SetBooleanArrayRegion(jbooleanArray array, jsize start, jsize len, const jboolean* buf) argument
967 SetByteArrayRegion(jbyteArray array, jsize start, jsize len, const jbyte* buf) argument
970 SetCharArrayRegion(jcharArray array, jsize start, jsize len, const jchar* buf) argument
973 SetShortArrayRegion(jshortArray array, jsize start, jsize len, const jshort* buf) argument
976 SetIntArrayRegion(jintArray array, jsize start, jsize len, const jint* buf) argument
979 SetLongArrayRegion(jlongArray array, jsize start, jsize len, const jlong* buf) argument
982 SetFloatArrayRegion(jfloatArray array, jsize start, jsize len, const jfloat* buf) argument
985 SetDoubleArrayRegion(jdoubleArray array, jsize start, jsize len, const jdouble* buf) argument
1005 GetStringRegion(jstring str, jsize start, jsize len, jchar* buf) argument
1008 GetStringUTFRegion(jstring str, jsize start, jsize len, char* buf) argument
[all...]

Completed in 279 milliseconds

123