1// Signature format: 2.0
2package android.provider {
3
4  public final class DeviceConfig {
5    method public static void addOnPropertiesChangedListener(@NonNull String, @NonNull java.util.concurrent.Executor, @NonNull android.provider.DeviceConfig.OnPropertiesChangedListener);
6    method @RequiresPermission(android.Manifest.permission.WRITE_DEVICE_CONFIG) public static void clearAllLocalOverrides();
7    method @RequiresPermission(android.Manifest.permission.WRITE_DEVICE_CONFIG) public static void clearLocalOverride(@NonNull String, @NonNull String);
8    method @RequiresPermission(android.Manifest.permission.MONITOR_DEVICE_CONFIG_ACCESS) public static void clearMonitorCallback(@NonNull android.content.ContentResolver);
9    method @RequiresPermission(anyOf={android.Manifest.permission.WRITE_DEVICE_CONFIG, android.Manifest.permission.WRITE_ALLOWLISTED_DEVICE_CONFIG}) public static boolean deleteProperty(@NonNull String, @NonNull String);
10    method @NonNull public static java.util.Set<java.lang.String> getAdbWritableFlags();
11    method @NonNull public static java.util.Set<android.provider.DeviceConfig.Properties> getAllProperties();
12    method public static boolean getBoolean(@NonNull String, @NonNull String, boolean);
13    method @RequiresPermission(android.Manifest.permission.READ_DEVICE_CONFIG) public static float getFloat(@NonNull String, @NonNull String, float);
14    method @RequiresPermission(android.Manifest.permission.READ_DEVICE_CONFIG) public static int getInt(@NonNull String, @NonNull String, int);
15    method @RequiresPermission(android.Manifest.permission.READ_DEVICE_CONFIG) public static long getLong(@NonNull String, @NonNull String, long);
16    method @NonNull @RequiresPermission(android.Manifest.permission.READ_DEVICE_CONFIG) public static android.provider.DeviceConfig.Properties getProperties(@NonNull String, @NonNull java.lang.String...);
17    method @Nullable public static String getProperty(@NonNull String, @NonNull String);
18    method @NonNull public static java.util.List<java.lang.String> getPublicNamespaces();
19    method @Nullable @RequiresPermission(android.Manifest.permission.READ_DEVICE_CONFIG) public static String getString(@NonNull String, @NonNull String, @Nullable String);
20    method @RequiresPermission(anyOf={android.Manifest.permission.WRITE_DEVICE_CONFIG, android.Manifest.permission.READ_WRITE_SYNC_DISABLED_MODE_CONFIG}) public static int getSyncDisabledMode();
21    method @NonNull public static java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> getUnderlyingValuesForOverriddenFlags();
22    method public static void removeOnPropertiesChangedListener(@NonNull android.provider.DeviceConfig.OnPropertiesChangedListener);
23    method @RequiresPermission(anyOf={android.Manifest.permission.WRITE_DEVICE_CONFIG, android.Manifest.permission.WRITE_ALLOWLISTED_DEVICE_CONFIG}) public static void resetToDefaults(int, @Nullable String);
24    method @RequiresPermission(android.Manifest.permission.WRITE_DEVICE_CONFIG) public static boolean setLocalOverride(@NonNull String, @NonNull String, @NonNull String);
25    method @RequiresPermission(android.Manifest.permission.MONITOR_DEVICE_CONFIG_ACCESS) public static void setMonitorCallback(@NonNull android.content.ContentResolver, @NonNull java.util.concurrent.Executor, @NonNull android.provider.DeviceConfig.MonitorCallback);
26    method @RequiresPermission(anyOf={android.Manifest.permission.WRITE_DEVICE_CONFIG, android.Manifest.permission.WRITE_ALLOWLISTED_DEVICE_CONFIG}) public static boolean setProperties(@NonNull android.provider.DeviceConfig.Properties) throws android.provider.DeviceConfig.BadConfigException;
27    method @RequiresPermission(anyOf={android.Manifest.permission.WRITE_DEVICE_CONFIG, android.Manifest.permission.WRITE_ALLOWLISTED_DEVICE_CONFIG}) public static boolean setProperty(@NonNull String, @NonNull String, @Nullable String, boolean);
28    method @RequiresPermission(anyOf={android.Manifest.permission.WRITE_DEVICE_CONFIG, android.Manifest.permission.READ_WRITE_SYNC_DISABLED_MODE_CONFIG}) public static void setSyncDisabledMode(int);
29    field public static final String NAMESPACE_ACCESSIBILITY = "accessibility";
30    field public static final String NAMESPACE_ACTIVITY_MANAGER = "activity_manager";
31    field public static final String NAMESPACE_ACTIVITY_MANAGER_NATIVE_BOOT = "activity_manager_native_boot";
32    field public static final String NAMESPACE_ADSERVICES = "adservices";
33    field public static final String NAMESPACE_AMBIENT_CONTEXT_MANAGER_SERVICE = "ambient_context_manager_service";
34    field public static final String NAMESPACE_ANDROID = "android";
35    field public static final String NAMESPACE_APPSEARCH = "appsearch";
36    field public static final String NAMESPACE_APP_COMPAT = "app_compat";
37    field public static final String NAMESPACE_APP_COMPAT_OVERRIDES = "app_compat_overrides";
38    field public static final String NAMESPACE_APP_HIBERNATION = "app_hibernation";
39    field public static final String NAMESPACE_ATTENTION_MANAGER_SERVICE = "attention_manager_service";
40    field public static final String NAMESPACE_AUTOFILL = "autofill";
41    field public static final String NAMESPACE_AUTO_PIN_CONFIRMATION = "auto_pin_confirmation";
42    field public static final String NAMESPACE_BACKUP_AND_RESTORE = "backup_and_restore";
43    field public static final String NAMESPACE_BATTERY_SAVER = "battery_saver";
44    field public static final String NAMESPACE_BIOMETRICS = "biometrics";
45    field public static final String NAMESPACE_BLOBSTORE = "blobstore";
46    field public static final String NAMESPACE_BLUETOOTH = "bluetooth";
47    field public static final String NAMESPACE_CAMERA_NATIVE = "camera_native";
48    field public static final String NAMESPACE_CAPTIVEPORTALLOGIN = "captive_portal_login";
49    field public static final String NAMESPACE_CELLULAR_SECURITY = "cellular_security";
50    field public static final String NAMESPACE_CLIPBOARD = "clipboard";
51    field public static final String NAMESPACE_CONNECTIVITY = "connectivity";
52    field public static final String NAMESPACE_CONSTRAIN_DISPLAY_APIS = "constrain_display_apis";
53    field public static final String NAMESPACE_CONTENT_CAPTURE = "content_capture";
54    field public static final String NAMESPACE_CORE_EXPERIMENTS_TEAM_INTERNAL = "core_experiments_team_internal";
55    field public static final String NAMESPACE_CREDENTIAL = "credential_manager";
56    field @Deprecated public static final String NAMESPACE_DEX_BOOT = "dex_boot";
57    field public static final String NAMESPACE_DISPLAY_MANAGER = "display_manager";
58    field public static final String NAMESPACE_EDGETPU_NATIVE = "edgetpu_native";
59    field public static final String NAMESPACE_GAME_DRIVER = "game_driver";
60    field public static final String NAMESPACE_HDMI_CONTROL = "hdmi_control";
61    field public static final String NAMESPACE_HEALTH_FITNESS = "health_fitness";
62    field public static final String NAMESPACE_INPUT_METHOD_MANAGER = "input_method_manager";
63    field public static final String NAMESPACE_INPUT_NATIVE_BOOT = "input_native_boot";
64    field public static final String NAMESPACE_INTELLIGENCE_ATTENTION = "intelligence_attention";
65    field public static final String NAMESPACE_JOB_SCHEDULER = "jobscheduler";
66    field public static final String NAMESPACE_LMKD_NATIVE = "lmkd_native";
67    field public static final String NAMESPACE_LOCATION = "location";
68    field public static final String NAMESPACE_MEDIA = "media";
69    field public static final String NAMESPACE_MEDIA_NATIVE = "media_native";
70    field public static final String NAMESPACE_NEARBY = "nearby";
71    field public static final String NAMESPACE_NETD_NATIVE = "netd_native";
72    field public static final String NAMESPACE_NFC = "nfc";
73    field public static final String NAMESPACE_NNAPI_NATIVE = "nnapi_native";
74    field public static final String NAMESPACE_ON_DEVICE_PERSONALIZATION = "on_device_personalization";
75    field public static final String NAMESPACE_OTA = "ota";
76    field public static final String NAMESPACE_PACKAGE_MANAGER_SERVICE = "package_manager_service";
77    field public static final String NAMESPACE_PERMISSIONS = "permissions";
78    field public static final String NAMESPACE_PRIVACY = "privacy";
79    field public static final String NAMESPACE_PROFCOLLECT_NATIVE_BOOT = "profcollect_native_boot";
80    field public static final String NAMESPACE_REBOOT_READINESS = "reboot_readiness";
81    field public static final String NAMESPACE_REMOTE_AUTH = "remote_auth";
82    field public static final String NAMESPACE_ROLLBACK = "rollback";
83    field public static final String NAMESPACE_ROLLBACK_BOOT = "rollback_boot";
84    field public static final String NAMESPACE_RUNTIME = "runtime";
85    field public static final String NAMESPACE_RUNTIME_NATIVE = "runtime_native";
86    field public static final String NAMESPACE_RUNTIME_NATIVE_BOOT = "runtime_native_boot";
87    field public static final String NAMESPACE_SCHEDULER = "scheduler";
88    field public static final String NAMESPACE_SDK_SANDBOX = "sdk_sandbox";
89    field public static final String NAMESPACE_SELECTION_TOOLBAR = "selection_toolbar";
90    field public static final String NAMESPACE_STATSD_JAVA = "statsd_java";
91    field public static final String NAMESPACE_STATSD_JAVA_BOOT = "statsd_java_boot";
92    field public static final String NAMESPACE_STATSD_NATIVE = "statsd_native";
93    field public static final String NAMESPACE_STATSD_NATIVE_BOOT = "statsd_native_boot";
94    field @Deprecated public static final String NAMESPACE_STORAGE = "storage";
95    field public static final String NAMESPACE_STORAGE_NATIVE_BOOT = "storage_native_boot";
96    field public static final String NAMESPACE_SURFACE_FLINGER_NATIVE_BOOT = "surface_flinger_native_boot";
97    field public static final String NAMESPACE_SWCODEC_NATIVE = "swcodec_native";
98    field public static final String NAMESPACE_SYSTEMUI = "systemui";
99    field public static final String NAMESPACE_SYSTEM_TIME = "system_time";
100    field public static final String NAMESPACE_TELEPHONY = "telephony";
101    field public static final String NAMESPACE_TETHERING = "tethering";
102    field public static final String NAMESPACE_TEXTCLASSIFIER = "textclassifier";
103    field public static final String NAMESPACE_UWB = "uwb";
104    field public static final String NAMESPACE_WEARABLE_SENSING = "wearable_sensing";
105    field public static final String NAMESPACE_WINDOW_MANAGER_NATIVE_BOOT = "window_manager_native_boot";
106    field public static final int SYNC_DISABLED_MODE_NONE = 0; // 0x0
107    field public static final int SYNC_DISABLED_MODE_PERSISTENT = 1; // 0x1
108    field public static final int SYNC_DISABLED_MODE_UNTIL_REBOOT = 2; // 0x2
109  }
110
111  public static class DeviceConfig.BadConfigException extends java.lang.Exception {
112    ctor public DeviceConfig.BadConfigException();
113  }
114
115  public static interface DeviceConfig.MonitorCallback {
116    method public void onDeviceConfigAccess(@NonNull String, @NonNull String);
117    method public void onNamespaceUpdate(@NonNull String);
118  }
119
120  public static interface DeviceConfig.OnPropertiesChangedListener {
121    method public void onPropertiesChanged(@NonNull android.provider.DeviceConfig.Properties);
122  }
123
124  public static class DeviceConfig.Properties {
125    method public boolean getBoolean(@NonNull String, boolean);
126    method public float getFloat(@NonNull String, float);
127    method public int getInt(@NonNull String, int);
128    method @NonNull public java.util.Set<java.lang.String> getKeyset();
129    method public long getLong(@NonNull String, long);
130    method @NonNull public String getNamespace();
131    method @Nullable public String getString(@NonNull String, @Nullable String);
132  }
133
134  public static final class DeviceConfig.Properties.Builder {
135    ctor public DeviceConfig.Properties.Builder(@NonNull String);
136    method @NonNull public android.provider.DeviceConfig.Properties build();
137    method @NonNull public android.provider.DeviceConfig.Properties.Builder setBoolean(@NonNull String, boolean);
138    method @NonNull public android.provider.DeviceConfig.Properties.Builder setFloat(@NonNull String, float);
139    method @NonNull public android.provider.DeviceConfig.Properties.Builder setInt(@NonNull String, int);
140    method @NonNull public android.provider.DeviceConfig.Properties.Builder setLong(@NonNull String, long);
141    method @NonNull public android.provider.DeviceConfig.Properties.Builder setString(@NonNull String, @Nullable String);
142  }
143
144  public final class UpdatableDeviceConfigServiceReadiness {
145    method public static boolean shouldStartUpdatableService();
146  }
147
148}
149
150