1bf215546Sopenharmony_ci#include <vndk/window.h> 2bf215546Sopenharmony_ci 3bf215546Sopenharmony_ciextern "C" { 4bf215546Sopenharmony_ci 5bf215546Sopenharmony_ciAHardwareBuffer * 6bf215546Sopenharmony_ciANativeWindowBuffer_getHardwareBuffer(ANativeWindowBuffer *anwb) 7bf215546Sopenharmony_ci{ 8bf215546Sopenharmony_ci return nullptr; 9bf215546Sopenharmony_ci} 10bf215546Sopenharmony_ci 11bf215546Sopenharmony_civoid 12bf215546Sopenharmony_ciAHardwareBuffer_acquire(AHardwareBuffer *buffer) 13bf215546Sopenharmony_ci{ 14bf215546Sopenharmony_ci} 15bf215546Sopenharmony_ci 16bf215546Sopenharmony_civoid 17bf215546Sopenharmony_ciAHardwareBuffer_release(AHardwareBuffer *buffer) 18bf215546Sopenharmony_ci{ 19bf215546Sopenharmony_ci} 20bf215546Sopenharmony_ci 21bf215546Sopenharmony_civoid 22bf215546Sopenharmony_ciAHardwareBuffer_describe(const AHardwareBuffer *buffer, 23bf215546Sopenharmony_ci AHardwareBuffer_Desc *outDesc) 24bf215546Sopenharmony_ci{ 25bf215546Sopenharmony_ci} 26bf215546Sopenharmony_ci 27bf215546Sopenharmony_ciint 28bf215546Sopenharmony_ciAHardwareBuffer_allocate(const AHardwareBuffer_Desc *desc, 29bf215546Sopenharmony_ci AHardwareBuffer **outBuffer) 30bf215546Sopenharmony_ci{ 31bf215546Sopenharmony_ci return 0; 32bf215546Sopenharmony_ci} 33bf215546Sopenharmony_ci 34bf215546Sopenharmony_ciconst native_handle_t * 35bf215546Sopenharmony_ciAHardwareBuffer_getNativeHandle(const AHardwareBuffer *buffer) 36bf215546Sopenharmony_ci{ 37bf215546Sopenharmony_ci return NULL; 38bf215546Sopenharmony_ci} 39bf215546Sopenharmony_ci 40bf215546Sopenharmony_civoid 41bf215546Sopenharmony_ciANativeWindow_acquire(ANativeWindow *window) 42bf215546Sopenharmony_ci{ 43bf215546Sopenharmony_ci} 44bf215546Sopenharmony_ci 45bf215546Sopenharmony_civoid 46bf215546Sopenharmony_ciANativeWindow_release(ANativeWindow *window) 47bf215546Sopenharmony_ci{ 48bf215546Sopenharmony_ci} 49bf215546Sopenharmony_ci 50bf215546Sopenharmony_ciint32_t 51bf215546Sopenharmony_ciANativeWindow_getFormat(ANativeWindow *window) 52bf215546Sopenharmony_ci{ 53bf215546Sopenharmony_ci return 0; 54bf215546Sopenharmony_ci} 55bf215546Sopenharmony_ci 56bf215546Sopenharmony_ciint 57bf215546Sopenharmony_ciANativeWindow_setSwapInterval(ANativeWindow *window, int interval) 58bf215546Sopenharmony_ci{ 59bf215546Sopenharmony_ci return 0; 60bf215546Sopenharmony_ci} 61bf215546Sopenharmony_ci 62bf215546Sopenharmony_ciint 63bf215546Sopenharmony_ciANativeWindow_query(const ANativeWindow *window, 64bf215546Sopenharmony_ci ANativeWindowQuery query, 65bf215546Sopenharmony_ci int *value) 66bf215546Sopenharmony_ci{ 67bf215546Sopenharmony_ci return 0; 68bf215546Sopenharmony_ci} 69bf215546Sopenharmony_ci 70bf215546Sopenharmony_ciint 71bf215546Sopenharmony_ciANativeWindow_dequeueBuffer(ANativeWindow *window, 72bf215546Sopenharmony_ci ANativeWindowBuffer **buffer, 73bf215546Sopenharmony_ci int *fenceFd) 74bf215546Sopenharmony_ci{ 75bf215546Sopenharmony_ci return 0; 76bf215546Sopenharmony_ci} 77bf215546Sopenharmony_ci 78bf215546Sopenharmony_ciint 79bf215546Sopenharmony_ciANativeWindow_queueBuffer(ANativeWindow *window, 80bf215546Sopenharmony_ci ANativeWindowBuffer *buffer, 81bf215546Sopenharmony_ci int fenceFd) 82bf215546Sopenharmony_ci{ 83bf215546Sopenharmony_ci return 0; 84bf215546Sopenharmony_ci} 85bf215546Sopenharmony_ci 86bf215546Sopenharmony_ciint ANativeWindow_cancelBuffer(ANativeWindow* window, 87bf215546Sopenharmony_ci ANativeWindowBuffer* buffer, 88bf215546Sopenharmony_ci int fenceFd) { 89bf215546Sopenharmony_ci return 0; 90bf215546Sopenharmony_ci} 91bf215546Sopenharmony_ci 92bf215546Sopenharmony_ciint 93bf215546Sopenharmony_ciANativeWindow_setUsage(ANativeWindow *window, uint64_t usage) 94bf215546Sopenharmony_ci{ 95bf215546Sopenharmony_ci return 0; 96bf215546Sopenharmony_ci} 97bf215546Sopenharmony_ci 98bf215546Sopenharmony_ciint 99bf215546Sopenharmony_ciANativeWindow_setSharedBufferMode(ANativeWindow *window, 100bf215546Sopenharmony_ci bool sharedBufferMode) 101bf215546Sopenharmony_ci{ 102bf215546Sopenharmony_ci return 0; 103bf215546Sopenharmony_ci} 104bf215546Sopenharmony_ci} 105