From dfea9c4ab980a5c0ccba526f660e30b51071947c Mon Sep 17 00:00:00 2001 From: Neil Fuller Date: Thu, 28 Jan 2021 18:16:37 +0000 Subject: [PATCH] Add a constant for system_time to DeviceConfig Add a constant for "system_time" to DeviceConfig for server-push feature flags. "system_time" has been added server-side under cl/353067789. This change references the new namespace for device-side config code. This change is following the go/android-flags-setup process. Flags will be added in follow up changes. Bug: 159121373 Bug: 178107773 Test: build only Change-Id: If49365cddc5827382ea4c466322c9fc65777d564 --- core/api/system-current.txt | 1 + core/java/android/provider/DeviceConfig.java | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/core/api/system-current.txt b/core/api/system-current.txt index 2a2b799816c37..5d9dea8c6c8b3 100644 --- a/core/api/system-current.txt +++ b/core/api/system-current.txt @@ -8880,6 +8880,7 @@ package android.provider { field @Deprecated public static final String NAMESPACE_STORAGE = "storage"; field public static final String NAMESPACE_STORAGE_NATIVE_BOOT = "storage_native_boot"; field public static final String NAMESPACE_SYSTEMUI = "systemui"; + field public static final String NAMESPACE_SYSTEM_TIME = "system_time"; field public static final String NAMESPACE_TELEPHONY = "telephony"; field public static final String NAMESPACE_TEXTCLASSIFIER = "textclassifier"; field public static final String NAMESPACE_WINDOW_MANAGER_NATIVE_BOOT = "window_manager_native_boot"; diff --git a/core/java/android/provider/DeviceConfig.java b/core/java/android/provider/DeviceConfig.java index a29b4b9adbb2a..91e091c505326 100644 --- a/core/java/android/provider/DeviceConfig.java +++ b/core/java/android/provider/DeviceConfig.java @@ -367,6 +367,14 @@ public final class DeviceConfig { @SystemApi public static final String NAMESPACE_SYSTEMUI = "systemui"; + /** + * Namespace for system time and time zone detection related features / behavior. + * + * @hide + */ + @SystemApi + public static final String NAMESPACE_SYSTEM_TIME = "system_time"; + /** * Telephony related properties. *