From 8d5fd36dd1087e49db5c38c2b2438279ea81ad49 Mon Sep 17 00:00:00 2001 From: Tej Singh Date: Wed, 17 Mar 2021 00:20:20 -0700 Subject: [PATCH] Add statsd flags to public namespaces Add statsd_java and statsd_java_boot to PUBLIC_NAMESPACES, which allows feature flagging in app-side statsd code (in packages/modules/StatsD/framework) Test: TH Bug: 181823899 Change-Id: Ia3f92a21a9bc050373de6c6fa4969a4d3af4bccb --- core/java/android/provider/DeviceConfig.java | 67 ++++++++++---------- 1 file changed, 34 insertions(+), 33 deletions(-) diff --git a/core/java/android/provider/DeviceConfig.java b/core/java/android/provider/DeviceConfig.java index e9bbcc79e9df5..67d55eef12f0f 100644 --- a/core/java/android/provider/DeviceConfig.java +++ b/core/java/android/provider/DeviceConfig.java @@ -357,6 +357,38 @@ public final class DeviceConfig { */ public static final String NAMESPACE_SETTINGS_STATS = "settings_stats"; + /** + * Namespace for all statsd java features that can be applied immediately. + * + * @hide + */ + @SystemApi + public static final String NAMESPACE_STATSD_JAVA = "statsd_java"; + + /** + * Namespace for all statsd java features that are applied on boot. + * + * @hide + */ + @SystemApi + public static final String NAMESPACE_STATSD_JAVA_BOOT = "statsd_java_boot"; + + /** + * Namespace for all statsd native features that can be applied immediately. + * + * @hide + */ + @SystemApi + public static final String NAMESPACE_STATSD_NATIVE = "statsd_native"; + + /** + * Namespace for all statsd native features that are applied on boot. + * + * @hide + */ + @SystemApi + public static final String NAMESPACE_STATSD_NATIVE_BOOT = "statsd_native_boot"; + /** * Namespace for storage-related features. * @@ -456,7 +488,8 @@ public final class DeviceConfig { */ @NonNull private static final List PUBLIC_NAMESPACES = - Arrays.asList(NAMESPACE_TEXTCLASSIFIER, NAMESPACE_RUNTIME); + Arrays.asList(NAMESPACE_TEXTCLASSIFIER, NAMESPACE_RUNTIME, NAMESPACE_STATSD_JAVA, + NAMESPACE_STATSD_JAVA_BOOT); /** * Privacy related properties definitions. * @@ -504,38 +537,6 @@ public final class DeviceConfig { public static final String NAMESPACE_CONNECTIVITY_THERMAL_POWER_MANAGER = "connectivity_thermal_power_manager"; - /** - * Namespace for all statsd java features that can be applied immediately. - * - * @hide - */ - @SystemApi - public static final String NAMESPACE_STATSD_JAVA = "statsd_java"; - - /** - * Namespace for all statsd java features that are applied on boot. - * - * @hide - */ - @SystemApi - public static final String NAMESPACE_STATSD_JAVA_BOOT = "statsd_java_boot"; - - /** - * Namespace for all statsd native features that can be applied immediately. - * - * @hide - */ - @SystemApi - public static final String NAMESPACE_STATSD_NATIVE = "statsd_native"; - - /** - * Namespace for all statsd native features that are applied on boot. - * - * @hide - */ - @SystemApi - public static final String NAMESPACE_STATSD_NATIVE_BOOT = "statsd_native_boot"; - /** * Namespace for configuration related features. *