Searched refs:mLocalRef (Results 1 – 2 of 2) sorted by relevance
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()[all …]
35 : mEnv(env), mLocalRef(localRef) in scoped_local_ref()44 if (mLocalRef != NULL) { in reset()45 (*mEnv)->DeleteLocalRef(reinterpret_cast<JNIEnv*>(mEnv), mLocalRef); in reset()46 mLocalRef = localRef; in reset()51 return mLocalRef; in get()56 T mLocalRef; member in scoped_local_ref