Lines Matching refs:mLocalRef
29 ScopedLocalRef(JNIEnv* env, T localRef) : mEnv(env), mLocalRef(localRef) { in ScopedLocalRef()
32 ScopedLocalRef(ScopedLocalRef&& s) noexcept : mEnv(s.mEnv), mLocalRef(s.release()) { in ScopedLocalRef()
35 explicit ScopedLocalRef(JNIEnv* env) : mEnv(env), mLocalRef(nullptr) { in ScopedLocalRef()
43 if (ptr != mLocalRef) {
44 if (mLocalRef != NULL) {
45 mEnv->DeleteLocalRef(mLocalRef);
47 mLocalRef = ptr;
52 T localRef = mLocalRef; in release()
53 mLocalRef = NULL; in release()
58 return mLocalRef; in get()
76 return mLocalRef == nullptr;
81 return mLocalRef != nullptr;
86 T mLocalRef; variable