summaryrefslogtreecommitdiff
path: root/test/common/runtime_state.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/common/runtime_state.cc')
-rw-r--r--test/common/runtime_state.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/common/runtime_state.cc b/test/common/runtime_state.cc
index 6c76288663..48158e28ba 100644
--- a/test/common/runtime_state.cc
+++ b/test/common/runtime_state.cc
@@ -102,6 +102,14 @@ extern "C" JNIEXPORT jboolean JNICALL Java_Main_hasImage(JNIEnv* env ATTRIBUTE_U
return Runtime::Current()->GetHeap()->HasBootImageSpace();
}
+// public static native boolean hasAppImage();
+
+extern "C" JNIEXPORT jboolean JNICALL Java_Main_hasAppImage(JNIEnv* env,
+ jclass cls ATTRIBUTE_UNUSED) {
+ ScopedObjectAccess soa(env);
+ return Runtime::Current()->GetHeap()->HasAppImageSpace();
+}
+
// public static native boolean isImageDex2OatEnabled();
extern "C" JNIEXPORT jboolean JNICALL Java_Main_isImageDex2OatEnabled(JNIEnv* env ATTRIBUTE_UNUSED,