lineage-sdk: Remove all code that is marked as Deprecated
Change-Id: I04581d30a5b4ef9d176d17c7aa3baf4b58e8d2af
diff --git a/api/lineage_current.txt b/api/lineage_current.txt
index 60a9274..a31d5d2 100644
--- a/api/lineage_current.txt
+++ b/api/lineage_current.txt
@@ -94,7 +94,6 @@
method public void addProfile(lineageos.app.Profile);
method public lineageos.app.Profile getActiveProfile();
method public static lineageos.app.ProfileManager getInstance(android.content.Context);
- method public deprecated lineageos.app.Profile getProfile(java.lang.String);
method public lineageos.app.Profile getProfile(java.util.UUID);
method public java.lang.String[] getProfileNames();
method public lineageos.app.Profile[] getProfiles();
@@ -103,7 +102,6 @@
method public boolean profileExists(java.util.UUID);
method public void removeProfile(lineageos.app.Profile);
method public void resetAll();
- method public deprecated void setActiveProfile(java.lang.String);
method public void setActiveProfile(java.util.UUID);
method public void updateProfile(lineageos.app.Profile);
field public static final java.lang.String ACTION_PROFILE_PICKER = "lineageos.platform.intent.action.PROFILE_PICKER";
@@ -633,8 +631,6 @@
field public static final int PROFILE_CONNECTION_SYNC = 5; // 0x5
field public static final int PROFILE_CONNECTION_WIFI = 1; // 0x1
field public static final int PROFILE_CONNECTION_WIFIAP = 2; // 0x2
- field public static final deprecated int PROFILE_CONNECTION_GPS = 4; // 0x4
- field public static final deprecated int PROFILE_CONNECTION_WIMAX = 3; // 0x3
}
public static class ConnectionSettings.BooleanState {
@@ -767,7 +763,6 @@
method public static boolean putString(android.content.ContentResolver, java.lang.String, java.lang.String);
field public static final android.net.Uri CONTENT_URI;
field public static final java.lang.String SYS_PROP_LINEAGE_SETTING_VERSION = "sys.lineage_settings_secure_version";
- field public static final deprecated java.lang.String TRUST_NOTIFICATIONS = "trust_notifications";
field public static final java.lang.String TRUST_WARNINGS = "trust_warnings";
}
@@ -796,10 +791,6 @@
field public static final java.lang.String BATTERY_LIGHT_LOW_COLOR = "battery_light_low_color";
field public static final java.lang.String BATTERY_LIGHT_MEDIUM_COLOR = "battery_light_medium_color";
field public static final java.lang.String BATTERY_LIGHT_PULSE = "battery_light_pulse";
- field public static final java.lang.String BERRY_CURRENT_ACCENT = "berry_current_accent";
- field public static final java.lang.String BERRY_DARK_OVERLAY = "berry_dark_overlay";
- field public static final java.lang.String BERRY_GLOBAL_STYLE = "berry_global_style";
- field public static final java.lang.String BERRY_MANAGED_BY_APP = "berry_managed_by_app";
field public static final java.lang.String BLUETOOTH_ACCEPT_ALL_FILES = "bluetooth_accept_all_files";
field public static final java.lang.String BUTTON_BACKLIGHT_ONLY_WHEN_PRESSED = "button_backlight_only_when_pressed";
field public static final java.lang.String CALL_RECORDING_FORMAT = "call_recording_format";
@@ -815,17 +806,12 @@
field public static final java.lang.String DISPLAY_CABC = "display_low_power";
field public static final java.lang.String DISPLAY_COLOR_ADJUSTMENT = "display_color_adjustment";
field public static final java.lang.String DISPLAY_COLOR_ENHANCE = "display_color_enhance";
- field public static final deprecated java.lang.String DISPLAY_LOW_POWER = "display_low_power";
field public static final java.lang.String DISPLAY_PICTURE_ADJUSTMENT = "display_picture_adjustment";
field public static final java.lang.String DISPLAY_READING_MODE = "display_reading_mode";
field public static final java.lang.String DISPLAY_TEMPERATURE_DAY = "display_temperature_day";
field public static final java.lang.String DISPLAY_TEMPERATURE_MODE = "display_temperature_mode";
field public static final java.lang.String DISPLAY_TEMPERATURE_NIGHT = "display_temperature_night";
field public static final java.lang.String DOUBLE_TAP_SLEEP_GESTURE = "double_tap_sleep_gesture";
- field public static final java.lang.String ENABLE_FORWARD_LOOKUP = "enable_forward_lookup";
- field public static final java.lang.String ENABLE_PEOPLE_LOOKUP = "enable_people_lookup";
- field public static final java.lang.String ENABLE_REVERSE_LOOKUP = "enable_reverse_lookup";
- field public static final java.lang.String FORWARD_LOOKUP_PROVIDER = "forward_lookup_provider";
field public static final java.lang.String HEADSET_CONNECT_PLAYER = "headset_connect_player";
field public static final java.lang.String HIGH_TOUCH_SENSITIVITY_ENABLE = "high_touch_sensitivity_enable";
field public static final java.lang.String HOME_WAKE_SCREEN = "home_wake_screen";
@@ -864,11 +850,9 @@
field public static final java.lang.String NOTIFICATION_LIGHT_PULSE_VMAIL_LED_ON = "notification_light_pulse_vmail_led_on";
field public static final java.lang.String NOTIFICATION_LIGHT_SCREEN_ON = "notification_light_screen_on_enable";
field public static final java.lang.String NOTIFICATION_PLAY_QUEUE = "notification_play_queue";
- field public static final java.lang.String PEOPLE_LOOKUP_PROVIDER = "people_lookup_provider";
field public static final java.lang.String PROXIMITY_ON_WAKE = "proximity_on_wake";
field public static final java.lang.String QS_SHOW_BRIGHTNESS_SLIDER = "qs_show_brightness_slider";
field public static final java.lang.String RECENTS_SHOW_SEARCH_BAR = "recents_show_search_bar";
- field public static final java.lang.String REVERSE_LOOKUP_PROVIDER = "reverse_lookup_provider";
field public static final java.lang.String SHOW_ALARM_ICON = "show_alarm_icon";
field public static final java.lang.String STATUS_BAR_AM_PM = "status_bar_am_pm";
field public static final java.lang.String STATUS_BAR_BATTERY_STYLE = "status_bar_battery_style";
diff --git a/host/migration/src/Command.java b/host/migration/src/Command.java
index 60cd530..5fc08a4 100644
--- a/host/migration/src/Command.java
+++ b/host/migration/src/Command.java
@@ -54,9 +54,6 @@
}
break;
case SettingsConstants.SECURE:
- if (SettingsConstants.Ignorables.SECURE_SETTINGS.contains(setting.getKey())) {
- return true;
- }
if (!LineageSettings.Secure.isLegacySetting(setting.getKey())) {
return true;
}
diff --git a/host/migration/src/LineageSettings.java b/host/migration/src/LineageSettings.java
index d72c5b2..0175df4 100644
--- a/host/migration/src/LineageSettings.java
+++ b/host/migration/src/LineageSettings.java
@@ -318,48 +318,6 @@
public static final String PROXIMITY_ON_WAKE = "proximity_on_wake";
/**
- * Enable looking up of phone numbers of nearby places
- *
- * @hide
- */
- public static final String ENABLE_FORWARD_LOOKUP = "enable_forward_lookup";
-
- /**
- * Enable looking up of phone numbers of people
- *
- * @hide
- */
- public static final String ENABLE_PEOPLE_LOOKUP = "enable_people_lookup";
-
- /**
- * Enable looking up of information of phone numbers not in the contacts
- *
- * @hide
- */
- public static final String ENABLE_REVERSE_LOOKUP = "enable_reverse_lookup";
-
- /**
- * The forward lookup provider
- *
- * @hide
- */
- public static final String FORWARD_LOOKUP_PROVIDER = "forward_lookup_provider";
-
- /**
- * The people lookup provider
- *
- * @hide
- */
- public static final String PEOPLE_LOOKUP_PROVIDER = "people_lookup_provider";
-
- /**
- * The reverse lookup provider
- *
- * @hide
- */
- public static final String REVERSE_LOOKUP_PROVIDER = "reverse_lookup_provider";
-
- /**
* The OpenCNAM paid account ID
*
* @hide
@@ -406,12 +364,6 @@
public static final String DISPLAY_AUTO_OUTDOOR_MODE = "display_auto_outdoor_mode";
/**
- * Use display power saving features such as CABC or CABL
- * @hide
- */
- public static final String DISPLAY_LOW_POWER = "display_low_power";
-
- /**
* Use color enhancement feature of display
* @hide
*/
@@ -659,19 +611,12 @@
LineageSettings.System.BATTERY_LIGHT_FULL_COLOR,
LineageSettings.System.ENABLE_MWI_NOTIFICATION,
LineageSettings.System.PROXIMITY_ON_WAKE,
- LineageSettings.System.ENABLE_FORWARD_LOOKUP,
- LineageSettings.System.ENABLE_PEOPLE_LOOKUP,
- LineageSettings.System.ENABLE_REVERSE_LOOKUP,
- LineageSettings.System.FORWARD_LOOKUP_PROVIDER,
- LineageSettings.System.PEOPLE_LOOKUP_PROVIDER,
- LineageSettings.System.REVERSE_LOOKUP_PROVIDER,
LineageSettings.System.DIALER_OPENCNAM_ACCOUNT_SID,
LineageSettings.System.DIALER_OPENCNAM_AUTH_TOKEN,
LineageSettings.System.DISPLAY_TEMPERATURE_DAY,
LineageSettings.System.DISPLAY_TEMPERATURE_NIGHT,
LineageSettings.System.DISPLAY_TEMPERATURE_MODE,
LineageSettings.System.DISPLAY_AUTO_OUTDOOR_MODE,
- LineageSettings.System.DISPLAY_LOW_POWER,
LineageSettings.System.DISPLAY_COLOR_ENHANCE,
LineageSettings.System.DISPLAY_COLOR_ADJUSTMENT,
LineageSettings.System.LIVE_DISPLAY_HINTED,
@@ -758,12 +703,6 @@
public static final String BUTTON_BRIGHTNESS = "button_brightness";
/**
- * Developer options - Navigation Bar show switch
- * @hide
- */
- public static final String DEV_FORCE_SHOW_NAVBAR = "dev_force_show_navbar";
-
- /**
* The keyboard brightness to be used while the screen is on.
* Valid value range is between 0 and {@link PowerManager#getMaximumKeyboardBrightness()}
* @hide
@@ -819,14 +758,6 @@
public static final String VOLUME_LINK_NOTIFICATION = "volume_link_notification";
/**
- * Whether newly installed apps should run with privacy guard by default
- * @deprecated
- * @hide
- */
- @Deprecated
- public static final String PRIVACY_GUARD_DEFAULT = "privacy_guard_default";
-
- /**
* The global recents long press activity chosen by the user.
* This setting is stored as a flattened component name as
* per {@link ComponentName#flattenToString()}.
@@ -866,15 +797,6 @@
RING_HOME_BUTTON_BEHAVIOR_DO_NOTHING;
/**
- * When the user has enable the option to have a "bug report" command
- * in the power menu.
- * @deprecated Use {@link android.provider.Settings.Global#BUGREPORT_IN_POWER_MENU} instead
- * @hide
- */
- @Deprecated
- public static final String BUGREPORT_IN_POWER_MENU = "bugreport_in_power_menu";
-
- /**
* Performance profile
* @hide
*/
@@ -929,36 +851,6 @@
public static final int INCALL_POWER_BUTTON_BEHAVIOR_DEFAULT =
INCALL_POWER_BUTTON_BEHAVIOR_SCREEN_OFF;
- /**
- * Whether to display the ADB notification.
- * @deprecated
- * @hide
- */
- @Deprecated
- public static final String ADB_NOTIFY = "adb_notify";
-
- /**
- * The TCP/IP port to run ADB on, or -1 for USB
- * @deprecated
- * @hide
- */
- @Deprecated
- public static final String ADB_PORT = "adb_port";
-
- /**
- * The hostname for this device
- * @hide
- */
- public static final String DEVICE_HOSTNAME = "device_hostname";
-
- /**
- * Whether to allow killing of the foreground app by long-pressing the Back button
- * @deprecated
- * @hide
- */
- @Deprecated
- public static final String KILL_APP_LONGPRESS_BACK = "kill_app_longpress_back";
-
/** Protected Components
* @hide
*/
@@ -998,16 +890,11 @@
LineageSettings.Secure.NAVIGATION_RING_TARGETS[1],
LineageSettings.Secure.NAVIGATION_RING_TARGETS[2],
LineageSettings.Secure.RECENTS_LONG_PRESS_ACTIVITY,
- LineageSettings.Secure.ADB_NOTIFY,
- LineageSettings.Secure.ADB_PORT,
- LineageSettings.Secure.DEVICE_HOSTNAME,
- LineageSettings.Secure.KILL_APP_LONGPRESS_BACK,
LineageSettings.Secure.PROTECTED_COMPONENTS,
LineageSettings.Secure.LIVE_DISPLAY_COLOR_MATRIX,
LineageSettings.Secure.ADVANCED_REBOOT,
LineageSettings.Secure.LOCKSCREEN_TARGETS,
LineageSettings.Secure.RING_HOME_BUTTON_BEHAVIOR,
- LineageSettings.Secure.PRIVACY_GUARD_DEFAULT,
LineageSettings.Secure.DEVELOPMENT_SHORTCUT,
LineageSettings.Secure.PERFORMANCE_PROFILE,
LineageSettings.Secure.APP_PERFORMANCE_PROFILES_ENABLED};
@@ -1040,12 +927,6 @@
BLUETOOTH_A2DP_SRC_PRIORITY_PREFIX = "bluetooth_a2dp_src_priority_";
/**
- * Whether to sound when charger power is connected/disconnected
- * @hide
- */
- public static final String POWER_NOTIFICATIONS_ENABLED = "power_notifications_enabled";
-
- /**
* Whether to vibrate when charger power is connected/disconnected
* @hide
*/
@@ -1077,7 +958,6 @@
*/
public static final String[] LEGACY_GLOBAL_SETTINGS = new String[]{
LineageSettings.Global.WAKE_WHEN_PLUGGED_OR_UNPLUGGED,
- LineageSettings.Global.POWER_NOTIFICATIONS_ENABLED,
LineageSettings.Global.POWER_NOTIFICATIONS_VIBRATE,
LineageSettings.Global.POWER_NOTIFICATIONS_RINGTONE,
LineageSettings.Global.ZEN_DISABLE_DUCKING_DURING_MEDIA_PLAYBACK,
diff --git a/host/migration/src/SettingsConstants.java b/host/migration/src/SettingsConstants.java
index 53a2ea1..271a992 100644
--- a/host/migration/src/SettingsConstants.java
+++ b/host/migration/src/SettingsConstants.java
@@ -26,12 +26,4 @@
public static final String SYSTEM = "/system";
public static final String SECURE = "/secure";
public static final String GLOBAL = "/global";
-
- public static class Ignorables {
- public static ArrayList<String> SECURE_SETTINGS = new ArrayList<String>();
-
- static {
- SECURE_SETTINGS.add(LineageSettings.Secure.ADB_PORT);
- }
- }
}
diff --git a/packages/LineageSettingsProvider/res/values/defaults.xml b/packages/LineageSettingsProvider/res/values/defaults.xml
index 30a7924..46f535d 100644
--- a/packages/LineageSettingsProvider/res/values/defaults.xml
+++ b/packages/LineageSettingsProvider/res/values/defaults.xml
@@ -61,9 +61,6 @@
1==on -->
<integer name="def_heads_up_enabled">1</integer>
- <!-- Default for LineageSettings.Global.POWER_NOTIFICATIONS_ENABLED -->
- <bool name="def_power_notifications_enabled">true</bool>
-
<!-- Default for LineageSettings.Global.POWER_NOTIFICATIONS_VIBRATE -->
<bool name="def_power_notifications_vibrate">false</bool>
diff --git a/packages/LineageSettingsProvider/src/org/lineageos/lineagesettings/LineageDatabaseHelper.java b/packages/LineageSettingsProvider/src/org/lineageos/lineagesettings/LineageDatabaseHelper.java
index f214888..658de4a 100644
--- a/packages/LineageSettingsProvider/src/org/lineageos/lineagesettings/LineageDatabaseHelper.java
+++ b/packages/LineageSettingsProvider/src/org/lineageos/lineagesettings/LineageDatabaseHelper.java
@@ -252,13 +252,9 @@
}
if (upgradeVersion < 6) {
- // Move force_show_navbar to global
- if (mUserHandle == UserHandle.USER_OWNER) {
- moveSettingsToNewTable(db, LineageTableNames.TABLE_SECURE,
- LineageTableNames.TABLE_GLOBAL, new String[] {
- LineageSettings.Secure.DEV_FORCE_SHOW_NAVBAR
- }, true);
- }
+ /* Was move LineageSettings.Secure.DEV_FORCE_SHOW_NAVBAR to global
+ * but this is no longer used
+ */
upgradeVersion = 6;
}
@@ -343,50 +339,14 @@
if (stmt != null) stmt.close();
db.endTransaction();
}
-
- // Remove LINEAGE_SETUP_WIZARD_COMPLETED
- db.beginTransaction();
- stmt = null;
- try {
- stmt = db.compileStatement("DELETE FROM secure WHERE name=?");
- stmt.bindString(1, LineageSettings.Secure.LINEAGE_SETUP_WIZARD_COMPLETED);
- stmt.execute();
- db.setTransactionSuccessful();
- } finally {
- if (stmt != null) stmt.close();
- db.endTransaction();
- }
}
upgradeVersion = 10;
}
if (upgradeVersion < 11) {
- // Move force_show_navbar to system
- if (mUserHandle == UserHandle.USER_OWNER) {
- db.beginTransaction();
- SQLiteStatement stmt = null;
- try {
- stmt = db.compileStatement("SELECT value FROM global WHERE name=?");
- stmt.bindString(1, LineageSettings.Global.DEV_FORCE_SHOW_NAVBAR);
- long value = stmt.simpleQueryForLong();
-
- stmt = db.compileStatement("INSERT INTO system (name, value) VALUES (?, ?)");
- stmt.bindString(1, LineageSettings.System.FORCE_SHOW_NAVBAR);
- stmt.bindLong(2, value);
- stmt.execute();
-
- stmt = db.compileStatement("DELETE FROM global WHERE name=?");
- stmt.bindString(1, LineageSettings.Global.DEV_FORCE_SHOW_NAVBAR);
- stmt.execute();
-
- db.setTransactionSuccessful();
- } catch (SQLiteDoneException ex) {
- // LineageSettings.Global.DEV_FORCE_SHOW_NAVBAR is not set
- } finally {
- if (stmt != null) stmt.close();
- db.endTransaction();
- }
- }
+ /* Was move LineageSettings.Global.DEV_FORCE_SHOW_NAVBAR to system
+ * but this is no longer used
+ */
upgradeVersion = 11;
}
@@ -618,10 +578,6 @@
+ " VALUES(?,?);");
// Global
loadBooleanSetting(stmt,
- LineageSettings.Global.POWER_NOTIFICATIONS_ENABLED,
- R.bool.def_power_notifications_enabled);
-
- loadBooleanSetting(stmt,
LineageSettings.Global.POWER_NOTIFICATIONS_VIBRATE,
R.bool.def_power_notifications_vibrate);
diff --git a/packages/LineageSettingsProvider/tests/src/org/lineageos/lineagesettings/tests/LineageSettingsProviderDefaultsTest.java b/packages/LineageSettingsProvider/tests/src/org/lineageos/lineagesettings/tests/LineageSettingsProviderDefaultsTest.java
index a798c57..2ba51bf 100644
--- a/packages/LineageSettingsProvider/tests/src/org/lineageos/lineagesettings/tests/LineageSettingsProviderDefaultsTest.java
+++ b/packages/LineageSettingsProvider/tests/src/org/lineageos/lineagesettings/tests/LineageSettingsProviderDefaultsTest.java
@@ -93,9 +93,6 @@
//GLOBAL
static {
GLOBAL_SETTINGS_DEFAULTS.add(new Setting(
- LineageSettings.Global.POWER_NOTIFICATIONS_ENABLED,
- "R.bool.def_power_notifications_enabled"));
- GLOBAL_SETTINGS_DEFAULTS.add(new Setting(
LineageSettings.Global.POWER_NOTIFICATIONS_VIBRATE,
"R.bool.def_power_notifications_vibrate"));
GLOBAL_SETTINGS_DEFAULTS.add(new Setting(
diff --git a/sdk/src/java/lineageos/app/ProfileManager.java b/sdk/src/java/lineageos/app/ProfileManager.java
index b062b14..1dd0a28 100644
--- a/sdk/src/java/lineageos/app/ProfileManager.java
+++ b/sdk/src/java/lineageos/app/ProfileManager.java
@@ -280,18 +280,6 @@
}
/**
- * @deprecated
- */
- @Deprecated
- public void setActiveProfile(String profileName) {
- try {
- getService().setActiveProfileByName(profileName);
- } catch (RemoteException e) {
- Log.e(TAG, e.getLocalizedMessage(), e);
- }
- }
-
- /**
* Set the active {@link Profile} by {@link UUID}
* @param profileUuid the {@link UUID} associated with the profile
*/
@@ -353,23 +341,6 @@
}
/**
- * Get the {@link Profile} object by its literal name
- * @param profileName name associated with the profile
- * @return profile a {@link Profile} object
- *
- * @deprecated
- */
- @Deprecated
- public Profile getProfile(String profileName) {
- try {
- return getService().getProfileByName(profileName);
- } catch (RemoteException e) {
- Log.e(TAG, e.getLocalizedMessage(), e);
- }
- return null;
- }
-
- /**
* Get a {@link Profile} via {@link UUID}
* @param profileUuid {@link UUID} associated with the profile
* @return {@link Profile}
diff --git a/sdk/src/java/lineageos/profiles/ConnectionSettings.java b/sdk/src/java/lineageos/profiles/ConnectionSettings.java
index 0a2fcb7..d9395c8 100644
--- a/sdk/src/java/lineageos/profiles/ConnectionSettings.java
+++ b/sdk/src/java/lineageos/profiles/ConnectionSettings.java
@@ -89,23 +89,11 @@
*/
public static final int PROFILE_CONNECTION_WIFIAP = 2;
- /**
- * The {@link #PROFILE_CONNECTION_WIMAX} allows for enabling and disabling the WIMAX radio (if exists)
- * on the device. Boolean connection settings {@link BooleanState}
- *
- * @deprecated
- */
- @Deprecated
- public static final int PROFILE_CONNECTION_WIMAX = 3;
+ // Deprecated
+ // public static final int PROFILE_CONNECTION_WIMAX = 3;
- /**
- * The {@link #PROFILE_CONNECTION_GPS} allows for enabling and disabling the GPS radio (if exists)
- * on the device. Boolean connection settings {@link BooleanState}
- *
- * @deprecated Replaced by PROFILE_CONNECTION_LOCATION
- */
- @Deprecated
- public static final int PROFILE_CONNECTION_GPS = 4;
+ // Deprecated
+ // public static final int PROFILE_CONNECTION_GPS = 4;
/**
* The {@link #PROFILE_CONNECTION_SYNC} allows for enabling and disabling the global sync state
diff --git a/sdk/src/java/lineageos/providers/LineageSettings.java b/sdk/src/java/lineageos/providers/LineageSettings.java
index bc40c15..4ea6e16 100644
--- a/sdk/src/java/lineageos/providers/LineageSettings.java
+++ b/sdk/src/java/lineageos/providers/LineageSettings.java
@@ -1408,56 +1408,6 @@
sBooleanValidator;
/**
- * Whether to use dark theme
- * 0: automatic - based on wallpaper
- * 1: time - based on LiveDisplay status
- * 2: force light
- * 3: force dark
- *
- * @deprecated
- */
- @Deprecated
- public static final String BERRY_GLOBAL_STYLE = "berry_global_style";
-
- /** @hide */
- @Deprecated
- public static final Validator BERRY_GLOBAL_STYLE_VALIDATOR =
- new InclusiveIntegerRangeValidator(0, 3);
-
- /**
- * Current accent package name
- */
- @Deprecated
- public static final String BERRY_CURRENT_ACCENT = "berry_current_accent";
-
- /** @hide */
- @Deprecated
- public static final Validator BERRY_CURRENT_ACCENT_VALIDATOR =
- sNonNullStringValidator;
-
- /**
- * Current dark overlay package name
- */
- @Deprecated
- public static final String BERRY_DARK_OVERLAY = "berry_dark_overlay";
-
- /** @hide */
- @Deprecated
- public static final Validator BERRY_DARK_OVERLAY_VALIDATOR =
- sNonNullStringValidator;
-
- /**
- * Current application managing the style
- */
- @Deprecated
- public static final String BERRY_MANAGED_BY_APP = "berry_managed_by_app";
-
- /** @hide */
- @Deprecated
- public static final Validator BERRY_MANAGED_BY_APP_VALIDATOR =
- sNonNullStringValidator;
-
- /**
* Whether to use black theme for dark mode
*/
public static final String BERRY_BLACK_THEME = "berry_black_theme";
@@ -1467,72 +1417,6 @@
sBooleanValidator;
/**
- * Enable looking up of phone numbers of nearby places
- * 0 = 0ff, 1 = on
- */
- @Deprecated
- public static final String ENABLE_FORWARD_LOOKUP = "enable_forward_lookup";
-
- /** @hide */
- @Deprecated
- public static final Validator ENABLE_FORWARD_LOOKUP_VALIDATOR =
- sBooleanValidator;
-
- /**
- * Enable looking up of phone numbers of people
- * 0 = 0ff, 1 = on
- */
- @Deprecated
- public static final String ENABLE_PEOPLE_LOOKUP = "enable_people_lookup";
-
- /** @hide */
- @Deprecated
- public static final Validator ENABLE_PEOPLE_LOOKUP_VALIDATOR =
- sBooleanValidator;
-
- /**
- * Enable looking up of information of phone numbers not in the contacts
- * 0 = 0ff, 1 = on
- */
- @Deprecated
- public static final String ENABLE_REVERSE_LOOKUP = "enable_reverse_lookup";
-
- /** @hide */
- @Deprecated
- public static final Validator ENABLE_REVERSE_LOOKUP_VALIDATOR =
- sBooleanValidator;
-
- /**
- * The forward lookup provider to be utilized by the Dialer
- */
- @Deprecated
- public static final String FORWARD_LOOKUP_PROVIDER = "forward_lookup_provider";
-
- /** @hide */
- @Deprecated
- public static final Validator FORWARD_LOOKUP_PROVIDER_VALIDATOR = sAlwaysTrueValidator;
-
- /**
- * The people lookup provider to be utilized by the Dialer
- */
- @Deprecated
- public static final String PEOPLE_LOOKUP_PROVIDER = "people_lookup_provider";
-
- /** @hide */
- @Deprecated
- public static final Validator PEOPLE_LOOKUP_PROVIDER_VALIDATOR = sAlwaysTrueValidator;
-
- /**
- * The reverse lookup provider to be utilized by the Dialer
- */
- @Deprecated
- public static final String REVERSE_LOOKUP_PROVIDER = "reverse_lookup_provider";
-
- /** @hide */
- @Deprecated
- public static final Validator REVERSE_LOOKUP_PROVIDER_VALIDATOR = sAlwaysTrueValidator;
-
- /**
* The OpenCNAM paid account ID to be utilized by the Dialer
*/
public static final String DIALER_OPENCNAM_ACCOUNT_SID = "dialer_opencnam_account_sid";
@@ -1613,12 +1497,6 @@
*/
public static final String DISPLAY_CABC = "display_low_power";
- /**
- * @deprecated Use {@link lineageos.providers.LineageSettings.System#DISPLAY_CABC} instead
- */
- @Deprecated
- public static final String DISPLAY_LOW_POWER = DISPLAY_CABC;
-
/** @hide */
public static final Validator DISPLAY_CABC_VALIDATOR =
sBooleanValidator;
@@ -2224,12 +2102,6 @@
LineageSettings.System.BATTERY_LIGHT_FULL_COLOR,
LineageSettings.System.ENABLE_MWI_NOTIFICATION,
LineageSettings.System.PROXIMITY_ON_WAKE,
- LineageSettings.System.ENABLE_FORWARD_LOOKUP,
- LineageSettings.System.ENABLE_PEOPLE_LOOKUP,
- LineageSettings.System.ENABLE_REVERSE_LOOKUP,
- LineageSettings.System.FORWARD_LOOKUP_PROVIDER,
- LineageSettings.System.PEOPLE_LOOKUP_PROVIDER,
- LineageSettings.System.REVERSE_LOOKUP_PROVIDER,
LineageSettings.System.DIALER_OPENCNAM_ACCOUNT_SID,
LineageSettings.System.DIALER_OPENCNAM_AUTH_TOKEN,
LineageSettings.System.DISPLAY_TEMPERATURE_DAY,
@@ -2365,17 +2237,7 @@
VALIDATORS.put(BATTERY_LIGHT_FULL_COLOR, BATTERY_LIGHT_FULL_COLOR_VALIDATOR);
VALIDATORS.put(ENABLE_MWI_NOTIFICATION, ENABLE_MWI_NOTIFICATION_VALIDATOR);
VALIDATORS.put(PROXIMITY_ON_WAKE, PROXIMITY_ON_WAKE_VALIDATOR);
- VALIDATORS.put(BERRY_GLOBAL_STYLE, BERRY_GLOBAL_STYLE_VALIDATOR);
- VALIDATORS.put(BERRY_CURRENT_ACCENT, BERRY_CURRENT_ACCENT_VALIDATOR);
- VALIDATORS.put(BERRY_DARK_OVERLAY, BERRY_DARK_OVERLAY_VALIDATOR);
- VALIDATORS.put(BERRY_MANAGED_BY_APP, BERRY_MANAGED_BY_APP_VALIDATOR);
VALIDATORS.put(BERRY_BLACK_THEME, BERRY_BLACK_THEME_VALIDATOR);
- VALIDATORS.put(ENABLE_FORWARD_LOOKUP, ENABLE_FORWARD_LOOKUP_VALIDATOR);
- VALIDATORS.put(ENABLE_PEOPLE_LOOKUP, ENABLE_PEOPLE_LOOKUP_VALIDATOR);
- VALIDATORS.put(ENABLE_REVERSE_LOOKUP, ENABLE_REVERSE_LOOKUP_VALIDATOR);
- VALIDATORS.put(FORWARD_LOOKUP_PROVIDER, FORWARD_LOOKUP_PROVIDER_VALIDATOR);
- VALIDATORS.put(PEOPLE_LOOKUP_PROVIDER, PEOPLE_LOOKUP_PROVIDER_VALIDATOR);
- VALIDATORS.put(REVERSE_LOOKUP_PROVIDER, REVERSE_LOOKUP_PROVIDER_VALIDATOR);
VALIDATORS.put(DIALER_OPENCNAM_ACCOUNT_SID,
DIALER_OPENCNAM_ACCOUNT_SID_VALIDATOR);
VALIDATORS.put(DIALER_OPENCNAM_AUTH_TOKEN, DIALER_OPENCNAM_AUTH_TOKEN_VALIDATOR);
@@ -2886,13 +2748,6 @@
public static final String BUTTON_BRIGHTNESS = "button_brightness";
/**
- * Developer options - Navigation Bar show switch
- * @deprecated
- * @hide
- */
- public static final String DEV_FORCE_SHOW_NAVBAR = "dev_force_show_navbar";
-
- /**
* The keyboard brightness to be used while the screen is on.
* Valid value range is between 0 and {@link PowerManager#getMaximumKeyboardBrightness()}
* @hide
@@ -2934,30 +2789,6 @@
public static final String STATS_COLLECTION = "stats_collection";
/**
- * Whether the global stats collection setting has been successfully reported to server
- * @hide
- * @deprecated {@link org.lineageos.lineageparts.lineagestats.AnonymousStats} no longer uses this
- */
- @Deprecated
- public static final String STATS_COLLECTION_REPORTED = "stats_collection_reported";
-
- /**
- * Whether newly installed apps should run with privacy guard by default
- * @deprecated
- * @hide
- */
- @Deprecated
- public static final String PRIVACY_GUARD_DEFAULT = "privacy_guard_default";
-
- /**
- * Whether a notification should be shown if privacy guard is enabled
- * @deprecated
- * @hide
- */
- @Deprecated
- public static final String PRIVACY_GUARD_NOTIFICATION = "privacy_guard_notification";
-
- /**
* The global recents long press activity chosen by the user.
* This setting is stored as a flattened component name as
* per {@link ComponentName#flattenToString()}.
@@ -3022,38 +2853,6 @@
public static final String DEVELOPMENT_SHORTCUT = "development_shortcut";
/**
- * Whether to display the ADB notification.
- * @deprecated
- * @hide
- */
- @Deprecated
- public static final String ADB_NOTIFY = "adb_notify";
-
- /**
- * The TCP/IP port to run ADB on, or -1 for USB
- * @deprecated
- * @hide
- */
- @Deprecated
- public static final String ADB_PORT = "adb_port";
-
- /**
- * The hostname for this device
- * @deprecated
- * @hide
- */
- @Deprecated
- public static final String DEVICE_HOSTNAME = "device_hostname";
-
- /**
- * Whether to allow killing of the foreground app by long-pressing the Back button
- * @deprecated
- * @hide
- */
- @Deprecated
- public static final String KILL_APP_LONGPRESS_BACK = "kill_app_longpress_back";
-
- /**
* Whether to exclude the top area of the screen from back gesture
* @hide
*/
@@ -3158,17 +2957,6 @@
public static final String WEATHER_PROVIDER_SERVICE = "weather_provider_service";
/**
- * Set to 0 when we enter the Lineage Setup Wizard.
- * Set to 1 when we exit the Lineage Setup Wizard.
- *
- * @deprecated Use {@link Secure#USER_SETUP_COMPLETE} or
- * {@link Settings.Global#DEVICE_PROVISIONED} instead
- * @hide
- */
- @Deprecated
- public static final String LINEAGE_SETUP_WIZARD_COMPLETED = "lineage_setup_wizard_completed";
-
- /**
* Whether lock screen bluring is enabled on devices that support this feature
* @hide
*/
@@ -3223,19 +3011,6 @@
public static final Validator NETWORK_TRAFFIC_SHOW_UNITS_VALIDATOR = sBooleanValidator;
/**
- * Enable displaying the Trust service's notifications
- * 0 = 0ff, 1 = on
- * @deprecated Rely on {@link lineageos.providers.TRUST_WARNINGS} instead
- */
- @Deprecated
- public static final String TRUST_NOTIFICATIONS = "trust_notifications";
-
- /** @hide */
- @Deprecated
- public static final Validator TRUST_NOTIFICATIONS_VALIDATOR =
- sBooleanValidator;
-
- /**
* Restrict USB when the screen is locked
* 0 = Off, 1 = On
*
@@ -3294,7 +3069,6 @@
LineageSettings.Secure.ADVANCED_MODE,
LineageSettings.Secure.BUTTON_BACKLIGHT_TIMEOUT,
LineageSettings.Secure.BUTTON_BRIGHTNESS,
- LineageSettings.Secure.DEV_FORCE_SHOW_NAVBAR,
LineageSettings.Secure.KEYBOARD_BRIGHTNESS,
LineageSettings.Secure.POWER_MENU_ACTIONS,
LineageSettings.Secure.STATS_COLLECTION,
@@ -3303,17 +3077,11 @@
LineageSettings.Secure.NAVIGATION_RING_TARGETS[1],
LineageSettings.Secure.NAVIGATION_RING_TARGETS[2],
LineageSettings.Secure.RECENTS_LONG_PRESS_ACTIVITY,
- LineageSettings.Secure.ADB_NOTIFY,
- LineageSettings.Secure.ADB_PORT,
- LineageSettings.Secure.DEVICE_HOSTNAME,
- LineageSettings.Secure.KILL_APP_LONGPRESS_BACK,
LineageSettings.Secure.PROTECTED_COMPONENTS,
LineageSettings.Secure.LIVE_DISPLAY_COLOR_MATRIX,
LineageSettings.Secure.ADVANCED_REBOOT,
LineageSettings.Secure.LOCKSCREEN_TARGETS,
LineageSettings.Secure.RING_HOME_BUTTON_BEHAVIOR,
- LineageSettings.Secure.PRIVACY_GUARD_DEFAULT,
- LineageSettings.Secure.PRIVACY_GUARD_NOTIFICATION,
LineageSettings.Secure.DEVELOPMENT_SHORTCUT,
LineageSettings.Secure.PERFORMANCE_PROFILE,
LineageSettings.Secure.APP_PERFORMANCE_PROFILES_ENABLED,
@@ -3389,7 +3157,6 @@
VALIDATORS.put(NETWORK_TRAFFIC_UNITS, NETWORK_TRAFFIC_UNITS_VALIDATOR);
VALIDATORS.put(NETWORK_TRAFFIC_SHOW_UNITS, NETWORK_TRAFFIC_SHOW_UNITS_VALIDATOR);
VALIDATORS.put(TETHERING_ALLOW_VPN_UPSTREAMS, TETHERING_ALLOW_VPN_UPSTREAMS_VALIDATOR);
- VALIDATORS.put(TRUST_NOTIFICATIONS, TRUST_NOTIFICATIONS_VALIDATOR);
VALIDATORS.put(TRUST_RESTRICT_USB_KEYGUARD, TRUST_RESTRICT_USB_KEYGUARD_VALIDATOR);
VALIDATORS.put(TRUST_WARNINGS, TRUST_WARNINGS_VALIDATOR);
VALIDATORS.put(VOLUME_PANEL_ON_LEFT, VOLUME_PANEL_ON_LEFT_VALIDATOR);
@@ -3785,14 +3552,6 @@
"wake_when_plugged_or_unplugged";
/**
- * Whether to sound when charger power is connected/disconnected
- * @hide
- * @deprecated Use {@link android.provider.Settings.Global#CHARGING_SOUNDS_ENABLED} instead
- */
- @Deprecated
- public static final String POWER_NOTIFICATIONS_ENABLED = "power_notifications_enabled";
-
- /**
* Whether to vibrate when charger power is connected/disconnected
* @hide
*/
@@ -3825,13 +3584,6 @@
* <p>{@link lineageos.providers.WeatherContract.WeatherColumns.TempUnit#FAHRENHEIT}</p>
*/
public static final String WEATHER_TEMPERATURE_UNIT = "weather_temperature_unit";
-
- /**
- * Developer options - Navigation Bar show switch
- * @deprecated
- * @hide
- */
- public static final String DEV_FORCE_SHOW_NAVBAR = "dev_force_show_navbar";
// endregion
/**