Home
last modified time | relevance | path

Searched refs:ScopedLocalRef (Results 1 – 4 of 4) sorted by relevance

/libnativehelper/header_only_include/nativehelper/
Dscoped_local_ref.h27 class ScopedLocalRef {
29 ScopedLocalRef(JNIEnv* env, T localRef) : mEnv(env), mLocalRef(localRef) { in ScopedLocalRef() function
32 ScopedLocalRef(ScopedLocalRef&& s) noexcept : mEnv(s.mEnv), mLocalRef(s.release()) { in ScopedLocalRef() function
35 explicit ScopedLocalRef(JNIEnv* env) : mEnv(env), mLocalRef(nullptr) { in ScopedLocalRef() function
38 ~ScopedLocalRef() { in ~ScopedLocalRef()
68 ScopedLocalRef& operator=(ScopedLocalRef&& s) noexcept {
88 DISALLOW_COPY_AND_ASSIGN(ScopedLocalRef);
/libnativehelper/tests/
Dscoped_local_ref_test.cpp22 ScopedLocalRef<jarray> slr1(env); in TestScopedLocalRef()
/libnativehelper/include/nativehelper/
DtoStringArray.h30 ScopedLocalRef<jobjectArray> result(env, env->NewObjectArray(count, stringClass, NULL)); in toStringArray()
36 ScopedLocalRef<jstring> s(env, env->NewStringUTF(visitor(i))); in toStringArray()
/libnativehelper/
DREADME.md29 JNI specification equivalents. Examples being `ScopedLocalRef` to
75 * [nativehelper/ScopedLocalRef.h](include/nativehelper/ScopedLocalRef.h)
94 * [nativehelper/ScopedLocalRef.h](include/nativehelper/ScopedLocalRef.h)