Home
last modified time | relevance | path

Searched refs:ScopedLocalRef (Results 1 – 5 of 5) sorted by relevance

/libnativehelper/header_only_include/nativehelper/
Dscoped_local_ref.h27 class ScopedLocalRef {
29 ScopedLocalRef(JNIEnv* env, T localRef) : mEnv(env), mLocalRef(localRef) { in ScopedLocalRef() function
32 ScopedLocalRef(ScopedLocalRef&& s) noexcept : mEnv(s.mEnv), mLocalRef(s.release()) { in ScopedLocalRef() function
35 explicit ScopedLocalRef(JNIEnv* env) : mEnv(env), mLocalRef(nullptr) { in ScopedLocalRef() function
38 ~ScopedLocalRef() { in ~ScopedLocalRef()
68 ScopedLocalRef& operator=(ScopedLocalRef&& s) noexcept {
88 DISALLOW_COPY_AND_ASSIGN(ScopedLocalRef);
/libnativehelper/tests/
Dscoped_local_ref_test.cpp22 ScopedLocalRef<jarray> slr1(env); in TestScopedLocalRef()
/libnativehelper/include/nativehelper/
DtoStringArray.h30 ScopedLocalRef<jobjectArray> result(env, jniCreateStringArray(c_env, count)); in toStringArray()
35 ScopedLocalRef<jstring> s(env, env->NewStringUTF(visitor(i))); in toStringArray()
/libnativehelper/
DREADME.md29 JNI specification equivalents. Examples being `ScopedLocalRef` to
75 * [nativehelper/ScopedLocalRef.h](include/nativehelper/ScopedLocalRef.h)
94 * [nativehelper/ScopedLocalRef.h](include/nativehelper/ScopedLocalRef.h)
/libnativehelper/tests_mts/jni/
Djni_helper_jni.cpp45 ScopedLocalRef<jclass> jlaeClass(env, env->FindClass("java/lang/AssertionError")); in AssertionError()
48 ScopedLocalRef<jstring> message(env, env->NewStringUTF(messageBuffer)); in AssertionError()