Home
last modified time | relevance | path

Searched refs:jstring (Results 1 – 10 of 10) sorted by relevance

/libnativehelper/tests_mts/jni/
Djni_helper_jni.cpp48 ScopedLocalRef<jstring> message(env, env->NewStringUTF(messageBuffer)); in AssertionError()
53 static void throwException(JNIEnv* env, jclass /*clazz*/, jstring className, jstring message) { in throwException()
61 jstring className, in throwExceptionWithIntFormat()
62 jstring format, in throwExceptionWithIntFormat()
71 jstring message) { in throwNullPointerException()
76 static void throwRuntimeException(JNIEnv* env, jclass /*clazz*/, jstring message) { in throwRuntimeException()
184 static jstring createString(JNIEnv* env, jclass /*clazz*/, jstring value) { in createString()
/libnativehelper/header_only_include/nativehelper/
Dscoped_string_chars.h36 ScopedStringChars(JNIEnv* env, jstring s) : env_(env), string_(s), size_(0) { in ScopedStringChars()
68 const jstring string_;
Dscoped_utf_chars.h37 ScopedUtfChars(JNIEnv* env, jstring s) : env_(env), string_(s) { in ScopedUtfChars()
89 jstring string_;
/libnativehelper/
DJNIHelp.c64 static bool AppendJString(JNIEnv* env, jstring text, struct ExpandableString* dst) { in AppendJString()
83 jstring className = (jstring) (*env)->CallObjectMethod(env, exceptionClass, getName); in GetExceptionSummary()
104 jstring message = (jstring) (*env)->CallObjectMethod(env, thrown, getMessage); in GetExceptionSummary()
135 static jstring StringWriterToString(JNIEnv* env, jobject stringWriter) { in StringWriterToString()
138 return (jstring) (*env)->CallObjectMethod(env, stringWriter, toString); in StringWriterToString()
171 jstring trace = StringWriterToString(env, sw); in GetStackTrace()
325 jstring jniCreateString(JNIEnv* env, const jchar* unicodeChars, jsize len) { in jniCreateString()
/libnativehelper/include/nativehelper/
DJNIHelp.h104 jstring jniCreateString(C_JNIEnv* env, const jchar* unicodeChars, jsize len);
164 inline jstring jniCreateString(JNIEnv* env, const jchar* unicodeChars, jsize len) { in jniCreateString()
168 inline jstring jniCreateString(JNIEnv* env, const char16_t* unicodeChars, jsize len) { in jniCreateString()
DtoStringArray.h35 ScopedLocalRef<jstring> s(env, env->NewStringUTF(visitor(i))); in toStringArray()
/libnativehelper/tests/
Dscoped_utf_chars_test.cpp21 void TestCompilationScopedUtfChars(JNIEnv* env, jstring s) { in TestCompilationScopedUtfChars()
DJniSafeRegisterNativeMethods_test.cpp237 …ID_JNI_ARGUMENT_TYPE(false,(is_valid_jni_argument_type<kNormalNative, /*pos*/1u, jstring>::value)); in TEST()
264 static void v_et(JNIEnv*, jstring) {} in v_et()
317 FN0(fr,NORMAL ,jstring) \
339 FN(afr,NORMAL ,jstring,jstring) \
639 EXPECT_EQUALISH_JNI_DESCRIPTORS("Ljava/lang/String;", jstring); in TEST()
917 jstring val) {} in android_os_Parcel_writeString()
946 static jstring android_os_Parcel_readString(JNIEnv* env, in android_os_Parcel_readString()
961 jstring name, in android_os_Parcel_openFileDescriptor()
1024 jstring name) {} in android_os_Parcel_writeInterfaceToken()
1030 jstring name) {} in android_os_Parcel_enforceInterface()
/libnativehelper/include_jni/
Djni.h63 typedef _jstring* jstring; typedef
85 typedef jobject jstring; typedef
370 jstring (*NewString)(JNIEnv*, const jchar*, jsize);
371 jsize (*GetStringLength)(JNIEnv*, jstring);
372 const jchar* (*GetStringChars)(JNIEnv*, jstring, jboolean*);
373 void (*ReleaseStringChars)(JNIEnv*, jstring, const jchar*);
374 jstring (*NewStringUTF)(JNIEnv*, const char*);
375 jsize (*GetStringUTFLength)(JNIEnv*, jstring);
377 const char* (*GetStringUTFChars)(JNIEnv*, jstring, jboolean*);
378 void (*ReleaseStringUTFChars)(JNIEnv*, jstring, const char*);
[all …]
/libnativehelper/include_platform_header_only/nativehelper/detail/
Dsignature_checker.h784 TYPE_TRAIT_FN(jstring, "Ljava/lang/String;", kFastNative, kFinal, kSecondOrLate…