blob: 6970c86aa5d77bd090d612913efea464d3192fdb [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;
Narayan Kamath8d828252018-01-11 15:22:37 +000022import android.provider.Settings.Global;
Eugene Suslad72c3972016-12-27 15:49:30 -080023import android.providers.settings.GlobalSettingsProto;
24import android.providers.settings.SecureSettingsProto;
25import android.providers.settings.SettingProto;
26import android.providers.settings.SettingsServiceDumpProto;
27import android.providers.settings.SystemSettingsProto;
28import android.providers.settings.UserSettingsProto;
29import android.util.SparseBooleanArray;
30import android.util.proto.ProtoOutputStream;
31
32/** @hide */
33class SettingsProtoDumpUtil {
34 private SettingsProtoDumpUtil() {}
35
36 static void dumpProtoLocked(SettingsProvider.SettingsRegistry settingsRegistry,
37 ProtoOutputStream proto) {
38 // Global settings
39 SettingsState globalSettings = settingsRegistry.getSettingsLocked(
40 SettingsProvider.SETTINGS_TYPE_GLOBAL, UserHandle.USER_SYSTEM);
Kweku Adamsb0886f32017-10-31 15:32:09 -070041 if (globalSettings != null) {
42 long globalSettingsToken = proto.start(SettingsServiceDumpProto.GLOBAL_SETTINGS);
43 dumpProtoGlobalSettingsLocked(globalSettings, proto);
44 proto.end(globalSettingsToken);
45 }
Eugene Suslad72c3972016-12-27 15:49:30 -080046
47 // Per-user settings
48 SparseBooleanArray users = settingsRegistry.getKnownUsersLocked();
49 final int userCount = users.size();
50 for (int i = 0; i < userCount; i++) {
51 long userSettingsToken = proto.start(SettingsServiceDumpProto.USER_SETTINGS);
52 dumpProtoUserSettingsLocked(
53 settingsRegistry, UserHandle.of(users.keyAt(i)), proto);
54 proto.end(userSettingsToken);
55 }
56 }
57
58 /**
59 * Dump all settings of a user as a proto buf.
60 *
61 * @param settingsRegistry
62 * @param user The user the settings should be dumped for
63 * @param proto The proto buf stream to dump to
64 */
65 private static void dumpProtoUserSettingsLocked(
66 SettingsProvider.SettingsRegistry settingsRegistry,
67 @NonNull UserHandle user,
68 @NonNull ProtoOutputStream proto) {
69 proto.write(UserSettingsProto.USER_ID, user.getIdentifier());
70
71 SettingsState secureSettings = settingsRegistry.getSettingsLocked(
72 SettingsProvider.SETTINGS_TYPE_SECURE, user.getIdentifier());
Kweku Adamsb0886f32017-10-31 15:32:09 -070073 if (secureSettings != null) {
74 long secureSettingsToken = proto.start(UserSettingsProto.SECURE_SETTINGS);
75 dumpProtoSecureSettingsLocked(secureSettings, proto);
76 proto.end(secureSettingsToken);
77 }
Eugene Suslad72c3972016-12-27 15:49:30 -080078
79 SettingsState systemSettings = settingsRegistry.getSettingsLocked(
80 SettingsProvider.SETTINGS_TYPE_SYSTEM, user.getIdentifier());
Kweku Adamsb0886f32017-10-31 15:32:09 -070081 if (systemSettings != null) {
82 long systemSettingsToken = proto.start(UserSettingsProto.SYSTEM_SETTINGS);
83 dumpProtoSystemSettingsLocked(systemSettings, proto);
84 proto.end(systemSettingsToken);
85 }
Eugene Suslad72c3972016-12-27 15:49:30 -080086 }
87
88 private static void dumpProtoGlobalSettingsLocked(
89 @NonNull SettingsState s, @NonNull ProtoOutputStream p) {
Kweku Adamsb0886f32017-10-31 15:32:09 -070090 s.dumpHistoricalOperations(p, GlobalSettingsProto.HISTORICAL_OPERATIONS);
91
92 // This uses the same order as in Settings.Global.
Eugene Suslad72c3972016-12-27 15:49:30 -080093 dumpSetting(s, p,
94 Settings.Global.ADD_USERS_WHEN_LOCKED,
95 GlobalSettingsProto.ADD_USERS_WHEN_LOCKED);
96 dumpSetting(s, p,
97 Settings.Global.ENABLE_ACCESSIBILITY_GLOBAL_GESTURE_ENABLED,
98 GlobalSettingsProto.ENABLE_ACCESSIBILITY_GLOBAL_GESTURE_ENABLED);
99 dumpSetting(s, p,
100 Settings.Global.AIRPLANE_MODE_ON,
101 GlobalSettingsProto.AIRPLANE_MODE_ON);
102 dumpSetting(s, p,
103 Settings.Global.THEATER_MODE_ON,
104 GlobalSettingsProto.THEATER_MODE_ON);
105 dumpSetting(s, p,
106 Settings.Global.RADIO_BLUETOOTH,
107 GlobalSettingsProto.RADIO_BLUETOOTH);
108 dumpSetting(s, p,
109 Settings.Global.RADIO_WIFI,
110 GlobalSettingsProto.RADIO_WIFI);
111 dumpSetting(s, p,
112 Settings.Global.RADIO_WIMAX,
113 GlobalSettingsProto.RADIO_WIMAX);
114 dumpSetting(s, p,
115 Settings.Global.RADIO_CELL,
116 GlobalSettingsProto.RADIO_CELL);
117 dumpSetting(s, p,
118 Settings.Global.RADIO_NFC,
119 GlobalSettingsProto.RADIO_NFC);
120 dumpSetting(s, p,
121 Settings.Global.AIRPLANE_MODE_RADIOS,
122 GlobalSettingsProto.AIRPLANE_MODE_RADIOS);
123 dumpSetting(s, p,
124 Settings.Global.AIRPLANE_MODE_TOGGLEABLE_RADIOS,
125 GlobalSettingsProto.AIRPLANE_MODE_TOGGLEABLE_RADIOS);
126 dumpSetting(s, p,
Kweku Adamsb0886f32017-10-31 15:32:09 -0700127 Settings.Global.BLUETOOTH_CLASS_OF_DEVICE,
128 GlobalSettingsProto.BLUETOOTH_CLASS_OF_DEVICE);
129 dumpSetting(s, p,
Eugene Suslad72c3972016-12-27 15:49:30 -0800130 Settings.Global.BLUETOOTH_DISABLED_PROFILES,
131 GlobalSettingsProto.BLUETOOTH_DISABLED_PROFILES);
132 dumpSetting(s, p,
133 Settings.Global.BLUETOOTH_INTEROPERABILITY_LIST,
134 GlobalSettingsProto.BLUETOOTH_INTEROPERABILITY_LIST);
135 dumpSetting(s, p,
136 Settings.Global.WIFI_SLEEP_POLICY,
137 GlobalSettingsProto.WIFI_SLEEP_POLICY);
138 dumpSetting(s, p,
139 Settings.Global.AUTO_TIME,
140 GlobalSettingsProto.AUTO_TIME);
141 dumpSetting(s, p,
142 Settings.Global.AUTO_TIME_ZONE,
143 GlobalSettingsProto.AUTO_TIME_ZONE);
144 dumpSetting(s, p,
145 Settings.Global.CAR_DOCK_SOUND,
146 GlobalSettingsProto.CAR_DOCK_SOUND);
147 dumpSetting(s, p,
148 Settings.Global.CAR_UNDOCK_SOUND,
149 GlobalSettingsProto.CAR_UNDOCK_SOUND);
150 dumpSetting(s, p,
151 Settings.Global.DESK_DOCK_SOUND,
152 GlobalSettingsProto.DESK_DOCK_SOUND);
153 dumpSetting(s, p,
154 Settings.Global.DESK_UNDOCK_SOUND,
155 GlobalSettingsProto.DESK_UNDOCK_SOUND);
156 dumpSetting(s, p,
157 Settings.Global.DOCK_SOUNDS_ENABLED,
158 GlobalSettingsProto.DOCK_SOUNDS_ENABLED);
159 dumpSetting(s, p,
160 Settings.Global.DOCK_SOUNDS_ENABLED_WHEN_ACCESSIBILITY,
161 GlobalSettingsProto.DOCK_SOUNDS_ENABLED_WHEN_ACCESSIBILITY);
162 dumpSetting(s, p,
163 Settings.Global.LOCK_SOUND,
164 GlobalSettingsProto.LOCK_SOUND);
165 dumpSetting(s, p,
166 Settings.Global.UNLOCK_SOUND,
167 GlobalSettingsProto.UNLOCK_SOUND);
168 dumpSetting(s, p,
169 Settings.Global.TRUSTED_SOUND,
170 GlobalSettingsProto.TRUSTED_SOUND);
171 dumpSetting(s, p,
172 Settings.Global.LOW_BATTERY_SOUND,
173 GlobalSettingsProto.LOW_BATTERY_SOUND);
174 dumpSetting(s, p,
175 Settings.Global.POWER_SOUNDS_ENABLED,
176 GlobalSettingsProto.POWER_SOUNDS_ENABLED);
177 dumpSetting(s, p,
178 Settings.Global.WIRELESS_CHARGING_STARTED_SOUND,
179 GlobalSettingsProto.WIRELESS_CHARGING_STARTED_SOUND);
180 dumpSetting(s, p,
181 Settings.Global.CHARGING_SOUNDS_ENABLED,
182 GlobalSettingsProto.CHARGING_SOUNDS_ENABLED);
183 dumpSetting(s, p,
184 Settings.Global.STAY_ON_WHILE_PLUGGED_IN,
185 GlobalSettingsProto.STAY_ON_WHILE_PLUGGED_IN);
186 dumpSetting(s, p,
187 Settings.Global.BUGREPORT_IN_POWER_MENU,
188 GlobalSettingsProto.BUGREPORT_IN_POWER_MENU);
189 dumpSetting(s, p,
190 Settings.Global.ADB_ENABLED,
191 GlobalSettingsProto.ADB_ENABLED);
192 dumpSetting(s, p,
193 Settings.Global.DEBUG_VIEW_ATTRIBUTES,
194 GlobalSettingsProto.DEBUG_VIEW_ATTRIBUTES);
195 dumpSetting(s, p,
196 Settings.Global.ASSISTED_GPS_ENABLED,
197 GlobalSettingsProto.ASSISTED_GPS_ENABLED);
198 dumpSetting(s, p,
199 Settings.Global.BLUETOOTH_ON,
200 GlobalSettingsProto.BLUETOOTH_ON);
201 dumpSetting(s, p,
202 Settings.Global.CDMA_CELL_BROADCAST_SMS,
203 GlobalSettingsProto.CDMA_CELL_BROADCAST_SMS);
204 dumpSetting(s, p,
205 Settings.Global.CDMA_ROAMING_MODE,
206 GlobalSettingsProto.CDMA_ROAMING_MODE);
207 dumpSetting(s, p,
208 Settings.Global.CDMA_SUBSCRIPTION_MODE,
209 GlobalSettingsProto.CDMA_SUBSCRIPTION_MODE);
Kweku Adamsb0886f32017-10-31 15:32:09 -0700210 // Settings.Global.DEFAULT_RESTRICT_BACKGROUND_DATA intentionally excluded.
Eugene Suslad72c3972016-12-27 15:49:30 -0800211 dumpSetting(s, p,
212 Settings.Global.DATA_ACTIVITY_TIMEOUT_MOBILE,
213 GlobalSettingsProto.DATA_ACTIVITY_TIMEOUT_MOBILE);
214 dumpSetting(s, p,
215 Settings.Global.DATA_ACTIVITY_TIMEOUT_WIFI,
216 GlobalSettingsProto.DATA_ACTIVITY_TIMEOUT_WIFI);
217 dumpSetting(s, p,
218 Settings.Global.DATA_ROAMING,
219 GlobalSettingsProto.DATA_ROAMING);
220 dumpSetting(s, p,
221 Settings.Global.MDC_INITIAL_MAX_RETRY,
222 GlobalSettingsProto.MDC_INITIAL_MAX_RETRY);
223 dumpSetting(s, p,
224 Settings.Global.FORCE_ALLOW_ON_EXTERNAL,
225 GlobalSettingsProto.FORCE_ALLOW_ON_EXTERNAL);
Kweku Adamsb0886f32017-10-31 15:32:09 -0700226 // Settings.Global.DEFAULT_SM_DP_PLUS intentionally excluded.
227 dumpSetting(s, p,
228 Settings.Global.EUICC_PROVISIONED,
229 GlobalSettingsProto.EUICC_PROVISIONED);
Eugene Suslad72c3972016-12-27 15:49:30 -0800230 dumpSetting(s, p,
231 Settings.Global.DEVELOPMENT_FORCE_RESIZABLE_ACTIVITIES,
232 GlobalSettingsProto.DEVELOPMENT_FORCE_RESIZABLE_ACTIVITIES);
233 dumpSetting(s, p,
234 Settings.Global.DEVELOPMENT_ENABLE_FREEFORM_WINDOWS_SUPPORT,
235 GlobalSettingsProto.DEVELOPMENT_ENABLE_FREEFORM_WINDOWS_SUPPORT);
236 dumpSetting(s, p,
237 Settings.Global.DEVELOPMENT_SETTINGS_ENABLED,
238 GlobalSettingsProto.DEVELOPMENT_SETTINGS_ENABLED);
239 dumpSetting(s, p,
240 Settings.Global.DEVICE_PROVISIONED,
241 GlobalSettingsProto.DEVICE_PROVISIONED);
242 dumpSetting(s, p,
243 Settings.Global.DEVICE_PROVISIONING_MOBILE_DATA_ENABLED,
244 GlobalSettingsProto.DEVICE_PROVISIONING_MOBILE_DATA_ENABLED);
245 dumpSetting(s, p,
246 Settings.Global.DISPLAY_SIZE_FORCED,
247 GlobalSettingsProto.DISPLAY_SIZE_FORCED);
248 dumpSetting(s, p,
249 Settings.Global.DISPLAY_SCALING_FORCE,
250 GlobalSettingsProto.DISPLAY_SCALING_FORCE);
251 dumpSetting(s, p,
252 Settings.Global.DOWNLOAD_MAX_BYTES_OVER_MOBILE,
253 GlobalSettingsProto.DOWNLOAD_MAX_BYTES_OVER_MOBILE);
254 dumpSetting(s, p,
255 Settings.Global.DOWNLOAD_RECOMMENDED_MAX_BYTES_OVER_MOBILE,
256 GlobalSettingsProto.DOWNLOAD_RECOMMENDED_MAX_BYTES_OVER_MOBILE);
Kweku Adamsb0886f32017-10-31 15:32:09 -0700257 // Settings.Global.INSTALL_NON_MARKET_APPS intentionally excluded since it's deprecated.
Eugene Suslad72c3972016-12-27 15:49:30 -0800258 dumpSetting(s, p,
259 Settings.Global.HDMI_CONTROL_ENABLED,
260 GlobalSettingsProto.HDMI_CONTROL_ENABLED);
261 dumpSetting(s, p,
Donghyun Choc1fa9af2016-12-27 18:31:09 +0900262 Settings.Global.HDMI_SYSTEM_AUDIO_CONTROL_ENABLED,
263 GlobalSettingsProto.HDMI_SYSTEM_AUDIO_CONTROL_ENABLED);
Eugene Suslad72c3972016-12-27 15:49:30 -0800264 dumpSetting(s, p,
265 Settings.Global.HDMI_CONTROL_AUTO_WAKEUP_ENABLED,
266 GlobalSettingsProto.HDMI_CONTROL_AUTO_WAKEUP_ENABLED);
267 dumpSetting(s, p,
268 Settings.Global.HDMI_CONTROL_AUTO_DEVICE_OFF_ENABLED,
269 GlobalSettingsProto.HDMI_CONTROL_AUTO_DEVICE_OFF_ENABLED);
270 dumpSetting(s, p,
Kweku Adamsb0886f32017-10-31 15:32:09 -0700271 Settings.Global.LOCATION_BACKGROUND_THROTTLE_INTERVAL_MS,
272 GlobalSettingsProto.LOCATION_BACKGROUND_THROTTLE_INTERVAL_MS);
273 dumpSetting(s, p,
274 Settings.Global.LOCATION_BACKGROUND_THROTTLE_PROXIMITY_ALERT_INTERVAL_MS,
275 GlobalSettingsProto.LOCATION_BACKGROUND_THROTTLE_PROXIMITY_ALERT_INTERVAL_MS);
276 dumpSetting(s, p,
277 Settings.Global.LOCATION_BACKGROUND_THROTTLE_PACKAGE_WHITELIST,
278 GlobalSettingsProto.LOCATION_BACKGROUND_THROTTLE_PACKAGE_WHITELIST);
279 dumpSetting(s, p,
280 Settings.Global.WIFI_SCAN_BACKGROUND_THROTTLE_INTERVAL_MS,
281 GlobalSettingsProto.WIFI_SCAN_BACKGROUND_THROTTLE_INTERVAL_MS);
282 dumpSetting(s, p,
283 Settings.Global.WIFI_SCAN_BACKGROUND_THROTTLE_PACKAGE_WHITELIST,
284 GlobalSettingsProto.WIFI_SCAN_BACKGROUND_THROTTLE_PACKAGE_WHITELIST);
285 dumpSetting(s, p,
Eugene Suslad72c3972016-12-27 15:49:30 -0800286 Settings.Global.MHL_INPUT_SWITCHING_ENABLED,
287 GlobalSettingsProto.MHL_INPUT_SWITCHING_ENABLED);
288 dumpSetting(s, p,
289 Settings.Global.MHL_POWER_CHARGE_ENABLED,
290 GlobalSettingsProto.MHL_POWER_CHARGE_ENABLED);
291 dumpSetting(s, p,
292 Settings.Global.MOBILE_DATA,
293 GlobalSettingsProto.MOBILE_DATA);
294 dumpSetting(s, p,
295 Settings.Global.MOBILE_DATA_ALWAYS_ON,
296 GlobalSettingsProto.MOBILE_DATA_ALWAYS_ON);
297 dumpSetting(s, p,
298 Settings.Global.CONNECTIVITY_METRICS_BUFFER_SIZE,
299 GlobalSettingsProto.CONNECTIVITY_METRICS_BUFFER_SIZE);
300 dumpSetting(s, p,
301 Settings.Global.NETSTATS_ENABLED,
302 GlobalSettingsProto.NETSTATS_ENABLED);
303 dumpSetting(s, p,
304 Settings.Global.NETSTATS_POLL_INTERVAL,
305 GlobalSettingsProto.NETSTATS_POLL_INTERVAL);
306 dumpSetting(s, p,
307 Settings.Global.NETSTATS_TIME_CACHE_MAX_AGE,
308 GlobalSettingsProto.NETSTATS_TIME_CACHE_MAX_AGE);
309 dumpSetting(s, p,
310 Settings.Global.NETSTATS_GLOBAL_ALERT_BYTES,
311 GlobalSettingsProto.NETSTATS_GLOBAL_ALERT_BYTES);
312 dumpSetting(s, p,
313 Settings.Global.NETSTATS_SAMPLE_ENABLED,
314 GlobalSettingsProto.NETSTATS_SAMPLE_ENABLED);
315 dumpSetting(s, p,
Kweku Adamsb0886f32017-10-31 15:32:09 -0700316 Settings.Global.NETSTATS_AUGMENT_ENABLED,
317 GlobalSettingsProto.NETSTATS_AUGMENT_ENABLED);
318 dumpSetting(s, p,
Eugene Suslad72c3972016-12-27 15:49:30 -0800319 Settings.Global.NETSTATS_DEV_BUCKET_DURATION,
320 GlobalSettingsProto.NETSTATS_DEV_BUCKET_DURATION);
321 dumpSetting(s, p,
322 Settings.Global.NETSTATS_DEV_PERSIST_BYTES,
323 GlobalSettingsProto.NETSTATS_DEV_PERSIST_BYTES);
324 dumpSetting(s, p,
325 Settings.Global.NETSTATS_DEV_ROTATE_AGE,
326 GlobalSettingsProto.NETSTATS_DEV_ROTATE_AGE);
327 dumpSetting(s, p,
328 Settings.Global.NETSTATS_DEV_DELETE_AGE,
329 GlobalSettingsProto.NETSTATS_DEV_DELETE_AGE);
330 dumpSetting(s, p,
331 Settings.Global.NETSTATS_UID_BUCKET_DURATION,
332 GlobalSettingsProto.NETSTATS_UID_BUCKET_DURATION);
333 dumpSetting(s, p,
334 Settings.Global.NETSTATS_UID_PERSIST_BYTES,
335 GlobalSettingsProto.NETSTATS_UID_PERSIST_BYTES);
336 dumpSetting(s, p,
337 Settings.Global.NETSTATS_UID_ROTATE_AGE,
338 GlobalSettingsProto.NETSTATS_UID_ROTATE_AGE);
339 dumpSetting(s, p,
340 Settings.Global.NETSTATS_UID_DELETE_AGE,
341 GlobalSettingsProto.NETSTATS_UID_DELETE_AGE);
342 dumpSetting(s, p,
343 Settings.Global.NETSTATS_UID_TAG_BUCKET_DURATION,
344 GlobalSettingsProto.NETSTATS_UID_TAG_BUCKET_DURATION);
345 dumpSetting(s, p,
346 Settings.Global.NETSTATS_UID_TAG_PERSIST_BYTES,
347 GlobalSettingsProto.NETSTATS_UID_TAG_PERSIST_BYTES);
348 dumpSetting(s, p,
349 Settings.Global.NETSTATS_UID_TAG_ROTATE_AGE,
350 GlobalSettingsProto.NETSTATS_UID_TAG_ROTATE_AGE);
351 dumpSetting(s, p,
352 Settings.Global.NETSTATS_UID_TAG_DELETE_AGE,
353 GlobalSettingsProto.NETSTATS_UID_TAG_DELETE_AGE);
354 dumpSetting(s, p,
355 Settings.Global.NETWORK_PREFERENCE,
356 GlobalSettingsProto.NETWORK_PREFERENCE);
357 dumpSetting(s, p,
358 Settings.Global.NETWORK_SCORER_APP,
359 GlobalSettingsProto.NETWORK_SCORER_APP);
360 dumpSetting(s, p,
361 Settings.Global.NITZ_UPDATE_DIFF,
362 GlobalSettingsProto.NITZ_UPDATE_DIFF);
363 dumpSetting(s, p,
364 Settings.Global.NITZ_UPDATE_SPACING,
365 GlobalSettingsProto.NITZ_UPDATE_SPACING);
366 dumpSetting(s, p,
367 Settings.Global.NTP_SERVER,
368 GlobalSettingsProto.NTP_SERVER);
369 dumpSetting(s, p,
370 Settings.Global.NTP_TIMEOUT,
371 GlobalSettingsProto.NTP_TIMEOUT);
372 dumpSetting(s, p,
373 Settings.Global.STORAGE_BENCHMARK_INTERVAL,
374 GlobalSettingsProto.STORAGE_BENCHMARK_INTERVAL);
375 dumpSetting(s, p,
376 Settings.Global.DNS_RESOLVER_SAMPLE_VALIDITY_SECONDS,
377 GlobalSettingsProto.DNS_RESOLVER_SAMPLE_VALIDITY_SECONDS);
378 dumpSetting(s, p,
379 Settings.Global.DNS_RESOLVER_SUCCESS_THRESHOLD_PERCENT,
380 GlobalSettingsProto.DNS_RESOLVER_SUCCESS_THRESHOLD_PERCENT);
381 dumpSetting(s, p,
382 Settings.Global.DNS_RESOLVER_MIN_SAMPLES,
383 GlobalSettingsProto.DNS_RESOLVER_MIN_SAMPLES);
384 dumpSetting(s, p,
385 Settings.Global.DNS_RESOLVER_MAX_SAMPLES,
386 GlobalSettingsProto.DNS_RESOLVER_MAX_SAMPLES);
387 dumpSetting(s, p,
388 Settings.Global.OTA_DISABLE_AUTOMATIC_UPDATE,
389 GlobalSettingsProto.OTA_DISABLE_AUTOMATIC_UPDATE);
390 dumpSetting(s, p,
391 Settings.Global.PACKAGE_VERIFIER_ENABLE,
392 GlobalSettingsProto.PACKAGE_VERIFIER_ENABLE);
393 dumpSetting(s, p,
394 Settings.Global.PACKAGE_VERIFIER_TIMEOUT,
395 GlobalSettingsProto.PACKAGE_VERIFIER_TIMEOUT);
396 dumpSetting(s, p,
397 Settings.Global.PACKAGE_VERIFIER_DEFAULT_RESPONSE,
398 GlobalSettingsProto.PACKAGE_VERIFIER_DEFAULT_RESPONSE);
399 dumpSetting(s, p,
400 Settings.Global.PACKAGE_VERIFIER_SETTING_VISIBLE,
401 GlobalSettingsProto.PACKAGE_VERIFIER_SETTING_VISIBLE);
402 dumpSetting(s, p,
403 Settings.Global.PACKAGE_VERIFIER_INCLUDE_ADB,
404 GlobalSettingsProto.PACKAGE_VERIFIER_INCLUDE_ADB);
405 dumpSetting(s, p,
406 Settings.Global.FSTRIM_MANDATORY_INTERVAL,
407 GlobalSettingsProto.FSTRIM_MANDATORY_INTERVAL);
408 dumpSetting(s, p,
409 Settings.Global.PDP_WATCHDOG_POLL_INTERVAL_MS,
410 GlobalSettingsProto.PDP_WATCHDOG_POLL_INTERVAL_MS);
411 dumpSetting(s, p,
412 Settings.Global.PDP_WATCHDOG_LONG_POLL_INTERVAL_MS,
413 GlobalSettingsProto.PDP_WATCHDOG_LONG_POLL_INTERVAL_MS);
414 dumpSetting(s, p,
415 Settings.Global.PDP_WATCHDOG_ERROR_POLL_INTERVAL_MS,
416 GlobalSettingsProto.PDP_WATCHDOG_ERROR_POLL_INTERVAL_MS);
417 dumpSetting(s, p,
418 Settings.Global.PDP_WATCHDOG_TRIGGER_PACKET_COUNT,
419 GlobalSettingsProto.PDP_WATCHDOG_TRIGGER_PACKET_COUNT);
420 dumpSetting(s, p,
421 Settings.Global.PDP_WATCHDOG_ERROR_POLL_COUNT,
422 GlobalSettingsProto.PDP_WATCHDOG_ERROR_POLL_COUNT);
423 dumpSetting(s, p,
424 Settings.Global.PDP_WATCHDOG_MAX_PDP_RESET_FAIL_COUNT,
425 GlobalSettingsProto.PDP_WATCHDOG_MAX_PDP_RESET_FAIL_COUNT);
426 dumpSetting(s, p,
Eugene Suslad72c3972016-12-27 15:49:30 -0800427 Settings.Global.SETUP_PREPAID_DATA_SERVICE_URL,
428 GlobalSettingsProto.SETUP_PREPAID_DATA_SERVICE_URL);
429 dumpSetting(s, p,
430 Settings.Global.SETUP_PREPAID_DETECTION_TARGET_URL,
431 GlobalSettingsProto.SETUP_PREPAID_DETECTION_TARGET_URL);
432 dumpSetting(s, p,
433 Settings.Global.SETUP_PREPAID_DETECTION_REDIR_HOST,
434 GlobalSettingsProto.SETUP_PREPAID_DETECTION_REDIR_HOST);
435 dumpSetting(s, p,
436 Settings.Global.SMS_OUTGOING_CHECK_INTERVAL_MS,
437 GlobalSettingsProto.SMS_OUTGOING_CHECK_INTERVAL_MS);
438 dumpSetting(s, p,
439 Settings.Global.SMS_OUTGOING_CHECK_MAX_COUNT,
440 GlobalSettingsProto.SMS_OUTGOING_CHECK_MAX_COUNT);
441 dumpSetting(s, p,
442 Settings.Global.SMS_SHORT_CODE_CONFIRMATION,
443 GlobalSettingsProto.SMS_SHORT_CODE_CONFIRMATION);
444 dumpSetting(s, p,
445 Settings.Global.SMS_SHORT_CODE_RULE,
446 GlobalSettingsProto.SMS_SHORT_CODE_RULE);
447 dumpSetting(s, p,
448 Settings.Global.TCP_DEFAULT_INIT_RWND,
449 GlobalSettingsProto.TCP_DEFAULT_INIT_RWND);
450 dumpSetting(s, p,
451 Settings.Global.TETHER_SUPPORTED,
452 GlobalSettingsProto.TETHER_SUPPORTED);
453 dumpSetting(s, p,
454 Settings.Global.TETHER_DUN_REQUIRED,
455 GlobalSettingsProto.TETHER_DUN_REQUIRED);
456 dumpSetting(s, p,
457 Settings.Global.TETHER_DUN_APN,
458 GlobalSettingsProto.TETHER_DUN_APN);
459 dumpSetting(s, p,
Kweku Adamsb0886f32017-10-31 15:32:09 -0700460 Settings.Global.TETHER_OFFLOAD_DISABLED,
461 GlobalSettingsProto.TETHER_OFFLOAD_DISABLED);
462 dumpSetting(s, p,
Eugene Suslad72c3972016-12-27 15:49:30 -0800463 Settings.Global.CARRIER_APP_WHITELIST,
464 GlobalSettingsProto.CARRIER_APP_WHITELIST);
465 dumpSetting(s, p,
466 Settings.Global.USB_MASS_STORAGE_ENABLED,
467 GlobalSettingsProto.USB_MASS_STORAGE_ENABLED);
468 dumpSetting(s, p,
469 Settings.Global.USE_GOOGLE_MAIL,
470 GlobalSettingsProto.USE_GOOGLE_MAIL);
471 dumpSetting(s, p,
472 Settings.Global.WEBVIEW_DATA_REDUCTION_PROXY_KEY,
473 GlobalSettingsProto.WEBVIEW_DATA_REDUCTION_PROXY_KEY);
474 dumpSetting(s, p,
475 Settings.Global.WEBVIEW_FALLBACK_LOGIC_ENABLED,
476 GlobalSettingsProto.WEBVIEW_FALLBACK_LOGIC_ENABLED);
477 dumpSetting(s, p,
478 Settings.Global.WEBVIEW_PROVIDER,
479 GlobalSettingsProto.WEBVIEW_PROVIDER);
480 dumpSetting(s, p,
481 Settings.Global.WEBVIEW_MULTIPROCESS,
482 GlobalSettingsProto.WEBVIEW_MULTIPROCESS);
483 dumpSetting(s, p,
484 Settings.Global.NETWORK_SWITCH_NOTIFICATION_DAILY_LIMIT,
485 GlobalSettingsProto.NETWORK_SWITCH_NOTIFICATION_DAILY_LIMIT);
486 dumpSetting(s, p,
487 Settings.Global.NETWORK_SWITCH_NOTIFICATION_RATE_LIMIT_MILLIS,
488 GlobalSettingsProto.NETWORK_SWITCH_NOTIFICATION_RATE_LIMIT_MILLIS);
489 dumpSetting(s, p,
490 Settings.Global.NETWORK_AVOID_BAD_WIFI,
491 GlobalSettingsProto.NETWORK_AVOID_BAD_WIFI);
492 dumpSetting(s, p,
Kweku Adamsb0886f32017-10-31 15:32:09 -0700493 Settings.Global.NETWORK_METERED_MULTIPATH_PREFERENCE,
494 GlobalSettingsProto.NETWORK_METERED_MULTIPATH_PREFERENCE);
495 dumpSetting(s, p,
496 Settings.Global.NETWORK_WATCHLIST_LAST_REPORT_TIME,
497 GlobalSettingsProto.NETWORK_WATCHLIST_LAST_REPORT_TIME);
498 dumpSetting(s, p,
499 Settings.Global.WIFI_BADGING_THRESHOLDS,
500 GlobalSettingsProto.WIFI_BADGING_THRESHOLDS);
501 dumpSetting(s, p,
Eugene Suslad72c3972016-12-27 15:49:30 -0800502 Settings.Global.WIFI_DISPLAY_ON,
503 GlobalSettingsProto.WIFI_DISPLAY_ON);
504 dumpSetting(s, p,
505 Settings.Global.WIFI_DISPLAY_CERTIFICATION_ON,
506 GlobalSettingsProto.WIFI_DISPLAY_CERTIFICATION_ON);
507 dumpSetting(s, p,
508 Settings.Global.WIFI_DISPLAY_WPS_CONFIG,
509 GlobalSettingsProto.WIFI_DISPLAY_WPS_CONFIG);
510 dumpSetting(s, p,
511 Settings.Global.WIFI_NETWORKS_AVAILABLE_NOTIFICATION_ON,
512 GlobalSettingsProto.WIFI_NETWORKS_AVAILABLE_NOTIFICATION_ON);
513 dumpSetting(s, p,
514 Settings.Global.WIMAX_NETWORKS_AVAILABLE_NOTIFICATION_ON,
515 GlobalSettingsProto.WIMAX_NETWORKS_AVAILABLE_NOTIFICATION_ON);
516 dumpSetting(s, p,
517 Settings.Global.WIFI_NETWORKS_AVAILABLE_REPEAT_DELAY,
518 GlobalSettingsProto.WIFI_NETWORKS_AVAILABLE_REPEAT_DELAY);
519 dumpSetting(s, p,
520 Settings.Global.WIFI_COUNTRY_CODE,
521 GlobalSettingsProto.WIFI_COUNTRY_CODE);
522 dumpSetting(s, p,
523 Settings.Global.WIFI_FRAMEWORK_SCAN_INTERVAL_MS,
524 GlobalSettingsProto.WIFI_FRAMEWORK_SCAN_INTERVAL_MS);
525 dumpSetting(s, p,
526 Settings.Global.WIFI_IDLE_MS,
527 GlobalSettingsProto.WIFI_IDLE_MS);
528 dumpSetting(s, p,
529 Settings.Global.WIFI_NUM_OPEN_NETWORKS_KEPT,
530 GlobalSettingsProto.WIFI_NUM_OPEN_NETWORKS_KEPT);
531 dumpSetting(s, p,
532 Settings.Global.WIFI_ON,
533 GlobalSettingsProto.WIFI_ON);
534 dumpSetting(s, p,
535 Settings.Global.WIFI_SCAN_ALWAYS_AVAILABLE,
536 GlobalSettingsProto.WIFI_SCAN_ALWAYS_AVAILABLE);
537 dumpSetting(s, p,
538 Settings.Global.WIFI_WAKEUP_ENABLED,
539 GlobalSettingsProto.WIFI_WAKEUP_ENABLED);
540 dumpSetting(s, p,
Kweku Adamsb0886f32017-10-31 15:32:09 -0700541 Settings.Global.WIFI_WAKEUP_AVAILABLE,
542 GlobalSettingsProto.WIFI_WAKEUP_AVAILABLE);
543 dumpSetting(s, p,
544 Settings.Global.NETWORK_SCORING_UI_ENABLED,
545 GlobalSettingsProto.NETWORK_SCORING_UI_ENABLED);
546 dumpSetting(s, p,
547 Settings.Global.SPEED_LABEL_CACHE_EVICTION_AGE_MILLIS,
548 GlobalSettingsProto.SPEED_LABEL_CACHE_EVICTION_AGE_MILLIS);
549 dumpSetting(s, p,
Eugene Suslad72c3972016-12-27 15:49:30 -0800550 Settings.Global.NETWORK_RECOMMENDATIONS_ENABLED,
551 GlobalSettingsProto.NETWORK_RECOMMENDATIONS_ENABLED);
552 dumpSetting(s, p,
Jeremy Joslinc9eb3c42017-02-08 10:45:30 -0800553 Settings.Global.NETWORK_RECOMMENDATIONS_PACKAGE,
554 GlobalSettingsProto.NETWORK_RECOMMENDATIONS_PACKAGE);
555 dumpSetting(s, p,
Kweku Adamsb0886f32017-10-31 15:32:09 -0700556 Settings.Global.USE_OPEN_WIFI_PACKAGE,
557 GlobalSettingsProto.USE_OPEN_WIFI_PACKAGE);
558 dumpSetting(s, p,
559 Settings.Global.NETWORK_RECOMMENDATION_REQUEST_TIMEOUT_MS,
560 GlobalSettingsProto.NETWORK_RECOMMENDATION_REQUEST_TIMEOUT_MS);
561 dumpSetting(s, p,
562 Settings.Global.RECOMMENDED_NETWORK_EVALUATOR_CACHE_EXPIRY_MS,
563 GlobalSettingsProto.RECOMMENDED_NETWORK_EVALUATOR_CACHE_EXPIRY_MS);
564 dumpSetting(s, p,
Eugene Suslad72c3972016-12-27 15:49:30 -0800565 Settings.Global.BLE_SCAN_ALWAYS_AVAILABLE,
566 GlobalSettingsProto.BLE_SCAN_ALWAYS_AVAILABLE);
567 dumpSetting(s, p,
568 Settings.Global.WIFI_SAVED_STATE,
569 GlobalSettingsProto.WIFI_SAVED_STATE);
570 dumpSetting(s, p,
571 Settings.Global.WIFI_SUPPLICANT_SCAN_INTERVAL_MS,
572 GlobalSettingsProto.WIFI_SUPPLICANT_SCAN_INTERVAL_MS);
573 dumpSetting(s, p,
574 Settings.Global.WIFI_ENHANCED_AUTO_JOIN,
575 GlobalSettingsProto.WIFI_ENHANCED_AUTO_JOIN);
576 dumpSetting(s, p,
577 Settings.Global.WIFI_NETWORK_SHOW_RSSI,
578 GlobalSettingsProto.WIFI_NETWORK_SHOW_RSSI);
579 dumpSetting(s, p,
580 Settings.Global.WIFI_SCAN_INTERVAL_WHEN_P2P_CONNECTED_MS,
581 GlobalSettingsProto.WIFI_SCAN_INTERVAL_WHEN_P2P_CONNECTED_MS);
582 dumpSetting(s, p,
583 Settings.Global.WIFI_WATCHDOG_ON,
584 GlobalSettingsProto.WIFI_WATCHDOG_ON);
585 dumpSetting(s, p,
586 Settings.Global.WIFI_WATCHDOG_POOR_NETWORK_TEST_ENABLED,
587 GlobalSettingsProto.WIFI_WATCHDOG_POOR_NETWORK_TEST_ENABLED);
588 dumpSetting(s, p,
589 Settings.Global.WIFI_SUSPEND_OPTIMIZATIONS_ENABLED,
590 GlobalSettingsProto.WIFI_SUSPEND_OPTIMIZATIONS_ENABLED);
591 dumpSetting(s, p,
592 Settings.Global.WIFI_VERBOSE_LOGGING_ENABLED,
593 GlobalSettingsProto.WIFI_VERBOSE_LOGGING_ENABLED);
594 dumpSetting(s, p,
595 Settings.Global.WIFI_MAX_DHCP_RETRY_COUNT,
596 GlobalSettingsProto.WIFI_MAX_DHCP_RETRY_COUNT);
597 dumpSetting(s, p,
598 Settings.Global.WIFI_MOBILE_DATA_TRANSITION_WAKELOCK_TIMEOUT_MS,
599 GlobalSettingsProto.WIFI_MOBILE_DATA_TRANSITION_WAKELOCK_TIMEOUT_MS);
600 dumpSetting(s, p,
601 Settings.Global.WIFI_DEVICE_OWNER_CONFIGS_LOCKDOWN,
602 GlobalSettingsProto.WIFI_DEVICE_OWNER_CONFIGS_LOCKDOWN);
603 dumpSetting(s, p,
604 Settings.Global.WIFI_FREQUENCY_BAND,
605 GlobalSettingsProto.WIFI_FREQUENCY_BAND);
606 dumpSetting(s, p,
607 Settings.Global.WIFI_P2P_DEVICE_NAME,
608 GlobalSettingsProto.WIFI_P2P_DEVICE_NAME);
609 dumpSetting(s, p,
610 Settings.Global.WIFI_REENABLE_DELAY_MS,
611 GlobalSettingsProto.WIFI_REENABLE_DELAY_MS);
612 dumpSetting(s, p,
613 Settings.Global.WIFI_EPHEMERAL_OUT_OF_RANGE_TIMEOUT_MS,
614 GlobalSettingsProto.WIFI_EPHEMERAL_OUT_OF_RANGE_TIMEOUT_MS);
615 dumpSetting(s, p,
616 Settings.Global.DATA_STALL_ALARM_NON_AGGRESSIVE_DELAY_IN_MS,
617 GlobalSettingsProto.DATA_STALL_ALARM_NON_AGGRESSIVE_DELAY_IN_MS);
618 dumpSetting(s, p,
619 Settings.Global.DATA_STALL_ALARM_AGGRESSIVE_DELAY_IN_MS,
620 GlobalSettingsProto.DATA_STALL_ALARM_AGGRESSIVE_DELAY_IN_MS);
621 dumpSetting(s, p,
622 Settings.Global.PROVISIONING_APN_ALARM_DELAY_IN_MS,
623 GlobalSettingsProto.PROVISIONING_APN_ALARM_DELAY_IN_MS);
624 dumpSetting(s, p,
625 Settings.Global.GPRS_REGISTER_CHECK_PERIOD_MS,
626 GlobalSettingsProto.GPRS_REGISTER_CHECK_PERIOD_MS);
627 dumpSetting(s, p,
628 Settings.Global.WTF_IS_FATAL,
629 GlobalSettingsProto.WTF_IS_FATAL);
630 dumpSetting(s, p,
631 Settings.Global.MODE_RINGER,
632 GlobalSettingsProto.MODE_RINGER);
633 dumpSetting(s, p,
634 Settings.Global.OVERLAY_DISPLAY_DEVICES,
635 GlobalSettingsProto.OVERLAY_DISPLAY_DEVICES);
636 dumpSetting(s, p,
637 Settings.Global.BATTERY_DISCHARGE_DURATION_THRESHOLD,
638 GlobalSettingsProto.BATTERY_DISCHARGE_DURATION_THRESHOLD);
639 dumpSetting(s, p,
640 Settings.Global.BATTERY_DISCHARGE_THRESHOLD,
641 GlobalSettingsProto.BATTERY_DISCHARGE_THRESHOLD);
642 dumpSetting(s, p,
643 Settings.Global.SEND_ACTION_APP_ERROR,
644 GlobalSettingsProto.SEND_ACTION_APP_ERROR);
645 dumpSetting(s, p,
646 Settings.Global.DROPBOX_AGE_SECONDS,
647 GlobalSettingsProto.DROPBOX_AGE_SECONDS);
648 dumpSetting(s, p,
649 Settings.Global.DROPBOX_MAX_FILES,
650 GlobalSettingsProto.DROPBOX_MAX_FILES);
651 dumpSetting(s, p,
652 Settings.Global.DROPBOX_QUOTA_KB,
653 GlobalSettingsProto.DROPBOX_QUOTA_KB);
654 dumpSetting(s, p,
655 Settings.Global.DROPBOX_QUOTA_PERCENT,
656 GlobalSettingsProto.DROPBOX_QUOTA_PERCENT);
657 dumpSetting(s, p,
658 Settings.Global.DROPBOX_RESERVE_PERCENT,
659 GlobalSettingsProto.DROPBOX_RESERVE_PERCENT);
660 dumpSetting(s, p,
661 Settings.Global.DROPBOX_TAG_PREFIX,
662 GlobalSettingsProto.DROPBOX_TAG_PREFIX);
663 dumpSetting(s, p,
664 Settings.Global.ERROR_LOGCAT_PREFIX,
665 GlobalSettingsProto.ERROR_LOGCAT_PREFIX);
666 dumpSetting(s, p,
667 Settings.Global.SYS_FREE_STORAGE_LOG_INTERVAL,
668 GlobalSettingsProto.SYS_FREE_STORAGE_LOG_INTERVAL);
669 dumpSetting(s, p,
670 Settings.Global.DISK_FREE_CHANGE_REPORTING_THRESHOLD,
671 GlobalSettingsProto.DISK_FREE_CHANGE_REPORTING_THRESHOLD);
672 dumpSetting(s, p,
673 Settings.Global.SYS_STORAGE_THRESHOLD_PERCENTAGE,
674 GlobalSettingsProto.SYS_STORAGE_THRESHOLD_PERCENTAGE);
675 dumpSetting(s, p,
676 Settings.Global.SYS_STORAGE_THRESHOLD_MAX_BYTES,
677 GlobalSettingsProto.SYS_STORAGE_THRESHOLD_MAX_BYTES);
678 dumpSetting(s, p,
679 Settings.Global.SYS_STORAGE_FULL_THRESHOLD_BYTES,
680 GlobalSettingsProto.SYS_STORAGE_FULL_THRESHOLD_BYTES);
681 dumpSetting(s, p,
Kweku Adamsb0886f32017-10-31 15:32:09 -0700682 Settings.Global.SYS_STORAGE_CACHE_PERCENTAGE,
683 GlobalSettingsProto.SYS_STORAGE_CACHE_PERCENTAGE);
684 dumpSetting(s, p,
685 Settings.Global.SYS_STORAGE_CACHE_MAX_BYTES,
686 GlobalSettingsProto.SYS_STORAGE_CACHE_MAX_BYTES);
687 dumpSetting(s, p,
Eugene Suslad72c3972016-12-27 15:49:30 -0800688 Settings.Global.SYNC_MAX_RETRY_DELAY_IN_SECONDS,
689 GlobalSettingsProto.SYNC_MAX_RETRY_DELAY_IN_SECONDS);
690 dumpSetting(s, p,
691 Settings.Global.CONNECTIVITY_CHANGE_DELAY,
692 GlobalSettingsProto.CONNECTIVITY_CHANGE_DELAY);
693 dumpSetting(s, p,
694 Settings.Global.CONNECTIVITY_SAMPLING_INTERVAL_IN_SECONDS,
695 GlobalSettingsProto.CONNECTIVITY_SAMPLING_INTERVAL_IN_SECONDS);
696 dumpSetting(s, p,
697 Settings.Global.PAC_CHANGE_DELAY,
698 GlobalSettingsProto.PAC_CHANGE_DELAY);
699 dumpSetting(s, p,
700 Settings.Global.CAPTIVE_PORTAL_MODE,
701 GlobalSettingsProto.CAPTIVE_PORTAL_MODE);
702 dumpSetting(s, p,
Kweku Adamsb0886f32017-10-31 15:32:09 -0700703 Settings.Global.CAPTIVE_PORTAL_DETECTION_ENABLED,
704 GlobalSettingsProto.CAPTIVE_PORTAL_DETECTION_ENABLED);
705 dumpSetting(s, p,
Eugene Suslad72c3972016-12-27 15:49:30 -0800706 Settings.Global.CAPTIVE_PORTAL_SERVER,
707 GlobalSettingsProto.CAPTIVE_PORTAL_SERVER);
708 dumpSetting(s, p,
709 Settings.Global.CAPTIVE_PORTAL_HTTPS_URL,
710 GlobalSettingsProto.CAPTIVE_PORTAL_HTTPS_URL);
711 dumpSetting(s, p,
712 Settings.Global.CAPTIVE_PORTAL_HTTP_URL,
713 GlobalSettingsProto.CAPTIVE_PORTAL_HTTP_URL);
714 dumpSetting(s, p,
715 Settings.Global.CAPTIVE_PORTAL_FALLBACK_URL,
716 GlobalSettingsProto.CAPTIVE_PORTAL_FALLBACK_URL);
717 dumpSetting(s, p,
Kweku Adamsb0886f32017-10-31 15:32:09 -0700718 Settings.Global.CAPTIVE_PORTAL_OTHER_FALLBACK_URLS,
719 GlobalSettingsProto.CAPTIVE_PORTAL_OTHER_FALLBACK_URLS);
720 dumpSetting(s, p,
Eugene Suslad72c3972016-12-27 15:49:30 -0800721 Settings.Global.CAPTIVE_PORTAL_USE_HTTPS,
722 GlobalSettingsProto.CAPTIVE_PORTAL_USE_HTTPS);
723 dumpSetting(s, p,
724 Settings.Global.CAPTIVE_PORTAL_USER_AGENT,
725 GlobalSettingsProto.CAPTIVE_PORTAL_USER_AGENT);
726 dumpSetting(s, p,
727 Settings.Global.NSD_ON,
728 GlobalSettingsProto.NSD_ON);
729 dumpSetting(s, p,
730 Settings.Global.SET_INSTALL_LOCATION,
731 GlobalSettingsProto.SET_INSTALL_LOCATION);
732 dumpSetting(s, p,
733 Settings.Global.DEFAULT_INSTALL_LOCATION,
734 GlobalSettingsProto.DEFAULT_INSTALL_LOCATION);
735 dumpSetting(s, p,
736 Settings.Global.INET_CONDITION_DEBOUNCE_UP_DELAY,
737 GlobalSettingsProto.INET_CONDITION_DEBOUNCE_UP_DELAY);
738 dumpSetting(s, p,
739 Settings.Global.INET_CONDITION_DEBOUNCE_DOWN_DELAY,
740 GlobalSettingsProto.INET_CONDITION_DEBOUNCE_DOWN_DELAY);
741 dumpSetting(s, p,
742 Settings.Global.READ_EXTERNAL_STORAGE_ENFORCED_DEFAULT,
743 GlobalSettingsProto.READ_EXTERNAL_STORAGE_ENFORCED_DEFAULT);
744 dumpSetting(s, p,
745 Settings.Global.HTTP_PROXY,
746 GlobalSettingsProto.HTTP_PROXY);
747 dumpSetting(s, p,
748 Settings.Global.GLOBAL_HTTP_PROXY_HOST,
749 GlobalSettingsProto.GLOBAL_HTTP_PROXY_HOST);
750 dumpSetting(s, p,
751 Settings.Global.GLOBAL_HTTP_PROXY_PORT,
752 GlobalSettingsProto.GLOBAL_HTTP_PROXY_PORT);
753 dumpSetting(s, p,
754 Settings.Global.GLOBAL_HTTP_PROXY_EXCLUSION_LIST,
755 GlobalSettingsProto.GLOBAL_HTTP_PROXY_EXCLUSION_LIST);
756 dumpSetting(s, p,
757 Settings.Global.GLOBAL_HTTP_PROXY_PAC,
758 GlobalSettingsProto.GLOBAL_HTTP_PROXY_PAC);
759 dumpSetting(s, p,
760 Settings.Global.SET_GLOBAL_HTTP_PROXY,
761 GlobalSettingsProto.SET_GLOBAL_HTTP_PROXY);
762 dumpSetting(s, p,
763 Settings.Global.DEFAULT_DNS_SERVER,
764 GlobalSettingsProto.DEFAULT_DNS_SERVER);
765 dumpSetting(s, p,
Kweku Adamsb0886f32017-10-31 15:32:09 -0700766 Settings.Global.PRIVATE_DNS_MODE,
767 GlobalSettingsProto.PRIVATE_DNS_MODE);
768 dumpSetting(s, p,
769 Settings.Global.PRIVATE_DNS_SPECIFIER,
770 GlobalSettingsProto.PRIVATE_DNS_SPECIFIER);
771 dumpSetting(s, p,
Eugene Suslad72c3972016-12-27 15:49:30 -0800772 Settings.Global.BLUETOOTH_HEADSET_PRIORITY_PREFIX,
773 GlobalSettingsProto.BLUETOOTH_HEADSET_PRIORITY_PREFIX);
774 dumpSetting(s, p,
775 Settings.Global.BLUETOOTH_A2DP_SINK_PRIORITY_PREFIX,
776 GlobalSettingsProto.BLUETOOTH_A2DP_SINK_PRIORITY_PREFIX);
777 dumpSetting(s, p,
778 Settings.Global.BLUETOOTH_A2DP_SRC_PRIORITY_PREFIX,
779 GlobalSettingsProto.BLUETOOTH_A2DP_SRC_PRIORITY_PREFIX);
780 dumpSetting(s, p,
Antony Sargentf5772c62017-04-26 16:37:53 -0700781 Settings.Global.BLUETOOTH_A2DP_SUPPORTS_OPTIONAL_CODECS_PREFIX,
782 GlobalSettingsProto.BLUETOOTH_A2DP_SUPPORTS_OPTIONAL_CODECS_PREFIX);
783 dumpSetting(s, p,
784 Settings.Global.BLUETOOTH_A2DP_OPTIONAL_CODECS_ENABLED_PREFIX,
785 GlobalSettingsProto.BLUETOOTH_A2DP_OPTIONAL_CODECS_ENABLED_PREFIX);
786 dumpSetting(s, p,
Eugene Suslad72c3972016-12-27 15:49:30 -0800787 Settings.Global.BLUETOOTH_INPUT_DEVICE_PRIORITY_PREFIX,
788 GlobalSettingsProto.BLUETOOTH_INPUT_DEVICE_PRIORITY_PREFIX);
789 dumpSetting(s, p,
790 Settings.Global.BLUETOOTH_MAP_PRIORITY_PREFIX,
791 GlobalSettingsProto.BLUETOOTH_MAP_PRIORITY_PREFIX);
792 dumpSetting(s, p,
793 Settings.Global.BLUETOOTH_MAP_CLIENT_PRIORITY_PREFIX,
794 GlobalSettingsProto.BLUETOOTH_MAP_CLIENT_PRIORITY_PREFIX);
795 dumpSetting(s, p,
796 Settings.Global.BLUETOOTH_PBAP_CLIENT_PRIORITY_PREFIX,
797 GlobalSettingsProto.BLUETOOTH_PBAP_CLIENT_PRIORITY_PREFIX);
798 dumpSetting(s, p,
799 Settings.Global.BLUETOOTH_SAP_PRIORITY_PREFIX,
800 GlobalSettingsProto.BLUETOOTH_SAP_PRIORITY_PREFIX);
801 dumpSetting(s, p,
802 Settings.Global.BLUETOOTH_PAN_PRIORITY_PREFIX,
803 GlobalSettingsProto.BLUETOOTH_PAN_PRIORITY_PREFIX);
804 dumpSetting(s, p,
Jakub Pawlowskic2d7be62017-11-22 10:57:42 -0800805 Settings.Global.BLUETOOTH_HEARING_AID_PRIORITY_PREFIX,
806 GlobalSettingsProto.BLUETOOTH_HEARING_AID_PRIORITY_PREFIX);
807 dumpSetting(s, p,
Kweku Adamsb0886f32017-10-31 15:32:09 -0700808 Settings.Global.ACTIVITY_MANAGER_CONSTANTS,
809 GlobalSettingsProto.ACTIVITY_MANAGER_CONSTANTS);
810 dumpSetting(s, p,
Eugene Suslad72c3972016-12-27 15:49:30 -0800811 Settings.Global.DEVICE_IDLE_CONSTANTS,
812 GlobalSettingsProto.DEVICE_IDLE_CONSTANTS);
813 dumpSetting(s, p,
Kweku Adamsb0886f32017-10-31 15:32:09 -0700814 Settings.Global.BATTERY_SAVER_CONSTANTS,
815 GlobalSettingsProto.BATTERY_SAVER_CONSTANTS);
816 dumpSetting(s, p,
817 Settings.Global.ANOMALY_DETECTION_CONSTANTS,
818 GlobalSettingsProto.ANOMALY_DETECTION_CONSTANTS);
819 dumpSetting(s, p,
820 Settings.Global.ALWAYS_ON_DISPLAY_CONSTANTS,
821 GlobalSettingsProto.ALWAYS_ON_DISPLAY_CONSTANTS);
822 dumpSetting(s, p,
Eugene Suslad72c3972016-12-27 15:49:30 -0800823 Settings.Global.APP_IDLE_CONSTANTS,
824 GlobalSettingsProto.APP_IDLE_CONSTANTS);
825 dumpSetting(s, p,
Kweku Adamsb0886f32017-10-31 15:32:09 -0700826 Settings.Global.POWER_MANAGER_CONSTANTS,
827 GlobalSettingsProto.POWER_MANAGER_CONSTANTS);
828 dumpSetting(s, p,
Eugene Suslad72c3972016-12-27 15:49:30 -0800829 Settings.Global.ALARM_MANAGER_CONSTANTS,
830 GlobalSettingsProto.ALARM_MANAGER_CONSTANTS);
831 dumpSetting(s, p,
832 Settings.Global.JOB_SCHEDULER_CONSTANTS,
833 GlobalSettingsProto.JOB_SCHEDULER_CONSTANTS);
834 dumpSetting(s, p,
835 Settings.Global.SHORTCUT_MANAGER_CONSTANTS,
836 GlobalSettingsProto.SHORTCUT_MANAGER_CONSTANTS);
837 dumpSetting(s, p,
Kweku Adamsb0886f32017-10-31 15:32:09 -0700838 Settings.Global.DEVICE_POLICY_CONSTANTS,
839 GlobalSettingsProto.DEVICE_POLICY_CONSTANTS);
840 dumpSetting(s, p,
841 Settings.Global.TEXT_CLASSIFIER_CONSTANTS,
842 GlobalSettingsProto.TEXT_CLASSIFIER_CONSTANTS);
843 dumpSetting(s, p,
Eugene Suslad72c3972016-12-27 15:49:30 -0800844 Settings.Global.WINDOW_ANIMATION_SCALE,
845 GlobalSettingsProto.WINDOW_ANIMATION_SCALE);
846 dumpSetting(s, p,
847 Settings.Global.TRANSITION_ANIMATION_SCALE,
848 GlobalSettingsProto.TRANSITION_ANIMATION_SCALE);
849 dumpSetting(s, p,
850 Settings.Global.ANIMATOR_DURATION_SCALE,
851 GlobalSettingsProto.ANIMATOR_DURATION_SCALE);
852 dumpSetting(s, p,
853 Settings.Global.FANCY_IME_ANIMATIONS,
854 GlobalSettingsProto.FANCY_IME_ANIMATIONS);
855 dumpSetting(s, p,
856 Settings.Global.COMPATIBILITY_MODE,
857 GlobalSettingsProto.COMPATIBILITY_MODE);
858 dumpSetting(s, p,
859 Settings.Global.EMERGENCY_TONE,
860 GlobalSettingsProto.EMERGENCY_TONE);
861 dumpSetting(s, p,
862 Settings.Global.CALL_AUTO_RETRY,
863 GlobalSettingsProto.CALL_AUTO_RETRY);
864 dumpSetting(s, p,
865 Settings.Global.EMERGENCY_AFFORDANCE_NEEDED,
866 GlobalSettingsProto.EMERGENCY_AFFORDANCE_NEEDED);
867 dumpSetting(s, p,
868 Settings.Global.PREFERRED_NETWORK_MODE,
869 GlobalSettingsProto.PREFERRED_NETWORK_MODE);
870 dumpSetting(s, p,
871 Settings.Global.DEBUG_APP,
872 GlobalSettingsProto.DEBUG_APP);
873 dumpSetting(s, p,
874 Settings.Global.WAIT_FOR_DEBUGGER,
875 GlobalSettingsProto.WAIT_FOR_DEBUGGER);
Cody Northrop86cedcb2017-10-20 09:03:13 -0600876 dumpSetting(s, p,
877 Settings.Global.ENABLE_GPU_DEBUG_LAYERS,
878 GlobalSettingsProto.ENABLE_GPU_DEBUG_LAYERS);
879 dumpSetting(s, p,
880 Settings.Global.GPU_DEBUG_APP,
881 GlobalSettingsProto.GPU_DEBUG_APP);
882 dumpSetting(s, p,
883 Settings.Global.GPU_DEBUG_LAYERS,
884 GlobalSettingsProto.GPU_DEBUG_LAYERS);
gomo48f1a642017-11-10 20:35:46 -0800885 dumpSetting(s, p,
886 Settings.Global.ENABLE_GNSS_RAW_MEAS_FULL_TRACKING,
887 GlobalSettingsProto.ENABLE_GNSS_RAW_MEAS_FULL_TRACKING);
Kweku Adamsb0886f32017-10-31 15:32:09 -0700888 // Settings.Global.SHOW_PROCESSES intentionally excluded since it's deprecated.
Eugene Suslad72c3972016-12-27 15:49:30 -0800889 dumpSetting(s, p,
890 Settings.Global.LOW_POWER_MODE,
891 GlobalSettingsProto.LOW_POWER_MODE);
892 dumpSetting(s, p,
893 Settings.Global.LOW_POWER_MODE_TRIGGER_LEVEL,
894 GlobalSettingsProto.LOW_POWER_MODE_TRIGGER_LEVEL);
895 dumpSetting(s, p,
896 Settings.Global.ALWAYS_FINISH_ACTIVITIES,
897 GlobalSettingsProto.ALWAYS_FINISH_ACTIVITIES);
898 dumpSetting(s, p,
899 Settings.Global.DOCK_AUDIO_MEDIA_ENABLED,
900 GlobalSettingsProto.DOCK_AUDIO_MEDIA_ENABLED);
901 dumpSetting(s, p,
902 Settings.Global.ENCODED_SURROUND_OUTPUT,
903 GlobalSettingsProto.ENCODED_SURROUND_OUTPUT);
904 dumpSetting(s, p,
905 Settings.Global.AUDIO_SAFE_VOLUME_STATE,
906 GlobalSettingsProto.AUDIO_SAFE_VOLUME_STATE);
907 dumpSetting(s, p,
908 Settings.Global.TZINFO_UPDATE_CONTENT_URL,
909 GlobalSettingsProto.TZINFO_UPDATE_CONTENT_URL);
910 dumpSetting(s, p,
911 Settings.Global.TZINFO_UPDATE_METADATA_URL,
912 GlobalSettingsProto.TZINFO_UPDATE_METADATA_URL);
913 dumpSetting(s, p,
914 Settings.Global.SELINUX_UPDATE_CONTENT_URL,
915 GlobalSettingsProto.SELINUX_UPDATE_CONTENT_URL);
916 dumpSetting(s, p,
917 Settings.Global.SELINUX_UPDATE_METADATA_URL,
918 GlobalSettingsProto.SELINUX_UPDATE_METADATA_URL);
919 dumpSetting(s, p,
920 Settings.Global.SMS_SHORT_CODES_UPDATE_CONTENT_URL,
921 GlobalSettingsProto.SMS_SHORT_CODES_UPDATE_CONTENT_URL);
922 dumpSetting(s, p,
923 Settings.Global.SMS_SHORT_CODES_UPDATE_METADATA_URL,
924 GlobalSettingsProto.SMS_SHORT_CODES_UPDATE_METADATA_URL);
925 dumpSetting(s, p,
926 Settings.Global.APN_DB_UPDATE_CONTENT_URL,
927 GlobalSettingsProto.APN_DB_UPDATE_CONTENT_URL);
928 dumpSetting(s, p,
929 Settings.Global.APN_DB_UPDATE_METADATA_URL,
930 GlobalSettingsProto.APN_DB_UPDATE_METADATA_URL);
931 dumpSetting(s, p,
932 Settings.Global.CERT_PIN_UPDATE_CONTENT_URL,
933 GlobalSettingsProto.CERT_PIN_UPDATE_CONTENT_URL);
934 dumpSetting(s, p,
935 Settings.Global.CERT_PIN_UPDATE_METADATA_URL,
936 GlobalSettingsProto.CERT_PIN_UPDATE_METADATA_URL);
937 dumpSetting(s, p,
938 Settings.Global.INTENT_FIREWALL_UPDATE_CONTENT_URL,
939 GlobalSettingsProto.INTENT_FIREWALL_UPDATE_CONTENT_URL);
940 dumpSetting(s, p,
941 Settings.Global.INTENT_FIREWALL_UPDATE_METADATA_URL,
942 GlobalSettingsProto.INTENT_FIREWALL_UPDATE_METADATA_URL);
943 dumpSetting(s, p,
Kweku Adamsb0886f32017-10-31 15:32:09 -0700944 Settings.Global.LANG_ID_UPDATE_CONTENT_URL,
945 GlobalSettingsProto.LANG_ID_UPDATE_CONTENT_URL);
946 dumpSetting(s, p,
947 Settings.Global.LANG_ID_UPDATE_METADATA_URL,
948 GlobalSettingsProto.LANG_ID_UPDATE_METADATA_URL);
949 dumpSetting(s, p,
950 Settings.Global.SMART_SELECTION_UPDATE_CONTENT_URL,
951 GlobalSettingsProto.SMART_SELECTION_UPDATE_CONTENT_URL);
952 dumpSetting(s, p,
953 Settings.Global.SMART_SELECTION_UPDATE_METADATA_URL,
954 GlobalSettingsProto.SMART_SELECTION_UPDATE_METADATA_URL);
955 dumpSetting(s, p,
Eugene Suslad72c3972016-12-27 15:49:30 -0800956 Settings.Global.SELINUX_STATUS,
957 GlobalSettingsProto.SELINUX_STATUS);
958 dumpSetting(s, p,
959 Settings.Global.DEVELOPMENT_FORCE_RTL,
960 GlobalSettingsProto.DEVELOPMENT_FORCE_RTL);
961 dumpSetting(s, p,
962 Settings.Global.LOW_BATTERY_SOUND_TIMEOUT,
963 GlobalSettingsProto.LOW_BATTERY_SOUND_TIMEOUT);
964 dumpSetting(s, p,
965 Settings.Global.WIFI_BOUNCE_DELAY_OVERRIDE_MS,
966 GlobalSettingsProto.WIFI_BOUNCE_DELAY_OVERRIDE_MS);
967 dumpSetting(s, p,
968 Settings.Global.POLICY_CONTROL,
969 GlobalSettingsProto.POLICY_CONTROL);
970 dumpSetting(s, p,
971 Settings.Global.ZEN_MODE,
972 GlobalSettingsProto.ZEN_MODE);
973 dumpSetting(s, p,
974 Settings.Global.ZEN_MODE_RINGER_LEVEL,
975 GlobalSettingsProto.ZEN_MODE_RINGER_LEVEL);
976 dumpSetting(s, p,
977 Settings.Global.ZEN_MODE_CONFIG_ETAG,
978 GlobalSettingsProto.ZEN_MODE_CONFIG_ETAG);
979 dumpSetting(s, p,
980 Settings.Global.HEADS_UP_NOTIFICATIONS_ENABLED,
981 GlobalSettingsProto.HEADS_UP_NOTIFICATIONS_ENABLED);
982 dumpSetting(s, p,
983 Settings.Global.DEVICE_NAME,
984 GlobalSettingsProto.DEVICE_NAME);
985 dumpSetting(s, p,
986 Settings.Global.NETWORK_SCORING_PROVISIONED,
987 GlobalSettingsProto.NETWORK_SCORING_PROVISIONED);
988 dumpSetting(s, p,
989 Settings.Global.REQUIRE_PASSWORD_TO_DECRYPT,
990 GlobalSettingsProto.REQUIRE_PASSWORD_TO_DECRYPT);
991 dumpSetting(s, p,
992 Settings.Global.ENHANCED_4G_MODE_ENABLED,
993 GlobalSettingsProto.ENHANCED_4G_MODE_ENABLED);
994 dumpSetting(s, p,
995 Settings.Global.VT_IMS_ENABLED,
996 GlobalSettingsProto.VT_IMS_ENABLED);
997 dumpSetting(s, p,
998 Settings.Global.WFC_IMS_ENABLED,
999 GlobalSettingsProto.WFC_IMS_ENABLED);
1000 dumpSetting(s, p,
1001 Settings.Global.WFC_IMS_MODE,
1002 GlobalSettingsProto.WFC_IMS_MODE);
1003 dumpSetting(s, p,
1004 Settings.Global.WFC_IMS_ROAMING_MODE,
1005 GlobalSettingsProto.WFC_IMS_ROAMING_MODE);
1006 dumpSetting(s, p,
1007 Settings.Global.WFC_IMS_ROAMING_ENABLED,
1008 GlobalSettingsProto.WFC_IMS_ROAMING_ENABLED);
1009 dumpSetting(s, p,
1010 Settings.Global.LTE_SERVICE_FORCED,
1011 GlobalSettingsProto.LTE_SERVICE_FORCED);
1012 dumpSetting(s, p,
1013 Settings.Global.EPHEMERAL_COOKIE_MAX_SIZE_BYTES,
1014 GlobalSettingsProto.EPHEMERAL_COOKIE_MAX_SIZE_BYTES);
1015 dumpSetting(s, p,
1016 Settings.Global.ENABLE_EPHEMERAL_FEATURE,
1017 GlobalSettingsProto.ENABLE_EPHEMERAL_FEATURE);
1018 dumpSetting(s, p,
Kweku Adamsb0886f32017-10-31 15:32:09 -07001019 Settings.Global.INSTANT_APP_DEXOPT_ENABLED,
1020 GlobalSettingsProto.INSTANT_APP_DEXOPT_ENABLED);
Svet Ganovf36d53c2017-05-24 00:27:21 -07001021 dumpSetting(s, p,
1022 Settings.Global.INSTALLED_INSTANT_APP_MIN_CACHE_PERIOD,
1023 GlobalSettingsProto.INSTALLED_INSTANT_APP_MIN_CACHE_PERIOD);
1024 dumpSetting(s, p,
1025 Settings.Global.INSTALLED_INSTANT_APP_MAX_CACHE_PERIOD,
1026 GlobalSettingsProto.INSTALLED_INSTANT_APP_MAX_CACHE_PERIOD);
1027 dumpSetting(s, p,
Kweku Adamsb0886f32017-10-31 15:32:09 -07001028 Settings.Global.UNINSTALLED_INSTANT_APP_MIN_CACHE_PERIOD,
1029 GlobalSettingsProto.UNINSTALLED_INSTANT_APP_MIN_CACHE_PERIOD);
1030 dumpSetting(s, p,
1031 Settings.Global.UNINSTALLED_INSTANT_APP_MAX_CACHE_PERIOD,
1032 GlobalSettingsProto.UNINSTALLED_INSTANT_APP_MAX_CACHE_PERIOD);
1033 dumpSetting(s, p,
Svet Ganovf36d53c2017-05-24 00:27:21 -07001034 Settings.Global.UNUSED_STATIC_SHARED_LIB_MIN_CACHE_PERIOD,
1035 GlobalSettingsProto.UNUSED_STATIC_SHARED_LIB_MIN_CACHE_PERIOD);
Eugene Suslad72c3972016-12-27 15:49:30 -08001036 dumpSetting(s, p,
1037 Settings.Global.ALLOW_USER_SWITCHING_WHEN_SYSTEM_USER_LOCKED,
1038 GlobalSettingsProto.ALLOW_USER_SWITCHING_WHEN_SYSTEM_USER_LOCKED);
1039 dumpSetting(s, p,
1040 Settings.Global.BOOT_COUNT,
1041 GlobalSettingsProto.BOOT_COUNT);
1042 dumpSetting(s, p,
1043 Settings.Global.SAFE_BOOT_DISALLOWED,
1044 GlobalSettingsProto.SAFE_BOOT_DISALLOWED);
1045 dumpSetting(s, p,
1046 Settings.Global.DEVICE_DEMO_MODE,
1047 GlobalSettingsProto.DEVICE_DEMO_MODE);
1048 dumpSetting(s, p,
Kweku Adamsb0886f32017-10-31 15:32:09 -07001049 Settings.Global.NETWORK_ACCESS_TIMEOUT_MS,
1050 GlobalSettingsProto.NETWORK_ACCESS_TIMEOUT_MS);
1051 dumpSetting(s, p,
Eugene Suslad72c3972016-12-27 15:49:30 -08001052 Settings.Global.DATABASE_DOWNGRADE_REASON,
1053 GlobalSettingsProto.DATABASE_DOWNGRADE_REASON);
1054 dumpSetting(s, p,
Kweku Adamsb0886f32017-10-31 15:32:09 -07001055 Settings.Global.DATABASE_CREATION_BUILDID,
1056 GlobalSettingsProto.DATABASE_CREATION_BUILDID);
1057 dumpSetting(s, p,
Eugene Suslad72c3972016-12-27 15:49:30 -08001058 Settings.Global.CONTACTS_DATABASE_WAL_ENABLED,
1059 GlobalSettingsProto.CONTACTS_DATABASE_WAL_ENABLED);
1060 dumpSetting(s, p,
Kweku Adamsb0886f32017-10-31 15:32:09 -07001061 Settings.Global.LOCATION_SETTINGS_LINK_TO_PERMISSIONS_ENABLED,
1062 GlobalSettingsProto.LOCATION_SETTINGS_LINK_TO_PERMISSIONS_ENABLED);
1063 dumpSetting(s, p,
Kweku Adamsb0886f32017-10-31 15:32:09 -07001064 Settings.Global.EUICC_FACTORY_RESET_TIMEOUT_MILLIS,
1065 GlobalSettingsProto.EUICC_FACTORY_RESET_TIMEOUT_MILLIS);
1066 dumpSetting(s, p,
1067 Settings.Global.STORAGE_SETTINGS_CLOBBER_THRESHOLD,
1068 GlobalSettingsProto.STORAGE_SETTINGS_CLOBBER_THRESHOLD);
1069 dumpSetting(s, p,
Eugene Suslad72c3972016-12-27 15:49:30 -08001070 Settings.Global.MULTI_SIM_VOICE_CALL_SUBSCRIPTION,
1071 GlobalSettingsProto.MULTI_SIM_VOICE_CALL_SUBSCRIPTION);
1072 dumpSetting(s, p,
1073 Settings.Global.MULTI_SIM_VOICE_PROMPT,
1074 GlobalSettingsProto.MULTI_SIM_VOICE_PROMPT);
1075 dumpSetting(s, p,
1076 Settings.Global.MULTI_SIM_DATA_CALL_SUBSCRIPTION,
1077 GlobalSettingsProto.MULTI_SIM_DATA_CALL_SUBSCRIPTION);
1078 dumpSetting(s, p,
1079 Settings.Global.MULTI_SIM_SMS_SUBSCRIPTION,
1080 GlobalSettingsProto.MULTI_SIM_SMS_SUBSCRIPTION);
1081 dumpSetting(s, p,
1082 Settings.Global.MULTI_SIM_SMS_PROMPT,
1083 GlobalSettingsProto.MULTI_SIM_SMS_PROMPT);
1084 dumpSetting(s, p,
1085 Settings.Global.NEW_CONTACT_AGGREGATOR,
1086 GlobalSettingsProto.NEW_CONTACT_AGGREGATOR);
Kweku Adamsb0886f32017-10-31 15:32:09 -07001087 // Settings.Global.CONTACT_METADATA_SYNC intentionally excluded since it's deprecated.
Eugene Suslad72c3972016-12-27 15:49:30 -08001088 dumpSetting(s, p,
1089 Settings.Global.CONTACT_METADATA_SYNC_ENABLED,
1090 GlobalSettingsProto.CONTACT_METADATA_SYNC_ENABLED);
1091 dumpSetting(s, p,
1092 Settings.Global.ENABLE_CELLULAR_ON_BOOT,
1093 GlobalSettingsProto.ENABLE_CELLULAR_ON_BOOT);
1094 dumpSetting(s, p,
1095 Settings.Global.MAX_NOTIFICATION_ENQUEUE_RATE,
1096 GlobalSettingsProto.MAX_NOTIFICATION_ENQUEUE_RATE);
1097 dumpSetting(s, p,
Kweku Adamsb0886f32017-10-31 15:32:09 -07001098 Settings.Global.SHOW_NOTIFICATION_CHANNEL_WARNINGS,
1099 GlobalSettingsProto.SHOW_NOTIFICATION_CHANNEL_WARNINGS);
1100 dumpSetting(s, p,
Eugene Suslad72c3972016-12-27 15:49:30 -08001101 Settings.Global.CELL_ON,
1102 GlobalSettingsProto.CELL_ON);
Kweku Adamsb0886f32017-10-31 15:32:09 -07001103 dumpSetting(s, p,
1104 Settings.Global.SHOW_TEMPERATURE_WARNING,
1105 GlobalSettingsProto.SHOW_TEMPERATURE_WARNING);
1106 dumpSetting(s, p,
1107 Settings.Global.WARNING_TEMPERATURE,
1108 GlobalSettingsProto.WARNING_TEMPERATURE);
1109 dumpSetting(s, p,
1110 Settings.Global.ENABLE_DISKSTATS_LOGGING,
1111 GlobalSettingsProto.ENABLE_DISKSTATS_LOGGING);
1112 dumpSetting(s, p,
1113 Settings.Global.ENABLE_CACHE_QUOTA_CALCULATION,
1114 GlobalSettingsProto.ENABLE_CACHE_QUOTA_CALCULATION);
1115 dumpSetting(s, p,
1116 Settings.Global.ENABLE_DELETION_HELPER_NO_THRESHOLD_TOGGLE,
1117 GlobalSettingsProto.ENABLE_DELETION_HELPER_NO_THRESHOLD_TOGGLE);
1118 // The list of snooze options for notifications. This is encoded as a key=value list,
1119 // separated by commas.
1120 dumpSetting(s, p,
1121 Settings.Global.NOTIFICATION_SNOOZE_OPTIONS,
1122 GlobalSettingsProto.NOTIFICATION_SNOOZE_OPTIONS);
Daniel Colascione766b6322018-01-08 19:10:36 -08001123 dumpSetting(s, p,
Andrew Sapperstein5b679c42018-01-16 11:13:40 -08001124 Settings.Global.ZRAM_ENABLED,
1125 GlobalSettingsProto.ZRAM_ENABLED);
Petr Cermak9669e902018-01-16 16:37:22 +00001126 dumpSetting(s, p,
1127 Settings.Global.ENABLE_SMART_REPLIES_IN_NOTIFICATIONS,
1128 GlobalSettingsProto.ENABLE_SMART_REPLIES_IN_NOTIFICATIONS);
Andrew Sapperstein43643ae2017-12-20 15:17:33 -08001129 dumpSetting(s, p,
1130 Settings.Global.SHOW_FIRST_CRASH_DIALOG,
1131 GlobalSettingsProto.SHOW_FIRST_CRASH_DIALOG);
Jong Wook Kim0a20eda2018-01-05 18:40:25 -08001132 dumpSetting(s, p,
Andrew Sapperstein5b679c42018-01-16 11:13:40 -08001133 Settings.Global.WIFI_CONNECTED_MAC_RANDOMIZATION_ENABLED,
1134 GlobalSettingsProto.WIFI_CONNECTED_MAC_RANDOMIZATION_ENABLED);
1135 dumpSetting(s, p,
1136 Settings.Global.SHOW_RESTART_IN_CRASH_DIALOG,
1137 GlobalSettingsProto.SHOW_RESTART_IN_CRASH_DIALOG);
1138 dumpSetting(s, p,
1139 Settings.Global.SHOW_MUTE_IN_CRASH_DIALOG,
1140 GlobalSettingsProto.SHOW_MUTE_IN_CRASH_DIALOG);
Narayan Kamath8d828252018-01-11 15:22:37 +00001141 dumpSetting(s, p,
1142 Settings.Global.WIFI_CONNECTED_MAC_RANDOMIZATION_ENABLED,
1143 GlobalSettingsProto.WIFI_CONNECTED_MAC_RANDOMIZATION_ENABLED);
1144 dumpSetting(s, p,
1145 Global.CHAINED_BATTERY_ATTRIBUTION_ENABLED,
1146 GlobalSettingsProto.CHAINED_BATTERY_ATTRIBUTION_ENABLED);
Eugene Suslad72c3972016-12-27 15:49:30 -08001147 }
1148
1149 /** Dump a single {@link SettingsState.Setting} to a proto buf */
1150 private static void dumpSetting(@NonNull SettingsState settings,
1151 @NonNull ProtoOutputStream proto, String settingName, long fieldId) {
1152 SettingsState.Setting setting = settings.getSettingLocked(settingName);
1153 long settingsToken = proto.start(fieldId);
1154 proto.write(SettingProto.ID, setting.getId());
1155 proto.write(SettingProto.NAME, settingName);
1156 if (setting.getPackageName() != null) {
1157 proto.write(SettingProto.PKG, setting.getPackageName());
1158 }
1159 proto.write(SettingProto.VALUE, setting.getValue());
1160 if (setting.getDefaultValue() != null) {
1161 proto.write(SettingProto.DEFAULT_VALUE, setting.getDefaultValue());
1162 proto.write(SettingProto.DEFAULT_FROM_SYSTEM, setting.isDefaultFromSystem());
1163 }
1164 proto.end(settingsToken);
1165 }
1166
1167 static void dumpProtoSecureSettingsLocked(
1168 @NonNull SettingsState s, @NonNull ProtoOutputStream p) {
Kweku Adamsb0886f32017-10-31 15:32:09 -07001169 s.dumpHistoricalOperations(p, SecureSettingsProto.HISTORICAL_OPERATIONS);
1170
1171 // This uses the same order as in Settings.Secure.
1172
1173 // Settings.Secure.DEVELOPMENT_SETTINGS_ENABLED intentionally excluded since it's deprecated.
1174 // Settings.Secure.BUGREPORT_IN_POWER_MENU intentionally excluded since it's deprecated.
1175 // Settings.Secure.ADB_ENABLED intentionally excluded since it's deprecated.
1176 // Settings.Secure.ALLOW_MOCK_LOCATION intentionally excluded since it's deprecated.
Eugene Suslad72c3972016-12-27 15:49:30 -08001177 dumpSetting(s, p,
1178 Settings.Secure.ANDROID_ID,
1179 SecureSettingsProto.ANDROID_ID);
Kweku Adamsb0886f32017-10-31 15:32:09 -07001180 // Settings.Secure.BLUETOOTH_ON intentionally excluded since it's deprecated.
1181 // Settings.Secure.DATA_ROAMING intentionally excluded since it's deprecated.
Eugene Suslad72c3972016-12-27 15:49:30 -08001182 dumpSetting(s, p,
1183 Settings.Secure.DEFAULT_INPUT_METHOD,
1184 SecureSettingsProto.DEFAULT_INPUT_METHOD);
1185 dumpSetting(s, p,
1186 Settings.Secure.SELECTED_INPUT_METHOD_SUBTYPE,
1187 SecureSettingsProto.SELECTED_INPUT_METHOD_SUBTYPE);
1188 dumpSetting(s, p,
1189 Settings.Secure.INPUT_METHODS_SUBTYPE_HISTORY,
1190 SecureSettingsProto.INPUT_METHODS_SUBTYPE_HISTORY);
1191 dumpSetting(s, p,
1192 Settings.Secure.INPUT_METHOD_SELECTOR_VISIBILITY,
1193 SecureSettingsProto.INPUT_METHOD_SELECTOR_VISIBILITY);
1194 dumpSetting(s, p,
1195 Settings.Secure.VOICE_INTERACTION_SERVICE,
1196 SecureSettingsProto.VOICE_INTERACTION_SERVICE);
1197 dumpSetting(s, p,
Felipe Leme640f30a2017-03-06 15:44:06 -08001198 Settings.Secure.AUTOFILL_SERVICE,
1199 SecureSettingsProto.AUTOFILL_SERVICE);
Kweku Adamsb0886f32017-10-31 15:32:09 -07001200 // Settings.Secure.DEVICE_PROVISIONED intentionally excluded since it's deprecated.
Eugene Suslad72c3972016-12-27 15:49:30 -08001201 dumpSetting(s, p,
Eugene Suslad72c3972016-12-27 15:49:30 -08001202 Settings.Secure.USER_SETUP_COMPLETE,
1203 SecureSettingsProto.USER_SETUP_COMPLETE);
Kweku Adamsb0886f32017-10-31 15:32:09 -07001204 // Whether the current user has been set up via setup wizard (0 = false, 1 = true). This
1205 // value differs from USER_SETUP_COMPLETE in that it can be reset back to 0 in case
1206 // SetupWizard has been re-enabled on TV devices.
1207 dumpSetting(s, p,
1208 Settings.Secure.TV_USER_SETUP_COMPLETE,
1209 SecureSettingsProto.TV_USER_SETUP_COMPLETE);
Eugene Suslad72c3972016-12-27 15:49:30 -08001210 dumpSetting(s, p,
1211 Settings.Secure.COMPLETED_CATEGORY_PREFIX,
1212 SecureSettingsProto.COMPLETED_CATEGORY_PREFIX);
1213 dumpSetting(s, p,
1214 Settings.Secure.ENABLED_INPUT_METHODS,
1215 SecureSettingsProto.ENABLED_INPUT_METHODS);
1216 dumpSetting(s, p,
1217 Settings.Secure.DISABLED_SYSTEM_INPUT_METHODS,
1218 SecureSettingsProto.DISABLED_SYSTEM_INPUT_METHODS);
1219 dumpSetting(s, p,
1220 Settings.Secure.SHOW_IME_WITH_HARD_KEYBOARD,
1221 SecureSettingsProto.SHOW_IME_WITH_HARD_KEYBOARD);
Kweku Adamsb0886f32017-10-31 15:32:09 -07001222 // Settings.Secure.HTTP_PROXY intentionally excluded since it's deprecated.
Eugene Suslad72c3972016-12-27 15:49:30 -08001223 dumpSetting(s, p,
1224 Settings.Secure.ALWAYS_ON_VPN_APP,
1225 SecureSettingsProto.ALWAYS_ON_VPN_APP);
1226 dumpSetting(s, p,
1227 Settings.Secure.ALWAYS_ON_VPN_LOCKDOWN,
1228 SecureSettingsProto.ALWAYS_ON_VPN_LOCKDOWN);
1229 dumpSetting(s, p,
1230 Settings.Secure.INSTALL_NON_MARKET_APPS,
1231 SecureSettingsProto.INSTALL_NON_MARKET_APPS);
1232 dumpSetting(s, p,
Kweku Adamsb0886f32017-10-31 15:32:09 -07001233 Settings.Secure.UNKNOWN_SOURCES_DEFAULT_REVERSED,
1234 SecureSettingsProto.UNKNOWN_SOURCES_DEFAULT_REVERSED);
1235 // Settings.Secure.LOCATION_PROVIDERS_ALLOWED intentionally excluded since it's deprecated.
1236 dumpSetting(s, p,
Eugene Suslad72c3972016-12-27 15:49:30 -08001237 Settings.Secure.LOCATION_MODE,
1238 SecureSettingsProto.LOCATION_MODE);
Kweku Adamsb0886f32017-10-31 15:32:09 -07001239 // Settings.Secure.LOCK_BIOMETRIC_WEAK_FLAGS intentionally excluded since it's deprecated.
Eugene Suslad72c3972016-12-27 15:49:30 -08001240 dumpSetting(s, p,
1241 Settings.Secure.LOCK_TO_APP_EXIT_LOCKED,
1242 SecureSettingsProto.LOCK_TO_APP_EXIT_LOCKED);
Kweku Adamsb0886f32017-10-31 15:32:09 -07001243 // Settings.Secure.LOCK_PATTERN_ENABLED intentionally excluded since it's deprecated.
1244 // Settings.Secure.LOCK_PATTERN_VISIBLE intentionally excluded since it's deprecated.
1245 // Settings.Secure.LOCK_PATTERN_TACTICLE_FEEDBACK_ENABLED intentionally excluded since it's deprecated.
Eugene Suslad72c3972016-12-27 15:49:30 -08001246 dumpSetting(s, p,
1247 Settings.Secure.LOCK_SCREEN_LOCK_AFTER_TIMEOUT,
1248 SecureSettingsProto.LOCK_SCREEN_LOCK_AFTER_TIMEOUT);
Kweku Adamsb0886f32017-10-31 15:32:09 -07001249 // Settings.Secure.LOCK_SCREEN_OWNER_INFO intentionally excluded since it's deprecated.
1250 // Settings.Secure.LOCK_SCREEN_APPWIDGET_IDS intentionally excluded since it's deprecated.
1251 // Settings.Secure.LOCK_SCREEN_FALLBACK_APPWIDGET_ID intentionally excluded since it's deprecated.
1252 // Settings.Secure.LOCK_SCREEN_STICKY_APPWIDGET intentionally excluded since it's deprecated.
1253 // Settings.Secure.LOCK_SCREEN_OWNER_INFO_ENABLED intentionally excluded since it's deprecated.
1254 dumpSetting(s, p,
1255 Settings.Secure.LOCK_SCREEN_ALLOW_PRIVATE_NOTIFICATIONS,
1256 SecureSettingsProto.LOCK_SCREEN_ALLOW_PRIVATE_NOTIFICATIONS);
Eugene Suslad72c3972016-12-27 15:49:30 -08001257 dumpSetting(s, p,
1258 Settings.Secure.LOCK_SCREEN_ALLOW_REMOTE_INPUT,
1259 SecureSettingsProto.LOCK_SCREEN_ALLOW_REMOTE_INPUT);
1260 dumpSetting(s, p,
1261 Settings.Secure.SHOW_NOTE_ABOUT_NOTIFICATION_HIDING,
1262 SecureSettingsProto.SHOW_NOTE_ABOUT_NOTIFICATION_HIDING);
1263 dumpSetting(s, p,
1264 Settings.Secure.TRUST_AGENTS_INITIALIZED,
1265 SecureSettingsProto.TRUST_AGENTS_INITIALIZED);
Kweku Adamsb0886f32017-10-31 15:32:09 -07001266 // Settings.Secure.LOGGING_ID intentionally excluded since it's deprecated.
1267 // Settings.Secure.NETWORK_PREFERENCE intentionally excluded since it's deprecated.
Eugene Suslad72c3972016-12-27 15:49:30 -08001268 dumpSetting(s, p,
1269 Settings.Secure.PARENTAL_CONTROL_ENABLED,
1270 SecureSettingsProto.PARENTAL_CONTROL_ENABLED);
1271 dumpSetting(s, p,
1272 Settings.Secure.PARENTAL_CONTROL_LAST_UPDATE,
1273 SecureSettingsProto.PARENTAL_CONTROL_LAST_UPDATE);
1274 dumpSetting(s, p,
1275 Settings.Secure.PARENTAL_CONTROL_REDIRECT_URL,
1276 SecureSettingsProto.PARENTAL_CONTROL_REDIRECT_URL);
1277 dumpSetting(s, p,
1278 Settings.Secure.SETTINGS_CLASSNAME,
1279 SecureSettingsProto.SETTINGS_CLASSNAME);
Kweku Adamsb0886f32017-10-31 15:32:09 -07001280 // Settings.Secure.USB_MASS_STORAGE_ENABLED intentionally excluded since it's deprecated.
1281 // Settings.Secure.USE_GOOGLE_MAIL intentionally excluded since it's deprecated.
Eugene Suslad72c3972016-12-27 15:49:30 -08001282 dumpSetting(s, p,
1283 Settings.Secure.ACCESSIBILITY_ENABLED,
1284 SecureSettingsProto.ACCESSIBILITY_ENABLED);
1285 dumpSetting(s, p,
Kweku Adamsb0886f32017-10-31 15:32:09 -07001286 Settings.Secure.ACCESSIBILITY_SHORTCUT_ENABLED,
1287 SecureSettingsProto.ACCESSIBILITY_SHORTCUT_ENABLED);
1288 dumpSetting(s, p,
1289 Settings.Secure.ACCESSIBILITY_SHORTCUT_ON_LOCK_SCREEN,
1290 SecureSettingsProto.ACCESSIBILITY_SHORTCUT_ON_LOCK_SCREEN);
1291 dumpSetting(s, p,
1292 Settings.Secure.ACCESSIBILITY_SHORTCUT_DIALOG_SHOWN,
1293 SecureSettingsProto.ACCESSIBILITY_SHORTCUT_DIALOG_SHOWN);
1294 dumpSetting(s, p,
1295 Settings.Secure.ACCESSIBILITY_SHORTCUT_TARGET_SERVICE,
1296 SecureSettingsProto.ACCESSIBILITY_SHORTCUT_TARGET_SERVICE);
1297 dumpSetting(s, p,
1298 Settings.Secure.ACCESSIBILITY_BUTTON_TARGET_COMPONENT,
1299 SecureSettingsProto.ACCESSIBILITY_BUTTON_TARGET_COMPONENT);
1300 dumpSetting(s, p,
Eugene Suslad72c3972016-12-27 15:49:30 -08001301 Settings.Secure.TOUCH_EXPLORATION_ENABLED,
1302 SecureSettingsProto.TOUCH_EXPLORATION_ENABLED);
1303 dumpSetting(s, p,
1304 Settings.Secure.ENABLED_ACCESSIBILITY_SERVICES,
1305 SecureSettingsProto.ENABLED_ACCESSIBILITY_SERVICES);
1306 dumpSetting(s, p,
1307 Settings.Secure.TOUCH_EXPLORATION_GRANTED_ACCESSIBILITY_SERVICES,
1308 SecureSettingsProto.TOUCH_EXPLORATION_GRANTED_ACCESSIBILITY_SERVICES);
1309 dumpSetting(s, p,
1310 Settings.Secure.ACCESSIBILITY_SPEAK_PASSWORD,
1311 SecureSettingsProto.ACCESSIBILITY_SPEAK_PASSWORD);
1312 dumpSetting(s, p,
1313 Settings.Secure.ACCESSIBILITY_HIGH_TEXT_CONTRAST_ENABLED,
1314 SecureSettingsProto.ACCESSIBILITY_HIGH_TEXT_CONTRAST_ENABLED);
1315 dumpSetting(s, p,
Eugene Suslad72c3972016-12-27 15:49:30 -08001316 Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_ENABLED,
1317 SecureSettingsProto.ACCESSIBILITY_DISPLAY_MAGNIFICATION_ENABLED);
1318 dumpSetting(s, p,
Kweku Adamsb0886f32017-10-31 15:32:09 -07001319 Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_NAVBAR_ENABLED,
1320 SecureSettingsProto.ACCESSIBILITY_DISPLAY_MAGNIFICATION_NAVBAR_ENABLED);
1321 dumpSetting(s, p,
Eugene Suslad72c3972016-12-27 15:49:30 -08001322 Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_SCALE,
1323 SecureSettingsProto.ACCESSIBILITY_DISPLAY_MAGNIFICATION_SCALE);
1324 dumpSetting(s, p,
Kweku Adamsb0886f32017-10-31 15:32:09 -07001325 Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_AUTO_UPDATE,
1326 SecureSettingsProto.ACCESSIBILITY_DISPLAY_MAGNIFICATION_AUTO_UPDATE);
1327 dumpSetting(s, p,
Eugene Suslad72c3972016-12-27 15:49:30 -08001328 Settings.Secure.ACCESSIBILITY_SOFT_KEYBOARD_MODE,
1329 SecureSettingsProto.ACCESSIBILITY_SOFT_KEYBOARD_MODE);
1330 dumpSetting(s, p,
1331 Settings.Secure.ACCESSIBILITY_CAPTIONING_ENABLED,
1332 SecureSettingsProto.ACCESSIBILITY_CAPTIONING_ENABLED);
1333 dumpSetting(s, p,
1334 Settings.Secure.ACCESSIBILITY_CAPTIONING_LOCALE,
1335 SecureSettingsProto.ACCESSIBILITY_CAPTIONING_LOCALE);
1336 dumpSetting(s, p,
1337 Settings.Secure.ACCESSIBILITY_CAPTIONING_PRESET,
1338 SecureSettingsProto.ACCESSIBILITY_CAPTIONING_PRESET);
1339 dumpSetting(s, p,
1340 Settings.Secure.ACCESSIBILITY_CAPTIONING_BACKGROUND_COLOR,
1341 SecureSettingsProto.ACCESSIBILITY_CAPTIONING_BACKGROUND_COLOR);
1342 dumpSetting(s, p,
1343 Settings.Secure.ACCESSIBILITY_CAPTIONING_FOREGROUND_COLOR,
1344 SecureSettingsProto.ACCESSIBILITY_CAPTIONING_FOREGROUND_COLOR);
1345 dumpSetting(s, p,
1346 Settings.Secure.ACCESSIBILITY_CAPTIONING_EDGE_TYPE,
1347 SecureSettingsProto.ACCESSIBILITY_CAPTIONING_EDGE_TYPE);
1348 dumpSetting(s, p,
1349 Settings.Secure.ACCESSIBILITY_CAPTIONING_EDGE_COLOR,
1350 SecureSettingsProto.ACCESSIBILITY_CAPTIONING_EDGE_COLOR);
1351 dumpSetting(s, p,
1352 Settings.Secure.ACCESSIBILITY_CAPTIONING_WINDOW_COLOR,
1353 SecureSettingsProto.ACCESSIBILITY_CAPTIONING_WINDOW_COLOR);
1354 dumpSetting(s, p,
1355 Settings.Secure.ACCESSIBILITY_CAPTIONING_TYPEFACE,
1356 SecureSettingsProto.ACCESSIBILITY_CAPTIONING_TYPEFACE);
1357 dumpSetting(s, p,
1358 Settings.Secure.ACCESSIBILITY_CAPTIONING_FONT_SCALE,
1359 SecureSettingsProto.ACCESSIBILITY_CAPTIONING_FONT_SCALE);
1360 dumpSetting(s, p,
1361 Settings.Secure.ACCESSIBILITY_DISPLAY_INVERSION_ENABLED,
1362 SecureSettingsProto.ACCESSIBILITY_DISPLAY_INVERSION_ENABLED);
1363 dumpSetting(s, p,
1364 Settings.Secure.ACCESSIBILITY_DISPLAY_DALTONIZER_ENABLED,
1365 SecureSettingsProto.ACCESSIBILITY_DISPLAY_DALTONIZER_ENABLED);
1366 dumpSetting(s, p,
1367 Settings.Secure.ACCESSIBILITY_DISPLAY_DALTONIZER,
1368 SecureSettingsProto.ACCESSIBILITY_DISPLAY_DALTONIZER);
1369 dumpSetting(s, p,
1370 Settings.Secure.ACCESSIBILITY_AUTOCLICK_ENABLED,
1371 SecureSettingsProto.ACCESSIBILITY_AUTOCLICK_ENABLED);
1372 dumpSetting(s, p,
1373 Settings.Secure.ACCESSIBILITY_AUTOCLICK_DELAY,
1374 SecureSettingsProto.ACCESSIBILITY_AUTOCLICK_DELAY);
1375 dumpSetting(s, p,
1376 Settings.Secure.ACCESSIBILITY_LARGE_POINTER_ICON,
1377 SecureSettingsProto.ACCESSIBILITY_LARGE_POINTER_ICON);
1378 dumpSetting(s, p,
1379 Settings.Secure.LONG_PRESS_TIMEOUT,
1380 SecureSettingsProto.LONG_PRESS_TIMEOUT);
1381 dumpSetting(s, p,
1382 Settings.Secure.MULTI_PRESS_TIMEOUT,
1383 SecureSettingsProto.MULTI_PRESS_TIMEOUT);
1384 dumpSetting(s, p,
1385 Settings.Secure.ENABLED_PRINT_SERVICES,
1386 SecureSettingsProto.ENABLED_PRINT_SERVICES);
1387 dumpSetting(s, p,
1388 Settings.Secure.DISABLED_PRINT_SERVICES,
1389 SecureSettingsProto.DISABLED_PRINT_SERVICES);
1390 dumpSetting(s, p,
1391 Settings.Secure.DISPLAY_DENSITY_FORCED,
1392 SecureSettingsProto.DISPLAY_DENSITY_FORCED);
Kweku Adamsb0886f32017-10-31 15:32:09 -07001393 // Settings.Secure.TTS_USE_DEFAULTS intentionally excluded since it's deprecated.
Eugene Suslad72c3972016-12-27 15:49:30 -08001394 dumpSetting(s, p,
1395 Settings.Secure.TTS_DEFAULT_RATE,
1396 SecureSettingsProto.TTS_DEFAULT_RATE);
1397 dumpSetting(s, p,
1398 Settings.Secure.TTS_DEFAULT_PITCH,
1399 SecureSettingsProto.TTS_DEFAULT_PITCH);
1400 dumpSetting(s, p,
1401 Settings.Secure.TTS_DEFAULT_SYNTH,
1402 SecureSettingsProto.TTS_DEFAULT_SYNTH);
Kweku Adamsb0886f32017-10-31 15:32:09 -07001403 // Settings.Secure.TTS_DEFAULT_LANG intentionally excluded since it's deprecated.
1404 // Settings.Secure.TTS_DEFAULT_COUNTRY intentionally excluded since it's deprecated.
1405 // Settings.Secure.TTS_DEFAULT_VARIANT intentionally excluded since it's deprecated.
Eugene Suslad72c3972016-12-27 15:49:30 -08001406 dumpSetting(s, p,
1407 Settings.Secure.TTS_DEFAULT_LOCALE,
1408 SecureSettingsProto.TTS_DEFAULT_LOCALE);
1409 dumpSetting(s, p,
1410 Settings.Secure.TTS_ENABLED_PLUGINS,
1411 SecureSettingsProto.TTS_ENABLED_PLUGINS);
Kweku Adamsb0886f32017-10-31 15:32:09 -07001412 // Settings.Secure.WIFI_NETWORKS_AVAILABLE_NOTIFICATION_ON intentionally excluded since it's deprecated.
1413 // Settings.Secure.WIFI_NETWORKS_AVAILABLE_REPEAT_DELAY intentionally excluded since it's deprecated.
1414 // Settings.Secure.WIFI_NUM_OPEN_NETWORKS_KEPT intentionally excluded since it's deprecated.
1415 // Settings.Secure.WIFI_ON intentionally excluded since it's deprecated.
1416 // Settings.Secure.WIFI_WATCHDOG_ACCEPTABLE_PACKET_LOSS_PERCENTAGE intentionally excluded since it's deprecated.
1417 // Settings.Secure.WIFI_WATCHDOG_AP_COUNT intentionally excluded since it's deprecated.
1418 // Settings.Secure.WIFI_WATCHDOG_BACKGROUND_CHECK_DELAY_MS intentionally excluded since it's deprecated.
1419 // Settings.Secure.WIFI_WATCHDOG_BACKGROUND_CHECK_ENABLED intentionally excluded since it's deprecated.
1420 // Settings.Secure.WIFI_WATCHDOG_BACKGROUND_CHECK_TIMEOUT_MS intentionally excluded since it's deprecated.
1421 // Settings.Secure.WIFI_WATCHDOG_INITIAL_IGNORED_PING_COUNT intentionally excluded since it's deprecated.
1422 // Settings.Secure.WIFI_WATCHDOG_MAX_AP_CHECKS intentionally excluded since it's deprecated.
1423 // Settings.Secure.WIFI_WATCHDOG_ON intentionally excluded since it's deprecated.
1424 // Settings.Secure.WIFI_WATCHDOG_WATCH_LIST intentionally excluded since it's deprecated.
1425 // Settings.Secure.WIFI_WATCHDOG_PING_COUNT intentionally excluded since it's deprecated.
1426 // Settings.Secure.WIFI_WATCHDOG_PING_DELAY_MS intentionally excluded since it's deprecated.
1427 // Settings.Secure.WIFI_WATCHDOG_PING_TIMEOUT_MS intentionally excluded since it's deprecated.
1428 // Settings.Secure.WIFI_MAX_DHCP_RETRY_COUNT intentionally excluded since it's deprecated.
1429 // Settings.Secure.WIFI_MOBILE_DATA_TRANSITION_WAKELOCK_TIMEOUT_MS intentionally excluded since it's deprecated.
Eugene Suslad72c3972016-12-27 15:49:30 -08001430 dumpSetting(s, p,
1431 Settings.Secure.CONNECTIVITY_RELEASE_PENDING_INTENT_DELAY_MS,
1432 SecureSettingsProto.CONNECTIVITY_RELEASE_PENDING_INTENT_DELAY_MS);
Kweku Adamsb0886f32017-10-31 15:32:09 -07001433 // Settings.Secure.BACKGROUND_DATA intentionally excluded since it's deprecated.
Eugene Suslad72c3972016-12-27 15:49:30 -08001434 dumpSetting(s, p,
1435 Settings.Secure.ALLOWED_GEOLOCATION_ORIGINS,
1436 SecureSettingsProto.ALLOWED_GEOLOCATION_ORIGINS);
1437 dumpSetting(s, p,
1438 Settings.Secure.PREFERRED_TTY_MODE,
1439 SecureSettingsProto.PREFERRED_TTY_MODE);
1440 dumpSetting(s, p,
1441 Settings.Secure.ENHANCED_VOICE_PRIVACY_ENABLED,
1442 SecureSettingsProto.ENHANCED_VOICE_PRIVACY_ENABLED);
1443 dumpSetting(s, p,
1444 Settings.Secure.TTY_MODE_ENABLED,
1445 SecureSettingsProto.TTY_MODE_ENABLED);
1446 dumpSetting(s, p,
1447 Settings.Secure.BACKUP_ENABLED,
1448 SecureSettingsProto.BACKUP_ENABLED);
1449 dumpSetting(s, p,
1450 Settings.Secure.BACKUP_AUTO_RESTORE,
1451 SecureSettingsProto.BACKUP_AUTO_RESTORE);
1452 dumpSetting(s, p,
1453 Settings.Secure.BACKUP_PROVISIONED,
1454 SecureSettingsProto.BACKUP_PROVISIONED);
1455 dumpSetting(s, p,
1456 Settings.Secure.BACKUP_TRANSPORT,
1457 SecureSettingsProto.BACKUP_TRANSPORT);
1458 dumpSetting(s, p,
1459 Settings.Secure.LAST_SETUP_SHOWN,
1460 SecureSettingsProto.LAST_SETUP_SHOWN);
Kweku Adamsb0886f32017-10-31 15:32:09 -07001461 // Settings.Secure.WIFI_IDLE_MS intentionally excluded since it's deprecated.
Eugene Suslad72c3972016-12-27 15:49:30 -08001462 dumpSetting(s, p,
1463 Settings.Secure.SEARCH_GLOBAL_SEARCH_ACTIVITY,
1464 SecureSettingsProto.SEARCH_GLOBAL_SEARCH_ACTIVITY);
1465 dumpSetting(s, p,
1466 Settings.Secure.SEARCH_NUM_PROMOTED_SOURCES,
1467 SecureSettingsProto.SEARCH_NUM_PROMOTED_SOURCES);
1468 dumpSetting(s, p,
1469 Settings.Secure.SEARCH_MAX_RESULTS_TO_DISPLAY,
1470 SecureSettingsProto.SEARCH_MAX_RESULTS_TO_DISPLAY);
1471 dumpSetting(s, p,
1472 Settings.Secure.SEARCH_MAX_RESULTS_PER_SOURCE,
1473 SecureSettingsProto.SEARCH_MAX_RESULTS_PER_SOURCE);
1474 dumpSetting(s, p,
1475 Settings.Secure.SEARCH_WEB_RESULTS_OVERRIDE_LIMIT,
1476 SecureSettingsProto.SEARCH_WEB_RESULTS_OVERRIDE_LIMIT);
1477 dumpSetting(s, p,
1478 Settings.Secure.SEARCH_PROMOTED_SOURCE_DEADLINE_MILLIS,
1479 SecureSettingsProto.SEARCH_PROMOTED_SOURCE_DEADLINE_MILLIS);
1480 dumpSetting(s, p,
1481 Settings.Secure.SEARCH_SOURCE_TIMEOUT_MILLIS,
1482 SecureSettingsProto.SEARCH_SOURCE_TIMEOUT_MILLIS);
1483 dumpSetting(s, p,
1484 Settings.Secure.SEARCH_PREFILL_MILLIS,
1485 SecureSettingsProto.SEARCH_PREFILL_MILLIS);
1486 dumpSetting(s, p,
1487 Settings.Secure.SEARCH_MAX_STAT_AGE_MILLIS,
1488 SecureSettingsProto.SEARCH_MAX_STAT_AGE_MILLIS);
1489 dumpSetting(s, p,
1490 Settings.Secure.SEARCH_MAX_SOURCE_EVENT_AGE_MILLIS,
1491 SecureSettingsProto.SEARCH_MAX_SOURCE_EVENT_AGE_MILLIS);
1492 dumpSetting(s, p,
1493 Settings.Secure.SEARCH_MIN_IMPRESSIONS_FOR_SOURCE_RANKING,
1494 SecureSettingsProto.SEARCH_MIN_IMPRESSIONS_FOR_SOURCE_RANKING);
1495 dumpSetting(s, p,
1496 Settings.Secure.SEARCH_MIN_CLICKS_FOR_SOURCE_RANKING,
1497 SecureSettingsProto.SEARCH_MIN_CLICKS_FOR_SOURCE_RANKING);
1498 dumpSetting(s, p,
1499 Settings.Secure.SEARCH_MAX_SHORTCUTS_RETURNED,
1500 SecureSettingsProto.SEARCH_MAX_SHORTCUTS_RETURNED);
1501 dumpSetting(s, p,
1502 Settings.Secure.SEARCH_QUERY_THREAD_CORE_POOL_SIZE,
1503 SecureSettingsProto.SEARCH_QUERY_THREAD_CORE_POOL_SIZE);
1504 dumpSetting(s, p,
1505 Settings.Secure.SEARCH_QUERY_THREAD_MAX_POOL_SIZE,
1506 SecureSettingsProto.SEARCH_QUERY_THREAD_MAX_POOL_SIZE);
1507 dumpSetting(s, p,
1508 Settings.Secure.SEARCH_SHORTCUT_REFRESH_CORE_POOL_SIZE,
1509 SecureSettingsProto.SEARCH_SHORTCUT_REFRESH_CORE_POOL_SIZE);
1510 dumpSetting(s, p,
1511 Settings.Secure.SEARCH_SHORTCUT_REFRESH_MAX_POOL_SIZE,
1512 SecureSettingsProto.SEARCH_SHORTCUT_REFRESH_MAX_POOL_SIZE);
1513 dumpSetting(s, p,
1514 Settings.Secure.SEARCH_THREAD_KEEPALIVE_SECONDS,
1515 SecureSettingsProto.SEARCH_THREAD_KEEPALIVE_SECONDS);
1516 dumpSetting(s, p,
1517 Settings.Secure.SEARCH_PER_SOURCE_CONCURRENT_QUERY_LIMIT,
1518 SecureSettingsProto.SEARCH_PER_SOURCE_CONCURRENT_QUERY_LIMIT);
1519 dumpSetting(s, p,
1520 Settings.Secure.MOUNT_PLAY_NOTIFICATION_SND,
1521 SecureSettingsProto.MOUNT_PLAY_NOTIFICATION_SND);
1522 dumpSetting(s, p,
1523 Settings.Secure.MOUNT_UMS_AUTOSTART,
1524 SecureSettingsProto.MOUNT_UMS_AUTOSTART);
1525 dumpSetting(s, p,
1526 Settings.Secure.MOUNT_UMS_PROMPT,
1527 SecureSettingsProto.MOUNT_UMS_PROMPT);
1528 dumpSetting(s, p,
1529 Settings.Secure.MOUNT_UMS_NOTIFY_ENABLED,
1530 SecureSettingsProto.MOUNT_UMS_NOTIFY_ENABLED);
1531 dumpSetting(s, p,
1532 Settings.Secure.ANR_SHOW_BACKGROUND,
1533 SecureSettingsProto.ANR_SHOW_BACKGROUND);
1534 dumpSetting(s, p,
Andrew Sapperstein43643ae2017-12-20 15:17:33 -08001535 Settings.Secure.SHOW_FIRST_CRASH_DIALOG_DEV_OPTION,
1536 SecureSettingsProto.SHOW_FIRST_CRASH_DIALOG_DEV_OPTION);
1537 dumpSetting(s, p,
Eugene Suslad72c3972016-12-27 15:49:30 -08001538 Settings.Secure.VOICE_RECOGNITION_SERVICE,
1539 SecureSettingsProto.VOICE_RECOGNITION_SERVICE);
1540 dumpSetting(s, p,
1541 Settings.Secure.PACKAGE_VERIFIER_USER_CONSENT,
1542 SecureSettingsProto.PACKAGE_VERIFIER_USER_CONSENT);
1543 dumpSetting(s, p,
1544 Settings.Secure.SELECTED_SPELL_CHECKER,
1545 SecureSettingsProto.SELECTED_SPELL_CHECKER);
1546 dumpSetting(s, p,
1547 Settings.Secure.SELECTED_SPELL_CHECKER_SUBTYPE,
1548 SecureSettingsProto.SELECTED_SPELL_CHECKER_SUBTYPE);
1549 dumpSetting(s, p,
1550 Settings.Secure.SPELL_CHECKER_ENABLED,
1551 SecureSettingsProto.SPELL_CHECKER_ENABLED);
1552 dumpSetting(s, p,
1553 Settings.Secure.INCALL_POWER_BUTTON_BEHAVIOR,
1554 SecureSettingsProto.INCALL_POWER_BUTTON_BEHAVIOR);
1555 dumpSetting(s, p,
1556 Settings.Secure.INCALL_BACK_BUTTON_BEHAVIOR,
1557 SecureSettingsProto.INCALL_BACK_BUTTON_BEHAVIOR);
1558 dumpSetting(s, p,
1559 Settings.Secure.WAKE_GESTURE_ENABLED,
1560 SecureSettingsProto.WAKE_GESTURE_ENABLED);
1561 dumpSetting(s, p,
1562 Settings.Secure.DOZE_ENABLED,
1563 SecureSettingsProto.DOZE_ENABLED);
1564 dumpSetting(s, p,
1565 Settings.Secure.DOZE_ALWAYS_ON,
1566 SecureSettingsProto.DOZE_ALWAYS_ON);
1567 dumpSetting(s, p,
1568 Settings.Secure.DOZE_PULSE_ON_PICK_UP,
1569 SecureSettingsProto.DOZE_PULSE_ON_PICK_UP);
1570 dumpSetting(s, p,
Kweku Adamsb0886f32017-10-31 15:32:09 -07001571 Settings.Secure.DOZE_PULSE_ON_LONG_PRESS,
1572 SecureSettingsProto.DOZE_PULSE_ON_LONG_PRESS);
1573 dumpSetting(s, p,
Eugene Suslad72c3972016-12-27 15:49:30 -08001574 Settings.Secure.DOZE_PULSE_ON_DOUBLE_TAP,
1575 SecureSettingsProto.DOZE_PULSE_ON_DOUBLE_TAP);
1576 dumpSetting(s, p,
1577 Settings.Secure.UI_NIGHT_MODE,
1578 SecureSettingsProto.UI_NIGHT_MODE);
1579 dumpSetting(s, p,
1580 Settings.Secure.SCREENSAVER_ENABLED,
1581 SecureSettingsProto.SCREENSAVER_ENABLED);
1582 dumpSetting(s, p,
1583 Settings.Secure.SCREENSAVER_COMPONENTS,
1584 SecureSettingsProto.SCREENSAVER_COMPONENTS);
1585 dumpSetting(s, p,
1586 Settings.Secure.SCREENSAVER_ACTIVATE_ON_DOCK,
1587 SecureSettingsProto.SCREENSAVER_ACTIVATE_ON_DOCK);
1588 dumpSetting(s, p,
1589 Settings.Secure.SCREENSAVER_ACTIVATE_ON_SLEEP,
1590 SecureSettingsProto.SCREENSAVER_ACTIVATE_ON_SLEEP);
1591 dumpSetting(s, p,
1592 Settings.Secure.SCREENSAVER_DEFAULT_COMPONENT,
1593 SecureSettingsProto.SCREENSAVER_DEFAULT_COMPONENT);
1594 dumpSetting(s, p,
1595 Settings.Secure.NFC_PAYMENT_DEFAULT_COMPONENT,
1596 SecureSettingsProto.NFC_PAYMENT_DEFAULT_COMPONENT);
1597 dumpSetting(s, p,
1598 Settings.Secure.NFC_PAYMENT_FOREGROUND,
1599 SecureSettingsProto.NFC_PAYMENT_FOREGROUND);
1600 dumpSetting(s, p,
1601 Settings.Secure.SMS_DEFAULT_APPLICATION,
1602 SecureSettingsProto.SMS_DEFAULT_APPLICATION);
1603 dumpSetting(s, p,
1604 Settings.Secure.DIALER_DEFAULT_APPLICATION,
1605 SecureSettingsProto.DIALER_DEFAULT_APPLICATION);
1606 dumpSetting(s, p,
1607 Settings.Secure.EMERGENCY_ASSISTANCE_APPLICATION,
1608 SecureSettingsProto.EMERGENCY_ASSISTANCE_APPLICATION);
1609 dumpSetting(s, p,
1610 Settings.Secure.ASSIST_STRUCTURE_ENABLED,
1611 SecureSettingsProto.ASSIST_STRUCTURE_ENABLED);
1612 dumpSetting(s, p,
1613 Settings.Secure.ASSIST_SCREENSHOT_ENABLED,
1614 SecureSettingsProto.ASSIST_SCREENSHOT_ENABLED);
1615 dumpSetting(s, p,
1616 Settings.Secure.ASSIST_DISCLOSURE_ENABLED,
1617 SecureSettingsProto.ASSIST_DISCLOSURE_ENABLED);
1618 dumpSetting(s, p,
1619 Settings.Secure.ENABLED_NOTIFICATION_ASSISTANT,
1620 SecureSettingsProto.ENABLED_NOTIFICATION_ASSISTANT);
1621 dumpSetting(s, p,
1622 Settings.Secure.ENABLED_NOTIFICATION_LISTENERS,
1623 SecureSettingsProto.ENABLED_NOTIFICATION_LISTENERS);
1624 dumpSetting(s, p,
1625 Settings.Secure.ENABLED_NOTIFICATION_POLICY_ACCESS_PACKAGES,
1626 SecureSettingsProto.ENABLED_NOTIFICATION_POLICY_ACCESS_PACKAGES);
1627 dumpSetting(s, p,
1628 Settings.Secure.SYNC_PARENT_SOUNDS,
1629 SecureSettingsProto.SYNC_PARENT_SOUNDS);
1630 dumpSetting(s, p,
1631 Settings.Secure.IMMERSIVE_MODE_CONFIRMATIONS,
1632 SecureSettingsProto.IMMERSIVE_MODE_CONFIRMATIONS);
1633 dumpSetting(s, p,
1634 Settings.Secure.PRINT_SERVICE_SEARCH_URI,
1635 SecureSettingsProto.PRINT_SERVICE_SEARCH_URI);
1636 dumpSetting(s, p,
1637 Settings.Secure.PAYMENT_SERVICE_SEARCH_URI,
1638 SecureSettingsProto.PAYMENT_SERVICE_SEARCH_URI);
1639 dumpSetting(s, p,
Kweku Adamsb0886f32017-10-31 15:32:09 -07001640 Settings.Secure.AUTOFILL_SERVICE_SEARCH_URI,
1641 SecureSettingsProto.AUTOFILL_SERVICE_SEARCH_URI);
1642 dumpSetting(s, p,
Eugene Suslad72c3972016-12-27 15:49:30 -08001643 Settings.Secure.SKIP_FIRST_USE_HINTS,
1644 SecureSettingsProto.SKIP_FIRST_USE_HINTS);
1645 dumpSetting(s, p,
1646 Settings.Secure.UNSAFE_VOLUME_MUSIC_ACTIVE_MS,
1647 SecureSettingsProto.UNSAFE_VOLUME_MUSIC_ACTIVE_MS);
1648 dumpSetting(s, p,
1649 Settings.Secure.LOCK_SCREEN_SHOW_NOTIFICATIONS,
1650 SecureSettingsProto.LOCK_SCREEN_SHOW_NOTIFICATIONS);
1651 dumpSetting(s, p,
1652 Settings.Secure.TV_INPUT_HIDDEN_INPUTS,
1653 SecureSettingsProto.TV_INPUT_HIDDEN_INPUTS);
1654 dumpSetting(s, p,
1655 Settings.Secure.TV_INPUT_CUSTOM_LABELS,
1656 SecureSettingsProto.TV_INPUT_CUSTOM_LABELS);
1657 dumpSetting(s, p,
1658 Settings.Secure.USB_AUDIO_AUTOMATIC_ROUTING_DISABLED,
1659 SecureSettingsProto.USB_AUDIO_AUTOMATIC_ROUTING_DISABLED);
1660 dumpSetting(s, p,
1661 Settings.Secure.SLEEP_TIMEOUT,
1662 SecureSettingsProto.SLEEP_TIMEOUT);
1663 dumpSetting(s, p,
1664 Settings.Secure.DOUBLE_TAP_TO_WAKE,
1665 SecureSettingsProto.DOUBLE_TAP_TO_WAKE);
1666 dumpSetting(s, p,
1667 Settings.Secure.ASSISTANT,
1668 SecureSettingsProto.ASSISTANT);
1669 dumpSetting(s, p,
1670 Settings.Secure.CAMERA_GESTURE_DISABLED,
1671 SecureSettingsProto.CAMERA_GESTURE_DISABLED);
1672 dumpSetting(s, p,
1673 Settings.Secure.CAMERA_DOUBLE_TAP_POWER_GESTURE_DISABLED,
1674 SecureSettingsProto.CAMERA_DOUBLE_TAP_POWER_GESTURE_DISABLED);
1675 dumpSetting(s, p,
1676 Settings.Secure.CAMERA_DOUBLE_TWIST_TO_FLIP_ENABLED,
1677 SecureSettingsProto.CAMERA_DOUBLE_TWIST_TO_FLIP_ENABLED);
1678 dumpSetting(s, p,
Kweku Adamsb0886f32017-10-31 15:32:09 -07001679 Settings.Secure.CAMERA_LIFT_TRIGGER_ENABLED,
1680 SecureSettingsProto.CAMERA_LIFT_TRIGGER_ENABLED);
1681 dumpSetting(s, p,
1682 Settings.Secure.ASSIST_GESTURE_ENABLED,
1683 SecureSettingsProto.ASSIST_GESTURE_ENABLED);
1684 dumpSetting(s, p,
1685 Settings.Secure.ASSIST_GESTURE_SENSITIVITY,
1686 SecureSettingsProto.ASSIST_GESTURE_SENSITIVITY);
1687 dumpSetting(s, p,
1688 Settings.Secure.ASSIST_GESTURE_SILENCE_ALERTS_ENABLED,
1689 SecureSettingsProto.ASSIST_GESTURE_SILENCE_ALERTS_ENABLED);
1690 dumpSetting(s, p,
1691 Settings.Secure.ASSIST_GESTURE_WAKE_ENABLED,
1692 SecureSettingsProto.ASSIST_GESTURE_WAKE_ENABLED);
1693 dumpSetting(s, p,
1694 Settings.Secure.ASSIST_GESTURE_SETUP_COMPLETE,
1695 SecureSettingsProto.ASSIST_GESTURE_SETUP_COMPLETE);
1696 dumpSetting(s, p,
Eugene Suslad72c3972016-12-27 15:49:30 -08001697 Settings.Secure.NIGHT_DISPLAY_ACTIVATED,
1698 SecureSettingsProto.NIGHT_DISPLAY_ACTIVATED);
1699 dumpSetting(s, p,
1700 Settings.Secure.NIGHT_DISPLAY_AUTO_MODE,
1701 SecureSettingsProto.NIGHT_DISPLAY_AUTO_MODE);
1702 dumpSetting(s, p,
Kweku Adamsb0886f32017-10-31 15:32:09 -07001703 Settings.Secure.NIGHT_DISPLAY_COLOR_TEMPERATURE,
1704 SecureSettingsProto.NIGHT_DISPLAY_COLOR_TEMPERATURE);
1705 dumpSetting(s, p,
Eugene Suslad72c3972016-12-27 15:49:30 -08001706 Settings.Secure.NIGHT_DISPLAY_CUSTOM_START_TIME,
1707 SecureSettingsProto.NIGHT_DISPLAY_CUSTOM_START_TIME);
1708 dumpSetting(s, p,
1709 Settings.Secure.NIGHT_DISPLAY_CUSTOM_END_TIME,
1710 SecureSettingsProto.NIGHT_DISPLAY_CUSTOM_END_TIME);
1711 dumpSetting(s, p,
Kweku Adamsb0886f32017-10-31 15:32:09 -07001712 Settings.Secure.NIGHT_DISPLAY_LAST_ACTIVATED_TIME,
1713 SecureSettingsProto.NIGHT_DISPLAY_LAST_ACTIVATED_TIME);
1714 dumpSetting(s, p,
Eugene Suslad72c3972016-12-27 15:49:30 -08001715 Settings.Secure.ENABLED_VR_LISTENERS,
1716 SecureSettingsProto.ENABLED_VR_LISTENERS);
1717 dumpSetting(s, p,
1718 Settings.Secure.VR_DISPLAY_MODE,
1719 SecureSettingsProto.VR_DISPLAY_MODE);
1720 dumpSetting(s, p,
1721 Settings.Secure.CARRIER_APPS_HANDLED,
1722 SecureSettingsProto.CARRIER_APPS_HANDLED);
1723 dumpSetting(s, p,
1724 Settings.Secure.MANAGED_PROFILE_CONTACT_REMOTE_SEARCH,
1725 SecureSettingsProto.MANAGED_PROFILE_CONTACT_REMOTE_SEARCH);
1726 dumpSetting(s, p,
1727 Settings.Secure.AUTOMATIC_STORAGE_MANAGER_ENABLED,
1728 SecureSettingsProto.AUTOMATIC_STORAGE_MANAGER_ENABLED);
1729 dumpSetting(s, p,
1730 Settings.Secure.AUTOMATIC_STORAGE_MANAGER_DAYS_TO_RETAIN,
1731 SecureSettingsProto.AUTOMATIC_STORAGE_MANAGER_DAYS_TO_RETAIN);
1732 dumpSetting(s, p,
1733 Settings.Secure.AUTOMATIC_STORAGE_MANAGER_BYTES_CLEARED,
1734 SecureSettingsProto.AUTOMATIC_STORAGE_MANAGER_BYTES_CLEARED);
1735 dumpSetting(s, p,
1736 Settings.Secure.AUTOMATIC_STORAGE_MANAGER_LAST_RUN,
1737 SecureSettingsProto.AUTOMATIC_STORAGE_MANAGER_LAST_RUN);
1738 dumpSetting(s, p,
Kweku Adamsb0886f32017-10-31 15:32:09 -07001739 Settings.Secure.AUTOMATIC_STORAGE_MANAGER_TURNED_OFF_BY_POLICY,
1740 SecureSettingsProto.AUTOMATIC_STORAGE_MANAGER_TURNED_OFF_BY_POLICY);
1741 dumpSetting(s, p,
Eugene Suslad72c3972016-12-27 15:49:30 -08001742 Settings.Secure.SYSTEM_NAVIGATION_KEYS_ENABLED,
1743 SecureSettingsProto.SYSTEM_NAVIGATION_KEYS_ENABLED);
1744 dumpSetting(s, p,
Eugene Suslad72c3972016-12-27 15:49:30 -08001745 Settings.Secure.QS_TILES,
1746 SecureSettingsProto.QS_TILES);
1747 dumpSetting(s, p,
Jesse Evansfc1bfc42017-04-07 16:11:26 -07001748 Settings.Secure.INSTANT_APPS_ENABLED,
1749 SecureSettingsProto.INSTANT_APPS_ENABLED);
Eugene Suslad72c3972016-12-27 15:49:30 -08001750 dumpSetting(s, p,
1751 Settings.Secure.DEVICE_PAIRED,
1752 SecureSettingsProto.DEVICE_PAIRED);
Chris Wren89aa2262017-05-05 18:05:56 -04001753 dumpSetting(s, p,
Kweku Adamsb0886f32017-10-31 15:32:09 -07001754 Settings.Secure.PACKAGE_VERIFIER_STATE,
1755 SecureSettingsProto.PACKAGE_VERIFIER_STATE);
1756 dumpSetting(s, p,
1757 Settings.Secure.CMAS_ADDITIONAL_BROADCAST_PKG,
1758 SecureSettingsProto.CMAS_ADDITIONAL_BROADCAST_PKG);
1759 dumpSetting(s, p,
Chris Wren89aa2262017-05-05 18:05:56 -04001760 Settings.Secure.NOTIFICATION_BADGING,
1761 SecureSettingsProto.NOTIFICATION_BADGING);
Tim Zhengcc1e76a2017-08-30 17:46:19 -07001762 dumpSetting(s, p,
Kweku Adamsb0886f32017-10-31 15:32:09 -07001763 Settings.Secure.QS_AUTO_ADDED_TILES,
1764 SecureSettingsProto.QS_AUTO_ADDED_TILES);
1765 dumpSetting(s, p,
1766 Settings.Secure.LOCKDOWN_IN_POWER_MENU,
1767 SecureSettingsProto.LOCKDOWN_IN_POWER_MENU);
1768 dumpSetting(s, p,
Tim Zhengcc1e76a2017-08-30 17:46:19 -07001769 Settings.Secure.BACKUP_MANAGER_CONSTANTS,
1770 SecureSettingsProto.BACKUP_MANAGER_CONSTANTS);
Daniel Nishi797641272018-01-02 16:48:33 -08001771 dumpSetting(s, p,
1772 Settings.Secure.BLUETOOTH_ON_WHILE_DRIVING,
1773 SecureSettingsProto.BLUETOOTH_ON_WHILE_DRIVING);
Eugene Suslad72c3972016-12-27 15:49:30 -08001774 }
1775
1776 private static void dumpProtoSystemSettingsLocked(
1777 @NonNull SettingsState s, @NonNull ProtoOutputStream p) {
Kweku Adamsb0886f32017-10-31 15:32:09 -07001778 s.dumpHistoricalOperations(p, SystemSettingsProto.HISTORICAL_OPERATIONS);
1779
1780 // This uses the same order as in Settings.System.
1781
1782 // Settings.System.STAY_ON_WHILE_PLUGGED_IN intentionally excluded since it's deprecated.
Eugene Suslad72c3972016-12-27 15:49:30 -08001783 dumpSetting(s, p,
1784 Settings.System.END_BUTTON_BEHAVIOR,
1785 SystemSettingsProto.END_BUTTON_BEHAVIOR);
1786 dumpSetting(s, p,
1787 Settings.System.ADVANCED_SETTINGS,
1788 SystemSettingsProto.ADVANCED_SETTINGS);
Kweku Adamsb0886f32017-10-31 15:32:09 -07001789 // Settings.System.AIRPLANE_MODE_ON intentionally excluded since it's deprecated.
1790 // Settings.System.RADIO_BLUETOOTH intentionally excluded since it's deprecated.
1791 // Settings.System.RADIO_WIFI intentionally excluded since it's deprecated.
1792 // Settings.System.RADIO_WIMAX intentionally excluded since it's deprecated.
1793 // Settings.System.RADIO_CELL intentionally excluded since it's deprecated.
1794 // Settings.System.RADIO_NFC intentionally excluded since it's deprecated.
1795 // Settings.System.AIRPLANE_MODE_RADIOS intentionally excluded since it's deprecated.
1796 // Settings.System.AIRPLANE_MODE_TOGGLABLE_RADIOS intentionally excluded since it's deprecated.
1797 // Settings.System.WIFI_SLEEP_POLICY intentionally excluded since it's deprecated.
1798 // Settings.System.MODE_RINGER intentionally excluded since it's deprecated.
1799 // Settings.System.WIFI_USE_STATIC_IP intentionally excluded since it's deprecated.
1800 // Settings.System.WIFI_STATIC_IP intentionally excluded since it's deprecated.
1801 // Settings.System.WIFI_STATIC_GATEWAY intentionally excluded since it's deprecated.
1802 // Settings.System.WIFI_STATIC_NETMASK intentionally excluded since it's deprecated.
1803 // Settings.System.WIFI_STATIC_DNS1 intentionally excluded since it's deprecated.
1804 // Settings.System.WIFI_STATIC_DNS2 intentionally excluded since it's deprecated.
Eugene Suslad72c3972016-12-27 15:49:30 -08001805 dumpSetting(s, p,
1806 Settings.System.BLUETOOTH_DISCOVERABILITY,
1807 SystemSettingsProto.BLUETOOTH_DISCOVERABILITY);
1808 dumpSetting(s, p,
1809 Settings.System.BLUETOOTH_DISCOVERABILITY_TIMEOUT,
1810 SystemSettingsProto.BLUETOOTH_DISCOVERABILITY_TIMEOUT);
Kweku Adamsb0886f32017-10-31 15:32:09 -07001811 // Settings.System.LOCK_PATTERN_ENABLED intentionally excluded since it's deprecated.
1812 // Settings.System.LOCK_PATTERN_VISIBLE intentionally excluded since it's deprecated.
1813 // Settings.System.LOCK_PATTERN_TACTILE_FEEDBACK_ENABLED intentionally excluded since it's deprecated.
1814 // Settings.System.NEXT_ALARM_FORMATTED intentionally excluded since it's deprecated.
Eugene Suslad72c3972016-12-27 15:49:30 -08001815 dumpSetting(s, p,
1816 Settings.System.FONT_SCALE,
1817 SystemSettingsProto.FONT_SCALE);
1818 dumpSetting(s, p,
1819 Settings.System.SYSTEM_LOCALES,
1820 SystemSettingsProto.SYSTEM_LOCALES);
Kweku Adamsb0886f32017-10-31 15:32:09 -07001821 // Settings.System.DEBUG_APP intentionally excluded since it's deprecated.
1822 // Settings.System.WAIT_FOR_DEBUGGER intentionally excluded since it's deprecated.
1823 // Settings.System.DIM_SCREEN intentionally excluded since it's deprecated.
1824 dumpSetting(s, p,
1825 Settings.System.DISPLAY_COLOR_MODE,
1826 SystemSettingsProto.DISPLAY_COLOR_MODE);
Eugene Suslad72c3972016-12-27 15:49:30 -08001827 dumpSetting(s, p,
1828 Settings.System.SCREEN_OFF_TIMEOUT,
1829 SystemSettingsProto.SCREEN_OFF_TIMEOUT);
1830 dumpSetting(s, p,
1831 Settings.System.SCREEN_BRIGHTNESS,
1832 SystemSettingsProto.SCREEN_BRIGHTNESS);
1833 dumpSetting(s, p,
1834 Settings.System.SCREEN_BRIGHTNESS_FOR_VR,
1835 SystemSettingsProto.SCREEN_BRIGHTNESS_FOR_VR);
1836 dumpSetting(s, p,
1837 Settings.System.SCREEN_BRIGHTNESS_MODE,
1838 SystemSettingsProto.SCREEN_BRIGHTNESS_MODE);
1839 dumpSetting(s, p,
1840 Settings.System.SCREEN_AUTO_BRIGHTNESS_ADJ,
1841 SystemSettingsProto.SCREEN_AUTO_BRIGHTNESS_ADJ);
Kweku Adamsb0886f32017-10-31 15:32:09 -07001842 // Settings.System.SHOW_PROCESSES intentionally excluded since it's deprecated.
1843 // Settings.System.ALWAYS_FINISH_ACTIVITIES intentionally excluded since it's deprecated.
Eugene Suslad72c3972016-12-27 15:49:30 -08001844 dumpSetting(s, p,
1845 Settings.System.MODE_RINGER_STREAMS_AFFECTED,
1846 SystemSettingsProto.MODE_RINGER_STREAMS_AFFECTED);
1847 dumpSetting(s, p,
1848 Settings.System.MUTE_STREAMS_AFFECTED,
1849 SystemSettingsProto.MUTE_STREAMS_AFFECTED);
1850 dumpSetting(s, p,
1851 Settings.System.VIBRATE_ON,
1852 SystemSettingsProto.VIBRATE_ON);
1853 dumpSetting(s, p,
1854 Settings.System.VIBRATE_INPUT_DEVICES,
1855 SystemSettingsProto.VIBRATE_INPUT_DEVICES);
1856 dumpSetting(s, p,
1857 Settings.System.VOLUME_RING,
1858 SystemSettingsProto.VOLUME_RING);
1859 dumpSetting(s, p,
1860 Settings.System.VOLUME_SYSTEM,
1861 SystemSettingsProto.VOLUME_SYSTEM);
1862 dumpSetting(s, p,
1863 Settings.System.VOLUME_VOICE,
1864 SystemSettingsProto.VOLUME_VOICE);
1865 dumpSetting(s, p,
1866 Settings.System.VOLUME_MUSIC,
1867 SystemSettingsProto.VOLUME_MUSIC);
1868 dumpSetting(s, p,
1869 Settings.System.VOLUME_ALARM,
1870 SystemSettingsProto.VOLUME_ALARM);
1871 dumpSetting(s, p,
1872 Settings.System.VOLUME_NOTIFICATION,
1873 SystemSettingsProto.VOLUME_NOTIFICATION);
1874 dumpSetting(s, p,
1875 Settings.System.VOLUME_BLUETOOTH_SCO,
1876 SystemSettingsProto.VOLUME_BLUETOOTH_SCO);
1877 dumpSetting(s, p,
Kweku Adamsb0886f32017-10-31 15:32:09 -07001878 Settings.System.VOLUME_ACCESSIBILITY,
1879 SystemSettingsProto.VOLUME_ACCESSIBILITY);
1880 dumpSetting(s, p,
Eugene Suslad72c3972016-12-27 15:49:30 -08001881 Settings.System.VOLUME_MASTER,
1882 SystemSettingsProto.VOLUME_MASTER);
1883 dumpSetting(s, p,
1884 Settings.System.MASTER_MONO,
1885 SystemSettingsProto.MASTER_MONO);
Kweku Adamsb0886f32017-10-31 15:32:09 -07001886 // Settings.System.NOTIFICATIONS_USE_RING_VOLUME intentionally excluded since it's deprecated.
Eugene Suslad72c3972016-12-27 15:49:30 -08001887 dumpSetting(s, p,
1888 Settings.System.VIBRATE_IN_SILENT,
1889 SystemSettingsProto.VIBRATE_IN_SILENT);
1890 dumpSetting(s, p,
1891 Settings.System.APPEND_FOR_LAST_AUDIBLE,
1892 SystemSettingsProto.APPEND_FOR_LAST_AUDIBLE);
1893 dumpSetting(s, p,
1894 Settings.System.RINGTONE,
1895 SystemSettingsProto.RINGTONE);
1896 dumpSetting(s, p,
1897 Settings.System.RINGTONE_CACHE,
1898 SystemSettingsProto.RINGTONE_CACHE);
1899 dumpSetting(s, p,
1900 Settings.System.NOTIFICATION_SOUND,
1901 SystemSettingsProto.NOTIFICATION_SOUND);
1902 dumpSetting(s, p,
1903 Settings.System.NOTIFICATION_SOUND_CACHE,
1904 SystemSettingsProto.NOTIFICATION_SOUND_CACHE);
1905 dumpSetting(s, p,
1906 Settings.System.ALARM_ALERT,
1907 SystemSettingsProto.ALARM_ALERT);
1908 dumpSetting(s, p,
1909 Settings.System.ALARM_ALERT_CACHE,
1910 SystemSettingsProto.ALARM_ALERT_CACHE);
1911 dumpSetting(s, p,
1912 Settings.System.MEDIA_BUTTON_RECEIVER,
1913 SystemSettingsProto.MEDIA_BUTTON_RECEIVER);
1914 dumpSetting(s, p,
1915 Settings.System.TEXT_AUTO_REPLACE,
1916 SystemSettingsProto.TEXT_AUTO_REPLACE);
1917 dumpSetting(s, p,
1918 Settings.System.TEXT_AUTO_CAPS,
1919 SystemSettingsProto.TEXT_AUTO_CAPS);
1920 dumpSetting(s, p,
1921 Settings.System.TEXT_AUTO_PUNCTUATE,
1922 SystemSettingsProto.TEXT_AUTO_PUNCTUATE);
1923 dumpSetting(s, p,
1924 Settings.System.TEXT_SHOW_PASSWORD,
1925 SystemSettingsProto.TEXT_SHOW_PASSWORD);
1926 dumpSetting(s, p,
1927 Settings.System.SHOW_GTALK_SERVICE_STATUS,
1928 SystemSettingsProto.SHOW_GTALK_SERVICE_STATUS);
Kweku Adamsb0886f32017-10-31 15:32:09 -07001929 // Settings.System.WALLPAPER_ACTIVITY intentionally excluded since it's deprecated.
1930 // Settings.System.AUTO_TIME intentionally excluded since it's deprecated.
1931 // Settings.System.AUTO_TIME_ZONE intentionally excluded since it's deprecated.
Eugene Suslad72c3972016-12-27 15:49:30 -08001932 dumpSetting(s, p,
1933 Settings.System.TIME_12_24,
1934 SystemSettingsProto.TIME_12_24);
1935 dumpSetting(s, p,
1936 Settings.System.DATE_FORMAT,
1937 SystemSettingsProto.DATE_FORMAT);
1938 dumpSetting(s, p,
1939 Settings.System.SETUP_WIZARD_HAS_RUN,
1940 SystemSettingsProto.SETUP_WIZARD_HAS_RUN);
Kweku Adamsb0886f32017-10-31 15:32:09 -07001941 // Settings.System.WINDOW_ANIMATION_SCALE intentionally excluded since it's deprecated.
1942 // Settings.System.TRANSITION_ANIMATION_SCALE intentionally excluded since it's deprecated.
1943 // Settings.System.ANIMATOR_ANIMATION_SCALE intentionally excluded since it's deprecated.
Eugene Suslad72c3972016-12-27 15:49:30 -08001944 dumpSetting(s, p,
1945 Settings.System.ACCELEROMETER_ROTATION,
1946 SystemSettingsProto.ACCELEROMETER_ROTATION);
1947 dumpSetting(s, p,
1948 Settings.System.USER_ROTATION,
1949 SystemSettingsProto.USER_ROTATION);
1950 dumpSetting(s, p,
1951 Settings.System.HIDE_ROTATION_LOCK_TOGGLE_FOR_ACCESSIBILITY,
1952 SystemSettingsProto.HIDE_ROTATION_LOCK_TOGGLE_FOR_ACCESSIBILITY);
1953 dumpSetting(s, p,
1954 Settings.System.VIBRATE_WHEN_RINGING,
1955 SystemSettingsProto.VIBRATE_WHEN_RINGING);
1956 dumpSetting(s, p,
1957 Settings.System.DTMF_TONE_WHEN_DIALING,
1958 SystemSettingsProto.DTMF_TONE_WHEN_DIALING);
1959 dumpSetting(s, p,
1960 Settings.System.DTMF_TONE_TYPE_WHEN_DIALING,
1961 SystemSettingsProto.DTMF_TONE_TYPE_WHEN_DIALING);
1962 dumpSetting(s, p,
1963 Settings.System.HEARING_AID,
1964 SystemSettingsProto.HEARING_AID);
1965 dumpSetting(s, p,
1966 Settings.System.TTY_MODE,
1967 SystemSettingsProto.TTY_MODE);
1968 dumpSetting(s, p,
1969 Settings.System.SOUND_EFFECTS_ENABLED,
1970 SystemSettingsProto.SOUND_EFFECTS_ENABLED);
1971 dumpSetting(s, p,
1972 Settings.System.HAPTIC_FEEDBACK_ENABLED,
1973 SystemSettingsProto.HAPTIC_FEEDBACK_ENABLED);
Kweku Adamsb0886f32017-10-31 15:32:09 -07001974 // Settings.System.SHOW_WEB_SUGGESTIONS intentionally excluded since it's deprecated.
Eugene Suslad72c3972016-12-27 15:49:30 -08001975 dumpSetting(s, p,
1976 Settings.System.NOTIFICATION_LIGHT_PULSE,
1977 SystemSettingsProto.NOTIFICATION_LIGHT_PULSE);
1978 dumpSetting(s, p,
1979 Settings.System.POINTER_LOCATION,
1980 SystemSettingsProto.POINTER_LOCATION);
1981 dumpSetting(s, p,
1982 Settings.System.SHOW_TOUCHES,
1983 SystemSettingsProto.SHOW_TOUCHES);
1984 dumpSetting(s, p,
1985 Settings.System.WINDOW_ORIENTATION_LISTENER_LOG,
1986 SystemSettingsProto.WINDOW_ORIENTATION_LISTENER_LOG);
Kweku Adamsb0886f32017-10-31 15:32:09 -07001987 // Settings.System.POWER_SOUNDS_ENABLED intentionally excluded since it's deprecated.
1988 // Settings.System.DOCK_SOUNDS_ENABLED intentionally excluded since it's deprecated.
Eugene Suslad72c3972016-12-27 15:49:30 -08001989 dumpSetting(s, p,
1990 Settings.System.LOCKSCREEN_SOUNDS_ENABLED,
1991 SystemSettingsProto.LOCKSCREEN_SOUNDS_ENABLED);
1992 dumpSetting(s, p,
1993 Settings.System.LOCKSCREEN_DISABLED,
1994 SystemSettingsProto.LOCKSCREEN_DISABLED);
Kweku Adamsb0886f32017-10-31 15:32:09 -07001995 // Settings.System.LOW_BATTERY_SOUND intentionally excluded since it's deprecated.
1996 // Settings.System.DESK_DOCK_SOUND intentionally excluded since it's deprecated.
1997 // Settings.System.DESK_UNDOCK_SOUND intentionally excluded since it's deprecated.
1998 // Settings.System.CAR_DOCK_SOUND intentionally excluded since it's deprecated.
1999 // Settings.System.CAR_UNDOCK_SOUND intentionally excluded since it's deprecated.
2000 // Settings.System.LOCK_SOUND intentionally excluded since it's deprecated.
2001 // Settings.System.UNLOCK_SOUND intentionally excluded since it's deprecated.
Eugene Suslad72c3972016-12-27 15:49:30 -08002002 dumpSetting(s, p,
2003 Settings.System.SIP_RECEIVE_CALLS,
2004 SystemSettingsProto.SIP_RECEIVE_CALLS);
2005 dumpSetting(s, p,
2006 Settings.System.SIP_CALL_OPTIONS,
2007 SystemSettingsProto.SIP_CALL_OPTIONS);
2008 dumpSetting(s, p,
2009 Settings.System.SIP_ALWAYS,
2010 SystemSettingsProto.SIP_ALWAYS);
2011 dumpSetting(s, p,
2012 Settings.System.SIP_ADDRESS_ONLY,
2013 SystemSettingsProto.SIP_ADDRESS_ONLY);
Kweku Adamsb0886f32017-10-31 15:32:09 -07002014 // Settings.System.SIP_ASK_ME_EACH_TIME intentionally excluded since it's deprecated.
Eugene Suslad72c3972016-12-27 15:49:30 -08002015 dumpSetting(s, p,
2016 Settings.System.POINTER_SPEED,
2017 SystemSettingsProto.POINTER_SPEED);
2018 dumpSetting(s, p,
2019 Settings.System.LOCK_TO_APP_ENABLED,
2020 SystemSettingsProto.LOCK_TO_APP_ENABLED);
2021 dumpSetting(s, p,
2022 Settings.System.EGG_MODE,
2023 SystemSettingsProto.EGG_MODE);
2024 dumpSetting(s, p,
Kweku Adamsb0886f32017-10-31 15:32:09 -07002025 Settings.System.SHOW_BATTERY_PERCENT,
2026 SystemSettingsProto.SHOW_BATTERY_PERCENT);
2027 dumpSetting(s, p,
Eugene Suslad72c3972016-12-27 15:49:30 -08002028 Settings.System.WHEN_TO_MAKE_WIFI_CALLS,
2029 SystemSettingsProto.WHEN_TO_MAKE_WIFI_CALLS);
Kweku Adamsb0886f32017-10-31 15:32:09 -07002030 // The rest of the settings were moved to Settings.Secure, and are thus excluded here since
2031 // they're deprecated from Settings.System.
Eugene Suslad72c3972016-12-27 15:49:30 -08002032 }
2033}