Home
last modified time | relevance | path

Searched refs:mLocalRef (Results 1 – 2 of 2) sorted by relevance

/libnativehelper/include/nativehelper/
DScopedLocalRef.h29 ScopedLocalRef(JNIEnv* env, T localRef) : mEnv(env), mLocalRef(localRef) { in ScopedLocalRef()
37 if (ptr != mLocalRef) {
38 if (mLocalRef != NULL) {
39 mEnv->DeleteLocalRef(mLocalRef);
41 mLocalRef = ptr;
46 T localRef = mLocalRef; in release()
47 mLocalRef = NULL; in release()
52 return mLocalRef; in get()
57 T mLocalRef; variable
/libnativehelper/
DJNIHelp.cpp42 : mEnv(env), mLocalRef(localRef) in scoped_local_ref()
51 if (mLocalRef != NULL) { in reset()
52 (*mEnv)->DeleteLocalRef(reinterpret_cast<JNIEnv*>(mEnv), mLocalRef); in reset()
53 mLocalRef = localRef; in reset()
58 return mLocalRef; in get()
63 T mLocalRef; member in scoped_local_ref