Home
last modified time | relevance | path

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

/libnativehelper/tests_mts/jni/
Djni_helper_jni.cpp33 static void throwException(JNIEnv* env, jclass /*clazz*/, jstring className, jstring message) { in throwException()
41 jstring className, in throwExceptionWithIntFormat()
42 jstring format, in throwExceptionWithIntFormat()
51 jstring message) { in throwNullPointerException()
56 static void throwRuntimeException(JNIEnv* env, jclass /*clazz*/, jstring message) { in throwRuntimeException()
65 static void throwErrnoException(JNIEnv* env, jclass /*clazz*/, jstring functionName, jint cause) { in throwErrnoException()
86 static jstring createString(JNIEnv* env, jclass /*clazz*/, jstring value) { in createString()
/libnativehelper/
DJNIHelp.c65 static bool AppendJString(JNIEnv* env, jstring text, struct ExpandableString* dst) { in AppendJString()
84 jstring className = (jstring) (*env)->CallObjectMethod(env, exceptionClass, getName); in GetExceptionSummary()
105 jstring message = (jstring) (*env)->CallObjectMethod(env, thrown, getMessage); in GetExceptionSummary()
136 static jstring StringWriterToString(JNIEnv* env, jobject stringWriter) { in StringWriterToString()
139 return (jstring) (*env)->CallObjectMethod(env, stringWriter, toString); in StringWriterToString()
172 jstring trace = StringWriterToString(env, sw); in GetStackTrace()
287 static jstring CreateExceptionMsg(JNIEnv* env, const char* msg) { in CreateExceptionMsg()
288 jstring detailMessage = (*env)->NewStringUTF(env, msg); in CreateExceptionMsg()
308 jstring _detailMessage = CreateExceptionMsg(env, msg); \
387 jstring jniCreateString(JNIEnv* env, const jchar* unicodeChars, jsize len) { in jniCreateString()
/libnativehelper/include/nativehelper/
DJNIHelp.h112 [[maybe_unused]] static bool AppendJString(JNIEnv* env, jstring text, in AppendJString()
133 jstring className = (jstring)env->CallObjectMethod(exceptionClass, getName); in GetExceptionSummary()
154 jstring message = (jstring)env->CallObjectMethod(thrown, getMessage); in GetExceptionSummary()
185 [[maybe_unused]] static jstring StringWriterToString(JNIEnv* env, jobject stringWriter) { in StringWriterToString()
188 return (jstring)env->CallObjectMethod(stringWriter, toString); in StringWriterToString()
222 jstring trace = StringWriterToString(env, sw); in GetStackTrace()
343 [[maybe_unused]] static jstring CreateExceptionMsg(JNIEnv* env, const char* msg) { in CreateExceptionMsg()
344 jstring detailMessage = env->NewStringUTF(msg); in CreateExceptionMsg()
407 jstring _detailMessage = CreateExceptionMsg(env, msg); in jniThrowException()
421 jstring _detailMessage = CreateExceptionMsg(env, functionName); in jniThrowErrnoException()
[all …]
DtoStringArray.h36 ScopedLocalRef<jstring> s(env, env->NewStringUTF(visitor(i))); in toStringArray()
/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/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…