blob: e29d5a6bb4e19fce47cf78402e6eb47938ded243 [file] [log] [blame]
Mathias Agopian4a67a5f2017-02-28 17:00:29 -08001LIBNATIVEWINDOW {
2 global:
3 AHardwareBuffer_acquire;
4 AHardwareBuffer_allocate;
John Reck3ff14172024-02-13 11:35:56 -05005 AHardwareBuffer_allocateWithOptions; # llndk systemapi
Steven Morelanddfc8d602023-12-22 00:08:57 +00006 AHardwareBuffer_createFromHandle; # llndk systemapi
Mathias Agopian4a67a5f2017-02-28 17:00:29 -08007 AHardwareBuffer_describe;
Yiwei Zhangead3d6e2020-08-11 16:12:50 -07008 AHardwareBuffer_getId; # introduced=31
Steven Morelanddfc8d602023-12-22 00:08:57 +00009 AHardwareBuffer_getNativeHandle; # llndk systemapi
Krzysztof KosiƄskia5c54bc2018-11-16 18:24:33 -080010 AHardwareBuffer_isSupported; # introduced=29
Mathias Agopian4a67a5f2017-02-28 17:00:29 -080011 AHardwareBuffer_lock;
Valerie Haud2f4daf2019-02-15 13:49:00 -080012 AHardwareBuffer_lockAndGetInfo; # introduced=29
Marius Rennc5f7a3a2019-04-26 10:16:38 -070013 AHardwareBuffer_lockPlanes; # introduced=29
Mathias Agopian4a67a5f2017-02-28 17:00:29 -080014 AHardwareBuffer_recvHandleFromUnixSocket;
15 AHardwareBuffer_release;
16 AHardwareBuffer_sendHandleToUnixSocket;
Mathias Agopian4a67a5f2017-02-28 17:00:29 -080017 AHardwareBuffer_unlock;
John Reck5c404f82022-08-24 10:50:10 -040018 AHardwareBuffer_readFromParcel; # introduced=34
19 AHardwareBuffer_writeToParcel; # introduced=34
Steven Morelanddfc8d602023-12-22 00:08:57 +000020 AHardwareBuffer_getDataSpace; # llndk systemapi
21 AHardwareBuffer_setDataSpace; # llndk systemapi
Jiyong Park0a0e26b2019-11-06 12:45:02 +090022 ANativeWindowBuffer_getHardwareBuffer; # llndk
23 ANativeWindow_OemStorageGet; # llndk
24 ANativeWindow_OemStorageSet; # llndk
Mathias Agopian4a67a5f2017-02-28 17:00:29 -080025 ANativeWindow_acquire;
Jiyong Park0a0e26b2019-11-06 12:45:02 +090026 ANativeWindow_cancelBuffer; # llndk
27 ANativeWindow_dequeueBuffer; # llndk
Peiyong Lin654f87b2018-01-30 14:21:33 -080028 ANativeWindow_getBuffersDataSpace; # introduced=28
Jason Macnak78d7fb32022-06-13 10:45:07 -070029 ANativeWindow_getBuffersDefaultDataSpace; # introduced=34
Mathias Agopian4a67a5f2017-02-28 17:00:29 -080030 ANativeWindow_getFormat;
31 ANativeWindow_getHeight;
Steven Morelanddfc8d602023-12-22 00:08:57 +000032 ANativeWindow_getLastDequeueDuration; # systemapi introduced=30
33 ANativeWindow_getLastDequeueStartTime; # systemapi introduced=30
34 ANativeWindow_getLastQueueDuration; # systemapi introduced=30
Mathias Agopian4a67a5f2017-02-28 17:00:29 -080035 ANativeWindow_getWidth;
36 ANativeWindow_lock;
Jiyong Park0a0e26b2019-11-06 12:45:02 +090037 ANativeWindow_query; # llndk
38 ANativeWindow_queryf; # llndk
39 ANativeWindow_queueBuffer; # llndk
Steven Morelanddfc8d602023-12-22 00:08:57 +000040 ANativeWindow_setCancelBufferInterceptor; # systemapi introduced=30
41 ANativeWindow_setDequeueBufferInterceptor; # systemapi introduced=30
42 ANativeWindow_setPerformInterceptor; # systemapi introduced=30
43 ANativeWindow_setQueueBufferInterceptor; # systemapi introduced=30
Mathias Agopian4a67a5f2017-02-28 17:00:29 -080044 ANativeWindow_release;
Jiyong Park0a0e26b2019-11-06 12:45:02 +090045 ANativeWindow_setAutoPrerotation; # llndk
46 ANativeWindow_setAutoRefresh; # llndk
47 ANativeWindow_setBufferCount; # llndk
Peiyong Lin654f87b2018-01-30 14:21:33 -080048 ANativeWindow_setBuffersDataSpace; # introduced=28
Jiyong Park0a0e26b2019-11-06 12:45:02 +090049 ANativeWindow_setBuffersDimensions; # llndk
50 ANativeWindow_setBuffersFormat; # llndk
Mathias Agopian4a67a5f2017-02-28 17:00:29 -080051 ANativeWindow_setBuffersGeometry;
Jiyong Park0a0e26b2019-11-06 12:45:02 +090052 ANativeWindow_setBuffersTimestamp; # llndk
Jesse Hall09932ec2017-03-13 11:36:05 -070053 ANativeWindow_setBuffersTransform;
Steven Morelanddfc8d602023-12-22 00:08:57 +000054 ANativeWindow_setDequeueTimeout; # systemapi introduced=30
Steven Thomas62a4cf82020-01-31 12:04:03 -080055 ANativeWindow_setFrameRate; # introduced=30
Marin Shalamanovc5986772021-03-16 16:09:49 +010056 ANativeWindow_setFrameRateWithChangeStrategy; # introduced=31
Jiyong Park0a0e26b2019-11-06 12:45:02 +090057 ANativeWindow_setSharedBufferMode; # llndk
58 ANativeWindow_setSwapInterval; # llndk
59 ANativeWindow_setUsage; # llndk
Alec Mourid9d85722020-02-13 13:57:19 -080060 ANativeWindow_tryAllocateBuffers; # introduced=30
Mathias Agopian4a67a5f2017-02-28 17:00:29 -080061 ANativeWindow_unlockAndPost;
Sungtak Lee4b3e4a92022-11-01 23:39:37 +000062 ANativeWindow_readFromParcel; # introduced=UpsideDownCake
63 ANativeWindow_writeToParcel; # introduced=UpsideDownCake
Mathias Agopian4a67a5f2017-02-28 17:00:29 -080064 local:
65 *;
66};
dimitryb9fdddb2017-11-21 18:24:36 +010067
68LIBNATIVEWINDOW_PLATFORM {
69 global:
70 extern "C++" {
dimitryb9fdddb2017-11-21 18:24:36 +010071 android::AHardwareBuffer_convertFromPixelFormat*;
72 android::AHardwareBuffer_convertToPixelFormat*;
73 android::AHardwareBuffer_convertFromGrallocUsageBits*;
74 android::AHardwareBuffer_convertToGrallocUsageBits*;
Alec Mouri3c51bc52022-11-04 01:28:55 +000075 android::AHardwareBuffer_getDataSpace*;
dimitryb9fdddb2017-11-21 18:24:36 +010076 android::AHardwareBuffer_to_GraphicBuffer*;
77 android::AHardwareBuffer_to_ANativeWindowBuffer*;
78 android::AHardwareBuffer_from_GraphicBuffer*;
79 };
80} LIBNATIVEWINDOW;