• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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         p.end(notificationToken);
1117 
1118         dumpSetting(s, p,
1119                 Settings.Global.NR_NSA_TRACKING_SCREEN_OFF_MODE,
1120                 GlobalSettingsProto.NR_NSA_TRACKING_SCREEN_OFF_MODE);
1121 
1122         final long ntpToken = p.start(GlobalSettingsProto.NTP);
1123         dumpSetting(s, p,
1124                 Settings.Global.NTP_SERVER,
1125                 GlobalSettingsProto.Ntp.SERVER);
1126         dumpSetting(s, p,
1127                 Settings.Global.NTP_TIMEOUT,
1128                 GlobalSettingsProto.Ntp.TIMEOUT_MS);
1129         p.end(ntpToken);
1130 
1131         final long uasbToken = p.start(GlobalSettingsProto.USER_ABSENT_SMALL_BATTERY);
1132         dumpSetting(s, p,
1133                 Settings.Global.USER_ABSENT_RADIOS_OFF_FOR_SMALL_BATTERY_ENABLED,
1134                 GlobalSettingsProto.UserAbsentSmallBattery.RADIOS_OFF_ENABLED);
1135         dumpSetting(s, p,
1136                 Settings.Global.USER_ABSENT_TOUCH_OFF_FOR_SMALL_BATTERY_ENABLED,
1137                 GlobalSettingsProto.UserAbsentSmallBattery.TOUCH_OFF_ENABLED);
1138         p.end(uasbToken);
1139 
1140         dumpSetting(s, p,
1141                 Settings.Global.OTA_DISABLE_AUTOMATIC_UPDATE,
1142                 GlobalSettingsProto.OTA_DISABLE_AUTOMATIC_UPDATE);
1143         dumpSetting(s, p,
1144                 Settings.Global.OVERLAY_DISPLAY_DEVICES,
1145                 GlobalSettingsProto.OVERLAY_DISPLAY_DEVICES);
1146         dumpSetting(s, p,
1147                 Settings.Global.OVERRIDE_SETTINGS_PROVIDER_RESTORE_ANY_VERSION,
1148                 GlobalSettingsProto.OVERRIDE_SETTINGS_PROVIDER_RESTORE_ANY_VERSION);
1149         dumpSetting(s, p,
1150                 Settings.Global.PAC_CHANGE_DELAY,
1151                 GlobalSettingsProto.PAC_CHANGE_DELAY);
1152 
1153         final long pkgVerifierToken = p.start(GlobalSettingsProto.PACKAGE_VERIFIER);
1154         dumpSetting(s, p,
1155                 Settings.Global.PACKAGE_VERIFIER_TIMEOUT,
1156                 GlobalSettingsProto.PackageVerifier.TIMEOUT);
1157         dumpSetting(s, p,
1158                 Settings.Global.PACKAGE_VERIFIER_DEFAULT_RESPONSE,
1159                 GlobalSettingsProto.PackageVerifier.DEFAULT_RESPONSE);
1160         dumpSetting(s, p,
1161                 Settings.Global.PACKAGE_VERIFIER_SETTING_VISIBLE,
1162                 GlobalSettingsProto.PackageVerifier.SETTING_VISIBLE);
1163         dumpSetting(s, p,
1164                 Settings.Global.PACKAGE_VERIFIER_INCLUDE_ADB,
1165                 GlobalSettingsProto.PackageVerifier.INCLUDE_ADB);
1166         p.end(pkgVerifierToken);
1167 
1168         final long pdpWatchdogToken = p.start(GlobalSettingsProto.PDP_WATCHDOG);
1169         dumpSetting(s, p,
1170                 Settings.Global.PDP_WATCHDOG_POLL_INTERVAL_MS,
1171                 GlobalSettingsProto.PdpWatchdog.POLL_INTERVAL_MS);
1172         dumpSetting(s, p,
1173                 Settings.Global.PDP_WATCHDOG_LONG_POLL_INTERVAL_MS,
1174                 GlobalSettingsProto.PdpWatchdog.LONG_POLL_INTERVAL_MS);
1175         dumpSetting(s, p,
1176                 Settings.Global.PDP_WATCHDOG_ERROR_POLL_INTERVAL_MS,
1177                 GlobalSettingsProto.PdpWatchdog.ERROR_POLL_INTERVAL_MS);
1178         dumpSetting(s, p,
1179                 Settings.Global.PDP_WATCHDOG_TRIGGER_PACKET_COUNT,
1180                 GlobalSettingsProto.PdpWatchdog.TRIGGER_PACKET_COUNT);
1181         dumpSetting(s, p,
1182                 Settings.Global.PDP_WATCHDOG_ERROR_POLL_COUNT,
1183                 GlobalSettingsProto.PdpWatchdog.ERROR_POLL_COUNT);
1184         dumpSetting(s, p,
1185                 Settings.Global.PDP_WATCHDOG_MAX_PDP_RESET_FAIL_COUNT,
1186                 GlobalSettingsProto.PdpWatchdog.MAX_PDP_RESET_FAIL_COUNT);
1187         p.end(pdpWatchdogToken);
1188 
1189         dumpSetting(s, p,
1190                 Settings.Global.POLICY_CONTROL,
1191                 GlobalSettingsProto.POLICY_CONTROL);
1192         dumpSetting(s, p,
1193                 Settings.Global.POWER_MANAGER_CONSTANTS,
1194                 GlobalSettingsProto.POWER_MANAGER_CONSTANTS);
1195         dumpSetting(s, p,
1196                 Settings.Global.POWER_BUTTON_LONG_PRESS_DURATION_MS,
1197                 GlobalSettingsProto.POWER_BUTTON_LONG_PRESS_DURATION_MS);
1198 
1199         final long prepaidSetupToken = p.start(GlobalSettingsProto.PREPAID_SETUP);
1200         dumpSetting(s, p,
1201                 Settings.Global.SETUP_PREPAID_DATA_SERVICE_URL,
1202                 GlobalSettingsProto.PrepaidSetup.DATA_SERVICE_URL);
1203         dumpSetting(s, p,
1204                 Settings.Global.SETUP_PREPAID_DETECTION_TARGET_URL,
1205                 GlobalSettingsProto.PrepaidSetup.DETECTION_TARGET_URL);
1206         dumpSetting(s, p,
1207                 Settings.Global.SETUP_PREPAID_DETECTION_REDIR_HOST,
1208                 GlobalSettingsProto.PrepaidSetup.DETECTION_REDIR_HOST);
1209         p.end(prepaidSetupToken);
1210 
1211         final long privateToken = p.start(GlobalSettingsProto.PRIVATE);
1212         dumpSetting(s, p,
1213                 Settings.Global.PRIVATE_DNS_MODE,
1214                 GlobalSettingsProto.Private.DNS_MODE);
1215         dumpSetting(s, p,
1216                 Settings.Global.PRIVATE_DNS_SPECIFIER,
1217                 GlobalSettingsProto.Private.DNS_SPECIFIER);
1218         p.end(privateToken);
1219 
1220         dumpSetting(s, p,
1221                 Settings.Global.PROVISIONING_APN_ALARM_DELAY_IN_MS,
1222                 GlobalSettingsProto.PROVISIONING_APN_ALARM_DELAY_IN_MS);
1223         dumpSetting(s, p,
1224                 Settings.Global.READ_EXTERNAL_STORAGE_ENFORCED_DEFAULT,
1225                 GlobalSettingsProto.READ_EXTERNAL_STORAGE_ENFORCED_DEFAULT);
1226         dumpSetting(s, p,
1227                 Settings.Global.REQUIRE_PASSWORD_TO_DECRYPT,
1228                 GlobalSettingsProto.REQUIRE_PASSWORD_TO_DECRYPT);
1229         dumpSetting(s, p,
1230                 Settings.Global.SAFE_BOOT_DISALLOWED,
1231                 GlobalSettingsProto.SAFE_BOOT_DISALLOWED);
1232 
1233         final long selinuxToken = p.start(GlobalSettingsProto.SELINUX);
1234         dumpSetting(s, p,
1235                 Settings.Global.SELINUX_UPDATE_CONTENT_URL,
1236                 GlobalSettingsProto.Selinux.UPDATE_CONTENT_URL);
1237         dumpSetting(s, p,
1238                 Settings.Global.SELINUX_UPDATE_METADATA_URL,
1239                 GlobalSettingsProto.Selinux.UPDATE_METADATA_URL);
1240         dumpSetting(s, p,
1241                 Settings.Global.SELINUX_STATUS,
1242                 GlobalSettingsProto.Selinux.STATUS);
1243         p.end(selinuxToken);
1244 
1245         dumpSetting(s, p,
1246                 Settings.Global.SEND_ACTION_APP_ERROR,
1247                 GlobalSettingsProto.SEND_ACTION_APP_ERROR);
1248         dumpSetting(s, p,
1249                 Settings.Global.SET_INSTALL_LOCATION,
1250                 GlobalSettingsProto.SET_INSTALL_LOCATION);
1251         dumpSetting(s, p,
1252                 Settings.Global.SHORTCUT_MANAGER_CONSTANTS,
1253                 GlobalSettingsProto.SHORTCUT_MANAGER_CONSTANTS);
1254         dumpSetting(s, p,
1255                 Settings.Global.SHOW_FIRST_CRASH_DIALOG,
1256                 GlobalSettingsProto.SHOW_FIRST_CRASH_DIALOG);
1257         dumpSetting(s, p,
1258                 Settings.Global.SHOW_HIDDEN_LAUNCHER_ICON_APPS_ENABLED,
1259                 GlobalSettingsProto.SHOW_HIDDEN_LAUNCHER_ICON_APPS_ENABLED);
1260         // Settings.Global.SHOW_PROCESSES intentionally excluded since it's deprecated.
1261         dumpSetting(s, p,
1262                 Settings.Global.SHOW_RESTART_IN_CRASH_DIALOG,
1263                 GlobalSettingsProto.SHOW_RESTART_IN_CRASH_DIALOG);
1264         dumpSetting(s, p,
1265                 Settings.Global.SHOW_MUTE_IN_CRASH_DIALOG,
1266                 GlobalSettingsProto.SHOW_MUTE_IN_CRASH_DIALOG);
1267         dumpSetting(s, p,
1268                 Settings.Global.SHOW_NEW_APP_INSTALLED_NOTIFICATION_ENABLED,
1269                 GlobalSettingsProto.SHOW_NEW_APP_INSTALLED_NOTIFICATION_ENABLED);
1270 
1271         final long smartSelectToken = p.start(GlobalSettingsProto.SMART_SELECTION);
1272         dumpSetting(s, p,
1273                 Settings.Global.SMART_SELECTION_UPDATE_CONTENT_URL,
1274                 GlobalSettingsProto.SmartSelection.UPDATE_CONTENT_URL);
1275         dumpSetting(s, p,
1276                 Settings.Global.SMART_SELECTION_UPDATE_METADATA_URL,
1277                 GlobalSettingsProto.SmartSelection.UPDATE_METADATA_URL);
1278         p.end(smartSelectToken);
1279 
1280         final long smsToken = p.start(GlobalSettingsProto.SMS);
1281         dumpSetting(s, p,
1282                 Settings.Global.SMS_OUTGOING_CHECK_INTERVAL_MS,
1283                 GlobalSettingsProto.Sms.OUTGOING_CHECK_INTERVAL_MS);
1284         dumpSetting(s, p,
1285                 Settings.Global.SMS_OUTGOING_CHECK_MAX_COUNT,
1286                 GlobalSettingsProto.Sms.OUTGOING_CHECK_MAX_COUNT);
1287         dumpSetting(s, p,
1288                 Settings.Global.SMS_SHORT_CODE_CONFIRMATION,
1289                 GlobalSettingsProto.Sms.SHORT_CODE_CONFIRMATION);
1290         dumpSetting(s, p,
1291                 Settings.Global.SMS_SHORT_CODE_RULE,
1292                 GlobalSettingsProto.Sms.SHORT_CODE_RULE);
1293         dumpSetting(s, p,
1294                 Settings.Global.SMS_SHORT_CODES_UPDATE_CONTENT_URL,
1295                 GlobalSettingsProto.Sms.SHORT_CODES_UPDATE_CONTENT_URL);
1296         dumpSetting(s, p,
1297                 Settings.Global.SMS_SHORT_CODES_UPDATE_METADATA_URL,
1298                 GlobalSettingsProto.Sms.SHORT_CODES_UPDATE_METADATA_URL);
1299         p.end(smsToken);
1300 
1301         final long soundsToken = p.start(GlobalSettingsProto.SOUNDS);
1302         dumpSetting(s, p,
1303                 Settings.Global.CAR_DOCK_SOUND,
1304                 GlobalSettingsProto.Sounds.CAR_DOCK);
1305         dumpSetting(s, p,
1306                 Settings.Global.CAR_UNDOCK_SOUND,
1307                 GlobalSettingsProto.Sounds.CAR_UNDOCK);
1308         dumpSetting(s, p,
1309                 Settings.Global.DESK_DOCK_SOUND,
1310                 GlobalSettingsProto.Sounds.DESK_DOCK);
1311         dumpSetting(s, p,
1312                 Settings.Global.DESK_UNDOCK_SOUND,
1313                 GlobalSettingsProto.Sounds.DESK_UNDOCK);
1314         dumpSetting(s, p,
1315                 Settings.Global.DOCK_SOUNDS_ENABLED,
1316                 GlobalSettingsProto.Sounds.DOCK_SOUNDS_ENABLED);
1317         dumpSetting(s, p,
1318                 Settings.Global.DOCK_SOUNDS_ENABLED_WHEN_ACCESSIBILITY,
1319                 GlobalSettingsProto.Sounds.DOCK_SOUNDS_ENABLED_WHEN_ACCESSIBILITY);
1320         dumpSetting(s, p,
1321                 Settings.Global.LOCK_SOUND,
1322                 GlobalSettingsProto.Sounds.LOCK);
1323         dumpSetting(s, p,
1324                 Settings.Global.UNLOCK_SOUND,
1325                 GlobalSettingsProto.Sounds.UNLOCK);
1326         dumpSetting(s, p,
1327                 Settings.Global.TRUSTED_SOUND,
1328                 GlobalSettingsProto.Sounds.TRUSTED);
1329         dumpSetting(s, p,
1330                 Settings.Global.LOW_BATTERY_SOUND,
1331                 GlobalSettingsProto.Sounds.LOW_BATTERY);
1332         dumpSetting(s, p,
1333                 Settings.Global.LOW_BATTERY_SOUND_TIMEOUT,
1334                 GlobalSettingsProto.Sounds.LOW_BATTERY_SOUND_TIMEOUT);
1335         dumpSetting(s, p,
1336                 Settings.Global.POWER_SOUNDS_ENABLED,
1337                 GlobalSettingsProto.Sounds.LOW_BATTERY_SOUNDS_ENABLED);
1338         dumpSetting(s, p,
1339                 Settings.Global.CHARGING_STARTED_SOUND,
1340                 GlobalSettingsProto.Sounds.CHARGING_STARTED);
1341         dumpSetting(s, p,
1342                 Settings.Global.WIRELESS_CHARGING_STARTED_SOUND,
1343                 GlobalSettingsProto.Sounds.WIRELESS_CHARGING_STARTED);
1344         p.end(soundsToken);
1345 
1346         final long soundTriggerToken = p.start(GlobalSettingsProto.SOUND_TRIGGER);
1347         dumpSetting(s, p,
1348                 Settings.Global.MAX_SOUND_TRIGGER_DETECTION_SERVICE_OPS_PER_DAY,
1349                 GlobalSettingsProto.SoundTrigger.MAX_SOUND_TRIGGER_DETECTION_SERVICE_OPS_PER_DAY);
1350         dumpSetting(s, p,
1351                 Settings.Global.SOUND_TRIGGER_DETECTION_SERVICE_OP_TIMEOUT,
1352                 GlobalSettingsProto.SoundTrigger.DETECTION_SERVICE_OP_TIMEOUT_MS);
1353         p.end(soundTriggerToken);
1354 
1355         dumpSetting(s, p,
1356                 Settings.Global.SPEED_LABEL_CACHE_EVICTION_AGE_MILLIS,
1357                 GlobalSettingsProto.SPEED_LABEL_CACHE_EVICTION_AGE_MS);
1358         dumpSetting(s, p,
1359                 Settings.Global.SQLITE_COMPATIBILITY_WAL_FLAGS,
1360                 GlobalSettingsProto.SQLITE_COMPATIBILITY_WAL_FLAGS);
1361         dumpSetting(s, p,
1362                 Settings.Global.STAY_ON_WHILE_PLUGGED_IN,
1363                 GlobalSettingsProto.STAY_ON_WHILE_PLUGGED_IN);
1364 
1365         final long storageToken = p.start(GlobalSettingsProto.STORAGE);
1366         dumpSetting(s, p,
1367                 Settings.Global.STORAGE_BENCHMARK_INTERVAL,
1368                 GlobalSettingsProto.Storage.BENCHMARK_INTERVAL);
1369         dumpSetting(s, p,
1370                 Settings.Global.STORAGE_SETTINGS_CLOBBER_THRESHOLD,
1371                 GlobalSettingsProto.Storage.SETTINGS_CLOBBER_THRESHOLD);
1372         p.end(storageToken);
1373 
1374         final long syncToken = p.start(GlobalSettingsProto.SYNC);
1375         dumpSetting(s, p,
1376                 Settings.Global.SYNC_MAX_RETRY_DELAY_IN_SECONDS,
1377                 GlobalSettingsProto.Sync.MAX_RETRY_DELAY_IN_SECONDS);
1378         dumpSetting(s, p,
1379                 Settings.Global.SYNC_MANAGER_CONSTANTS,
1380                 GlobalSettingsProto.Sync.MANAGER_CONSTANTS);
1381         p.end(syncToken);
1382 
1383         final long sysToken = p.start(GlobalSettingsProto.SYS);
1384         dumpSetting(s, p,
1385                 Settings.Global.SYS_FREE_STORAGE_LOG_INTERVAL,
1386                 GlobalSettingsProto.Sys.FREE_STORAGE_LOG_INTERVAL_MINS);
1387         dumpSetting(s, p,
1388                 Settings.Global.SYS_STORAGE_THRESHOLD_PERCENTAGE,
1389                 GlobalSettingsProto.Sys.STORAGE_THRESHOLD_PERCENTAGE);
1390         dumpSetting(s, p,
1391                 Settings.Global.SYS_STORAGE_THRESHOLD_MAX_BYTES,
1392                 GlobalSettingsProto.Sys.STORAGE_THRESHOLD_MAX_BYTES);
1393         dumpSetting(s, p,
1394                 Settings.Global.SYS_STORAGE_FULL_THRESHOLD_BYTES,
1395                 GlobalSettingsProto.Sys.STORAGE_FULL_THRESHOLD_BYTES);
1396         dumpSetting(s, p,
1397                 Settings.Global.SYS_STORAGE_CACHE_PERCENTAGE,
1398                 GlobalSettingsProto.Sys.STORAGE_CACHE_PERCENTAGE);
1399         dumpSetting(s, p,
1400                 Settings.Global.SYS_UIDCPUPOWER,
1401                 GlobalSettingsProto.Sys.UIDCPUPOWER);
1402         p.end(sysToken);
1403 
1404         dumpSetting(s, p,
1405                 Settings.Global.TCP_DEFAULT_INIT_RWND,
1406                 GlobalSettingsProto.TCP_DEFAULT_INIT_RWND);
1407 
1408         final long tempWarningToken = p.start(GlobalSettingsProto.TEMPERATURE_WARNING);
1409         dumpSetting(s, p,
1410                 Settings.Global.SHOW_TEMPERATURE_WARNING,
1411                 GlobalSettingsProto.TemperatureWarning.SHOW_TEMPERATURE_WARNING);
1412         dumpSetting(s, p,
1413                 Settings.Global.SHOW_USB_TEMPERATURE_ALARM,
1414                 GlobalSettingsProto.TemperatureWarning.SHOW_USB_TEMPERATURE_ALARM);
1415         dumpSetting(s, p,
1416                 Settings.Global.WARNING_TEMPERATURE,
1417                 GlobalSettingsProto.TemperatureWarning.WARNING_TEMPERATURE_LEVEL);
1418         p.end(tempWarningToken);
1419 
1420         final long tetherToken = p.start(GlobalSettingsProto.TETHER);
1421         dumpSetting(s, p,
1422                 Settings.Global.TETHER_SUPPORTED,
1423                 GlobalSettingsProto.Tether.SUPPORTED);
1424         dumpSetting(s, p,
1425                 Settings.Global.TETHER_DUN_REQUIRED,
1426                 GlobalSettingsProto.Tether.DUN_REQUIRED);
1427         dumpSetting(s, p,
1428                 Settings.Global.TETHER_DUN_APN,
1429                 GlobalSettingsProto.Tether.DUN_APN);
1430         dumpSetting(s, p,
1431                 Settings.Global.TETHER_OFFLOAD_DISABLED,
1432                 GlobalSettingsProto.Tether.OFFLOAD_DISABLED);
1433         dumpSetting(s, p,
1434                 Settings.Global.SOFT_AP_TIMEOUT_ENABLED,
1435                 GlobalSettingsProto.Tether.TIMEOUT_ENABLED);
1436         p.end(tetherToken);
1437 
1438         dumpSetting(s, p,
1439                 Settings.Global.TEXT_CLASSIFIER_CONSTANTS,
1440                 GlobalSettingsProto.TEXT_CLASSIFIER_CONSTANTS);
1441         dumpSetting(s, p,
1442                 Settings.Global.TEXT_CLASSIFIER_ACTION_MODEL_PARAMS,
1443                 GlobalSettingsProto.TEXT_CLASSIFIER_ACTION_MODEL_PARAMS);
1444         dumpSetting(s, p,
1445                 Settings.Global.THEATER_MODE_ON,
1446                 GlobalSettingsProto.THEATER_MODE_ON);
1447         dumpSetting(s, p,
1448                 Settings.Global.TIME_ONLY_MODE_CONSTANTS,
1449                 GlobalSettingsProto.TIME_ONLY_MODE_CONSTANTS);
1450         dumpSetting(s, p,
1451                 Settings.Global.TRANSITION_ANIMATION_SCALE,
1452                 GlobalSettingsProto.TRANSITION_ANIMATION_SCALE);
1453 
1454         final long tzinfoToken = p.start(GlobalSettingsProto.TZINFO);
1455         dumpSetting(s, p,
1456                 Settings.Global.TZINFO_UPDATE_CONTENT_URL,
1457                 GlobalSettingsProto.Tzinfo.UPDATE_CONTENT_URL);
1458         dumpSetting(s, p,
1459                 Settings.Global.TZINFO_UPDATE_METADATA_URL,
1460                 GlobalSettingsProto.Tzinfo.UPDATE_METADATA_URL);
1461         p.end(tzinfoToken);
1462 
1463         dumpSetting(s, p,
1464                 Settings.Global.UNUSED_STATIC_SHARED_LIB_MIN_CACHE_PERIOD,
1465                 GlobalSettingsProto.UNUSED_STATIC_SHARED_LIB_MIN_CACHE_PERIOD_MS);
1466         dumpSetting(s, p,
1467                 Settings.Global.USB_MASS_STORAGE_ENABLED,
1468                 GlobalSettingsProto.USB_MASS_STORAGE_ENABLED);
1469         dumpSetting(s, p,
1470                 Settings.Global.USE_GOOGLE_MAIL,
1471                 GlobalSettingsProto.USE_GOOGLE_MAIL);
1472         dumpSetting(s, p,
1473                 Settings.Global.USE_OPEN_WIFI_PACKAGE,
1474                 GlobalSettingsProto.USE_OPEN_WIFI_PACKAGE);
1475         dumpSetting(s, p,
1476                 Settings.Global.UWB_ENABLED,
1477                 GlobalSettingsProto.UWB_ENABLED);
1478         dumpSetting(s, p,
1479                 Settings.Global.VT_IMS_ENABLED,
1480                 GlobalSettingsProto.VT_IMS_ENABLED);
1481         dumpSetting(s, p,
1482                 Settings.Global.WAIT_FOR_DEBUGGER,
1483                 GlobalSettingsProto.WAIT_FOR_DEBUGGER);
1484 
1485         final long webviewToken = p.start(GlobalSettingsProto.WEBVIEW);
1486         dumpSetting(s, p,
1487                 Settings.Global.WEBVIEW_DATA_REDUCTION_PROXY_KEY,
1488                 GlobalSettingsProto.Webview.DATA_REDUCTION_PROXY_KEY);
1489         dumpSetting(s, p,
1490                 Settings.Global.WEBVIEW_PROVIDER,
1491                 GlobalSettingsProto.Webview.PROVIDER);
1492         dumpSetting(s, p,
1493                 Settings.Global.WEBVIEW_MULTIPROCESS,
1494                 GlobalSettingsProto.Webview.MULTIPROCESS);
1495         p.end(webviewToken);
1496 
1497         final long wfcToken = p.start(GlobalSettingsProto.WFC);
1498         dumpSetting(s, p,
1499                 Settings.Global.WFC_IMS_ENABLED,
1500                 GlobalSettingsProto.Wfc.IMS_ENABLED);
1501         dumpSetting(s, p,
1502                 Settings.Global.WFC_IMS_MODE,
1503                 GlobalSettingsProto.Wfc.IMS_MODE);
1504         dumpSetting(s, p,
1505                 Settings.Global.WFC_IMS_ROAMING_MODE,
1506                 GlobalSettingsProto.Wfc.IMS_ROAMING_MODE);
1507         dumpSetting(s, p,
1508                 Settings.Global.WFC_IMS_ROAMING_ENABLED,
1509                 GlobalSettingsProto.Wfc.IMS_ROAMING_ENABLED);
1510         p.end(wfcToken);
1511 
1512         final long wifiToken = p.start(GlobalSettingsProto.WIFI);
1513         dumpSetting(s, p,
1514                 Settings.Global.WIFI_SLEEP_POLICY,
1515                 GlobalSettingsProto.Wifi.SLEEP_POLICY);
1516         dumpSetting(s, p,
1517                 Settings.Global.WIFI_BADGING_THRESHOLDS,
1518                 GlobalSettingsProto.Wifi.BADGING_THRESHOLDS);
1519         dumpSetting(s, p,
1520                 Settings.Global.WIFI_DISPLAY_ON,
1521                 GlobalSettingsProto.Wifi.DISPLAY_ON);
1522         dumpSetting(s, p,
1523                 Settings.Global.WIFI_DISPLAY_CERTIFICATION_ON,
1524                 GlobalSettingsProto.Wifi.DISPLAY_CERTIFICATION_ON);
1525         dumpSetting(s, p,
1526                 Settings.Global.WIFI_DISPLAY_WPS_CONFIG,
1527                 GlobalSettingsProto.Wifi.DISPLAY_WPS_CONFIG);
1528         dumpSetting(s, p,
1529                 Settings.Global.WIFI_NETWORKS_AVAILABLE_NOTIFICATION_ON,
1530                 GlobalSettingsProto.Wifi.NETWORKS_AVAILABLE_NOTIFICATION_ON);
1531         dumpSetting(s, p,
1532                 Settings.Global.WIFI_NETWORKS_AVAILABLE_REPEAT_DELAY,
1533                 GlobalSettingsProto.Wifi.NETWORKS_AVAILABLE_REPEAT_DELAY);
1534         dumpSetting(s, p,
1535                 Settings.Global.WIFI_COUNTRY_CODE,
1536                 GlobalSettingsProto.Wifi.COUNTRY_CODE);
1537         dumpSetting(s, p,
1538                 Settings.Global.WIFI_FRAMEWORK_SCAN_INTERVAL_MS,
1539                 GlobalSettingsProto.Wifi.FRAMEWORK_SCAN_INTERVAL_MS);
1540         dumpSetting(s, p,
1541                 Settings.Global.WIFI_IDLE_MS,
1542                 GlobalSettingsProto.Wifi.IDLE_MS);
1543         dumpSetting(s, p,
1544                 Settings.Global.WIFI_NUM_OPEN_NETWORKS_KEPT,
1545                 GlobalSettingsProto.Wifi.NUM_OPEN_NETWORKS_KEPT);
1546         dumpSetting(s, p,
1547                 Settings.Global.WIFI_ON,
1548                 GlobalSettingsProto.Wifi.ON);
1549         dumpSetting(s, p,
1550                 Settings.Global.WIFI_SCAN_ALWAYS_AVAILABLE,
1551                 GlobalSettingsProto.Wifi.SCAN_ALWAYS_AVAILABLE);
1552         dumpSetting(s, p,
1553                 Settings.Global.WIFI_WAKEUP_ENABLED,
1554                 GlobalSettingsProto.Wifi.WAKEUP_ENABLED);
1555         dumpSetting(s, p,
1556                 Settings.Global.WIFI_SUPPLICANT_SCAN_INTERVAL_MS,
1557                 GlobalSettingsProto.Wifi.SUPPLICANT_SCAN_INTERVAL_MS);
1558         dumpSetting(s, p,
1559                 Settings.Global.WIFI_ENHANCED_AUTO_JOIN,
1560                 GlobalSettingsProto.Wifi.ENHANCED_AUTO_JOIN);
1561         dumpSetting(s, p,
1562                 Settings.Global.WIFI_NETWORK_SHOW_RSSI,
1563                 GlobalSettingsProto.Wifi.NETWORK_SHOW_RSSI);
1564         dumpSetting(s, p,
1565                 Settings.Global.WIFI_SCAN_INTERVAL_WHEN_P2P_CONNECTED_MS,
1566                 GlobalSettingsProto.Wifi.SCAN_INTERVAL_WHEN_P2P_CONNECTED_MS);
1567         dumpSetting(s, p,
1568                 Settings.Global.WIFI_WATCHDOG_ON,
1569                 GlobalSettingsProto.Wifi.WATCHDOG_ON);
1570         dumpSetting(s, p,
1571                 Settings.Global.WIFI_WATCHDOG_POOR_NETWORK_TEST_ENABLED,
1572                 GlobalSettingsProto.Wifi.WATCHDOG_POOR_NETWORK_TEST_ENABLED);
1573         dumpSetting(s, p,
1574                 Settings.Global.WIFI_VERBOSE_LOGGING_ENABLED,
1575                 GlobalSettingsProto.Wifi.VERBOSE_LOGGING_ENABLED);
1576         dumpSetting(s, p,
1577                 Settings.Global.WIFI_MAX_DHCP_RETRY_COUNT,
1578                 GlobalSettingsProto.Wifi.MAX_DHCP_RETRY_COUNT);
1579         dumpSetting(s, p,
1580                 Settings.Global.WIFI_MOBILE_DATA_TRANSITION_WAKELOCK_TIMEOUT_MS,
1581                 GlobalSettingsProto.Wifi.MOBILE_DATA_TRANSITION_WAKELOCK_TIMEOUT_MS);
1582         dumpSetting(s, p,
1583                 Settings.Global.WIFI_DEVICE_OWNER_CONFIGS_LOCKDOWN,
1584                 GlobalSettingsProto.Wifi.DEVICE_OWNER_CONFIGS_LOCKDOWN);
1585         dumpSetting(s, p,
1586                 Settings.Global.WIFI_FREQUENCY_BAND,
1587                 GlobalSettingsProto.Wifi.FREQUENCY_BAND);
1588         dumpSetting(s, p,
1589                 Settings.Global.WIFI_P2P_DEVICE_NAME,
1590                 GlobalSettingsProto.Wifi.P2P_DEVICE_NAME);
1591         dumpSetting(s, p,
1592                 Settings.Global.WIFI_EPHEMERAL_OUT_OF_RANGE_TIMEOUT_MS,
1593                 GlobalSettingsProto.Wifi.EPHEMERAL_OUT_OF_RANGE_TIMEOUT_MS);
1594         dumpSetting(s, p,
1595                 Settings.Global.WIFI_ON_WHEN_PROXY_DISCONNECTED,
1596                 GlobalSettingsProto.Wifi.ON_WHEN_PROXY_DISCONNECTED);
1597         dumpSetting(s, p,
1598                 Settings.Global.WIFI_BOUNCE_DELAY_OVERRIDE_MS,
1599                 GlobalSettingsProto.Wifi.BOUNCE_DELAY_OVERRIDE_MS);
1600         p.end(wifiToken);
1601 
1602         dumpSetting(s, p,
1603                 Settings.Global.WIMAX_NETWORKS_AVAILABLE_NOTIFICATION_ON,
1604                 GlobalSettingsProto.WIMAX_NETWORKS_AVAILABLE_NOTIFICATION_ON);
1605         dumpSetting(s, p,
1606                 Settings.Global.WINDOW_ANIMATION_SCALE,
1607                 GlobalSettingsProto.WINDOW_ANIMATION_SCALE);
1608         dumpSetting(s, p,
1609                 Settings.Global.WTF_IS_FATAL,
1610                 GlobalSettingsProto.WTF_IS_FATAL);
1611 
1612         final long zenToken = p.start(GlobalSettingsProto.ZEN);
1613         dumpSetting(s, p,
1614                 Settings.Global.ZEN_MODE,
1615                 GlobalSettingsProto.Zen.MODE);
1616         dumpSetting(s, p,
1617                 Settings.Global.ZEN_MODE_RINGER_LEVEL,
1618                 GlobalSettingsProto.Zen.MODE_RINGER_LEVEL);
1619         dumpSetting(s, p,
1620                 Settings.Global.ZEN_MODE_CONFIG_ETAG,
1621                 GlobalSettingsProto.Zen.MODE_CONFIG_ETAG);
1622         p.end(zenToken);
1623 
1624         dumpSetting(s, p,
1625                 Settings.Global.ZRAM_ENABLED,
1626                 GlobalSettingsProto.ZRAM_ENABLED);
1627 
1628         dumpSetting(s, p,
1629                 Settings.Global.APP_OPS_CONSTANTS,
1630                 GlobalSettingsProto.APP_OPS_CONSTANTS);
1631 
1632         p.end(token);
1633         // Please insert new settings using the same order as in GlobalSettingsProto.
1634 
1635         // The rest of the settings were moved to Settings.Secure or Settings.System, and are thus
1636         // excluded here since they're deprecated from Settings.Global.
1637 
1638         // Settings.Global.INSTALL_NON_MARKET_APPS intentionally excluded since it's deprecated.
1639         // Settings.Global.APPLY_RAMPING_RINGER intentionally excluded since it's deprecated.
1640         // Settings.Global.BUGREPORT_IN_POWER_MENU intentionally excluded since it's deprecated.
1641     }
1642 
dumpProtoConfigSettingsLocked( @onNull ProtoOutputStream p, long fieldId, @NonNull SettingsState s)1643     private static void dumpProtoConfigSettingsLocked(
1644             @NonNull ProtoOutputStream p, long fieldId, @NonNull SettingsState s) {
1645         Map<String, List<String>> namespaceMap = new HashMap<>();
1646         final long token = p.start(fieldId);
1647         s.dumpHistoricalOperations(p, ConfigSettingsProto.HISTORICAL_OPERATIONS);
1648         for (String name : s.getSettingNamesLocked()) {
1649             String namespace = name.substring(0, name.indexOf('/'));
1650             if (NAMESPACE_TO_FIELD_MAP.containsKey(namespace)) {
1651                 dumpSetting(s, p, name, NAMESPACE_TO_FIELD_MAP.get(namespace));
1652             } else {
1653                 if (!namespaceMap.containsKey(namespace)) {
1654                     namespaceMap.put(namespace, new ArrayList<>());
1655                 }
1656                 namespaceMap.get(namespace).add(name);
1657             }
1658         }
1659         for (String namespace : namespaceMap.keySet()) {
1660             final long namespacesToken = p.start(ConfigSettingsProto.EXTRA_NAMESPACES);
1661             p.write(ConfigSettingsProto.NamespaceProto.NAMESPACE, namespace);
1662             for (String name : namespaceMap.get(namespace)) {
1663                 dumpSetting(s, p, name, ConfigSettingsProto.NamespaceProto.SETTINGS);
1664             }
1665             p.end(namespacesToken);
1666         }
1667         p.end(token);
1668     }
1669 
1670     /** Dumps settings that use a common prefix into a repeated field. */
dumpRepeatedSetting(@onNull SettingsState settings, @NonNull ProtoOutputStream proto, String settingPrefix, long fieldId)1671     private static void dumpRepeatedSetting(@NonNull SettingsState settings,
1672             @NonNull ProtoOutputStream proto, String settingPrefix, long fieldId) {
1673         for (String s : settings.getSettingNamesLocked()) {
1674             if (s.startsWith(settingPrefix)) {
1675                 dumpSetting(settings, proto, s, fieldId);
1676             }
1677         }
1678     }
1679 
1680     /** Dump a single {@link SettingsState.Setting} to a proto buf */
dumpSetting(@onNull SettingsState settings, @NonNull ProtoOutputStream proto, String settingName, long fieldId)1681     private static void dumpSetting(@NonNull SettingsState settings,
1682             @NonNull ProtoOutputStream proto, String settingName, long fieldId) {
1683         SettingsState.Setting setting = settings.getSettingLocked(settingName);
1684         long settingsToken = proto.start(fieldId);
1685         proto.write(SettingProto.ID, setting.getId());
1686         proto.write(SettingProto.NAME, settingName);
1687         if (setting.getPackageName() != null) {
1688             proto.write(SettingProto.PKG, setting.getPackageName());
1689         }
1690         proto.write(SettingProto.VALUE, setting.getValue());
1691         if (setting.getDefaultValue() != null) {
1692             proto.write(SettingProto.DEFAULT_VALUE, setting.getDefaultValue());
1693             proto.write(SettingProto.DEFAULT_FROM_SYSTEM, setting.isDefaultFromSystem());
1694         }
1695         proto.end(settingsToken);
1696     }
1697 
dumpProtoSecureSettingsLocked( @onNull ProtoOutputStream p, long fieldId, @NonNull SettingsState s)1698     static void dumpProtoSecureSettingsLocked(
1699             @NonNull ProtoOutputStream p, long fieldId, @NonNull SettingsState s) {
1700         final long token = p.start(fieldId);
1701 
1702         s.dumpHistoricalOperations(p, SecureSettingsProto.HISTORICAL_OPERATIONS);
1703 
1704         // This uses the same order as in SecureSettingsProto.
1705 
1706         final long accessibilityToken = p.start(SecureSettingsProto.ACCESSIBILITY);
1707         dumpSetting(s, p,
1708                 Settings.Secure.ACCESSIBILITY_ENABLED,
1709                 SecureSettingsProto.Accessibility.ENABLED);
1710         dumpSetting(s, p,
1711                 Settings.Secure.ENABLED_ACCESSIBILITY_SERVICES,
1712                 SecureSettingsProto.Accessibility.ENABLED_ACCESSIBILITY_SERVICES);
1713         dumpSetting(s, p,
1714                 Settings.Secure.ACCESSIBILITY_AUTOCLICK_ENABLED,
1715                 SecureSettingsProto.Accessibility.AUTOCLICK_ENABLED);
1716         dumpSetting(s, p,
1717                 Settings.Secure.ACCESSIBILITY_AUTOCLICK_DELAY,
1718                 SecureSettingsProto.Accessibility.AUTOCLICK_DELAY);
1719         dumpSetting(s, p,
1720                 Settings.Secure.ACCESSIBILITY_BUTTON_TARGET_COMPONENT,
1721                 SecureSettingsProto.Accessibility.BUTTON_TARGET_COMPONENT);
1722         dumpSetting(s, p,
1723                 Settings.Secure.ACCESSIBILITY_CAPTIONING_ENABLED,
1724                 SecureSettingsProto.Accessibility.CAPTIONING_ENABLED);
1725         dumpSetting(s, p,
1726                 Settings.Secure.ACCESSIBILITY_CAPTIONING_LOCALE,
1727                 SecureSettingsProto.Accessibility.CAPTIONING_LOCALE);
1728         dumpSetting(s, p,
1729                 Settings.Secure.ACCESSIBILITY_CAPTIONING_PRESET,
1730                 SecureSettingsProto.Accessibility.CAPTIONING_PRESET);
1731         dumpSetting(s, p,
1732                 Settings.Secure.ACCESSIBILITY_CAPTIONING_BACKGROUND_COLOR,
1733                 SecureSettingsProto.Accessibility.CAPTIONING_BACKGROUND_COLOR);
1734         dumpSetting(s, p,
1735                 Settings.Secure.ACCESSIBILITY_CAPTIONING_FOREGROUND_COLOR,
1736                 SecureSettingsProto.Accessibility.CAPTIONING_FOREGROUND_COLOR);
1737         dumpSetting(s, p,
1738                 Settings.Secure.ACCESSIBILITY_CAPTIONING_EDGE_TYPE,
1739                 SecureSettingsProto.Accessibility.CAPTIONING_EDGE_TYPE);
1740         dumpSetting(s, p,
1741                 Settings.Secure.ACCESSIBILITY_CAPTIONING_EDGE_COLOR,
1742                 SecureSettingsProto.Accessibility.CAPTIONING_EDGE_COLOR);
1743         dumpSetting(s, p,
1744                 Settings.Secure.ACCESSIBILITY_CAPTIONING_WINDOW_COLOR,
1745                 SecureSettingsProto.Accessibility.CAPTIONING_WINDOW_COLOR);
1746         dumpSetting(s, p,
1747                 Settings.Secure.ACCESSIBILITY_CAPTIONING_TYPEFACE,
1748                 SecureSettingsProto.Accessibility.CAPTIONING_TYPEFACE);
1749         dumpSetting(s, p,
1750                 Settings.Secure.ACCESSIBILITY_CAPTIONING_FONT_SCALE,
1751                 SecureSettingsProto.Accessibility.CAPTIONING_FONT_SCALE);
1752         dumpSetting(s, p,
1753                 Settings.Secure.ACCESSIBILITY_DISPLAY_DALTONIZER_ENABLED,
1754                 SecureSettingsProto.Accessibility.DISPLAY_DALTONIZER_ENABLED);
1755         dumpSetting(s, p,
1756                 Settings.Secure.ACCESSIBILITY_DISPLAY_DALTONIZER,
1757                 SecureSettingsProto.Accessibility.DISPLAY_DALTONIZER);
1758         dumpSetting(s, p,
1759                 Settings.Secure.ACCESSIBILITY_DISPLAY_INVERSION_ENABLED,
1760                 SecureSettingsProto.Accessibility.DISPLAY_INVERSION_ENABLED);
1761         dumpSetting(s, p,
1762                 Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_ENABLED,
1763                 SecureSettingsProto.Accessibility.DISPLAY_MAGNIFICATION_ENABLED);
1764         dumpSetting(s, p,
1765                 Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_NAVBAR_ENABLED,
1766                 SecureSettingsProto.Accessibility.DISPLAY_MAGNIFICATION_NAVBAR_ENABLED);
1767         dumpSetting(s, p,
1768                 Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_SCALE,
1769                 SecureSettingsProto.Accessibility.DISPLAY_MAGNIFICATION_SCALE);
1770         dumpSetting(s, p,
1771                 Settings.Secure.ACCESSIBILITY_HIGH_TEXT_CONTRAST_ENABLED,
1772                 SecureSettingsProto.Accessibility.HIGH_TEXT_CONTRAST_ENABLED);
1773         dumpSetting(s, p,
1774                 Settings.Secure.CONTRAST_LEVEL,
1775                 SecureSettingsProto.Accessibility.CONTRAST_LEVEL);
1776         dumpSetting(s, p,
1777                 Settings.Secure.FONT_WEIGHT_ADJUSTMENT,
1778                 SecureSettingsProto.FONT_WEIGHT_ADJUSTMENT);
1779         dumpSetting(s, p,
1780                 Settings.Secure.ACCESSIBILITY_LARGE_POINTER_ICON,
1781                 SecureSettingsProto.Accessibility.LARGE_POINTER_ICON);
1782         dumpSetting(s, p,
1783                 Settings.Secure.ACCESSIBILITY_SHORTCUT_ON_LOCK_SCREEN,
1784                 SecureSettingsProto.Accessibility.SHORTCUT_ON_LOCK_SCREEN);
1785         dumpSetting(s, p,
1786                 Settings.Secure.ACCESSIBILITY_SHORTCUT_DIALOG_SHOWN,
1787                 SecureSettingsProto.Accessibility.SHORTCUT_DIALOG_SHOWN);
1788         dumpSetting(s, p,
1789                 Settings.Secure.ACCESSIBILITY_SHORTCUT_TARGET_SERVICE,
1790                 SecureSettingsProto.Accessibility.SHORTCUT_TARGET_SERVICE);
1791         dumpSetting(s, p,
1792                 Settings.Secure.ACCESSIBILITY_SOFT_KEYBOARD_MODE,
1793                 SecureSettingsProto.Accessibility.SOFT_KEYBOARD_MODE);
1794         dumpSetting(s, p,
1795                 Settings.Secure.ACCESSIBILITY_SPEAK_PASSWORD,
1796                 SecureSettingsProto.Accessibility.SPEAK_PASSWORD);
1797         dumpSetting(s, p,
1798                 Settings.Secure.TOUCH_EXPLORATION_ENABLED,
1799                 SecureSettingsProto.Accessibility.TOUCH_EXPLORATION_ENABLED);
1800         dumpSetting(s, p,
1801                 Settings.Secure.TOUCH_EXPLORATION_GRANTED_ACCESSIBILITY_SERVICES,
1802                 SecureSettingsProto.Accessibility.TOUCH_EXPLORATION_GRANTED_ACCESSIBILITY_SERVICES);
1803         dumpSetting(s, p,
1804                 Settings.Secure.ACCESSIBILITY_NON_INTERACTIVE_UI_TIMEOUT_MS,
1805                 SecureSettingsProto.Accessibility.NON_INTERACTIVE_UI_TIMEOUT_MS);
1806         dumpSetting(s, p,
1807                 Settings.Secure.ACCESSIBILITY_INTERACTIVE_UI_TIMEOUT_MS,
1808                 SecureSettingsProto.Accessibility.INTERACTIVE_UI_TIMEOUT_MS);
1809         dumpSetting(s, p,
1810                 Settings.Secure.ACCESSIBILITY_MAGNIFICATION_MODE,
1811                 SecureSettingsProto.Accessibility.ACCESSIBILITY_MAGNIFICATION_MODE);
1812         dumpSetting(s, p,
1813                 Settings.Secure.ACCESSIBILITY_BUTTON_TARGETS,
1814                 SecureSettingsProto.Accessibility.BUTTON_TARGETS);
1815         dumpSetting(s, p,
1816                 Settings.Secure.ACCESSIBILITY_MAGNIFICATION_CAPABILITY,
1817                 SecureSettingsProto.Accessibility.ACCESSIBILITY_MAGNIFICATION_CAPABILITY);
1818         dumpSetting(s, p,
1819                 Settings.Secure.ACCESSIBILITY_BUTTON_MODE,
1820                 SecureSettingsProto.Accessibility.ACCESSIBILITY_BUTTON_MODE);
1821         dumpSetting(s, p,
1822                 Settings.Secure.ACCESSIBILITY_FLOATING_MENU_SIZE,
1823                 SecureSettingsProto.Accessibility.ACCESSIBILITY_FLOATING_MENU_SIZE);
1824         dumpSetting(s, p,
1825                 Settings.Secure.ACCESSIBILITY_FLOATING_MENU_ICON_TYPE,
1826                 SecureSettingsProto.Accessibility.ACCESSIBILITY_FLOATING_MENU_ICON_TYPE);
1827         dumpSetting(s, p,
1828                 Settings.Secure.ACCESSIBILITY_FLOATING_MENU_OPACITY,
1829                 SecureSettingsProto.Accessibility.ACCESSIBILITY_FLOATING_MENU_OPACITY);
1830         dumpSetting(s, p,
1831                 Settings.Secure.ACCESSIBILITY_FLOATING_MENU_FADE_ENABLED,
1832                 SecureSettingsProto.Accessibility.ACCESSIBILITY_FLOATING_MENU_FADE_ENABLED);
1833         dumpSetting(s, p,
1834                 Settings.Secure.ODI_CAPTIONS_VOLUME_UI_ENABLED,
1835                 SecureSettingsProto.Accessibility.ODI_CAPTIONS_VOLUME_UI_ENABLED);
1836         dumpSetting(s, p,
1837                 Settings.Secure.ACCESSIBILITY_MAGNIFICATION_FOLLOW_TYPING_ENABLED,
1838                 SecureSettingsProto.Accessibility
1839                         .ACCESSIBILITY_MAGNIFICATION_FOLLOW_TYPING_ENABLED);
1840         dumpSetting(s, p,
1841                 Settings.Secure.ACCESSIBILITY_MAGNIFICATION_ALWAYS_ON_ENABLED,
1842                 SecureSettingsProto.Accessibility
1843                         .ACCESSIBILITY_MAGNIFICATION_ALWAYS_ON_ENABLED);
1844         dumpSetting(s, p,
1845                 Settings.Secure.ACCESSIBILITY_MAGNIFICATION_JOYSTICK_ENABLED,
1846                 SecureSettingsProto.Accessibility
1847                         .ACCESSIBILITY_MAGNIFICATION_JOYSTICK_ENABLED);
1848         dumpSetting(s, p,
1849                 Settings.Secure.HEARING_AID_RINGTONE_ROUTING,
1850                 SecureSettingsProto.Accessibility.HEARING_AID_RINGTONE_ROUTING);
1851         dumpSetting(s, p,
1852                 Settings.Secure.HEARING_AID_CALL_ROUTING,
1853                 SecureSettingsProto.Accessibility.HEARING_AID_CALL_ROUTING);
1854         dumpSetting(s, p,
1855                 Settings.Secure.HEARING_AID_MEDIA_ROUTING,
1856                 SecureSettingsProto.Accessibility.HEARING_AID_MEDIA_ROUTING);
1857         dumpSetting(s, p,
1858                 Settings.Secure.HEARING_AID_SYSTEM_SOUNDS_ROUTING,
1859                 SecureSettingsProto.Accessibility.HEARING_AID_SYSTEM_SOUNDS_ROUTING);
1860         dumpSetting(s, p,
1861                 Settings.Secure.ACCESSIBILITY_FONT_SCALING_HAS_BEEN_CHANGED,
1862                 SecureSettingsProto.Accessibility.ACCESSIBILITY_FONT_SCALING_HAS_BEEN_CHANGED);
1863         p.end(accessibilityToken);
1864 
1865         final long adaptiveSleepToken = p.start(SecureSettingsProto.ADAPTIVE_SLEEP);
1866         dumpSetting(s, p,
1867                 Settings.Secure.ADAPTIVE_SLEEP,
1868                 SecureSettingsProto.AdaptiveSleep.ENABLED);
1869         p.end(adaptiveSleepToken);
1870 
1871         dumpSetting(s, p,
1872                 Settings.Secure.ALLOWED_GEOLOCATION_ORIGINS,
1873                 SecureSettingsProto.ALLOWED_GEOLOCATION_ORIGINS);
1874 
1875         dumpSetting(s, p,
1876                 Settings.Secure.BUGREPORT_IN_POWER_MENU,
1877                 SecureSettingsProto.BUGREPORT_IN_POWER_MENU);
1878 
1879         final long aovToken = p.start(SecureSettingsProto.ALWAYS_ON_VPN);
1880         dumpSetting(s, p,
1881                 Settings.Secure.ALWAYS_ON_VPN_APP,
1882                 SecureSettingsProto.AlwaysOnVpn.APP);
1883         dumpSetting(s, p,
1884                 Settings.Secure.ALWAYS_ON_VPN_LOCKDOWN,
1885                 SecureSettingsProto.AlwaysOnVpn.LOCKDOWN);
1886         p.end(aovToken);
1887 
1888         dumpSetting(s, p,
1889                 Settings.Secure.ANDROID_ID,
1890                 SecureSettingsProto.ANDROID_ID);
1891         dumpSetting(s, p,
1892                 Settings.Secure.ANR_SHOW_BACKGROUND,
1893                 SecureSettingsProto.ANR_SHOW_BACKGROUND);
1894 
1895         final long assistToken = p.start(SecureSettingsProto.ASSIST);
1896         dumpSetting(s, p,
1897                 Settings.Secure.ASSISTANT,
1898                 SecureSettingsProto.Assist.ASSISTANT);
1899         dumpSetting(s, p,
1900                 Settings.Secure.ASSIST_STRUCTURE_ENABLED,
1901                 SecureSettingsProto.Assist.STRUCTURE_ENABLED);
1902         dumpSetting(s, p,
1903                 Settings.Secure.ASSIST_SCREENSHOT_ENABLED,
1904                 SecureSettingsProto.Assist.SCREENSHOT_ENABLED);
1905         dumpSetting(s, p,
1906                 Settings.Secure.ASSIST_DISCLOSURE_ENABLED,
1907                 SecureSettingsProto.Assist.DISCLOSURE_ENABLED);
1908         dumpSetting(s, p,
1909                 Settings.Secure.ASSIST_GESTURE_ENABLED,
1910                 SecureSettingsProto.Assist.GESTURE_ENABLED);
1911         dumpSetting(s, p,
1912                 Settings.Secure.ASSIST_GESTURE_SENSITIVITY,
1913                 SecureSettingsProto.Assist.GESTURE_SENSITIVITY);
1914         dumpSetting(s, p,
1915                 Settings.Secure.ASSIST_GESTURE_SILENCE_ALERTS_ENABLED,
1916                 SecureSettingsProto.Assist.GESTURE_SILENCE_ALERTS_ENABLED);
1917         dumpSetting(s, p,
1918                 Settings.Secure.ASSIST_GESTURE_WAKE_ENABLED,
1919                 SecureSettingsProto.Assist.GESTURE_WAKE_ENABLED);
1920         dumpSetting(s, p,
1921                 Settings.Secure.ASSIST_GESTURE_SETUP_COMPLETE,
1922                 SecureSettingsProto.Assist.GESTURE_SETUP_COMPLETE);
1923         dumpSetting(s, p,
1924                 Settings.Secure.ASSIST_TOUCH_GESTURE_ENABLED,
1925                 SecureSettingsProto.Assist.TOUCH_GESTURE_ENABLED);
1926         dumpSetting(s, p,
1927                 Settings.Secure.ASSIST_LONG_PRESS_HOME_ENABLED,
1928                 SecureSettingsProto.Assist.LONG_PRESS_HOME_ENABLED);
1929         dumpSetting(s, p,
1930                 Settings.Secure.SEARCH_PRESS_HOLD_NAV_HANDLE_ENABLED,
1931                 SecureSettingsProto.Assist.SEARCH_PRESS_HOLD_NAV_HANDLE_ENABLED);
1932         dumpSetting(s, p,
1933                 Settings.Secure.SEARCH_LONG_PRESS_HOME_ENABLED,
1934                 SecureSettingsProto.Assist.SEARCH_LONG_PRESS_HOME_ENABLED);
1935         p.end(assistToken);
1936 
1937         final long assistHandlesToken = p.start(SecureSettingsProto.ASSIST_HANDLES);
1938         dumpSetting(s, p,
1939                 Settings.Secure.ASSIST_HANDLES_LEARNING_TIME_ELAPSED_MILLIS,
1940                 SecureSettingsProto.AssistHandles.LEARNING_TIME_ELAPSED_MILLIS);
1941         dumpSetting(s, p,
1942                 Settings.Secure.ASSIST_HANDLES_LEARNING_EVENT_COUNT,
1943                 SecureSettingsProto.AssistHandles.LEARNING_EVENT_COUNT);
1944         p.end(assistHandlesToken);
1945 
1946         final long autofillToken = p.start(SecureSettingsProto.AUTOFILL);
1947         dumpSetting(s, p,
1948                 Settings.Secure.AUTOFILL_SERVICE,
1949                 SecureSettingsProto.Autofill.SERVICE);
1950         dumpSetting(s, p,
1951                 Settings.Secure.AUTOFILL_FEATURE_FIELD_CLASSIFICATION,
1952                 SecureSettingsProto.Autofill.FEATURE_FIELD_CLASSIFICATION);
1953         dumpSetting(s, p,
1954                 Settings.Secure.AUTOFILL_USER_DATA_MAX_USER_DATA_SIZE,
1955                 SecureSettingsProto.Autofill.USER_DATA_MAX_USER_DATA_SIZE);
1956         dumpSetting(s, p,
1957                 Settings.Secure.AUTOFILL_USER_DATA_MAX_FIELD_CLASSIFICATION_IDS_SIZE,
1958                 SecureSettingsProto.Autofill.USER_DATA_MAX_FIELD_CLASSIFICATION_IDS_SIZE);
1959         dumpSetting(s, p,
1960                 Settings.Secure.AUTOFILL_USER_DATA_MAX_CATEGORY_COUNT,
1961                 SecureSettingsProto.Autofill.USER_DATA_MAX_CATEGORY_COUNT);
1962         dumpSetting(s, p,
1963                 Settings.Secure.AUTOFILL_USER_DATA_MAX_VALUE_LENGTH,
1964                 SecureSettingsProto.Autofill.USER_DATA_MAX_VALUE_LENGTH);
1965         dumpSetting(s, p,
1966                 Settings.Secure.AUTOFILL_USER_DATA_MIN_VALUE_LENGTH,
1967                 SecureSettingsProto.Autofill.USER_DATA_MIN_VALUE_LENGTH);
1968         dumpSetting(s, p,
1969                 Settings.Secure.AUTOFILL_SERVICE_SEARCH_URI,
1970                 SecureSettingsProto.Autofill.SERVICE_SEARCH_URI);
1971         p.end(autofillToken);
1972 
1973         final long asmToken = p.start(SecureSettingsProto.AUTOMATIC_STORAGE_MANAGER);
1974         dumpSetting(s, p,
1975                 Settings.Secure.AUTOMATIC_STORAGE_MANAGER_ENABLED,
1976                 SecureSettingsProto.AutomaticStorageManager.ENABLED);
1977         dumpSetting(s, p,
1978                 Settings.Secure.AUTOMATIC_STORAGE_MANAGER_DAYS_TO_RETAIN,
1979                 SecureSettingsProto.AutomaticStorageManager.DAYS_TO_RETAIN);
1980         dumpSetting(s, p,
1981                 Settings.Secure.AUTOMATIC_STORAGE_MANAGER_BYTES_CLEARED,
1982                 SecureSettingsProto.AutomaticStorageManager.BYTES_CLEARED);
1983         dumpSetting(s, p,
1984                 Settings.Secure.AUTOMATIC_STORAGE_MANAGER_LAST_RUN,
1985                 SecureSettingsProto.AutomaticStorageManager.LAST_RUN);
1986         dumpSetting(s, p,
1987                 Settings.Secure.AUTOMATIC_STORAGE_MANAGER_TURNED_OFF_BY_POLICY,
1988                 SecureSettingsProto.AutomaticStorageManager.TURNED_OFF_BY_POLICY);
1989         p.end(asmToken);
1990 
1991         final long backupToken = p.start(SecureSettingsProto.BACKUP);
1992         dumpSetting(s, p,
1993                 Settings.Secure.BACKUP_ENABLED,
1994                 SecureSettingsProto.Backup.ENABLED);
1995         dumpSetting(s, p,
1996                 Settings.Secure.BACKUP_AUTO_RESTORE,
1997                 SecureSettingsProto.Backup.AUTO_RESTORE);
1998         dumpSetting(s, p,
1999                 Settings.Secure.BACKUP_PROVISIONED,
2000                 SecureSettingsProto.Backup.PROVISIONED);
2001         dumpSetting(s, p,
2002                 Settings.Secure.BACKUP_TRANSPORT,
2003                 SecureSettingsProto.Backup.TRANSPORT);
2004         dumpSetting(s, p,
2005                 Settings.Secure.BACKUP_MANAGER_CONSTANTS,
2006                 SecureSettingsProto.Backup.MANAGER_CONSTANTS);
2007         dumpSetting(s, p,
2008                 Settings.Secure.BACKUP_LOCAL_TRANSPORT_PARAMETERS,
2009                 SecureSettingsProto.Backup.LOCAL_TRANSPORT_PARAMETERS);
2010         dumpSetting(s, p,
2011                 Settings.Secure.PACKAGES_TO_CLEAR_DATA_BEFORE_FULL_RESTORE,
2012                 SecureSettingsProto.Backup.PACKAGES_TO_CLEAR_DATA_BEFORE_FULL_RESTORE);
2013         p.end(backupToken);
2014 
2015         // Settings.Secure.BLUETOOTH_ON intentionally excluded since it's deprecated.
2016         dumpSetting(s, p,
2017                 Settings.Secure.BLUETOOTH_ON_WHILE_DRIVING,
2018                 SecureSettingsProto.BLUETOOTH_ON_WHILE_DRIVING);
2019 
2020         final long smartAutoRotateToken = p.start(SecureSettingsProto.CAMERA_AUTOROTATE);
2021         dumpSetting(s, p,
2022                 Settings.Secure.CAMERA_AUTOROTATE,
2023                 SecureSettingsProto.CameraAutorotate.ENABLED);
2024         p.end(smartAutoRotateToken);
2025 
2026         final long cameraToken = p.start(SecureSettingsProto.CAMERA);
2027         dumpSetting(s, p,
2028                 Settings.Secure.CAMERA_GESTURE_DISABLED,
2029                 SecureSettingsProto.Camera.GESTURE_DISABLED);
2030         dumpSetting(s, p,
2031                 Settings.Secure.CAMERA_DOUBLE_TAP_POWER_GESTURE_DISABLED,
2032                 SecureSettingsProto.Camera.DOUBLE_TAP_POWER_GESTURE_DISABLED);
2033         dumpSetting(s, p,
2034                 Settings.Secure.CAMERA_DOUBLE_TWIST_TO_FLIP_ENABLED,
2035                 SecureSettingsProto.Camera.DOUBLE_TWIST_TO_FLIP_ENABLED);
2036         dumpSetting(s, p,
2037                 Settings.Secure.CAMERA_LIFT_TRIGGER_ENABLED,
2038                 SecureSettingsProto.Camera.LIFT_TRIGGER_ENABLED);
2039         p.end(cameraToken);
2040 
2041         dumpSetting(s, p,
2042                 Settings.Secure.CARRIER_APPS_HANDLED,
2043                 SecureSettingsProto.CARRIER_APPS_HANDLED);
2044 
2045         final long clipboardToken = p.start(SecureSettingsProto.CLIPBOARD);
2046         dumpSetting(s, p,
2047                 Settings.Secure.CLIPBOARD_SHOW_ACCESS_NOTIFICATIONS,
2048                 SecureSettingsProto.Clipboard.SHOW_ACCESS_NOTIFICATIONS);
2049         p.end(clipboardToken);
2050 
2051         dumpSetting(s, p,
2052                 Settings.Secure.CMAS_ADDITIONAL_BROADCAST_PKG,
2053                 SecureSettingsProto.CMAS_ADDITIONAL_BROADCAST_PKG);
2054         dumpRepeatedSetting(s, p,
2055                 Settings.Secure.COMPLETED_CATEGORY_PREFIX,
2056                 SecureSettingsProto.COMPLETED_CATEGORIES);
2057         dumpSetting(s, p,
2058                 Settings.Secure.CONNECTIVITY_RELEASE_PENDING_INTENT_DELAY_MS,
2059                 SecureSettingsProto.CONNECTIVITY_RELEASE_PENDING_INTENT_DELAY_MS);
2060         dumpSetting(s, p,
2061                 Settings.Secure.ADAPTIVE_CONNECTIVITY_ENABLED,
2062                 SecureSettingsProto.ADAPTIVE_CONNECTIVITY_ENABLED);
2063 
2064         final long controlsToken = p.start(SecureSettingsProto.CONTROLS);
2065         dumpSetting(s, p,
2066                 Settings.Secure.CONTROLS_ENABLED,
2067                 SecureSettingsProto.Controls.ENABLED);
2068         p.end(controlsToken);
2069 
2070         final long dateTimeToken = p.start(SecureSettingsProto.DATE_TIME);
2071         dumpSetting(s, p,
2072                 Settings.Secure.LOCATION_TIME_ZONE_DETECTION_ENABLED,
2073                 SecureSettingsProto.DateTime.LOCATION_TIME_ZONE_DETECTION_ENABLED);
2074         p.end(dateTimeToken);
2075 
2076         dumpSetting(s, p,
2077                 Settings.Secure.DEVICE_PAIRED,
2078                 SecureSettingsProto.DEVICE_PAIRED);
2079         dumpSetting(s, p,
2080                 Settings.Secure.DIALER_DEFAULT_APPLICATION,
2081                 SecureSettingsProto.DIALER_DEFAULT_APPLICATION);
2082         dumpSetting(s, p,
2083                 Settings.Secure.DISPLAY_DENSITY_FORCED,
2084                 SecureSettingsProto.DISPLAY_DENSITY_FORCED);
2085         dumpSetting(s, p,
2086                 Settings.Secure.DOUBLE_TAP_TO_WAKE,
2087                 SecureSettingsProto.DOUBLE_TAP_TO_WAKE);
2088 
2089         final long dozeToken = p.start(SecureSettingsProto.DOZE);
2090         dumpSetting(s, p,
2091                 Settings.Secure.DOZE_ENABLED,
2092                 SecureSettingsProto.Doze.ENABLED);
2093         dumpSetting(s, p,
2094                 Settings.Secure.DOZE_ALWAYS_ON,
2095                 SecureSettingsProto.Doze.ALWAYS_ON);
2096         dumpSetting(s, p,
2097                 Settings.Secure.DOZE_PICK_UP_GESTURE,
2098                 SecureSettingsProto.Doze.PULSE_ON_PICK_UP);
2099         dumpSetting(s, p,
2100                 Settings.Secure.DOZE_PULSE_ON_LONG_PRESS,
2101                 SecureSettingsProto.Doze.PULSE_ON_LONG_PRESS);
2102         dumpSetting(s, p,
2103                 Settings.Secure.DOZE_DOUBLE_TAP_GESTURE,
2104                 SecureSettingsProto.Doze.PULSE_ON_DOUBLE_TAP);
2105         dumpSetting(s, p,
2106                 Settings.Secure.DOZE_TAP_SCREEN_GESTURE,
2107                 SecureSettingsProto.Doze.PULSE_ON_TAP);
2108         dumpSetting(s, p,
2109                 Settings.Secure.SUPPRESS_DOZE,
2110                 SecureSettingsProto.Doze.SUPPRESS);
2111         p.end(dozeToken);
2112 
2113         dumpSetting(s, p,
2114                 Settings.Secure.EMERGENCY_ASSISTANCE_APPLICATION,
2115                 SecureSettingsProto.EMERGENCY_ASSISTANCE_APPLICATION);
2116 
2117         final long emergencyResponseToken = p.start(SecureSettingsProto.EMERGENCY_RESPONSE);
2118         dumpSetting(s, p,
2119                 Settings.Secure.EMERGENCY_GESTURE_ENABLED,
2120                 SecureSettingsProto.EmergencyResponse.EMERGENCY_GESTURE_ENABLED);
2121         dumpSetting(s, p,
2122                 Settings.Secure.EMERGENCY_GESTURE_SOUND_ENABLED,
2123                 SecureSettingsProto.EmergencyResponse.EMERGENCY_GESTURE_SOUND_ENABLED);
2124         p.end(emergencyResponseToken);
2125 
2126         dumpSetting(s, p,
2127                 Settings.Secure.ENHANCED_VOICE_PRIVACY_ENABLED,
2128                 SecureSettingsProto.ENHANCED_VOICE_PRIVACY_ENABLED);
2129 
2130         final long gestureToken = p.start(SecureSettingsProto.GESTURE);
2131         dumpSetting(s, p,
2132                 Settings.Secure.AWARE_ENABLED,
2133                 SecureSettingsProto.Gesture.AWARE_ENABLED);
2134 
2135         dumpSetting(s, p,
2136                 Settings.Secure.SILENCE_ALARMS_GESTURE_COUNT,
2137                 SecureSettingsProto.Gesture.SILENCE_ALARMS_COUNT);
2138         dumpSetting(s, p,
2139                 Settings.Secure.SILENCE_CALL_GESTURE_COUNT,
2140                 SecureSettingsProto.Gesture.SILENCE_CALLS_COUNT);
2141         dumpSetting(s, p,
2142                 Settings.Secure.SILENCE_GESTURE,
2143                 SecureSettingsProto.Gesture.SILENCE_ENABLED);
2144         dumpSetting(s, p,
2145                 Settings.Secure.SILENCE_TIMER_GESTURE_COUNT,
2146                 SecureSettingsProto.Gesture.SILENCE_TIMER_COUNT);
2147 
2148         dumpSetting(s, p,
2149                 Settings.Secure.SKIP_GESTURE_COUNT,
2150                 SecureSettingsProto.Gesture.SKIP_COUNT);
2151         dumpSetting(s, p,
2152                 Settings.Secure.SKIP_GESTURE,
2153                 SecureSettingsProto.Gesture.SKIP_ENABLED);
2154 
2155         dumpSetting(s, p,
2156                 Settings.Secure.SILENCE_ALARMS_TOUCH_COUNT,
2157                 SecureSettingsProto.Gesture.SILENCE_ALARMS_TOUCH_COUNT);
2158         dumpSetting(s, p,
2159                 Settings.Secure.SILENCE_CALL_TOUCH_COUNT,
2160                 SecureSettingsProto.Gesture.SILENCE_CALLS_TOUCH_COUNT);
2161         dumpSetting(s, p,
2162                 Settings.Secure.SILENCE_TIMER_TOUCH_COUNT,
2163                 SecureSettingsProto.Gesture.SILENCE_TIMER_TOUCH_COUNT);
2164         dumpSetting(s, p,
2165                 Settings.Secure.SKIP_TOUCH_COUNT,
2166                 SecureSettingsProto.Gesture.SKIP_TOUCH_COUNT);
2167         dumpSetting(s, p,
2168                 Settings.Secure.AWARE_TAP_PAUSE_GESTURE_COUNT,
2169                 SecureSettingsProto.Gesture.AWARE_TAP_PAUSE_GESTURE_COUNT);
2170         dumpSetting(s, p,
2171                 Settings.Secure.AWARE_TAP_PAUSE_TOUCH_COUNT,
2172                 SecureSettingsProto.Gesture.AWARE_TAP_PAUSE_TOUCH_COUNT);
2173         p.end(gestureToken);
2174 
2175         dumpSetting(s, p,
2176                 Settings.Secure.IMMERSIVE_MODE_CONFIRMATIONS,
2177                 SecureSettingsProto.IMMERSIVE_MODE_CONFIRMATIONS);
2178 
2179         final long incallToken = p.start(SecureSettingsProto.INCALL);
2180         dumpSetting(s, p,
2181                 Settings.Secure.INCALL_POWER_BUTTON_BEHAVIOR,
2182                 SecureSettingsProto.Incall.POWER_BUTTON_BEHAVIOR);
2183         dumpSetting(s, p,
2184                 Settings.Secure.INCALL_BACK_BUTTON_BEHAVIOR,
2185                 SecureSettingsProto.Incall.BACK_BUTTON_BEHAVIOR);
2186         p.end(incallToken);
2187 
2188         final long inputMethodsToken = p.start(SecureSettingsProto.INPUT_METHODS);
2189         dumpSetting(s, p,
2190                 Settings.Secure.DEFAULT_INPUT_METHOD,
2191                 SecureSettingsProto.InputMethods.DEFAULT_INPUT_METHOD);
2192         dumpSetting(s, p,
2193                 Settings.Secure.DISABLED_SYSTEM_INPUT_METHODS,
2194                 SecureSettingsProto.InputMethods.DISABLED_SYSTEM_INPUT_METHODS);
2195         dumpSetting(s, p,
2196                 Settings.Secure.ENABLED_INPUT_METHODS,
2197                 SecureSettingsProto.InputMethods.ENABLED_INPUT_METHODS);
2198         dumpSetting(s, p,
2199                 Settings.Secure.INPUT_METHODS_SUBTYPE_HISTORY,
2200                 SecureSettingsProto.InputMethods.SUBTYPE_HISTORY);
2201         dumpSetting(s, p,
2202                 Settings.Secure.INPUT_METHOD_SELECTOR_VISIBILITY,
2203                 SecureSettingsProto.InputMethods.METHOD_SELECTOR_VISIBILITY);
2204         dumpSetting(s, p,
2205                 Settings.Secure.SELECTED_INPUT_METHOD_SUBTYPE,
2206                 SecureSettingsProto.InputMethods.SELECTED_INPUT_METHOD_SUBTYPE);
2207         dumpSetting(s, p,
2208                 Settings.Secure.SHOW_IME_WITH_HARD_KEYBOARD,
2209                 SecureSettingsProto.InputMethods.SHOW_IME_WITH_HARD_KEYBOARD);
2210         dumpSetting(s, p,
2211                 Settings.Secure.DEFAULT_VOICE_INPUT_METHOD,
2212                 SecureSettingsProto.InputMethods.DEFAULT_VOICE_INPUT_METHOD);
2213         p.end(inputMethodsToken);
2214 
2215         dumpSetting(s, p,
2216                 Settings.Secure.INSTALL_NON_MARKET_APPS,
2217                 SecureSettingsProto.INSTALL_NON_MARKET_APPS);
2218         dumpSetting(s, p,
2219                 Settings.Secure.INSTANT_APPS_ENABLED,
2220                 SecureSettingsProto.INSTANT_APPS_ENABLED);
2221         dumpSetting(s, p,
2222                 Settings.Secure.KEYGUARD_SLICE_URI,
2223                 SecureSettingsProto.KEYGUARD_SLICE_URI);
2224         dumpSetting(s, p,
2225                 Settings.Secure.LAST_SETUP_SHOWN,
2226                 SecureSettingsProto.LAST_SETUP_SHOWN);
2227 
2228         final long locationToken = p.start(SecureSettingsProto.LOCATION);
2229         // Settings.Secure.LOCATION_PROVIDERS_ALLOWED intentionally excluded since it's deprecated.
2230         dumpSetting(s, p,
2231                 Settings.Secure.LOCATION_MODE,
2232                 SecureSettingsProto.Location.MODE);
2233         dumpSetting(s, p,
2234                 Settings.Secure.LOCATION_CHANGER,
2235                 SecureSettingsProto.Location.CHANGER);
2236         p.end(locationToken);
2237 
2238         final long locationAccessCheckToken = p.start(SecureSettingsProto.LOCATION_ACCESS_CHECK);
2239         dumpSetting(s, p,
2240                 Settings.Secure.LOCATION_ACCESS_CHECK_INTERVAL_MILLIS,
2241                 SecureSettingsProto.LocationAccessCheck.INTERVAL_MILLIS);
2242         dumpSetting(s, p,
2243                 Settings.Secure.LOCATION_ACCESS_CHECK_DELAY_MILLIS,
2244                 SecureSettingsProto.LocationAccessCheck.DELAY_MILLIS);
2245         p.end(locationAccessCheckToken);
2246 
2247         final long lockScreenToken = p.start(SecureSettingsProto.LOCK_SCREEN);
2248         // Settings.Secure.LOCK_BIOMETRIC_WEAK_FLAGS intentionally excluded since it's deprecated.
2249         // Settings.Secure.LOCK_PATTERN_ENABLED intentionally excluded since it's deprecated.
2250         // Settings.Secure.LOCK_PATTERN_VISIBLE intentionally excluded since it's deprecated.
2251         // Settings.Secure.LOCK_PATTERN_TACTICLE_FEEDBACK_ENABLED intentionally excluded since it's deprecated.
2252         dumpSetting(s, p,
2253                 Settings.Secure.LOCK_SCREEN_LOCK_AFTER_TIMEOUT,
2254                 SecureSettingsProto.LockScreen.LOCK_AFTER_TIMEOUT);
2255         // Settings.Secure.LOCK_SCREEN_OWNER_INFO intentionally excluded since it's deprecated.
2256         // Settings.Secure.LOCK_SCREEN_APPWIDGET_IDS intentionally excluded since it's deprecated.
2257         // Settings.Secure.LOCK_SCREEN_FALLBACK_APPWIDGET_ID intentionally excluded since it's deprecated.
2258         // Settings.Secure.LOCK_SCREEN_STICKY_APPWIDGET intentionally excluded since it's deprecated.
2259         // Settings.Secure.LOCK_SCREEN_OWNER_INFO_ENABLED intentionally excluded since it's deprecated.
2260         dumpSetting(s, p,
2261                 Settings.Secure.LOCK_SCREEN_ALLOW_PRIVATE_NOTIFICATIONS,
2262                 SecureSettingsProto.LockScreen.ALLOW_PRIVATE_NOTIFICATIONS);
2263         dumpSetting(s, p,
2264                 Settings.Secure.LOCK_SCREEN_ALLOW_REMOTE_INPUT,
2265                 SecureSettingsProto.LockScreen.ALLOW_REMOTE_INPUT);
2266         dumpSetting(s, p,
2267                 Settings.Secure.LOCK_SCREEN_SHOW_NOTIFICATIONS,
2268                 SecureSettingsProto.LockScreen.SHOW_NOTIFICATIONS);
2269         p.end(lockScreenToken);
2270 
2271         dumpSetting(s, p,
2272                 Settings.Secure.LOCK_TO_APP_EXIT_LOCKED,
2273                 SecureSettingsProto.LOCK_TO_APP_EXIT_LOCKED);
2274         dumpSetting(s, p,
2275                 Settings.Secure.LONG_PRESS_TIMEOUT,
2276                 SecureSettingsProto.LONG_PRESS_TIMEOUT);
2277 
2278         final long managedProfileToken = p.start(SecureSettingsProto.MANAGED_PROFILE);
2279         dumpSetting(s, p,
2280                 Settings.Secure.MANAGED_PROFILE_CONTACT_REMOTE_SEARCH,
2281                 SecureSettingsProto.ManagedProfile.CONTACT_REMOTE_SEARCH);
2282         p.end(managedProfileToken);
2283 
2284         final long mountToken = p.start(SecureSettingsProto.MOUNT);
2285         dumpSetting(s, p,
2286                 Settings.Secure.MOUNT_PLAY_NOTIFICATION_SND,
2287                 SecureSettingsProto.Mount.PLAY_NOTIFICATION_SND);
2288         dumpSetting(s, p,
2289                 Settings.Secure.MOUNT_UMS_AUTOSTART,
2290                 SecureSettingsProto.Mount.UMS_AUTOSTART);
2291         dumpSetting(s, p,
2292                 Settings.Secure.MOUNT_UMS_PROMPT,
2293                 SecureSettingsProto.Mount.UMS_PROMPT);
2294         dumpSetting(s, p,
2295                 Settings.Secure.MOUNT_UMS_NOTIFY_ENABLED,
2296                 SecureSettingsProto.Mount.UMS_NOTIFY_ENABLED);
2297         p.end(mountToken);
2298 
2299         dumpSetting(s, p,
2300                 Settings.Secure.MULTI_PRESS_TIMEOUT,
2301                 SecureSettingsProto.MULTI_PRESS_TIMEOUT);
2302 
2303         final long navBar = p.start(SecureSettingsProto.NAV_BAR);
2304         dumpSetting(s, p,
2305                 Settings.Secure.NAV_BAR_FORCE_VISIBLE,
2306                 SecureSettingsProto.NavBar.NAV_BAR_FORCE_VISIBLE);
2307         dumpSetting(s, p,
2308                 Settings.Secure.NAV_BAR_KIDS_MODE,
2309                 SecureSettingsProto.NavBar.NAV_BAR_KIDS_MODE);
2310         p.end(navBar);
2311 
2312         dumpSetting(s, p,
2313                 Settings.Secure.NAVIGATION_MODE,
2314                 SecureSettingsProto.NAVIGATION_MODE);
2315 
2316         final long gestureNavToken = p.start(SecureSettingsProto.GESTURE_NAVIGATION);
2317         dumpSetting(s, p,
2318                 Settings.Secure.BACK_GESTURE_INSET_SCALE_LEFT,
2319                 SecureSettingsProto.GestureNavigation.BACK_GESTURE_INSET_SCALE_LEFT);
2320         dumpSetting(s, p,
2321                 Settings.Secure.BACK_GESTURE_INSET_SCALE_RIGHT,
2322                 SecureSettingsProto.GestureNavigation.BACK_GESTURE_INSET_SCALE_RIGHT);
2323         p.end(gestureNavToken);
2324 
2325         final long nfcPaymentToken = p.start(SecureSettingsProto.NFC_PAYMENT);
2326         dumpSetting(s, p,
2327                 Settings.Secure.NFC_PAYMENT_DEFAULT_COMPONENT,
2328                 SecureSettingsProto.NfcPayment.DEFAULT_COMPONENT);
2329         dumpSetting(s, p,
2330                 Settings.Secure.NFC_PAYMENT_FOREGROUND,
2331                 SecureSettingsProto.NfcPayment.FOREGROUND);
2332         dumpSetting(s, p,
2333                 Settings.Secure.PAYMENT_SERVICE_SEARCH_URI,
2334                 SecureSettingsProto.NfcPayment.PAYMENT_SERVICE_SEARCH_URI);
2335         p.end(nfcPaymentToken);
2336 
2337         final long nightDisplayToken = p.start(SecureSettingsProto.NIGHT_DISPLAY);
2338         dumpSetting(s, p,
2339                 Settings.Secure.NIGHT_DISPLAY_ACTIVATED,
2340                 SecureSettingsProto.NightDisplay.ACTIVATED);
2341         dumpSetting(s, p,
2342                 Settings.Secure.NIGHT_DISPLAY_AUTO_MODE,
2343                 SecureSettingsProto.NightDisplay.AUTO_MODE);
2344         dumpSetting(s, p,
2345                 Settings.Secure.NIGHT_DISPLAY_COLOR_TEMPERATURE,
2346                 SecureSettingsProto.NightDisplay.COLOR_TEMPERATURE);
2347         dumpSetting(s, p,
2348                 Settings.Secure.NIGHT_DISPLAY_CUSTOM_START_TIME,
2349                 SecureSettingsProto.NightDisplay.CUSTOM_START_TIME);
2350         dumpSetting(s, p,
2351                 Settings.Secure.NIGHT_DISPLAY_CUSTOM_END_TIME,
2352                 SecureSettingsProto.NightDisplay.CUSTOM_END_TIME);
2353         dumpSetting(s, p,
2354                 Settings.Secure.NIGHT_DISPLAY_LAST_ACTIVATED_TIME,
2355                 SecureSettingsProto.NightDisplay.LAST_ACTIVATED_TIME);
2356         p.end(nightDisplayToken);
2357 
2358         final long notificationToken = p.start(SecureSettingsProto.NOTIFICATION);
2359         dumpSetting(s, p,
2360                 Settings.Secure.ENABLED_NOTIFICATION_ASSISTANT,
2361                 SecureSettingsProto.Notification.ENABLED_ASSISTANT);
2362         dumpSetting(s, p,
2363                 Settings.Secure.ENABLED_NOTIFICATION_LISTENERS,
2364                 SecureSettingsProto.Notification.ENABLED_LISTENERS);
2365         dumpSetting(s, p,
2366                 Settings.Secure.ENABLED_NOTIFICATION_POLICY_ACCESS_PACKAGES,
2367                 SecureSettingsProto.Notification.ENABLED_POLICY_ACCESS_PACKAGES);
2368         dumpSetting(s, p,
2369                 Settings.Secure.NOTIFICATION_BADGING,
2370                 SecureSettingsProto.Notification.BADGING);
2371         dumpSetting(s, p,
2372                 Settings.Secure.NOTIFICATION_BUBBLES,
2373                 SecureSettingsProto.Notification.BUBBLES);
2374         dumpSetting(s, p,
2375                 Settings.Secure.SHOW_NOTE_ABOUT_NOTIFICATION_HIDING,
2376                 SecureSettingsProto.Notification.SHOW_NOTE_ABOUT_NOTIFICATION_HIDING);
2377         dumpSetting(s, p,
2378                 Settings.Secure.IN_CALL_NOTIFICATION_ENABLED,
2379                 SecureSettingsProto.Notification.IN_CALL_NOTIFICATION_ENABLED);
2380         p.end(notificationToken);
2381 
2382         final long oneHandedToken = p.start(SecureSettingsProto.ONEHANDED);
2383         dumpSetting(s, p,
2384                 Settings.Secure.ONE_HANDED_MODE_ENABLED,
2385                 SecureSettingsProto.OneHanded.ONE_HANDED_MODE_ENABLED);
2386         dumpSetting(s, p,
2387                 Settings.Secure.ONE_HANDED_MODE_TIMEOUT,
2388                 SecureSettingsProto.OneHanded.ONE_HANDED_MODE_TIMEOUT);
2389         dumpSetting(s, p,
2390                 Settings.Secure.TAPS_APP_TO_EXIT,
2391                 SecureSettingsProto.OneHanded.TAPS_APP_TO_EXIT);
2392         p.end(oneHandedToken);
2393 
2394         final long parentalControlToken = p.start(SecureSettingsProto.PARENTAL_CONTROL);
2395         dumpSetting(s, p,
2396                 Settings.Secure.PARENTAL_CONTROL_ENABLED,
2397                 SecureSettingsProto.ParentalControl.ENABLED);
2398         dumpSetting(s, p,
2399                 Settings.Secure.PARENTAL_CONTROL_LAST_UPDATE,
2400                 SecureSettingsProto.ParentalControl.LAST_UPDATE);
2401         dumpSetting(s, p,
2402                 Settings.Secure.PARENTAL_CONTROL_REDIRECT_URL,
2403                 SecureSettingsProto.ParentalControl.REDIRECT_URL);
2404         p.end(parentalControlToken);
2405 
2406         final long powerMenuPrivacyToken = p.start(SecureSettingsProto.POWER_MENU_PRIVACY);
2407         dumpSetting(s, p,
2408                 Settings.Secure.POWER_MENU_LOCKED_SHOW_CONTENT,
2409                 SecureSettingsProto.PowerMenuPrivacy.SHOW);
2410         p.end(powerMenuPrivacyToken);
2411 
2412         final long extraLowPowerModeToken = p.start(SecureSettingsProto.EXTRA_LOW_POWER_MODE);
2413         dumpSetting(s, p,
2414                 Settings.Secure.EXTRA_AUTOMATIC_POWER_SAVE_MODE,
2415                 SecureSettingsProto.ExtraLowPowerMode.EXTRA_AUTOMATIC_POWER_SAVE_MODE);
2416         p.end(extraLowPowerModeToken);
2417 
2418         final long printServiceToken = p.start(SecureSettingsProto.PRINT_SERVICE);
2419         dumpSetting(s, p,
2420                 Settings.Secure.PRINT_SERVICE_SEARCH_URI,
2421                 SecureSettingsProto.PrintService.SEARCH_URI);
2422         dumpSetting(s, p,
2423                 Settings.Secure.ENABLED_PRINT_SERVICES,
2424                 SecureSettingsProto.PrintService.ENABLED_PRINT_SERVICES);
2425         dumpSetting(s, p,
2426                 Settings.Secure.DISABLED_PRINT_SERVICES,
2427                 SecureSettingsProto.PrintService.DISABLED_PRINT_SERVICES);
2428         p.end(printServiceToken);
2429 
2430         final long qsToken = p.start(SecureSettingsProto.QS);
2431         dumpSetting(s, p,
2432                 Settings.Secure.QS_TILES,
2433                 SecureSettingsProto.QuickSettings.TILES);
2434         dumpSetting(s, p,
2435                 Settings.Secure.QS_AUTO_ADDED_TILES,
2436                 SecureSettingsProto.QuickSettings.AUTO_ADDED_TILES);
2437         p.end(qsToken);
2438 
2439         final long reduceBrightColorsToken = p.start(SecureSettingsProto.REDUCE_BRIGHT_COLORS);
2440         dumpSetting(s, p,
2441                 Settings.Secure.REDUCE_BRIGHT_COLORS_ACTIVATED,
2442                 SecureSettingsProto.ReduceBrightColors.ACTIVATED);
2443         dumpSetting(s, p,
2444                 Settings.Secure.REDUCE_BRIGHT_COLORS_LEVEL,
2445                 SecureSettingsProto.ReduceBrightColors.LEVEL);
2446         dumpSetting(s, p,
2447                 Settings.Secure.REDUCE_BRIGHT_COLORS_PERSIST_ACROSS_REBOOTS,
2448                 SecureSettingsProto.ReduceBrightColors.PERSIST_ACROSS_REBOOTS);
2449         p.end(reduceBrightColorsToken);
2450 
2451         final long rotationToken = p.start(SecureSettingsProto.ROTATION);
2452         dumpSetting(s, p,
2453                 Settings.Secure.SHOW_ROTATION_SUGGESTIONS,
2454                 SecureSettingsProto.Rotation.SHOW_ROTATION_SUGGESTIONS);
2455         dumpSetting(s, p,
2456                 Settings.Secure.NUM_ROTATION_SUGGESTIONS_ACCEPTED,
2457                 SecureSettingsProto.Rotation.NUM_ROTATION_SUGGESTIONS_ACCEPTED);
2458         p.end(rotationToken);
2459 
2460         dumpSetting(s, p,
2461                 Settings.Secure.RTT_CALLING_MODE,
2462                 SecureSettingsProto.RTT_CALLING_MODE);
2463 
2464         final long screensaverToken = p.start(SecureSettingsProto.SCREENSAVER);
2465         dumpSetting(s, p,
2466                 Settings.Secure.SCREENSAVER_ENABLED,
2467                 SecureSettingsProto.Screensaver.ENABLED);
2468         dumpSetting(s, p,
2469                 Settings.Secure.SCREENSAVER_COMPONENTS,
2470                 SecureSettingsProto.Screensaver.COMPONENTS);
2471         dumpSetting(s, p,
2472                 Settings.Secure.SCREENSAVER_ACTIVATE_ON_DOCK,
2473                 SecureSettingsProto.Screensaver.ACTIVATE_ON_DOCK);
2474         dumpSetting(s, p,
2475                 Settings.Secure.SCREENSAVER_ACTIVATE_ON_SLEEP,
2476                 SecureSettingsProto.Screensaver.ACTIVATE_ON_SLEEP);
2477         dumpSetting(s, p,
2478                 Settings.Secure.SCREENSAVER_DEFAULT_COMPONENT,
2479                 SecureSettingsProto.Screensaver.DEFAULT_COMPONENT);
2480         p.end(screensaverToken);
2481 
2482         final long searchToken = p.start(SecureSettingsProto.SEARCH);
2483         dumpSetting(s, p,
2484                 Settings.Secure.SEARCH_GLOBAL_SEARCH_ACTIVITY,
2485                 SecureSettingsProto.Search.GLOBAL_SEARCH_ACTIVITY);
2486         dumpSetting(s, p,
2487                 Settings.Secure.SEARCH_NUM_PROMOTED_SOURCES,
2488                 SecureSettingsProto.Search.NUM_PROMOTED_SOURCES);
2489         dumpSetting(s, p,
2490                 Settings.Secure.SEARCH_MAX_RESULTS_TO_DISPLAY,
2491                 SecureSettingsProto.Search.MAX_RESULTS_TO_DISPLAY);
2492         dumpSetting(s, p,
2493                 Settings.Secure.SEARCH_MAX_RESULTS_PER_SOURCE,
2494                 SecureSettingsProto.Search.MAX_RESULTS_PER_SOURCE);
2495         dumpSetting(s, p,
2496                 Settings.Secure.SEARCH_WEB_RESULTS_OVERRIDE_LIMIT,
2497                 SecureSettingsProto.Search.WEB_RESULTS_OVERRIDE_LIMIT);
2498         dumpSetting(s, p,
2499                 Settings.Secure.SEARCH_PROMOTED_SOURCE_DEADLINE_MILLIS,
2500                 SecureSettingsProto.Search.PROMOTED_SOURCE_DEADLINE_MILLIS);
2501         dumpSetting(s, p,
2502                 Settings.Secure.SEARCH_SOURCE_TIMEOUT_MILLIS,
2503                 SecureSettingsProto.Search.SOURCE_TIMEOUT_MILLIS);
2504         dumpSetting(s, p,
2505                 Settings.Secure.SEARCH_PREFILL_MILLIS,
2506                 SecureSettingsProto.Search.PREFILL_MILLIS);
2507         dumpSetting(s, p,
2508                 Settings.Secure.SEARCH_MAX_STAT_AGE_MILLIS,
2509                 SecureSettingsProto.Search.MAX_STAT_AGE_MILLIS);
2510         dumpSetting(s, p,
2511                 Settings.Secure.SEARCH_MAX_SOURCE_EVENT_AGE_MILLIS,
2512                 SecureSettingsProto.Search.MAX_SOURCE_EVENT_AGE_MILLIS);
2513         dumpSetting(s, p,
2514                 Settings.Secure.SEARCH_MIN_IMPRESSIONS_FOR_SOURCE_RANKING,
2515                 SecureSettingsProto.Search.MIN_IMPRESSIONS_FOR_SOURCE_RANKING);
2516         dumpSetting(s, p,
2517                 Settings.Secure.SEARCH_MIN_CLICKS_FOR_SOURCE_RANKING,
2518                 SecureSettingsProto.Search.MIN_CLICKS_FOR_SOURCE_RANKING);
2519         dumpSetting(s, p,
2520                 Settings.Secure.SEARCH_MAX_SHORTCUTS_RETURNED,
2521                 SecureSettingsProto.Search.MAX_SHORTCUTS_RETURNED);
2522         dumpSetting(s, p,
2523                 Settings.Secure.SEARCH_QUERY_THREAD_CORE_POOL_SIZE,
2524                 SecureSettingsProto.Search.QUERY_THREAD_CORE_POOL_SIZE);
2525         dumpSetting(s, p,
2526                 Settings.Secure.SEARCH_QUERY_THREAD_MAX_POOL_SIZE,
2527                 SecureSettingsProto.Search.QUERY_THREAD_MAX_POOL_SIZE);
2528         dumpSetting(s, p,
2529                 Settings.Secure.SEARCH_SHORTCUT_REFRESH_CORE_POOL_SIZE,
2530                 SecureSettingsProto.Search.SHORTCUT_REFRESH_CORE_POOL_SIZE);
2531         dumpSetting(s, p,
2532                 Settings.Secure.SEARCH_SHORTCUT_REFRESH_MAX_POOL_SIZE,
2533                 SecureSettingsProto.Search.SHORTCUT_REFRESH_MAX_POOL_SIZE);
2534         dumpSetting(s, p,
2535                 Settings.Secure.SEARCH_THREAD_KEEPALIVE_SECONDS,
2536                 SecureSettingsProto.Search.THREAD_KEEPALIVE_SECONDS);
2537         dumpSetting(s, p,
2538                 Settings.Secure.SEARCH_PER_SOURCE_CONCURRENT_QUERY_LIMIT,
2539                 SecureSettingsProto.Search.PER_SOURCE_CONCURRENT_QUERY_LIMIT);
2540         p.end(searchToken);
2541 
2542         final long spellCheckerToken = p.start(SecureSettingsProto.SPELL_CHECKER);
2543         dumpSetting(s, p,
2544                 Settings.Secure.SPELL_CHECKER_ENABLED,
2545                 SecureSettingsProto.SpellChecker.ENABLED);
2546         dumpSetting(s, p,
2547                 Settings.Secure.SELECTED_SPELL_CHECKER,
2548                 SecureSettingsProto.SpellChecker.SELECTED);
2549         dumpSetting(s, p,
2550                 Settings.Secure.SELECTED_SPELL_CHECKER_SUBTYPE,
2551                 SecureSettingsProto.SpellChecker.SELECTED_SUBTYPE);
2552         p.end(spellCheckerToken);
2553 
2554         dumpSetting(s, p,
2555                 Settings.Secure.SETTINGS_CLASSNAME,
2556                 SecureSettingsProto.SETTINGS_CLASSNAME);
2557         dumpSetting(s, p,
2558                 Settings.Secure.SHOW_FIRST_CRASH_DIALOG_DEV_OPTION,
2559                 SecureSettingsProto.SHOW_FIRST_CRASH_DIALOG_DEV_OPTION);
2560         dumpSetting(s, p,
2561                 Settings.Secure.SKIP_FIRST_USE_HINTS,
2562                 SecureSettingsProto.SKIP_FIRST_USE_HINTS);
2563         dumpSetting(s, p,
2564                 Settings.Secure.SLEEP_TIMEOUT,
2565                 SecureSettingsProto.SLEEP_TIMEOUT);
2566         dumpSetting(s, p,
2567                 Settings.Secure.SMS_DEFAULT_APPLICATION,
2568                 SecureSettingsProto.SMS_DEFAULT_APPLICATION);
2569 
2570         final long soundsToken = p.start(SecureSettingsProto.SOUNDS);
2571         dumpSetting(s, p,
2572                 Settings.Secure.CHARGING_SOUNDS_ENABLED,
2573                 SecureSettingsProto.Sounds.CHARGING_SOUNDS_ENABLED);
2574         dumpSetting(s, p,
2575                 Settings.Secure.CHARGING_VIBRATION_ENABLED,
2576                 SecureSettingsProto.Sounds.CHARGING_VIBRATION_ENABLED);
2577         p.end(soundsToken);
2578 
2579         dumpSetting(s, p,
2580                 Settings.Secure.SWIPE_BOTTOM_TO_NOTIFICATION_ENABLED,
2581                 SecureSettingsProto.SWIPE_BOTTOM_TO_NOTIFICATION_ENABLED);
2582         dumpSetting(s, p,
2583                 Settings.Secure.SYNC_PARENT_SOUNDS,
2584                 SecureSettingsProto.SYNC_PARENT_SOUNDS);
2585         dumpSetting(s, p,
2586                 Settings.Secure.SYSTEM_NAVIGATION_KEYS_ENABLED,
2587                 SecureSettingsProto.SYSTEM_NAVIGATION_KEYS_ENABLED);
2588         dumpSetting(s, p,
2589                 Settings.Secure.THEME_CUSTOMIZATION_OVERLAY_PACKAGES,
2590                 SecureSettingsProto.THEME_CUSTOMIZATION_OVERLAY_PACKAGES);
2591         dumpSetting(s, p,
2592                 Settings.Secure.TRUST_AGENTS_INITIALIZED,
2593                 SecureSettingsProto.TRUST_AGENTS_INITIALIZED);
2594 
2595         final long ttsToken = p.start(SecureSettingsProto.TTS);
2596         // Settings.Secure.TTS_USE_DEFAULTS intentionally excluded since it's deprecated.
2597         dumpSetting(s, p,
2598                 Settings.Secure.TTS_DEFAULT_RATE,
2599                 SecureSettingsProto.Tts.DEFAULT_RATE);
2600         dumpSetting(s, p,
2601                 Settings.Secure.TTS_DEFAULT_PITCH,
2602                 SecureSettingsProto.Tts.DEFAULT_PITCH);
2603         dumpSetting(s, p,
2604                 Settings.Secure.TTS_DEFAULT_SYNTH,
2605                 SecureSettingsProto.Tts.DEFAULT_SYNTH);
2606         // Settings.Secure.TTS_DEFAULT_LANG intentionally excluded since it's deprecated.
2607         // Settings.Secure.TTS_DEFAULT_COUNTRY intentionally excluded since it's deprecated.
2608         // Settings.Secure.TTS_DEFAULT_VARIANT intentionally excluded since it's deprecated.
2609         dumpSetting(s, p,
2610                 Settings.Secure.TTS_DEFAULT_LOCALE,
2611                 SecureSettingsProto.Tts.DEFAULT_LOCALE);
2612         dumpSetting(s, p,
2613                 Settings.Secure.TTS_ENABLED_PLUGINS,
2614                 SecureSettingsProto.Tts.ENABLED_PLUGINS);
2615         p.end(ttsToken);
2616 
2617         final long ttyToken = p.start(SecureSettingsProto.TTY);
2618         dumpSetting(s, p,
2619                 Settings.Secure.TTY_MODE_ENABLED,
2620                 SecureSettingsProto.Tty.TTY_MODE_ENABLED);
2621         dumpSetting(s, p,
2622                 Settings.Secure.PREFERRED_TTY_MODE,
2623                 SecureSettingsProto.Tty.PREFERRED_TTY_MODE);
2624         p.end(ttyToken);
2625 
2626         final long tvToken = p.start(SecureSettingsProto.TV);
2627         // Whether the current user has been set up via setup wizard (0 = false, 1 = true). This
2628         // value differs from USER_SETUP_COMPLETE in that it can be reset back to 0 in case
2629         // SetupWizard has been re-enabled on TV devices.
2630         dumpSetting(s, p,
2631                 Settings.Secure.TV_USER_SETUP_COMPLETE,
2632                 SecureSettingsProto.Tv.USER_SETUP_COMPLETE);
2633         dumpSetting(s, p,
2634                 Settings.Secure.TV_INPUT_HIDDEN_INPUTS,
2635                 SecureSettingsProto.Tv.INPUT_HIDDEN_INPUTS);
2636         dumpSetting(s, p,
2637                 Settings.Secure.TV_INPUT_CUSTOM_LABELS,
2638                 SecureSettingsProto.Tv.INPUT_CUSTOM_LABELS);
2639         p.end(tvToken);
2640 
2641         dumpSetting(s, p,
2642                 Settings.Secure.UI_NIGHT_MODE,
2643                 SecureSettingsProto.UI_NIGHT_MODE);
2644         dumpSetting(s, p,
2645                 Settings.Secure.UNKNOWN_SOURCES_DEFAULT_REVERSED,
2646                 SecureSettingsProto.UNKNOWN_SOURCES_DEFAULT_REVERSED);
2647         dumpSetting(s, p,
2648                 Settings.Secure.USB_AUDIO_AUTOMATIC_ROUTING_DISABLED,
2649                 SecureSettingsProto.USB_AUDIO_AUTOMATIC_ROUTING_DISABLED);
2650         dumpSetting(s, p,
2651                 Settings.Secure.USER_SETUP_COMPLETE,
2652                 SecureSettingsProto.USER_SETUP_COMPLETE);
2653 
2654         final long voiceToken = p.start(SecureSettingsProto.VOICE);
2655         dumpSetting(s, p,
2656                 Settings.Secure.VOICE_INTERACTION_SERVICE,
2657                 SecureSettingsProto.Voice.INTERACTION_SERVICE);
2658         dumpSetting(s, p,
2659                 Settings.Secure.VOICE_RECOGNITION_SERVICE,
2660                 SecureSettingsProto.Voice.RECOGNITION_SERVICE);
2661         p.end(voiceToken);
2662 
2663         final long volumeToken = p.start(SecureSettingsProto.VOLUME);
2664         dumpSetting(s, p,
2665                 Settings.Secure.VOLUME_HUSH_GESTURE,
2666                 SecureSettingsProto.Volume.HUSH_GESTURE);
2667         dumpSetting(s, p,
2668                 Settings.Secure.UNSAFE_VOLUME_MUSIC_ACTIVE_MS,
2669                 SecureSettingsProto.Volume.UNSAFE_VOLUME_MUSIC_ACTIVE_MS);
2670         p.end(volumeToken);
2671 
2672         final long vrToken = p.start(SecureSettingsProto.VR);
2673         dumpSetting(s, p,
2674                 Settings.Secure.VR_DISPLAY_MODE,
2675                 SecureSettingsProto.Vr.DISPLAY_MODE);
2676         dumpSetting(s, p,
2677                 Settings.Secure.ENABLED_VR_LISTENERS,
2678                 SecureSettingsProto.Vr.ENABLED_LISTENERS);
2679         p.end(vrToken);
2680 
2681         dumpSetting(s, p,
2682                 Settings.Secure.WAKE_GESTURE_ENABLED,
2683                 SecureSettingsProto.WAKE_GESTURE_ENABLED);
2684 
2685         final long zenToken = p.start(SecureSettingsProto.ZEN);
2686         dumpSetting(s, p,
2687                 Settings.Secure.ZEN_DURATION,
2688                 SecureSettingsProto.Zen.DURATION);
2689         dumpSetting(s, p,
2690                 Settings.Secure.SHOW_ZEN_UPGRADE_NOTIFICATION,
2691                 SecureSettingsProto.Zen.SHOW_ZEN_UPGRADE_NOTIFICATION);
2692         dumpSetting(s, p,
2693                 Settings.Secure.SHOW_ZEN_SETTINGS_SUGGESTION,
2694                 SecureSettingsProto.Zen.SHOW_ZEN_SETTINGS_SUGGESTION);
2695         dumpSetting(s, p,
2696                 Settings.Secure.ZEN_SETTINGS_UPDATED,
2697                 SecureSettingsProto.Zen.SETTINGS_UPDATED);
2698         dumpSetting(s, p,
2699                 Settings.Secure.ZEN_SETTINGS_SUGGESTION_VIEWED,
2700                 SecureSettingsProto.Zen.SETTINGS_SUGGESTION_VIEWED);
2701         p.end(zenToken);
2702 
2703         // Please insert new settings using the same order as in SecureSettingsProto.
2704         p.end(token);
2705 
2706         // Settings.Secure.DEVELOPMENT_SETTINGS_ENABLED intentionally excluded since it's deprecated.
2707         // Settings.Secure.ADB_ENABLED intentionally excluded since it's deprecated.
2708         // Settings.Secure.ALLOW_MOCK_LOCATION intentionally excluded since it's deprecated.
2709         // Settings.Secure.DATA_ROAMING intentionally excluded since it's deprecated.
2710         // Settings.Secure.DEVICE_PROVISIONED intentionally excluded since it's deprecated.
2711         // Settings.Secure.HTTP_PROXY intentionally excluded since it's deprecated.
2712         // Settings.Secure.LOGGING_ID intentionally excluded since it's deprecated.
2713         // Settings.Secure.NETWORK_PREFERENCE intentionally excluded since it's deprecated.
2714         // Settings.Secure.USB_MASS_STORAGE_ENABLED intentionally excluded since it's deprecated.
2715         // Settings.Secure.USE_GOOGLE_MAIL intentionally excluded since it's deprecated.
2716         // Settings.Secure.WIFI_NETWORKS_AVAILABLE_NOTIFICATION_ON intentionally excluded since it's deprecated.
2717         // Settings.Secure.WIFI_NETWORKS_AVAILABLE_REPEAT_DELAY intentionally excluded since it's deprecated.
2718         // Settings.Secure.WIFI_NUM_OPEN_NETWORKS_KEPT intentionally excluded since it's deprecated.
2719         // Settings.Secure.WIFI_ON intentionally excluded since it's deprecated.
2720         // Settings.Secure.WIFI_WATCHDOG_ACCEPTABLE_PACKET_LOSS_PERCENTAGE intentionally excluded since it's deprecated.
2721         // Settings.Secure.WIFI_WATCHDOG_AP_COUNT intentionally excluded since it's deprecated.
2722         // Settings.Secure.WIFI_WATCHDOG_BACKGROUND_CHECK_DELAY_MS intentionally excluded since it's deprecated.
2723         // Settings.Secure.WIFI_WATCHDOG_BACKGROUND_CHECK_ENABLED intentionally excluded since it's deprecated.
2724         // Settings.Secure.WIFI_WATCHDOG_BACKGROUND_CHECK_TIMEOUT_MS intentionally excluded since it's deprecated.
2725         // Settings.Secure.WIFI_WATCHDOG_INITIAL_IGNORED_PING_COUNT intentionally excluded since it's deprecated.
2726         // Settings.Secure.WIFI_WATCHDOG_MAX_AP_CHECKS intentionally excluded since it's deprecated.
2727         // Settings.Secure.WIFI_WATCHDOG_ON intentionally excluded since it's deprecated.
2728         // Settings.Secure.WIFI_WATCHDOG_WATCH_LIST intentionally excluded since it's deprecated.
2729         // Settings.Secure.WIFI_WATCHDOG_PING_COUNT intentionally excluded since it's deprecated.
2730         // Settings.Secure.WIFI_WATCHDOG_PING_DELAY_MS intentionally excluded since it's deprecated.
2731         // Settings.Secure.WIFI_WATCHDOG_PING_TIMEOUT_MS intentionally excluded since it's deprecated.
2732         // Settings.Secure.WIFI_MAX_DHCP_RETRY_COUNT intentionally excluded since it's deprecated.
2733         // Settings.Secure.WIFI_MOBILE_DATA_TRANSITION_WAKELOCK_TIMEOUT_MS intentionally excluded since it's deprecated.
2734         // Settings.Secure.BACKGROUND_DATA intentionally excluded since it's deprecated.
2735         // Settings.Secure.WIFI_IDLE_MS intentionally excluded since it's deprecated.
2736 
2737 
2738         // Please insert new settings using the same order as in SecureSettingsProto.
2739     }
2740 
dumpProtoSystemSettingsLocked( @onNull ProtoOutputStream p, long fieldId, @NonNull SettingsState s)2741     private static void dumpProtoSystemSettingsLocked(
2742             @NonNull ProtoOutputStream p, long fieldId, @NonNull SettingsState s) {
2743         final long token = p.start(fieldId);
2744 
2745         s.dumpHistoricalOperations(p, SystemSettingsProto.HISTORICAL_OPERATIONS);
2746 
2747         // This uses the same order as in SystemSettingsProto.
2748 
2749         dumpSetting(s, p,
2750                 Settings.System.ADVANCED_SETTINGS,
2751                 SystemSettingsProto.ADVANCED_SETTINGS);
2752 
2753         final long alarmToken = p.start(SystemSettingsProto.ALARM);
2754         dumpSetting(s, p,
2755                 Settings.System.ALARM_ALERT,
2756                 SystemSettingsProto.Alarm.DEFAULT_URI);
2757         dumpSetting(s, p,
2758                 Settings.System.ALARM_ALERT_CACHE,
2759                 SystemSettingsProto.Alarm.ALERT_CACHE);
2760         // Settings.System.NEXT_ALARM_FORMATTED intentionally excluded since it's deprecated.
2761         p.end(alarmToken);
2762 
2763         final long bluetoothToken = p.start(SystemSettingsProto.BLUETOOTH);
2764         dumpSetting(s, p,
2765                 Settings.System.BLUETOOTH_DISCOVERABILITY,
2766                 SystemSettingsProto.Bluetooth.DISCOVERABILITY);
2767         dumpSetting(s, p,
2768                 Settings.System.BLUETOOTH_DISCOVERABILITY_TIMEOUT,
2769                 SystemSettingsProto.Bluetooth.DISCOVERABILITY_TIMEOUT_SECS);
2770         p.end(bluetoothToken);
2771 
2772         dumpSetting(s, p,
2773                 Settings.System.DISPLAY_COLOR_MODE,
2774                 SystemSettingsProto.DISPLAY_COLOR_MODE);
2775 
2776         final long devOptionsToken = p.start(SystemSettingsProto.DEVELOPER_OPTIONS);
2777         dumpSetting(s, p,
2778                 Settings.System.SHOW_TOUCHES,
2779                 SystemSettingsProto.DevOptions.SHOW_TOUCHES);
2780         dumpSetting(s, p,
2781                 Settings.System.SHOW_KEY_PRESSES,
2782                 SystemSettingsProto.DevOptions.SHOW_KEY_PRESSES);
2783         dumpSetting(s, p,
2784                 Settings.System.POINTER_LOCATION,
2785                 SystemSettingsProto.DevOptions.POINTER_LOCATION);
2786         dumpSetting(s, p,
2787                 Settings.System.WINDOW_ORIENTATION_LISTENER_LOG,
2788                 SystemSettingsProto.DevOptions.WINDOW_ORIENTATION_LISTENER_LOG);
2789         p.end(devOptionsToken);
2790 
2791         final long dtmfToneToken = p.start(SystemSettingsProto.DTMF_TONE);
2792         dumpSetting(s, p,
2793                 Settings.System.DTMF_TONE_WHEN_DIALING,
2794                 SystemSettingsProto.DtmfTone.PLAY_WHEN_DIALING);
2795         dumpSetting(s, p,
2796                 Settings.System.DTMF_TONE_TYPE_WHEN_DIALING,
2797                 SystemSettingsProto.DtmfTone.TYPE_PLAYED_WHEN_DIALING);
2798         p.end(dtmfToneToken);
2799 
2800         dumpSetting(s, p,
2801                 Settings.System.EGG_MODE,
2802                 SystemSettingsProto.EGG_MODE);
2803         dumpSetting(s, p,
2804                 Settings.System.END_BUTTON_BEHAVIOR,
2805                 SystemSettingsProto.END_BUTTON_BEHAVIOR);
2806         dumpSetting(s, p,
2807                 Settings.System.FONT_SCALE,
2808                 SystemSettingsProto.FONT_SCALE);
2809 
2810         final long hapticFeedbackToken = p.start(SystemSettingsProto.HAPTIC_FEEDBACK);
2811         dumpSetting(s, p,
2812                 Settings.System.HAPTIC_FEEDBACK_ENABLED,
2813                 SystemSettingsProto.HapticFeedback.ENABLED);
2814         dumpSetting(s, p,
2815                 Settings.System.HAPTIC_FEEDBACK_INTENSITY,
2816                 SystemSettingsProto.HapticFeedback.INTENSITY);
2817         p.end(hapticFeedbackToken);
2818 
2819         dumpSetting(s, p,
2820                 Settings.System.HEARING_AID,
2821                 SystemSettingsProto.HEARING_AID);
2822         dumpSetting(s, p,
2823                 Settings.System.LOCK_TO_APP_ENABLED,
2824                 SystemSettingsProto.LOCK_TO_APP_ENABLED);
2825 
2826         final long lockscreenToken = p.start(SystemSettingsProto.LOCKSCREEN);
2827         dumpSetting(s, p,
2828                 Settings.System.LOCKSCREEN_SOUNDS_ENABLED,
2829                 SystemSettingsProto.Lockscreen.SOUNDS_ENABLED);
2830         dumpSetting(s, p,
2831                 Settings.System.LOCKSCREEN_DISABLED,
2832                 SystemSettingsProto.Lockscreen.DISABLED);
2833         p.end(lockscreenToken);
2834 
2835         dumpSetting(s, p,
2836                 Settings.System.MEDIA_BUTTON_RECEIVER,
2837                 SystemSettingsProto.MEDIA_BUTTON_RECEIVER);
2838 
2839         final long notificationToken = p.start(SystemSettingsProto.NOTIFICATION);
2840         dumpSetting(s, p,
2841                 Settings.System.NOTIFICATION_SOUND,
2842                 SystemSettingsProto.Notification.SOUND);
2843         dumpSetting(s, p,
2844                 Settings.System.NOTIFICATION_SOUND_CACHE,
2845                 SystemSettingsProto.Notification.SOUND_CACHE);
2846         dumpSetting(s, p,
2847                 Settings.System.NOTIFICATION_LIGHT_PULSE,
2848                 SystemSettingsProto.Notification.LIGHT_PULSE);
2849         dumpSetting(s, p,
2850                 Settings.System.NOTIFICATION_VIBRATION_INTENSITY,
2851                 SystemSettingsProto.Notification.VIBRATION_INTENSITY);
2852         dumpSetting(s, p,
2853                 Settings.System.CAMERA_FLASH_NOTIFICATION,
2854                 SystemSettingsProto.Notification.CAMERA_FLASH_NOTIFICATION);
2855         dumpSetting(s, p,
2856                 Settings.System.SCREEN_FLASH_NOTIFICATION,
2857                 SystemSettingsProto.Notification.SCREEN_FLASH_NOTIFICATION);
2858         dumpSetting(s, p,
2859                 Settings.System.SCREEN_FLASH_NOTIFICATION_COLOR,
2860                 SystemSettingsProto.Notification.SCREEN_FLASH_NOTIFICATION_COLOR_GLOBAL);
2861         // Settings.System.NOTIFICATIONS_USE_RING_VOLUME intentionally excluded since it's deprecated.
2862         p.end(notificationToken);
2863 
2864         dumpSetting(s, p,
2865                 Settings.System.POINTER_SPEED,
2866                 SystemSettingsProto.POINTER_SPEED);
2867 
2868         final long ringtoneToken = p.start(SystemSettingsProto.RINGTONE);
2869         dumpSetting(s, p,
2870                 Settings.System.RINGTONE,
2871                 SystemSettingsProto.Ringtone.DEFAULT_URI);
2872         dumpSetting(s, p,
2873                 Settings.System.RINGTONE_CACHE,
2874                 SystemSettingsProto.Ringtone.CACHE);
2875         p.end(ringtoneToken);
2876 
2877         final long rotationToken = p.start(SystemSettingsProto.ROTATION);
2878         dumpSetting(s, p,
2879                 Settings.System.ACCELEROMETER_ROTATION,
2880                 SystemSettingsProto.Rotation.ACCELEROMETER_ROTATION);
2881         dumpSetting(s, p,
2882                 Settings.System.USER_ROTATION,
2883                 SystemSettingsProto.Rotation.USER_ROTATION);
2884         dumpSetting(s, p,
2885                 Settings.System.HIDE_ROTATION_LOCK_TOGGLE_FOR_ACCESSIBILITY,
2886                 SystemSettingsProto.Rotation.HIDE_ROTATION_LOCK_TOGGLE_FOR_ACCESSIBILITY);
2887         p.end(rotationToken);
2888 
2889         final long screenToken = p.start(SystemSettingsProto.SCREEN);
2890         dumpSetting(s, p,
2891                 Settings.System.SCREEN_OFF_TIMEOUT,
2892                 SystemSettingsProto.Screen.OFF_TIMEOUT);
2893         dumpSetting(s, p,
2894                 Settings.System.SCREEN_BRIGHTNESS,
2895                 SystemSettingsProto.Screen.BRIGHTNESS);
2896         dumpSetting(s, p,
2897                 Settings.System.SCREEN_BRIGHTNESS_MODE,
2898                 SystemSettingsProto.Screen.BRIGHTNESS_MODE);
2899         dumpSetting(s, p,
2900                 Settings.System.SCREEN_AUTO_BRIGHTNESS_ADJ,
2901                 SystemSettingsProto.Screen.AUTO_BRIGHTNESS_ADJ);
2902         dumpSetting(s, p,
2903                 Settings.System.SCREEN_BRIGHTNESS_FLOAT,
2904                 SystemSettingsProto.Screen.BRIGHTNESS_FLOAT);
2905         p.end(screenToken);
2906 
2907         dumpSetting(s, p,
2908                 Settings.System.SETUP_WIZARD_HAS_RUN,
2909                 SystemSettingsProto.SETUP_WIZARD_HAS_RUN);
2910         dumpSetting(s, p,
2911                 Settings.System.SHOW_BATTERY_PERCENT,
2912                 SystemSettingsProto.SHOW_BATTERY_PERCENT);
2913         dumpSetting(s, p,
2914                 Settings.System.SHOW_GTALK_SERVICE_STATUS,
2915                 SystemSettingsProto.SHOW_GTALK_SERVICE_STATUS);
2916         // Settings.System.SHOW_PROCESSES intentionally excluded since it's deprecated.
2917         // Settings.System.SHOW_WEB_SUGGESTIONS intentionally excluded since it's deprecated.
2918 
2919         final long sipToken = p.start(SystemSettingsProto.SIP);
2920         dumpSetting(s, p,
2921                 Settings.System.SIP_RECEIVE_CALLS,
2922                 SystemSettingsProto.Sip.RECEIVE_CALLS);
2923         dumpSetting(s, p,
2924                 Settings.System.SIP_CALL_OPTIONS,
2925                 SystemSettingsProto.Sip.CALL_OPTIONS);
2926         dumpSetting(s, p,
2927                 Settings.System.SIP_ALWAYS,
2928                 SystemSettingsProto.Sip.ALWAYS);
2929         dumpSetting(s, p,
2930                 Settings.System.SIP_ADDRESS_ONLY,
2931                 SystemSettingsProto.Sip.ADDRESS_ONLY);
2932         // Settings.System.SIP_ASK_ME_EACH_TIME intentionally excluded since it's deprecated.
2933         p.end(sipToken);
2934 
2935         dumpSetting(s, p,
2936                 Settings.System.SOUND_EFFECTS_ENABLED,
2937                 SystemSettingsProto.SOUND_EFFECTS_ENABLED);
2938         // Settings.System.POWER_SOUNDS_ENABLED intentionally excluded since it's deprecated.
2939         // Settings.System.DOCK_SOUNDS_ENABLED intentionally excluded since it's deprecated.
2940         // Settings.System.LOW_BATTERY_SOUND intentionally excluded since it's deprecated.
2941         // Settings.System.DESK_DOCK_SOUND intentionally excluded since it's deprecated.
2942         // Settings.System.DESK_UNDOCK_SOUND intentionally excluded since it's deprecated.
2943         // Settings.System.CAR_DOCK_SOUND intentionally excluded since it's deprecated.
2944         // Settings.System.CAR_UNDOCK_SOUND intentionally excluded since it's deprecated.
2945         // Settings.System.LOCK_SOUND intentionally excluded since it's deprecated.
2946         // Settings.System.UNLOCK_SOUND intentionally excluded since it's deprecated.
2947         dumpSetting(s, p,
2948                 Settings.System.SYSTEM_LOCALES,
2949                 SystemSettingsProto.SYSTEM_LOCALES);
2950 
2951         final long textToken = p.start(SystemSettingsProto.TEXT);
2952         dumpSetting(s, p,
2953                 Settings.System.TEXT_AUTO_REPLACE,
2954                 SystemSettingsProto.Text.AUTO_REPLACE);
2955         dumpSetting(s, p,
2956                 Settings.System.TEXT_AUTO_CAPS,
2957                 SystemSettingsProto.Text.AUTO_CAPS);
2958         dumpSetting(s, p,
2959                 Settings.System.TEXT_AUTO_PUNCTUATE,
2960                 SystemSettingsProto.Text.AUTO_PUNCTUATE);
2961         dumpSetting(s, p,
2962                 Settings.System.TEXT_SHOW_PASSWORD,
2963                 SystemSettingsProto.Text.SHOW_PASSWORD);
2964         p.end(textToken);
2965 
2966         // Settings.System.AUTO_TIME intentionally excluded since it's deprecated.
2967         // Settings.System.AUTO_TIME_ZONE intentionally excluded since it's deprecated.
2968         dumpSetting(s, p,
2969                 Settings.System.TIME_12_24,
2970                 SystemSettingsProto.TIME_12_24);
2971 
2972         final long touchpadToken = p.start(SystemSettingsProto.TOUCHPAD);
2973         dumpSetting(s, p,
2974                 Settings.System.TOUCHPAD_NATURAL_SCROLLING,
2975                 SystemSettingsProto.Touchpad.NATURAL_SCROLLING);
2976         dumpSetting(s, p,
2977                 Settings.System.TOUCHPAD_POINTER_SPEED,
2978                 SystemSettingsProto.Touchpad.POINTER_SPEED);
2979         dumpSetting(s, p,
2980                 Settings.System.TOUCHPAD_RIGHT_CLICK_ZONE,
2981                 SystemSettingsProto.Touchpad.RIGHT_CLICK_ZONE);
2982         dumpSetting(s, p,
2983                 Settings.System.TOUCHPAD_TAP_TO_CLICK,
2984                 SystemSettingsProto.Touchpad.TAP_TO_CLICK);
2985         p.end(touchpadToken);
2986 
2987         dumpSetting(s, p,
2988                 Settings.System.TTY_MODE,
2989                 SystemSettingsProto.TTY_MODE);
2990 
2991         final long vibrateToken = p.start(SystemSettingsProto.VIBRATE);
2992         dumpSetting(s, p,
2993                 Settings.System.VIBRATE_ON,
2994                 SystemSettingsProto.Vibrate.ON);
2995         dumpSetting(s, p,
2996                 Settings.System.VIBRATE_INPUT_DEVICES,
2997                 SystemSettingsProto.Vibrate.INPUT_DEVICES);
2998         dumpSetting(s, p,
2999                 Settings.System.VIBRATE_IN_SILENT,
3000                 SystemSettingsProto.Vibrate.IN_SILENT);
3001         dumpSetting(s, p,
3002                 Settings.System.VIBRATE_WHEN_RINGING,
3003                 SystemSettingsProto.Vibrate.WHEN_RINGING);
3004 
3005         // NOTIFICATION_VIBRATION_INTENSITY is already logged at Notification.vibration_intensity
3006         // HAPTIC_FEEDBACK_INTENSITY is already logged at HapticFeedback.intensity
3007         dumpSetting(s, p,
3008                 Settings.System.ALARM_VIBRATION_INTENSITY,
3009                 SystemSettingsProto.Vibrate.ALARM_INTENSITY);
3010         dumpSetting(s, p,
3011                 Settings.System.MEDIA_VIBRATION_INTENSITY,
3012                 SystemSettingsProto.Vibrate.MEDIA_INTENSITY);
3013         dumpSetting(s, p,
3014                 Settings.System.RING_VIBRATION_INTENSITY,
3015                 SystemSettingsProto.Vibrate.RING_INTENSITY);
3016         p.end(vibrateToken);
3017 
3018         final long volumeToken = p.start(SystemSettingsProto.VOLUME);
3019         dumpSetting(s, p,
3020                 Settings.System.VOLUME_RING,
3021                 SystemSettingsProto.Volume.RING);
3022         dumpSetting(s, p,
3023                 Settings.System.VOLUME_SYSTEM,
3024                 SystemSettingsProto.Volume.SYSTEM);
3025         dumpSetting(s, p,
3026                 Settings.System.VOLUME_VOICE,
3027                 SystemSettingsProto.Volume.VOICE);
3028         dumpSetting(s, p,
3029                 Settings.System.VOLUME_MUSIC,
3030                 SystemSettingsProto.Volume.MUSIC);
3031         dumpSetting(s, p,
3032                 Settings.System.VOLUME_ALARM,
3033                 SystemSettingsProto.Volume.ALARM);
3034         dumpSetting(s, p,
3035                 Settings.System.VOLUME_NOTIFICATION,
3036                 SystemSettingsProto.Volume.NOTIFICATION);
3037         dumpSetting(s, p,
3038                 Settings.System.VOLUME_BLUETOOTH_SCO,
3039                 SystemSettingsProto.Volume.BLUETOOTH_SCO);
3040         dumpSetting(s, p,
3041                 Settings.System.VOLUME_ACCESSIBILITY,
3042                 SystemSettingsProto.Volume.ACCESSIBILITY);
3043         dumpSetting(s, p,
3044                 Settings.System.VOLUME_MASTER,
3045                 SystemSettingsProto.Volume.MASTER);
3046         dumpSetting(s, p,
3047                 Settings.System.MASTER_MONO,
3048                 SystemSettingsProto.Volume.MASTER_MONO);
3049         dumpSetting(s, p,
3050                 Settings.System.MODE_RINGER_STREAMS_AFFECTED,
3051                 SystemSettingsProto.Volume.MODE_RINGER_STREAMS_AFFECTED);
3052         dumpSetting(s, p,
3053                 Settings.System.MUTE_STREAMS_AFFECTED,
3054                 SystemSettingsProto.Volume.MUTE_STREAMS_AFFECTED);
3055         dumpSetting(s, p,
3056                 Settings.System.MASTER_BALANCE,
3057                 SystemSettingsProto.Volume.MASTER_BALANCE);
3058         p.end(volumeToken);
3059 
3060         dumpSetting(s, p,
3061                 Settings.System.WHEN_TO_MAKE_WIFI_CALLS,
3062                 SystemSettingsProto.WHEN_TO_MAKE_WIFI_CALLS);
3063 
3064         dumpSetting(s, p,
3065                 Settings.System.APPLY_RAMPING_RINGER,
3066                 SystemSettingsProto.APPLY_RAMPING_RINGER);
3067 
3068         // Please insert new settings using the same order as in SecureSettingsProto.
3069 
3070         // The rest of the settings were moved to Settings.Secure, and are thus excluded here since
3071         // they're deprecated from Settings.System.
3072 
3073         // Settings.System.STAY_ON_WHILE_PLUGGED_IN intentionally excluded since it's deprecated.
3074         // Settings.System.AIRPLANE_MODE_ON intentionally excluded since it's deprecated.
3075         // Settings.System.RADIO_BLUETOOTH intentionally excluded since it's just a constant.
3076         // Settings.System.RADIO_WIFI intentionally excluded since it's just a constant.
3077         // Settings.System.RADIO_WIMAX intentionally excluded since it's just a constant.
3078         // Settings.System.RADIO_CELL intentionally excluded since it's just a constant.
3079         // Settings.System.RADIO_NFC intentionally excluded since it's just a constant.
3080         // Settings.System.AIRPLANE_MODE_RADIOS intentionally excluded since it's deprecated.
3081         // Settings.System.AIRPLANE_MODE_TOGGLABLE_RADIOS intentionally excluded since it's deprecated.
3082         // Settings.System.WIFI_SLEEP_POLICY intentionally excluded since it's deprecated.
3083         // Settings.System.MODE_RINGER intentionally excluded since it's deprecated.
3084         // Settings.System.WIFI_USE_STATIC_IP intentionally excluded since it's deprecated.
3085         // Settings.System.WIFI_STATIC_IP intentionally excluded since it's deprecated.
3086         // Settings.System.WIFI_STATIC_GATEWAY intentionally excluded since it's deprecated.
3087         // Settings.System.WIFI_STATIC_NETMASK intentionally excluded since it's deprecated.
3088         // Settings.System.WIFI_STATIC_DNS1 intentionally excluded since it's deprecated.
3089         // Settings.System.WIFI_STATIC_DNS2 intentionally excluded since it's deprecated.
3090         // Settings.System.LOCK_PATTERN_ENABLED intentionally excluded since it's deprecated.
3091         // Settings.System.LOCK_PATTERN_VISIBLE intentionally excluded since it's deprecated.
3092         // Settings.System.LOCK_PATTERN_TACTILE_FEEDBACK_ENABLED intentionally excluded since it's deprecated.
3093         // Settings.System.DEBUG_APP intentionally excluded since it's deprecated.
3094         // Settings.System.WAIT_FOR_DEBUGGER intentionally excluded since it's deprecated.
3095         // Settings.System.DIM_SCREEN intentionally excluded since it's deprecated.
3096         // Settings.System.ALWAYS_FINISH_ACTIVITIES intentionally excluded since it's deprecated.
3097         // Settings.System.APPEND_FOR_LAST_AUDIBLE intentionally excluded since it hasn't been used since API 2.
3098         // Settings.System.WALLPAPER_ACTIVITY intentionally excluded since it's deprecated.
3099         // Settings.System.WINDOW_ANIMATION_SCALE intentionally excluded since it's deprecated.
3100         // Settings.System.TRANSITION_ANIMATION_SCALE intentionally excluded since it's deprecated.
3101         // Settings.System.ANIMATOR_ANIMATION_SCALE intentionally excluded since it's deprecated.
3102 
3103         // The rest of the settings were moved to Settings.Secure, and are thus excluded here since
3104         // they're deprecated from Settings.System.
3105 
3106         // Please insert new settings using the same order as in SecureSettingsProto.
3107         p.end(token);
3108         // Please insert new settings using the same order as in SecureSettingsProto.
3109     }
3110 }
3111