/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);
|
/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 | 2106 StringObject* jstr = dvmCreateStringFromUnicode(unicodeChars, len); local [all...] |
/frameworks/base/packages/services/PacProcessor/jni/ |
com_android_pacprocessor_PacNative.cpp | 49 String16 jstringToString16(JNIEnv* env, jstring jstr) { 50 const jchar* str = env->GetStringCritical(jstr, 0); 51 String16 str16(str, env->GetStringLength(jstr)); 52 env->ReleaseStringCritical(jstr, str);
|
/external/javasqlite/src/main/native/ |
sqlite_jni.c | 137 jstring jstr; /* resulting Java string or 0 */ member in struct:__anon21394 195 jstrlen(const jchar *jstr) 199 if (jstr) { 200 while (*jstr++) { 418 dest->jstr = 0; 420 return dest->jstr; 423 dest->jstr = (*env)->NewStringUTF(env, src); 424 return dest->jstr; 431 dest->jstr = 435 dest->jstr [all...] |
/frameworks/base/core/jni/android/graphics/ |
BitmapFactory.cpp | 84 jstring jstr = 0; local 86 jstr = env->NewStringUTF(cstr); 88 return jstr;
|
/frameworks/ml/bordeaux/learning/stochastic_linear_ranker/jni/ |
jni_stochastic_linear_ranker.cpp | 60 jstring jstr = env->NewStringUTF(key.c_str()); local 61 env->SetObjectArrayElement(*keys, i, jstr);
|
/frameworks/base/media/jni/ |
android_media_MediaDrm.cpp | 384 static String8 JStringToString8(JNIEnv *env, jstring const &jstr) { 387 const char *s = env->GetStringUTFChars(jstr, NULL); 390 env->ReleaseStringUTFChars(jstr, s); [all...] |
/external/chromium_org/third_party/libjingle/source/talk/app/webrtc/java/jni/ |
peerconnection_jni.cc | 376 jstring jstr = jni->NewString(ustr.getBuffer(), ustr.length()); local 378 return jstr; [all...] |