summaryrefslogtreecommitdiff
path: root/include/android/configuration.h
diff options
context:
space:
mode:
author Ryan Prichard <rprichard@google.com> 2018-07-19 20:32:19 -0700
committer Ryan Prichard <rprichard@google.com> 2018-08-23 18:17:41 -0700
commit749aaebf8af624d2764deed6b059c285dd82b9da (patch)
treedda79a96c6219089e313753b4089495030e96c70 /include/android/configuration.h
parentf468259bd6d9745503b34e6c72830714d2461c2f (diff)
Restore __ANDROID_API__ guards for core <android/*> APIs
This commit restores the __ANDROID_API__ guards removed in "Add __INTRODUCED_IN to core <android/*.h> APIs.", commit 9db409b053460e065cefb1d1caefe048f90cfff0. Add a guard to surface_texture.h. In choreographer.h, declare the types even for older APIs. Bug: http://b/111668906 Test: builds Change-Id: Ia013f48a109310f9f8ca6a3211f28fcb69dd602d Merged-In: Ia013f48a109310f9f8ca6a3211f28fcb69dd602d (cherry picked from commit 92b1ebea095f9cac70b81ae7382ae69583c9914d)
Diffstat (limited to 'include/android/configuration.h')
-rw-r--r--include/android/configuration.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/android/configuration.h b/include/android/configuration.h
index 81aedca9d8..ef6c5a2f81 100644
--- a/include/android/configuration.h
+++ b/include/android/configuration.h
@@ -675,6 +675,7 @@ int32_t AConfiguration_getUiModeNight(AConfiguration* config);
*/
void AConfiguration_setUiModeNight(AConfiguration* config, int32_t uiModeNight);
+#if __ANDROID_API__ >= 13
/**
* Return the current configuration screen width in dp units, or
* ACONFIGURATION_SCREEN_WIDTH_DP_ANY if not set.
@@ -707,7 +708,9 @@ int32_t AConfiguration_getSmallestScreenWidthDp(AConfiguration* config) __INTROD
* Set the configuration's smallest screen width in dp units.
*/
void AConfiguration_setSmallestScreenWidthDp(AConfiguration* config, int32_t value) __INTRODUCED_IN(13);
+#endif /* __ANDROID_API__ >= 13 */
+#if __ANDROID_API__ >= 17
/**
* Return the configuration's layout direction, or
* ACONFIGURATION_LAYOUTDIR_ANY if not set.
@@ -718,6 +721,7 @@ int32_t AConfiguration_getLayoutDirection(AConfiguration* config) __INTRODUCED_I
* Set the configuration's layout direction.
*/
void AConfiguration_setLayoutDirection(AConfiguration* config, int32_t value) __INTRODUCED_IN(17);
+#endif /* __ANDROID_API__ >= 17 */
/**
* Perform a diff between two configurations. Returns a bit mask of