| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
include_deprecated contains all of the
headers that are currently used by libraries without
the "nativehelper/" prefix.
The current count of this is this:
2 ScopedLocalFrame.h
4 JniInvocation.h
4 ScopedBytes.h
5 AsynchronousCloseMonitor.h
6 toStringArray.h
7 ScopedStringChars.h
38 JniConstants.h
41 ScopedPrimitiveArray.h
79 ScopedUtfChars.h
80 UniquePtr.h
100 ScopedLocalRef.h
467 JNIHelp.h
Now we can remove each file from the global header include
on a file by file basis.
Bug: 63762847
Test: libraries still find their headers
Change-Id: I77f1dcff47389bcce55087fe18c46350992e4e06
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
jni.h is part of the NDK and is guaranteed to be stable also for VNDK
When BOARD_VNDK_VERSION is set, libnativehelper/include/nativehelper is
not in the include paths for vendors and thus jni.h is not accessible
for them. Since jni.h is essential for any JNI lib, this prevents
vendors from building JNI libs.
So, in order to give access to just jni.h, but not others headers such
as JNIHelp.h or UniquePtr.h in the same directory, a header-only lib
'jni_header' is defined. This will be used by both vendor and system
components to get access to jni.h.
Note: if a JNI lib does not use non-NDK libs (such as libcutils,
libutils, libase, etc.) then setting LOCAL_SDK_VERSION allows jni.h
without requiring them to depend on libnativehelper_headers. This
header-only lib is useful when the JNI lib uses the non-NDK libs and
thus LOCAL_SDK_VERSION cannot be an option.
Bug: 37342627
Bug: 63553556
Followup:
Bug: 63762847
Test: BOARD_VNDK_VERSION=current m -j <lib>
<lib> can be vendors' JNI lib such as liblistenjni, libsensor_reg, etc.
Change-Id: Ic57f63b046a50cbb4b10e8c91fb6a5a355f9d03a
|
| |
|
|
|
|
|
|
| |
Add macros to simplify registration of both regular and @FastNative JNI
functions.
Bug: 34955272
Change-Id: If07dbd82452a28de6dcea978d46b4805d1f0eeea
|
| |
|
|
|
|
| |
Test: make ndk
Bug: None
Change-Id: I9cf8203239534831017537cb0daea11decbdf746
|
| |
|
|
| |
Change-Id: Ic0a7c246bcc47fc3f0b593f9c27cef53b2f24956
|
| |
|
|
| |
Change-Id: I6f9fd46b02fd10d8e5e4111623248a7bf2572633
|
| |
|
|
|
|
|
|
| |
The name collision will be handled by removing libnativehelper from the
root Android.bp file for now.
Bug: 25797955
Change-Id: I71a6e3d37c195a56598029262d8808ea9880e109
|
|
|
Bug: 25797955
Change-Id: I2bbdfb9040437b16ffe18a86266ec904ad7231dc
|