blob: 3f5b0daa06a786c23b767ef8284d5d773ae7a309 [file] [log] [blame]
Al Sutton0833b2e2019-08-22 16:21:30 +01001/*
2 * Copyright (C) 2019 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 android.provider.settings.backup;
18
Artur Satayev2ebb31c2020-01-08 12:24:36 +000019import android.compat.annotation.UnsupportedAppUsage;
Al Sutton0833b2e2019-08-22 16:21:30 +010020import android.provider.Settings;
21
22/** Information about the system settings to back up */
23public class SystemSettings {
24
25 /**
26 * Settings to backup.
27 *
28 * NOTE: Settings are backed up and restored in the order they appear
29 * in this array. If you have one setting depending on another,
30 * make sure that they are ordered appropriately.
31 */
32 @UnsupportedAppUsage
33 public static final String[] SETTINGS_TO_BACKUP = {
34 Settings.System.STAY_ON_WHILE_PLUGGED_IN, // moved to global
35 Settings.System.WIFI_USE_STATIC_IP,
36 Settings.System.WIFI_STATIC_IP,
37 Settings.System.WIFI_STATIC_GATEWAY,
38 Settings.System.WIFI_STATIC_NETMASK,
39 Settings.System.WIFI_STATIC_DNS1,
40 Settings.System.WIFI_STATIC_DNS2,
41 Settings.System.BLUETOOTH_DISCOVERABILITY,
42 Settings.System.BLUETOOTH_DISCOVERABILITY_TIMEOUT,
43 Settings.System.FONT_SCALE,
44 Settings.System.DIM_SCREEN,
45 Settings.System.SCREEN_OFF_TIMEOUT,
46 Settings.System.SCREEN_BRIGHTNESS_MODE,
47 Settings.System.SCREEN_AUTO_BRIGHTNESS_ADJ,
48 Settings.System.SCREEN_BRIGHTNESS_FOR_VR,
49 Settings.System.ADAPTIVE_SLEEP,
50 Settings.System.VIBRATE_INPUT_DEVICES,
51 Settings.System.MODE_RINGER_STREAMS_AFFECTED,
52 Settings.System.TEXT_AUTO_REPLACE,
53 Settings.System.TEXT_AUTO_CAPS,
54 Settings.System.TEXT_AUTO_PUNCTUATE,
55 Settings.System.TEXT_SHOW_PASSWORD,
56 Settings.System.AUTO_TIME, // moved to global
57 Settings.System.AUTO_TIME_ZONE, // moved to global
58 Settings.System.TIME_12_24,
59 Settings.System.DATE_FORMAT,
60 Settings.System.DTMF_TONE_WHEN_DIALING,
61 Settings.System.DTMF_TONE_TYPE_WHEN_DIALING,
62 Settings.System.HEARING_AID,
63 Settings.System.TTY_MODE,
64 Settings.System.MASTER_MONO,
65 Settings.System.MASTER_BALANCE,
66 Settings.System.SOUND_EFFECTS_ENABLED,
67 Settings.System.HAPTIC_FEEDBACK_ENABLED,
68 Settings.System.POWER_SOUNDS_ENABLED, // moved to global
69 Settings.System.DOCK_SOUNDS_ENABLED, // moved to global
70 Settings.System.LOCKSCREEN_SOUNDS_ENABLED,
71 Settings.System.SHOW_WEB_SUGGESTIONS,
72 Settings.System.SIP_CALL_OPTIONS,
73 Settings.System.SIP_RECEIVE_CALLS,
74 Settings.System.POINTER_SPEED,
75 Settings.System.VIBRATE_WHEN_RINGING,
76 Settings.System.RINGTONE,
77 Settings.System.LOCK_TO_APP_ENABLED,
78 Settings.System.NOTIFICATION_SOUND,
79 Settings.System.ACCELEROMETER_ROTATION,
80 Settings.System.SHOW_BATTERY_PERCENT,
81 Settings.System.NOTIFICATION_VIBRATION_INTENSITY,
82 Settings.System.RING_VIBRATION_INTENSITY,
83 Settings.System.HAPTIC_FEEDBACK_INTENSITY,
84 Settings.System.DISPLAY_COLOR_MODE,
85 Settings.System.ALARM_ALERT,
86 Settings.System.NOTIFICATION_LIGHT_PULSE,
87 };
88}