summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2021-05-21 01:10:15 +0000
committerandroid-build-team Robot <android-build-team-robot@google.com>2021-05-21 01:10:15 +0000
commit3ac4ae81383dd1c9d7ade8c65280f7c2af12034e (patch)
tree1421dc7ca1f0a95c2e2f3889e09e4fa0c65b0ded
parent93a383b7ad336094e5a27096cdc018ff7305de93 (diff)
parentf65a2d53a62467462f5d20935cf5ab7ae5b335b8 (diff)
downloadextras-3ac4ae81383dd1c9d7ade8c65280f7c2af12034e.tar.gz
Snap for 7384269 from f65a2d53a62467462f5d20935cf5ab7ae5b335b8 to sc-d1-release
Change-Id: I167af2bd95b49c5096e14b17cf4aa3231acde7c2
-rw-r--r--module_ndk_libs/libnativehelper/include/android/file_descriptor_jni.h4
-rw-r--r--module_ndk_libs/libnativehelper/libnativehelper.map.txt41
2 files changed, 21 insertions, 24 deletions
diff --git a/module_ndk_libs/libnativehelper/include/android/file_descriptor_jni.h b/module_ndk_libs/libnativehelper/include/android/file_descriptor_jni.h
index fbdfef51..26529b99 100644
--- a/module_ndk_libs/libnativehelper/include/android/file_descriptor_jni.h
+++ b/module_ndk_libs/libnativehelper/include/android/file_descriptor_jni.h
@@ -29,6 +29,10 @@
#include <jni.h>
+#if !defined(__BIONIC__) && !defined(__INTRODUCED_IN)
+#define __INTRODUCED_IN(x)
+#endif
+
__BEGIN_DECLS
/**
diff --git a/module_ndk_libs/libnativehelper/libnativehelper.map.txt b/module_ndk_libs/libnativehelper/libnativehelper.map.txt
index 72efd923..9ef00813 100644
--- a/module_ndk_libs/libnativehelper/libnativehelper.map.txt
+++ b/module_ndk_libs/libnativehelper/libnativehelper.map.txt
@@ -10,30 +10,23 @@ LIBNATIVEHELPER_S { # introduced=S
JNI_GetDefaultJavaVMInitArgs;
JNI_GetCreatedJavaVMs;
- # API for platform and modules only.
- jniRegisterNativeMethods; # apex
- jniThrowException; # apex
- jniThrowExceptionFmt; # apex
- jniThrowNullPointerException; # apex
- jniThrowRuntimeException; # apex
- jniThrowIOException; # apex
- jniThrowErrnoException; # apex
- jniCreateFileDescriptor; # apex
- jniGetFDFromFileDescriptor; # apex
- jniSetFileDescriptorOfFD; # apex
- jniGetNioBufferBaseArray; # apex
- jniGetNioBufferBaseArrayOffset; # apex
- jniGetNioBufferPointer; # apex
- jniGetNioBufferFields; # apex
- jniCreateString; # apex
- jniLogException; # apex
- jniUninitializeConstants; # apex
-
- JniInvocationCreate; # apex
- JniInvocationDestroy; # apex
- JniInvocationInit; # apex
- JniInvocationGetLibrary; # apex
-
local:
*;
};
+
+LIBNATIVEHELPER_PLATFORM { # platform-only
+ global:
+ JniInvocationCreate;
+ JniInvocationDestroy;
+ JniInvocationInit;
+ JniInvocationGetLibrary;
+
+ jniGetNioBufferBaseArray;
+ jniGetNioBufferBaseArrayOffset;
+ jniGetNioBufferPointer;
+ jniGetNioBufferFields;
+
+ jniRegisterNativeMethods;
+ jniUninitializeConstants;
+ jniLogException;
+};