1 /* 2 * Copyright (C) 2007 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 package com.android.providers.settings; 18 19 import android.annotation.NonNull; 20 import android.os.UserHandle; 21 import android.provider.DeviceConfig; 22 import android.provider.Settings; 23 import android.providers.settings.ConfigSettingsProto; 24 import android.providers.settings.GlobalSettingsProto; 25 import android.providers.settings.SecureSettingsProto; 26 import android.providers.settings.SettingProto; 27 import android.providers.settings.SettingsServiceDumpProto; 28 import android.providers.settings.SystemSettingsProto; 29 import android.providers.settings.UserSettingsProto; 30 import android.util.SparseBooleanArray; 31 import android.util.proto.ProtoOutputStream; 32 33 import java.util.ArrayList; 34 import java.util.Collections; 35 import java.util.HashMap; 36 import java.util.List; 37 import java.util.Map; 38 39 /** @hide */ 40 class SettingsProtoDumpUtil { 41 private static final Map<String, Long> NAMESPACE_TO_FIELD_MAP = createNamespaceMap(); 42 SettingsProtoDumpUtil()43 private SettingsProtoDumpUtil() {} 44 createNamespaceMap()45 private static Map<String, Long> createNamespaceMap() { 46 Map<String, Long> namespaceToFieldMap = new HashMap<>(); 47 namespaceToFieldMap.put(DeviceConfig.NAMESPACE_ACTIVITY_MANAGER, 48 ConfigSettingsProto.ACTIVITY_MANAGER_SETTINGS); 49 namespaceToFieldMap.put(DeviceConfig.NAMESPACE_ACTIVITY_MANAGER_NATIVE_BOOT, 50 ConfigSettingsProto.ACTIVITY_MANAGER_NATIVE_BOOT_SETTINGS); 51 namespaceToFieldMap.put(DeviceConfig.NAMESPACE_ALARM_MANAGER, 52 ConfigSettingsProto.ALARM_MANAGER_SETTINGS); 53 namespaceToFieldMap.put(DeviceConfig.NAMESPACE_APP_COMPAT, 54 ConfigSettingsProto.APP_COMPAT_SETTINGS); 55 namespaceToFieldMap.put(DeviceConfig.NAMESPACE_APP_STANDBY, 56 ConfigSettingsProto.APP_STANDBY_SETTINGS); 57 namespaceToFieldMap.put(DeviceConfig.NAMESPACE_AUTOFILL, 58 ConfigSettingsProto.AUTOFILL_SETTINGS); 59 namespaceToFieldMap.put(DeviceConfig.NAMESPACE_BLOBSTORE, 60 ConfigSettingsProto.BLOBSTORE_SETTINGS); 61 namespaceToFieldMap.put(DeviceConfig.NAMESPACE_CONNECTIVITY, 62 ConfigSettingsProto.CONNECTIVITY_SETTINGS); 63 namespaceToFieldMap.put(DeviceConfig.NAMESPACE_CONTENT_CAPTURE, 64 ConfigSettingsProto.CONTENT_CAPTURE_SETTINGS); 65 namespaceToFieldMap.put(DeviceConfig.NAMESPACE_DEVICE_IDLE, 66 ConfigSettingsProto.DEVICE_IDLE_SETTINGS); 67 namespaceToFieldMap.put(DeviceConfig.NAMESPACE_GAME_DRIVER, 68 ConfigSettingsProto.GAME_DRIVER_SETTINGS); 69 namespaceToFieldMap.put(DeviceConfig.NAMESPACE_INPUT_NATIVE_BOOT, 70 ConfigSettingsProto.INPUT_NATIVE_BOOT_SETTINGS); 71 namespaceToFieldMap.put(DeviceConfig.NAMESPACE_JOB_SCHEDULER, 72 ConfigSettingsProto.JOB_SCHEDULER_SETTINGS); 73 namespaceToFieldMap.put(DeviceConfig.NAMESPACE_NETD_NATIVE, 74 ConfigSettingsProto.NETD_NATIVE_SETTINGS); 75 namespaceToFieldMap.put(DeviceConfig.NAMESPACE_PRIVACY, 76 ConfigSettingsProto.PRIVACY_SETTINGS); 77 namespaceToFieldMap.put(DeviceConfig.NAMESPACE_ROLLBACK, 78 ConfigSettingsProto.ROLLBACK_SETTINGS); 79 namespaceToFieldMap.put(DeviceConfig.NAMESPACE_ROLLBACK_BOOT, 80 ConfigSettingsProto.ROLLBACK_BOOT_SETTINGS); 81 namespaceToFieldMap.put(DeviceConfig.NAMESPACE_RUNTIME, 82 ConfigSettingsProto.RUNTIME_SETTINGS); 83 namespaceToFieldMap.put(DeviceConfig.NAMESPACE_RUNTIME_NATIVE, 84 ConfigSettingsProto.RUNTIME_NATIVE_SETTINGS); 85 namespaceToFieldMap.put(DeviceConfig.NAMESPACE_RUNTIME_NATIVE_BOOT, 86 ConfigSettingsProto.RUNTIME_NATIVE_BOOT_SETTINGS); 87 namespaceToFieldMap.put(DeviceConfig.NAMESPACE_STORAGE_NATIVE_BOOT, 88 ConfigSettingsProto.STORAGE_SETTINGS); 89 namespaceToFieldMap.put(DeviceConfig.NAMESPACE_SYSTEMUI, 90 ConfigSettingsProto.SYSTEMUI_SETTINGS); 91 namespaceToFieldMap.put(DeviceConfig.NAMESPACE_TELEPHONY, 92 ConfigSettingsProto.TELEPHONY_SETTINGS); 93 namespaceToFieldMap.put(DeviceConfig.NAMESPACE_TEXTCLASSIFIER, 94 ConfigSettingsProto.TEXTCLASSIFIER_SETTINGS); 95 return Collections.unmodifiableMap(namespaceToFieldMap); 96 } 97 dumpProtoLocked(SettingsProvider.SettingsRegistry settingsRegistry, ProtoOutputStream proto)98 static void dumpProtoLocked(SettingsProvider.SettingsRegistry settingsRegistry, 99 ProtoOutputStream proto) { 100 // Config settings 101 SettingsState configSettings = settingsRegistry.getSettingsLocked( 102 SettingsProvider.SETTINGS_TYPE_CONFIG, UserHandle.USER_SYSTEM); 103 if (configSettings != null) { 104 dumpProtoConfigSettingsLocked( 105 proto, SettingsServiceDumpProto.CONFIG_SETTINGS, configSettings); 106 } 107 108 // Global settings 109 SettingsState globalSettings = settingsRegistry.getSettingsLocked( 110 SettingsProvider.SETTINGS_TYPE_GLOBAL, UserHandle.USER_SYSTEM); 111 if (globalSettings != null) { 112 dumpProtoGlobalSettingsLocked( 113 proto, SettingsServiceDumpProto.GLOBAL_SETTINGS, globalSettings); 114 } 115 116 // Per-user settings 117 SparseBooleanArray users = settingsRegistry.getKnownUsersLocked(); 118 final int userCount = users.size(); 119 for (int i = 0; i < userCount; i++) { 120 dumpProtoUserSettingsLocked(proto, SettingsServiceDumpProto.USER_SETTINGS, 121 settingsRegistry, UserHandle.of(users.keyAt(i))); 122 } 123 124 // Generation registry 125 dumpProtoGenerationRegistryLocked(proto, SettingsServiceDumpProto.GENERATION_REGISTRY, 126 settingsRegistry); 127 } 128 dumpProtoGenerationRegistryLocked(@onNull ProtoOutputStream proto, long fieldId, SettingsProvider.SettingsRegistry settingsRegistry)129 private static void dumpProtoGenerationRegistryLocked(@NonNull ProtoOutputStream proto, 130 long fieldId, SettingsProvider.SettingsRegistry settingsRegistry) { 131 final long token = proto.start(fieldId); 132 settingsRegistry.getGenerationRegistry().dumpProto(proto); 133 proto.end(token); 134 } 135 136 /** 137 * Dump all settings of a user as a proto buf. 138 * 139 * @param settingsRegistry 140 * @param user The user the settings should be dumped for 141 * @param proto The proto buf stream to dump to 142 */ dumpProtoUserSettingsLocked( @onNull ProtoOutputStream proto, long fieldId, SettingsProvider.SettingsRegistry settingsRegistry, @NonNull UserHandle user)143 private static void dumpProtoUserSettingsLocked( 144 @NonNull ProtoOutputStream proto, 145 long fieldId, 146 SettingsProvider.SettingsRegistry settingsRegistry, 147 @NonNull UserHandle user) { 148 final long token = proto.start(fieldId); 149 150 proto.write(UserSettingsProto.USER_ID, user.getIdentifier()); 151 152 SettingsState secureSettings = settingsRegistry.getSettingsLocked( 153 SettingsProvider.SETTINGS_TYPE_SECURE, user.getIdentifier()); 154 if (secureSettings != null) { 155 dumpProtoSecureSettingsLocked(proto, UserSettingsProto.SECURE_SETTINGS, secureSettings); 156 } 157 158 SettingsState systemSettings = settingsRegistry.getSettingsLocked( 159 SettingsProvider.SETTINGS_TYPE_SYSTEM, user.getIdentifier()); 160 if (systemSettings != null) { 161 dumpProtoSystemSettingsLocked(proto, UserSettingsProto.SYSTEM_SETTINGS, systemSettings); 162 } 163 164 proto.end(token); 165 } 166 dumpProtoGlobalSettingsLocked( @onNull ProtoOutputStream p, long fieldId, @NonNull SettingsState s)167 private static void dumpProtoGlobalSettingsLocked( 168 @NonNull ProtoOutputStream p, long fieldId, @NonNull SettingsState s) { 169 final long token = p.start(fieldId); 170 s.dumpHistoricalOperations(p, GlobalSettingsProto.HISTORICAL_OPERATIONS); 171 172 // This uses the same order as in GlobalSettingsProto. 173 dumpSetting(s, p, 174 Settings.Global.ACTIVITY_MANAGER_CONSTANTS, 175 GlobalSettingsProto.ACTIVITY_MANAGER_CONSTANTS); 176 dumpSetting(s, p, 177 Settings.Global.ADB_ENABLED, 178 GlobalSettingsProto.ADB_ENABLED); 179 dumpSetting(s, p, 180 Settings.Global.ADD_USERS_WHEN_LOCKED, 181 GlobalSettingsProto.ADD_USERS_WHEN_LOCKED); 182 183 final long airplaneModeToken = p.start(GlobalSettingsProto.AIRPLANE_MODE); 184 dumpSetting(s, p, 185 Settings.Global.AIRPLANE_MODE_ON, 186 GlobalSettingsProto.AirplaneMode.ON); 187 // RADIO_BLUETOOTH is just a constant and not an actual setting. 188 // RADIO_WIFI is just a constant and not an actual setting. 189 // RADIO_WIMAX is just a constant and not an actual setting. 190 // RADIO_CELL is just a constant and not an actual setting. 191 // RADIO_NFC is just a constant and not an actual setting. 192 dumpSetting(s, p, 193 Settings.Global.AIRPLANE_MODE_RADIOS, 194 GlobalSettingsProto.AirplaneMode.RADIOS); 195 dumpSetting(s, p, 196 Settings.Global.AIRPLANE_MODE_TOGGLEABLE_RADIOS, 197 GlobalSettingsProto.AirplaneMode.TOGGLEABLE_RADIOS); 198 p.end(airplaneModeToken); 199 200 dumpSetting(s, p, 201 Settings.Global.ALLOW_USER_SWITCHING_WHEN_SYSTEM_USER_LOCKED, 202 GlobalSettingsProto.ALLOW_USER_SWITCHING_WHEN_SYSTEM_USER_LOCKED); 203 dumpSetting(s, p, 204 Settings.Global.ALWAYS_ON_DISPLAY_CONSTANTS, 205 GlobalSettingsProto.ALWAYS_ON_DISPLAY_CONSTANTS); 206 dumpSetting(s, p, 207 Settings.Global.ALWAYS_FINISH_ACTIVITIES, 208 GlobalSettingsProto.ALWAYS_FINISH_ACTIVITIES); 209 dumpSetting(s, p, 210 Settings.Global.ANIMATOR_DURATION_SCALE, 211 GlobalSettingsProto.ANIMATOR_DURATION_SCALE); 212 213 final long anomalyToken = p.start(GlobalSettingsProto.ANOMALY); 214 dumpSetting(s, p, 215 Settings.Global.ANOMALY_DETECTION_CONSTANTS, 216 GlobalSettingsProto.Anomaly.DETECTION_CONSTANTS); 217 dumpSetting(s, p, 218 Settings.Global.ANOMALY_CONFIG_VERSION, 219 GlobalSettingsProto.Anomaly.CONFIG_VERSION); 220 dumpSetting(s, p, 221 Settings.Global.ANOMALY_CONFIG, 222 GlobalSettingsProto.Anomaly.CONFIG); 223 p.end(anomalyToken); 224 225 final long apnDbToken = p.start(GlobalSettingsProto.APN_DB); 226 dumpSetting(s, p, 227 Settings.Global.APN_DB_UPDATE_CONTENT_URL, 228 GlobalSettingsProto.ApnDb.UPDATE_CONTENT_URL); 229 dumpSetting(s, p, 230 Settings.Global.APN_DB_UPDATE_METADATA_URL, 231 GlobalSettingsProto.ApnDb.UPDATE_METADATA_URL); 232 p.end(apnDbToken); 233 234 final long appToken = p.start(GlobalSettingsProto.APP); 235 dumpSetting(s, p, 236 Settings.Global.APP_STANDBY_ENABLED, 237 GlobalSettingsProto.App.STANDBY_ENABLED); 238 dumpSetting(s, p, 239 Settings.Global.APP_AUTO_RESTRICTION_ENABLED, 240 GlobalSettingsProto.App.AUTO_RESTRICTION_ENABLED); 241 dumpSetting(s, p, 242 Settings.Global.FORCED_APP_STANDBY_FOR_SMALL_BATTERY_ENABLED, 243 GlobalSettingsProto.App.FORCED_APP_STANDBY_FOR_SMALL_BATTERY_ENABLED); 244 p.end(appToken); 245 246 dumpSetting(s, p, 247 Settings.Global.ASSISTED_GPS_ENABLED, 248 GlobalSettingsProto.ASSISTED_GPS_ENABLED); 249 dumpSetting(s, p, 250 Settings.Global.AUDIO_SAFE_VOLUME_STATE, 251 GlobalSettingsProto.AUDIO_SAFE_VOLUME_STATE); 252 dumpSetting(s, p, 253 Settings.Global.AUDIO_SAFE_CSD_CURRENT_VALUE, 254 GlobalSettingsProto.AUDIO_SAFE_CSD_CURRENT_VALUE); 255 dumpSetting(s, p, 256 Settings.Global.AUDIO_SAFE_CSD_NEXT_WARNING, 257 GlobalSettingsProto.AUDIO_SAFE_CSD_NEXT_WARNING); 258 dumpSetting(s, p, 259 Settings.Global.AUDIO_SAFE_CSD_DOSE_RECORDS, 260 GlobalSettingsProto.AUDIO_SAFE_CSD_DOSE_RECORDS); 261 262 final long autofillToken = p.start(GlobalSettingsProto.AUTOFILL); 263 dumpSetting(s, p, 264 Settings.Global.AUTOFILL_LOGGING_LEVEL, 265 GlobalSettingsProto.Autofill.LOGGING_LEVEL); 266 dumpSetting(s, p, 267 Settings.Global.AUTOFILL_MAX_PARTITIONS_SIZE, 268 GlobalSettingsProto.Autofill.MAX_PARTITIONS_SIZE); 269 dumpSetting(s, p, 270 Settings.Global.AUTOFILL_MAX_VISIBLE_DATASETS, 271 GlobalSettingsProto.Autofill.MAX_VISIBLE_DATASETS); 272 p.end(autofillToken); 273 274 final long backupToken = p.start(GlobalSettingsProto.BACKUP); 275 dumpSetting(s, p, 276 Settings.Global.BACKUP_AGENT_TIMEOUT_PARAMETERS, 277 GlobalSettingsProto.Backup.BACKUP_AGENT_TIMEOUT_PARAMETERS); 278 p.end(backupToken); 279 280 final long batteryToken = p.start(GlobalSettingsProto.BATTERY); 281 dumpSetting(s, p, 282 Settings.Global.BATTERY_DISCHARGE_DURATION_THRESHOLD, 283 GlobalSettingsProto.Battery.DISCHARGE_DURATION_THRESHOLD); 284 dumpSetting(s, p, 285 Settings.Global.BATTERY_DISCHARGE_THRESHOLD, 286 GlobalSettingsProto.Battery.DISCHARGE_THRESHOLD); 287 dumpSetting(s, p, 288 Settings.Global.BATTERY_SAVER_CONSTANTS, 289 GlobalSettingsProto.Battery.SAVER_CONSTANTS); 290 dumpSetting(s, p, 291 Settings.Global.BATTERY_SAVER_DEVICE_SPECIFIC_CONSTANTS, 292 GlobalSettingsProto.Battery.SAVER_DEVICE_SPECIFIC_CONSTANTS); 293 dumpSetting(s, p, 294 Settings.Global.BATTERY_STATS_CONSTANTS, 295 GlobalSettingsProto.Battery.STATS_CONSTANTS); 296 dumpSetting(s, p, 297 Settings.Global.BATTERY_TIP_CONSTANTS, 298 GlobalSettingsProto.Battery.TIP_CONSTANTS); 299 p.end(batteryToken); 300 301 final long bleScanToken = p.start(GlobalSettingsProto.BLE_SCAN); 302 dumpSetting(s, p, 303 Settings.Global.BLE_SCAN_ALWAYS_AVAILABLE, 304 GlobalSettingsProto.BleScan.ALWAYS_AVAILABLE); 305 dumpSetting(s, p, 306 Settings.Global.BLE_SCAN_LOW_POWER_WINDOW_MS, 307 GlobalSettingsProto.BleScan.LOW_POWER_WINDOW_MS); 308 dumpSetting(s, p, 309 Settings.Global.BLE_SCAN_BALANCED_WINDOW_MS, 310 GlobalSettingsProto.BleScan.BALANCED_WINDOW_MS); 311 dumpSetting(s, p, 312 Settings.Global.BLE_SCAN_LOW_LATENCY_WINDOW_MS, 313 GlobalSettingsProto.BleScan.LOW_LATENCY_WINDOW_MS); 314 dumpSetting(s, p, 315 Settings.Global.BLE_SCAN_LOW_POWER_INTERVAL_MS, 316 GlobalSettingsProto.BleScan.LOW_POWER_INTERVAL_MS); 317 dumpSetting(s, p, 318 Settings.Global.BLE_SCAN_BALANCED_INTERVAL_MS, 319 GlobalSettingsProto.BleScan.BALANCED_INTERVAL_MS); 320 dumpSetting(s, p, 321 Settings.Global.BLE_SCAN_LOW_LATENCY_INTERVAL_MS, 322 GlobalSettingsProto.BleScan.LOW_LATENCY_INTERVAL_MS); 323 dumpSetting(s, p, 324 Settings.Global.BLE_SCAN_BACKGROUND_MODE, 325 GlobalSettingsProto.BleScan.BACKGROUND_MODE); 326 p.end(bleScanToken); 327 328 final long bluetoothToken = p.start(GlobalSettingsProto.BLUETOOTH); 329 dumpSetting(s, p, 330 Settings.Global.BLUETOOTH_CLASS_OF_DEVICE, 331 GlobalSettingsProto.Bluetooth.CLASS_OF_DEVICE); 332 dumpSetting(s, p, 333 Settings.Global.BLUETOOTH_DISABLED_PROFILES, 334 GlobalSettingsProto.Bluetooth.DISABLED_PROFILES); 335 dumpSetting(s, p, 336 Settings.Global.BLUETOOTH_INTEROPERABILITY_LIST, 337 GlobalSettingsProto.Bluetooth.INTEROPERABILITY_LIST); 338 dumpSetting(s, p, 339 Settings.Global.BLUETOOTH_ON, 340 GlobalSettingsProto.Bluetooth.ON); 341 dumpRepeatedSetting(s, p, 342 Settings.Global.BLUETOOTH_HEADSET_PRIORITY_PREFIX, 343 GlobalSettingsProto.Bluetooth.HEADSET_PRIORITIES); 344 dumpRepeatedSetting(s, p, 345 Settings.Global.BLUETOOTH_A2DP_SINK_PRIORITY_PREFIX, 346 GlobalSettingsProto.Bluetooth.A2DP_SINK_PRIORITIES); 347 dumpRepeatedSetting(s, p, 348 Settings.Global.BLUETOOTH_A2DP_SRC_PRIORITY_PREFIX, 349 GlobalSettingsProto.Bluetooth.A2DP_SRC_PRIORITIES); 350 dumpRepeatedSetting(s, p, 351 Settings.Global.BLUETOOTH_A2DP_SUPPORTS_OPTIONAL_CODECS_PREFIX, 352 GlobalSettingsProto.Bluetooth.A2DP_SUPPORTS_OPTIONAL_CODECS); 353 dumpRepeatedSetting(s, p, 354 Settings.Global.BLUETOOTH_A2DP_OPTIONAL_CODECS_ENABLED_PREFIX, 355 GlobalSettingsProto.Bluetooth.A2DP_OPTIONAL_CODECS_ENABLED); 356 dumpRepeatedSetting(s, p, 357 Settings.Global.BLUETOOTH_INPUT_DEVICE_PRIORITY_PREFIX, 358 GlobalSettingsProto.Bluetooth.INPUT_DEVICE_PRIORITIES); 359 dumpRepeatedSetting(s, p, 360 Settings.Global.BLUETOOTH_MAP_PRIORITY_PREFIX, 361 GlobalSettingsProto.Bluetooth.MAP_PRIORITIES); 362 dumpRepeatedSetting(s, p, 363 Settings.Global.BLUETOOTH_MAP_CLIENT_PRIORITY_PREFIX, 364 GlobalSettingsProto.Bluetooth.MAP_CLIENT_PRIORITIES); 365 dumpRepeatedSetting(s, p, 366 Settings.Global.BLUETOOTH_PBAP_CLIENT_PRIORITY_PREFIX, 367 GlobalSettingsProto.Bluetooth.PBAP_CLIENT_PRIORITIES); 368 dumpRepeatedSetting(s, p, 369 Settings.Global.BLUETOOTH_SAP_PRIORITY_PREFIX, 370 GlobalSettingsProto.Bluetooth.SAP_PRIORITIES); 371 dumpRepeatedSetting(s, p, 372 Settings.Global.BLUETOOTH_PAN_PRIORITY_PREFIX, 373 GlobalSettingsProto.Bluetooth.PAN_PRIORITIES); 374 dumpRepeatedSetting(s, p, 375 Settings.Global.BLUETOOTH_HEARING_AID_PRIORITY_PREFIX, 376 GlobalSettingsProto.Bluetooth.HEARING_AID_PRIORITIES); 377 p.end(bluetoothToken); 378 379 dumpSetting(s, p, 380 Settings.Global.BOOT_COUNT, 381 GlobalSettingsProto.BOOT_COUNT); 382 dumpSetting(s, p, 383 Settings.Global.CACHED_APPS_FREEZER_ENABLED, 384 GlobalSettingsProto.CACHED_APPS_FREEZER_ENABLED); 385 dumpSetting(s, p, 386 Settings.Global.CALL_AUTO_RETRY, 387 GlobalSettingsProto.CALL_AUTO_RETRY); 388 389 final long captivePortalToken = p.start(GlobalSettingsProto.CAPTIVE_PORTAL); 390 dumpSetting(s, p, 391 Settings.Global.CAPTIVE_PORTAL_MODE, 392 GlobalSettingsProto.CaptivePortal.MODE); 393 dumpSetting(s, p, 394 Settings.Global.CAPTIVE_PORTAL_DETECTION_ENABLED, 395 GlobalSettingsProto.CaptivePortal.DETECTION_ENABLED); 396 dumpSetting(s, p, 397 Settings.Global.CAPTIVE_PORTAL_SERVER, 398 GlobalSettingsProto.CaptivePortal.SERVER); 399 dumpSetting(s, p, 400 Settings.Global.CAPTIVE_PORTAL_HTTPS_URL, 401 GlobalSettingsProto.CaptivePortal.HTTPS_URL); 402 dumpSetting(s, p, 403 Settings.Global.CAPTIVE_PORTAL_HTTP_URL, 404 GlobalSettingsProto.CaptivePortal.HTTP_URL); 405 dumpSetting(s, p, 406 Settings.Global.CAPTIVE_PORTAL_FALLBACK_URL, 407 GlobalSettingsProto.CaptivePortal.FALLBACK_URL); 408 dumpSetting(s, p, 409 Settings.Global.CAPTIVE_PORTAL_OTHER_FALLBACK_URLS, 410 GlobalSettingsProto.CaptivePortal.OTHER_FALLBACK_URLS); 411 dumpSetting(s, p, 412 Settings.Global.CAPTIVE_PORTAL_USE_HTTPS, 413 GlobalSettingsProto.CaptivePortal.USE_HTTPS); 414 dumpSetting(s, p, 415 Settings.Global.CAPTIVE_PORTAL_USER_AGENT, 416 GlobalSettingsProto.CaptivePortal.USER_AGENT); 417 p.end(captivePortalToken); 418 419 final long carrierToken = p.start(GlobalSettingsProto.CARRIER); 420 dumpSetting(s, p, 421 Settings.Global.CARRIER_APP_WHITELIST, 422 GlobalSettingsProto.Carrier.APP_WHITELIST); 423 dumpSetting(s, p, 424 Settings.Global.CARRIER_APP_NAMES, 425 GlobalSettingsProto.Carrier.APP_NAMES); 426 dumpSetting(s, p, 427 Settings.Global.INSTALL_CARRIER_APP_NOTIFICATION_PERSISTENT, 428 GlobalSettingsProto.Carrier.INSTALL_CARRIER_APP_NOTIFICATION_PERSISTENT); 429 dumpSetting(s, p, 430 Settings.Global.INSTALL_CARRIER_APP_NOTIFICATION_SLEEP_MILLIS, 431 GlobalSettingsProto.Carrier.INSTALL_CARRIER_APP_NOTIFICATION_SLEEP_MILLIS); 432 p.end(carrierToken); 433 434 final long cdmaToken = p.start(GlobalSettingsProto.CDMA); 435 dumpSetting(s, p, 436 Settings.Global.CDMA_CELL_BROADCAST_SMS, 437 GlobalSettingsProto.Cdma.CELL_BROADCAST_SMS); 438 dumpSetting(s, p, 439 Settings.Global.CDMA_ROAMING_MODE, 440 GlobalSettingsProto.Cdma.ROAMING_MODE); 441 dumpSetting(s, p, 442 Settings.Global.CDMA_SUBSCRIPTION_MODE, 443 GlobalSettingsProto.Cdma.SUBSCRIPTION_MODE); 444 p.end(cdmaToken); 445 446 dumpSetting(s, p, 447 Settings.Global.CELL_ON, 448 GlobalSettingsProto.CELL_ON); 449 450 final long certPinToken = p.start(GlobalSettingsProto.CERT_PIN); 451 dumpSetting(s, p, 452 Settings.Global.CERT_PIN_UPDATE_CONTENT_URL, 453 GlobalSettingsProto.CertPin.UPDATE_CONTENT_URL); 454 dumpSetting(s, p, 455 Settings.Global.CERT_PIN_UPDATE_METADATA_URL, 456 GlobalSettingsProto.CertPin.UPDATE_METADATA_URL); 457 p.end(certPinToken); 458 459 dumpSetting(s, p, 460 Settings.Global.CHAINED_BATTERY_ATTRIBUTION_ENABLED, 461 GlobalSettingsProto.CHAINED_BATTERY_ATTRIBUTION_ENABLED); 462 dumpSetting(s, p, 463 Settings.Global.COMPATIBILITY_MODE, 464 GlobalSettingsProto.COMPATIBILITY_MODE); 465 466 final long connectivityToken = p.start(GlobalSettingsProto.CONNECTIVITY); 467 dumpSetting(s, p, 468 Settings.Global.CONNECTIVITY_METRICS_BUFFER_SIZE, 469 GlobalSettingsProto.Connectivity.METRICS_BUFFER_SIZE); 470 dumpSetting(s, p, 471 Settings.Global.CONNECTIVITY_CHANGE_DELAY, 472 GlobalSettingsProto.Connectivity.CHANGE_DELAY); 473 dumpSetting(s, p, 474 Settings.Global.CONNECTIVITY_SAMPLING_INTERVAL_IN_SECONDS, 475 GlobalSettingsProto.Connectivity.SAMPLING_INTERVAL_IN_SECONDS); 476 p.end(connectivityToken); 477 478 // Settings.Global.CONTACT_METADATA_SYNC intentionally excluded since it's deprecated. 479 dumpSetting(s, p, 480 Settings.Global.CONTACT_METADATA_SYNC_ENABLED, 481 GlobalSettingsProto.CONTACT_METADATA_SYNC_ENABLED); 482 dumpSetting(s, p, 483 Settings.Global.CONTACTS_DATABASE_WAL_ENABLED, 484 GlobalSettingsProto.CONTACTS_DATABASE_WAL_ENABLED); 485 486 final long dataToken = p.start(GlobalSettingsProto.DATA); 487 // Settings.Global.DEFAULT_RESTRICT_BACKGROUND_DATA intentionally excluded. 488 dumpSetting(s, p, 489 Settings.Global.DATA_ACTIVITY_TIMEOUT_MOBILE, 490 GlobalSettingsProto.Data.ACTIVITY_TIMEOUT_MOBILE); 491 dumpSetting(s, p, 492 Settings.Global.DATA_ACTIVITY_TIMEOUT_WIFI, 493 GlobalSettingsProto.Data.ACTIVITY_TIMEOUT_WIFI); 494 dumpSetting(s, p, 495 Settings.Global.DATA_ROAMING, 496 GlobalSettingsProto.Data.ROAMING); 497 dumpSetting(s, p, 498 Settings.Global.DATA_STALL_ALARM_NON_AGGRESSIVE_DELAY_IN_MS, 499 GlobalSettingsProto.Data.STALL_ALARM_NON_AGGRESSIVE_DELAY_IN_MS); 500 dumpSetting(s, p, 501 Settings.Global.DATA_STALL_ALARM_AGGRESSIVE_DELAY_IN_MS, 502 GlobalSettingsProto.Data.STALL_ALARM_AGGRESSIVE_DELAY_IN_MS); 503 p.end(dataToken); 504 505 final long databaseToken = p.start(GlobalSettingsProto.DATABASE); 506 dumpSetting(s, p, 507 Settings.Global.DATABASE_DOWNGRADE_REASON, 508 GlobalSettingsProto.Database.DOWNGRADE_REASON); 509 dumpSetting(s, p, 510 Settings.Global.DATABASE_CREATION_BUILDID, 511 GlobalSettingsProto.Database.CREATION_BUILDID); 512 p.end(databaseToken); 513 514 final long dateTimeToken = p.start(GlobalSettingsProto.DATE_TIME); 515 dumpSetting(s, p, 516 Settings.Global.AUTO_TIME, 517 GlobalSettingsProto.DateTime.AUTO_TIME); 518 dumpSetting(s, p, 519 Settings.Global.AUTO_TIME_ZONE, 520 GlobalSettingsProto.DateTime.AUTO_TIME_ZONE); 521 p.end(dateTimeToken); 522 523 final long debugToken = p.start(GlobalSettingsProto.DEBUG); 524 dumpSetting(s, p, 525 Settings.Global.DEBUG_APP, 526 GlobalSettingsProto.Debug.APP); 527 dumpSetting(s, p, 528 Settings.Global.DEBUG_VIEW_ATTRIBUTES, 529 GlobalSettingsProto.Debug.VIEW_ATTRIBUTES); 530 dumpSetting(s, p, 531 Settings.Global.DEBUG_VIEW_ATTRIBUTES_APPLICATION_PACKAGE, 532 GlobalSettingsProto.Debug.VIEW_ATTRIBUTES_APPLICATION_PACKAGE); 533 p.end(debugToken); 534 535 final long defaultToken = p.start(GlobalSettingsProto.DEFAULT); 536 // Settings.Global.DEFAULT_SM_DP_PLUS intentionally excluded. 537 dumpSetting(s, p, 538 Settings.Global.DEFAULT_INSTALL_LOCATION, 539 GlobalSettingsProto.Default.INSTALL_LOCATION); 540 dumpSetting(s, p, 541 Settings.Global.DEFAULT_DNS_SERVER, 542 GlobalSettingsProto.Default.DNS_SERVER); 543 p.end(defaultToken); 544 545 final long developmentToken = p.start(GlobalSettingsProto.DEVELOPMENT); 546 dumpSetting(s, p, 547 Settings.Global.DEVELOPMENT_FORCE_RESIZABLE_ACTIVITIES, 548 GlobalSettingsProto.Development.FORCE_RESIZABLE_ACTIVITIES); 549 dumpSetting(s, p, 550 Settings.Global.DEVELOPMENT_ENABLE_FREEFORM_WINDOWS_SUPPORT, 551 GlobalSettingsProto.Development.ENABLE_FREEFORM_WINDOWS_SUPPORT); 552 dumpSetting(s, p, 553 Settings.Global.DEVELOPMENT_SETTINGS_ENABLED, 554 GlobalSettingsProto.Development.SETTINGS_ENABLED); 555 dumpSetting(s, p, 556 Settings.Global.DEVELOPMENT_FORCE_RTL, 557 GlobalSettingsProto.Development.FORCE_RTL); 558 dumpSetting(s, p, 559 Settings.Global.EMULATE_DISPLAY_CUTOUT, 560 GlobalSettingsProto.Development.EMULATE_DISPLAY_CUTOUT); 561 dumpSetting(s, p, 562 Settings.Global.DEVELOPMENT_FORCE_DESKTOP_MODE_ON_EXTERNAL_DISPLAYS, 563 GlobalSettingsProto.Development.FORCE_DESKTOP_MODE_ON_EXTERNAL_DISPLAYS); 564 dumpSetting(s, p, 565 Settings.Global.DEVELOPMENT_ENABLE_NON_RESIZABLE_MULTI_WINDOW, 566 GlobalSettingsProto.Development.ENABLE_NON_RESIZABLE_MULTI_WINDOW); 567 dumpSetting(s, p, 568 Settings.Global.DISABLE_WINDOW_BLURS, 569 GlobalSettingsProto.Development.DISABLE_WINDOW_BLURS); 570 p.end(developmentToken); 571 572 final long deviceToken = p.start(GlobalSettingsProto.DEVICE); 573 dumpSetting(s, p, 574 Settings.Global.DEVICE_NAME, 575 GlobalSettingsProto.Device.NAME); 576 dumpSetting(s, p, 577 Settings.Global.DEVICE_PROVISIONED, 578 GlobalSettingsProto.Device.PROVISIONED); 579 dumpSetting(s, p, 580 Settings.Global.DEVICE_PROVISIONING_MOBILE_DATA_ENABLED, 581 GlobalSettingsProto.Device.PROVISIONING_MOBILE_DATA_ENABLED); 582 dumpSetting(s, p, 583 Settings.Global.DEVICE_POLICY_CONSTANTS, 584 GlobalSettingsProto.Device.POLICY_CONSTANTS); 585 dumpSetting(s, p, 586 Settings.Global.DEVICE_DEMO_MODE, 587 GlobalSettingsProto.Device.DEMO_MODE); 588 p.end(deviceToken); 589 590 dumpSetting(s, p, 591 Settings.Global.DISK_FREE_CHANGE_REPORTING_THRESHOLD, 592 GlobalSettingsProto.DISK_FREE_CHANGE_REPORTING_THRESHOLD); 593 594 final long displayToken = p.start(GlobalSettingsProto.DISPLAY); 595 dumpSetting(s, p, 596 Settings.Global.DISPLAY_SIZE_FORCED, 597 GlobalSettingsProto.Display.SIZE_FORCED); 598 dumpSetting(s, p, 599 Settings.Global.DISPLAY_SCALING_FORCE, 600 GlobalSettingsProto.Display.SCALING_FORCE); 601 dumpSetting(s, p, 602 Settings.Global.DISPLAY_PANEL_LPM, 603 GlobalSettingsProto.Display.PANEL_LPM); 604 p.end(displayToken); 605 606 final long dnsResolverToken = p.start(GlobalSettingsProto.DNS_RESOLVER); 607 dumpSetting(s, p, 608 Settings.Global.DNS_RESOLVER_SAMPLE_VALIDITY_SECONDS, 609 GlobalSettingsProto.DnsResolver.SAMPLE_VALIDITY_SECONDS); 610 dumpSetting(s, p, 611 Settings.Global.DNS_RESOLVER_SUCCESS_THRESHOLD_PERCENT, 612 GlobalSettingsProto.DnsResolver.SUCCESS_THRESHOLD_PERCENT); 613 dumpSetting(s, p, 614 Settings.Global.DNS_RESOLVER_MIN_SAMPLES, 615 GlobalSettingsProto.DnsResolver.MIN_SAMPLES); 616 dumpSetting(s, p, 617 Settings.Global.DNS_RESOLVER_MAX_SAMPLES, 618 GlobalSettingsProto.DnsResolver.MAX_SAMPLES); 619 p.end(dnsResolverToken); 620 621 dumpSetting(s, p, 622 Settings.Global.DOCK_AUDIO_MEDIA_ENABLED, 623 GlobalSettingsProto.DOCK_AUDIO_MEDIA_ENABLED); 624 625 final long downloadToken = p.start(GlobalSettingsProto.DOWNLOAD); 626 dumpSetting(s, p, 627 Settings.Global.DOWNLOAD_MAX_BYTES_OVER_MOBILE, 628 GlobalSettingsProto.Download.MAX_BYTES_OVER_MOBILE); 629 dumpSetting(s, p, 630 Settings.Global.DOWNLOAD_RECOMMENDED_MAX_BYTES_OVER_MOBILE, 631 GlobalSettingsProto.Download.RECOMMENDED_MAX_BYTES_OVER_MOBILE); 632 p.end(downloadToken); 633 634 final long dropboxToken = p.start(GlobalSettingsProto.DROPBOX); 635 dumpSetting(s, p, 636 Settings.Global.DROPBOX_AGE_SECONDS, 637 GlobalSettingsProto.Dropbox.AGE_SECONDS); 638 dumpSetting(s, p, 639 Settings.Global.DROPBOX_MAX_FILES, 640 GlobalSettingsProto.Dropbox.MAX_FILES); 641 dumpSetting(s, p, 642 Settings.Global.DROPBOX_QUOTA_KB, 643 GlobalSettingsProto.Dropbox.QUOTA_KB); 644 dumpSetting(s, p, 645 Settings.Global.DROPBOX_QUOTA_PERCENT, 646 GlobalSettingsProto.Dropbox.QUOTA_PERCENT); 647 dumpSetting(s, p, 648 Settings.Global.DROPBOX_RESERVE_PERCENT, 649 GlobalSettingsProto.Dropbox.RESERVE_PERCENT); 650 dumpRepeatedSetting(s, p, 651 Settings.Global.DROPBOX_TAG_PREFIX, 652 GlobalSettingsProto.Dropbox.SETTINGS); 653 p.end(dropboxToken); 654 655 final long dynamicPowerSavingsToken = p.start(GlobalSettingsProto.DYNAMIC_POWER_SAVINGS); 656 dumpSetting(s, p, 657 Settings.Global.DYNAMIC_POWER_SAVINGS_DISABLE_THRESHOLD, 658 GlobalSettingsProto.DynamicPowerSavings.DISABLE_THRESHOLD); 659 dumpSetting(s, p, 660 Settings.Global.DYNAMIC_POWER_SAVINGS_ENABLED, 661 GlobalSettingsProto.DynamicPowerSavings.ENABLED); 662 p.end(dynamicPowerSavingsToken); 663 664 final long emergencyToken = p.start(GlobalSettingsProto.EMERGENCY); 665 dumpSetting(s, p, 666 Settings.Global.EMERGENCY_TONE, 667 GlobalSettingsProto.Emergency.TONE); 668 dumpSetting(s, p, 669 Settings.Global.EMERGENCY_AFFORDANCE_NEEDED, 670 GlobalSettingsProto.Emergency.AFFORDANCE_NEEDED); 671 p.end(emergencyToken); 672 673 final long enableToken = p.start(GlobalSettingsProto.ENABLE); 674 dumpSetting(s, p, 675 Settings.Global.ENABLE_ACCESSIBILITY_GLOBAL_GESTURE_ENABLED, 676 GlobalSettingsProto.Enable.ACCESSIBILITY_GLOBAL_GESTURE_ENABLED); 677 dumpSetting(s, p, 678 Settings.Global.ENABLE_GPU_DEBUG_LAYERS, 679 GlobalSettingsProto.Enable.GPU_DEBUG_LAYERS); 680 dumpSetting(s, p, 681 Settings.Global.ENABLE_EPHEMERAL_FEATURE, 682 GlobalSettingsProto.Enable.EPHEMERAL_FEATURE); 683 dumpSetting(s, p, 684 Settings.Global.ENABLE_CELLULAR_ON_BOOT, 685 GlobalSettingsProto.Enable.CELLULAR_ON_BOOT); 686 dumpSetting(s, p, 687 Settings.Global.ENABLE_DISKSTATS_LOGGING, 688 GlobalSettingsProto.Enable.DISKSTATS_LOGGING); 689 dumpSetting(s, p, 690 Settings.Global.ENABLE_CACHE_QUOTA_CALCULATION, 691 GlobalSettingsProto.Enable.CACHE_QUOTA_CALCULATION); 692 dumpSetting(s, p, 693 Settings.Global.ENABLE_DELETION_HELPER_NO_THRESHOLD_TOGGLE, 694 GlobalSettingsProto.Enable.DELETION_HELPER_NO_THRESHOLD_TOGGLE); 695 dumpSetting(s, p, 696 Settings.Global.ENABLE_GNSS_RAW_MEAS_FULL_TRACKING, 697 GlobalSettingsProto.Enable.GNSS_RAW_MEAS_FULL_TRACKING); 698 p.end(enableToken); 699 700 dumpSetting(s, p, 701 Settings.Global.ENCODED_SURROUND_OUTPUT, 702 GlobalSettingsProto.ENCODED_SURROUND_OUTPUT); 703 dumpSetting(s, p, 704 Settings.Global.ENHANCED_4G_MODE_ENABLED, 705 GlobalSettingsProto.ENHANCED_4G_MODE_ENABLED); 706 dumpRepeatedSetting(s, p, 707 Settings.Global.ERROR_LOGCAT_PREFIX, 708 GlobalSettingsProto.ERROR_LOGCAT_LINES); 709 dumpRepeatedSetting(s, p, 710 Settings.Global.MAX_ERROR_BYTES_PREFIX, 711 GlobalSettingsProto.MAX_ERROR_BYTES); 712 713 final long managedDeviceProvisioningToken = 714 p.start(GlobalSettingsProto.MANAGED_DEVICE_PROVISIONING); 715 dumpSetting(s, p, 716 Settings.Global.MANAGED_PROVISIONING_DEFER_PROVISIONING_TO_ROLE_HOLDER, 717 GlobalSettingsProto.ManagedDeviceProvisioning 718 .MANAGED_PROVISIONING_DEFER_PROVISIONING_TO_ROLE_HOLDER); 719 p.end(managedDeviceProvisioningToken); 720 721 final long euiccToken = p.start(GlobalSettingsProto.EUICC); 722 dumpSetting(s, p, 723 Settings.Global.EUICC_PROVISIONED, 724 GlobalSettingsProto.Euicc.PROVISIONED); 725 dumpSetting(s, p, 726 Settings.Global.EUICC_FACTORY_RESET_TIMEOUT_MILLIS, 727 GlobalSettingsProto.Euicc.FACTORY_RESET_TIMEOUT_MILLIS); 728 p.end(euiccToken); 729 730 dumpSetting(s, p, 731 Settings.Global.FANCY_IME_ANIMATIONS, 732 GlobalSettingsProto.FANCY_IME_ANIMATIONS); 733 dumpSetting(s, p, 734 Settings.Global.FORCE_ALLOW_ON_EXTERNAL, 735 GlobalSettingsProto.FORCE_ALLOW_ON_EXTERNAL); 736 dumpSetting(s, p, 737 Settings.Global.FPS_DEVISOR, 738 GlobalSettingsProto.FPS_DIVISOR); 739 dumpSetting(s, p, 740 Settings.Global.FSTRIM_MANDATORY_INTERVAL, 741 GlobalSettingsProto.FSTRIM_MANDATORY_INTERVAL); 742 743 final long ghpToken = p.start(GlobalSettingsProto.GLOBAL_HTTP_PROXY); 744 dumpSetting(s, p, 745 Settings.Global.GLOBAL_HTTP_PROXY_HOST, 746 GlobalSettingsProto.GlobalHttpProxy.HOST); 747 dumpSetting(s, p, 748 Settings.Global.GLOBAL_HTTP_PROXY_PORT, 749 GlobalSettingsProto.GlobalHttpProxy.PORT); 750 dumpSetting(s, p, 751 Settings.Global.GLOBAL_HTTP_PROXY_EXCLUSION_LIST, 752 GlobalSettingsProto.GlobalHttpProxy.EXCLUSION_LIST); 753 dumpSetting(s, p, 754 Settings.Global.GLOBAL_HTTP_PROXY_PAC, 755 GlobalSettingsProto.GlobalHttpProxy.PAC); 756 dumpSetting(s, p, 757 Settings.Global.SET_GLOBAL_HTTP_PROXY, 758 GlobalSettingsProto.GlobalHttpProxy.SETTING_UI_ENABLED); 759 p.end(ghpToken); 760 761 dumpSetting(s, p, 762 Settings.Global.GPRS_REGISTER_CHECK_PERIOD_MS, 763 GlobalSettingsProto.GPRS_REGISTER_CHECK_PERIOD_MS); 764 765 final long gpuToken = p.start(GlobalSettingsProto.GPU); 766 dumpSetting(s, p, 767 Settings.Global.GPU_DEBUG_APP, 768 GlobalSettingsProto.Gpu.DEBUG_APP); 769 dumpSetting(s, p, 770 Settings.Global.GPU_DEBUG_LAYERS, 771 GlobalSettingsProto.Gpu.DEBUG_LAYERS); 772 dumpSetting(s, p, 773 Settings.Global.ANGLE_DEBUG_PACKAGE, 774 GlobalSettingsProto.Gpu.ANGLE_DEBUG_PACKAGE); 775 dumpSetting(s, p, 776 Settings.Global.ANGLE_GL_DRIVER_ALL_ANGLE, 777 GlobalSettingsProto.Gpu.ANGLE_GL_DRIVER_ALL_ANGLE); 778 dumpSetting(s, p, 779 Settings.Global.ANGLE_GL_DRIVER_SELECTION_PKGS, 780 GlobalSettingsProto.Gpu.ANGLE_GL_DRIVER_SELECTION_PKGS); 781 dumpSetting(s, p, 782 Settings.Global.ANGLE_GL_DRIVER_SELECTION_VALUES, 783 GlobalSettingsProto.Gpu.ANGLE_GL_DRIVER_SELECTION_VALUES); 784 dumpSetting(s, p, 785 Settings.Global.ANGLE_EGL_FEATURES, 786 GlobalSettingsProto.Gpu.ANGLE_EGL_FEATURES); 787 dumpSetting(s, p, 788 Settings.Global.SHOW_ANGLE_IN_USE_DIALOG_BOX, 789 GlobalSettingsProto.Gpu.SHOW_ANGLE_IN_USE_DIALOG); 790 dumpSetting(s, p, 791 Settings.Global.GPU_DEBUG_LAYER_APP, 792 GlobalSettingsProto.Gpu.DEBUG_LAYER_APP); 793 dumpSetting(s, p, 794 Settings.Global.GPU_DEBUG_LAYERS_GLES, 795 GlobalSettingsProto.Gpu.DEBUG_LAYERS_GLES); 796 dumpSetting(s, p, 797 Settings.Global.UPDATABLE_DRIVER_ALL_APPS, 798 GlobalSettingsProto.Gpu.UPDATABLE_DRIVER_ALL_APPS); 799 dumpSetting(s, p, 800 Settings.Global.UPDATABLE_DRIVER_PRODUCTION_OPT_IN_APPS, 801 GlobalSettingsProto.Gpu.UPDATABLE_DRIVER_PRODUCTION_OPT_IN_APPS); 802 dumpSetting(s, p, 803 Settings.Global.UPDATABLE_DRIVER_PRERELEASE_OPT_IN_APPS, 804 GlobalSettingsProto.Gpu.UPDATABLE_DRIVER_PRERELEASE_OPT_IN_APPS); 805 dumpSetting(s, p, 806 Settings.Global.UPDATABLE_DRIVER_PRODUCTION_OPT_OUT_APPS, 807 GlobalSettingsProto.Gpu.UPDATABLE_DRIVER_PRODUCTION_OPT_OUT_APPS); 808 dumpSetting(s, p, 809 Settings.Global.UPDATABLE_DRIVER_PRODUCTION_DENYLIST, 810 GlobalSettingsProto.Gpu.UPDATABLE_DRIVER_PRODUCTION_DENYLIST); 811 dumpSetting(s, p, 812 Settings.Global.UPDATABLE_DRIVER_PRODUCTION_ALLOWLIST, 813 GlobalSettingsProto.Gpu.UPDATABLE_DRIVER_PRODUCTION_ALLOWLIST); 814 dumpSetting(s, p, 815 Settings.Global.UPDATABLE_DRIVER_PRODUCTION_DENYLISTS, 816 GlobalSettingsProto.Gpu.UPDATABLE_DRIVER_PRODUCTION_DENYLISTS); 817 dumpSetting(s, p, 818 Settings.Global.UPDATABLE_DRIVER_SPHAL_LIBRARIES, 819 GlobalSettingsProto.Gpu.UPDATABLE_DRIVER_SPHAL_LIBRARIES); 820 p.end(gpuToken); 821 822 dumpSetting(s, p, 823 Settings.Global.HEADS_UP_NOTIFICATIONS_ENABLED, 824 GlobalSettingsProto.HEADS_UP_NOTIFICATIONS_ENABLED); 825 dumpSetting(s, p, 826 Settings.Global.HIDDEN_API_BLACKLIST_EXEMPTIONS, 827 GlobalSettingsProto.HIDDEN_API_BLACKLIST_EXEMPTIONS); 828 829 final long inetCondToken = p.start(GlobalSettingsProto.INET_CONDITION); 830 dumpSetting(s, p, 831 Settings.Global.INET_CONDITION_DEBOUNCE_UP_DELAY, 832 GlobalSettingsProto.InetCondition.DEBOUNCE_UP_DELAY); 833 dumpSetting(s, p, 834 Settings.Global.INET_CONDITION_DEBOUNCE_DOWN_DELAY, 835 GlobalSettingsProto.InetCondition.DEBOUNCE_DOWN_DELAY); 836 p.end(inetCondToken); 837 838 final long instantAppToken = p.start(GlobalSettingsProto.INSTANT_APP); 839 dumpSetting(s, p, 840 Settings.Global.INSTANT_APP_DEXOPT_ENABLED, 841 GlobalSettingsProto.InstantApp.DEXOPT_ENABLED); 842 dumpSetting(s, p, 843 Settings.Global.EPHEMERAL_COOKIE_MAX_SIZE_BYTES, 844 GlobalSettingsProto.InstantApp.EPHEMERAL_COOKIE_MAX_SIZE_BYTES); 845 dumpSetting(s, p, 846 Settings.Global.INSTALLED_INSTANT_APP_MIN_CACHE_PERIOD, 847 GlobalSettingsProto.InstantApp.INSTALLED_MIN_CACHE_PERIOD); 848 dumpSetting(s, p, 849 Settings.Global.INSTALLED_INSTANT_APP_MAX_CACHE_PERIOD, 850 GlobalSettingsProto.InstantApp.INSTALLED_MAX_CACHE_PERIOD); 851 dumpSetting(s, p, 852 Settings.Global.UNINSTALLED_INSTANT_APP_MIN_CACHE_PERIOD, 853 GlobalSettingsProto.InstantApp.UNINSTALLED_MIN_CACHE_PERIOD); 854 dumpSetting(s, p, 855 Settings.Global.UNINSTALLED_INSTANT_APP_MAX_CACHE_PERIOD, 856 GlobalSettingsProto.InstantApp.UNINSTALLED_MAX_CACHE_PERIOD); 857 p.end(instantAppToken); 858 859 final long intentFirewallToken = p.start(GlobalSettingsProto.INTENT_FIREWALL); 860 dumpSetting(s, p, 861 Settings.Global.INTENT_FIREWALL_UPDATE_CONTENT_URL, 862 GlobalSettingsProto.IntentFirewall.UPDATE_CONTENT_URL); 863 dumpSetting(s, p, 864 Settings.Global.INTENT_FIREWALL_UPDATE_METADATA_URL, 865 GlobalSettingsProto.IntentFirewall.UPDATE_METADATA_URL); 866 p.end(intentFirewallToken); 867 868 dumpSetting(s, p, 869 Settings.Global.KEEP_PROFILE_IN_BACKGROUND, 870 GlobalSettingsProto.KEEP_PROFILE_IN_BACKGROUND); 871 872 final long langIdToken = p.start(GlobalSettingsProto.LANG_ID); 873 dumpSetting(s, p, 874 Settings.Global.LANG_ID_UPDATE_CONTENT_URL, 875 GlobalSettingsProto.LangId.UPDATE_CONTENT_URL); 876 dumpSetting(s, p, 877 Settings.Global.LANG_ID_UPDATE_METADATA_URL, 878 GlobalSettingsProto.LangId.UPDATE_METADATA_URL); 879 p.end(langIdToken); 880 881 final long locationToken = p.start(GlobalSettingsProto.LOCATION); 882 dumpSetting(s, p, 883 Settings.Global.LOCATION_BACKGROUND_THROTTLE_INTERVAL_MS, 884 GlobalSettingsProto.Location.BACKGROUND_THROTTLE_INTERVAL_MS); 885 dumpSetting(s, p, 886 Settings.Global.LOCATION_BACKGROUND_THROTTLE_PROXIMITY_ALERT_INTERVAL_MS, 887 GlobalSettingsProto.Location.BACKGROUND_THROTTLE_PROXIMITY_ALERT_INTERVAL_MS); 888 dumpSetting(s, p, 889 Settings.Global.LOCATION_BACKGROUND_THROTTLE_PACKAGE_WHITELIST, 890 GlobalSettingsProto.Location.BACKGROUND_THROTTLE_PACKAGE_WHITELIST); 891 dumpSetting(s, p, 892 Settings.Global.LOCATION_SETTINGS_LINK_TO_PERMISSIONS_ENABLED, 893 GlobalSettingsProto.Location.SETTINGS_LINK_TO_PERMISSIONS_ENABLED); 894 dumpSetting(s, p, 895 Settings.Global.GNSS_SATELLITE_BLOCKLIST, 896 GlobalSettingsProto.Location.GNSS_SATELLITE_BLOCKLIST); 897 dumpSetting(s, p, 898 Settings.Global.GNSS_HAL_LOCATION_REQUEST_DURATION_MILLIS, 899 GlobalSettingsProto.Location.GNSS_HAL_LOCATION_REQUEST_DURATION_MILLIS); 900 p.end(locationToken); 901 902 final long lpmToken = p.start(GlobalSettingsProto.LOW_POWER_MODE); 903 dumpSetting(s, p, 904 Settings.Global.LOW_POWER_MODE, 905 GlobalSettingsProto.LowPowerMode.ENABLED); 906 dumpSetting(s, p, 907 Settings.Global.LOW_POWER_MODE_TRIGGER_LEVEL, 908 GlobalSettingsProto.LowPowerMode.TRIGGER_LEVEL); 909 dumpSetting(s, p, 910 Settings.Global.LOW_POWER_MODE_TRIGGER_LEVEL_MAX, 911 GlobalSettingsProto.LowPowerMode.TRIGGER_LEVEL_MAX); 912 dumpSetting(s, p, 913 Settings.Global.AUTOMATIC_POWER_SAVE_MODE, 914 GlobalSettingsProto.LowPowerMode.AUTOMATIC_POWER_SAVER_MODE); 915 dumpSetting(s, p, 916 Settings.Global.LOW_POWER_MODE_STICKY, 917 GlobalSettingsProto.LowPowerMode.STICKY_ENABLED); 918 dumpSetting(s, p, 919 Settings.Global.LOW_POWER_MODE_STICKY_AUTO_DISABLE_ENABLED, 920 GlobalSettingsProto.LowPowerMode.STICKY_AUTO_DISABLE_ENABLED); 921 dumpSetting(s, p, 922 Settings.Global.LOW_POWER_MODE_STICKY_AUTO_DISABLE_LEVEL, 923 GlobalSettingsProto.LowPowerMode.STICKY_AUTO_DISABLE_LEVEL); 924 p.end(lpmToken); 925 926 dumpSetting(s, p, 927 Settings.Global.LTE_SERVICE_FORCED, 928 GlobalSettingsProto.LTE_SERVICE_FORCED); 929 dumpSetting(s, p, 930 Settings.Global.MDC_INITIAL_MAX_RETRY, 931 GlobalSettingsProto.MDC_INITIAL_MAX_RETRY); 932 933 final long mhlToken = p.start(GlobalSettingsProto.MHL); 934 dumpSetting(s, p, 935 Settings.Global.MHL_INPUT_SWITCHING_ENABLED, 936 GlobalSettingsProto.Mhl.INPUT_SWITCHING_ENABLED); 937 dumpSetting(s, p, 938 Settings.Global.MHL_POWER_CHARGE_ENABLED, 939 GlobalSettingsProto.Mhl.POWER_CHARGE_ENABLED); 940 p.end(mhlToken); 941 942 final long mobileDataToken = p.start(GlobalSettingsProto.MOBILE_DATA); 943 dumpSetting(s, p, 944 Settings.Global.MOBILE_DATA, 945 GlobalSettingsProto.MobileData.ALLOWED); 946 dumpSetting(s, p, 947 Settings.Global.MOBILE_DATA_ALWAYS_ON, 948 GlobalSettingsProto.MobileData.ALWAYS_ON); 949 p.end(mobileDataToken); 950 951 dumpSetting(s, p, 952 Settings.Global.MODE_RINGER, 953 GlobalSettingsProto.MODE_RINGER); 954 955 final long multiSimToken = p.start(GlobalSettingsProto.MULTI_SIM); 956 dumpSetting(s, p, 957 Settings.Global.MULTI_SIM_VOICE_CALL_SUBSCRIPTION, 958 GlobalSettingsProto.MultiSim.VOICE_CALL_SUBSCRIPTION); 959 dumpSetting(s, p, 960 Settings.Global.MULTI_SIM_VOICE_PROMPT, 961 GlobalSettingsProto.MultiSim.VOICE_PROMPT); 962 dumpSetting(s, p, 963 Settings.Global.MULTI_SIM_DATA_CALL_SUBSCRIPTION, 964 GlobalSettingsProto.MultiSim.DATA_CALL_SUBSCRIPTION); 965 dumpSetting(s, p, 966 Settings.Global.MULTI_SIM_SMS_SUBSCRIPTION, 967 GlobalSettingsProto.MultiSim.SMS_SUBSCRIPTION); 968 dumpSetting(s, p, 969 Settings.Global.MULTI_SIM_SMS_PROMPT, 970 GlobalSettingsProto.MultiSim.SMS_PROMPT); 971 p.end(multiSimToken); 972 973 dumpSetting(s, p, 974 Settings.Global.NATIVE_FLAGS_HEALTH_CHECK_ENABLED, 975 GlobalSettingsProto.NATIVE_FLAGS_HEALTH_CHECK_ENABLED); 976 977 final long netstatsToken = p.start(GlobalSettingsProto.NETSTATS); 978 dumpSetting(s, p, 979 Settings.Global.NETSTATS_ENABLED, 980 GlobalSettingsProto.Netstats.ENABLED); 981 dumpSetting(s, p, 982 Settings.Global.NETSTATS_POLL_INTERVAL, 983 GlobalSettingsProto.Netstats.POLL_INTERVAL); 984 dumpSetting(s, p, 985 Settings.Global.NETSTATS_TIME_CACHE_MAX_AGE, 986 GlobalSettingsProto.Netstats.TIME_CACHE_MAX_AGE); 987 dumpSetting(s, p, 988 Settings.Global.NETSTATS_GLOBAL_ALERT_BYTES, 989 GlobalSettingsProto.Netstats.GLOBAL_ALERT_BYTES); 990 dumpSetting(s, p, 991 Settings.Global.NETSTATS_SAMPLE_ENABLED, 992 GlobalSettingsProto.Netstats.SAMPLE_ENABLED); 993 dumpSetting(s, p, 994 Settings.Global.NETSTATS_AUGMENT_ENABLED, 995 GlobalSettingsProto.Netstats.AUGMENT_ENABLED); 996 dumpSetting(s, p, 997 Settings.Global.NETSTATS_DEV_BUCKET_DURATION, 998 GlobalSettingsProto.Netstats.DEV_BUCKET_DURATION); 999 dumpSetting(s, p, 1000 Settings.Global.NETSTATS_DEV_PERSIST_BYTES, 1001 GlobalSettingsProto.Netstats.DEV_PERSIST_BYTES); 1002 dumpSetting(s, p, 1003 Settings.Global.NETSTATS_DEV_ROTATE_AGE, 1004 GlobalSettingsProto.Netstats.DEV_ROTATE_AGE); 1005 dumpSetting(s, p, 1006 Settings.Global.NETSTATS_DEV_DELETE_AGE, 1007 GlobalSettingsProto.Netstats.DEV_DELETE_AGE); 1008 dumpSetting(s, p, 1009 Settings.Global.NETSTATS_UID_BUCKET_DURATION, 1010 GlobalSettingsProto.Netstats.UID_BUCKET_DURATION); 1011 dumpSetting(s, p, 1012 Settings.Global.NETSTATS_UID_PERSIST_BYTES, 1013 GlobalSettingsProto.Netstats.UID_PERSIST_BYTES); 1014 dumpSetting(s, p, 1015 Settings.Global.NETSTATS_UID_ROTATE_AGE, 1016 GlobalSettingsProto.Netstats.UID_ROTATE_AGE); 1017 dumpSetting(s, p, 1018 Settings.Global.NETSTATS_UID_DELETE_AGE, 1019 GlobalSettingsProto.Netstats.UID_DELETE_AGE); 1020 dumpSetting(s, p, 1021 Settings.Global.NETSTATS_UID_TAG_BUCKET_DURATION, 1022 GlobalSettingsProto.Netstats.UID_TAG_BUCKET_DURATION); 1023 dumpSetting(s, p, 1024 Settings.Global.NETSTATS_UID_TAG_PERSIST_BYTES, 1025 GlobalSettingsProto.Netstats.UID_TAG_PERSIST_BYTES); 1026 dumpSetting(s, p, 1027 Settings.Global.NETSTATS_UID_TAG_ROTATE_AGE, 1028 GlobalSettingsProto.Netstats.UID_TAG_ROTATE_AGE); 1029 dumpSetting(s, p, 1030 Settings.Global.NETSTATS_UID_TAG_DELETE_AGE, 1031 GlobalSettingsProto.Netstats.UID_TAG_DELETE_AGE); 1032 p.end(netstatsToken); 1033 1034 final long networkToken = p.start(GlobalSettingsProto.NETWORK); 1035 dumpSetting(s, p, 1036 Settings.Global.NETWORK_PREFERENCE, 1037 GlobalSettingsProto.Network.PREFERENCE); 1038 dumpSetting(s, p, 1039 Settings.Global.PREFERRED_NETWORK_MODE, 1040 GlobalSettingsProto.Network.PREFERRED_NETWORK_MODE); 1041 dumpSetting(s, p, 1042 Settings.Global.NETWORK_SCORER_APP, 1043 GlobalSettingsProto.Network.SCORER_APP); 1044 dumpSetting(s, p, 1045 Settings.Global.NETWORK_SWITCH_NOTIFICATION_DAILY_LIMIT, 1046 GlobalSettingsProto.Network.SWITCH_NOTIFICATION_DAILY_LIMIT); 1047 dumpSetting(s, p, 1048 Settings.Global.NETWORK_SWITCH_NOTIFICATION_RATE_LIMIT_MILLIS, 1049 GlobalSettingsProto.Network.SWITCH_NOTIFICATION_RATE_LIMIT_MILLIS); 1050 dumpSetting(s, p, 1051 Settings.Global.NETWORK_AVOID_BAD_WIFI, 1052 GlobalSettingsProto.Network.AVOID_BAD_WIFI); 1053 dumpSetting(s, p, 1054 Settings.Global.NETWORK_METERED_MULTIPATH_PREFERENCE, 1055 GlobalSettingsProto.Network.METERED_MULTIPATH_PREFERENCE); 1056 dumpSetting(s, p, 1057 Settings.Global.NETWORK_WATCHLIST_LAST_REPORT_TIME, 1058 GlobalSettingsProto.Network.WATCHLIST_LAST_REPORT_TIME); 1059 dumpSetting(s, p, 1060 Settings.Global.NETWORK_SCORING_UI_ENABLED, 1061 GlobalSettingsProto.Network.SCORING_UI_ENABLED); 1062 dumpSetting(s, p, 1063 Settings.Global.NETWORK_RECOMMENDATIONS_ENABLED, 1064 GlobalSettingsProto.Network.RECOMMENDATIONS_ENABLED); 1065 dumpSetting(s, p, 1066 Settings.Global.NETWORK_RECOMMENDATIONS_PACKAGE, 1067 GlobalSettingsProto.Network.RECOMMENDATIONS_PACKAGE); 1068 dumpSetting(s, p, 1069 Settings.Global.NETWORK_WATCHLIST_ENABLED, 1070 GlobalSettingsProto.Network.WATCHLIST_ENABLED); 1071 dumpSetting(s, p, 1072 Settings.Global.NETWORK_SCORING_PROVISIONED, 1073 GlobalSettingsProto.Network.SCORING_PROVISIONED); 1074 dumpSetting(s, p, 1075 Settings.Global.RECOMMENDED_NETWORK_EVALUATOR_CACHE_EXPIRY_MS, 1076 GlobalSettingsProto.Network.RECOMMENDED_NETWORK_EVALUATOR_CACHE_EXPIRY_MS); 1077 p.end(networkToken); 1078 1079 dumpSetting(s, p, 1080 Settings.Global.NEW_CONTACT_AGGREGATOR, 1081 GlobalSettingsProto.NEW_CONTACT_AGGREGATOR); 1082 dumpSetting(s, p, 1083 Settings.Global.NIGHT_DISPLAY_FORCED_AUTO_MODE_AVAILABLE, 1084 GlobalSettingsProto.NIGHT_DISPLAY_FORCED_AUTO_MODE_AVAILABLE); 1085 1086 final long nitzToken = p.start(GlobalSettingsProto.NITZ); 1087 dumpSetting(s, p, 1088 Settings.Global.NITZ_UPDATE_DIFF, 1089 GlobalSettingsProto.Nitz.UPDATE_DIFF); 1090 dumpSetting(s, p, 1091 Settings.Global.NITZ_UPDATE_SPACING, 1092 GlobalSettingsProto.Nitz.UPDATE_SPACING); 1093 dumpSetting(s, p, 1094 Settings.Global.NITZ_NETWORK_DISCONNECT_RETENTION, 1095 GlobalSettingsProto.Nitz.NETWORK_DISCONNECT_RETENTION); 1096 p.end(nitzToken); 1097 1098 final long notificationToken = p.start(GlobalSettingsProto.NOTIFICATION); 1099 dumpSetting(s, p, 1100 Settings.Global.MAX_NOTIFICATION_ENQUEUE_RATE, 1101 GlobalSettingsProto.Notification.MAX_NOTIFICATION_ENQUEUE_RATE); 1102 dumpSetting(s, p, 1103 Settings.Global.SHOW_NOTIFICATION_CHANNEL_WARNINGS, 1104 GlobalSettingsProto.Notification.SHOW_NOTIFICATION_CHANNEL_WARNINGS); 1105 // The list of snooze options for notifications. This is encoded as a key=value list, 1106 // separated by commas. 1107 dumpSetting(s, p, 1108 Settings.Global.NOTIFICATION_SNOOZE_OPTIONS, 1109 GlobalSettingsProto.Notification.SNOOZE_OPTIONS); 1110 dumpSetting(s, p, 1111 Settings.Global.SMART_REPLIES_IN_NOTIFICATIONS_FLAGS, 1112 GlobalSettingsProto.Notification.SMART_REPLIES_IN_NOTIFICATIONS_FLAGS); 1113 dumpSetting(s, p, 1114 Settings.Global.SMART_SUGGESTIONS_IN_NOTIFICATIONS_FLAGS, 1115 GlobalSettingsProto.Notification.SMART_SUGGESTIONS_IN_NOTIFICATIONS_FLAGS); 1116 dumpSetting(s, p, 1117 Settings.Global.DISABLE_SCREEN_SHARE_PROTECTIONS_FOR_APPS_AND_NOTIFICATIONS, 1118 GlobalSettingsProto.Notification 1119 .DISABLE_SCREEN_SHARE_PROTECTIONS_FOR_APPS_AND_NOTIFICATIONS); 1120 p.end(notificationToken); 1121 1122 dumpSetting(s, p, 1123 Settings.Global.NR_NSA_TRACKING_SCREEN_OFF_MODE, 1124 GlobalSettingsProto.NR_NSA_TRACKING_SCREEN_OFF_MODE); 1125 1126 final long ntpToken = p.start(GlobalSettingsProto.NTP); 1127 dumpSetting(s, p, 1128 Settings.Global.NTP_SERVER, 1129 GlobalSettingsProto.Ntp.SERVER); 1130 dumpSetting(s, p, 1131 Settings.Global.NTP_TIMEOUT, 1132 GlobalSettingsProto.Ntp.TIMEOUT_MS); 1133 p.end(ntpToken); 1134 1135 final long uasbToken = p.start(GlobalSettingsProto.USER_ABSENT_SMALL_BATTERY); 1136 dumpSetting(s, p, 1137 Settings.Global.USER_ABSENT_RADIOS_OFF_FOR_SMALL_BATTERY_ENABLED, 1138 GlobalSettingsProto.UserAbsentSmallBattery.RADIOS_OFF_ENABLED); 1139 dumpSetting(s, p, 1140 Settings.Global.USER_ABSENT_TOUCH_OFF_FOR_SMALL_BATTERY_ENABLED, 1141 GlobalSettingsProto.UserAbsentSmallBattery.TOUCH_OFF_ENABLED); 1142 p.end(uasbToken); 1143 1144 dumpSetting(s, p, 1145 Settings.Global.OTA_DISABLE_AUTOMATIC_UPDATE, 1146 GlobalSettingsProto.OTA_DISABLE_AUTOMATIC_UPDATE); 1147 dumpSetting(s, p, 1148 Settings.Global.OVERLAY_DISPLAY_DEVICES, 1149 GlobalSettingsProto.OVERLAY_DISPLAY_DEVICES); 1150 dumpSetting(s, p, 1151 Settings.Global.OVERRIDE_SETTINGS_PROVIDER_RESTORE_ANY_VERSION, 1152 GlobalSettingsProto.OVERRIDE_SETTINGS_PROVIDER_RESTORE_ANY_VERSION); 1153 dumpSetting(s, p, 1154 Settings.Global.PAC_CHANGE_DELAY, 1155 GlobalSettingsProto.PAC_CHANGE_DELAY); 1156 1157 final long pkgVerifierToken = p.start(GlobalSettingsProto.PACKAGE_VERIFIER); 1158 dumpSetting(s, p, 1159 Settings.Global.PACKAGE_VERIFIER_TIMEOUT, 1160 GlobalSettingsProto.PackageVerifier.TIMEOUT); 1161 dumpSetting(s, p, 1162 Settings.Global.PACKAGE_VERIFIER_DEFAULT_RESPONSE, 1163 GlobalSettingsProto.PackageVerifier.DEFAULT_RESPONSE); 1164 dumpSetting(s, p, 1165 Settings.Global.PACKAGE_VERIFIER_SETTING_VISIBLE, 1166 GlobalSettingsProto.PackageVerifier.SETTING_VISIBLE); 1167 dumpSetting(s, p, 1168 Settings.Global.PACKAGE_VERIFIER_INCLUDE_ADB, 1169 GlobalSettingsProto.PackageVerifier.INCLUDE_ADB); 1170 p.end(pkgVerifierToken); 1171 1172 final long pdpWatchdogToken = p.start(GlobalSettingsProto.PDP_WATCHDOG); 1173 dumpSetting(s, p, 1174 Settings.Global.PDP_WATCHDOG_POLL_INTERVAL_MS, 1175 GlobalSettingsProto.PdpWatchdog.POLL_INTERVAL_MS); 1176 dumpSetting(s, p, 1177 Settings.Global.PDP_WATCHDOG_LONG_POLL_INTERVAL_MS, 1178 GlobalSettingsProto.PdpWatchdog.LONG_POLL_INTERVAL_MS); 1179 dumpSetting(s, p, 1180 Settings.Global.PDP_WATCHDOG_ERROR_POLL_INTERVAL_MS, 1181 GlobalSettingsProto.PdpWatchdog.ERROR_POLL_INTERVAL_MS); 1182 dumpSetting(s, p, 1183 Settings.Global.PDP_WATCHDOG_TRIGGER_PACKET_COUNT, 1184 GlobalSettingsProto.PdpWatchdog.TRIGGER_PACKET_COUNT); 1185 dumpSetting(s, p, 1186 Settings.Global.PDP_WATCHDOG_ERROR_POLL_COUNT, 1187 GlobalSettingsProto.PdpWatchdog.ERROR_POLL_COUNT); 1188 dumpSetting(s, p, 1189 Settings.Global.PDP_WATCHDOG_MAX_PDP_RESET_FAIL_COUNT, 1190 GlobalSettingsProto.PdpWatchdog.MAX_PDP_RESET_FAIL_COUNT); 1191 p.end(pdpWatchdogToken); 1192 1193 dumpSetting(s, p, 1194 Settings.Global.POLICY_CONTROL, 1195 GlobalSettingsProto.POLICY_CONTROL); 1196 dumpSetting(s, p, 1197 Settings.Global.POWER_MANAGER_CONSTANTS, 1198 GlobalSettingsProto.POWER_MANAGER_CONSTANTS); 1199 dumpSetting(s, p, 1200 Settings.Global.POWER_BUTTON_LONG_PRESS_DURATION_MS, 1201 GlobalSettingsProto.POWER_BUTTON_LONG_PRESS_DURATION_MS); 1202 1203 final long prepaidSetupToken = p.start(GlobalSettingsProto.PREPAID_SETUP); 1204 dumpSetting(s, p, 1205 Settings.Global.SETUP_PREPAID_DATA_SERVICE_URL, 1206 GlobalSettingsProto.PrepaidSetup.DATA_SERVICE_URL); 1207 dumpSetting(s, p, 1208 Settings.Global.SETUP_PREPAID_DETECTION_TARGET_URL, 1209 GlobalSettingsProto.PrepaidSetup.DETECTION_TARGET_URL); 1210 dumpSetting(s, p, 1211 Settings.Global.SETUP_PREPAID_DETECTION_REDIR_HOST, 1212 GlobalSettingsProto.PrepaidSetup.DETECTION_REDIR_HOST); 1213 p.end(prepaidSetupToken); 1214 1215 final long privateToken = p.start(GlobalSettingsProto.PRIVATE); 1216 dumpSetting(s, p, 1217 Settings.Global.PRIVATE_DNS_MODE, 1218 GlobalSettingsProto.Private.DNS_MODE); 1219 dumpSetting(s, p, 1220 Settings.Global.PRIVATE_DNS_SPECIFIER, 1221 GlobalSettingsProto.Private.DNS_SPECIFIER); 1222 p.end(privateToken); 1223 1224 dumpSetting(s, p, 1225 Settings.Global.PROVISIONING_APN_ALARM_DELAY_IN_MS, 1226 GlobalSettingsProto.PROVISIONING_APN_ALARM_DELAY_IN_MS); 1227 dumpSetting(s, p, 1228 Settings.Global.READ_EXTERNAL_STORAGE_ENFORCED_DEFAULT, 1229 GlobalSettingsProto.READ_EXTERNAL_STORAGE_ENFORCED_DEFAULT); 1230 dumpSetting(s, p, 1231 Settings.Global.REQUIRE_PASSWORD_TO_DECRYPT, 1232 GlobalSettingsProto.REQUIRE_PASSWORD_TO_DECRYPT); 1233 dumpSetting(s, p, 1234 Settings.Global.SAFE_BOOT_DISALLOWED, 1235 GlobalSettingsProto.SAFE_BOOT_DISALLOWED); 1236 1237 final long selinuxToken = p.start(GlobalSettingsProto.SELINUX); 1238 dumpSetting(s, p, 1239 Settings.Global.SELINUX_UPDATE_CONTENT_URL, 1240 GlobalSettingsProto.Selinux.UPDATE_CONTENT_URL); 1241 dumpSetting(s, p, 1242 Settings.Global.SELINUX_UPDATE_METADATA_URL, 1243 GlobalSettingsProto.Selinux.UPDATE_METADATA_URL); 1244 dumpSetting(s, p, 1245 Settings.Global.SELINUX_STATUS, 1246 GlobalSettingsProto.Selinux.STATUS); 1247 p.end(selinuxToken); 1248 1249 dumpSetting(s, p, 1250 Settings.Global.SEND_ACTION_APP_ERROR, 1251 GlobalSettingsProto.SEND_ACTION_APP_ERROR); 1252 dumpSetting(s, p, 1253 Settings.Global.SET_INSTALL_LOCATION, 1254 GlobalSettingsProto.SET_INSTALL_LOCATION); 1255 dumpSetting(s, p, 1256 Settings.Global.SHORTCUT_MANAGER_CONSTANTS, 1257 GlobalSettingsProto.SHORTCUT_MANAGER_CONSTANTS); 1258 dumpSetting(s, p, 1259 Settings.Global.SHOW_FIRST_CRASH_DIALOG, 1260 GlobalSettingsProto.SHOW_FIRST_CRASH_DIALOG); 1261 dumpSetting(s, p, 1262 Settings.Global.SHOW_HIDDEN_LAUNCHER_ICON_APPS_ENABLED, 1263 GlobalSettingsProto.SHOW_HIDDEN_LAUNCHER_ICON_APPS_ENABLED); 1264 // Settings.Global.SHOW_PROCESSES intentionally excluded since it's deprecated. 1265 dumpSetting(s, p, 1266 Settings.Global.SHOW_RESTART_IN_CRASH_DIALOG, 1267 GlobalSettingsProto.SHOW_RESTART_IN_CRASH_DIALOG); 1268 dumpSetting(s, p, 1269 Settings.Global.SHOW_MUTE_IN_CRASH_DIALOG, 1270 GlobalSettingsProto.SHOW_MUTE_IN_CRASH_DIALOG); 1271 dumpSetting(s, p, 1272 Settings.Global.SHOW_NEW_APP_INSTALLED_NOTIFICATION_ENABLED, 1273 GlobalSettingsProto.SHOW_NEW_APP_INSTALLED_NOTIFICATION_ENABLED); 1274 1275 final long smartSelectToken = p.start(GlobalSettingsProto.SMART_SELECTION); 1276 dumpSetting(s, p, 1277 Settings.Global.SMART_SELECTION_UPDATE_CONTENT_URL, 1278 GlobalSettingsProto.SmartSelection.UPDATE_CONTENT_URL); 1279 dumpSetting(s, p, 1280 Settings.Global.SMART_SELECTION_UPDATE_METADATA_URL, 1281 GlobalSettingsProto.SmartSelection.UPDATE_METADATA_URL); 1282 p.end(smartSelectToken); 1283 1284 final long smsToken = p.start(GlobalSettingsProto.SMS); 1285 dumpSetting(s, p, 1286 Settings.Global.SMS_OUTGOING_CHECK_INTERVAL_MS, 1287 GlobalSettingsProto.Sms.OUTGOING_CHECK_INTERVAL_MS); 1288 dumpSetting(s, p, 1289 Settings.Global.SMS_OUTGOING_CHECK_MAX_COUNT, 1290 GlobalSettingsProto.Sms.OUTGOING_CHECK_MAX_COUNT); 1291 dumpSetting(s, p, 1292 Settings.Global.SMS_SHORT_CODE_CONFIRMATION, 1293 GlobalSettingsProto.Sms.SHORT_CODE_CONFIRMATION); 1294 dumpSetting(s, p, 1295 Settings.Global.SMS_SHORT_CODE_RULE, 1296 GlobalSettingsProto.Sms.SHORT_CODE_RULE); 1297 dumpSetting(s, p, 1298 Settings.Global.SMS_SHORT_CODES_UPDATE_CONTENT_URL, 1299 GlobalSettingsProto.Sms.SHORT_CODES_UPDATE_CONTENT_URL); 1300 dumpSetting(s, p, 1301 Settings.Global.SMS_SHORT_CODES_UPDATE_METADATA_URL, 1302 GlobalSettingsProto.Sms.SHORT_CODES_UPDATE_METADATA_URL); 1303 p.end(smsToken); 1304 1305 final long soundsToken = p.start(GlobalSettingsProto.SOUNDS); 1306 dumpSetting(s, p, 1307 Settings.Global.CAR_DOCK_SOUND, 1308 GlobalSettingsProto.Sounds.CAR_DOCK); 1309 dumpSetting(s, p, 1310 Settings.Global.CAR_UNDOCK_SOUND, 1311 GlobalSettingsProto.Sounds.CAR_UNDOCK); 1312 dumpSetting(s, p, 1313 Settings.Global.DESK_DOCK_SOUND, 1314 GlobalSettingsProto.Sounds.DESK_DOCK); 1315 dumpSetting(s, p, 1316 Settings.Global.DESK_UNDOCK_SOUND, 1317 GlobalSettingsProto.Sounds.DESK_UNDOCK); 1318 dumpSetting(s, p, 1319 Settings.Global.DOCK_SOUNDS_ENABLED, 1320 GlobalSettingsProto.Sounds.DOCK_SOUNDS_ENABLED); 1321 dumpSetting(s, p, 1322 Settings.Global.DOCK_SOUNDS_ENABLED_WHEN_ACCESSIBILITY, 1323 GlobalSettingsProto.Sounds.DOCK_SOUNDS_ENABLED_WHEN_ACCESSIBILITY); 1324 dumpSetting(s, p, 1325 Settings.Global.LOCK_SOUND, 1326 GlobalSettingsProto.Sounds.LOCK); 1327 dumpSetting(s, p, 1328 Settings.Global.UNLOCK_SOUND, 1329 GlobalSettingsProto.Sounds.UNLOCK); 1330 dumpSetting(s, p, 1331 Settings.Global.TRUSTED_SOUND, 1332 GlobalSettingsProto.Sounds.TRUSTED); 1333 dumpSetting(s, p, 1334 Settings.Global.LOW_BATTERY_SOUND, 1335 GlobalSettingsProto.Sounds.LOW_BATTERY); 1336 dumpSetting(s, p, 1337 Settings.Global.LOW_BATTERY_SOUND_TIMEOUT, 1338 GlobalSettingsProto.Sounds.LOW_BATTERY_SOUND_TIMEOUT); 1339 dumpSetting(s, p, 1340 Settings.Global.POWER_SOUNDS_ENABLED, 1341 GlobalSettingsProto.Sounds.LOW_BATTERY_SOUNDS_ENABLED); 1342 dumpSetting(s, p, 1343 Settings.Global.CHARGING_STARTED_SOUND, 1344 GlobalSettingsProto.Sounds.CHARGING_STARTED); 1345 dumpSetting(s, p, 1346 Settings.Global.WIRELESS_CHARGING_STARTED_SOUND, 1347 GlobalSettingsProto.Sounds.WIRELESS_CHARGING_STARTED); 1348 p.end(soundsToken); 1349 1350 final long soundTriggerToken = p.start(GlobalSettingsProto.SOUND_TRIGGER); 1351 dumpSetting(s, p, 1352 Settings.Global.MAX_SOUND_TRIGGER_DETECTION_SERVICE_OPS_PER_DAY, 1353 GlobalSettingsProto.SoundTrigger.MAX_SOUND_TRIGGER_DETECTION_SERVICE_OPS_PER_DAY); 1354 dumpSetting(s, p, 1355 Settings.Global.SOUND_TRIGGER_DETECTION_SERVICE_OP_TIMEOUT, 1356 GlobalSettingsProto.SoundTrigger.DETECTION_SERVICE_OP_TIMEOUT_MS); 1357 p.end(soundTriggerToken); 1358 1359 dumpSetting(s, p, 1360 Settings.Global.SPEED_LABEL_CACHE_EVICTION_AGE_MILLIS, 1361 GlobalSettingsProto.SPEED_LABEL_CACHE_EVICTION_AGE_MS); 1362 dumpSetting(s, p, 1363 Settings.Global.SQLITE_COMPATIBILITY_WAL_FLAGS, 1364 GlobalSettingsProto.SQLITE_COMPATIBILITY_WAL_FLAGS); 1365 dumpSetting(s, p, 1366 Settings.Global.STAY_ON_WHILE_PLUGGED_IN, 1367 GlobalSettingsProto.STAY_ON_WHILE_PLUGGED_IN); 1368 1369 final long storageToken = p.start(GlobalSettingsProto.STORAGE); 1370 dumpSetting(s, p, 1371 Settings.Global.STORAGE_BENCHMARK_INTERVAL, 1372 GlobalSettingsProto.Storage.BENCHMARK_INTERVAL); 1373 dumpSetting(s, p, 1374 Settings.Global.STORAGE_SETTINGS_CLOBBER_THRESHOLD, 1375 GlobalSettingsProto.Storage.SETTINGS_CLOBBER_THRESHOLD); 1376 p.end(storageToken); 1377 1378 final long syncToken = p.start(GlobalSettingsProto.SYNC); 1379 dumpSetting(s, p, 1380 Settings.Global.SYNC_MAX_RETRY_DELAY_IN_SECONDS, 1381 GlobalSettingsProto.Sync.MAX_RETRY_DELAY_IN_SECONDS); 1382 dumpSetting(s, p, 1383 Settings.Global.SYNC_MANAGER_CONSTANTS, 1384 GlobalSettingsProto.Sync.MANAGER_CONSTANTS); 1385 p.end(syncToken); 1386 1387 final long sysToken = p.start(GlobalSettingsProto.SYS); 1388 dumpSetting(s, p, 1389 Settings.Global.SYS_FREE_STORAGE_LOG_INTERVAL, 1390 GlobalSettingsProto.Sys.FREE_STORAGE_LOG_INTERVAL_MINS); 1391 dumpSetting(s, p, 1392 Settings.Global.SYS_STORAGE_THRESHOLD_PERCENTAGE, 1393 GlobalSettingsProto.Sys.STORAGE_THRESHOLD_PERCENTAGE); 1394 dumpSetting(s, p, 1395 Settings.Global.SYS_STORAGE_THRESHOLD_MAX_BYTES, 1396 GlobalSettingsProto.Sys.STORAGE_THRESHOLD_MAX_BYTES); 1397 dumpSetting(s, p, 1398 Settings.Global.SYS_STORAGE_FULL_THRESHOLD_BYTES, 1399 GlobalSettingsProto.Sys.STORAGE_FULL_THRESHOLD_BYTES); 1400 dumpSetting(s, p, 1401 Settings.Global.SYS_STORAGE_CACHE_PERCENTAGE, 1402 GlobalSettingsProto.Sys.STORAGE_CACHE_PERCENTAGE); 1403 dumpSetting(s, p, 1404 Settings.Global.SYS_UIDCPUPOWER, 1405 GlobalSettingsProto.Sys.UIDCPUPOWER); 1406 p.end(sysToken); 1407 1408 dumpSetting(s, p, 1409 Settings.Global.TCP_DEFAULT_INIT_RWND, 1410 GlobalSettingsProto.TCP_DEFAULT_INIT_RWND); 1411 1412 final long tempWarningToken = p.start(GlobalSettingsProto.TEMPERATURE_WARNING); 1413 dumpSetting(s, p, 1414 Settings.Global.SHOW_TEMPERATURE_WARNING, 1415 GlobalSettingsProto.TemperatureWarning.SHOW_TEMPERATURE_WARNING); 1416 dumpSetting(s, p, 1417 Settings.Global.SHOW_USB_TEMPERATURE_ALARM, 1418 GlobalSettingsProto.TemperatureWarning.SHOW_USB_TEMPERATURE_ALARM); 1419 dumpSetting(s, p, 1420 Settings.Global.WARNING_TEMPERATURE, 1421 GlobalSettingsProto.TemperatureWarning.WARNING_TEMPERATURE_LEVEL); 1422 p.end(tempWarningToken); 1423 1424 final long tetherToken = p.start(GlobalSettingsProto.TETHER); 1425 dumpSetting(s, p, 1426 Settings.Global.TETHER_SUPPORTED, 1427 GlobalSettingsProto.Tether.SUPPORTED); 1428 dumpSetting(s, p, 1429 Settings.Global.TETHER_DUN_REQUIRED, 1430 GlobalSettingsProto.Tether.DUN_REQUIRED); 1431 dumpSetting(s, p, 1432 Settings.Global.TETHER_DUN_APN, 1433 GlobalSettingsProto.Tether.DUN_APN); 1434 dumpSetting(s, p, 1435 Settings.Global.TETHER_OFFLOAD_DISABLED, 1436 GlobalSettingsProto.Tether.OFFLOAD_DISABLED); 1437 dumpSetting(s, p, 1438 Settings.Global.SOFT_AP_TIMEOUT_ENABLED, 1439 GlobalSettingsProto.Tether.TIMEOUT_ENABLED); 1440 p.end(tetherToken); 1441 1442 dumpSetting(s, p, 1443 Settings.Global.TEXT_CLASSIFIER_CONSTANTS, 1444 GlobalSettingsProto.TEXT_CLASSIFIER_CONSTANTS); 1445 dumpSetting(s, p, 1446 Settings.Global.TEXT_CLASSIFIER_ACTION_MODEL_PARAMS, 1447 GlobalSettingsProto.TEXT_CLASSIFIER_ACTION_MODEL_PARAMS); 1448 dumpSetting(s, p, 1449 Settings.Global.THEATER_MODE_ON, 1450 GlobalSettingsProto.THEATER_MODE_ON); 1451 dumpSetting(s, p, 1452 Settings.Global.TIME_ONLY_MODE_CONSTANTS, 1453 GlobalSettingsProto.TIME_ONLY_MODE_CONSTANTS); 1454 dumpSetting(s, p, 1455 Settings.Global.TRANSITION_ANIMATION_SCALE, 1456 GlobalSettingsProto.TRANSITION_ANIMATION_SCALE); 1457 1458 final long tzinfoToken = p.start(GlobalSettingsProto.TZINFO); 1459 dumpSetting(s, p, 1460 Settings.Global.TZINFO_UPDATE_CONTENT_URL, 1461 GlobalSettingsProto.Tzinfo.UPDATE_CONTENT_URL); 1462 dumpSetting(s, p, 1463 Settings.Global.TZINFO_UPDATE_METADATA_URL, 1464 GlobalSettingsProto.Tzinfo.UPDATE_METADATA_URL); 1465 p.end(tzinfoToken); 1466 1467 dumpSetting(s, p, 1468 Settings.Global.UNUSED_STATIC_SHARED_LIB_MIN_CACHE_PERIOD, 1469 GlobalSettingsProto.UNUSED_STATIC_SHARED_LIB_MIN_CACHE_PERIOD_MS); 1470 dumpSetting(s, p, 1471 Settings.Global.USB_MASS_STORAGE_ENABLED, 1472 GlobalSettingsProto.USB_MASS_STORAGE_ENABLED); 1473 dumpSetting(s, p, 1474 Settings.Global.USE_GOOGLE_MAIL, 1475 GlobalSettingsProto.USE_GOOGLE_MAIL); 1476 dumpSetting(s, p, 1477 Settings.Global.USE_OPEN_WIFI_PACKAGE, 1478 GlobalSettingsProto.USE_OPEN_WIFI_PACKAGE); 1479 dumpSetting(s, p, 1480 Settings.Global.UWB_ENABLED, 1481 GlobalSettingsProto.UWB_ENABLED); 1482 dumpSetting(s, p, 1483 Settings.Global.VT_IMS_ENABLED, 1484 GlobalSettingsProto.VT_IMS_ENABLED); 1485 dumpSetting(s, p, 1486 Settings.Global.WAIT_FOR_DEBUGGER, 1487 GlobalSettingsProto.WAIT_FOR_DEBUGGER); 1488 1489 final long webviewToken = p.start(GlobalSettingsProto.WEBVIEW); 1490 dumpSetting(s, p, 1491 Settings.Global.WEBVIEW_DATA_REDUCTION_PROXY_KEY, 1492 GlobalSettingsProto.Webview.DATA_REDUCTION_PROXY_KEY); 1493 dumpSetting(s, p, 1494 Settings.Global.WEBVIEW_PROVIDER, 1495 GlobalSettingsProto.Webview.PROVIDER); 1496 dumpSetting(s, p, 1497 Settings.Global.WEBVIEW_MULTIPROCESS, 1498 GlobalSettingsProto.Webview.MULTIPROCESS); 1499 p.end(webviewToken); 1500 1501 final long wfcToken = p.start(GlobalSettingsProto.WFC); 1502 dumpSetting(s, p, 1503 Settings.Global.WFC_IMS_ENABLED, 1504 GlobalSettingsProto.Wfc.IMS_ENABLED); 1505 dumpSetting(s, p, 1506 Settings.Global.WFC_IMS_MODE, 1507 GlobalSettingsProto.Wfc.IMS_MODE); 1508 dumpSetting(s, p, 1509 Settings.Global.WFC_IMS_ROAMING_MODE, 1510 GlobalSettingsProto.Wfc.IMS_ROAMING_MODE); 1511 dumpSetting(s, p, 1512 Settings.Global.WFC_IMS_ROAMING_ENABLED, 1513 GlobalSettingsProto.Wfc.IMS_ROAMING_ENABLED); 1514 p.end(wfcToken); 1515 1516 final long wifiToken = p.start(GlobalSettingsProto.WIFI); 1517 dumpSetting(s, p, 1518 Settings.Global.WIFI_SLEEP_POLICY, 1519 GlobalSettingsProto.Wifi.SLEEP_POLICY); 1520 dumpSetting(s, p, 1521 Settings.Global.WIFI_BADGING_THRESHOLDS, 1522 GlobalSettingsProto.Wifi.BADGING_THRESHOLDS); 1523 dumpSetting(s, p, 1524 Settings.Global.WIFI_DISPLAY_ON, 1525 GlobalSettingsProto.Wifi.DISPLAY_ON); 1526 dumpSetting(s, p, 1527 Settings.Global.WIFI_DISPLAY_CERTIFICATION_ON, 1528 GlobalSettingsProto.Wifi.DISPLAY_CERTIFICATION_ON); 1529 dumpSetting(s, p, 1530 Settings.Global.WIFI_DISPLAY_WPS_CONFIG, 1531 GlobalSettingsProto.Wifi.DISPLAY_WPS_CONFIG); 1532 dumpSetting(s, p, 1533 Settings.Global.WIFI_NETWORKS_AVAILABLE_NOTIFICATION_ON, 1534 GlobalSettingsProto.Wifi.NETWORKS_AVAILABLE_NOTIFICATION_ON); 1535 dumpSetting(s, p, 1536 Settings.Global.WIFI_NETWORKS_AVAILABLE_REPEAT_DELAY, 1537 GlobalSettingsProto.Wifi.NETWORKS_AVAILABLE_REPEAT_DELAY); 1538 dumpSetting(s, p, 1539 Settings.Global.WIFI_COUNTRY_CODE, 1540 GlobalSettingsProto.Wifi.COUNTRY_CODE); 1541 dumpSetting(s, p, 1542 Settings.Global.WIFI_FRAMEWORK_SCAN_INTERVAL_MS, 1543 GlobalSettingsProto.Wifi.FRAMEWORK_SCAN_INTERVAL_MS); 1544 dumpSetting(s, p, 1545 Settings.Global.WIFI_IDLE_MS, 1546 GlobalSettingsProto.Wifi.IDLE_MS); 1547 dumpSetting(s, p, 1548 Settings.Global.WIFI_NUM_OPEN_NETWORKS_KEPT, 1549 GlobalSettingsProto.Wifi.NUM_OPEN_NETWORKS_KEPT); 1550 dumpSetting(s, p, 1551 Settings.Global.WIFI_ON, 1552 GlobalSettingsProto.Wifi.ON); 1553 dumpSetting(s, p, 1554 Settings.Global.WIFI_SCAN_ALWAYS_AVAILABLE, 1555 GlobalSettingsProto.Wifi.SCAN_ALWAYS_AVAILABLE); 1556 dumpSetting(s, p, 1557 Settings.Global.WIFI_WAKEUP_ENABLED, 1558 GlobalSettingsProto.Wifi.WAKEUP_ENABLED); 1559 dumpSetting(s, p, 1560 Settings.Global.WIFI_SUPPLICANT_SCAN_INTERVAL_MS, 1561 GlobalSettingsProto.Wifi.SUPPLICANT_SCAN_INTERVAL_MS); 1562 dumpSetting(s, p, 1563 Settings.Global.WIFI_ENHANCED_AUTO_JOIN, 1564 GlobalSettingsProto.Wifi.ENHANCED_AUTO_JOIN); 1565 dumpSetting(s, p, 1566 Settings.Global.WIFI_NETWORK_SHOW_RSSI, 1567 GlobalSettingsProto.Wifi.NETWORK_SHOW_RSSI); 1568 dumpSetting(s, p, 1569 Settings.Global.WIFI_SCAN_INTERVAL_WHEN_P2P_CONNECTED_MS, 1570 GlobalSettingsProto.Wifi.SCAN_INTERVAL_WHEN_P2P_CONNECTED_MS); 1571 dumpSetting(s, p, 1572 Settings.Global.WIFI_WATCHDOG_ON, 1573 GlobalSettingsProto.Wifi.WATCHDOG_ON); 1574 dumpSetting(s, p, 1575 Settings.Global.WIFI_WATCHDOG_POOR_NETWORK_TEST_ENABLED, 1576 GlobalSettingsProto.Wifi.WATCHDOG_POOR_NETWORK_TEST_ENABLED); 1577 dumpSetting(s, p, 1578 Settings.Global.WIFI_VERBOSE_LOGGING_ENABLED, 1579 GlobalSettingsProto.Wifi.VERBOSE_LOGGING_ENABLED); 1580 dumpSetting(s, p, 1581 Settings.Global.WIFI_MAX_DHCP_RETRY_COUNT, 1582 GlobalSettingsProto.Wifi.MAX_DHCP_RETRY_COUNT); 1583 dumpSetting(s, p, 1584 Settings.Global.WIFI_MOBILE_DATA_TRANSITION_WAKELOCK_TIMEOUT_MS, 1585 GlobalSettingsProto.Wifi.MOBILE_DATA_TRANSITION_WAKELOCK_TIMEOUT_MS); 1586 dumpSetting(s, p, 1587 Settings.Global.WIFI_DEVICE_OWNER_CONFIGS_LOCKDOWN, 1588 GlobalSettingsProto.Wifi.DEVICE_OWNER_CONFIGS_LOCKDOWN); 1589 dumpSetting(s, p, 1590 Settings.Global.WIFI_FREQUENCY_BAND, 1591 GlobalSettingsProto.Wifi.FREQUENCY_BAND); 1592 dumpSetting(s, p, 1593 Settings.Global.WIFI_P2P_DEVICE_NAME, 1594 GlobalSettingsProto.Wifi.P2P_DEVICE_NAME); 1595 dumpSetting(s, p, 1596 Settings.Global.WIFI_EPHEMERAL_OUT_OF_RANGE_TIMEOUT_MS, 1597 GlobalSettingsProto.Wifi.EPHEMERAL_OUT_OF_RANGE_TIMEOUT_MS); 1598 dumpSetting(s, p, 1599 Settings.Global.WIFI_ON_WHEN_PROXY_DISCONNECTED, 1600 GlobalSettingsProto.Wifi.ON_WHEN_PROXY_DISCONNECTED); 1601 dumpSetting(s, p, 1602 Settings.Global.WIFI_BOUNCE_DELAY_OVERRIDE_MS, 1603 GlobalSettingsProto.Wifi.BOUNCE_DELAY_OVERRIDE_MS); 1604 p.end(wifiToken); 1605 1606 dumpSetting(s, p, 1607 Settings.Global.WIMAX_NETWORKS_AVAILABLE_NOTIFICATION_ON, 1608 GlobalSettingsProto.WIMAX_NETWORKS_AVAILABLE_NOTIFICATION_ON); 1609 dumpSetting(s, p, 1610 Settings.Global.WINDOW_ANIMATION_SCALE, 1611 GlobalSettingsProto.WINDOW_ANIMATION_SCALE); 1612 dumpSetting(s, p, 1613 Settings.Global.WTF_IS_FATAL, 1614 GlobalSettingsProto.WTF_IS_FATAL); 1615 1616 final long zenToken = p.start(GlobalSettingsProto.ZEN); 1617 dumpSetting(s, p, 1618 Settings.Global.ZEN_MODE, 1619 GlobalSettingsProto.Zen.MODE); 1620 dumpSetting(s, p, 1621 Settings.Global.ZEN_MODE_RINGER_LEVEL, 1622 GlobalSettingsProto.Zen.MODE_RINGER_LEVEL); 1623 dumpSetting(s, p, 1624 Settings.Global.ZEN_MODE_CONFIG_ETAG, 1625 GlobalSettingsProto.Zen.MODE_CONFIG_ETAG); 1626 p.end(zenToken); 1627 1628 dumpSetting(s, p, 1629 Settings.Global.ZRAM_ENABLED, 1630 GlobalSettingsProto.ZRAM_ENABLED); 1631 1632 dumpSetting(s, p, 1633 Settings.Global.APP_OPS_CONSTANTS, 1634 GlobalSettingsProto.APP_OPS_CONSTANTS); 1635 1636 p.end(token); 1637 // Please insert new settings using the same order as in GlobalSettingsProto. 1638 1639 // The rest of the settings were moved to Settings.Secure or Settings.System, and are thus 1640 // excluded here since they're deprecated from Settings.Global. 1641 1642 // Settings.Global.INSTALL_NON_MARKET_APPS intentionally excluded since it's deprecated. 1643 // Settings.Global.APPLY_RAMPING_RINGER intentionally excluded since it's deprecated. 1644 // Settings.Global.BUGREPORT_IN_POWER_MENU intentionally excluded since it's deprecated. 1645 } 1646 dumpProtoConfigSettingsLocked( @onNull ProtoOutputStream p, long fieldId, @NonNull SettingsState s)1647 private static void dumpProtoConfigSettingsLocked( 1648 @NonNull ProtoOutputStream p, long fieldId, @NonNull SettingsState s) { 1649 Map<String, List<String>> namespaceMap = new HashMap<>(); 1650 final long token = p.start(fieldId); 1651 s.dumpHistoricalOperations(p, ConfigSettingsProto.HISTORICAL_OPERATIONS); 1652 for (String name : s.getSettingNamesLocked()) { 1653 String namespace = name.substring(0, name.indexOf('/')); 1654 if (NAMESPACE_TO_FIELD_MAP.containsKey(namespace)) { 1655 dumpSetting(s, p, name, NAMESPACE_TO_FIELD_MAP.get(namespace)); 1656 } else { 1657 if (!namespaceMap.containsKey(namespace)) { 1658 namespaceMap.put(namespace, new ArrayList<>()); 1659 } 1660 namespaceMap.get(namespace).add(name); 1661 } 1662 } 1663 for (String namespace : namespaceMap.keySet()) { 1664 final long namespacesToken = p.start(ConfigSettingsProto.EXTRA_NAMESPACES); 1665 p.write(ConfigSettingsProto.NamespaceProto.NAMESPACE, namespace); 1666 for (String name : namespaceMap.get(namespace)) { 1667 dumpSetting(s, p, name, ConfigSettingsProto.NamespaceProto.SETTINGS); 1668 } 1669 p.end(namespacesToken); 1670 } 1671 p.end(token); 1672 } 1673 1674 /** Dumps settings that use a common prefix into a repeated field. */ dumpRepeatedSetting(@onNull SettingsState settings, @NonNull ProtoOutputStream proto, String settingPrefix, long fieldId)1675 private static void dumpRepeatedSetting(@NonNull SettingsState settings, 1676 @NonNull ProtoOutputStream proto, String settingPrefix, long fieldId) { 1677 for (String s : settings.getSettingNamesLocked()) { 1678 if (s.startsWith(settingPrefix)) { 1679 dumpSetting(settings, proto, s, fieldId); 1680 } 1681 } 1682 } 1683 1684 /** Dump a single {@link SettingsState.Setting} to a proto buf */ dumpSetting(@onNull SettingsState settings, @NonNull ProtoOutputStream proto, String settingName, long fieldId)1685 private static void dumpSetting(@NonNull SettingsState settings, 1686 @NonNull ProtoOutputStream proto, String settingName, long fieldId) { 1687 SettingsState.Setting setting = settings.getSettingLocked(settingName); 1688 long settingsToken = proto.start(fieldId); 1689 proto.write(SettingProto.ID, setting.getId()); 1690 proto.write(SettingProto.NAME, settingName); 1691 if (setting.getPackageName() != null) { 1692 proto.write(SettingProto.PKG, setting.getPackageName()); 1693 } 1694 proto.write(SettingProto.VALUE, setting.getValue()); 1695 if (setting.getDefaultValue() != null) { 1696 proto.write(SettingProto.DEFAULT_VALUE, setting.getDefaultValue()); 1697 proto.write(SettingProto.DEFAULT_FROM_SYSTEM, setting.isDefaultFromSystem()); 1698 } 1699 proto.end(settingsToken); 1700 } 1701 dumpProtoSecureSettingsLocked( @onNull ProtoOutputStream p, long fieldId, @NonNull SettingsState s)1702 static void dumpProtoSecureSettingsLocked( 1703 @NonNull ProtoOutputStream p, long fieldId, @NonNull SettingsState s) { 1704 final long token = p.start(fieldId); 1705 1706 s.dumpHistoricalOperations(p, SecureSettingsProto.HISTORICAL_OPERATIONS); 1707 1708 // This uses the same order as in SecureSettingsProto. 1709 1710 final long accessibilityToken = p.start(SecureSettingsProto.ACCESSIBILITY); 1711 dumpSetting(s, p, 1712 Settings.Secure.ACCESSIBILITY_ENABLED, 1713 SecureSettingsProto.Accessibility.ENABLED); 1714 dumpSetting(s, p, 1715 Settings.Secure.ENABLED_ACCESSIBILITY_SERVICES, 1716 SecureSettingsProto.Accessibility.ENABLED_ACCESSIBILITY_SERVICES); 1717 dumpSetting(s, p, 1718 Settings.Secure.ACCESSIBILITY_AUTOCLICK_ENABLED, 1719 SecureSettingsProto.Accessibility.AUTOCLICK_ENABLED); 1720 dumpSetting(s, p, 1721 Settings.Secure.ACCESSIBILITY_AUTOCLICK_DELAY, 1722 SecureSettingsProto.Accessibility.AUTOCLICK_DELAY); 1723 dumpSetting(s, p, 1724 Settings.Secure.ACCESSIBILITY_BUTTON_TARGET_COMPONENT, 1725 SecureSettingsProto.Accessibility.BUTTON_TARGET_COMPONENT); 1726 dumpSetting(s, p, 1727 Settings.Secure.ACCESSIBILITY_CAPTIONING_ENABLED, 1728 SecureSettingsProto.Accessibility.CAPTIONING_ENABLED); 1729 dumpSetting(s, p, 1730 Settings.Secure.ACCESSIBILITY_CAPTIONING_LOCALE, 1731 SecureSettingsProto.Accessibility.CAPTIONING_LOCALE); 1732 dumpSetting(s, p, 1733 Settings.Secure.ACCESSIBILITY_CAPTIONING_PRESET, 1734 SecureSettingsProto.Accessibility.CAPTIONING_PRESET); 1735 dumpSetting(s, p, 1736 Settings.Secure.ACCESSIBILITY_CAPTIONING_BACKGROUND_COLOR, 1737 SecureSettingsProto.Accessibility.CAPTIONING_BACKGROUND_COLOR); 1738 dumpSetting(s, p, 1739 Settings.Secure.ACCESSIBILITY_CAPTIONING_FOREGROUND_COLOR, 1740 SecureSettingsProto.Accessibility.CAPTIONING_FOREGROUND_COLOR); 1741 dumpSetting(s, p, 1742 Settings.Secure.ACCESSIBILITY_CAPTIONING_EDGE_TYPE, 1743 SecureSettingsProto.Accessibility.CAPTIONING_EDGE_TYPE); 1744 dumpSetting(s, p, 1745 Settings.Secure.ACCESSIBILITY_CAPTIONING_EDGE_COLOR, 1746 SecureSettingsProto.Accessibility.CAPTIONING_EDGE_COLOR); 1747 dumpSetting(s, p, 1748 Settings.Secure.ACCESSIBILITY_CAPTIONING_WINDOW_COLOR, 1749 SecureSettingsProto.Accessibility.CAPTIONING_WINDOW_COLOR); 1750 dumpSetting(s, p, 1751 Settings.Secure.ACCESSIBILITY_CAPTIONING_TYPEFACE, 1752 SecureSettingsProto.Accessibility.CAPTIONING_TYPEFACE); 1753 dumpSetting(s, p, 1754 Settings.Secure.ACCESSIBILITY_CAPTIONING_FONT_SCALE, 1755 SecureSettingsProto.Accessibility.CAPTIONING_FONT_SCALE); 1756 dumpSetting(s, p, 1757 Settings.Secure.ACCESSIBILITY_DISPLAY_DALTONIZER_ENABLED, 1758 SecureSettingsProto.Accessibility.DISPLAY_DALTONIZER_ENABLED); 1759 dumpSetting(s, p, 1760 Settings.Secure.ACCESSIBILITY_DISPLAY_DALTONIZER, 1761 SecureSettingsProto.Accessibility.DISPLAY_DALTONIZER); 1762 dumpSetting(s, p, 1763 Settings.Secure.ACCESSIBILITY_DISPLAY_DALTONIZER_SATURATION_LEVEL, 1764 SecureSettingsProto.Accessibility.DISPLAY_DALTONIZER_SATURATION_LEVEL); 1765 dumpSetting(s, p, 1766 Settings.Secure.ACCESSIBILITY_DISPLAY_INVERSION_ENABLED, 1767 SecureSettingsProto.Accessibility.DISPLAY_INVERSION_ENABLED); 1768 dumpSetting(s, p, 1769 Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_ENABLED, 1770 SecureSettingsProto.Accessibility.DISPLAY_MAGNIFICATION_ENABLED); 1771 dumpSetting(s, p, 1772 Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_NAVBAR_ENABLED, 1773 SecureSettingsProto.Accessibility.DISPLAY_MAGNIFICATION_NAVBAR_ENABLED); 1774 dumpSetting(s, p, 1775 Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_SCALE, 1776 SecureSettingsProto.Accessibility.DISPLAY_MAGNIFICATION_SCALE); 1777 dumpSetting(s, p, 1778 Settings.Secure.ACCESSIBILITY_HIGH_TEXT_CONTRAST_ENABLED, 1779 SecureSettingsProto.Accessibility.HIGH_TEXT_CONTRAST_ENABLED); 1780 dumpSetting(s, p, 1781 Settings.Secure.CONTRAST_LEVEL, 1782 SecureSettingsProto.Accessibility.CONTRAST_LEVEL); 1783 dumpSetting(s, p, 1784 Settings.Secure.FONT_WEIGHT_ADJUSTMENT, 1785 SecureSettingsProto.FONT_WEIGHT_ADJUSTMENT); 1786 dumpSetting(s, p, 1787 Settings.Secure.ACCESSIBILITY_LARGE_POINTER_ICON, 1788 SecureSettingsProto.Accessibility.LARGE_POINTER_ICON); 1789 dumpSetting(s, p, 1790 Settings.Secure.ACCESSIBILITY_SHORTCUT_ON_LOCK_SCREEN, 1791 SecureSettingsProto.Accessibility.SHORTCUT_ON_LOCK_SCREEN); 1792 dumpSetting(s, p, 1793 Settings.Secure.ACCESSIBILITY_SHORTCUT_DIALOG_SHOWN, 1794 SecureSettingsProto.Accessibility.SHORTCUT_DIALOG_SHOWN); 1795 dumpSetting(s, p, 1796 Settings.Secure.ACCESSIBILITY_SHORTCUT_TARGET_SERVICE, 1797 SecureSettingsProto.Accessibility.SHORTCUT_TARGET_SERVICE); 1798 dumpSetting(s, p, 1799 Settings.Secure.ACCESSIBILITY_SOFT_KEYBOARD_MODE, 1800 SecureSettingsProto.Accessibility.SOFT_KEYBOARD_MODE); 1801 dumpSetting(s, p, 1802 Settings.Secure.ACCESSIBILITY_SPEAK_PASSWORD, 1803 SecureSettingsProto.Accessibility.SPEAK_PASSWORD); 1804 dumpSetting(s, p, 1805 Settings.Secure.TOUCH_EXPLORATION_ENABLED, 1806 SecureSettingsProto.Accessibility.TOUCH_EXPLORATION_ENABLED); 1807 dumpSetting(s, p, 1808 Settings.Secure.TOUCH_EXPLORATION_GRANTED_ACCESSIBILITY_SERVICES, 1809 SecureSettingsProto.Accessibility.TOUCH_EXPLORATION_GRANTED_ACCESSIBILITY_SERVICES); 1810 dumpSetting(s, p, 1811 Settings.Secure.ACCESSIBILITY_NON_INTERACTIVE_UI_TIMEOUT_MS, 1812 SecureSettingsProto.Accessibility.NON_INTERACTIVE_UI_TIMEOUT_MS); 1813 dumpSetting(s, p, 1814 Settings.Secure.ACCESSIBILITY_INTERACTIVE_UI_TIMEOUT_MS, 1815 SecureSettingsProto.Accessibility.INTERACTIVE_UI_TIMEOUT_MS); 1816 dumpSetting(s, p, 1817 Settings.Secure.ACCESSIBILITY_MAGNIFICATION_MODE, 1818 SecureSettingsProto.Accessibility.ACCESSIBILITY_MAGNIFICATION_MODE); 1819 dumpSetting(s, p, 1820 Settings.Secure.ACCESSIBILITY_BUTTON_TARGETS, 1821 SecureSettingsProto.Accessibility.BUTTON_TARGETS); 1822 dumpSetting(s, p, 1823 Settings.Secure.ACCESSIBILITY_QS_TARGETS, 1824 SecureSettingsProto.Accessibility.QS_TARGETS); 1825 dumpSetting(s, p, 1826 Settings.Secure.ACCESSIBILITY_MAGNIFICATION_CAPABILITY, 1827 SecureSettingsProto.Accessibility.ACCESSIBILITY_MAGNIFICATION_CAPABILITY); 1828 dumpSetting(s, p, 1829 Settings.Secure.ACCESSIBILITY_BUTTON_MODE, 1830 SecureSettingsProto.Accessibility.ACCESSIBILITY_BUTTON_MODE); 1831 dumpSetting(s, p, 1832 Settings.Secure.ACCESSIBILITY_FLOATING_MENU_SIZE, 1833 SecureSettingsProto.Accessibility.ACCESSIBILITY_FLOATING_MENU_SIZE); 1834 dumpSetting(s, p, 1835 Settings.Secure.ACCESSIBILITY_FLOATING_MENU_ICON_TYPE, 1836 SecureSettingsProto.Accessibility.ACCESSIBILITY_FLOATING_MENU_ICON_TYPE); 1837 dumpSetting(s, p, 1838 Settings.Secure.ACCESSIBILITY_FLOATING_MENU_OPACITY, 1839 SecureSettingsProto.Accessibility.ACCESSIBILITY_FLOATING_MENU_OPACITY); 1840 dumpSetting(s, p, 1841 Settings.Secure.ACCESSIBILITY_FLOATING_MENU_FADE_ENABLED, 1842 SecureSettingsProto.Accessibility.ACCESSIBILITY_FLOATING_MENU_FADE_ENABLED); 1843 dumpSetting(s, p, 1844 Settings.Secure.ACCESSIBILITY_GESTURE_TARGETS, 1845 SecureSettingsProto.Accessibility.ACCESSIBILITY_GESTURE_TARGETS); 1846 dumpSetting(s, p, 1847 Settings.Secure.ODI_CAPTIONS_VOLUME_UI_ENABLED, 1848 SecureSettingsProto.Accessibility.ODI_CAPTIONS_VOLUME_UI_ENABLED); 1849 dumpSetting(s, p, 1850 Settings.Secure.ACCESSIBILITY_MAGNIFICATION_FOLLOW_TYPING_ENABLED, 1851 SecureSettingsProto.Accessibility 1852 .ACCESSIBILITY_MAGNIFICATION_FOLLOW_TYPING_ENABLED); 1853 dumpSetting(s, p, 1854 Settings.Secure.ACCESSIBILITY_MAGNIFICATION_ALWAYS_ON_ENABLED, 1855 SecureSettingsProto.Accessibility 1856 .ACCESSIBILITY_MAGNIFICATION_ALWAYS_ON_ENABLED); 1857 dumpSetting(s, p, 1858 Settings.Secure.ACCESSIBILITY_FORCE_INVERT_COLOR_ENABLED, 1859 SecureSettingsProto.Accessibility 1860 .ACCESSIBILITY_FORCE_INVERT_COLOR_ENABLED); 1861 dumpSetting(s, p, 1862 Settings.Secure.ACCESSIBILITY_MAGNIFICATION_JOYSTICK_ENABLED, 1863 SecureSettingsProto.Accessibility 1864 .ACCESSIBILITY_MAGNIFICATION_JOYSTICK_ENABLED); 1865 dumpSetting(s, p, 1866 Settings.Secure.ACCESSIBILITY_MAGNIFICATION_TWO_FINGER_TRIPLE_TAP_ENABLED, 1867 SecureSettingsProto.Accessibility 1868 .ACCESSIBILITY_MAGNIFICATION_TWO_FINGER_TRIPLE_TAP_ENABLED); 1869 dumpSetting(s, p, 1870 Settings.Secure.ACCESSIBILITY_PINCH_TO_ZOOM_ANYWHERE_ENABLED, 1871 SecureSettingsProto.Accessibility 1872 .ACCESSIBILITY_PINCH_TO_ZOOM_ANYWHERE_ENABLED); 1873 dumpSetting(s, p, 1874 Settings.Secure.ACCESSIBILITY_SINGLE_FINGER_PANNING_ENABLED, 1875 SecureSettingsProto.Accessibility 1876 .ACCESSIBILITY_SINGLE_FINGER_PANNING_ENABLED); 1877 dumpSetting(s, p, 1878 Settings.Secure.HEARING_AID_RINGTONE_ROUTING, 1879 SecureSettingsProto.Accessibility.HEARING_AID_RINGTONE_ROUTING); 1880 dumpSetting(s, p, 1881 Settings.Secure.HEARING_AID_CALL_ROUTING, 1882 SecureSettingsProto.Accessibility.HEARING_AID_CALL_ROUTING); 1883 dumpSetting(s, p, 1884 Settings.Secure.HEARING_AID_MEDIA_ROUTING, 1885 SecureSettingsProto.Accessibility.HEARING_AID_MEDIA_ROUTING); 1886 dumpSetting(s, p, 1887 Settings.Secure.HEARING_AID_NOTIFICATION_ROUTING, 1888 SecureSettingsProto.Accessibility.HEARING_AID_NOTIFICATION_ROUTING); 1889 dumpSetting(s, p, 1890 Settings.Secure.ACCESSIBILITY_FONT_SCALING_HAS_BEEN_CHANGED, 1891 SecureSettingsProto.Accessibility.ACCESSIBILITY_FONT_SCALING_HAS_BEEN_CHANGED); 1892 p.end(accessibilityToken); 1893 1894 final long adaptiveSleepToken = p.start(SecureSettingsProto.ADAPTIVE_SLEEP); 1895 dumpSetting(s, p, 1896 Settings.Secure.ADAPTIVE_SLEEP, 1897 SecureSettingsProto.AdaptiveSleep.ENABLED); 1898 p.end(adaptiveSleepToken); 1899 1900 dumpSetting(s, p, 1901 Settings.Secure.ALLOWED_GEOLOCATION_ORIGINS, 1902 SecureSettingsProto.ALLOWED_GEOLOCATION_ORIGINS); 1903 1904 dumpSetting(s, p, 1905 Settings.Secure.BUGREPORT_IN_POWER_MENU, 1906 SecureSettingsProto.BUGREPORT_IN_POWER_MENU); 1907 1908 final long aovToken = p.start(SecureSettingsProto.ALWAYS_ON_VPN); 1909 dumpSetting(s, p, 1910 Settings.Secure.ALWAYS_ON_VPN_APP, 1911 SecureSettingsProto.AlwaysOnVpn.APP); 1912 dumpSetting(s, p, 1913 Settings.Secure.ALWAYS_ON_VPN_LOCKDOWN, 1914 SecureSettingsProto.AlwaysOnVpn.LOCKDOWN); 1915 p.end(aovToken); 1916 1917 dumpSetting(s, p, 1918 Settings.Secure.ANDROID_ID, 1919 SecureSettingsProto.ANDROID_ID); 1920 dumpSetting(s, p, 1921 Settings.Secure.ANR_SHOW_BACKGROUND, 1922 SecureSettingsProto.ANR_SHOW_BACKGROUND); 1923 1924 final long assistToken = p.start(SecureSettingsProto.ASSIST); 1925 dumpSetting(s, p, 1926 Settings.Secure.ASSISTANT, 1927 SecureSettingsProto.Assist.ASSISTANT); 1928 dumpSetting(s, p, 1929 Settings.Secure.ASSIST_STRUCTURE_ENABLED, 1930 SecureSettingsProto.Assist.STRUCTURE_ENABLED); 1931 dumpSetting(s, p, 1932 Settings.Secure.ASSIST_SCREENSHOT_ENABLED, 1933 SecureSettingsProto.Assist.SCREENSHOT_ENABLED); 1934 dumpSetting(s, p, 1935 Settings.Secure.ASSIST_DISCLOSURE_ENABLED, 1936 SecureSettingsProto.Assist.DISCLOSURE_ENABLED); 1937 dumpSetting(s, p, 1938 Settings.Secure.ASSIST_GESTURE_ENABLED, 1939 SecureSettingsProto.Assist.GESTURE_ENABLED); 1940 dumpSetting(s, p, 1941 Settings.Secure.ASSIST_GESTURE_SENSITIVITY, 1942 SecureSettingsProto.Assist.GESTURE_SENSITIVITY); 1943 dumpSetting(s, p, 1944 Settings.Secure.ASSIST_GESTURE_SILENCE_ALERTS_ENABLED, 1945 SecureSettingsProto.Assist.GESTURE_SILENCE_ALERTS_ENABLED); 1946 dumpSetting(s, p, 1947 Settings.Secure.ASSIST_GESTURE_WAKE_ENABLED, 1948 SecureSettingsProto.Assist.GESTURE_WAKE_ENABLED); 1949 dumpSetting(s, p, 1950 Settings.Secure.ASSIST_GESTURE_SETUP_COMPLETE, 1951 SecureSettingsProto.Assist.GESTURE_SETUP_COMPLETE); 1952 dumpSetting(s, p, 1953 Settings.Secure.ASSIST_TOUCH_GESTURE_ENABLED, 1954 SecureSettingsProto.Assist.TOUCH_GESTURE_ENABLED); 1955 dumpSetting(s, p, 1956 Settings.Secure.ASSIST_LONG_PRESS_HOME_ENABLED, 1957 SecureSettingsProto.Assist.LONG_PRESS_HOME_ENABLED); 1958 dumpSetting(s, p, 1959 Settings.Secure.SEARCH_ALL_ENTRYPOINTS_ENABLED, 1960 SecureSettingsProto.Assist.SEARCH_ALL_ENTRYPOINTS_ENABLED); 1961 dumpSetting(s, p, 1962 Settings.Secure.VISUAL_QUERY_ACCESSIBILITY_DETECTION_ENABLED, 1963 SecureSettingsProto.Assist.VISUAL_QUERY_ACCESSIBILITY_DETECTION_ENABLED); 1964 p.end(assistToken); 1965 1966 final long assistHandlesToken = p.start(SecureSettingsProto.ASSIST_HANDLES); 1967 dumpSetting(s, p, 1968 Settings.Secure.ASSIST_HANDLES_LEARNING_TIME_ELAPSED_MILLIS, 1969 SecureSettingsProto.AssistHandles.LEARNING_TIME_ELAPSED_MILLIS); 1970 dumpSetting(s, p, 1971 Settings.Secure.ASSIST_HANDLES_LEARNING_EVENT_COUNT, 1972 SecureSettingsProto.AssistHandles.LEARNING_EVENT_COUNT); 1973 p.end(assistHandlesToken); 1974 1975 final long autofillToken = p.start(SecureSettingsProto.AUTOFILL); 1976 dumpSetting(s, p, 1977 Settings.Secure.AUTOFILL_SERVICE, 1978 SecureSettingsProto.Autofill.SERVICE); 1979 dumpSetting(s, p, 1980 Settings.Secure.AUTOFILL_FEATURE_FIELD_CLASSIFICATION, 1981 SecureSettingsProto.Autofill.FEATURE_FIELD_CLASSIFICATION); 1982 dumpSetting(s, p, 1983 Settings.Secure.AUTOFILL_USER_DATA_MAX_USER_DATA_SIZE, 1984 SecureSettingsProto.Autofill.USER_DATA_MAX_USER_DATA_SIZE); 1985 dumpSetting(s, p, 1986 Settings.Secure.AUTOFILL_USER_DATA_MAX_FIELD_CLASSIFICATION_IDS_SIZE, 1987 SecureSettingsProto.Autofill.USER_DATA_MAX_FIELD_CLASSIFICATION_IDS_SIZE); 1988 dumpSetting(s, p, 1989 Settings.Secure.AUTOFILL_USER_DATA_MAX_CATEGORY_COUNT, 1990 SecureSettingsProto.Autofill.USER_DATA_MAX_CATEGORY_COUNT); 1991 dumpSetting(s, p, 1992 Settings.Secure.AUTOFILL_USER_DATA_MAX_VALUE_LENGTH, 1993 SecureSettingsProto.Autofill.USER_DATA_MAX_VALUE_LENGTH); 1994 dumpSetting(s, p, 1995 Settings.Secure.AUTOFILL_USER_DATA_MIN_VALUE_LENGTH, 1996 SecureSettingsProto.Autofill.USER_DATA_MIN_VALUE_LENGTH); 1997 dumpSetting(s, p, 1998 Settings.Secure.AUTOFILL_SERVICE_SEARCH_URI, 1999 SecureSettingsProto.Autofill.SERVICE_SEARCH_URI); 2000 p.end(autofillToken); 2001 2002 final long asmToken = p.start(SecureSettingsProto.AUTOMATIC_STORAGE_MANAGER); 2003 dumpSetting(s, p, 2004 Settings.Secure.AUTOMATIC_STORAGE_MANAGER_ENABLED, 2005 SecureSettingsProto.AutomaticStorageManager.ENABLED); 2006 dumpSetting(s, p, 2007 Settings.Secure.AUTOMATIC_STORAGE_MANAGER_DAYS_TO_RETAIN, 2008 SecureSettingsProto.AutomaticStorageManager.DAYS_TO_RETAIN); 2009 dumpSetting(s, p, 2010 Settings.Secure.AUTOMATIC_STORAGE_MANAGER_BYTES_CLEARED, 2011 SecureSettingsProto.AutomaticStorageManager.BYTES_CLEARED); 2012 dumpSetting(s, p, 2013 Settings.Secure.AUTOMATIC_STORAGE_MANAGER_LAST_RUN, 2014 SecureSettingsProto.AutomaticStorageManager.LAST_RUN); 2015 dumpSetting(s, p, 2016 Settings.Secure.AUTOMATIC_STORAGE_MANAGER_TURNED_OFF_BY_POLICY, 2017 SecureSettingsProto.AutomaticStorageManager.TURNED_OFF_BY_POLICY); 2018 p.end(asmToken); 2019 2020 final long backupToken = p.start(SecureSettingsProto.BACKUP); 2021 dumpSetting(s, p, 2022 Settings.Secure.BACKUP_ENABLED, 2023 SecureSettingsProto.Backup.ENABLED); 2024 dumpSetting(s, p, 2025 Settings.Secure.BACKUP_AUTO_RESTORE, 2026 SecureSettingsProto.Backup.AUTO_RESTORE); 2027 dumpSetting(s, p, 2028 Settings.Secure.BACKUP_PROVISIONED, 2029 SecureSettingsProto.Backup.PROVISIONED); 2030 dumpSetting(s, p, 2031 Settings.Secure.BACKUP_TRANSPORT, 2032 SecureSettingsProto.Backup.TRANSPORT); 2033 dumpSetting(s, p, 2034 Settings.Secure.BACKUP_MANAGER_CONSTANTS, 2035 SecureSettingsProto.Backup.MANAGER_CONSTANTS); 2036 dumpSetting(s, p, 2037 Settings.Secure.BACKUP_LOCAL_TRANSPORT_PARAMETERS, 2038 SecureSettingsProto.Backup.LOCAL_TRANSPORT_PARAMETERS); 2039 dumpSetting(s, p, 2040 Settings.Secure.PACKAGES_TO_CLEAR_DATA_BEFORE_FULL_RESTORE, 2041 SecureSettingsProto.Backup.PACKAGES_TO_CLEAR_DATA_BEFORE_FULL_RESTORE); 2042 p.end(backupToken); 2043 2044 // Settings.Secure.BLUETOOTH_ON intentionally excluded since it's deprecated. 2045 dumpSetting(s, p, 2046 Settings.Secure.BLUETOOTH_ON_WHILE_DRIVING, 2047 SecureSettingsProto.BLUETOOTH_ON_WHILE_DRIVING); 2048 2049 final long smartAutoRotateToken = p.start(SecureSettingsProto.CAMERA_AUTOROTATE); 2050 dumpSetting(s, p, 2051 Settings.Secure.CAMERA_AUTOROTATE, 2052 SecureSettingsProto.CameraAutorotate.ENABLED); 2053 p.end(smartAutoRotateToken); 2054 2055 final long cameraToken = p.start(SecureSettingsProto.CAMERA); 2056 dumpSetting(s, p, 2057 Settings.Secure.CAMERA_GESTURE_DISABLED, 2058 SecureSettingsProto.Camera.GESTURE_DISABLED); 2059 dumpSetting(s, p, 2060 Settings.Secure.CAMERA_DOUBLE_TAP_POWER_GESTURE_DISABLED, 2061 SecureSettingsProto.Camera.DOUBLE_TAP_POWER_GESTURE_DISABLED); 2062 dumpSetting(s, p, 2063 Settings.Secure.CAMERA_DOUBLE_TWIST_TO_FLIP_ENABLED, 2064 SecureSettingsProto.Camera.DOUBLE_TWIST_TO_FLIP_ENABLED); 2065 dumpSetting(s, p, 2066 Settings.Secure.CAMERA_LIFT_TRIGGER_ENABLED, 2067 SecureSettingsProto.Camera.LIFT_TRIGGER_ENABLED); 2068 p.end(cameraToken); 2069 2070 dumpSetting(s, p, 2071 Settings.Secure.CARRIER_APPS_HANDLED, 2072 SecureSettingsProto.CARRIER_APPS_HANDLED); 2073 2074 final long clipboardToken = p.start(SecureSettingsProto.CLIPBOARD); 2075 dumpSetting(s, p, 2076 Settings.Secure.CLIPBOARD_SHOW_ACCESS_NOTIFICATIONS, 2077 SecureSettingsProto.Clipboard.SHOW_ACCESS_NOTIFICATIONS); 2078 p.end(clipboardToken); 2079 2080 dumpSetting(s, p, 2081 Settings.Secure.CMAS_ADDITIONAL_BROADCAST_PKG, 2082 SecureSettingsProto.CMAS_ADDITIONAL_BROADCAST_PKG); 2083 dumpRepeatedSetting(s, p, 2084 Settings.Secure.COMPLETED_CATEGORY_PREFIX, 2085 SecureSettingsProto.COMPLETED_CATEGORIES); 2086 dumpSetting(s, p, 2087 Settings.Secure.CONNECTIVITY_RELEASE_PENDING_INTENT_DELAY_MS, 2088 SecureSettingsProto.CONNECTIVITY_RELEASE_PENDING_INTENT_DELAY_MS); 2089 dumpSetting(s, p, 2090 Settings.Secure.ADAPTIVE_CONNECTIVITY_ENABLED, 2091 SecureSettingsProto.ADAPTIVE_CONNECTIVITY_ENABLED); 2092 2093 final long controlsToken = p.start(SecureSettingsProto.CONTROLS); 2094 dumpSetting(s, p, 2095 Settings.Secure.CONTROLS_ENABLED, 2096 SecureSettingsProto.Controls.ENABLED); 2097 p.end(controlsToken); 2098 2099 final long dateTimeToken = p.start(SecureSettingsProto.DATE_TIME); 2100 dumpSetting(s, p, 2101 Settings.Secure.LOCATION_TIME_ZONE_DETECTION_ENABLED, 2102 SecureSettingsProto.DateTime.LOCATION_TIME_ZONE_DETECTION_ENABLED); 2103 p.end(dateTimeToken); 2104 2105 dumpSetting(s, p, 2106 Settings.Secure.DEVICE_PAIRED, 2107 SecureSettingsProto.DEVICE_PAIRED); 2108 dumpSetting(s, p, 2109 Settings.Secure.DIALER_DEFAULT_APPLICATION, 2110 SecureSettingsProto.DIALER_DEFAULT_APPLICATION); 2111 dumpSetting(s, p, 2112 Settings.Secure.DISPLAY_DENSITY_FORCED, 2113 SecureSettingsProto.DISPLAY_DENSITY_FORCED); 2114 dumpSetting(s, p, 2115 Settings.Secure.DOUBLE_TAP_TO_WAKE, 2116 SecureSettingsProto.DOUBLE_TAP_TO_WAKE); 2117 2118 final long displayToken = p.start(SecureSettingsProto.DISPLAY); 2119 dumpSetting(s, p, 2120 Settings.Secure.SCREEN_RESOLUTION_MODE, 2121 SecureSettingsProto.Display.SCREEN_RESOLUTION_MODE); 2122 p.end(displayToken); 2123 2124 final long dozeToken = p.start(SecureSettingsProto.DOZE); 2125 dumpSetting(s, p, 2126 Settings.Secure.DOZE_ENABLED, 2127 SecureSettingsProto.Doze.ENABLED); 2128 dumpSetting(s, p, 2129 Settings.Secure.DOZE_ALWAYS_ON, 2130 SecureSettingsProto.Doze.ALWAYS_ON); 2131 dumpSetting(s, p, 2132 Settings.Secure.DOZE_PICK_UP_GESTURE, 2133 SecureSettingsProto.Doze.PULSE_ON_PICK_UP); 2134 dumpSetting(s, p, 2135 Settings.Secure.DOZE_PULSE_ON_LONG_PRESS, 2136 SecureSettingsProto.Doze.PULSE_ON_LONG_PRESS); 2137 dumpSetting(s, p, 2138 Settings.Secure.DOZE_DOUBLE_TAP_GESTURE, 2139 SecureSettingsProto.Doze.PULSE_ON_DOUBLE_TAP); 2140 dumpSetting(s, p, 2141 Settings.Secure.DOZE_TAP_SCREEN_GESTURE, 2142 SecureSettingsProto.Doze.PULSE_ON_TAP); 2143 dumpSetting(s, p, 2144 Settings.Secure.SUPPRESS_DOZE, 2145 SecureSettingsProto.Doze.SUPPRESS); 2146 p.end(dozeToken); 2147 2148 dumpSetting(s, p, 2149 Settings.Secure.EMERGENCY_ASSISTANCE_APPLICATION, 2150 SecureSettingsProto.EMERGENCY_ASSISTANCE_APPLICATION); 2151 2152 final long emergencyResponseToken = p.start(SecureSettingsProto.EMERGENCY_RESPONSE); 2153 dumpSetting(s, p, 2154 Settings.Secure.EMERGENCY_GESTURE_ENABLED, 2155 SecureSettingsProto.EmergencyResponse.EMERGENCY_GESTURE_ENABLED); 2156 dumpSetting(s, p, 2157 Settings.Secure.EMERGENCY_GESTURE_SOUND_ENABLED, 2158 SecureSettingsProto.EmergencyResponse.EMERGENCY_GESTURE_SOUND_ENABLED); 2159 p.end(emergencyResponseToken); 2160 2161 dumpSetting(s, p, 2162 Settings.Secure.ENHANCED_VOICE_PRIVACY_ENABLED, 2163 SecureSettingsProto.ENHANCED_VOICE_PRIVACY_ENABLED); 2164 2165 final long evenDimmerToken = p.start(SecureSettingsProto.EVEN_DIMMER); 2166 dumpSetting(s, p, 2167 Settings.Secure.EVEN_DIMMER_ACTIVATED, 2168 SecureSettingsProto.EvenDimmer.EVEN_DIMMER_ACTIVATED); 2169 dumpSetting(s, p, 2170 Settings.Secure.EVEN_DIMMER_MIN_NITS, 2171 SecureSettingsProto.EvenDimmer.EVEN_DIMMER_MIN_NITS); 2172 p.end(evenDimmerToken); 2173 2174 final long gestureToken = p.start(SecureSettingsProto.GESTURE); 2175 dumpSetting(s, p, 2176 Settings.Secure.AWARE_ENABLED, 2177 SecureSettingsProto.Gesture.AWARE_ENABLED); 2178 2179 dumpSetting(s, p, 2180 Settings.Secure.SILENCE_ALARMS_GESTURE_COUNT, 2181 SecureSettingsProto.Gesture.SILENCE_ALARMS_COUNT); 2182 dumpSetting(s, p, 2183 Settings.Secure.SILENCE_CALL_GESTURE_COUNT, 2184 SecureSettingsProto.Gesture.SILENCE_CALLS_COUNT); 2185 dumpSetting(s, p, 2186 Settings.Secure.SILENCE_GESTURE, 2187 SecureSettingsProto.Gesture.SILENCE_ENABLED); 2188 dumpSetting(s, p, 2189 Settings.Secure.SILENCE_TIMER_GESTURE_COUNT, 2190 SecureSettingsProto.Gesture.SILENCE_TIMER_COUNT); 2191 2192 dumpSetting(s, p, 2193 Settings.Secure.SKIP_GESTURE_COUNT, 2194 SecureSettingsProto.Gesture.SKIP_COUNT); 2195 dumpSetting(s, p, 2196 Settings.Secure.SKIP_GESTURE, 2197 SecureSettingsProto.Gesture.SKIP_ENABLED); 2198 2199 dumpSetting(s, p, 2200 Settings.Secure.SILENCE_ALARMS_TOUCH_COUNT, 2201 SecureSettingsProto.Gesture.SILENCE_ALARMS_TOUCH_COUNT); 2202 dumpSetting(s, p, 2203 Settings.Secure.SILENCE_CALL_TOUCH_COUNT, 2204 SecureSettingsProto.Gesture.SILENCE_CALLS_TOUCH_COUNT); 2205 dumpSetting(s, p, 2206 Settings.Secure.SILENCE_TIMER_TOUCH_COUNT, 2207 SecureSettingsProto.Gesture.SILENCE_TIMER_TOUCH_COUNT); 2208 dumpSetting(s, p, 2209 Settings.Secure.SKIP_TOUCH_COUNT, 2210 SecureSettingsProto.Gesture.SKIP_TOUCH_COUNT); 2211 dumpSetting(s, p, 2212 Settings.Secure.AWARE_TAP_PAUSE_GESTURE_COUNT, 2213 SecureSettingsProto.Gesture.AWARE_TAP_PAUSE_GESTURE_COUNT); 2214 dumpSetting(s, p, 2215 Settings.Secure.AWARE_TAP_PAUSE_TOUCH_COUNT, 2216 SecureSettingsProto.Gesture.AWARE_TAP_PAUSE_TOUCH_COUNT); 2217 p.end(gestureToken); 2218 2219 dumpSetting(s, p, 2220 Settings.Secure.IMMERSIVE_MODE_CONFIRMATIONS, 2221 SecureSettingsProto.IMMERSIVE_MODE_CONFIRMATIONS); 2222 2223 final long incallToken = p.start(SecureSettingsProto.INCALL); 2224 dumpSetting(s, p, 2225 Settings.Secure.INCALL_POWER_BUTTON_BEHAVIOR, 2226 SecureSettingsProto.Incall.POWER_BUTTON_BEHAVIOR); 2227 dumpSetting(s, p, 2228 Settings.Secure.INCALL_BACK_BUTTON_BEHAVIOR, 2229 SecureSettingsProto.Incall.BACK_BUTTON_BEHAVIOR); 2230 p.end(incallToken); 2231 2232 final long inputMethodsToken = p.start(SecureSettingsProto.INPUT_METHODS); 2233 dumpSetting(s, p, 2234 Settings.Secure.DEFAULT_INPUT_METHOD, 2235 SecureSettingsProto.InputMethods.DEFAULT_INPUT_METHOD); 2236 dumpSetting(s, p, 2237 Settings.Secure.DISABLED_SYSTEM_INPUT_METHODS, 2238 SecureSettingsProto.InputMethods.DISABLED_SYSTEM_INPUT_METHODS); 2239 dumpSetting(s, p, 2240 Settings.Secure.ENABLED_INPUT_METHODS, 2241 SecureSettingsProto.InputMethods.ENABLED_INPUT_METHODS); 2242 dumpSetting(s, p, 2243 Settings.Secure.INPUT_METHODS_SUBTYPE_HISTORY, 2244 SecureSettingsProto.InputMethods.SUBTYPE_HISTORY); 2245 dumpSetting(s, p, 2246 Settings.Secure.INPUT_METHOD_SELECTOR_VISIBILITY, 2247 SecureSettingsProto.InputMethods.METHOD_SELECTOR_VISIBILITY); 2248 dumpSetting(s, p, 2249 Settings.Secure.SELECTED_INPUT_METHOD_SUBTYPE, 2250 SecureSettingsProto.InputMethods.SELECTED_INPUT_METHOD_SUBTYPE); 2251 dumpSetting(s, p, 2252 Settings.Secure.SHOW_IME_WITH_HARD_KEYBOARD, 2253 SecureSettingsProto.InputMethods.SHOW_IME_WITH_HARD_KEYBOARD); 2254 dumpSetting(s, p, 2255 Settings.Secure.DEFAULT_VOICE_INPUT_METHOD, 2256 SecureSettingsProto.InputMethods.DEFAULT_VOICE_INPUT_METHOD); 2257 p.end(inputMethodsToken); 2258 2259 dumpSetting(s, p, 2260 Settings.Secure.INSTALL_NON_MARKET_APPS, 2261 SecureSettingsProto.INSTALL_NON_MARKET_APPS); 2262 dumpSetting(s, p, 2263 Settings.Secure.INSTANT_APPS_ENABLED, 2264 SecureSettingsProto.INSTANT_APPS_ENABLED); 2265 dumpSetting(s, p, 2266 Settings.Secure.KEYGUARD_SLICE_URI, 2267 SecureSettingsProto.KEYGUARD_SLICE_URI); 2268 dumpSetting(s, p, 2269 Settings.Secure.LAST_SETUP_SHOWN, 2270 SecureSettingsProto.LAST_SETUP_SHOWN); 2271 2272 final long locationToken = p.start(SecureSettingsProto.LOCATION); 2273 // Settings.Secure.LOCATION_PROVIDERS_ALLOWED intentionally excluded since it's deprecated. 2274 dumpSetting(s, p, 2275 Settings.Secure.LOCATION_MODE, 2276 SecureSettingsProto.Location.MODE); 2277 dumpSetting(s, p, 2278 Settings.Secure.LOCATION_CHANGER, 2279 SecureSettingsProto.Location.CHANGER); 2280 p.end(locationToken); 2281 2282 final long locationAccessCheckToken = p.start(SecureSettingsProto.LOCATION_ACCESS_CHECK); 2283 dumpSetting(s, p, 2284 Settings.Secure.LOCATION_ACCESS_CHECK_INTERVAL_MILLIS, 2285 SecureSettingsProto.LocationAccessCheck.INTERVAL_MILLIS); 2286 dumpSetting(s, p, 2287 Settings.Secure.LOCATION_ACCESS_CHECK_DELAY_MILLIS, 2288 SecureSettingsProto.LocationAccessCheck.DELAY_MILLIS); 2289 p.end(locationAccessCheckToken); 2290 2291 final long lockScreenToken = p.start(SecureSettingsProto.LOCK_SCREEN); 2292 // Settings.Secure.LOCK_BIOMETRIC_WEAK_FLAGS intentionally excluded since it's deprecated. 2293 // Settings.Secure.LOCK_PATTERN_ENABLED intentionally excluded since it's deprecated. 2294 // Settings.Secure.LOCK_PATTERN_VISIBLE intentionally excluded since it's deprecated. 2295 // Settings.Secure.LOCK_PATTERN_TACTICLE_FEEDBACK_ENABLED intentionally excluded since it's deprecated. 2296 dumpSetting(s, p, 2297 Settings.Secure.LOCK_SCREEN_LOCK_AFTER_TIMEOUT, 2298 SecureSettingsProto.LockScreen.LOCK_AFTER_TIMEOUT); 2299 // Settings.Secure.LOCK_SCREEN_OWNER_INFO intentionally excluded since it's deprecated. 2300 // Settings.Secure.LOCK_SCREEN_APPWIDGET_IDS intentionally excluded since it's deprecated. 2301 // Settings.Secure.LOCK_SCREEN_FALLBACK_APPWIDGET_ID intentionally excluded since it's deprecated. 2302 // Settings.Secure.LOCK_SCREEN_STICKY_APPWIDGET intentionally excluded since it's deprecated. 2303 // Settings.Secure.LOCK_SCREEN_OWNER_INFO_ENABLED intentionally excluded since it's deprecated. 2304 dumpSetting(s, p, 2305 Settings.Secure.LOCK_SCREEN_ALLOW_PRIVATE_NOTIFICATIONS, 2306 SecureSettingsProto.LockScreen.ALLOW_PRIVATE_NOTIFICATIONS); 2307 dumpSetting(s, p, 2308 Settings.Secure.LOCK_SCREEN_ALLOW_REMOTE_INPUT, 2309 SecureSettingsProto.LockScreen.ALLOW_REMOTE_INPUT); 2310 dumpSetting(s, p, 2311 Settings.Secure.LOCK_SCREEN_SHOW_NOTIFICATIONS, 2312 SecureSettingsProto.LockScreen.SHOW_NOTIFICATIONS); 2313 p.end(lockScreenToken); 2314 2315 dumpSetting(s, p, 2316 Settings.Secure.LOCK_TO_APP_EXIT_LOCKED, 2317 SecureSettingsProto.LOCK_TO_APP_EXIT_LOCKED); 2318 dumpSetting(s, p, 2319 Settings.Secure.LONG_PRESS_TIMEOUT, 2320 SecureSettingsProto.LONG_PRESS_TIMEOUT); 2321 2322 final long managedProfileToken = p.start(SecureSettingsProto.MANAGED_PROFILE); 2323 dumpSetting(s, p, 2324 Settings.Secure.MANAGED_PROFILE_CONTACT_REMOTE_SEARCH, 2325 SecureSettingsProto.ManagedProfile.CONTACT_REMOTE_SEARCH); 2326 p.end(managedProfileToken); 2327 2328 final long mountToken = p.start(SecureSettingsProto.MOUNT); 2329 dumpSetting(s, p, 2330 Settings.Secure.MOUNT_PLAY_NOTIFICATION_SND, 2331 SecureSettingsProto.Mount.PLAY_NOTIFICATION_SND); 2332 dumpSetting(s, p, 2333 Settings.Secure.MOUNT_UMS_AUTOSTART, 2334 SecureSettingsProto.Mount.UMS_AUTOSTART); 2335 dumpSetting(s, p, 2336 Settings.Secure.MOUNT_UMS_PROMPT, 2337 SecureSettingsProto.Mount.UMS_PROMPT); 2338 dumpSetting(s, p, 2339 Settings.Secure.MOUNT_UMS_NOTIFY_ENABLED, 2340 SecureSettingsProto.Mount.UMS_NOTIFY_ENABLED); 2341 p.end(mountToken); 2342 2343 dumpSetting(s, p, 2344 Settings.Secure.MULTI_PRESS_TIMEOUT, 2345 SecureSettingsProto.MULTI_PRESS_TIMEOUT); 2346 2347 final long navBar = p.start(SecureSettingsProto.NAV_BAR); 2348 dumpSetting(s, p, 2349 Settings.Secure.NAV_BAR_FORCE_VISIBLE, 2350 SecureSettingsProto.NavBar.NAV_BAR_FORCE_VISIBLE); 2351 dumpSetting(s, p, 2352 Settings.Secure.NAV_BAR_KIDS_MODE, 2353 SecureSettingsProto.NavBar.NAV_BAR_KIDS_MODE); 2354 p.end(navBar); 2355 2356 dumpSetting(s, p, 2357 Settings.Secure.NAVIGATION_MODE, 2358 SecureSettingsProto.NAVIGATION_MODE); 2359 2360 final long gestureNavToken = p.start(SecureSettingsProto.GESTURE_NAVIGATION); 2361 dumpSetting(s, p, 2362 Settings.Secure.BACK_GESTURE_INSET_SCALE_LEFT, 2363 SecureSettingsProto.GestureNavigation.BACK_GESTURE_INSET_SCALE_LEFT); 2364 dumpSetting(s, p, 2365 Settings.Secure.BACK_GESTURE_INSET_SCALE_RIGHT, 2366 SecureSettingsProto.GestureNavigation.BACK_GESTURE_INSET_SCALE_RIGHT); 2367 p.end(gestureNavToken); 2368 2369 final long nfcPaymentToken = p.start(SecureSettingsProto.NFC_PAYMENT); 2370 dumpSetting(s, p, 2371 Settings.Secure.NFC_PAYMENT_DEFAULT_COMPONENT, 2372 SecureSettingsProto.NfcPayment.DEFAULT_COMPONENT); 2373 dumpSetting(s, p, 2374 Settings.Secure.NFC_PAYMENT_FOREGROUND, 2375 SecureSettingsProto.NfcPayment.FOREGROUND); 2376 dumpSetting(s, p, 2377 Settings.Secure.PAYMENT_SERVICE_SEARCH_URI, 2378 SecureSettingsProto.NfcPayment.PAYMENT_SERVICE_SEARCH_URI); 2379 p.end(nfcPaymentToken); 2380 2381 final long nightDisplayToken = p.start(SecureSettingsProto.NIGHT_DISPLAY); 2382 dumpSetting(s, p, 2383 Settings.Secure.NIGHT_DISPLAY_ACTIVATED, 2384 SecureSettingsProto.NightDisplay.ACTIVATED); 2385 dumpSetting(s, p, 2386 Settings.Secure.NIGHT_DISPLAY_AUTO_MODE, 2387 SecureSettingsProto.NightDisplay.AUTO_MODE); 2388 dumpSetting(s, p, 2389 Settings.Secure.NIGHT_DISPLAY_COLOR_TEMPERATURE, 2390 SecureSettingsProto.NightDisplay.COLOR_TEMPERATURE); 2391 dumpSetting(s, p, 2392 Settings.Secure.NIGHT_DISPLAY_CUSTOM_START_TIME, 2393 SecureSettingsProto.NightDisplay.CUSTOM_START_TIME); 2394 dumpSetting(s, p, 2395 Settings.Secure.NIGHT_DISPLAY_CUSTOM_END_TIME, 2396 SecureSettingsProto.NightDisplay.CUSTOM_END_TIME); 2397 dumpSetting(s, p, 2398 Settings.Secure.NIGHT_DISPLAY_LAST_ACTIVATED_TIME, 2399 SecureSettingsProto.NightDisplay.LAST_ACTIVATED_TIME); 2400 p.end(nightDisplayToken); 2401 2402 final long notificationToken = p.start(SecureSettingsProto.NOTIFICATION); 2403 dumpSetting(s, p, 2404 Settings.Secure.ENABLED_NOTIFICATION_ASSISTANT, 2405 SecureSettingsProto.Notification.ENABLED_ASSISTANT); 2406 dumpSetting(s, p, 2407 Settings.Secure.ENABLED_NOTIFICATION_LISTENERS, 2408 SecureSettingsProto.Notification.ENABLED_LISTENERS); 2409 dumpSetting(s, p, 2410 Settings.Secure.ENABLED_NOTIFICATION_POLICY_ACCESS_PACKAGES, 2411 SecureSettingsProto.Notification.ENABLED_POLICY_ACCESS_PACKAGES); 2412 dumpSetting(s, p, 2413 Settings.Secure.NOTIFICATION_BADGING, 2414 SecureSettingsProto.Notification.BADGING); 2415 dumpSetting(s, p, 2416 Settings.Secure.NOTIFICATION_BUBBLES, 2417 SecureSettingsProto.Notification.BUBBLES); 2418 dumpSetting(s, p, 2419 Settings.Secure.SHOW_NOTE_ABOUT_NOTIFICATION_HIDING, 2420 SecureSettingsProto.Notification.SHOW_NOTE_ABOUT_NOTIFICATION_HIDING); 2421 dumpSetting(s, p, 2422 Settings.Secure.IN_CALL_NOTIFICATION_ENABLED, 2423 SecureSettingsProto.Notification.IN_CALL_NOTIFICATION_ENABLED); 2424 p.end(notificationToken); 2425 2426 final long oneHandedToken = p.start(SecureSettingsProto.ONEHANDED); 2427 dumpSetting(s, p, 2428 Settings.Secure.ONE_HANDED_MODE_ENABLED, 2429 SecureSettingsProto.OneHanded.ONE_HANDED_MODE_ENABLED); 2430 dumpSetting(s, p, 2431 Settings.Secure.ONE_HANDED_MODE_TIMEOUT, 2432 SecureSettingsProto.OneHanded.ONE_HANDED_MODE_TIMEOUT); 2433 dumpSetting(s, p, 2434 Settings.Secure.TAPS_APP_TO_EXIT, 2435 SecureSettingsProto.OneHanded.TAPS_APP_TO_EXIT); 2436 p.end(oneHandedToken); 2437 2438 final long parentalControlToken = p.start(SecureSettingsProto.PARENTAL_CONTROL); 2439 dumpSetting(s, p, 2440 Settings.Secure.PARENTAL_CONTROL_ENABLED, 2441 SecureSettingsProto.ParentalControl.ENABLED); 2442 dumpSetting(s, p, 2443 Settings.Secure.PARENTAL_CONTROL_LAST_UPDATE, 2444 SecureSettingsProto.ParentalControl.LAST_UPDATE); 2445 dumpSetting(s, p, 2446 Settings.Secure.PARENTAL_CONTROL_REDIRECT_URL, 2447 SecureSettingsProto.ParentalControl.REDIRECT_URL); 2448 p.end(parentalControlToken); 2449 2450 final long powerMenuPrivacyToken = p.start(SecureSettingsProto.POWER_MENU_PRIVACY); 2451 dumpSetting(s, p, 2452 Settings.Secure.POWER_MENU_LOCKED_SHOW_CONTENT, 2453 SecureSettingsProto.PowerMenuPrivacy.SHOW); 2454 p.end(powerMenuPrivacyToken); 2455 2456 final long extraLowPowerModeToken = p.start(SecureSettingsProto.EXTRA_LOW_POWER_MODE); 2457 dumpSetting(s, p, 2458 Settings.Secure.EXTRA_AUTOMATIC_POWER_SAVE_MODE, 2459 SecureSettingsProto.ExtraLowPowerMode.EXTRA_AUTOMATIC_POWER_SAVE_MODE); 2460 p.end(extraLowPowerModeToken); 2461 2462 final long printServiceToken = p.start(SecureSettingsProto.PRINT_SERVICE); 2463 dumpSetting(s, p, 2464 Settings.Secure.PRINT_SERVICE_SEARCH_URI, 2465 SecureSettingsProto.PrintService.SEARCH_URI); 2466 dumpSetting(s, p, 2467 Settings.Secure.ENABLED_PRINT_SERVICES, 2468 SecureSettingsProto.PrintService.ENABLED_PRINT_SERVICES); 2469 dumpSetting(s, p, 2470 Settings.Secure.DISABLED_PRINT_SERVICES, 2471 SecureSettingsProto.PrintService.DISABLED_PRINT_SERVICES); 2472 p.end(printServiceToken); 2473 2474 final long qsToken = p.start(SecureSettingsProto.QS); 2475 dumpSetting(s, p, 2476 Settings.Secure.QS_TILES, 2477 SecureSettingsProto.QuickSettings.TILES); 2478 dumpSetting(s, p, 2479 Settings.Secure.QS_AUTO_ADDED_TILES, 2480 SecureSettingsProto.QuickSettings.AUTO_ADDED_TILES); 2481 p.end(qsToken); 2482 2483 final long reduceBrightColorsToken = p.start(SecureSettingsProto.REDUCE_BRIGHT_COLORS); 2484 dumpSetting(s, p, 2485 Settings.Secure.REDUCE_BRIGHT_COLORS_ACTIVATED, 2486 SecureSettingsProto.ReduceBrightColors.ACTIVATED); 2487 dumpSetting(s, p, 2488 Settings.Secure.REDUCE_BRIGHT_COLORS_LEVEL, 2489 SecureSettingsProto.ReduceBrightColors.LEVEL); 2490 dumpSetting(s, p, 2491 Settings.Secure.REDUCE_BRIGHT_COLORS_PERSIST_ACROSS_REBOOTS, 2492 SecureSettingsProto.ReduceBrightColors.PERSIST_ACROSS_REBOOTS); 2493 p.end(reduceBrightColorsToken); 2494 2495 final long rotationToken = p.start(SecureSettingsProto.ROTATION); 2496 dumpSetting(s, p, 2497 Settings.Secure.SHOW_ROTATION_SUGGESTIONS, 2498 SecureSettingsProto.Rotation.SHOW_ROTATION_SUGGESTIONS); 2499 dumpSetting(s, p, 2500 Settings.Secure.NUM_ROTATION_SUGGESTIONS_ACCEPTED, 2501 SecureSettingsProto.Rotation.NUM_ROTATION_SUGGESTIONS_ACCEPTED); 2502 p.end(rotationToken); 2503 2504 dumpSetting(s, p, 2505 Settings.Secure.RTT_CALLING_MODE, 2506 SecureSettingsProto.RTT_CALLING_MODE); 2507 2508 final long screensaverToken = p.start(SecureSettingsProto.SCREENSAVER); 2509 dumpSetting(s, p, 2510 Settings.Secure.SCREENSAVER_ENABLED, 2511 SecureSettingsProto.Screensaver.ENABLED); 2512 dumpSetting(s, p, 2513 Settings.Secure.SCREENSAVER_COMPONENTS, 2514 SecureSettingsProto.Screensaver.COMPONENTS); 2515 dumpSetting(s, p, 2516 Settings.Secure.SCREENSAVER_ACTIVATE_ON_DOCK, 2517 SecureSettingsProto.Screensaver.ACTIVATE_ON_DOCK); 2518 dumpSetting(s, p, 2519 Settings.Secure.SCREENSAVER_ACTIVATE_ON_SLEEP, 2520 SecureSettingsProto.Screensaver.ACTIVATE_ON_SLEEP); 2521 dumpSetting(s, p, 2522 Settings.Secure.SCREENSAVER_DEFAULT_COMPONENT, 2523 SecureSettingsProto.Screensaver.DEFAULT_COMPONENT); 2524 p.end(screensaverToken); 2525 2526 final long searchToken = p.start(SecureSettingsProto.SEARCH); 2527 dumpSetting(s, p, 2528 Settings.Secure.SEARCH_GLOBAL_SEARCH_ACTIVITY, 2529 SecureSettingsProto.Search.GLOBAL_SEARCH_ACTIVITY); 2530 dumpSetting(s, p, 2531 Settings.Secure.SEARCH_NUM_PROMOTED_SOURCES, 2532 SecureSettingsProto.Search.NUM_PROMOTED_SOURCES); 2533 dumpSetting(s, p, 2534 Settings.Secure.SEARCH_MAX_RESULTS_TO_DISPLAY, 2535 SecureSettingsProto.Search.MAX_RESULTS_TO_DISPLAY); 2536 dumpSetting(s, p, 2537 Settings.Secure.SEARCH_MAX_RESULTS_PER_SOURCE, 2538 SecureSettingsProto.Search.MAX_RESULTS_PER_SOURCE); 2539 dumpSetting(s, p, 2540 Settings.Secure.SEARCH_WEB_RESULTS_OVERRIDE_LIMIT, 2541 SecureSettingsProto.Search.WEB_RESULTS_OVERRIDE_LIMIT); 2542 dumpSetting(s, p, 2543 Settings.Secure.SEARCH_PROMOTED_SOURCE_DEADLINE_MILLIS, 2544 SecureSettingsProto.Search.PROMOTED_SOURCE_DEADLINE_MILLIS); 2545 dumpSetting(s, p, 2546 Settings.Secure.SEARCH_SOURCE_TIMEOUT_MILLIS, 2547 SecureSettingsProto.Search.SOURCE_TIMEOUT_MILLIS); 2548 dumpSetting(s, p, 2549 Settings.Secure.SEARCH_PREFILL_MILLIS, 2550 SecureSettingsProto.Search.PREFILL_MILLIS); 2551 dumpSetting(s, p, 2552 Settings.Secure.SEARCH_MAX_STAT_AGE_MILLIS, 2553 SecureSettingsProto.Search.MAX_STAT_AGE_MILLIS); 2554 dumpSetting(s, p, 2555 Settings.Secure.SEARCH_MAX_SOURCE_EVENT_AGE_MILLIS, 2556 SecureSettingsProto.Search.MAX_SOURCE_EVENT_AGE_MILLIS); 2557 dumpSetting(s, p, 2558 Settings.Secure.SEARCH_MIN_IMPRESSIONS_FOR_SOURCE_RANKING, 2559 SecureSettingsProto.Search.MIN_IMPRESSIONS_FOR_SOURCE_RANKING); 2560 dumpSetting(s, p, 2561 Settings.Secure.SEARCH_MIN_CLICKS_FOR_SOURCE_RANKING, 2562 SecureSettingsProto.Search.MIN_CLICKS_FOR_SOURCE_RANKING); 2563 dumpSetting(s, p, 2564 Settings.Secure.SEARCH_MAX_SHORTCUTS_RETURNED, 2565 SecureSettingsProto.Search.MAX_SHORTCUTS_RETURNED); 2566 dumpSetting(s, p, 2567 Settings.Secure.SEARCH_QUERY_THREAD_CORE_POOL_SIZE, 2568 SecureSettingsProto.Search.QUERY_THREAD_CORE_POOL_SIZE); 2569 dumpSetting(s, p, 2570 Settings.Secure.SEARCH_QUERY_THREAD_MAX_POOL_SIZE, 2571 SecureSettingsProto.Search.QUERY_THREAD_MAX_POOL_SIZE); 2572 dumpSetting(s, p, 2573 Settings.Secure.SEARCH_SHORTCUT_REFRESH_CORE_POOL_SIZE, 2574 SecureSettingsProto.Search.SHORTCUT_REFRESH_CORE_POOL_SIZE); 2575 dumpSetting(s, p, 2576 Settings.Secure.SEARCH_SHORTCUT_REFRESH_MAX_POOL_SIZE, 2577 SecureSettingsProto.Search.SHORTCUT_REFRESH_MAX_POOL_SIZE); 2578 dumpSetting(s, p, 2579 Settings.Secure.SEARCH_THREAD_KEEPALIVE_SECONDS, 2580 SecureSettingsProto.Search.THREAD_KEEPALIVE_SECONDS); 2581 dumpSetting(s, p, 2582 Settings.Secure.SEARCH_PER_SOURCE_CONCURRENT_QUERY_LIMIT, 2583 SecureSettingsProto.Search.PER_SOURCE_CONCURRENT_QUERY_LIMIT); 2584 p.end(searchToken); 2585 2586 final long spellCheckerToken = p.start(SecureSettingsProto.SPELL_CHECKER); 2587 dumpSetting(s, p, 2588 Settings.Secure.SPELL_CHECKER_ENABLED, 2589 SecureSettingsProto.SpellChecker.ENABLED); 2590 dumpSetting(s, p, 2591 Settings.Secure.SELECTED_SPELL_CHECKER, 2592 SecureSettingsProto.SpellChecker.SELECTED); 2593 dumpSetting(s, p, 2594 Settings.Secure.SELECTED_SPELL_CHECKER_SUBTYPE, 2595 SecureSettingsProto.SpellChecker.SELECTED_SUBTYPE); 2596 p.end(spellCheckerToken); 2597 2598 dumpSetting(s, p, 2599 Settings.Secure.SETTINGS_CLASSNAME, 2600 SecureSettingsProto.SETTINGS_CLASSNAME); 2601 dumpSetting(s, p, 2602 Settings.Secure.SHOW_FIRST_CRASH_DIALOG_DEV_OPTION, 2603 SecureSettingsProto.SHOW_FIRST_CRASH_DIALOG_DEV_OPTION); 2604 dumpSetting(s, p, 2605 Settings.Secure.SKIP_FIRST_USE_HINTS, 2606 SecureSettingsProto.SKIP_FIRST_USE_HINTS); 2607 dumpSetting(s, p, 2608 Settings.Secure.SLEEP_TIMEOUT, 2609 SecureSettingsProto.SLEEP_TIMEOUT); 2610 dumpSetting(s, p, 2611 Settings.Secure.SMS_DEFAULT_APPLICATION, 2612 SecureSettingsProto.SMS_DEFAULT_APPLICATION); 2613 2614 final long soundsToken = p.start(SecureSettingsProto.SOUNDS); 2615 dumpSetting(s, p, 2616 Settings.Secure.CHARGING_SOUNDS_ENABLED, 2617 SecureSettingsProto.Sounds.CHARGING_SOUNDS_ENABLED); 2618 dumpSetting(s, p, 2619 Settings.Secure.CHARGING_VIBRATION_ENABLED, 2620 SecureSettingsProto.Sounds.CHARGING_VIBRATION_ENABLED); 2621 p.end(soundsToken); 2622 2623 dumpSetting(s, p, 2624 Settings.Secure.STYLUS_POINTER_ICON_ENABLED, 2625 SecureSettingsProto.STYLUS_POINTER_ICON_ENABLED); 2626 dumpSetting(s, p, 2627 Settings.Secure.SWIPE_BOTTOM_TO_NOTIFICATION_ENABLED, 2628 SecureSettingsProto.SWIPE_BOTTOM_TO_NOTIFICATION_ENABLED); 2629 dumpSetting(s, p, 2630 Settings.Secure.SYNC_PARENT_SOUNDS, 2631 SecureSettingsProto.SYNC_PARENT_SOUNDS); 2632 dumpSetting(s, p, 2633 Settings.Secure.SYSTEM_NAVIGATION_KEYS_ENABLED, 2634 SecureSettingsProto.SYSTEM_NAVIGATION_KEYS_ENABLED); 2635 dumpSetting(s, p, 2636 Settings.Secure.THEME_CUSTOMIZATION_OVERLAY_PACKAGES, 2637 SecureSettingsProto.THEME_CUSTOMIZATION_OVERLAY_PACKAGES); 2638 dumpSetting(s, p, 2639 Settings.Secure.TRUST_AGENTS_INITIALIZED, 2640 SecureSettingsProto.TRUST_AGENTS_INITIALIZED); 2641 2642 final long ttsToken = p.start(SecureSettingsProto.TTS); 2643 // Settings.Secure.TTS_USE_DEFAULTS intentionally excluded since it's deprecated. 2644 dumpSetting(s, p, 2645 Settings.Secure.TTS_DEFAULT_RATE, 2646 SecureSettingsProto.Tts.DEFAULT_RATE); 2647 dumpSetting(s, p, 2648 Settings.Secure.TTS_DEFAULT_PITCH, 2649 SecureSettingsProto.Tts.DEFAULT_PITCH); 2650 dumpSetting(s, p, 2651 Settings.Secure.TTS_DEFAULT_SYNTH, 2652 SecureSettingsProto.Tts.DEFAULT_SYNTH); 2653 // Settings.Secure.TTS_DEFAULT_LANG intentionally excluded since it's deprecated. 2654 // Settings.Secure.TTS_DEFAULT_COUNTRY intentionally excluded since it's deprecated. 2655 // Settings.Secure.TTS_DEFAULT_VARIANT intentionally excluded since it's deprecated. 2656 dumpSetting(s, p, 2657 Settings.Secure.TTS_DEFAULT_LOCALE, 2658 SecureSettingsProto.Tts.DEFAULT_LOCALE); 2659 dumpSetting(s, p, 2660 Settings.Secure.TTS_ENABLED_PLUGINS, 2661 SecureSettingsProto.Tts.ENABLED_PLUGINS); 2662 p.end(ttsToken); 2663 2664 final long ttyToken = p.start(SecureSettingsProto.TTY); 2665 dumpSetting(s, p, 2666 Settings.Secure.TTY_MODE_ENABLED, 2667 SecureSettingsProto.Tty.TTY_MODE_ENABLED); 2668 dumpSetting(s, p, 2669 Settings.Secure.PREFERRED_TTY_MODE, 2670 SecureSettingsProto.Tty.PREFERRED_TTY_MODE); 2671 p.end(ttyToken); 2672 2673 final long tvToken = p.start(SecureSettingsProto.TV); 2674 // Whether the current user has been set up via setup wizard (0 = false, 1 = true). This 2675 // value differs from USER_SETUP_COMPLETE in that it can be reset back to 0 in case 2676 // SetupWizard has been re-enabled on TV devices. 2677 dumpSetting(s, p, 2678 Settings.Secure.TV_USER_SETUP_COMPLETE, 2679 SecureSettingsProto.Tv.USER_SETUP_COMPLETE); 2680 dumpSetting(s, p, 2681 Settings.Secure.TV_INPUT_HIDDEN_INPUTS, 2682 SecureSettingsProto.Tv.INPUT_HIDDEN_INPUTS); 2683 dumpSetting(s, p, 2684 Settings.Secure.TV_INPUT_CUSTOM_LABELS, 2685 SecureSettingsProto.Tv.INPUT_CUSTOM_LABELS); 2686 p.end(tvToken); 2687 2688 dumpSetting(s, p, 2689 Settings.Secure.UI_NIGHT_MODE, 2690 SecureSettingsProto.UI_NIGHT_MODE); 2691 dumpSetting(s, p, 2692 Settings.Secure.UNKNOWN_SOURCES_DEFAULT_REVERSED, 2693 SecureSettingsProto.UNKNOWN_SOURCES_DEFAULT_REVERSED); 2694 dumpSetting(s, p, 2695 Settings.Secure.USB_AUDIO_AUTOMATIC_ROUTING_DISABLED, 2696 SecureSettingsProto.USB_AUDIO_AUTOMATIC_ROUTING_DISABLED); 2697 dumpSetting(s, p, 2698 Settings.Secure.USER_SETUP_COMPLETE, 2699 SecureSettingsProto.USER_SETUP_COMPLETE); 2700 2701 final long voiceToken = p.start(SecureSettingsProto.VOICE); 2702 dumpSetting(s, p, 2703 Settings.Secure.VOICE_INTERACTION_SERVICE, 2704 SecureSettingsProto.Voice.INTERACTION_SERVICE); 2705 dumpSetting(s, p, 2706 Settings.Secure.VOICE_RECOGNITION_SERVICE, 2707 SecureSettingsProto.Voice.RECOGNITION_SERVICE); 2708 p.end(voiceToken); 2709 2710 final long volumeToken = p.start(SecureSettingsProto.VOLUME); 2711 dumpSetting(s, p, 2712 Settings.Secure.VOLUME_HUSH_GESTURE, 2713 SecureSettingsProto.Volume.HUSH_GESTURE); 2714 dumpSetting(s, p, 2715 Settings.Secure.UNSAFE_VOLUME_MUSIC_ACTIVE_MS, 2716 SecureSettingsProto.Volume.UNSAFE_VOLUME_MUSIC_ACTIVE_MS); 2717 p.end(volumeToken); 2718 2719 final long vrToken = p.start(SecureSettingsProto.VR); 2720 dumpSetting(s, p, 2721 Settings.Secure.VR_DISPLAY_MODE, 2722 SecureSettingsProto.Vr.DISPLAY_MODE); 2723 dumpSetting(s, p, 2724 Settings.Secure.ENABLED_VR_LISTENERS, 2725 SecureSettingsProto.Vr.ENABLED_LISTENERS); 2726 p.end(vrToken); 2727 2728 dumpSetting(s, p, 2729 Settings.Secure.WAKE_GESTURE_ENABLED, 2730 SecureSettingsProto.WAKE_GESTURE_ENABLED); 2731 2732 final long zenToken = p.start(SecureSettingsProto.ZEN); 2733 dumpSetting(s, p, 2734 Settings.Secure.ZEN_DURATION, 2735 SecureSettingsProto.Zen.DURATION); 2736 dumpSetting(s, p, 2737 Settings.Secure.SHOW_ZEN_UPGRADE_NOTIFICATION, 2738 SecureSettingsProto.Zen.SHOW_ZEN_UPGRADE_NOTIFICATION); 2739 dumpSetting(s, p, 2740 Settings.Secure.SHOW_ZEN_SETTINGS_SUGGESTION, 2741 SecureSettingsProto.Zen.SHOW_ZEN_SETTINGS_SUGGESTION); 2742 dumpSetting(s, p, 2743 Settings.Secure.ZEN_SETTINGS_UPDATED, 2744 SecureSettingsProto.Zen.SETTINGS_UPDATED); 2745 dumpSetting(s, p, 2746 Settings.Secure.ZEN_SETTINGS_SUGGESTION_VIEWED, 2747 SecureSettingsProto.Zen.SETTINGS_SUGGESTION_VIEWED); 2748 dumpSetting(s, p, 2749 Settings.Secure.CHARGE_OPTIMIZATION_MODE, 2750 SecureSettingsProto.CHARGE_OPTIMIZATION_MODE); 2751 p.end(zenToken); 2752 2753 // Please insert new settings using the same order as in SecureSettingsProto. 2754 p.end(token); 2755 2756 // Settings.Secure.DEVELOPMENT_SETTINGS_ENABLED intentionally excluded since it's deprecated. 2757 // Settings.Secure.ADB_ENABLED intentionally excluded since it's deprecated. 2758 // Settings.Secure.ALLOW_MOCK_LOCATION intentionally excluded since it's deprecated. 2759 // Settings.Secure.DATA_ROAMING intentionally excluded since it's deprecated. 2760 // Settings.Secure.DEVICE_PROVISIONED intentionally excluded since it's deprecated. 2761 // Settings.Secure.HTTP_PROXY intentionally excluded since it's deprecated. 2762 // Settings.Secure.LOGGING_ID intentionally excluded since it's deprecated. 2763 // Settings.Secure.NETWORK_PREFERENCE intentionally excluded since it's deprecated. 2764 // Settings.Secure.USB_MASS_STORAGE_ENABLED intentionally excluded since it's deprecated. 2765 // Settings.Secure.USE_GOOGLE_MAIL intentionally excluded since it's deprecated. 2766 // Settings.Secure.WIFI_NETWORKS_AVAILABLE_NOTIFICATION_ON intentionally excluded since it's deprecated. 2767 // Settings.Secure.WIFI_NETWORKS_AVAILABLE_REPEAT_DELAY intentionally excluded since it's deprecated. 2768 // Settings.Secure.WIFI_NUM_OPEN_NETWORKS_KEPT intentionally excluded since it's deprecated. 2769 // Settings.Secure.WIFI_ON intentionally excluded since it's deprecated. 2770 // Settings.Secure.WIFI_WATCHDOG_ACCEPTABLE_PACKET_LOSS_PERCENTAGE intentionally excluded since it's deprecated. 2771 // Settings.Secure.WIFI_WATCHDOG_AP_COUNT intentionally excluded since it's deprecated. 2772 // Settings.Secure.WIFI_WATCHDOG_BACKGROUND_CHECK_DELAY_MS intentionally excluded since it's deprecated. 2773 // Settings.Secure.WIFI_WATCHDOG_BACKGROUND_CHECK_ENABLED intentionally excluded since it's deprecated. 2774 // Settings.Secure.WIFI_WATCHDOG_BACKGROUND_CHECK_TIMEOUT_MS intentionally excluded since it's deprecated. 2775 // Settings.Secure.WIFI_WATCHDOG_INITIAL_IGNORED_PING_COUNT intentionally excluded since it's deprecated. 2776 // Settings.Secure.WIFI_WATCHDOG_MAX_AP_CHECKS intentionally excluded since it's deprecated. 2777 // Settings.Secure.WIFI_WATCHDOG_ON intentionally excluded since it's deprecated. 2778 // Settings.Secure.WIFI_WATCHDOG_WATCH_LIST intentionally excluded since it's deprecated. 2779 // Settings.Secure.WIFI_WATCHDOG_PING_COUNT intentionally excluded since it's deprecated. 2780 // Settings.Secure.WIFI_WATCHDOG_PING_DELAY_MS intentionally excluded since it's deprecated. 2781 // Settings.Secure.WIFI_WATCHDOG_PING_TIMEOUT_MS intentionally excluded since it's deprecated. 2782 // Settings.Secure.WIFI_MAX_DHCP_RETRY_COUNT intentionally excluded since it's deprecated. 2783 // Settings.Secure.WIFI_MOBILE_DATA_TRANSITION_WAKELOCK_TIMEOUT_MS intentionally excluded since it's deprecated. 2784 // Settings.Secure.BACKGROUND_DATA intentionally excluded since it's deprecated. 2785 // Settings.Secure.WIFI_IDLE_MS intentionally excluded since it's deprecated. 2786 2787 2788 // Please insert new settings using the same order as in SecureSettingsProto. 2789 } 2790 dumpProtoSystemSettingsLocked( @onNull ProtoOutputStream p, long fieldId, @NonNull SettingsState s)2791 private static void dumpProtoSystemSettingsLocked( 2792 @NonNull ProtoOutputStream p, long fieldId, @NonNull SettingsState s) { 2793 final long token = p.start(fieldId); 2794 2795 s.dumpHistoricalOperations(p, SystemSettingsProto.HISTORICAL_OPERATIONS); 2796 2797 // This uses the same order as in SystemSettingsProto. 2798 2799 dumpSetting(s, p, 2800 Settings.System.ADVANCED_SETTINGS, 2801 SystemSettingsProto.ADVANCED_SETTINGS); 2802 2803 final long alarmToken = p.start(SystemSettingsProto.ALARM); 2804 dumpSetting(s, p, 2805 Settings.System.ALARM_ALERT, 2806 SystemSettingsProto.Alarm.DEFAULT_URI); 2807 dumpSetting(s, p, 2808 Settings.System.ALARM_ALERT_CACHE, 2809 SystemSettingsProto.Alarm.ALERT_CACHE); 2810 // Settings.System.NEXT_ALARM_FORMATTED intentionally excluded since it's deprecated. 2811 p.end(alarmToken); 2812 2813 final long bluetoothToken = p.start(SystemSettingsProto.BLUETOOTH); 2814 dumpSetting(s, p, 2815 Settings.System.BLUETOOTH_DISCOVERABILITY, 2816 SystemSettingsProto.Bluetooth.DISCOVERABILITY); 2817 dumpSetting(s, p, 2818 Settings.System.BLUETOOTH_DISCOVERABILITY_TIMEOUT, 2819 SystemSettingsProto.Bluetooth.DISCOVERABILITY_TIMEOUT_SECS); 2820 p.end(bluetoothToken); 2821 2822 dumpSetting(s, p, 2823 Settings.System.DISPLAY_COLOR_MODE, 2824 SystemSettingsProto.DISPLAY_COLOR_MODE); 2825 2826 final long devOptionsToken = p.start(SystemSettingsProto.DEVELOPER_OPTIONS); 2827 dumpSetting(s, p, 2828 Settings.System.SHOW_TOUCHES, 2829 SystemSettingsProto.DevOptions.SHOW_TOUCHES); 2830 dumpSetting(s, p, 2831 Settings.System.SHOW_KEY_PRESSES, 2832 SystemSettingsProto.DevOptions.SHOW_KEY_PRESSES); 2833 dumpSetting(s, p, 2834 Settings.System.POINTER_LOCATION, 2835 SystemSettingsProto.DevOptions.POINTER_LOCATION); 2836 dumpSetting(s, p, 2837 Settings.System.WINDOW_ORIENTATION_LISTENER_LOG, 2838 SystemSettingsProto.DevOptions.WINDOW_ORIENTATION_LISTENER_LOG); 2839 p.end(devOptionsToken); 2840 2841 final long dtmfToneToken = p.start(SystemSettingsProto.DTMF_TONE); 2842 dumpSetting(s, p, 2843 Settings.System.DTMF_TONE_WHEN_DIALING, 2844 SystemSettingsProto.DtmfTone.PLAY_WHEN_DIALING); 2845 dumpSetting(s, p, 2846 Settings.System.DTMF_TONE_TYPE_WHEN_DIALING, 2847 SystemSettingsProto.DtmfTone.TYPE_PLAYED_WHEN_DIALING); 2848 p.end(dtmfToneToken); 2849 2850 dumpSetting(s, p, 2851 Settings.System.EGG_MODE, 2852 SystemSettingsProto.EGG_MODE); 2853 dumpSetting(s, p, 2854 Settings.System.END_BUTTON_BEHAVIOR, 2855 SystemSettingsProto.END_BUTTON_BEHAVIOR); 2856 dumpSetting(s, p, 2857 Settings.System.FONT_SCALE, 2858 SystemSettingsProto.FONT_SCALE); 2859 2860 final long hapticFeedbackToken = p.start(SystemSettingsProto.HAPTIC_FEEDBACK); 2861 dumpSetting(s, p, 2862 Settings.System.HAPTIC_FEEDBACK_ENABLED, 2863 SystemSettingsProto.HapticFeedback.ENABLED); 2864 dumpSetting(s, p, 2865 Settings.System.HAPTIC_FEEDBACK_INTENSITY, 2866 SystemSettingsProto.HapticFeedback.INTENSITY); 2867 p.end(hapticFeedbackToken); 2868 2869 dumpSetting(s, p, 2870 Settings.System.HEARING_AID, 2871 SystemSettingsProto.HEARING_AID); 2872 dumpSetting(s, p, 2873 Settings.System.LOCK_TO_APP_ENABLED, 2874 SystemSettingsProto.LOCK_TO_APP_ENABLED); 2875 2876 final long lockscreenToken = p.start(SystemSettingsProto.LOCKSCREEN); 2877 dumpSetting(s, p, 2878 Settings.System.LOCKSCREEN_SOUNDS_ENABLED, 2879 SystemSettingsProto.Lockscreen.SOUNDS_ENABLED); 2880 dumpSetting(s, p, 2881 Settings.System.LOCKSCREEN_DISABLED, 2882 SystemSettingsProto.Lockscreen.DISABLED); 2883 p.end(lockscreenToken); 2884 2885 dumpSetting(s, p, 2886 Settings.System.MEDIA_BUTTON_RECEIVER, 2887 SystemSettingsProto.MEDIA_BUTTON_RECEIVER); 2888 2889 final long notificationToken = p.start(SystemSettingsProto.NOTIFICATION); 2890 dumpSetting(s, p, 2891 Settings.System.NOTIFICATION_SOUND, 2892 SystemSettingsProto.Notification.SOUND); 2893 dumpSetting(s, p, 2894 Settings.System.NOTIFICATION_SOUND_CACHE, 2895 SystemSettingsProto.Notification.SOUND_CACHE); 2896 dumpSetting(s, p, 2897 Settings.System.NOTIFICATION_LIGHT_PULSE, 2898 SystemSettingsProto.Notification.LIGHT_PULSE); 2899 dumpSetting(s, p, 2900 Settings.System.NOTIFICATION_VIBRATION_INTENSITY, 2901 SystemSettingsProto.Notification.VIBRATION_INTENSITY); 2902 dumpSetting(s, p, 2903 Settings.System.CAMERA_FLASH_NOTIFICATION, 2904 SystemSettingsProto.Notification.CAMERA_FLASH_NOTIFICATION); 2905 dumpSetting(s, p, 2906 Settings.System.SCREEN_FLASH_NOTIFICATION, 2907 SystemSettingsProto.Notification.SCREEN_FLASH_NOTIFICATION); 2908 dumpSetting(s, p, 2909 Settings.System.SCREEN_FLASH_NOTIFICATION_COLOR, 2910 SystemSettingsProto.Notification.SCREEN_FLASH_NOTIFICATION_COLOR_GLOBAL); 2911 // Settings.System.NOTIFICATIONS_USE_RING_VOLUME intentionally excluded since it's deprecated. 2912 p.end(notificationToken); 2913 2914 final long pointerToken = p.start(SystemSettingsProto.POINTER); 2915 dumpSetting(s, p, 2916 Settings.System.POINTER_FILL_STYLE, 2917 SystemSettingsProto.Pointer.POINTER_FILL_STYLE); 2918 dumpSetting(s, p, 2919 Settings.System.POINTER_SCALE, 2920 SystemSettingsProto.Pointer.POINTER_SCALE); 2921 p.end(pointerToken); 2922 dumpSetting(s, p, 2923 Settings.System.POINTER_SPEED, 2924 SystemSettingsProto.POINTER_SPEED); 2925 2926 final long ringtoneToken = p.start(SystemSettingsProto.RINGTONE); 2927 dumpSetting(s, p, 2928 Settings.System.RINGTONE, 2929 SystemSettingsProto.Ringtone.DEFAULT_URI); 2930 dumpSetting(s, p, 2931 Settings.System.RINGTONE_CACHE, 2932 SystemSettingsProto.Ringtone.CACHE); 2933 p.end(ringtoneToken); 2934 2935 final long rotationToken = p.start(SystemSettingsProto.ROTATION); 2936 dumpSetting(s, p, 2937 Settings.System.ACCELEROMETER_ROTATION, 2938 SystemSettingsProto.Rotation.ACCELEROMETER_ROTATION); 2939 dumpSetting(s, p, 2940 Settings.System.USER_ROTATION, 2941 SystemSettingsProto.Rotation.USER_ROTATION); 2942 dumpSetting(s, p, 2943 Settings.System.HIDE_ROTATION_LOCK_TOGGLE_FOR_ACCESSIBILITY, 2944 SystemSettingsProto.Rotation.HIDE_ROTATION_LOCK_TOGGLE_FOR_ACCESSIBILITY); 2945 p.end(rotationToken); 2946 2947 final long screenToken = p.start(SystemSettingsProto.SCREEN); 2948 dumpSetting(s, p, 2949 Settings.System.SCREEN_OFF_TIMEOUT, 2950 SystemSettingsProto.Screen.OFF_TIMEOUT); 2951 dumpSetting(s, p, 2952 Settings.System.SCREEN_BRIGHTNESS, 2953 SystemSettingsProto.Screen.BRIGHTNESS); 2954 dumpSetting(s, p, 2955 Settings.System.SCREEN_BRIGHTNESS_MODE, 2956 SystemSettingsProto.Screen.BRIGHTNESS_MODE); 2957 dumpSetting(s, p, 2958 Settings.System.SCREEN_AUTO_BRIGHTNESS_ADJ, 2959 SystemSettingsProto.Screen.AUTO_BRIGHTNESS_ADJ); 2960 p.end(screenToken); 2961 2962 dumpSetting(s, p, 2963 Settings.System.SETUP_WIZARD_HAS_RUN, 2964 SystemSettingsProto.SETUP_WIZARD_HAS_RUN); 2965 dumpSetting(s, p, 2966 Settings.System.SHOW_BATTERY_PERCENT, 2967 SystemSettingsProto.SHOW_BATTERY_PERCENT); 2968 dumpSetting(s, p, 2969 Settings.System.SHOW_GTALK_SERVICE_STATUS, 2970 SystemSettingsProto.SHOW_GTALK_SERVICE_STATUS); 2971 // Settings.System.SHOW_PROCESSES intentionally excluded since it's deprecated. 2972 // Settings.System.SHOW_WEB_SUGGESTIONS intentionally excluded since it's deprecated. 2973 2974 final long sipToken = p.start(SystemSettingsProto.SIP); 2975 dumpSetting(s, p, 2976 Settings.System.SIP_RECEIVE_CALLS, 2977 SystemSettingsProto.Sip.RECEIVE_CALLS); 2978 dumpSetting(s, p, 2979 Settings.System.SIP_CALL_OPTIONS, 2980 SystemSettingsProto.Sip.CALL_OPTIONS); 2981 dumpSetting(s, p, 2982 Settings.System.SIP_ALWAYS, 2983 SystemSettingsProto.Sip.ALWAYS); 2984 dumpSetting(s, p, 2985 Settings.System.SIP_ADDRESS_ONLY, 2986 SystemSettingsProto.Sip.ADDRESS_ONLY); 2987 // Settings.System.SIP_ASK_ME_EACH_TIME intentionally excluded since it's deprecated. 2988 p.end(sipToken); 2989 2990 dumpSetting(s, p, 2991 Settings.System.SOUND_EFFECTS_ENABLED, 2992 SystemSettingsProto.SOUND_EFFECTS_ENABLED); 2993 // Settings.System.POWER_SOUNDS_ENABLED intentionally excluded since it's deprecated. 2994 // Settings.System.DOCK_SOUNDS_ENABLED intentionally excluded since it's deprecated. 2995 // Settings.System.LOW_BATTERY_SOUND intentionally excluded since it's deprecated. 2996 // Settings.System.DESK_DOCK_SOUND intentionally excluded since it's deprecated. 2997 // Settings.System.DESK_UNDOCK_SOUND intentionally excluded since it's deprecated. 2998 // Settings.System.CAR_DOCK_SOUND intentionally excluded since it's deprecated. 2999 // Settings.System.CAR_UNDOCK_SOUND intentionally excluded since it's deprecated. 3000 // Settings.System.LOCK_SOUND intentionally excluded since it's deprecated. 3001 // Settings.System.UNLOCK_SOUND intentionally excluded since it's deprecated. 3002 dumpSetting(s, p, 3003 Settings.System.SYSTEM_LOCALES, 3004 SystemSettingsProto.SYSTEM_LOCALES); 3005 3006 final long textToken = p.start(SystemSettingsProto.TEXT); 3007 dumpSetting(s, p, 3008 Settings.System.TEXT_AUTO_REPLACE, 3009 SystemSettingsProto.Text.AUTO_REPLACE); 3010 dumpSetting(s, p, 3011 Settings.System.TEXT_AUTO_CAPS, 3012 SystemSettingsProto.Text.AUTO_CAPS); 3013 dumpSetting(s, p, 3014 Settings.System.TEXT_AUTO_PUNCTUATE, 3015 SystemSettingsProto.Text.AUTO_PUNCTUATE); 3016 dumpSetting(s, p, 3017 Settings.System.TEXT_SHOW_PASSWORD, 3018 SystemSettingsProto.Text.SHOW_PASSWORD); 3019 p.end(textToken); 3020 3021 // Settings.System.AUTO_TIME intentionally excluded since it's deprecated. 3022 // Settings.System.AUTO_TIME_ZONE intentionally excluded since it's deprecated. 3023 dumpSetting(s, p, 3024 Settings.System.TIME_12_24, 3025 SystemSettingsProto.TIME_12_24); 3026 3027 final long touchpadToken = p.start(SystemSettingsProto.TOUCHPAD); 3028 dumpSetting(s, p, 3029 Settings.System.TOUCHPAD_NATURAL_SCROLLING, 3030 SystemSettingsProto.Touchpad.NATURAL_SCROLLING); 3031 dumpSetting(s, p, 3032 Settings.System.TOUCHPAD_POINTER_SPEED, 3033 SystemSettingsProto.Touchpad.POINTER_SPEED); 3034 dumpSetting(s, p, 3035 Settings.System.TOUCHPAD_RIGHT_CLICK_ZONE, 3036 SystemSettingsProto.Touchpad.RIGHT_CLICK_ZONE); 3037 dumpSetting(s, p, 3038 Settings.System.TOUCHPAD_TAP_TO_CLICK, 3039 SystemSettingsProto.Touchpad.TAP_TO_CLICK); 3040 dumpSetting(s, p, 3041 Settings.System.TOUCHPAD_TAP_DRAGGING, 3042 SystemSettingsProto.Touchpad.TAP_DRAGGING); 3043 p.end(touchpadToken); 3044 3045 dumpSetting(s, p, 3046 Settings.System.TTY_MODE, 3047 SystemSettingsProto.TTY_MODE); 3048 3049 final long vibrateToken = p.start(SystemSettingsProto.VIBRATE); 3050 dumpSetting(s, p, 3051 Settings.System.VIBRATE_ON, 3052 SystemSettingsProto.Vibrate.ON); 3053 dumpSetting(s, p, 3054 Settings.System.VIBRATE_INPUT_DEVICES, 3055 SystemSettingsProto.Vibrate.INPUT_DEVICES); 3056 dumpSetting(s, p, 3057 Settings.System.VIBRATE_IN_SILENT, 3058 SystemSettingsProto.Vibrate.IN_SILENT); 3059 dumpSetting(s, p, 3060 Settings.System.VIBRATE_WHEN_RINGING, 3061 SystemSettingsProto.Vibrate.WHEN_RINGING); 3062 3063 // NOTIFICATION_VIBRATION_INTENSITY is already logged at Notification.vibration_intensity 3064 // HAPTIC_FEEDBACK_INTENSITY is already logged at HapticFeedback.intensity 3065 dumpSetting(s, p, 3066 Settings.System.ALARM_VIBRATION_INTENSITY, 3067 SystemSettingsProto.Vibrate.ALARM_INTENSITY); 3068 dumpSetting(s, p, 3069 Settings.System.MEDIA_VIBRATION_INTENSITY, 3070 SystemSettingsProto.Vibrate.MEDIA_INTENSITY); 3071 dumpSetting(s, p, 3072 Settings.System.RING_VIBRATION_INTENSITY, 3073 SystemSettingsProto.Vibrate.RING_INTENSITY); 3074 p.end(vibrateToken); 3075 3076 final long volumeToken = p.start(SystemSettingsProto.VOLUME); 3077 dumpSetting(s, p, 3078 Settings.System.VOLUME_RING, 3079 SystemSettingsProto.Volume.RING); 3080 dumpSetting(s, p, 3081 Settings.System.VOLUME_SYSTEM, 3082 SystemSettingsProto.Volume.SYSTEM); 3083 dumpSetting(s, p, 3084 Settings.System.VOLUME_VOICE, 3085 SystemSettingsProto.Volume.VOICE); 3086 dumpSetting(s, p, 3087 Settings.System.VOLUME_MUSIC, 3088 SystemSettingsProto.Volume.MUSIC); 3089 dumpSetting(s, p, 3090 Settings.System.VOLUME_ALARM, 3091 SystemSettingsProto.Volume.ALARM); 3092 dumpSetting(s, p, 3093 Settings.System.VOLUME_NOTIFICATION, 3094 SystemSettingsProto.Volume.NOTIFICATION); 3095 dumpSetting(s, p, 3096 Settings.System.VOLUME_BLUETOOTH_SCO, 3097 SystemSettingsProto.Volume.BLUETOOTH_SCO); 3098 dumpSetting(s, p, 3099 Settings.System.VOLUME_ACCESSIBILITY, 3100 SystemSettingsProto.Volume.ACCESSIBILITY); 3101 dumpSetting(s, p, 3102 Settings.System.VOLUME_MASTER, 3103 SystemSettingsProto.Volume.MASTER); 3104 dumpSetting(s, p, 3105 Settings.System.MASTER_MONO, 3106 SystemSettingsProto.Volume.MASTER_MONO); 3107 dumpSetting(s, p, 3108 Settings.System.MODE_RINGER_STREAMS_AFFECTED, 3109 SystemSettingsProto.Volume.MODE_RINGER_STREAMS_AFFECTED); 3110 dumpSetting(s, p, 3111 Settings.System.MUTE_STREAMS_AFFECTED, 3112 SystemSettingsProto.Volume.MUTE_STREAMS_AFFECTED); 3113 dumpSetting(s, p, 3114 Settings.System.MASTER_BALANCE, 3115 SystemSettingsProto.Volume.MASTER_BALANCE); 3116 p.end(volumeToken); 3117 3118 dumpSetting(s, p, 3119 Settings.System.WHEN_TO_MAKE_WIFI_CALLS, 3120 SystemSettingsProto.WHEN_TO_MAKE_WIFI_CALLS); 3121 3122 dumpSetting(s, p, 3123 Settings.System.APPLY_RAMPING_RINGER, 3124 SystemSettingsProto.APPLY_RAMPING_RINGER); 3125 3126 // Please insert new settings using the same order as in SystemSettingsProto. 3127 3128 // The rest of the settings were moved to Settings.Secure, and are thus excluded here since 3129 // they're deprecated from Settings.System. 3130 3131 // Settings.System.STAY_ON_WHILE_PLUGGED_IN intentionally excluded since it's deprecated. 3132 // Settings.System.AIRPLANE_MODE_ON intentionally excluded since it's deprecated. 3133 // Settings.System.RADIO_BLUETOOTH intentionally excluded since it's just a constant. 3134 // Settings.System.RADIO_WIFI intentionally excluded since it's just a constant. 3135 // Settings.System.RADIO_WIMAX intentionally excluded since it's just a constant. 3136 // Settings.System.RADIO_CELL intentionally excluded since it's just a constant. 3137 // Settings.System.RADIO_NFC intentionally excluded since it's just a constant. 3138 // Settings.System.AIRPLANE_MODE_RADIOS intentionally excluded since it's deprecated. 3139 // Settings.System.AIRPLANE_MODE_TOGGLABLE_RADIOS intentionally excluded since it's deprecated. 3140 // Settings.System.WIFI_SLEEP_POLICY intentionally excluded since it's deprecated. 3141 // Settings.System.MODE_RINGER intentionally excluded since it's deprecated. 3142 // Settings.System.WIFI_USE_STATIC_IP intentionally excluded since it's deprecated. 3143 // Settings.System.WIFI_STATIC_IP intentionally excluded since it's deprecated. 3144 // Settings.System.WIFI_STATIC_GATEWAY intentionally excluded since it's deprecated. 3145 // Settings.System.WIFI_STATIC_NETMASK intentionally excluded since it's deprecated. 3146 // Settings.System.WIFI_STATIC_DNS1 intentionally excluded since it's deprecated. 3147 // Settings.System.WIFI_STATIC_DNS2 intentionally excluded since it's deprecated. 3148 // Settings.System.LOCK_PATTERN_ENABLED intentionally excluded since it's deprecated. 3149 // Settings.System.LOCK_PATTERN_VISIBLE intentionally excluded since it's deprecated. 3150 // Settings.System.LOCK_PATTERN_TACTILE_FEEDBACK_ENABLED intentionally excluded since it's deprecated. 3151 // Settings.System.DEBUG_APP intentionally excluded since it's deprecated. 3152 // Settings.System.WAIT_FOR_DEBUGGER intentionally excluded since it's deprecated. 3153 // Settings.System.DIM_SCREEN intentionally excluded since it's deprecated. 3154 // Settings.System.ALWAYS_FINISH_ACTIVITIES intentionally excluded since it's deprecated. 3155 // Settings.System.APPEND_FOR_LAST_AUDIBLE intentionally excluded since it hasn't been used since API 2. 3156 // Settings.System.WALLPAPER_ACTIVITY intentionally excluded since it's deprecated. 3157 // Settings.System.WINDOW_ANIMATION_SCALE intentionally excluded since it's deprecated. 3158 // Settings.System.TRANSITION_ANIMATION_SCALE intentionally excluded since it's deprecated. 3159 // Settings.System.ANIMATOR_ANIMATION_SCALE intentionally excluded since it's deprecated. 3160 3161 // The rest of the settings were moved to Settings.Secure, and are thus excluded here since 3162 // they're deprecated from Settings.System. 3163 3164 // Please insert new settings using the same order as in SystemSettingsProto. 3165 p.end(token); 3166 // Please insert new settings using the same order as in SystemSettingsProto. 3167 } 3168 } 3169