Home
last modified time | relevance | path

Searched refs:chars (Results 1 – 8 of 8) sorted by relevance

/dalvik/vm/
DUtfString.c247 ArrayObject* chars = (ArrayObject*) dvmGetFieldObject((Object*) strObj, in dvmComputeStringHash() local
254 return dvmComputeUtf16Hash((u2*) chars->contents + offset, len); in dvmComputeStringHash()
282 ArrayObject* chars; in dvmCreateStringFromCstrAndLength() local
305 chars = dvmAllocPrimitiveArray('C', utf16Length, ALLOC_DEFAULT); in dvmCreateStringFromCstrAndLength()
306 if (chars == NULL) { in dvmCreateStringFromCstrAndLength()
310 dvmConvertUtf8ToUtf16((u2*)chars->contents, utf8Str); in dvmCreateStringFromCstrAndLength()
311 hashCode = dvmComputeUtf16Hash((u2*) chars->contents, utf16Length); in dvmCreateStringFromCstrAndLength()
314 (Object*)chars); in dvmCreateStringFromCstrAndLength()
315 dvmReleaseTrackedAlloc((Object*) chars, NULL); in dvmCreateStringFromCstrAndLength()
335 ArrayObject* chars; in dvmCreateStringFromUnicode() local
[all …]
DInlineNative.c131 ArrayObject* chars; in javaLangString_charAt() local
144 chars = (ArrayObject*) in javaLangString_charAt()
147 pResult->i = ((const u2*) chars->contents)[arg1 + offset]; in javaLangString_charAt()
433 const u2* chars = (const u2*) charArray->contents; in indexOfCommon() local
440 chars += offset; in indexOfCommon()
448 if (chars[start] == ch) in indexOfCommon()
454 const u2* ptr = chars + start; in indexOfCommon()
455 const u2* endPtr = chars + count; in indexOfCommon()
458 return (ptr-1) - chars; in indexOfCommon()
DDdm.c300 const u2* chars; in dvmDdmSendThreadNotification() local
308 chars = dvmStringChars(nameObj); in dvmDdmSendThreadNotification()
311 chars = NULL; in dvmDdmSendThreadNotification()
325 set2BE((u1*) (outChars++), *chars++); in dvmDdmSendThreadNotification()
346 const u2* chars = dvmStringChars(newName); in dvmDdmSendThreadNameChange() local
361 set2BE((u1*) (outChars++), *chars++); in dvmDdmSendThreadNameChange()
DCheckJni.c1978 const jchar* chars) in Check_ReleaseStringChars() argument
1982 CHECK_NON_NULL(env, chars); in Check_ReleaseStringChars()
1984 if (!checkGuardedCopy(chars, false)) { in Check_ReleaseStringChars()
1989 chars = (const jchar*) freeGuardedCopy((jchar*)chars); in Check_ReleaseStringChars()
1991 BASE_ENV(env)->ReleaseStringChars(env, string, chars); in Check_ReleaseStringChars()
DJni.c3009 static void ReleaseStringChars(JNIEnv* env, jstring jstr, const jchar* chars) in ReleaseStringChars() argument
/dalvik/tests/003-omnibus-opcodes/src/
DArray.java26 static void checkChars(char[] chars) { in checkChars() argument
27 assert(chars[0] == 40000); in checkChars()
28 assert(chars[1] == 40001); in checkChars()
29 assert(chars[2] == 40002); in checkChars()
30 assert(chars[3] == 40003); in checkChars()
31 assert(chars[4] == 40004); in checkChars()
/dalvik/dx/src/com/android/dx/rop/cst/
DCstUtf8.java81 char[] chars = new char[length]; // This is sized to avoid a realloc. in utf8BytesToString() local
154 chars[outAt] = out; in utf8BytesToString()
158 return new String(chars, 0, outAt); in utf8BytesToString()
/dalvik/libnativehelper/include/nativehelper/
Djni.h851 void ReleaseStringChars(jstring string, const jchar* chars) in ReleaseStringChars()
852 { functions->ReleaseStringChars(this, string, chars); } in ReleaseStringChars()