Home
last modified time | relevance | path

Searched refs:jstr (Results 1 – 4 of 4) sorted by relevance

/dalvik/vm/
DUtfString.h103 char* dvmCreateCstrFromString(StringObject* jstr);
109 void dvmCreateCstrFromStringRegion(StringObject* jstr, int start, int len,
116 int dvmStringUtf8ByteLen(StringObject* jstr);
121 int dvmStringLen(StringObject* jstr);
126 ArrayObject* dvmStringCharArray(StringObject* jstr);
131 const u2* dvmStringChars(StringObject* jstr);
DUtfString.c387 char* dvmCreateCstrFromString(StringObject* jstr) in dvmCreateCstrFromString() argument
396 if (jstr == NULL) in dvmCreateCstrFromString()
399 len = dvmGetFieldInt((Object*) jstr, STRING_FIELDOFF_COUNT); in dvmCreateCstrFromString()
400 offset = dvmGetFieldInt((Object*) jstr, STRING_FIELDOFF_OFFSET); in dvmCreateCstrFromString()
401 chars = (ArrayObject*) dvmGetFieldObject((Object*) jstr, in dvmCreateCstrFromString()
419 void dvmCreateCstrFromStringRegion(StringObject* jstr, int start, int len, in dvmCreateCstrFromStringRegion() argument
424 data = dvmStringChars(jstr) + start; in dvmCreateCstrFromStringRegion()
433 int dvmStringUtf8ByteLen(StringObject* jstr) in dvmStringUtf8ByteLen() argument
441 if (jstr == NULL) in dvmStringUtf8ByteLen()
444 len = dvmGetFieldInt((Object*) jstr, STRING_FIELDOFF_COUNT); in dvmStringUtf8ByteLen()
[all …]
DJni.c2956 StringObject* jstr = dvmCreateStringFromUnicode(unicodeChars, len); in NewString() local
2957 if (jstr == NULL) { in NewString()
2960 dvmReleaseTrackedAlloc((Object*) jstr, NULL); in NewString()
2961 retval = addLocalReference(env, (Object*) jstr); in NewString()
2971 static jsize GetStringLength(JNIEnv* env, jstring jstr) in GetStringLength() argument
2975 StringObject* strObj = (StringObject*) dvmDecodeIndirectRef(env, jstr); in GetStringLength()
2989 static const jchar* GetStringChars(JNIEnv* env, jstring jstr, jboolean* isCopy) in GetStringChars() argument
2993 StringObject* strObj = (StringObject*) dvmDecodeIndirectRef(env, jstr); in GetStringChars()
3009 static void ReleaseStringChars(JNIEnv* env, jstring jstr, const jchar* chars) in ReleaseStringChars() argument
3012 StringObject* strObj = (StringObject*) dvmDecodeIndirectRef(env, jstr); in ReleaseStringChars()
[all …]
DCheckJni.c565 static void checkString(JNIEnv* env, jstring jstr, const char* func) in checkString() argument
570 Object* obj = dvmDecodeIndirectRef(env, jstr); in checkString()
584 jstr, func); in checkString()
586 LOGW("JNI WARNING: jstring %p is bogus (%s)\n", jstr, func); in checkString()
594 checkObject(env, jstr, func); in checkString()