• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
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 
17 package android.provider.settings.backup;
18 
19 import android.compat.annotation.UnsupportedAppUsage;
20 import android.provider.Settings;
21 
22 /** Information about the system settings to back up */
23 public 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.ADAPTIVE_SLEEP,             // moved to secure
48         Settings.System.APPLY_RAMPING_RINGER,
49         Settings.System.VIBRATE_INPUT_DEVICES,
50         Settings.System.MODE_RINGER_STREAMS_AFFECTED,
51         Settings.System.TEXT_AUTO_REPLACE,
52         Settings.System.TEXT_AUTO_CAPS,
53         Settings.System.TEXT_AUTO_PUNCTUATE,
54         Settings.System.TEXT_SHOW_PASSWORD,
55         Settings.System.AUTO_TIME,                  // moved to global
56         Settings.System.AUTO_TIME_ZONE,             // moved to global
57         Settings.System.TIME_12_24,
58         Settings.System.DTMF_TONE_WHEN_DIALING,
59         Settings.System.DTMF_TONE_TYPE_WHEN_DIALING,
60         Settings.System.HEARING_AID,
61         Settings.System.TTY_MODE,
62         Settings.System.MASTER_MONO,
63         Settings.System.MASTER_BALANCE,
64         Settings.System.SOUND_EFFECTS_ENABLED,
65         Settings.System.HAPTIC_FEEDBACK_ENABLED,
66         Settings.System.POWER_SOUNDS_ENABLED,       // moved to global
67         Settings.System.DOCK_SOUNDS_ENABLED,        // moved to global
68         Settings.System.LOCKSCREEN_SOUNDS_ENABLED,
69         Settings.System.SHOW_WEB_SUGGESTIONS,
70         Settings.System.SIP_CALL_OPTIONS,
71         Settings.System.SIP_RECEIVE_CALLS,
72         Settings.System.POINTER_SPEED,
73         Settings.System.VIBRATE_WHEN_RINGING,
74         Settings.System.RINGTONE,
75         Settings.System.LOCK_TO_APP_ENABLED,
76         Settings.System.NOTIFICATION_SOUND,
77         Settings.System.ACCELEROMETER_ROTATION,
78         Settings.System.SHOW_BATTERY_PERCENT,
79         Settings.System.ALARM_VIBRATION_INTENSITY,
80         Settings.System.MEDIA_VIBRATION_INTENSITY,
81         Settings.System.NOTIFICATION_VIBRATION_INTENSITY,
82         Settings.System.RING_VIBRATION_INTENSITY,
83         Settings.System.HAPTIC_FEEDBACK_INTENSITY,
84         Settings.System.HARDWARE_HAPTIC_FEEDBACK_INTENSITY,
85         Settings.System.HAPTIC_FEEDBACK_ENABLED,
86         Settings.System.DISPLAY_COLOR_MODE_VENDOR_HINT, // must precede DISPLAY_COLOR_MODE
87         Settings.System.DISPLAY_COLOR_MODE,
88         Settings.System.ALARM_ALERT,
89         Settings.System.NOTIFICATION_LIGHT_PULSE,
90     };
91 }
92