Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 90a90f12 authored by Peiyong Lin's avatar Peiyong Lin
Browse files

Make sure ANATIVEWINDOW_QUERY_BUFFER_AGE is identified as VNDK API.

Previously when we switch to only expose VNDK header, the
ANativeWindow_query doesn't properly recognize
ANATIVEWINDOW_QUERY_BUFFER_AGE as a VNDK query and hence a -EINVAL was
returned. This patch makes sure it is identified and skipped to complete
the actual query.

Bug: b/189551931
Test: manual
Change-Id: I9d4ef74dec3315e661e5a01e7b34a9f97f41fe78
parent f3e49212
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -213,6 +213,7 @@ int ANativeWindow_query(const ANativeWindow* window, ANativeWindowQuery what, in
        case ANATIVEWINDOW_QUERY_DEFAULT_WIDTH:
        case ANATIVEWINDOW_QUERY_DEFAULT_HEIGHT:
        case ANATIVEWINDOW_QUERY_TRANSFORM_HINT:
        case ANATIVEWINDOW_QUERY_BUFFER_AGE:
            // these are part of the VNDK API
            break;
        case ANATIVEWINDOW_QUERY_MIN_SWAP_INTERVAL: