Searched refs:ScopedLocalRef (Results 1 – 2 of 2) sorted by relevance
| /test/ext/junit-gtest/src/main/cpp/nativehelper/ |
| D | scoped_local_ref.h | 27 class ScopedLocalRef { 29 ScopedLocalRef(JNIEnv* env, T localRef) : mEnv(env), mLocalRef(localRef) {} in ScopedLocalRef() function 31 ~ScopedLocalRef() { reset(); } in ~ScopedLocalRef() 53 ScopedLocalRef(ScopedLocalRef&& s) : mEnv(s.mEnv), mLocalRef(s.release()) {} in ScopedLocalRef() function 55 explicit ScopedLocalRef(JNIEnv* env) : mEnv(env), mLocalRef(nullptr) {} in ScopedLocalRef() function 63 ScopedLocalRef& operator=(ScopedLocalRef&& s) { 80 DISALLOW_COPY_AND_ASSIGN(ScopedLocalRef);
|
| /test/ext/junit-gtest/src/main/cpp/ |
| D | gtest_wrapper.cpp | 86 ScopedLocalRef<jstring> jTestName(env, env->NewStringUTF(mangledName.c_str())); in createTestDescription() 132 ScopedLocalRef<jstring> jmessage(mEnv, mEnv->NewStringUTF(error.c_str())); in OnTestEnd() 133 ScopedLocalRef<jobject> jthrowable(mEnv, mEnv->NewObject(gAssertionFailure.clazz, in OnTestEnd() 135 ScopedLocalRef<jobject> jfailure(mEnv, mEnv->NewObject(gFailure.clazz, in OnTestEnd() 162 ScopedLocalRef<jobject> mCurrentTestDescription; 214 ScopedLocalRef<jobject> testDescription(env, in Java_androidx_test_ext_junitgtest_GtestRunner_initialize()
|