Home
last modified time | relevance | path

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

/libnativehelper/include/nativehelper/
DScopedLocalRef.h28 ScopedLocalRef(JNIEnv* env, T localRef) : mEnv(env), mLocalRef(localRef) { in ScopedLocalRef()
36 if (ptr != mLocalRef) {
37 if (mLocalRef != NULL) {
38 mEnv->DeleteLocalRef(mLocalRef);
40 mLocalRef = ptr;
45 T localRef = mLocalRef; in release()
46 mLocalRef = NULL; in release()
51 return mLocalRef; in get()
56 T mLocalRef; variable
/libnativehelper/
DJNIHelp.cpp37 : mEnv(env), mLocalRef(localRef) in scoped_local_ref()
46 if (mLocalRef != NULL) { in reset()
47 (*mEnv)->DeleteLocalRef(reinterpret_cast<JNIEnv*>(mEnv), mLocalRef); in reset()
48 mLocalRef = localRef; in reset()
53 return mLocalRef; in get()
58 T mLocalRef; member in scoped_local_ref