/external/chromium/android/jni/ |
jni_utils.cc | 38 string16 jstringToString16(JNIEnv* env, jstring jstr) 40 if (!jstr || !env) 43 const char* s = env->GetStringUTFChars(jstr, 0); 47 env->ReleaseStringUTFChars(jstr, s); 52 std::string jstringToStdString(JNIEnv* env, jstring jstr) 54 if (!jstr || !env) 57 const char* s = env->GetStringUTFChars(jstr, 0); 61 env->ReleaseStringUTFChars(jstr, s); 72 std::string JstringToStdString(JNIEnv* env, jstring jstr) { 73 return jstringToStdString(env, jstr); [all...] |
jni_utils.h | 22 std::string JstringToStdString(JNIEnv* env, jstring jstr); 24 string16 JstringToString16(JNIEnv* env, jstring jstr);
|
/external/webkit/Source/WebKit/android/jni/ |
WebCoreJni.cpp | 82 string16 jstringToString16(JNIEnv* env, jstring jstr) 84 if (!jstr || !env) 87 const char* s = env->GetStringUTFChars(jstr, 0); 91 env->ReleaseStringUTFChars(jstr, s); 96 std::string jstringToStdString(JNIEnv* env, jstring jstr) 98 if (!jstr || !env) 101 const char* s = env->GetStringUTFChars(jstr, 0); 105 env->ReleaseStringUTFChars(jstr, s);
|
CacheManager.cpp | 53 jstring jstr = wtfStringToJstring(env, str); local 54 env->SetObjectField(object, field, jstr); 55 env->DeleteLocalRef(jstr);
|
/dalvik/vm/ |
UtfString.h | 124 * Returns NULL if "jstr" is NULL. 126 char* dvmCreateCstrFromString(const StringObject* jstr); 132 void dvmGetStringUtfRegion(const StringObject* jstr,
|
UtfString.cpp | 284 char* dvmCreateCstrFromString(const StringObject* jstr) 287 if (jstr == NULL) { 291 int len = dvmGetFieldInt(jstr, STRING_FIELDOFF_COUNT); 292 int offset = dvmGetFieldInt(jstr, STRING_FIELDOFF_OFFSET); 294 (ArrayObject*) dvmGetFieldObject(jstr, STRING_FIELDOFF_VALUE); 308 void dvmGetStringUtfRegion(const StringObject* jstr, 311 const u2* data = jstr->chars() + start;
|
Jni.cpp | 2102 StringObject* jstr = dvmCreateStringFromUnicode(unicodeChars, len); local [all...] |
/external/javasqlite/src/main/native/ |
sqlite_jni.c | 138 jstring jstr; /* resulting Java string or 0 */ member in struct:__anon6916 196 jstrlen(const jchar *jstr) 200 if (jstr) { 201 while (*jstr++) { 419 dest->jstr = 0; 421 return dest->jstr; 424 dest->jstr = (*env)->NewStringUTF(env, src); 425 return dest->jstr; 432 dest->jstr = 436 dest->jstr [all...] |
/frameworks/base/core/jni/android/graphics/ |
BitmapFactory.cpp | 74 jstring jstr = 0; local 76 jstr = env->NewStringUTF(cstr); 78 return jstr;
|