Searched refs:ScopedLocalRef (Results 1 – 5 of 5) sorted by relevance
27 class ScopedLocalRef {29 ScopedLocalRef(JNIEnv* env, T localRef) : mEnv(env), mLocalRef(localRef) { in ScopedLocalRef() function32 ScopedLocalRef(ScopedLocalRef&& s) noexcept : mEnv(s.mEnv), mLocalRef(s.release()) { in ScopedLocalRef() function35 explicit ScopedLocalRef(JNIEnv* env) : mEnv(env), mLocalRef(nullptr) { in ScopedLocalRef() function38 ~ScopedLocalRef() { in ~ScopedLocalRef()68 ScopedLocalRef& operator=(ScopedLocalRef&& s) noexcept {88 DISALLOW_COPY_AND_ASSIGN(ScopedLocalRef);
22 ScopedLocalRef<jarray> slr1(env); in TestScopedLocalRef()
30 ScopedLocalRef<jobjectArray> result(env, jniCreateStringArray(c_env, count)); in toStringArray()35 ScopedLocalRef<jstring> s(env, env->NewStringUTF(visitor(i))); in toStringArray()
29 JNI specification equivalents. Examples being `ScopedLocalRef` to75 * [nativehelper/ScopedLocalRef.h](include/nativehelper/ScopedLocalRef.h)94 * [nativehelper/ScopedLocalRef.h](include/nativehelper/ScopedLocalRef.h)
45 ScopedLocalRef<jclass> jlaeClass(env, env->FindClass("java/lang/AssertionError")); in AssertionError()48 ScopedLocalRef<jstring> message(env, env->NewStringUTF(messageBuffer)); in AssertionError()