Home | History | Annotate | Download | only in android

Lines Matching refs:ScopedJavaLocalRef

43 // ScopedJavaLocalRef<jstring> into a function taking const JavaRef<jobject>&
90 // Generic base class for ScopedJavaLocalRef and ScopedJavaGlobalRef. Useful
147 class ScopedJavaLocalRef : public JavaRef<T> {
149 ScopedJavaLocalRef() : env_(nullptr) {}
150 ScopedJavaLocalRef(std::nullptr_t) : env_(nullptr) {}
152 // Non-explicit copy constructor, to allow ScopedJavaLocalRef to be returned
154 ScopedJavaLocalRef(const ScopedJavaLocalRef<T>& other)
159 ScopedJavaLocalRef(ScopedJavaLocalRef<T>&& other) : env_(other.env_) {
163 explicit ScopedJavaLocalRef(const JavaRef<T>& other) : env_(nullptr) {
171 ScopedJavaLocalRef(JNIEnv* env, T obj) : JavaRef<T>(env, obj), env_(env) {}
173 ~ScopedJavaLocalRef() {
179 void operator=(const ScopedJavaLocalRef<T>& other) {
183 void operator=(ScopedJavaLocalRef<T>&& other) {
192 void Reset(const ScopedJavaLocalRef<T>& other) {
222 // Prevent ScopedJavaLocalRef(JNIEnv*, T obj) from being used to take
224 // allowed to be deleted and so should not be owned by ScopedJavaLocalRef.
227 ScopedJavaLocalRef(JNIEnv* env, const JavaParamRef<T>& other);