/cts/tests/tests/libnativehelper/jni/ |
D | file_descriptor_ndk_test.cpp | 23 jobject jifd = AFileDescriptor_create(mEnv); in TEST_F() 25 ASSERT_EQ(JNI_FALSE, mEnv->ExceptionCheck()); in TEST_F() 26 ASSERT_EQ(kInvalidFd, AFileDescriptor_getFD(mEnv, jifd)); in TEST_F() 30 AFileDescriptor_setFD(mEnv, jifd, unixFd); in TEST_F() 31 ASSERT_EQ(JNI_FALSE, mEnv->ExceptionCheck()); in TEST_F() 32 ASSERT_EQ(unixFd, AFileDescriptor_getFD(mEnv, jifd)); in TEST_F() 33 ASSERT_EQ(JNI_FALSE, mEnv->ExceptionCheck()); in TEST_F()
|
D | libnativehelper_test.cpp | 22 int result = GetJavaVM()->GetEnv(reinterpret_cast<void**>(&mEnv), JNI_VERSION_1_6); in SetUp() 24 EXPECT_NE(nullptr, mEnv); in SetUp() 28 mEnv = nullptr; in TearDown()
|
D | libnativehelper_test.h | 28 JNIEnv* mEnv; variable
|
/cts/tests/tests/effect/src/android/effect/cts/ |
D | EffectTest.java | 33 private GLEnv mEnv; field in EffectTest 43 mEnv = new GLEnv(); in setUp() 44 mEnv.makeCurrent(); in setUp() 53 if (mEnv != null) { in tearDown() 54 mEnv.tearDown(); in tearDown() 102 int inputTexture = mEnv.bitmapToTexture(bitmap); in test6_effectApply() 103 int outputTexture = mEnv.generateTexture(); in test6_effectApply() 109 mEnv.releaseTexture(inputTexture); in test6_effectApply() 110 mEnv.releaseTexture(outputTexture); in test6_effectApply()
|
/cts/common/device-side/nativetesthelper/jni/ |
D | gtest_wrapper.cpp | 108 : mEnv(env) in JUnitNotifyingListener() 117 … createTestDescription(mEnv, mClassName, testInfo.test_case_name(), testInfo.name())); in OnTestStart() 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() 137 mEnv->CallVoidMethod(mRunNotifier, gRunNotifier.fireTestFailure, jfailure.get()); in OnTestEnd() 148 mCurrentTestDescription.reset(createTestDescription(mEnv, mClassName, mangledName)); in reportDisabledTests() 156 mEnv->CallVoidMethod(mRunNotifier, method, mCurrentTestDescription.get()); in notify() 159 JNIEnv* mEnv; member in __anonf2b0961f0111::JUnitNotifyingListener
|
/cts/tests/tests/graphics/jni/ |
D | android_graphics_fonts_cts_SystemFonts.cpp | 35 ScopedUtfChars(JNIEnv* env, jstring s) : mEnv(env), mString(s) { in ScopedUtfChars() 40 mUtfChars = mEnv->GetStringUTFChars(mString, nullptr); in ScopedUtfChars() 41 mSize = mEnv->GetStringUTFLength(mString); in ScopedUtfChars() 47 mEnv->ReleaseStringUTFChars(mString, mUtfChars); in ~ScopedUtfChars() 60 JNIEnv* mEnv; member in __anon6417662e0111::ScopedUtfChars 68 ScopedStringChars(JNIEnv* env, jstring s) : mEnv(env), mString(s) { in ScopedStringChars() 73 mChars = mEnv->GetStringChars(mString, NULL); in ScopedStringChars() 74 mSize = mEnv->GetStringLength(mString); in ScopedStringChars() 80 mEnv->ReleaseStringChars(mString, mChars); in ~ScopedStringChars() 94 JNIEnv* const mEnv; member in __anon6417662e0111::ScopedStringChars
|
/cts/tests/tests/renderscript/libcoremathtestcpp/ |
D | CoreMathTestJni.cpp | 43 JNIEnv* mEnv; member in JavaStruct 62 JavaStruct::JavaStruct(JNIEnv* env, const std::string& name) : mEnv(env), mClass(0), mObject(0) { in JavaStruct() 88 mEnv->SetIntField(mObject, fieldId, value); in SetInt() 95 mEnv->SetFloatField(mObject, fieldId, value); in SetFloat() 103 jfieldID fieldId = mEnv->GetFieldID(mClass, name, type); in GetFieldId()
|