diff options
author | 2024-10-09 23:23:25 +0000 | |
---|---|---|
committer | 2024-10-09 23:29:09 +0000 | |
commit | 36595687470d9c06ac4182a448685443b362fecf (patch) | |
tree | 167236652d581b8a33bf44bd190f54647e2e382f | |
parent | 1750d7f8b9e15b6e3617234ea41b3940bb0f550c (diff) |
Correct "introduced" version for inline API.
Inlines don't actually have an "introduced" API level since they're
not a part of the system image. Typically they should haven't any
`__INTRODUCED_IN()` annotation (the one that was here unhelpfully
prevents app developers from calling this otherwise available API
until API 34), but in this case the API forwards to an out-of-line API
which was added in API 31, so we mirror that as recommended by
https://developer.android.com/ndk/guides/using-newer-apis#avoiding_repetition_of_api_guards.
Bug: None
Test: treehugger
Change-Id: I80edc4cf2f0f46c14f057fd3c1f4a222646bd15a
-rw-r--r-- | libs/nativewindow/include/android/native_window.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libs/nativewindow/include/android/native_window.h b/libs/nativewindow/include/android/native_window.h index be6623ee75..6f816bf614 100644 --- a/libs/nativewindow/include/android/native_window.h +++ b/libs/nativewindow/include/android/native_window.h @@ -366,14 +366,13 @@ int32_t ANativeWindow_setFrameRateWithChangeStrategy(ANativeWindow* window, floa * * See ANativeWindow_setFrameRateWithChangeStrategy(). * - * Available since API level 34. + * Available since API level 31. * * \param window pointer to an ANativeWindow object. * * \return 0 for success, -EINVAL if the window value is invalid. */ -inline int32_t ANativeWindow_clearFrameRate(ANativeWindow* window) - __INTRODUCED_IN(__ANDROID_API_U__) { +inline int32_t ANativeWindow_clearFrameRate(ANativeWindow* window) __INTRODUCED_IN(31) { return ANativeWindow_setFrameRateWithChangeStrategy(window, 0, ANATIVEWINDOW_FRAME_RATE_COMPATIBILITY_DEFAULT, ANATIVEWINDOW_CHANGE_FRAME_RATE_ONLY_IF_SEAMLESS); |