From bce1d3b60b145d75f6ed1fdd16d2bf3e31f41301 Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Thu, 2 Mar 2017 18:50:28 -0800 Subject: Revert "Remove AHardwareBuffer_ API from libandroid" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 8e90cc3e3adf1d84b92b0b165193762cc8bb295d. Both ANativeWindow and AHardwareBuffer need to be available in libandroid (as well as libnativewindow) otherwise it would make our developer’s life very difficult when they want to support multiple versions of android. Moreover, this would have an impact on AndroidStudio when doing an NDK project. Test: compiled Bug: treble Change-Id: I2cc63b06b3f80fa80f7170ba2ba2996228fa9b2c --- native/android/libandroid.map.txt | 31 +++++++++++++++++++++---------- 1 file changed, 21 insertions(+), 10 deletions(-) (limited to 'native') diff --git a/native/android/libandroid.map.txt b/native/android/libandroid.map.txt index 3ede2ee639bf..1b1f28c37469 100644 --- a/native/android/libandroid.map.txt +++ b/native/android/libandroid.map.txt @@ -139,16 +139,27 @@ LIBANDROID { ANativeActivity_setWindowFlags; ANativeActivity_setWindowFormat; ANativeActivity_showSoftInput; - ANativeWindow_acquire; # removed=26 - ANativeWindow_fromSurface; # removed=26 - ANativeWindow_fromSurfaceTexture; # removed=26 - ANativeWindow_getFormat; # removed=26 - ANativeWindow_getHeight; # removed=26 - ANativeWindow_getWidth; # removed=26 - ANativeWindow_lock; # removed=26 - ANativeWindow_release; # removed=26 - ANativeWindow_setBuffersGeometry; # removed=26 - ANativeWindow_unlockAndPost; # removed=26 + AHardwareBuffer_acquire; # introduced=26 + AHardwareBuffer_allocate; # introduced=26 + AHardwareBuffer_describe; # introduced=26 + AHardwareBuffer_fromHardwareBuffer; # introduced=26 + AHardwareBuffer_getNativeHandle; # introduced=26 + AHardwareBuffer_lock; # introduced=26 + AHardwareBuffer_recvHandleFromUnixSocket; # introduced=26 + AHardwareBuffer_release; # introduced=26 + AHardwareBuffer_sendHandleToUnixSocket; # introduced=26 + AHardwareBuffer_toHardwareBuffer; # introduced=26 + AHardwareBuffer_unlock; # introduced=26 + ANativeWindow_acquire; + ANativeWindow_fromSurface; + ANativeWindow_fromSurfaceTexture; # introduced-arm=13 introduced-mips=13 introduced-x86=13 + ANativeWindow_getFormat; + ANativeWindow_getHeight; + ANativeWindow_getWidth; + ANativeWindow_lock; + ANativeWindow_release; + ANativeWindow_setBuffersGeometry; + ANativeWindow_unlockAndPost; AObbInfo_delete; AObbInfo_getFlags; AObbInfo_getPackageName; -- cgit v1.2.3-59-g8ed1b