blob: 55f7a0a92c88c6b82767a87cc786b6c74945aa2f [file] [log] [blame]
Eugene Suslad72c3972016-12-27 15:49:30 -08001/*
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
17package com.android.providers.settings;
18
19import android.annotation.NonNull;
20import android.os.UserHandle;
21import android.provider.Settings;
22import android.providers.settings.GlobalSettingsProto;
23import android.providers.settings.SecureSettingsProto;
24import android.providers.settings.SettingProto;
25import android.providers.settings.SettingsServiceDumpProto;
26import android.providers.settings.SystemSettingsProto;
27import android.providers.settings.UserSettingsProto;
28import android.util.SparseBooleanArray;
29import android.util.proto.ProtoOutputStream;
30
31/** @hide */
32class SettingsProtoDumpUtil {
33 private SettingsProtoDumpUtil() {}
34
35 static void dumpProtoLocked(SettingsProvider.SettingsRegistry settingsRegistry,
36 ProtoOutputStream proto) {
37 // Global settings
38 SettingsState globalSettings = settingsRegistry.getSettingsLocked(
39 SettingsProvider.SETTINGS_TYPE_GLOBAL, UserHandle.USER_SYSTEM);
Kweku Adamsb0886f32017-10-31 15:32:09 -070040 if (globalSettings != null) {
41 long globalSettingsToken = proto.start(SettingsServiceDumpProto.GLOBAL_SETTINGS);
42 dumpProtoGlobalSettingsLocked(globalSettings, proto);
43 proto.end(globalSettingsToken);
44 }
Eugene Suslad72c3972016-12-27 15:49:30 -080045
46 // Per-user settings
47 SparseBooleanArray users = settingsRegistry.getKnownUsersLocked();
48 final int userCount = users.size();
49 for (int i = 0; i < userCount; i++) {
50 long userSettingsToken = proto.start(SettingsServiceDumpProto.USER_SETTINGS);
51 dumpProtoUserSettingsLocked(
52 settingsRegistry, UserHandle.of(users.keyAt(i)), proto);
53 proto.end(userSettingsToken);
54 }
55 }
56
57 /**
58 * Dump all settings of a user as a proto buf.
59 *
60 * @param settingsRegistry
61 * @param user The user the settings should be dumped for
62 * @param proto The proto buf stream to dump to
63 */
64 private static void dumpProtoUserSettingsLocked(
65 SettingsProvider.SettingsRegistry settingsRegistry,
66 @NonNull UserHandle user,
67 @NonNull ProtoOutputStream proto) {
68 proto.write(UserSettingsProto.USER_ID, user.getIdentifier());
69
70 SettingsState secureSettings = settingsRegistry.getSettingsLocked(
71 SettingsProvider.SETTINGS_TYPE_SECURE, user.getIdentifier());
Kweku Adamsb0886f32017-10-31 15:32:09 -070072 if (secureSettings != null) {
73 long secureSettingsToken = proto.start(UserSettingsProto.SECURE_SETTINGS);
74 dumpProtoSecureSettingsLocked(secureSettings, proto);
75 proto.end(secureSettingsToken);
76 }
Eugene Suslad72c3972016-12-27 15:49:30 -080077
78 SettingsState systemSettings = settingsRegistry.getSettingsLocked(
79 SettingsProvider.SETTINGS_TYPE_SYSTEM, user.getIdentifier());
Kweku Adamsb0886f32017-10-31 15:32:09 -070080 if (systemSettings != null) {
81 long systemSettingsToken = proto.start(UserSettingsProto.SYSTEM_SETTINGS);
82 dumpProtoSystemSettingsLocked(systemSettings, proto);
83 proto.end(systemSettingsToken);
84 }
Eugene Suslad72c3972016-12-27 15:49:30 -080085 }
86
87 private static void dumpProtoGlobalSettingsLocked(
88 @NonNull SettingsState s, @NonNull ProtoOutputStream p) {
Kweku Adamsb0886f32017-10-31 15:32:09 -070089 s.dumpHistoricalOperations(p, GlobalSettingsProto.HISTORICAL_OPERATIONS);
90
91 // This uses the same order as in Settings.Global.
Eugene Suslad72c3972016-12-27 15:49:30 -080092 dumpSetting(s, p,
93 Settings.Global.ADD_USERS_WHEN_LOCKED,
94 GlobalSettingsProto.ADD_USERS_WHEN_LOCKED);
95 dumpSetting(s, p,
96 Settings.Global.ENABLE_ACCESSIBILITY_GLOBAL_GESTURE_ENABLED,
97 GlobalSettingsProto.ENABLE_ACCESSIBILITY_GLOBAL_GESTURE_ENABLED);
98 dumpSetting(s, p,
99 Settings.Global.AIRPLANE_MODE_ON,
100 GlobalSettingsProto.AIRPLANE_MODE_ON);
101 dumpSetting(s, p,
102 Settings.Global.THEATER_MODE_ON,
103 GlobalSettingsProto.THEATER_MODE_ON);
104 dumpSetting(s, p,
105 Settings.Global.RADIO_BLUETOOTH,
106 GlobalSettingsProto.RADIO_BLUETOOTH);
107 dumpSetting(s, p,
108 Settings.Global.RADIO_WIFI,
109 GlobalSettingsProto.RADIO_WIFI);
110 dumpSetting(s, p,
111 Settings.Global.RADIO_WIMAX,
112 GlobalSettingsProto.RADIO_WIMAX);
113 dumpSetting(s, p,
114 Settings.Global.RADIO_CELL,
115 GlobalSettingsProto.RADIO_CELL);
116 dumpSetting(s, p,
117 Settings.Global.RADIO_NFC,
118 GlobalSettingsProto.RADIO_NFC);
119 dumpSetting(s, p,
120 Settings.Global.AIRPLANE_MODE_RADIOS,
121 GlobalSettingsProto.AIRPLANE_MODE_RADIOS);
122 dumpSetting(s, p,
123 Settings.Global.AIRPLANE_MODE_TOGGLEABLE_RADIOS,
124 GlobalSettingsProto.AIRPLANE_MODE_TOGGLEABLE_RADIOS);
125 dumpSetting(s, p,
Kweku Adamsb0886f32017-10-31 15:32:09 -0700126 Settings.Global.BLUETOOTH_CLASS_OF_DEVICE,
127 GlobalSettingsProto.BLUETOOTH_CLASS_OF_DEVICE);
128 dumpSetting(s, p,
Eugene Suslad72c3972016-12-27 15:49:30 -0800129 Settings.Global.BLUETOOTH_DISABLED_PROFILES,
130 GlobalSettingsProto.BLUETOOTH_DISABLED_PROFILES);
131 dumpSetting(s, p,
132 Settings.Global.BLUETOOTH_INTEROPERABILITY_LIST,
133 GlobalSettingsProto.BLUETOOTH_INTEROPERABILITY_LIST);
134 dumpSetting(s, p,
135 Settings.Global.WIFI_SLEEP_POLICY,
136 GlobalSettingsProto.WIFI_SLEEP_POLICY);
137 dumpSetting(s, p,
138 Settings.Global.AUTO_TIME,
139 GlobalSettingsProto.AUTO_TIME);
140 dumpSetting(s, p,
141 Settings.Global.AUTO_TIME_ZONE,
142 GlobalSettingsProto.AUTO_TIME_ZONE);
143 dumpSetting(s, p,
144 Settings.Global.CAR_DOCK_SOUND,
145 GlobalSettingsProto.CAR_DOCK_SOUND);
146 dumpSetting(s, p,
147 Settings.Global.CAR_UNDOCK_SOUND,
148 GlobalSettingsProto.CAR_UNDOCK_SOUND);
149 dumpSetting(s, p,
150 Settings.Global.DESK_DOCK_SOUND,
151 GlobalSettingsProto.DESK_DOCK_SOUND);
152 dumpSetting(s, p,
153 Settings.Global.DESK_UNDOCK_SOUND,
154 GlobalSettingsProto.DESK_UNDOCK_SOUND);
155 dumpSetting(s, p,
156 Settings.Global.DOCK_SOUNDS_ENABLED,
157 GlobalSettingsProto.DOCK_SOUNDS_ENABLED);
158 dumpSetting(s, p,
159 Settings.Global.DOCK_SOUNDS_ENABLED_WHEN_ACCESSIBILITY,
160 GlobalSettingsProto.DOCK_SOUNDS_ENABLED_WHEN_ACCESSIBILITY);
161 dumpSetting(s, p,
162 Settings.Global.LOCK_SOUND,
163 GlobalSettingsProto.LOCK_SOUND);
164 dumpSetting(s, p,
165 Settings.Global.UNLOCK_SOUND,
166 GlobalSettingsProto.UNLOCK_SOUND);
167 dumpSetting(s, p,
168 Settings.Global.TRUSTED_SOUND,
169 GlobalSettingsProto.TRUSTED_SOUND);
170 dumpSetting(s, p,
171 Settings.Global.LOW_BATTERY_SOUND,
172 GlobalSettingsProto.LOW_BATTERY_SOUND);
173 dumpSetting(s, p,
174 Settings.Global.POWER_SOUNDS_ENABLED,
175 GlobalSettingsProto.POWER_SOUNDS_ENABLED);
176 dumpSetting(s, p,
177 Settings.Global.WIRELESS_CHARGING_STARTED_SOUND,
178 GlobalSettingsProto.WIRELESS_CHARGING_STARTED_SOUND);
179 dumpSetting(s, p,
180 Settings.Global.CHARGING_SOUNDS_ENABLED,
181 GlobalSettingsProto.CHARGING_SOUNDS_ENABLED);
182 dumpSetting(s, p,
183 Settings.Global.STAY_ON_WHILE_PLUGGED_IN,
184 GlobalSettingsProto.STAY_ON_WHILE_PLUGGED_IN);
185 dumpSetting(s, p,
186 Settings.Global.BUGREPORT_IN_POWER_MENU,
187 GlobalSettingsProto.BUGREPORT_IN_POWER_MENU);
188 dumpSetting(s, p,
189 Settings.Global.ADB_ENABLED,
190 GlobalSettingsProto.ADB_ENABLED);
191 dumpSetting(s, p,
192 Settings.Global.DEBUG_VIEW_ATTRIBUTES,
193 GlobalSettingsProto.DEBUG_VIEW_ATTRIBUTES);
194 dumpSetting(s, p,
195 Settings.Global.ASSISTED_GPS_ENABLED,
196 GlobalSettingsProto.ASSISTED_GPS_ENABLED);
197 dumpSetting(s, p,
198 Settings.Global.BLUETOOTH_ON,
199 GlobalSettingsProto.BLUETOOTH_ON);
200 dumpSetting(s, p,
201 Settings.Global.CDMA_CELL_BROADCAST_SMS,
202 GlobalSettingsProto.CDMA_CELL_BROADCAST_SMS);
203 dumpSetting(s, p,
204 Settings.Global.CDMA_ROAMING_MODE,
205 GlobalSettingsProto.CDMA_ROAMING_MODE);
206 dumpSetting(s, p,
207 Settings.Global.CDMA_SUBSCRIPTION_MODE,
208 GlobalSettingsProto.CDMA_SUBSCRIPTION_MODE);
Kweku Adamsb0886f32017-10-31 15:32:09 -0700209 // Settings.Global.DEFAULT_RESTRICT_BACKGROUND_DATA intentionally excluded.
Eugene Suslad72c3972016-12-27 15:49:30 -0800210 dumpSetting(s, p,
211 Settings.Global.DATA_ACTIVITY_TIMEOUT_MOBILE,
212 GlobalSettingsProto.DATA_ACTIVITY_TIMEOUT_MOBILE);
213 dumpSetting(s, p,
214 Settings.Global.DATA_ACTIVITY_TIMEOUT_WIFI,
215 GlobalSettingsProto.DATA_ACTIVITY_TIMEOUT_WIFI);
216 dumpSetting(s, p,
217 Settings.Global.DATA_ROAMING,
218 GlobalSettingsProto.DATA_ROAMING);
219 dumpSetting(s, p,
220 Settings.Global.MDC_INITIAL_MAX_RETRY,
221 GlobalSettingsProto.MDC_INITIAL_MAX_RETRY);
222 dumpSetting(s, p,
223 Settings.Global.FORCE_ALLOW_ON_EXTERNAL,
224 GlobalSettingsProto.FORCE_ALLOW_ON_EXTERNAL);
Kweku Adamsb0886f32017-10-31 15:32:09 -0700225 // Settings.Global.DEFAULT_SM_DP_PLUS intentionally excluded.
226 dumpSetting(s, p,
227 Settings.Global.EUICC_PROVISIONED,
228 GlobalSettingsProto.EUICC_PROVISIONED);
Eugene Suslad72c3972016-12-27 15:49:30 -0800229 dumpSetting(s, p,
230 Settings.Global.DEVELOPMENT_FORCE_RESIZABLE_ACTIVITIES,
231 GlobalSettingsProto.DEVELOPMENT_FORCE_RESIZABLE_ACTIVITIES);
232 dumpSetting(s, p,
233 Settings.Global.DEVELOPMENT_ENABLE_FREEFORM_WINDOWS_SUPPORT,
234 GlobalSettingsProto.DEVELOPMENT_ENABLE_FREEFORM_WINDOWS_SUPPORT);
235 dumpSetting(s, p,
236 Settings.Global.DEVELOPMENT_SETTINGS_ENABLED,
237 GlobalSettingsProto.DEVELOPMENT_SETTINGS_ENABLED);
238 dumpSetting(s, p,
239 Settings.Global.DEVICE_PROVISIONED,
240 GlobalSettingsProto.DEVICE_PROVISIONED);
241 dumpSetting(s, p,
242 Settings.Global.DEVICE_PROVISIONING_MOBILE_DATA_ENABLED,
243 GlobalSettingsProto.DEVICE_PROVISIONING_MOBILE_DATA_ENABLED);
244 dumpSetting(s, p,
245 Settings.Global.DISPLAY_SIZE_FORCED,
246 GlobalSettingsProto.DISPLAY_SIZE_FORCED);
247 dumpSetting(s, p,
248 Settings.Global.DISPLAY_SCALING_FORCE,
249 GlobalSettingsProto.DISPLAY_SCALING_FORCE);
250 dumpSetting(s, p,
251 Settings.Global.DOWNLOAD_MAX_BYTES_OVER_MOBILE,
252 GlobalSettingsProto.DOWNLOAD_MAX_BYTES_OVER_MOBILE);
253 dumpSetting(s, p,
254 Settings.Global.DOWNLOAD_RECOMMENDED_MAX_BYTES_OVER_MOBILE,
255 GlobalSettingsProto.DOWNLOAD_RECOMMENDED_MAX_BYTES_OVER_MOBILE);
Kweku Adamsb0886f32017-10-31 15:32:09 -0700256 // Settings.Global.INSTALL_NON_MARKET_APPS intentionally excluded since it's deprecated.
Eugene Suslad72c3972016-12-27 15:49:30 -0800257 dumpSetting(s, p,
258 Settings.Global.HDMI_CONTROL_ENABLED,
259 GlobalSettingsProto.HDMI_CONTROL_ENABLED);
260 dumpSetting(s, p,
Donghyun Choc1fa9af2016-12-27 18:31:09 +0900261 Settings.Global.HDMI_SYSTEM_AUDIO_CONTROL_ENABLED,
262 GlobalSettingsProto.HDMI_SYSTEM_AUDIO_CONTROL_ENABLED);
Eugene Suslad72c3972016-12-27 15:49:30 -0800263 dumpSetting(s, p,
264 Settings.Global.HDMI_CONTROL_AUTO_WAKEUP_ENABLED,
265 GlobalSettingsProto.HDMI_CONTROL_AUTO_WAKEUP_ENABLED);
266 dumpSetting(s, p,
267 Settings.Global.HDMI_CONTROL_AUTO_DEVICE_OFF_ENABLED,
268 GlobalSettingsProto.HDMI_CONTROL_AUTO_DEVICE_OFF_ENABLED);
269 dumpSetting(s, p,
Kweku Adamsb0886f32017-10-31 15:32:09 -0700270 Settings.Global.LOCATION_BACKGROUND_THROTTLE_INTERVAL_MS,
271 GlobalSettingsProto.LOCATION_BACKGROUND_THROTTLE_INTERVAL_MS);
272 dumpSetting(s, p,
273 Settings.Global.LOCATION_BACKGROUND_THROTTLE_PROXIMITY_ALERT_INTERVAL_MS,
274 GlobalSettingsProto.LOCATION_BACKGROUND_THROTTLE_PROXIMITY_ALERT_INTERVAL_MS);
275 dumpSetting(s, p,
276 Settings.Global.LOCATION_BACKGROUND_THROTTLE_PACKAGE_WHITELIST,
277 GlobalSettingsProto.LOCATION_BACKGROUND_THROTTLE_PACKAGE_WHITELIST);
278 dumpSetting(s, p,
279 Settings.Global.WIFI_SCAN_BACKGROUND_THROTTLE_INTERVAL_MS,
280 GlobalSettingsProto.WIFI_SCAN_BACKGROUND_THROTTLE_INTERVAL_MS);
281 dumpSetting(s, p,
282 Settings.Global.WIFI_SCAN_BACKGROUND_THROTTLE_PACKAGE_WHITELIST,
283 GlobalSettingsProto.WIFI_SCAN_BACKGROUND_THROTTLE_PACKAGE_WHITELIST);
284 dumpSetting(s, p,
Eugene Suslad72c3972016-12-27 15:49:30 -0800285 Settings.Global.MHL_INPUT_SWITCHING_ENABLED,
286 GlobalSettingsProto.MHL_INPUT_SWITCHING_ENABLED);
287 dumpSetting(s, p,
288 Settings.Global.MHL_POWER_CHARGE_ENABLED,
289 GlobalSettingsProto.MHL_POWER_CHARGE_ENABLED);
290 dumpSetting(s, p,
291 Settings.Global.MOBILE_DATA,
292 GlobalSettingsProto.MOBILE_DATA);
293 dumpSetting(s, p,
294 Settings.Global.MOBILE_DATA_ALWAYS_ON,
295 GlobalSettingsProto.MOBILE_DATA_ALWAYS_ON);
296 dumpSetting(s, p,
297 Settings.Global.CONNECTIVITY_METRICS_BUFFER_SIZE,
298 GlobalSettingsProto.CONNECTIVITY_METRICS_BUFFER_SIZE);
299 dumpSetting(s, p,
300 Settings.Global.NETSTATS_ENABLED,
301 GlobalSettingsProto.NETSTATS_ENABLED);
302 dumpSetting(s, p,
303 Settings.Global.NETSTATS_POLL_INTERVAL,
304 GlobalSettingsProto.NETSTATS_POLL_INTERVAL);
305 dumpSetting(s, p,
306 Settings.Global.NETSTATS_TIME_CACHE_MAX_AGE,
307 GlobalSettingsProto.NETSTATS_TIME_CACHE_MAX_AGE);
308 dumpSetting(s, p,
309 Settings.Global.NETSTATS_GLOBAL_ALERT_BYTES,
310 GlobalSettingsProto.NETSTATS_GLOBAL_ALERT_BYTES);
311 dumpSetting(s, p,
312 Settings.Global.NETSTATS_SAMPLE_ENABLED,
313 GlobalSettingsProto.NETSTATS_SAMPLE_ENABLED);
314 dumpSetting(s, p,
Kweku Adamsb0886f32017-10-31 15:32:09 -0700315 Settings.Global.NETSTATS_AUGMENT_ENABLED,
316 GlobalSettingsProto.NETSTATS_AUGMENT_ENABLED);
317 dumpSetting(s, p,
Eugene Suslad72c3972016-12-27 15:49:30 -0800318 Settings.Global.NETSTATS_DEV_BUCKET_DURATION,
319 GlobalSettingsProto.NETSTATS_DEV_BUCKET_DURATION);
320 dumpSetting(s, p,
321 Settings.Global.NETSTATS_DEV_PERSIST_BYTES,
322 GlobalSettingsProto.NETSTATS_DEV_PERSIST_BYTES);
323 dumpSetting(s, p,
324 Settings.Global.NETSTATS_DEV_ROTATE_AGE,
325 GlobalSettingsProto.NETSTATS_DEV_ROTATE_AGE);
326 dumpSetting(s, p,
327 Settings.Global.NETSTATS_DEV_DELETE_AGE,
328 GlobalSettingsProto.NETSTATS_DEV_DELETE_AGE);
329 dumpSetting(s, p,
330 Settings.Global.NETSTATS_UID_BUCKET_DURATION,
331 GlobalSettingsProto.NETSTATS_UID_BUCKET_DURATION);
332 dumpSetting(s, p,
333 Settings.Global.NETSTATS_UID_PERSIST_BYTES,
334 GlobalSettingsProto.NETSTATS_UID_PERSIST_BYTES);
335 dumpSetting(s, p,
336 Settings.Global.NETSTATS_UID_ROTATE_AGE,
337 GlobalSettingsProto.NETSTATS_UID_ROTATE_AGE);
338 dumpSetting(s, p,
339 Settings.Global.NETSTATS_UID_DELETE_AGE,
340 GlobalSettingsProto.NETSTATS_UID_DELETE_AGE);
341 dumpSetting(s, p,
342 Settings.Global.NETSTATS_UID_TAG_BUCKET_DURATION,
343 GlobalSettingsProto.NETSTATS_UID_TAG_BUCKET_DURATION);
344 dumpSetting(s, p,
345 Settings.Global.NETSTATS_UID_TAG_PERSIST_BYTES,
346 GlobalSettingsProto.NETSTATS_UID_TAG_PERSIST_BYTES);
347 dumpSetting(s, p,
348 Settings.Global.NETSTATS_UID_TAG_ROTATE_AGE,
349 GlobalSettingsProto.NETSTATS_UID_TAG_ROTATE_AGE);
350 dumpSetting(s, p,
351 Settings.Global.NETSTATS_UID_TAG_DELETE_AGE,
352 GlobalSettingsProto.NETSTATS_UID_TAG_DELETE_AGE);
353 dumpSetting(s, p,
354 Settings.Global.NETWORK_PREFERENCE,
355 GlobalSettingsProto.NETWORK_PREFERENCE);
356 dumpSetting(s, p,
357 Settings.Global.NETWORK_SCORER_APP,
358 GlobalSettingsProto.NETWORK_SCORER_APP);
359 dumpSetting(s, p,
360 Settings.Global.NITZ_UPDATE_DIFF,
361 GlobalSettingsProto.NITZ_UPDATE_DIFF);
362 dumpSetting(s, p,
363 Settings.Global.NITZ_UPDATE_SPACING,
364 GlobalSettingsProto.NITZ_UPDATE_SPACING);
365 dumpSetting(s, p,
366 Settings.Global.NTP_SERVER,
367 GlobalSettingsProto.NTP_SERVER);
368 dumpSetting(s, p,
369 Settings.Global.NTP_TIMEOUT,
370 GlobalSettingsProto.NTP_TIMEOUT);
371 dumpSetting(s, p,
372 Settings.Global.STORAGE_BENCHMARK_INTERVAL,
373 GlobalSettingsProto.STORAGE_BENCHMARK_INTERVAL);
374 dumpSetting(s, p,
375 Settings.Global.DNS_RESOLVER_SAMPLE_VALIDITY_SECONDS,
376 GlobalSettingsProto.DNS_RESOLVER_SAMPLE_VALIDITY_SECONDS);
377 dumpSetting(s, p,
378 Settings.Global.DNS_RESOLVER_SUCCESS_THRESHOLD_PERCENT,
379 GlobalSettingsProto.DNS_RESOLVER_SUCCESS_THRESHOLD_PERCENT);
380 dumpSetting(s, p,
381 Settings.Global.DNS_RESOLVER_MIN_SAMPLES,
382 GlobalSettingsProto.DNS_RESOLVER_MIN_SAMPLES);
383 dumpSetting(s, p,
384 Settings.Global.DNS_RESOLVER_MAX_SAMPLES,
385 GlobalSettingsProto.DNS_RESOLVER_MAX_SAMPLES);
386 dumpSetting(s, p,
387 Settings.Global.OTA_DISABLE_AUTOMATIC_UPDATE,
388 GlobalSettingsProto.OTA_DISABLE_AUTOMATIC_UPDATE);
389 dumpSetting(s, p,
390 Settings.Global.PACKAGE_VERIFIER_ENABLE,
391 GlobalSettingsProto.PACKAGE_VERIFIER_ENABLE);
392 dumpSetting(s, p,
393 Settings.Global.PACKAGE_VERIFIER_TIMEOUT,
394 GlobalSettingsProto.PACKAGE_VERIFIER_TIMEOUT);
395 dumpSetting(s, p,
396 Settings.Global.PACKAGE_VERIFIER_DEFAULT_RESPONSE,
397 GlobalSettingsProto.PACKAGE_VERIFIER_DEFAULT_RESPONSE);
398 dumpSetting(s, p,
399 Settings.Global.PACKAGE_VERIFIER_SETTING_VISIBLE,
400 GlobalSettingsProto.PACKAGE_VERIFIER_SETTING_VISIBLE);
401 dumpSetting(s, p,
402 Settings.Global.PACKAGE_VERIFIER_INCLUDE_ADB,
403 GlobalSettingsProto.PACKAGE_VERIFIER_INCLUDE_ADB);
404 dumpSetting(s, p,
405 Settings.Global.FSTRIM_MANDATORY_INTERVAL,
406 GlobalSettingsProto.FSTRIM_MANDATORY_INTERVAL);
407 dumpSetting(s, p,
408 Settings.Global.PDP_WATCHDOG_POLL_INTERVAL_MS,
409 GlobalSettingsProto.PDP_WATCHDOG_POLL_INTERVAL_MS);
410 dumpSetting(s, p,
411 Settings.Global.PDP_WATCHDOG_LONG_POLL_INTERVAL_MS,
412 GlobalSettingsProto.PDP_WATCHDOG_LONG_POLL_INTERVAL_MS);
413 dumpSetting(s, p,
414 Settings.Global.PDP_WATCHDOG_ERROR_POLL_INTERVAL_MS,
415 GlobalSettingsProto.PDP_WATCHDOG_ERROR_POLL_INTERVAL_MS);
416 dumpSetting(s, p,
417 Settings.Global.PDP_WATCHDOG_TRIGGER_PACKET_COUNT,
418 GlobalSettingsProto.PDP_WATCHDOG_TRIGGER_PACKET_COUNT);
419 dumpSetting(s, p,
420 Settings.Global.PDP_WATCHDOG_ERROR_POLL_COUNT,
421 GlobalSettingsProto.PDP_WATCHDOG_ERROR_POLL_COUNT);
422 dumpSetting(s, p,
423 Settings.Global.PDP_WATCHDOG_MAX_PDP_RESET_FAIL_COUNT,
424 GlobalSettingsProto.PDP_WATCHDOG_MAX_PDP_RESET_FAIL_COUNT);
425 dumpSetting(s, p,
Eugene Suslad72c3972016-12-27 15:49:30 -0800426 Settings.Global.SETUP_PREPAID_DATA_SERVICE_URL,
427 GlobalSettingsProto.SETUP_PREPAID_DATA_SERVICE_URL);
428 dumpSetting(s, p,
429 Settings.Global.SETUP_PREPAID_DETECTION_TARGET_URL,
430 GlobalSettingsProto.SETUP_PREPAID_DETECTION_TARGET_URL);
431 dumpSetting(s, p,
432 Settings.Global.SETUP_PREPAID_DETECTION_REDIR_HOST,
433 GlobalSettingsProto.SETUP_PREPAID_DETECTION_REDIR_HOST);
434 dumpSetting(s, p,
435 Settings.Global.SMS_OUTGOING_CHECK_INTERVAL_MS,
436 GlobalSettingsProto.SMS_OUTGOING_CHECK_INTERVAL_MS);
437 dumpSetting(s, p,
438 Settings.Global.SMS_OUTGOING_CHECK_MAX_COUNT,
439 GlobalSettingsProto.SMS_OUTGOING_CHECK_MAX_COUNT);
440 dumpSetting(s, p,
441 Settings.Global.SMS_SHORT_CODE_CONFIRMATION,
442 GlobalSettingsProto.SMS_SHORT_CODE_CONFIRMATION);
443 dumpSetting(s, p,
444 Settings.Global.SMS_SHORT_CODE_RULE,
445 GlobalSettingsProto.SMS_SHORT_CODE_RULE);
446 dumpSetting(s, p,
447 Settings.Global.TCP_DEFAULT_INIT_RWND,
448 GlobalSettingsProto.TCP_DEFAULT_INIT_RWND);
449 dumpSetting(s, p,
450 Settings.Global.TETHER_SUPPORTED,
451 GlobalSettingsProto.TETHER_SUPPORTED);
452 dumpSetting(s, p,
453 Settings.Global.TETHER_DUN_REQUIRED,
454 GlobalSettingsProto.TETHER_DUN_REQUIRED);
455 dumpSetting(s, p,
456 Settings.Global.TETHER_DUN_APN,
457 GlobalSettingsProto.TETHER_DUN_APN);
458 dumpSetting(s, p,
Kweku Adamsb0886f32017-10-31 15:32:09 -0700459 Settings.Global.TETHER_OFFLOAD_DISABLED,
460 GlobalSettingsProto.TETHER_OFFLOAD_DISABLED);
461 dumpSetting(s, p,
Eugene Suslad72c3972016-12-27 15:49:30 -0800462 Settings.Global.CARRIER_APP_WHITELIST,
463 GlobalSettingsProto.CARRIER_APP_WHITELIST);
464 dumpSetting(s, p,
465 Settings.Global.USB_MASS_STORAGE_ENABLED,
466 GlobalSettingsProto.USB_MASS_STORAGE_ENABLED);
467 dumpSetting(s, p,
468 Settings.Global.USE_GOOGLE_MAIL,
469 GlobalSettingsProto.USE_GOOGLE_MAIL);
470 dumpSetting(s, p,
471 Settings.Global.WEBVIEW_DATA_REDUCTION_PROXY_KEY,
472 GlobalSettingsProto.WEBVIEW_DATA_REDUCTION_PROXY_KEY);
473 dumpSetting(s, p,
474 Settings.Global.WEBVIEW_FALLBACK_LOGIC_ENABLED,
475 GlobalSettingsProto.WEBVIEW_FALLBACK_LOGIC_ENABLED);
476 dumpSetting(s, p,
477 Settings.Global.WEBVIEW_PROVIDER,
478 GlobalSettingsProto.WEBVIEW_PROVIDER);
479 dumpSetting(s, p,
480 Settings.Global.WEBVIEW_MULTIPROCESS,
481 GlobalSettingsProto.WEBVIEW_MULTIPROCESS);
482 dumpSetting(s, p,
483 Settings.Global.NETWORK_SWITCH_NOTIFICATION_DAILY_LIMIT,
484 GlobalSettingsProto.NETWORK_SWITCH_NOTIFICATION_DAILY_LIMIT);
485 dumpSetting(s, p,
486 Settings.Global.NETWORK_SWITCH_NOTIFICATION_RATE_LIMIT_MILLIS,
487 GlobalSettingsProto.NETWORK_SWITCH_NOTIFICATION_RATE_LIMIT_MILLIS);
488 dumpSetting(s, p,
489 Settings.Global.NETWORK_AVOID_BAD_WIFI,
490 GlobalSettingsProto.NETWORK_AVOID_BAD_WIFI);
491 dumpSetting(s, p,
Kweku Adamsb0886f32017-10-31 15:32:09 -0700492 Settings.Global.NETWORK_METERED_MULTIPATH_PREFERENCE,
493 GlobalSettingsProto.NETWORK_METERED_MULTIPATH_PREFERENCE);
494 dumpSetting(s, p,
495 Settings.Global.NETWORK_WATCHLIST_LAST_REPORT_TIME,
496 GlobalSettingsProto.NETWORK_WATCHLIST_LAST_REPORT_TIME);
497 dumpSetting(s, p,
498 Settings.Global.WIFI_BADGING_THRESHOLDS,
499 GlobalSettingsProto.WIFI_BADGING_THRESHOLDS);
500 dumpSetting(s, p,
Eugene Suslad72c3972016-12-27 15:49:30 -0800501 Settings.Global.WIFI_DISPLAY_ON,
502 GlobalSettingsProto.WIFI_DISPLAY_ON);
503 dumpSetting(s, p,
504 Settings.Global.WIFI_DISPLAY_CERTIFICATION_ON,
505 GlobalSettingsProto.WIFI_DISPLAY_CERTIFICATION_ON);
506 dumpSetting(s, p,
507 Settings.Global.WIFI_DISPLAY_WPS_CONFIG,
508 GlobalSettingsProto.WIFI_DISPLAY_WPS_CONFIG);
509 dumpSetting(s, p,
510 Settings.Global.WIFI_NETWORKS_AVAILABLE_NOTIFICATION_ON,
511 GlobalSettingsProto.WIFI_NETWORKS_AVAILABLE_NOTIFICATION_ON);
512 dumpSetting(s, p,
513 Settings.Global.WIMAX_NETWORKS_AVAILABLE_NOTIFICATION_ON,
514 GlobalSettingsProto.WIMAX_NETWORKS_AVAILABLE_NOTIFICATION_ON);
515 dumpSetting(s, p,
516 Settings.Global.WIFI_NETWORKS_AVAILABLE_REPEAT_DELAY,
517 GlobalSettingsProto.WIFI_NETWORKS_AVAILABLE_REPEAT_DELAY);
518 dumpSetting(s, p,
519 Settings.Global.WIFI_COUNTRY_CODE,
520 GlobalSettingsProto.WIFI_COUNTRY_CODE);
521 dumpSetting(s, p,
522 Settings.Global.WIFI_FRAMEWORK_SCAN_INTERVAL_MS,
523 GlobalSettingsProto.WIFI_FRAMEWORK_SCAN_INTERVAL_MS);
524 dumpSetting(s, p,
525 Settings.Global.WIFI_IDLE_MS,
526 GlobalSettingsProto.WIFI_IDLE_MS);
527 dumpSetting(s, p,
528 Settings.Global.WIFI_NUM_OPEN_NETWORKS_KEPT,
529 GlobalSettingsProto.WIFI_NUM_OPEN_NETWORKS_KEPT);
530 dumpSetting(s, p,
531 Settings.Global.WIFI_ON,
532 GlobalSettingsProto.WIFI_ON);
533 dumpSetting(s, p,
534 Settings.Global.WIFI_SCAN_ALWAYS_AVAILABLE,
535 GlobalSettingsProto.WIFI_SCAN_ALWAYS_AVAILABLE);
536 dumpSetting(s, p,
537 Settings.Global.WIFI_WAKEUP_ENABLED,
538 GlobalSettingsProto.WIFI_WAKEUP_ENABLED);
539 dumpSetting(s, p,
Kweku Adamsb0886f32017-10-31 15:32:09 -0700540 Settings.Global.WIFI_WAKEUP_AVAILABLE,
541 GlobalSettingsProto.WIFI_WAKEUP_AVAILABLE);
542 dumpSetting(s, p,
543 Settings.Global.NETWORK_SCORING_UI_ENABLED,
544 GlobalSettingsProto.NETWORK_SCORING_UI_ENABLED);
545 dumpSetting(s, p,
546 Settings.Global.SPEED_LABEL_CACHE_EVICTION_AGE_MILLIS,
547 GlobalSettingsProto.SPEED_LABEL_CACHE_EVICTION_AGE_MILLIS);
548 dumpSetting(s, p,
Eugene Suslad72c3972016-12-27 15:49:30 -0800549 Settings.Global.NETWORK_RECOMMENDATIONS_ENABLED,
550 GlobalSettingsProto.NETWORK_RECOMMENDATIONS_ENABLED);
551 dumpSetting(s, p,
Jeremy Joslinc9eb3c42017-02-08 10:45:30 -0800552 Settings.Global.NETWORK_RECOMMENDATIONS_PACKAGE,
553 GlobalSettingsProto.NETWORK_RECOMMENDATIONS_PACKAGE);
554 dumpSetting(s, p,
Kweku Adamsb0886f32017-10-31 15:32:09 -0700555 Settings.Global.USE_OPEN_WIFI_PACKAGE,
556 GlobalSettingsProto.USE_OPEN_WIFI_PACKAGE);
557 dumpSetting(s, p,
558 Settings.Global.NETWORK_RECOMMENDATION_REQUEST_TIMEOUT_MS,
559 GlobalSettingsProto.NETWORK_RECOMMENDATION_REQUEST_TIMEOUT_MS);
560 dumpSetting(s, p,
561 Settings.Global.RECOMMENDED_NETWORK_EVALUATOR_CACHE_EXPIRY_MS,
562 GlobalSettingsProto.RECOMMENDED_NETWORK_EVALUATOR_CACHE_EXPIRY_MS);
563 dumpSetting(s, p,
Eugene Suslad72c3972016-12-27 15:49:30 -0800564 Settings.Global.BLE_SCAN_ALWAYS_AVAILABLE,
565 GlobalSettingsProto.BLE_SCAN_ALWAYS_AVAILABLE);
566 dumpSetting(s, p,
567 Settings.Global.WIFI_SAVED_STATE,
568 GlobalSettingsProto.WIFI_SAVED_STATE);
569 dumpSetting(s, p,
570 Settings.Global.WIFI_SUPPLICANT_SCAN_INTERVAL_MS,
571 GlobalSettingsProto.WIFI_SUPPLICANT_SCAN_INTERVAL_MS);
572 dumpSetting(s, p,
573 Settings.Global.WIFI_ENHANCED_AUTO_JOIN,
574 GlobalSettingsProto.WIFI_ENHANCED_AUTO_JOIN);
575 dumpSetting(s, p,
576 Settings.Global.WIFI_NETWORK_SHOW_RSSI,
577 GlobalSettingsProto.WIFI_NETWORK_SHOW_RSSI);
578 dumpSetting(s, p,
579 Settings.Global.WIFI_SCAN_INTERVAL_WHEN_P2P_CONNECTED_MS,
580 GlobalSettingsProto.WIFI_SCAN_INTERVAL_WHEN_P2P_CONNECTED_MS);
581 dumpSetting(s, p,
582 Settings.Global.WIFI_WATCHDOG_ON,
583 GlobalSettingsProto.WIFI_WATCHDOG_ON);
584 dumpSetting(s, p,
585 Settings.Global.WIFI_WATCHDOG_POOR_NETWORK_TEST_ENABLED,
586 GlobalSettingsProto.WIFI_WATCHDOG_POOR_NETWORK_TEST_ENABLED);
587 dumpSetting(s, p,
588 Settings.Global.WIFI_SUSPEND_OPTIMIZATIONS_ENABLED,
589 GlobalSettingsProto.WIFI_SUSPEND_OPTIMIZATIONS_ENABLED);
590 dumpSetting(s, p,
591 Settings.Global.WIFI_VERBOSE_LOGGING_ENABLED,
592 GlobalSettingsProto.WIFI_VERBOSE_LOGGING_ENABLED);
593 dumpSetting(s, p,
594 Settings.Global.WIFI_MAX_DHCP_RETRY_COUNT,
595 GlobalSettingsProto.WIFI_MAX_DHCP_RETRY_COUNT);
596 dumpSetting(s, p,
597 Settings.Global.WIFI_MOBILE_DATA_TRANSITION_WAKELOCK_TIMEOUT_MS,
598 GlobalSettingsProto.WIFI_MOBILE_DATA_TRANSITION_WAKELOCK_TIMEOUT_MS);
599 dumpSetting(s, p,
600 Settings.Global.WIFI_DEVICE_OWNER_CONFIGS_LOCKDOWN,
601 GlobalSettingsProto.WIFI_DEVICE_OWNER_CONFIGS_LOCKDOWN);
602 dumpSetting(s, p,
603 Settings.Global.WIFI_FREQUENCY_BAND,
604 GlobalSettingsProto.WIFI_FREQUENCY_BAND);
605 dumpSetting(s, p,
606 Settings.Global.WIFI_P2P_DEVICE_NAME,
607 GlobalSettingsProto.WIFI_P2P_DEVICE_NAME);
608 dumpSetting(s, p,
609 Settings.Global.WIFI_REENABLE_DELAY_MS,
610 GlobalSettingsProto.WIFI_REENABLE_DELAY_MS);
611 dumpSetting(s, p,
612 Settings.Global.WIFI_EPHEMERAL_OUT_OF_RANGE_TIMEOUT_MS,
613 GlobalSettingsProto.WIFI_EPHEMERAL_OUT_OF_RANGE_TIMEOUT_MS);
614 dumpSetting(s, p,
615 Settings.Global.DATA_STALL_ALARM_NON_AGGRESSIVE_DELAY_IN_MS,
616 GlobalSettingsProto.DATA_STALL_ALARM_NON_AGGRESSIVE_DELAY_IN_MS);
617 dumpSetting(s, p,
618 Settings.Global.DATA_STALL_ALARM_AGGRESSIVE_DELAY_IN_MS,
619 GlobalSettingsProto.DATA_STALL_ALARM_AGGRESSIVE_DELAY_IN_MS);
620 dumpSetting(s, p,
621 Settings.Global.PROVISIONING_APN_ALARM_DELAY_IN_MS,
622 GlobalSettingsProto.PROVISIONING_APN_ALARM_DELAY_IN_MS);
623 dumpSetting(s, p,
624 Settings.Global.GPRS_REGISTER_CHECK_PERIOD_MS,
625 GlobalSettingsProto.GPRS_REGISTER_CHECK_PERIOD_MS);
626 dumpSetting(s, p,
627 Settings.Global.WTF_IS_FATAL,
628 GlobalSettingsProto.WTF_IS_FATAL);
629 dumpSetting(s, p,
630 Settings.Global.MODE_RINGER,
631 GlobalSettingsProto.MODE_RINGER);
632 dumpSetting(s, p,
633 Settings.Global.OVERLAY_DISPLAY_DEVICES,
634 GlobalSettingsProto.OVERLAY_DISPLAY_DEVICES);
635 dumpSetting(s, p,
636 Settings.Global.BATTERY_DISCHARGE_DURATION_THRESHOLD,
637 GlobalSettingsProto.BATTERY_DISCHARGE_DURATION_THRESHOLD);
638 dumpSetting(s, p,
639 Settings.Global.BATTERY_DISCHARGE_THRESHOLD,
640 GlobalSettingsProto.BATTERY_DISCHARGE_THRESHOLD);
641 dumpSetting(s, p,
642 Settings.Global.SEND_ACTION_APP_ERROR,
643 GlobalSettingsProto.SEND_ACTION_APP_ERROR);
644 dumpSetting(s, p,
645 Settings.Global.DROPBOX_AGE_SECONDS,
646 GlobalSettingsProto.DROPBOX_AGE_SECONDS);
647 dumpSetting(s, p,
648 Settings.Global.DROPBOX_MAX_FILES,
649 GlobalSettingsProto.DROPBOX_MAX_FILES);
650 dumpSetting(s, p,
651 Settings.Global.DROPBOX_QUOTA_KB,
652 GlobalSettingsProto.DROPBOX_QUOTA_KB);
653 dumpSetting(s, p,
654 Settings.Global.DROPBOX_QUOTA_PERCENT,
655 GlobalSettingsProto.DROPBOX_QUOTA_PERCENT);
656 dumpSetting(s, p,
657 Settings.Global.DROPBOX_RESERVE_PERCENT,
658 GlobalSettingsProto.DROPBOX_RESERVE_PERCENT);
659 dumpSetting(s, p,
660 Settings.Global.DROPBOX_TAG_PREFIX,
661 GlobalSettingsProto.DROPBOX_TAG_PREFIX);
662 dumpSetting(s, p,
663 Settings.Global.ERROR_LOGCAT_PREFIX,
664 GlobalSettingsProto.ERROR_LOGCAT_PREFIX);
665 dumpSetting(s, p,
666 Settings.Global.SYS_FREE_STORAGE_LOG_INTERVAL,
667 GlobalSettingsProto.SYS_FREE_STORAGE_LOG_INTERVAL);
668 dumpSetting(s, p,
669 Settings.Global.DISK_FREE_CHANGE_REPORTING_THRESHOLD,
670 GlobalSettingsProto.DISK_FREE_CHANGE_REPORTING_THRESHOLD);
671 dumpSetting(s, p,
672 Settings.Global.SYS_STORAGE_THRESHOLD_PERCENTAGE,
673 GlobalSettingsProto.SYS_STORAGE_THRESHOLD_PERCENTAGE);
674 dumpSetting(s, p,
675 Settings.Global.SYS_STORAGE_THRESHOLD_MAX_BYTES,
676 GlobalSettingsProto.SYS_STORAGE_THRESHOLD_MAX_BYTES);
677 dumpSetting(s, p,
678 Settings.Global.SYS_STORAGE_FULL_THRESHOLD_BYTES,
679 GlobalSettingsProto.SYS_STORAGE_FULL_THRESHOLD_BYTES);
680 dumpSetting(s, p,
Kweku Adamsb0886f32017-10-31 15:32:09 -0700681 Settings.Global.SYS_STORAGE_CACHE_PERCENTAGE,
682 GlobalSettingsProto.SYS_STORAGE_CACHE_PERCENTAGE);
683 dumpSetting(s, p,
684 Settings.Global.SYS_STORAGE_CACHE_MAX_BYTES,
685 GlobalSettingsProto.SYS_STORAGE_CACHE_MAX_BYTES);
686 dumpSetting(s, p,
Eugene Suslad72c3972016-12-27 15:49:30 -0800687 Settings.Global.SYNC_MAX_RETRY_DELAY_IN_SECONDS,
688 GlobalSettingsProto.SYNC_MAX_RETRY_DELAY_IN_SECONDS);
689 dumpSetting(s, p,
690 Settings.Global.CONNECTIVITY_CHANGE_DELAY,
691 GlobalSettingsProto.CONNECTIVITY_CHANGE_DELAY);
692 dumpSetting(s, p,
693 Settings.Global.CONNECTIVITY_SAMPLING_INTERVAL_IN_SECONDS,
694 GlobalSettingsProto.CONNECTIVITY_SAMPLING_INTERVAL_IN_SECONDS);
695 dumpSetting(s, p,
696 Settings.Global.PAC_CHANGE_DELAY,
697 GlobalSettingsProto.PAC_CHANGE_DELAY);
698 dumpSetting(s, p,
699 Settings.Global.CAPTIVE_PORTAL_MODE,
700 GlobalSettingsProto.CAPTIVE_PORTAL_MODE);
701 dumpSetting(s, p,
Kweku Adamsb0886f32017-10-31 15:32:09 -0700702 Settings.Global.CAPTIVE_PORTAL_DETECTION_ENABLED,
703 GlobalSettingsProto.CAPTIVE_PORTAL_DETECTION_ENABLED);
704 dumpSetting(s, p,
Eugene Suslad72c3972016-12-27 15:49:30 -0800705 Settings.Global.CAPTIVE_PORTAL_SERVER,
706 GlobalSettingsProto.CAPTIVE_PORTAL_SERVER);
707 dumpSetting(s, p,
708 Settings.Global.CAPTIVE_PORTAL_HTTPS_URL,
709 GlobalSettingsProto.CAPTIVE_PORTAL_HTTPS_URL);
710 dumpSetting(s, p,
711 Settings.Global.CAPTIVE_PORTAL_HTTP_URL,
712 GlobalSettingsProto.CAPTIVE_PORTAL_HTTP_URL);
713 dumpSetting(s, p,
714 Settings.Global.CAPTIVE_PORTAL_FALLBACK_URL,
715 GlobalSettingsProto.CAPTIVE_PORTAL_FALLBACK_URL);
716 dumpSetting(s, p,
Kweku Adamsb0886f32017-10-31 15:32:09 -0700717 Settings.Global.CAPTIVE_PORTAL_OTHER_FALLBACK_URLS,
718 GlobalSettingsProto.CAPTIVE_PORTAL_OTHER_FALLBACK_URLS);
719 dumpSetting(s, p,
Eugene Suslad72c3972016-12-27 15:49:30 -0800720 Settings.Global.CAPTIVE_PORTAL_USE_HTTPS,
721 GlobalSettingsProto.CAPTIVE_PORTAL_USE_HTTPS);
722 dumpSetting(s, p,
723 Settings.Global.CAPTIVE_PORTAL_USER_AGENT,
724 GlobalSettingsProto.CAPTIVE_PORTAL_USER_AGENT);
725 dumpSetting(s, p,
726 Settings.Global.NSD_ON,
727 GlobalSettingsProto.NSD_ON);
728 dumpSetting(s, p,
729 Settings.Global.SET_INSTALL_LOCATION,
730 GlobalSettingsProto.SET_INSTALL_LOCATION);
731 dumpSetting(s, p,
732 Settings.Global.DEFAULT_INSTALL_LOCATION,
733 GlobalSettingsProto.DEFAULT_INSTALL_LOCATION);
734 dumpSetting(s, p,
735 Settings.Global.INET_CONDITION_DEBOUNCE_UP_DELAY,
736 GlobalSettingsProto.INET_CONDITION_DEBOUNCE_UP_DELAY);
737 dumpSetting(s, p,
738 Settings.Global.INET_CONDITION_DEBOUNCE_DOWN_DELAY,
739 GlobalSettingsProto.INET_CONDITION_DEBOUNCE_DOWN_DELAY);
740 dumpSetting(s, p,
741 Settings.Global.READ_EXTERNAL_STORAGE_ENFORCED_DEFAULT,
742 GlobalSettingsProto.READ_EXTERNAL_STORAGE_ENFORCED_DEFAULT);
743 dumpSetting(s, p,
744 Settings.Global.HTTP_PROXY,
745 GlobalSettingsProto.HTTP_PROXY);
746 dumpSetting(s, p,
747 Settings.Global.GLOBAL_HTTP_PROXY_HOST,
748 GlobalSettingsProto.GLOBAL_HTTP_PROXY_HOST);
749 dumpSetting(s, p,
750 Settings.Global.GLOBAL_HTTP_PROXY_PORT,
751 GlobalSettingsProto.GLOBAL_HTTP_PROXY_PORT);
752 dumpSetting(s, p,
753 Settings.Global.GLOBAL_HTTP_PROXY_EXCLUSION_LIST,
754 GlobalSettingsProto.GLOBAL_HTTP_PROXY_EXCLUSION_LIST);
755 dumpSetting(s, p,
756 Settings.Global.GLOBAL_HTTP_PROXY_PAC,
757 GlobalSettingsProto.GLOBAL_HTTP_PROXY_PAC);
758 dumpSetting(s, p,
759 Settings.Global.SET_GLOBAL_HTTP_PROXY,
760 GlobalSettingsProto.SET_GLOBAL_HTTP_PROXY);
761 dumpSetting(s, p,
762 Settings.Global.DEFAULT_DNS_SERVER,
763 GlobalSettingsProto.DEFAULT_DNS_SERVER);
764 dumpSetting(s, p,
Kweku Adamsb0886f32017-10-31 15:32:09 -0700765 Settings.Global.PRIVATE_DNS_MODE,
766 GlobalSettingsProto.PRIVATE_DNS_MODE);
767 dumpSetting(s, p,
768 Settings.Global.PRIVATE_DNS_SPECIFIER,
769 GlobalSettingsProto.PRIVATE_DNS_SPECIFIER);
770 dumpSetting(s, p,
Eugene Suslad72c3972016-12-27 15:49:30 -0800771 Settings.Global.BLUETOOTH_HEADSET_PRIORITY_PREFIX,
772 GlobalSettingsProto.BLUETOOTH_HEADSET_PRIORITY_PREFIX);
773 dumpSetting(s, p,
774 Settings.Global.BLUETOOTH_A2DP_SINK_PRIORITY_PREFIX,
775 GlobalSettingsProto.BLUETOOTH_A2DP_SINK_PRIORITY_PREFIX);
776 dumpSetting(s, p,
777 Settings.Global.BLUETOOTH_A2DP_SRC_PRIORITY_PREFIX,
778 GlobalSettingsProto.BLUETOOTH_A2DP_SRC_PRIORITY_PREFIX);
779 dumpSetting(s, p,
Antony Sargentf5772c62017-04-26 16:37:53 -0700780 Settings.Global.BLUETOOTH_A2DP_SUPPORTS_OPTIONAL_CODECS_PREFIX,
781 GlobalSettingsProto.BLUETOOTH_A2DP_SUPPORTS_OPTIONAL_CODECS_PREFIX);
782 dumpSetting(s, p,
783 Settings.Global.BLUETOOTH_A2DP_OPTIONAL_CODECS_ENABLED_PREFIX,
784 GlobalSettingsProto.BLUETOOTH_A2DP_OPTIONAL_CODECS_ENABLED_PREFIX);
785 dumpSetting(s, p,
Eugene Suslad72c3972016-12-27 15:49:30 -0800786 Settings.Global.BLUETOOTH_INPUT_DEVICE_PRIORITY_PREFIX,
787 GlobalSettingsProto.BLUETOOTH_INPUT_DEVICE_PRIORITY_PREFIX);
788 dumpSetting(s, p,
789 Settings.Global.BLUETOOTH_MAP_PRIORITY_PREFIX,
790 GlobalSettingsProto.BLUETOOTH_MAP_PRIORITY_PREFIX);
791 dumpSetting(s, p,
792 Settings.Global.BLUETOOTH_MAP_CLIENT_PRIORITY_PREFIX,
793 GlobalSettingsProto.BLUETOOTH_MAP_CLIENT_PRIORITY_PREFIX);
794 dumpSetting(s, p,
795 Settings.Global.BLUETOOTH_PBAP_CLIENT_PRIORITY_PREFIX,
796 GlobalSettingsProto.BLUETOOTH_PBAP_CLIENT_PRIORITY_PREFIX);
797 dumpSetting(s, p,
798 Settings.Global.BLUETOOTH_SAP_PRIORITY_PREFIX,
799 GlobalSettingsProto.BLUETOOTH_SAP_PRIORITY_PREFIX);
800 dumpSetting(s, p,
801 Settings.Global.BLUETOOTH_PAN_PRIORITY_PREFIX,
802 GlobalSettingsProto.BLUETOOTH_PAN_PRIORITY_PREFIX);
803 dumpSetting(s, p,
Jakub Pawlowskic2d7be62017-11-22 10:57:42 -0800804 Settings.Global.BLUETOOTH_HEARING_AID_PRIORITY_PREFIX,
805 GlobalSettingsProto.BLUETOOTH_HEARING_AID_PRIORITY_PREFIX);
806 dumpSetting(s, p,
Kweku Adamsb0886f32017-10-31 15:32:09 -0700807 Settings.Global.ACTIVITY_MANAGER_CONSTANTS,
808 GlobalSettingsProto.ACTIVITY_MANAGER_CONSTANTS);
809 dumpSetting(s, p,
Eugene Suslad72c3972016-12-27 15:49:30 -0800810 Settings.Global.DEVICE_IDLE_CONSTANTS,
811 GlobalSettingsProto.DEVICE_IDLE_CONSTANTS);
812 dumpSetting(s, p,
Kweku Adamsb0886f32017-10-31 15:32:09 -0700813 Settings.Global.BATTERY_SAVER_CONSTANTS,
814 GlobalSettingsProto.BATTERY_SAVER_CONSTANTS);
815 dumpSetting(s, p,
816 Settings.Global.ANOMALY_DETECTION_CONSTANTS,
817 GlobalSettingsProto.ANOMALY_DETECTION_CONSTANTS);
818 dumpSetting(s, p,
819 Settings.Global.ALWAYS_ON_DISPLAY_CONSTANTS,
820 GlobalSettingsProto.ALWAYS_ON_DISPLAY_CONSTANTS);
821 dumpSetting(s, p,
Eugene Suslad72c3972016-12-27 15:49:30 -0800822 Settings.Global.APP_IDLE_CONSTANTS,
823 GlobalSettingsProto.APP_IDLE_CONSTANTS);
824 dumpSetting(s, p,
Kweku Adamsb0886f32017-10-31 15:32:09 -0700825 Settings.Global.POWER_MANAGER_CONSTANTS,
826 GlobalSettingsProto.POWER_MANAGER_CONSTANTS);
827 dumpSetting(s, p,
Eugene Suslad72c3972016-12-27 15:49:30 -0800828 Settings.Global.ALARM_MANAGER_CONSTANTS,
829 GlobalSettingsProto.ALARM_MANAGER_CONSTANTS);
830 dumpSetting(s, p,
831 Settings.Global.JOB_SCHEDULER_CONSTANTS,
832 GlobalSettingsProto.JOB_SCHEDULER_CONSTANTS);
833 dumpSetting(s, p,
834 Settings.Global.SHORTCUT_MANAGER_CONSTANTS,
835 GlobalSettingsProto.SHORTCUT_MANAGER_CONSTANTS);
836 dumpSetting(s, p,
Kweku Adamsb0886f32017-10-31 15:32:09 -0700837 Settings.Global.DEVICE_POLICY_CONSTANTS,
838 GlobalSettingsProto.DEVICE_POLICY_CONSTANTS);
839 dumpSetting(s, p,
840 Settings.Global.TEXT_CLASSIFIER_CONSTANTS,
841 GlobalSettingsProto.TEXT_CLASSIFIER_CONSTANTS);
842 dumpSetting(s, p,
Eugene Suslad72c3972016-12-27 15:49:30 -0800843 Settings.Global.WINDOW_ANIMATION_SCALE,
844 GlobalSettingsProto.WINDOW_ANIMATION_SCALE);
845 dumpSetting(s, p,
846 Settings.Global.TRANSITION_ANIMATION_SCALE,
847 GlobalSettingsProto.TRANSITION_ANIMATION_SCALE);
848 dumpSetting(s, p,
849 Settings.Global.ANIMATOR_DURATION_SCALE,
850 GlobalSettingsProto.ANIMATOR_DURATION_SCALE);
851 dumpSetting(s, p,
852 Settings.Global.FANCY_IME_ANIMATIONS,
853 GlobalSettingsProto.FANCY_IME_ANIMATIONS);
854 dumpSetting(s, p,
855 Settings.Global.COMPATIBILITY_MODE,
856 GlobalSettingsProto.COMPATIBILITY_MODE);
857 dumpSetting(s, p,
858 Settings.Global.EMERGENCY_TONE,
859 GlobalSettingsProto.EMERGENCY_TONE);
860 dumpSetting(s, p,
861 Settings.Global.CALL_AUTO_RETRY,
862 GlobalSettingsProto.CALL_AUTO_RETRY);
863 dumpSetting(s, p,
864 Settings.Global.EMERGENCY_AFFORDANCE_NEEDED,
865 GlobalSettingsProto.EMERGENCY_AFFORDANCE_NEEDED);
866 dumpSetting(s, p,
867 Settings.Global.PREFERRED_NETWORK_MODE,
868 GlobalSettingsProto.PREFERRED_NETWORK_MODE);
869 dumpSetting(s, p,
870 Settings.Global.DEBUG_APP,
871 GlobalSettingsProto.DEBUG_APP);
872 dumpSetting(s, p,
873 Settings.Global.WAIT_FOR_DEBUGGER,
874 GlobalSettingsProto.WAIT_FOR_DEBUGGER);
Cody Northrop86cedcb2017-10-20 09:03:13 -0600875 dumpSetting(s, p,
876 Settings.Global.ENABLE_GPU_DEBUG_LAYERS,
877 GlobalSettingsProto.ENABLE_GPU_DEBUG_LAYERS);
878 dumpSetting(s, p,
879 Settings.Global.GPU_DEBUG_APP,
880 GlobalSettingsProto.GPU_DEBUG_APP);
881 dumpSetting(s, p,
882 Settings.Global.GPU_DEBUG_LAYERS,
883 GlobalSettingsProto.GPU_DEBUG_LAYERS);
gomo48f1a642017-11-10 20:35:46 -0800884 dumpSetting(s, p,
885 Settings.Global.ENABLE_GNSS_RAW_MEAS_FULL_TRACKING,
886 GlobalSettingsProto.ENABLE_GNSS_RAW_MEAS_FULL_TRACKING);
Kweku Adamsb0886f32017-10-31 15:32:09 -0700887 // Settings.Global.SHOW_PROCESSES intentionally excluded since it's deprecated.
Eugene Suslad72c3972016-12-27 15:49:30 -0800888 dumpSetting(s, p,
889 Settings.Global.LOW_POWER_MODE,
890 GlobalSettingsProto.LOW_POWER_MODE);
891 dumpSetting(s, p,
892 Settings.Global.LOW_POWER_MODE_TRIGGER_LEVEL,
893 GlobalSettingsProto.LOW_POWER_MODE_TRIGGER_LEVEL);
894 dumpSetting(s, p,
895 Settings.Global.ALWAYS_FINISH_ACTIVITIES,
896 GlobalSettingsProto.ALWAYS_FINISH_ACTIVITIES);
897 dumpSetting(s, p,
898 Settings.Global.DOCK_AUDIO_MEDIA_ENABLED,
899 GlobalSettingsProto.DOCK_AUDIO_MEDIA_ENABLED);
900 dumpSetting(s, p,
901 Settings.Global.ENCODED_SURROUND_OUTPUT,
902 GlobalSettingsProto.ENCODED_SURROUND_OUTPUT);
903 dumpSetting(s, p,
904 Settings.Global.AUDIO_SAFE_VOLUME_STATE,
905 GlobalSettingsProto.AUDIO_SAFE_VOLUME_STATE);
906 dumpSetting(s, p,
907 Settings.Global.TZINFO_UPDATE_CONTENT_URL,
908 GlobalSettingsProto.TZINFO_UPDATE_CONTENT_URL);
909 dumpSetting(s, p,
910 Settings.Global.TZINFO_UPDATE_METADATA_URL,
911 GlobalSettingsProto.TZINFO_UPDATE_METADATA_URL);
912 dumpSetting(s, p,
913 Settings.Global.SELINUX_UPDATE_CONTENT_URL,
914 GlobalSettingsProto.SELINUX_UPDATE_CONTENT_URL);
915 dumpSetting(s, p,
916 Settings.Global.SELINUX_UPDATE_METADATA_URL,
917 GlobalSettingsProto.SELINUX_UPDATE_METADATA_URL);
918 dumpSetting(s, p,
919 Settings.Global.SMS_SHORT_CODES_UPDATE_CONTENT_URL,
920 GlobalSettingsProto.SMS_SHORT_CODES_UPDATE_CONTENT_URL);
921 dumpSetting(s, p,
922 Settings.Global.SMS_SHORT_CODES_UPDATE_METADATA_URL,
923 GlobalSettingsProto.SMS_SHORT_CODES_UPDATE_METADATA_URL);
924 dumpSetting(s, p,
925 Settings.Global.APN_DB_UPDATE_CONTENT_URL,
926 GlobalSettingsProto.APN_DB_UPDATE_CONTENT_URL);
927 dumpSetting(s, p,
928 Settings.Global.APN_DB_UPDATE_METADATA_URL,
929 GlobalSettingsProto.APN_DB_UPDATE_METADATA_URL);
930 dumpSetting(s, p,
931 Settings.Global.CERT_PIN_UPDATE_CONTENT_URL,
932 GlobalSettingsProto.CERT_PIN_UPDATE_CONTENT_URL);
933 dumpSetting(s, p,
934 Settings.Global.CERT_PIN_UPDATE_METADATA_URL,
935 GlobalSettingsProto.CERT_PIN_UPDATE_METADATA_URL);
936 dumpSetting(s, p,
937 Settings.Global.INTENT_FIREWALL_UPDATE_CONTENT_URL,
938 GlobalSettingsProto.INTENT_FIREWALL_UPDATE_CONTENT_URL);
939 dumpSetting(s, p,
940 Settings.Global.INTENT_FIREWALL_UPDATE_METADATA_URL,
941 GlobalSettingsProto.INTENT_FIREWALL_UPDATE_METADATA_URL);
942 dumpSetting(s, p,
Kweku Adamsb0886f32017-10-31 15:32:09 -0700943 Settings.Global.LANG_ID_UPDATE_CONTENT_URL,
944 GlobalSettingsProto.LANG_ID_UPDATE_CONTENT_URL);
945 dumpSetting(s, p,
946 Settings.Global.LANG_ID_UPDATE_METADATA_URL,
947 GlobalSettingsProto.LANG_ID_UPDATE_METADATA_URL);
948 dumpSetting(s, p,
949 Settings.Global.SMART_SELECTION_UPDATE_CONTENT_URL,
950 GlobalSettingsProto.SMART_SELECTION_UPDATE_CONTENT_URL);
951 dumpSetting(s, p,
952 Settings.Global.SMART_SELECTION_UPDATE_METADATA_URL,
953 GlobalSettingsProto.SMART_SELECTION_UPDATE_METADATA_URL);
954 dumpSetting(s, p,
Eugene Suslad72c3972016-12-27 15:49:30 -0800955 Settings.Global.SELINUX_STATUS,
956 GlobalSettingsProto.SELINUX_STATUS);
957 dumpSetting(s, p,
958 Settings.Global.DEVELOPMENT_FORCE_RTL,
959 GlobalSettingsProto.DEVELOPMENT_FORCE_RTL);
960 dumpSetting(s, p,
961 Settings.Global.LOW_BATTERY_SOUND_TIMEOUT,
962 GlobalSettingsProto.LOW_BATTERY_SOUND_TIMEOUT);
963 dumpSetting(s, p,
964 Settings.Global.WIFI_BOUNCE_DELAY_OVERRIDE_MS,
965 GlobalSettingsProto.WIFI_BOUNCE_DELAY_OVERRIDE_MS);
966 dumpSetting(s, p,
967 Settings.Global.POLICY_CONTROL,
968 GlobalSettingsProto.POLICY_CONTROL);
969 dumpSetting(s, p,
970 Settings.Global.ZEN_MODE,
971 GlobalSettingsProto.ZEN_MODE);
972 dumpSetting(s, p,
973 Settings.Global.ZEN_MODE_RINGER_LEVEL,
974 GlobalSettingsProto.ZEN_MODE_RINGER_LEVEL);
975 dumpSetting(s, p,
976 Settings.Global.ZEN_MODE_CONFIG_ETAG,
977 GlobalSettingsProto.ZEN_MODE_CONFIG_ETAG);
978 dumpSetting(s, p,
979 Settings.Global.HEADS_UP_NOTIFICATIONS_ENABLED,
980 GlobalSettingsProto.HEADS_UP_NOTIFICATIONS_ENABLED);
981 dumpSetting(s, p,
982 Settings.Global.DEVICE_NAME,
983 GlobalSettingsProto.DEVICE_NAME);
984 dumpSetting(s, p,
985 Settings.Global.NETWORK_SCORING_PROVISIONED,
986 GlobalSettingsProto.NETWORK_SCORING_PROVISIONED);
987 dumpSetting(s, p,
988 Settings.Global.REQUIRE_PASSWORD_TO_DECRYPT,
989 GlobalSettingsProto.REQUIRE_PASSWORD_TO_DECRYPT);
990 dumpSetting(s, p,
991 Settings.Global.ENHANCED_4G_MODE_ENABLED,
992 GlobalSettingsProto.ENHANCED_4G_MODE_ENABLED);
993 dumpSetting(s, p,
994 Settings.Global.VT_IMS_ENABLED,
995 GlobalSettingsProto.VT_IMS_ENABLED);
996 dumpSetting(s, p,
997 Settings.Global.WFC_IMS_ENABLED,
998 GlobalSettingsProto.WFC_IMS_ENABLED);
999 dumpSetting(s, p,
1000 Settings.Global.WFC_IMS_MODE,
1001 GlobalSettingsProto.WFC_IMS_MODE);
1002 dumpSetting(s, p,
1003 Settings.Global.WFC_IMS_ROAMING_MODE,
1004 GlobalSettingsProto.WFC_IMS_ROAMING_MODE);
1005 dumpSetting(s, p,
1006 Settings.Global.WFC_IMS_ROAMING_ENABLED,
1007 GlobalSettingsProto.WFC_IMS_ROAMING_ENABLED);
1008 dumpSetting(s, p,
1009 Settings.Global.LTE_SERVICE_FORCED,
1010 GlobalSettingsProto.LTE_SERVICE_FORCED);
1011 dumpSetting(s, p,
1012 Settings.Global.EPHEMERAL_COOKIE_MAX_SIZE_BYTES,
1013 GlobalSettingsProto.EPHEMERAL_COOKIE_MAX_SIZE_BYTES);
1014 dumpSetting(s, p,
1015 Settings.Global.ENABLE_EPHEMERAL_FEATURE,
1016 GlobalSettingsProto.ENABLE_EPHEMERAL_FEATURE);
1017 dumpSetting(s, p,
Kweku Adamsb0886f32017-10-31 15:32:09 -07001018 Settings.Global.INSTANT_APP_DEXOPT_ENABLED,
1019 GlobalSettingsProto.INSTANT_APP_DEXOPT_ENABLED);
Svet Ganovf36d53c2017-05-24 00:27:21 -07001020 dumpSetting(s, p,
1021 Settings.Global.INSTALLED_INSTANT_APP_MIN_CACHE_PERIOD,
1022 GlobalSettingsProto.INSTALLED_INSTANT_APP_MIN_CACHE_PERIOD);
1023 dumpSetting(s, p,
1024 Settings.Global.INSTALLED_INSTANT_APP_MAX_CACHE_PERIOD,
1025 GlobalSettingsProto.INSTALLED_INSTANT_APP_MAX_CACHE_PERIOD);
1026 dumpSetting(s, p,
Kweku Adamsb0886f32017-10-31 15:32:09 -07001027 Settings.Global.UNINSTALLED_INSTANT_APP_MIN_CACHE_PERIOD,
1028 GlobalSettingsProto.UNINSTALLED_INSTANT_APP_MIN_CACHE_PERIOD);
1029 dumpSetting(s, p,
1030 Settings.Global.UNINSTALLED_INSTANT_APP_MAX_CACHE_PERIOD,
1031 GlobalSettingsProto.UNINSTALLED_INSTANT_APP_MAX_CACHE_PERIOD);
1032 dumpSetting(s, p,
Svet Ganovf36d53c2017-05-24 00:27:21 -07001033 Settings.Global.UNUSED_STATIC_SHARED_LIB_MIN_CACHE_PERIOD,
1034 GlobalSettingsProto.UNUSED_STATIC_SHARED_LIB_MIN_CACHE_PERIOD);
Eugene Suslad72c3972016-12-27 15:49:30 -08001035 dumpSetting(s, p,
1036 Settings.Global.ALLOW_USER_SWITCHING_WHEN_SYSTEM_USER_LOCKED,
1037 GlobalSettingsProto.ALLOW_USER_SWITCHING_WHEN_SYSTEM_USER_LOCKED);
1038 dumpSetting(s, p,
1039 Settings.Global.BOOT_COUNT,
1040 GlobalSettingsProto.BOOT_COUNT);
1041 dumpSetting(s, p,
1042 Settings.Global.SAFE_BOOT_DISALLOWED,
1043 GlobalSettingsProto.SAFE_BOOT_DISALLOWED);
1044 dumpSetting(s, p,
1045 Settings.Global.DEVICE_DEMO_MODE,
1046 GlobalSettingsProto.DEVICE_DEMO_MODE);
1047 dumpSetting(s, p,
Kweku Adamsb0886f32017-10-31 15:32:09 -07001048 Settings.Global.NETWORK_ACCESS_TIMEOUT_MS,
1049 GlobalSettingsProto.NETWORK_ACCESS_TIMEOUT_MS);
1050 dumpSetting(s, p,
Eugene Suslad72c3972016-12-27 15:49:30 -08001051 Settings.Global.DATABASE_DOWNGRADE_REASON,
1052 GlobalSettingsProto.DATABASE_DOWNGRADE_REASON);
1053 dumpSetting(s, p,
Kweku Adamsb0886f32017-10-31 15:32:09 -07001054 Settings.Global.DATABASE_CREATION_BUILDID,
1055 GlobalSettingsProto.DATABASE_CREATION_BUILDID);
1056 dumpSetting(s, p,
Eugene Suslad72c3972016-12-27 15:49:30 -08001057 Settings.Global.CONTACTS_DATABASE_WAL_ENABLED,
1058 GlobalSettingsProto.CONTACTS_DATABASE_WAL_ENABLED);
1059 dumpSetting(s, p,
Kweku Adamsb0886f32017-10-31 15:32:09 -07001060 Settings.Global.LOCATION_SETTINGS_LINK_TO_PERMISSIONS_ENABLED,
1061 GlobalSettingsProto.LOCATION_SETTINGS_LINK_TO_PERMISSIONS_ENABLED);
1062 dumpSetting(s, p,
Kweku Adamsb0886f32017-10-31 15:32:09 -07001063 Settings.Global.EUICC_FACTORY_RESET_TIMEOUT_MILLIS,
1064 GlobalSettingsProto.EUICC_FACTORY_RESET_TIMEOUT_MILLIS);
1065 dumpSetting(s, p,
1066 Settings.Global.STORAGE_SETTINGS_CLOBBER_THRESHOLD,
1067 GlobalSettingsProto.STORAGE_SETTINGS_CLOBBER_THRESHOLD);
1068 dumpSetting(s, p,
Eugene Suslad72c3972016-12-27 15:49:30 -08001069 Settings.Global.MULTI_SIM_VOICE_CALL_SUBSCRIPTION,
1070 GlobalSettingsProto.MULTI_SIM_VOICE_CALL_SUBSCRIPTION);
1071 dumpSetting(s, p,
1072 Settings.Global.MULTI_SIM_VOICE_PROMPT,
1073 GlobalSettingsProto.MULTI_SIM_VOICE_PROMPT);
1074 dumpSetting(s, p,
1075 Settings.Global.MULTI_SIM_DATA_CALL_SUBSCRIPTION,
1076 GlobalSettingsProto.MULTI_SIM_DATA_CALL_SUBSCRIPTION);
1077 dumpSetting(s, p,
1078 Settings.Global.MULTI_SIM_SMS_SUBSCRIPTION,
1079 GlobalSettingsProto.MULTI_SIM_SMS_SUBSCRIPTION);
1080 dumpSetting(s, p,
1081 Settings.Global.MULTI_SIM_SMS_PROMPT,
1082 GlobalSettingsProto.MULTI_SIM_SMS_PROMPT);
1083 dumpSetting(s, p,
1084 Settings.Global.NEW_CONTACT_AGGREGATOR,
1085 GlobalSettingsProto.NEW_CONTACT_AGGREGATOR);
Kweku Adamsb0886f32017-10-31 15:32:09 -07001086 // Settings.Global.CONTACT_METADATA_SYNC intentionally excluded since it's deprecated.
Eugene Suslad72c3972016-12-27 15:49:30 -08001087 dumpSetting(s, p,
1088 Settings.Global.CONTACT_METADATA_SYNC_ENABLED,
1089 GlobalSettingsProto.CONTACT_METADATA_SYNC_ENABLED);
1090 dumpSetting(s, p,
1091 Settings.Global.ENABLE_CELLULAR_ON_BOOT,
1092 GlobalSettingsProto.ENABLE_CELLULAR_ON_BOOT);
1093 dumpSetting(s, p,
1094 Settings.Global.MAX_NOTIFICATION_ENQUEUE_RATE,
1095 GlobalSettingsProto.MAX_NOTIFICATION_ENQUEUE_RATE);
1096 dumpSetting(s, p,
Kweku Adamsb0886f32017-10-31 15:32:09 -07001097 Settings.Global.SHOW_NOTIFICATION_CHANNEL_WARNINGS,
1098 GlobalSettingsProto.SHOW_NOTIFICATION_CHANNEL_WARNINGS);
1099 dumpSetting(s, p,
Eugene Suslad72c3972016-12-27 15:49:30 -08001100 Settings.Global.CELL_ON,
1101 GlobalSettingsProto.CELL_ON);
Kweku Adamsb0886f32017-10-31 15:32:09 -07001102 dumpSetting(s, p,
1103 Settings.Global.SHOW_TEMPERATURE_WARNING,
1104 GlobalSettingsProto.SHOW_TEMPERATURE_WARNING);
1105 dumpSetting(s, p,
1106 Settings.Global.WARNING_TEMPERATURE,
1107 GlobalSettingsProto.WARNING_TEMPERATURE);
1108 dumpSetting(s, p,
1109 Settings.Global.ENABLE_DISKSTATS_LOGGING,
1110 GlobalSettingsProto.ENABLE_DISKSTATS_LOGGING);
1111 dumpSetting(s, p,
1112 Settings.Global.ENABLE_CACHE_QUOTA_CALCULATION,
1113 GlobalSettingsProto.ENABLE_CACHE_QUOTA_CALCULATION);
1114 dumpSetting(s, p,
1115 Settings.Global.ENABLE_DELETION_HELPER_NO_THRESHOLD_TOGGLE,
1116 GlobalSettingsProto.ENABLE_DELETION_HELPER_NO_THRESHOLD_TOGGLE);
1117 // The list of snooze options for notifications. This is encoded as a key=value list,
1118 // separated by commas.
1119 dumpSetting(s, p,
1120 Settings.Global.NOTIFICATION_SNOOZE_OPTIONS,
1121 GlobalSettingsProto.NOTIFICATION_SNOOZE_OPTIONS);
Daniel Colascione766b6322018-01-08 19:10:36 -08001122 dumpSetting(s, p,
1123 Settings.Global.ZRAM_ENABLED,
1124 GlobalSettingsProto.ZRAM_ENABLED);
Petr Cermak9669e902018-01-16 16:37:22 +00001125 dumpSetting(s, p,
1126 Settings.Global.ENABLE_SMART_REPLIES_IN_NOTIFICATIONS,
1127 GlobalSettingsProto.ENABLE_SMART_REPLIES_IN_NOTIFICATIONS);
Andrew Sapperstein43643ae2017-12-20 15:17:33 -08001128 dumpSetting(s, p,
1129 Settings.Global.SHOW_FIRST_CRASH_DIALOG,
1130 GlobalSettingsProto.SHOW_FIRST_CRASH_DIALOG);
Jong Wook Kim0a20eda2018-01-05 18:40:25 -08001131 dumpSetting(s, p,
1132 Settings.Global.WIFI_CONNECTED_MAC_RANDOMIZATION_ENABLED,
1133 GlobalSettingsProto.WIFI_CONNECTED_MAC_RANDOMIZATION_ENABLED);
Eugene Suslad72c3972016-12-27 15:49:30 -08001134 }
1135
1136 /** Dump a single {@link SettingsState.Setting} to a proto buf */
1137 private static void dumpSetting(@NonNull SettingsState settings,
1138 @NonNull ProtoOutputStream proto, String settingName, long fieldId) {
1139 SettingsState.Setting setting = settings.getSettingLocked(settingName);
1140 long settingsToken = proto.start(fieldId);
1141 proto.write(SettingProto.ID, setting.getId());
1142 proto.write(SettingProto.NAME, settingName);
1143 if (setting.getPackageName() != null) {
1144 proto.write(SettingProto.PKG, setting.getPackageName());
1145 }
1146 proto.write(SettingProto.VALUE, setting.getValue());
1147 if (setting.getDefaultValue() != null) {
1148 proto.write(SettingProto.DEFAULT_VALUE, setting.getDefaultValue());
1149 proto.write(SettingProto.DEFAULT_FROM_SYSTEM, setting.isDefaultFromSystem());
1150 }
1151 proto.end(settingsToken);
1152 }
1153
1154 static void dumpProtoSecureSettingsLocked(
1155 @NonNull SettingsState s, @NonNull ProtoOutputStream p) {
Kweku Adamsb0886f32017-10-31 15:32:09 -07001156 s.dumpHistoricalOperations(p, SecureSettingsProto.HISTORICAL_OPERATIONS);
1157
1158 // This uses the same order as in Settings.Secure.
1159
1160 // Settings.Secure.DEVELOPMENT_SETTINGS_ENABLED intentionally excluded since it's deprecated.
1161 // Settings.Secure.BUGREPORT_IN_POWER_MENU intentionally excluded since it's deprecated.
1162 // Settings.Secure.ADB_ENABLED intentionally excluded since it's deprecated.
1163 // Settings.Secure.ALLOW_MOCK_LOCATION intentionally excluded since it's deprecated.
Eugene Suslad72c3972016-12-27 15:49:30 -08001164 dumpSetting(s, p,
1165 Settings.Secure.ANDROID_ID,
1166 SecureSettingsProto.ANDROID_ID);
Kweku Adamsb0886f32017-10-31 15:32:09 -07001167 // Settings.Secure.BLUETOOTH_ON intentionally excluded since it's deprecated.
1168 // Settings.Secure.DATA_ROAMING intentionally excluded since it's deprecated.
Eugene Suslad72c3972016-12-27 15:49:30 -08001169 dumpSetting(s, p,
1170 Settings.Secure.DEFAULT_INPUT_METHOD,
1171 SecureSettingsProto.DEFAULT_INPUT_METHOD);
1172 dumpSetting(s, p,
1173 Settings.Secure.SELECTED_INPUT_METHOD_SUBTYPE,
1174 SecureSettingsProto.SELECTED_INPUT_METHOD_SUBTYPE);
1175 dumpSetting(s, p,
1176 Settings.Secure.INPUT_METHODS_SUBTYPE_HISTORY,
1177 SecureSettingsProto.INPUT_METHODS_SUBTYPE_HISTORY);
1178 dumpSetting(s, p,
1179 Settings.Secure.INPUT_METHOD_SELECTOR_VISIBILITY,
1180 SecureSettingsProto.INPUT_METHOD_SELECTOR_VISIBILITY);
1181 dumpSetting(s, p,
1182 Settings.Secure.VOICE_INTERACTION_SERVICE,
1183 SecureSettingsProto.VOICE_INTERACTION_SERVICE);
1184 dumpSetting(s, p,
Felipe Leme640f30a2017-03-06 15:44:06 -08001185 Settings.Secure.AUTOFILL_SERVICE,
1186 SecureSettingsProto.AUTOFILL_SERVICE);
Kweku Adamsb0886f32017-10-31 15:32:09 -07001187 // Settings.Secure.DEVICE_PROVISIONED intentionally excluded since it's deprecated.
Eugene Suslad72c3972016-12-27 15:49:30 -08001188 dumpSetting(s, p,
Eugene Suslad72c3972016-12-27 15:49:30 -08001189 Settings.Secure.USER_SETUP_COMPLETE,
1190 SecureSettingsProto.USER_SETUP_COMPLETE);
Kweku Adamsb0886f32017-10-31 15:32:09 -07001191 // Whether the current user has been set up via setup wizard (0 = false, 1 = true). This
1192 // value differs from USER_SETUP_COMPLETE in that it can be reset back to 0 in case
1193 // SetupWizard has been re-enabled on TV devices.
1194 dumpSetting(s, p,
1195 Settings.Secure.TV_USER_SETUP_COMPLETE,
1196 SecureSettingsProto.TV_USER_SETUP_COMPLETE);
Eugene Suslad72c3972016-12-27 15:49:30 -08001197 dumpSetting(s, p,
1198 Settings.Secure.COMPLETED_CATEGORY_PREFIX,
1199 SecureSettingsProto.COMPLETED_CATEGORY_PREFIX);
1200 dumpSetting(s, p,
1201 Settings.Secure.ENABLED_INPUT_METHODS,
1202 SecureSettingsProto.ENABLED_INPUT_METHODS);
1203 dumpSetting(s, p,
1204 Settings.Secure.DISABLED_SYSTEM_INPUT_METHODS,
1205 SecureSettingsProto.DISABLED_SYSTEM_INPUT_METHODS);
1206 dumpSetting(s, p,
1207 Settings.Secure.SHOW_IME_WITH_HARD_KEYBOARD,
1208 SecureSettingsProto.SHOW_IME_WITH_HARD_KEYBOARD);
Kweku Adamsb0886f32017-10-31 15:32:09 -07001209 // Settings.Secure.HTTP_PROXY intentionally excluded since it's deprecated.
Eugene Suslad72c3972016-12-27 15:49:30 -08001210 dumpSetting(s, p,
1211 Settings.Secure.ALWAYS_ON_VPN_APP,
1212 SecureSettingsProto.ALWAYS_ON_VPN_APP);
1213 dumpSetting(s, p,
1214 Settings.Secure.ALWAYS_ON_VPN_LOCKDOWN,
1215 SecureSettingsProto.ALWAYS_ON_VPN_LOCKDOWN);
1216 dumpSetting(s, p,
1217 Settings.Secure.INSTALL_NON_MARKET_APPS,
1218 SecureSettingsProto.INSTALL_NON_MARKET_APPS);
1219 dumpSetting(s, p,
Kweku Adamsb0886f32017-10-31 15:32:09 -07001220 Settings.Secure.UNKNOWN_SOURCES_DEFAULT_REVERSED,
1221 SecureSettingsProto.UNKNOWN_SOURCES_DEFAULT_REVERSED);
1222 // Settings.Secure.LOCATION_PROVIDERS_ALLOWED intentionally excluded since it's deprecated.
1223 dumpSetting(s, p,
Eugene Suslad72c3972016-12-27 15:49:30 -08001224 Settings.Secure.LOCATION_MODE,
1225 SecureSettingsProto.LOCATION_MODE);
Kweku Adamsb0886f32017-10-31 15:32:09 -07001226 // Settings.Secure.LOCK_BIOMETRIC_WEAK_FLAGS intentionally excluded since it's deprecated.
Eugene Suslad72c3972016-12-27 15:49:30 -08001227 dumpSetting(s, p,
1228 Settings.Secure.LOCK_TO_APP_EXIT_LOCKED,
1229 SecureSettingsProto.LOCK_TO_APP_EXIT_LOCKED);
Kweku Adamsb0886f32017-10-31 15:32:09 -07001230 // Settings.Secure.LOCK_PATTERN_ENABLED intentionally excluded since it's deprecated.
1231 // Settings.Secure.LOCK_PATTERN_VISIBLE intentionally excluded since it's deprecated.
1232 // Settings.Secure.LOCK_PATTERN_TACTICLE_FEEDBACK_ENABLED intentionally excluded since it's deprecated.
Eugene Suslad72c3972016-12-27 15:49:30 -08001233 dumpSetting(s, p,
1234 Settings.Secure.LOCK_SCREEN_LOCK_AFTER_TIMEOUT,
1235 SecureSettingsProto.LOCK_SCREEN_LOCK_AFTER_TIMEOUT);
Kweku Adamsb0886f32017-10-31 15:32:09 -07001236 // Settings.Secure.LOCK_SCREEN_OWNER_INFO intentionally excluded since it's deprecated.
1237 // Settings.Secure.LOCK_SCREEN_APPWIDGET_IDS intentionally excluded since it's deprecated.
1238 // Settings.Secure.LOCK_SCREEN_FALLBACK_APPWIDGET_ID intentionally excluded since it's deprecated.
1239 // Settings.Secure.LOCK_SCREEN_STICKY_APPWIDGET intentionally excluded since it's deprecated.
1240 // Settings.Secure.LOCK_SCREEN_OWNER_INFO_ENABLED intentionally excluded since it's deprecated.
1241 dumpSetting(s, p,
1242 Settings.Secure.LOCK_SCREEN_ALLOW_PRIVATE_NOTIFICATIONS,
1243 SecureSettingsProto.LOCK_SCREEN_ALLOW_PRIVATE_NOTIFICATIONS);
Eugene Suslad72c3972016-12-27 15:49:30 -08001244 dumpSetting(s, p,
1245 Settings.Secure.LOCK_SCREEN_ALLOW_REMOTE_INPUT,
1246 SecureSettingsProto.LOCK_SCREEN_ALLOW_REMOTE_INPUT);
1247 dumpSetting(s, p,
1248 Settings.Secure.SHOW_NOTE_ABOUT_NOTIFICATION_HIDING,
1249 SecureSettingsProto.SHOW_NOTE_ABOUT_NOTIFICATION_HIDING);
1250 dumpSetting(s, p,
1251 Settings.Secure.TRUST_AGENTS_INITIALIZED,
1252 SecureSettingsProto.TRUST_AGENTS_INITIALIZED);
Kweku Adamsb0886f32017-10-31 15:32:09 -07001253 // Settings.Secure.LOGGING_ID intentionally excluded since it's deprecated.
1254 // Settings.Secure.NETWORK_PREFERENCE intentionally excluded since it's deprecated.
Eugene Suslad72c3972016-12-27 15:49:30 -08001255 dumpSetting(s, p,
1256 Settings.Secure.PARENTAL_CONTROL_ENABLED,
1257 SecureSettingsProto.PARENTAL_CONTROL_ENABLED);
1258 dumpSetting(s, p,
1259 Settings.Secure.PARENTAL_CONTROL_LAST_UPDATE,
1260 SecureSettingsProto.PARENTAL_CONTROL_LAST_UPDATE);
1261 dumpSetting(s, p,
1262 Settings.Secure.PARENTAL_CONTROL_REDIRECT_URL,
1263 SecureSettingsProto.PARENTAL_CONTROL_REDIRECT_URL);
1264 dumpSetting(s, p,
1265 Settings.Secure.SETTINGS_CLASSNAME,
1266 SecureSettingsProto.SETTINGS_CLASSNAME);
Kweku Adamsb0886f32017-10-31 15:32:09 -07001267 // Settings.Secure.USB_MASS_STORAGE_ENABLED intentionally excluded since it's deprecated.
1268 // Settings.Secure.USE_GOOGLE_MAIL intentionally excluded since it's deprecated.
Eugene Suslad72c3972016-12-27 15:49:30 -08001269 dumpSetting(s, p,
1270 Settings.Secure.ACCESSIBILITY_ENABLED,
1271 SecureSettingsProto.ACCESSIBILITY_ENABLED);
1272 dumpSetting(s, p,
Kweku Adamsb0886f32017-10-31 15:32:09 -07001273 Settings.Secure.ACCESSIBILITY_SHORTCUT_ENABLED,
1274 SecureSettingsProto.ACCESSIBILITY_SHORTCUT_ENABLED);
1275 dumpSetting(s, p,
1276 Settings.Secure.ACCESSIBILITY_SHORTCUT_ON_LOCK_SCREEN,
1277 SecureSettingsProto.ACCESSIBILITY_SHORTCUT_ON_LOCK_SCREEN);
1278 dumpSetting(s, p,
1279 Settings.Secure.ACCESSIBILITY_SHORTCUT_DIALOG_SHOWN,
1280 SecureSettingsProto.ACCESSIBILITY_SHORTCUT_DIALOG_SHOWN);
1281 dumpSetting(s, p,
1282 Settings.Secure.ACCESSIBILITY_SHORTCUT_TARGET_SERVICE,
1283 SecureSettingsProto.ACCESSIBILITY_SHORTCUT_TARGET_SERVICE);
1284 dumpSetting(s, p,
1285 Settings.Secure.ACCESSIBILITY_BUTTON_TARGET_COMPONENT,
1286 SecureSettingsProto.ACCESSIBILITY_BUTTON_TARGET_COMPONENT);
1287 dumpSetting(s, p,
Eugene Suslad72c3972016-12-27 15:49:30 -08001288 Settings.Secure.TOUCH_EXPLORATION_ENABLED,
1289 SecureSettingsProto.TOUCH_EXPLORATION_ENABLED);
1290 dumpSetting(s, p,
1291 Settings.Secure.ENABLED_ACCESSIBILITY_SERVICES,
1292 SecureSettingsProto.ENABLED_ACCESSIBILITY_SERVICES);
1293 dumpSetting(s, p,
1294 Settings.Secure.TOUCH_EXPLORATION_GRANTED_ACCESSIBILITY_SERVICES,
1295 SecureSettingsProto.TOUCH_EXPLORATION_GRANTED_ACCESSIBILITY_SERVICES);
1296 dumpSetting(s, p,
1297 Settings.Secure.ACCESSIBILITY_SPEAK_PASSWORD,
1298 SecureSettingsProto.ACCESSIBILITY_SPEAK_PASSWORD);
1299 dumpSetting(s, p,
1300 Settings.Secure.ACCESSIBILITY_HIGH_TEXT_CONTRAST_ENABLED,
1301 SecureSettingsProto.ACCESSIBILITY_HIGH_TEXT_CONTRAST_ENABLED);
1302 dumpSetting(s, p,
Eugene Suslad72c3972016-12-27 15:49:30 -08001303 Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_ENABLED,
1304 SecureSettingsProto.ACCESSIBILITY_DISPLAY_MAGNIFICATION_ENABLED);
1305 dumpSetting(s, p,
Kweku Adamsb0886f32017-10-31 15:32:09 -07001306 Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_NAVBAR_ENABLED,
1307 SecureSettingsProto.ACCESSIBILITY_DISPLAY_MAGNIFICATION_NAVBAR_ENABLED);
1308 dumpSetting(s, p,
Eugene Suslad72c3972016-12-27 15:49:30 -08001309 Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_SCALE,
1310 SecureSettingsProto.ACCESSIBILITY_DISPLAY_MAGNIFICATION_SCALE);
1311 dumpSetting(s, p,
Kweku Adamsb0886f32017-10-31 15:32:09 -07001312 Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_AUTO_UPDATE,
1313 SecureSettingsProto.ACCESSIBILITY_DISPLAY_MAGNIFICATION_AUTO_UPDATE);
1314 dumpSetting(s, p,
Eugene Suslad72c3972016-12-27 15:49:30 -08001315 Settings.Secure.ACCESSIBILITY_SOFT_KEYBOARD_MODE,
1316 SecureSettingsProto.ACCESSIBILITY_SOFT_KEYBOARD_MODE);
1317 dumpSetting(s, p,
1318 Settings.Secure.ACCESSIBILITY_CAPTIONING_ENABLED,
1319 SecureSettingsProto.ACCESSIBILITY_CAPTIONING_ENABLED);
1320 dumpSetting(s, p,
1321 Settings.Secure.ACCESSIBILITY_CAPTIONING_LOCALE,
1322 SecureSettingsProto.ACCESSIBILITY_CAPTIONING_LOCALE);
1323 dumpSetting(s, p,
1324 Settings.Secure.ACCESSIBILITY_CAPTIONING_PRESET,
1325 SecureSettingsProto.ACCESSIBILITY_CAPTIONING_PRESET);
1326 dumpSetting(s, p,
1327 Settings.Secure.ACCESSIBILITY_CAPTIONING_BACKGROUND_COLOR,
1328 SecureSettingsProto.ACCESSIBILITY_CAPTIONING_BACKGROUND_COLOR);
1329 dumpSetting(s, p,
1330 Settings.Secure.ACCESSIBILITY_CAPTIONING_FOREGROUND_COLOR,
1331 SecureSettingsProto.ACCESSIBILITY_CAPTIONING_FOREGROUND_COLOR);
1332 dumpSetting(s, p,
1333 Settings.Secure.ACCESSIBILITY_CAPTIONING_EDGE_TYPE,
1334 SecureSettingsProto.ACCESSIBILITY_CAPTIONING_EDGE_TYPE);
1335 dumpSetting(s, p,
1336 Settings.Secure.ACCESSIBILITY_CAPTIONING_EDGE_COLOR,
1337 SecureSettingsProto.ACCESSIBILITY_CAPTIONING_EDGE_COLOR);
1338 dumpSetting(s, p,
1339 Settings.Secure.ACCESSIBILITY_CAPTIONING_WINDOW_COLOR,
1340 SecureSettingsProto.ACCESSIBILITY_CAPTIONING_WINDOW_COLOR);
1341 dumpSetting(s, p,
1342 Settings.Secure.ACCESSIBILITY_CAPTIONING_TYPEFACE,
1343 SecureSettingsProto.ACCESSIBILITY_CAPTIONING_TYPEFACE);
1344 dumpSetting(s, p,
1345 Settings.Secure.ACCESSIBILITY_CAPTIONING_FONT_SCALE,
1346 SecureSettingsProto.ACCESSIBILITY_CAPTIONING_FONT_SCALE);
1347 dumpSetting(s, p,
1348 Settings.Secure.ACCESSIBILITY_DISPLAY_INVERSION_ENABLED,
1349 SecureSettingsProto.ACCESSIBILITY_DISPLAY_INVERSION_ENABLED);
1350 dumpSetting(s, p,
1351 Settings.Secure.ACCESSIBILITY_DISPLAY_DALTONIZER_ENABLED,
1352 SecureSettingsProto.ACCESSIBILITY_DISPLAY_DALTONIZER_ENABLED);
1353 dumpSetting(s, p,
1354 Settings.Secure.ACCESSIBILITY_DISPLAY_DALTONIZER,
1355 SecureSettingsProto.ACCESSIBILITY_DISPLAY_DALTONIZER);
1356 dumpSetting(s, p,
1357 Settings.Secure.ACCESSIBILITY_AUTOCLICK_ENABLED,
1358 SecureSettingsProto.ACCESSIBILITY_AUTOCLICK_ENABLED);
1359 dumpSetting(s, p,
1360 Settings.Secure.ACCESSIBILITY_AUTOCLICK_DELAY,
1361 SecureSettingsProto.ACCESSIBILITY_AUTOCLICK_DELAY);
1362 dumpSetting(s, p,
1363 Settings.Secure.ACCESSIBILITY_LARGE_POINTER_ICON,
1364 SecureSettingsProto.ACCESSIBILITY_LARGE_POINTER_ICON);
1365 dumpSetting(s, p,
1366 Settings.Secure.LONG_PRESS_TIMEOUT,
1367 SecureSettingsProto.LONG_PRESS_TIMEOUT);
1368 dumpSetting(s, p,
1369 Settings.Secure.MULTI_PRESS_TIMEOUT,
1370 SecureSettingsProto.MULTI_PRESS_TIMEOUT);
1371 dumpSetting(s, p,
1372 Settings.Secure.ENABLED_PRINT_SERVICES,
1373 SecureSettingsProto.ENABLED_PRINT_SERVICES);
1374 dumpSetting(s, p,
1375 Settings.Secure.DISABLED_PRINT_SERVICES,
1376 SecureSettingsProto.DISABLED_PRINT_SERVICES);
1377 dumpSetting(s, p,
1378 Settings.Secure.DISPLAY_DENSITY_FORCED,
1379 SecureSettingsProto.DISPLAY_DENSITY_FORCED);
Kweku Adamsb0886f32017-10-31 15:32:09 -07001380 // Settings.Secure.TTS_USE_DEFAULTS intentionally excluded since it's deprecated.
Eugene Suslad72c3972016-12-27 15:49:30 -08001381 dumpSetting(s, p,
1382 Settings.Secure.TTS_DEFAULT_RATE,
1383 SecureSettingsProto.TTS_DEFAULT_RATE);
1384 dumpSetting(s, p,
1385 Settings.Secure.TTS_DEFAULT_PITCH,
1386 SecureSettingsProto.TTS_DEFAULT_PITCH);
1387 dumpSetting(s, p,
1388 Settings.Secure.TTS_DEFAULT_SYNTH,
1389 SecureSettingsProto.TTS_DEFAULT_SYNTH);
Kweku Adamsb0886f32017-10-31 15:32:09 -07001390 // Settings.Secure.TTS_DEFAULT_LANG intentionally excluded since it's deprecated.
1391 // Settings.Secure.TTS_DEFAULT_COUNTRY intentionally excluded since it's deprecated.
1392 // Settings.Secure.TTS_DEFAULT_VARIANT intentionally excluded since it's deprecated.
Eugene Suslad72c3972016-12-27 15:49:30 -08001393 dumpSetting(s, p,
1394 Settings.Secure.TTS_DEFAULT_LOCALE,
1395 SecureSettingsProto.TTS_DEFAULT_LOCALE);
1396 dumpSetting(s, p,
1397 Settings.Secure.TTS_ENABLED_PLUGINS,
1398 SecureSettingsProto.TTS_ENABLED_PLUGINS);
Kweku Adamsb0886f32017-10-31 15:32:09 -07001399 // Settings.Secure.WIFI_NETWORKS_AVAILABLE_NOTIFICATION_ON intentionally excluded since it's deprecated.
1400 // Settings.Secure.WIFI_NETWORKS_AVAILABLE_REPEAT_DELAY intentionally excluded since it's deprecated.
1401 // Settings.Secure.WIFI_NUM_OPEN_NETWORKS_KEPT intentionally excluded since it's deprecated.
1402 // Settings.Secure.WIFI_ON intentionally excluded since it's deprecated.
1403 // Settings.Secure.WIFI_WATCHDOG_ACCEPTABLE_PACKET_LOSS_PERCENTAGE intentionally excluded since it's deprecated.
1404 // Settings.Secure.WIFI_WATCHDOG_AP_COUNT intentionally excluded since it's deprecated.
1405 // Settings.Secure.WIFI_WATCHDOG_BACKGROUND_CHECK_DELAY_MS intentionally excluded since it's deprecated.
1406 // Settings.Secure.WIFI_WATCHDOG_BACKGROUND_CHECK_ENABLED intentionally excluded since it's deprecated.
1407 // Settings.Secure.WIFI_WATCHDOG_BACKGROUND_CHECK_TIMEOUT_MS intentionally excluded since it's deprecated.
1408 // Settings.Secure.WIFI_WATCHDOG_INITIAL_IGNORED_PING_COUNT intentionally excluded since it's deprecated.
1409 // Settings.Secure.WIFI_WATCHDOG_MAX_AP_CHECKS intentionally excluded since it's deprecated.
1410 // Settings.Secure.WIFI_WATCHDOG_ON intentionally excluded since it's deprecated.
1411 // Settings.Secure.WIFI_WATCHDOG_WATCH_LIST intentionally excluded since it's deprecated.
1412 // Settings.Secure.WIFI_WATCHDOG_PING_COUNT intentionally excluded since it's deprecated.
1413 // Settings.Secure.WIFI_WATCHDOG_PING_DELAY_MS intentionally excluded since it's deprecated.
1414 // Settings.Secure.WIFI_WATCHDOG_PING_TIMEOUT_MS intentionally excluded since it's deprecated.
1415 // Settings.Secure.WIFI_MAX_DHCP_RETRY_COUNT intentionally excluded since it's deprecated.
1416 // Settings.Secure.WIFI_MOBILE_DATA_TRANSITION_WAKELOCK_TIMEOUT_MS intentionally excluded since it's deprecated.
Eugene Suslad72c3972016-12-27 15:49:30 -08001417 dumpSetting(s, p,
1418 Settings.Secure.CONNECTIVITY_RELEASE_PENDING_INTENT_DELAY_MS,
1419 SecureSettingsProto.CONNECTIVITY_RELEASE_PENDING_INTENT_DELAY_MS);
Kweku Adamsb0886f32017-10-31 15:32:09 -07001420 // Settings.Secure.BACKGROUND_DATA intentionally excluded since it's deprecated.
Eugene Suslad72c3972016-12-27 15:49:30 -08001421 dumpSetting(s, p,
1422 Settings.Secure.ALLOWED_GEOLOCATION_ORIGINS,
1423 SecureSettingsProto.ALLOWED_GEOLOCATION_ORIGINS);
1424 dumpSetting(s, p,
1425 Settings.Secure.PREFERRED_TTY_MODE,
1426 SecureSettingsProto.PREFERRED_TTY_MODE);
1427 dumpSetting(s, p,
1428 Settings.Secure.ENHANCED_VOICE_PRIVACY_ENABLED,
1429 SecureSettingsProto.ENHANCED_VOICE_PRIVACY_ENABLED);
1430 dumpSetting(s, p,
1431 Settings.Secure.TTY_MODE_ENABLED,
1432 SecureSettingsProto.TTY_MODE_ENABLED);
1433 dumpSetting(s, p,
1434 Settings.Secure.BACKUP_ENABLED,
1435 SecureSettingsProto.BACKUP_ENABLED);
1436 dumpSetting(s, p,
1437 Settings.Secure.BACKUP_AUTO_RESTORE,
1438 SecureSettingsProto.BACKUP_AUTO_RESTORE);
1439 dumpSetting(s, p,
1440 Settings.Secure.BACKUP_PROVISIONED,
1441 SecureSettingsProto.BACKUP_PROVISIONED);
1442 dumpSetting(s, p,
1443 Settings.Secure.BACKUP_TRANSPORT,
1444 SecureSettingsProto.BACKUP_TRANSPORT);
1445 dumpSetting(s, p,
1446 Settings.Secure.LAST_SETUP_SHOWN,
1447 SecureSettingsProto.LAST_SETUP_SHOWN);
Kweku Adamsb0886f32017-10-31 15:32:09 -07001448 // Settings.Secure.WIFI_IDLE_MS intentionally excluded since it's deprecated.
Eugene Suslad72c3972016-12-27 15:49:30 -08001449 dumpSetting(s, p,
1450 Settings.Secure.SEARCH_GLOBAL_SEARCH_ACTIVITY,
1451 SecureSettingsProto.SEARCH_GLOBAL_SEARCH_ACTIVITY);
1452 dumpSetting(s, p,
1453 Settings.Secure.SEARCH_NUM_PROMOTED_SOURCES,
1454 SecureSettingsProto.SEARCH_NUM_PROMOTED_SOURCES);
1455 dumpSetting(s, p,
1456 Settings.Secure.SEARCH_MAX_RESULTS_TO_DISPLAY,
1457 SecureSettingsProto.SEARCH_MAX_RESULTS_TO_DISPLAY);
1458 dumpSetting(s, p,
1459 Settings.Secure.SEARCH_MAX_RESULTS_PER_SOURCE,
1460 SecureSettingsProto.SEARCH_MAX_RESULTS_PER_SOURCE);
1461 dumpSetting(s, p,
1462 Settings.Secure.SEARCH_WEB_RESULTS_OVERRIDE_LIMIT,
1463 SecureSettingsProto.SEARCH_WEB_RESULTS_OVERRIDE_LIMIT);
1464 dumpSetting(s, p,
1465 Settings.Secure.SEARCH_PROMOTED_SOURCE_DEADLINE_MILLIS,
1466 SecureSettingsProto.SEARCH_PROMOTED_SOURCE_DEADLINE_MILLIS);
1467 dumpSetting(s, p,
1468 Settings.Secure.SEARCH_SOURCE_TIMEOUT_MILLIS,
1469 SecureSettingsProto.SEARCH_SOURCE_TIMEOUT_MILLIS);
1470 dumpSetting(s, p,
1471 Settings.Secure.SEARCH_PREFILL_MILLIS,
1472 SecureSettingsProto.SEARCH_PREFILL_MILLIS);
1473 dumpSetting(s, p,
1474 Settings.Secure.SEARCH_MAX_STAT_AGE_MILLIS,
1475 SecureSettingsProto.SEARCH_MAX_STAT_AGE_MILLIS);
1476 dumpSetting(s, p,
1477 Settings.Secure.SEARCH_MAX_SOURCE_EVENT_AGE_MILLIS,
1478 SecureSettingsProto.SEARCH_MAX_SOURCE_EVENT_AGE_MILLIS);
1479 dumpSetting(s, p,
1480 Settings.Secure.SEARCH_MIN_IMPRESSIONS_FOR_SOURCE_RANKING,
1481 SecureSettingsProto.SEARCH_MIN_IMPRESSIONS_FOR_SOURCE_RANKING);
1482 dumpSetting(s, p,
1483 Settings.Secure.SEARCH_MIN_CLICKS_FOR_SOURCE_RANKING,
1484 SecureSettingsProto.SEARCH_MIN_CLICKS_FOR_SOURCE_RANKING);
1485 dumpSetting(s, p,
1486 Settings.Secure.SEARCH_MAX_SHORTCUTS_RETURNED,
1487 SecureSettingsProto.SEARCH_MAX_SHORTCUTS_RETURNED);
1488 dumpSetting(s, p,
1489 Settings.Secure.SEARCH_QUERY_THREAD_CORE_POOL_SIZE,
1490 SecureSettingsProto.SEARCH_QUERY_THREAD_CORE_POOL_SIZE);
1491 dumpSetting(s, p,
1492 Settings.Secure.SEARCH_QUERY_THREAD_MAX_POOL_SIZE,
1493 SecureSettingsProto.SEARCH_QUERY_THREAD_MAX_POOL_SIZE);
1494 dumpSetting(s, p,
1495 Settings.Secure.SEARCH_SHORTCUT_REFRESH_CORE_POOL_SIZE,
1496 SecureSettingsProto.SEARCH_SHORTCUT_REFRESH_CORE_POOL_SIZE);
1497 dumpSetting(s, p,
1498 Settings.Secure.SEARCH_SHORTCUT_REFRESH_MAX_POOL_SIZE,
1499 SecureSettingsProto.SEARCH_SHORTCUT_REFRESH_MAX_POOL_SIZE);
1500 dumpSetting(s, p,
1501 Settings.Secure.SEARCH_THREAD_KEEPALIVE_SECONDS,
1502 SecureSettingsProto.SEARCH_THREAD_KEEPALIVE_SECONDS);
1503 dumpSetting(s, p,
1504 Settings.Secure.SEARCH_PER_SOURCE_CONCURRENT_QUERY_LIMIT,
1505 SecureSettingsProto.SEARCH_PER_SOURCE_CONCURRENT_QUERY_LIMIT);
1506 dumpSetting(s, p,
1507 Settings.Secure.MOUNT_PLAY_NOTIFICATION_SND,
1508 SecureSettingsProto.MOUNT_PLAY_NOTIFICATION_SND);
1509 dumpSetting(s, p,
1510 Settings.Secure.MOUNT_UMS_AUTOSTART,
1511 SecureSettingsProto.MOUNT_UMS_AUTOSTART);
1512 dumpSetting(s, p,
1513 Settings.Secure.MOUNT_UMS_PROMPT,
1514 SecureSettingsProto.MOUNT_UMS_PROMPT);
1515 dumpSetting(s, p,
1516 Settings.Secure.MOUNT_UMS_NOTIFY_ENABLED,
1517 SecureSettingsProto.MOUNT_UMS_NOTIFY_ENABLED);
1518 dumpSetting(s, p,
1519 Settings.Secure.ANR_SHOW_BACKGROUND,
1520 SecureSettingsProto.ANR_SHOW_BACKGROUND);
1521 dumpSetting(s, p,
Andrew Sapperstein43643ae2017-12-20 15:17:33 -08001522 Settings.Secure.SHOW_FIRST_CRASH_DIALOG_DEV_OPTION,
1523 SecureSettingsProto.SHOW_FIRST_CRASH_DIALOG_DEV_OPTION);
1524 dumpSetting(s, p,
Eugene Suslad72c3972016-12-27 15:49:30 -08001525 Settings.Secure.VOICE_RECOGNITION_SERVICE,
1526 SecureSettingsProto.VOICE_RECOGNITION_SERVICE);
1527 dumpSetting(s, p,
1528 Settings.Secure.PACKAGE_VERIFIER_USER_CONSENT,
1529 SecureSettingsProto.PACKAGE_VERIFIER_USER_CONSENT);
1530 dumpSetting(s, p,
1531 Settings.Secure.SELECTED_SPELL_CHECKER,
1532 SecureSettingsProto.SELECTED_SPELL_CHECKER);
1533 dumpSetting(s, p,
1534 Settings.Secure.SELECTED_SPELL_CHECKER_SUBTYPE,
1535 SecureSettingsProto.SELECTED_SPELL_CHECKER_SUBTYPE);
1536 dumpSetting(s, p,
1537 Settings.Secure.SPELL_CHECKER_ENABLED,
1538 SecureSettingsProto.SPELL_CHECKER_ENABLED);
1539 dumpSetting(s, p,
1540 Settings.Secure.INCALL_POWER_BUTTON_BEHAVIOR,
1541 SecureSettingsProto.INCALL_POWER_BUTTON_BEHAVIOR);
1542 dumpSetting(s, p,
1543 Settings.Secure.INCALL_BACK_BUTTON_BEHAVIOR,
1544 SecureSettingsProto.INCALL_BACK_BUTTON_BEHAVIOR);
1545 dumpSetting(s, p,
1546 Settings.Secure.WAKE_GESTURE_ENABLED,
1547 SecureSettingsProto.WAKE_GESTURE_ENABLED);
1548 dumpSetting(s, p,
1549 Settings.Secure.DOZE_ENABLED,
1550 SecureSettingsProto.DOZE_ENABLED);
1551 dumpSetting(s, p,
1552 Settings.Secure.DOZE_ALWAYS_ON,
1553 SecureSettingsProto.DOZE_ALWAYS_ON);
1554 dumpSetting(s, p,
1555 Settings.Secure.DOZE_PULSE_ON_PICK_UP,
1556 SecureSettingsProto.DOZE_PULSE_ON_PICK_UP);
1557 dumpSetting(s, p,
Kweku Adamsb0886f32017-10-31 15:32:09 -07001558 Settings.Secure.DOZE_PULSE_ON_LONG_PRESS,
1559 SecureSettingsProto.DOZE_PULSE_ON_LONG_PRESS);
1560 dumpSetting(s, p,
Eugene Suslad72c3972016-12-27 15:49:30 -08001561 Settings.Secure.DOZE_PULSE_ON_DOUBLE_TAP,
1562 SecureSettingsProto.DOZE_PULSE_ON_DOUBLE_TAP);
1563 dumpSetting(s, p,
1564 Settings.Secure.UI_NIGHT_MODE,
1565 SecureSettingsProto.UI_NIGHT_MODE);
1566 dumpSetting(s, p,
1567 Settings.Secure.SCREENSAVER_ENABLED,
1568 SecureSettingsProto.SCREENSAVER_ENABLED);
1569 dumpSetting(s, p,
1570 Settings.Secure.SCREENSAVER_COMPONENTS,
1571 SecureSettingsProto.SCREENSAVER_COMPONENTS);
1572 dumpSetting(s, p,
1573 Settings.Secure.SCREENSAVER_ACTIVATE_ON_DOCK,
1574 SecureSettingsProto.SCREENSAVER_ACTIVATE_ON_DOCK);
1575 dumpSetting(s, p,
1576 Settings.Secure.SCREENSAVER_ACTIVATE_ON_SLEEP,
1577 SecureSettingsProto.SCREENSAVER_ACTIVATE_ON_SLEEP);
1578 dumpSetting(s, p,
1579 Settings.Secure.SCREENSAVER_DEFAULT_COMPONENT,
1580 SecureSettingsProto.SCREENSAVER_DEFAULT_COMPONENT);
1581 dumpSetting(s, p,
1582 Settings.Secure.NFC_PAYMENT_DEFAULT_COMPONENT,
1583 SecureSettingsProto.NFC_PAYMENT_DEFAULT_COMPONENT);
1584 dumpSetting(s, p,
1585 Settings.Secure.NFC_PAYMENT_FOREGROUND,
1586 SecureSettingsProto.NFC_PAYMENT_FOREGROUND);
1587 dumpSetting(s, p,
1588 Settings.Secure.SMS_DEFAULT_APPLICATION,
1589 SecureSettingsProto.SMS_DEFAULT_APPLICATION);
1590 dumpSetting(s, p,
1591 Settings.Secure.DIALER_DEFAULT_APPLICATION,
1592 SecureSettingsProto.DIALER_DEFAULT_APPLICATION);
1593 dumpSetting(s, p,
1594 Settings.Secure.EMERGENCY_ASSISTANCE_APPLICATION,
1595 SecureSettingsProto.EMERGENCY_ASSISTANCE_APPLICATION);
1596 dumpSetting(s, p,
1597 Settings.Secure.ASSIST_STRUCTURE_ENABLED,
1598 SecureSettingsProto.ASSIST_STRUCTURE_ENABLED);
1599 dumpSetting(s, p,
1600 Settings.Secure.ASSIST_SCREENSHOT_ENABLED,
1601 SecureSettingsProto.ASSIST_SCREENSHOT_ENABLED);
1602 dumpSetting(s, p,
1603 Settings.Secure.ASSIST_DISCLOSURE_ENABLED,
1604 SecureSettingsProto.ASSIST_DISCLOSURE_ENABLED);
1605 dumpSetting(s, p,
1606 Settings.Secure.ENABLED_NOTIFICATION_ASSISTANT,
1607 SecureSettingsProto.ENABLED_NOTIFICATION_ASSISTANT);
1608 dumpSetting(s, p,
1609 Settings.Secure.ENABLED_NOTIFICATION_LISTENERS,
1610 SecureSettingsProto.ENABLED_NOTIFICATION_LISTENERS);
1611 dumpSetting(s, p,
1612 Settings.Secure.ENABLED_NOTIFICATION_POLICY_ACCESS_PACKAGES,
1613 SecureSettingsProto.ENABLED_NOTIFICATION_POLICY_ACCESS_PACKAGES);
1614 dumpSetting(s, p,
1615 Settings.Secure.SYNC_PARENT_SOUNDS,
1616 SecureSettingsProto.SYNC_PARENT_SOUNDS);
1617 dumpSetting(s, p,
1618 Settings.Secure.IMMERSIVE_MODE_CONFIRMATIONS,
1619 SecureSettingsProto.IMMERSIVE_MODE_CONFIRMATIONS);
1620 dumpSetting(s, p,
1621 Settings.Secure.PRINT_SERVICE_SEARCH_URI,
1622 SecureSettingsProto.PRINT_SERVICE_SEARCH_URI);
1623 dumpSetting(s, p,
1624 Settings.Secure.PAYMENT_SERVICE_SEARCH_URI,
1625 SecureSettingsProto.PAYMENT_SERVICE_SEARCH_URI);
1626 dumpSetting(s, p,
Kweku Adamsb0886f32017-10-31 15:32:09 -07001627 Settings.Secure.AUTOFILL_SERVICE_SEARCH_URI,
1628 SecureSettingsProto.AUTOFILL_SERVICE_SEARCH_URI);
1629 dumpSetting(s, p,
Eugene Suslad72c3972016-12-27 15:49:30 -08001630 Settings.Secure.SKIP_FIRST_USE_HINTS,
1631 SecureSettingsProto.SKIP_FIRST_USE_HINTS);
1632 dumpSetting(s, p,
1633 Settings.Secure.UNSAFE_VOLUME_MUSIC_ACTIVE_MS,
1634 SecureSettingsProto.UNSAFE_VOLUME_MUSIC_ACTIVE_MS);
1635 dumpSetting(s, p,
1636 Settings.Secure.LOCK_SCREEN_SHOW_NOTIFICATIONS,
1637 SecureSettingsProto.LOCK_SCREEN_SHOW_NOTIFICATIONS);
1638 dumpSetting(s, p,
1639 Settings.Secure.TV_INPUT_HIDDEN_INPUTS,
1640 SecureSettingsProto.TV_INPUT_HIDDEN_INPUTS);
1641 dumpSetting(s, p,
1642 Settings.Secure.TV_INPUT_CUSTOM_LABELS,
1643 SecureSettingsProto.TV_INPUT_CUSTOM_LABELS);
1644 dumpSetting(s, p,
1645 Settings.Secure.USB_AUDIO_AUTOMATIC_ROUTING_DISABLED,
1646 SecureSettingsProto.USB_AUDIO_AUTOMATIC_ROUTING_DISABLED);
1647 dumpSetting(s, p,
1648 Settings.Secure.SLEEP_TIMEOUT,
1649 SecureSettingsProto.SLEEP_TIMEOUT);
1650 dumpSetting(s, p,
1651 Settings.Secure.DOUBLE_TAP_TO_WAKE,
1652 SecureSettingsProto.DOUBLE_TAP_TO_WAKE);
1653 dumpSetting(s, p,
1654 Settings.Secure.ASSISTANT,
1655 SecureSettingsProto.ASSISTANT);
1656 dumpSetting(s, p,
1657 Settings.Secure.CAMERA_GESTURE_DISABLED,
1658 SecureSettingsProto.CAMERA_GESTURE_DISABLED);
1659 dumpSetting(s, p,
1660 Settings.Secure.CAMERA_DOUBLE_TAP_POWER_GESTURE_DISABLED,
1661 SecureSettingsProto.CAMERA_DOUBLE_TAP_POWER_GESTURE_DISABLED);
1662 dumpSetting(s, p,
1663 Settings.Secure.CAMERA_DOUBLE_TWIST_TO_FLIP_ENABLED,
1664 SecureSettingsProto.CAMERA_DOUBLE_TWIST_TO_FLIP_ENABLED);
1665 dumpSetting(s, p,
Kweku Adamsb0886f32017-10-31 15:32:09 -07001666 Settings.Secure.CAMERA_LIFT_TRIGGER_ENABLED,
1667 SecureSettingsProto.CAMERA_LIFT_TRIGGER_ENABLED);
1668 dumpSetting(s, p,
1669 Settings.Secure.ASSIST_GESTURE_ENABLED,
1670 SecureSettingsProto.ASSIST_GESTURE_ENABLED);
1671 dumpSetting(s, p,
1672 Settings.Secure.ASSIST_GESTURE_SENSITIVITY,
1673 SecureSettingsProto.ASSIST_GESTURE_SENSITIVITY);
1674 dumpSetting(s, p,
1675 Settings.Secure.ASSIST_GESTURE_SILENCE_ALERTS_ENABLED,
1676 SecureSettingsProto.ASSIST_GESTURE_SILENCE_ALERTS_ENABLED);
1677 dumpSetting(s, p,
1678 Settings.Secure.ASSIST_GESTURE_WAKE_ENABLED,
1679 SecureSettingsProto.ASSIST_GESTURE_WAKE_ENABLED);
1680 dumpSetting(s, p,
1681 Settings.Secure.ASSIST_GESTURE_SETUP_COMPLETE,
1682 SecureSettingsProto.ASSIST_GESTURE_SETUP_COMPLETE);
1683 dumpSetting(s, p,
Eugene Suslad72c3972016-12-27 15:49:30 -08001684 Settings.Secure.NIGHT_DISPLAY_ACTIVATED,
1685 SecureSettingsProto.NIGHT_DISPLAY_ACTIVATED);
1686 dumpSetting(s, p,
1687 Settings.Secure.NIGHT_DISPLAY_AUTO_MODE,
1688 SecureSettingsProto.NIGHT_DISPLAY_AUTO_MODE);
1689 dumpSetting(s, p,
Kweku Adamsb0886f32017-10-31 15:32:09 -07001690 Settings.Secure.NIGHT_DISPLAY_COLOR_TEMPERATURE,
1691 SecureSettingsProto.NIGHT_DISPLAY_COLOR_TEMPERATURE);
1692 dumpSetting(s, p,
Eugene Suslad72c3972016-12-27 15:49:30 -08001693 Settings.Secure.NIGHT_DISPLAY_CUSTOM_START_TIME,
1694 SecureSettingsProto.NIGHT_DISPLAY_CUSTOM_START_TIME);
1695 dumpSetting(s, p,
1696 Settings.Secure.NIGHT_DISPLAY_CUSTOM_END_TIME,
1697 SecureSettingsProto.NIGHT_DISPLAY_CUSTOM_END_TIME);
1698 dumpSetting(s, p,
Kweku Adamsb0886f32017-10-31 15:32:09 -07001699 Settings.Secure.NIGHT_DISPLAY_LAST_ACTIVATED_TIME,
1700 SecureSettingsProto.NIGHT_DISPLAY_LAST_ACTIVATED_TIME);
1701 dumpSetting(s, p,
Eugene Suslad72c3972016-12-27 15:49:30 -08001702 Settings.Secure.ENABLED_VR_LISTENERS,
1703 SecureSettingsProto.ENABLED_VR_LISTENERS);
1704 dumpSetting(s, p,
1705 Settings.Secure.VR_DISPLAY_MODE,
1706 SecureSettingsProto.VR_DISPLAY_MODE);
1707 dumpSetting(s, p,
1708 Settings.Secure.CARRIER_APPS_HANDLED,
1709 SecureSettingsProto.CARRIER_APPS_HANDLED);
1710 dumpSetting(s, p,
1711 Settings.Secure.MANAGED_PROFILE_CONTACT_REMOTE_SEARCH,
1712 SecureSettingsProto.MANAGED_PROFILE_CONTACT_REMOTE_SEARCH);
1713 dumpSetting(s, p,
1714 Settings.Secure.AUTOMATIC_STORAGE_MANAGER_ENABLED,
1715 SecureSettingsProto.AUTOMATIC_STORAGE_MANAGER_ENABLED);
1716 dumpSetting(s, p,
1717 Settings.Secure.AUTOMATIC_STORAGE_MANAGER_DAYS_TO_RETAIN,
1718 SecureSettingsProto.AUTOMATIC_STORAGE_MANAGER_DAYS_TO_RETAIN);
1719 dumpSetting(s, p,
1720 Settings.Secure.AUTOMATIC_STORAGE_MANAGER_BYTES_CLEARED,
1721 SecureSettingsProto.AUTOMATIC_STORAGE_MANAGER_BYTES_CLEARED);
1722 dumpSetting(s, p,
1723 Settings.Secure.AUTOMATIC_STORAGE_MANAGER_LAST_RUN,
1724 SecureSettingsProto.AUTOMATIC_STORAGE_MANAGER_LAST_RUN);
1725 dumpSetting(s, p,
Kweku Adamsb0886f32017-10-31 15:32:09 -07001726 Settings.Secure.AUTOMATIC_STORAGE_MANAGER_TURNED_OFF_BY_POLICY,
1727 SecureSettingsProto.AUTOMATIC_STORAGE_MANAGER_TURNED_OFF_BY_POLICY);
1728 dumpSetting(s, p,
Eugene Suslad72c3972016-12-27 15:49:30 -08001729 Settings.Secure.SYSTEM_NAVIGATION_KEYS_ENABLED,
1730 SecureSettingsProto.SYSTEM_NAVIGATION_KEYS_ENABLED);
1731 dumpSetting(s, p,
Eugene Suslad72c3972016-12-27 15:49:30 -08001732 Settings.Secure.QS_TILES,
1733 SecureSettingsProto.QS_TILES);
1734 dumpSetting(s, p,
Jesse Evansfc1bfc42017-04-07 16:11:26 -07001735 Settings.Secure.INSTANT_APPS_ENABLED,
1736 SecureSettingsProto.INSTANT_APPS_ENABLED);
Eugene Suslad72c3972016-12-27 15:49:30 -08001737 dumpSetting(s, p,
1738 Settings.Secure.DEVICE_PAIRED,
1739 SecureSettingsProto.DEVICE_PAIRED);
Chris Wren89aa2262017-05-05 18:05:56 -04001740 dumpSetting(s, p,
Kweku Adamsb0886f32017-10-31 15:32:09 -07001741 Settings.Secure.PACKAGE_VERIFIER_STATE,
1742 SecureSettingsProto.PACKAGE_VERIFIER_STATE);
1743 dumpSetting(s, p,
1744 Settings.Secure.CMAS_ADDITIONAL_BROADCAST_PKG,
1745 SecureSettingsProto.CMAS_ADDITIONAL_BROADCAST_PKG);
1746 dumpSetting(s, p,
Chris Wren89aa2262017-05-05 18:05:56 -04001747 Settings.Secure.NOTIFICATION_BADGING,
1748 SecureSettingsProto.NOTIFICATION_BADGING);
Tim Zhengcc1e76a2017-08-30 17:46:19 -07001749 dumpSetting(s, p,
Kweku Adamsb0886f32017-10-31 15:32:09 -07001750 Settings.Secure.QS_AUTO_ADDED_TILES,
1751 SecureSettingsProto.QS_AUTO_ADDED_TILES);
1752 dumpSetting(s, p,
1753 Settings.Secure.LOCKDOWN_IN_POWER_MENU,
1754 SecureSettingsProto.LOCKDOWN_IN_POWER_MENU);
1755 dumpSetting(s, p,
Tim Zhengcc1e76a2017-08-30 17:46:19 -07001756 Settings.Secure.BACKUP_MANAGER_CONSTANTS,
1757 SecureSettingsProto.BACKUP_MANAGER_CONSTANTS);
Eugene Suslad72c3972016-12-27 15:49:30 -08001758 }
1759
1760 private static void dumpProtoSystemSettingsLocked(
1761 @NonNull SettingsState s, @NonNull ProtoOutputStream p) {
Kweku Adamsb0886f32017-10-31 15:32:09 -07001762 s.dumpHistoricalOperations(p, SystemSettingsProto.HISTORICAL_OPERATIONS);
1763
1764 // This uses the same order as in Settings.System.
1765
1766 // Settings.System.STAY_ON_WHILE_PLUGGED_IN intentionally excluded since it's deprecated.
Eugene Suslad72c3972016-12-27 15:49:30 -08001767 dumpSetting(s, p,
1768 Settings.System.END_BUTTON_BEHAVIOR,
1769 SystemSettingsProto.END_BUTTON_BEHAVIOR);
1770 dumpSetting(s, p,
1771 Settings.System.ADVANCED_SETTINGS,
1772 SystemSettingsProto.ADVANCED_SETTINGS);
Kweku Adamsb0886f32017-10-31 15:32:09 -07001773 // Settings.System.AIRPLANE_MODE_ON intentionally excluded since it's deprecated.
1774 // Settings.System.RADIO_BLUETOOTH intentionally excluded since it's deprecated.
1775 // Settings.System.RADIO_WIFI intentionally excluded since it's deprecated.
1776 // Settings.System.RADIO_WIMAX intentionally excluded since it's deprecated.
1777 // Settings.System.RADIO_CELL intentionally excluded since it's deprecated.
1778 // Settings.System.RADIO_NFC intentionally excluded since it's deprecated.
1779 // Settings.System.AIRPLANE_MODE_RADIOS intentionally excluded since it's deprecated.
1780 // Settings.System.AIRPLANE_MODE_TOGGLABLE_RADIOS intentionally excluded since it's deprecated.
1781 // Settings.System.WIFI_SLEEP_POLICY intentionally excluded since it's deprecated.
1782 // Settings.System.MODE_RINGER intentionally excluded since it's deprecated.
1783 // Settings.System.WIFI_USE_STATIC_IP intentionally excluded since it's deprecated.
1784 // Settings.System.WIFI_STATIC_IP intentionally excluded since it's deprecated.
1785 // Settings.System.WIFI_STATIC_GATEWAY intentionally excluded since it's deprecated.
1786 // Settings.System.WIFI_STATIC_NETMASK intentionally excluded since it's deprecated.
1787 // Settings.System.WIFI_STATIC_DNS1 intentionally excluded since it's deprecated.
1788 // Settings.System.WIFI_STATIC_DNS2 intentionally excluded since it's deprecated.
Eugene Suslad72c3972016-12-27 15:49:30 -08001789 dumpSetting(s, p,
1790 Settings.System.BLUETOOTH_DISCOVERABILITY,
1791 SystemSettingsProto.BLUETOOTH_DISCOVERABILITY);
1792 dumpSetting(s, p,
1793 Settings.System.BLUETOOTH_DISCOVERABILITY_TIMEOUT,
1794 SystemSettingsProto.BLUETOOTH_DISCOVERABILITY_TIMEOUT);
Kweku Adamsb0886f32017-10-31 15:32:09 -07001795 // Settings.System.LOCK_PATTERN_ENABLED intentionally excluded since it's deprecated.
1796 // Settings.System.LOCK_PATTERN_VISIBLE intentionally excluded since it's deprecated.
1797 // Settings.System.LOCK_PATTERN_TACTILE_FEEDBACK_ENABLED intentionally excluded since it's deprecated.
1798 // Settings.System.NEXT_ALARM_FORMATTED intentionally excluded since it's deprecated.
Eugene Suslad72c3972016-12-27 15:49:30 -08001799 dumpSetting(s, p,
1800 Settings.System.FONT_SCALE,
1801 SystemSettingsProto.FONT_SCALE);
1802 dumpSetting(s, p,
1803 Settings.System.SYSTEM_LOCALES,
1804 SystemSettingsProto.SYSTEM_LOCALES);
Kweku Adamsb0886f32017-10-31 15:32:09 -07001805 // Settings.System.DEBUG_APP intentionally excluded since it's deprecated.
1806 // Settings.System.WAIT_FOR_DEBUGGER intentionally excluded since it's deprecated.
1807 // Settings.System.DIM_SCREEN intentionally excluded since it's deprecated.
1808 dumpSetting(s, p,
1809 Settings.System.DISPLAY_COLOR_MODE,
1810 SystemSettingsProto.DISPLAY_COLOR_MODE);
Eugene Suslad72c3972016-12-27 15:49:30 -08001811 dumpSetting(s, p,
1812 Settings.System.SCREEN_OFF_TIMEOUT,
1813 SystemSettingsProto.SCREEN_OFF_TIMEOUT);
1814 dumpSetting(s, p,
1815 Settings.System.SCREEN_BRIGHTNESS,
1816 SystemSettingsProto.SCREEN_BRIGHTNESS);
1817 dumpSetting(s, p,
1818 Settings.System.SCREEN_BRIGHTNESS_FOR_VR,
1819 SystemSettingsProto.SCREEN_BRIGHTNESS_FOR_VR);
1820 dumpSetting(s, p,
1821 Settings.System.SCREEN_BRIGHTNESS_MODE,
1822 SystemSettingsProto.SCREEN_BRIGHTNESS_MODE);
1823 dumpSetting(s, p,
1824 Settings.System.SCREEN_AUTO_BRIGHTNESS_ADJ,
1825 SystemSettingsProto.SCREEN_AUTO_BRIGHTNESS_ADJ);
Kweku Adamsb0886f32017-10-31 15:32:09 -07001826 // Settings.System.SHOW_PROCESSES intentionally excluded since it's deprecated.
1827 // Settings.System.ALWAYS_FINISH_ACTIVITIES intentionally excluded since it's deprecated.
Eugene Suslad72c3972016-12-27 15:49:30 -08001828 dumpSetting(s, p,
1829 Settings.System.MODE_RINGER_STREAMS_AFFECTED,
1830 SystemSettingsProto.MODE_RINGER_STREAMS_AFFECTED);
1831 dumpSetting(s, p,
1832 Settings.System.MUTE_STREAMS_AFFECTED,
1833 SystemSettingsProto.MUTE_STREAMS_AFFECTED);
1834 dumpSetting(s, p,
1835 Settings.System.VIBRATE_ON,
1836 SystemSettingsProto.VIBRATE_ON);
1837 dumpSetting(s, p,
1838 Settings.System.VIBRATE_INPUT_DEVICES,
1839 SystemSettingsProto.VIBRATE_INPUT_DEVICES);
1840 dumpSetting(s, p,
1841 Settings.System.VOLUME_RING,
1842 SystemSettingsProto.VOLUME_RING);
1843 dumpSetting(s, p,
1844 Settings.System.VOLUME_SYSTEM,
1845 SystemSettingsProto.VOLUME_SYSTEM);
1846 dumpSetting(s, p,
1847 Settings.System.VOLUME_VOICE,
1848 SystemSettingsProto.VOLUME_VOICE);
1849 dumpSetting(s, p,
1850 Settings.System.VOLUME_MUSIC,
1851 SystemSettingsProto.VOLUME_MUSIC);
1852 dumpSetting(s, p,
1853 Settings.System.VOLUME_ALARM,
1854 SystemSettingsProto.VOLUME_ALARM);
1855 dumpSetting(s, p,
1856 Settings.System.VOLUME_NOTIFICATION,
1857 SystemSettingsProto.VOLUME_NOTIFICATION);
1858 dumpSetting(s, p,
1859 Settings.System.VOLUME_BLUETOOTH_SCO,
1860 SystemSettingsProto.VOLUME_BLUETOOTH_SCO);
1861 dumpSetting(s, p,
Kweku Adamsb0886f32017-10-31 15:32:09 -07001862 Settings.System.VOLUME_ACCESSIBILITY,
1863 SystemSettingsProto.VOLUME_ACCESSIBILITY);
1864 dumpSetting(s, p,
Eugene Suslad72c3972016-12-27 15:49:30 -08001865 Settings.System.VOLUME_MASTER,
1866 SystemSettingsProto.VOLUME_MASTER);
1867 dumpSetting(s, p,
1868 Settings.System.MASTER_MONO,
1869 SystemSettingsProto.MASTER_MONO);
Kweku Adamsb0886f32017-10-31 15:32:09 -07001870 // Settings.System.NOTIFICATIONS_USE_RING_VOLUME intentionally excluded since it's deprecated.
Eugene Suslad72c3972016-12-27 15:49:30 -08001871 dumpSetting(s, p,
1872 Settings.System.VIBRATE_IN_SILENT,
1873 SystemSettingsProto.VIBRATE_IN_SILENT);
1874 dumpSetting(s, p,
1875 Settings.System.APPEND_FOR_LAST_AUDIBLE,
1876 SystemSettingsProto.APPEND_FOR_LAST_AUDIBLE);
1877 dumpSetting(s, p,
1878 Settings.System.RINGTONE,
1879 SystemSettingsProto.RINGTONE);
1880 dumpSetting(s, p,
1881 Settings.System.RINGTONE_CACHE,
1882 SystemSettingsProto.RINGTONE_CACHE);
1883 dumpSetting(s, p,
1884 Settings.System.NOTIFICATION_SOUND,
1885 SystemSettingsProto.NOTIFICATION_SOUND);
1886 dumpSetting(s, p,
1887 Settings.System.NOTIFICATION_SOUND_CACHE,
1888 SystemSettingsProto.NOTIFICATION_SOUND_CACHE);
1889 dumpSetting(s, p,
1890 Settings.System.ALARM_ALERT,
1891 SystemSettingsProto.ALARM_ALERT);
1892 dumpSetting(s, p,
1893 Settings.System.ALARM_ALERT_CACHE,
1894 SystemSettingsProto.ALARM_ALERT_CACHE);
1895 dumpSetting(s, p,
1896 Settings.System.MEDIA_BUTTON_RECEIVER,
1897 SystemSettingsProto.MEDIA_BUTTON_RECEIVER);
1898 dumpSetting(s, p,
1899 Settings.System.TEXT_AUTO_REPLACE,
1900 SystemSettingsProto.TEXT_AUTO_REPLACE);
1901 dumpSetting(s, p,
1902 Settings.System.TEXT_AUTO_CAPS,
1903 SystemSettingsProto.TEXT_AUTO_CAPS);
1904 dumpSetting(s, p,
1905 Settings.System.TEXT_AUTO_PUNCTUATE,
1906 SystemSettingsProto.TEXT_AUTO_PUNCTUATE);
1907 dumpSetting(s, p,
1908 Settings.System.TEXT_SHOW_PASSWORD,
1909 SystemSettingsProto.TEXT_SHOW_PASSWORD);
1910 dumpSetting(s, p,
1911 Settings.System.SHOW_GTALK_SERVICE_STATUS,
1912 SystemSettingsProto.SHOW_GTALK_SERVICE_STATUS);
Kweku Adamsb0886f32017-10-31 15:32:09 -07001913 // Settings.System.WALLPAPER_ACTIVITY intentionally excluded since it's deprecated.
1914 // Settings.System.AUTO_TIME intentionally excluded since it's deprecated.
1915 // Settings.System.AUTO_TIME_ZONE intentionally excluded since it's deprecated.
Eugene Suslad72c3972016-12-27 15:49:30 -08001916 dumpSetting(s, p,
1917 Settings.System.TIME_12_24,
1918 SystemSettingsProto.TIME_12_24);
1919 dumpSetting(s, p,
1920 Settings.System.DATE_FORMAT,
1921 SystemSettingsProto.DATE_FORMAT);
1922 dumpSetting(s, p,
1923 Settings.System.SETUP_WIZARD_HAS_RUN,
1924 SystemSettingsProto.SETUP_WIZARD_HAS_RUN);
Kweku Adamsb0886f32017-10-31 15:32:09 -07001925 // Settings.System.WINDOW_ANIMATION_SCALE intentionally excluded since it's deprecated.
1926 // Settings.System.TRANSITION_ANIMATION_SCALE intentionally excluded since it's deprecated.
1927 // Settings.System.ANIMATOR_ANIMATION_SCALE intentionally excluded since it's deprecated.
Eugene Suslad72c3972016-12-27 15:49:30 -08001928 dumpSetting(s, p,
1929 Settings.System.ACCELEROMETER_ROTATION,
1930 SystemSettingsProto.ACCELEROMETER_ROTATION);
1931 dumpSetting(s, p,
1932 Settings.System.USER_ROTATION,
1933 SystemSettingsProto.USER_ROTATION);
1934 dumpSetting(s, p,
1935 Settings.System.HIDE_ROTATION_LOCK_TOGGLE_FOR_ACCESSIBILITY,
1936 SystemSettingsProto.HIDE_ROTATION_LOCK_TOGGLE_FOR_ACCESSIBILITY);
1937 dumpSetting(s, p,
1938 Settings.System.VIBRATE_WHEN_RINGING,
1939 SystemSettingsProto.VIBRATE_WHEN_RINGING);
1940 dumpSetting(s, p,
1941 Settings.System.DTMF_TONE_WHEN_DIALING,
1942 SystemSettingsProto.DTMF_TONE_WHEN_DIALING);
1943 dumpSetting(s, p,
1944 Settings.System.DTMF_TONE_TYPE_WHEN_DIALING,
1945 SystemSettingsProto.DTMF_TONE_TYPE_WHEN_DIALING);
1946 dumpSetting(s, p,
1947 Settings.System.HEARING_AID,
1948 SystemSettingsProto.HEARING_AID);
1949 dumpSetting(s, p,
1950 Settings.System.TTY_MODE,
1951 SystemSettingsProto.TTY_MODE);
1952 dumpSetting(s, p,
1953 Settings.System.SOUND_EFFECTS_ENABLED,
1954 SystemSettingsProto.SOUND_EFFECTS_ENABLED);
1955 dumpSetting(s, p,
1956 Settings.System.HAPTIC_FEEDBACK_ENABLED,
1957 SystemSettingsProto.HAPTIC_FEEDBACK_ENABLED);
Kweku Adamsb0886f32017-10-31 15:32:09 -07001958 // Settings.System.SHOW_WEB_SUGGESTIONS intentionally excluded since it's deprecated.
Eugene Suslad72c3972016-12-27 15:49:30 -08001959 dumpSetting(s, p,
1960 Settings.System.NOTIFICATION_LIGHT_PULSE,
1961 SystemSettingsProto.NOTIFICATION_LIGHT_PULSE);
1962 dumpSetting(s, p,
1963 Settings.System.POINTER_LOCATION,
1964 SystemSettingsProto.POINTER_LOCATION);
1965 dumpSetting(s, p,
1966 Settings.System.SHOW_TOUCHES,
1967 SystemSettingsProto.SHOW_TOUCHES);
1968 dumpSetting(s, p,
1969 Settings.System.WINDOW_ORIENTATION_LISTENER_LOG,
1970 SystemSettingsProto.WINDOW_ORIENTATION_LISTENER_LOG);
Kweku Adamsb0886f32017-10-31 15:32:09 -07001971 // Settings.System.POWER_SOUNDS_ENABLED intentionally excluded since it's deprecated.
1972 // Settings.System.DOCK_SOUNDS_ENABLED intentionally excluded since it's deprecated.
Eugene Suslad72c3972016-12-27 15:49:30 -08001973 dumpSetting(s, p,
1974 Settings.System.LOCKSCREEN_SOUNDS_ENABLED,
1975 SystemSettingsProto.LOCKSCREEN_SOUNDS_ENABLED);
1976 dumpSetting(s, p,
1977 Settings.System.LOCKSCREEN_DISABLED,
1978 SystemSettingsProto.LOCKSCREEN_DISABLED);
Kweku Adamsb0886f32017-10-31 15:32:09 -07001979 // Settings.System.LOW_BATTERY_SOUND intentionally excluded since it's deprecated.
1980 // Settings.System.DESK_DOCK_SOUND intentionally excluded since it's deprecated.
1981 // Settings.System.DESK_UNDOCK_SOUND intentionally excluded since it's deprecated.
1982 // Settings.System.CAR_DOCK_SOUND intentionally excluded since it's deprecated.
1983 // Settings.System.CAR_UNDOCK_SOUND intentionally excluded since it's deprecated.
1984 // Settings.System.LOCK_SOUND intentionally excluded since it's deprecated.
1985 // Settings.System.UNLOCK_SOUND intentionally excluded since it's deprecated.
Eugene Suslad72c3972016-12-27 15:49:30 -08001986 dumpSetting(s, p,
1987 Settings.System.SIP_RECEIVE_CALLS,
1988 SystemSettingsProto.SIP_RECEIVE_CALLS);
1989 dumpSetting(s, p,
1990 Settings.System.SIP_CALL_OPTIONS,
1991 SystemSettingsProto.SIP_CALL_OPTIONS);
1992 dumpSetting(s, p,
1993 Settings.System.SIP_ALWAYS,
1994 SystemSettingsProto.SIP_ALWAYS);
1995 dumpSetting(s, p,
1996 Settings.System.SIP_ADDRESS_ONLY,
1997 SystemSettingsProto.SIP_ADDRESS_ONLY);
Kweku Adamsb0886f32017-10-31 15:32:09 -07001998 // Settings.System.SIP_ASK_ME_EACH_TIME intentionally excluded since it's deprecated.
Eugene Suslad72c3972016-12-27 15:49:30 -08001999 dumpSetting(s, p,
2000 Settings.System.POINTER_SPEED,
2001 SystemSettingsProto.POINTER_SPEED);
2002 dumpSetting(s, p,
2003 Settings.System.LOCK_TO_APP_ENABLED,
2004 SystemSettingsProto.LOCK_TO_APP_ENABLED);
2005 dumpSetting(s, p,
2006 Settings.System.EGG_MODE,
2007 SystemSettingsProto.EGG_MODE);
2008 dumpSetting(s, p,
Kweku Adamsb0886f32017-10-31 15:32:09 -07002009 Settings.System.SHOW_BATTERY_PERCENT,
2010 SystemSettingsProto.SHOW_BATTERY_PERCENT);
2011 dumpSetting(s, p,
Eugene Suslad72c3972016-12-27 15:49:30 -08002012 Settings.System.WHEN_TO_MAKE_WIFI_CALLS,
2013 SystemSettingsProto.WHEN_TO_MAKE_WIFI_CALLS);
Kweku Adamsb0886f32017-10-31 15:32:09 -07002014 // The rest of the settings were moved to Settings.Secure, and are thus excluded here since
2015 // they're deprecated from Settings.System.
Eugene Suslad72c3972016-12-27 15:49:30 -08002016 }
2017}