lineage-sdk: Remove all code that is marked as Deprecated

Change-Id: I04581d30a5b4ef9d176d17c7aa3baf4b58e8d2af
This commit is contained in:
Michael Bestas
2021-10-27 22:57:22 +03:00
parent 659c78ee60
commit 2d0905bd68
10 changed files with 10 additions and 496 deletions

View File

@@ -94,7 +94,6 @@ package lineageos.app {
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 @@ package lineageos.app {
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 @@ package lineageos.profiles {
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 @@ package lineageos.providers {
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 @@ package lineageos.providers {
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 @@ package lineageos.providers {
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 @@ package lineageos.providers {
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";

View File

@@ -54,9 +54,6 @@ public class Command implements Runnable {
}
break;
case SettingsConstants.SECURE:
if (SettingsConstants.Ignorables.SECURE_SETTINGS.contains(setting.getKey())) {
return true;
}
if (!LineageSettings.Secure.isLegacySetting(setting.getKey())) {
return true;
}

View File

@@ -317,48 +317,6 @@ public final class LineageSettings {
*/
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
*
@@ -405,12 +363,6 @@ public final class LineageSettings {
*/
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 @@ public final class LineageSettings {
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,
@@ -757,12 +702,6 @@ public final class LineageSettings {
*/
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()}
@@ -818,14 +757,6 @@ public final class LineageSettings {
*/
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
@@ -865,15 +796,6 @@ public final class LineageSettings {
public static final int RING_HOME_BUTTON_BEHAVIOR_DEFAULT =
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 final class LineageSettings {
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 @@ public final class LineageSettings {
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};
@@ -1039,12 +926,6 @@ public final class LineageSettings {
public static final String
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 final class LineageSettings {
*/
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,

View File

@@ -26,12 +26,4 @@ public class SettingsConstants {
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);
}
}
}

View File

@@ -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>

View File

@@ -252,13 +252,9 @@ public class LineageDatabaseHelper extends SQLiteOpenHelper{
}
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 @@ public class LineageDatabaseHelper extends SQLiteOpenHelper{
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;
}
@@ -617,10 +577,6 @@ public class LineageDatabaseHelper extends SQLiteOpenHelper{
stmt = db.compileStatement("INSERT OR IGNORE INTO global(name,value)"
+ " 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);

View File

@@ -92,9 +92,6 @@ public class LineageSettingsProviderDefaultsTest extends AndroidTestCase {
//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"));

View File

@@ -279,18 +279,6 @@ public class ProfileManager {
return sService;
}
/**
* @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
@@ -352,23 +340,6 @@ public class ProfileManager {
}
}
/**
* 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

View File

@@ -89,23 +89,11 @@ public final class ConnectionSettings implements Parcelable {
*/
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

View File

@@ -1407,56 +1407,6 @@ public final class LineageSettings {
public static final Validator PROXIMITY_ON_WAKE_VALIDATOR =
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
*/
@@ -1466,72 +1416,6 @@ public final class LineageSettings {
public static final Validator BERRY_BLACK_THEME_VALIDATOR =
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
*/
@@ -1613,12 +1497,6 @@ public final class LineageSettings {
*/
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 @@ public final class LineageSettings {
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 @@ public final class LineageSettings {
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);
@@ -2885,13 +2747,6 @@ public final class LineageSettings {
*/
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()}
@@ -2933,30 +2788,6 @@ public final class LineageSettings {
*/
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
@@ -3021,38 +2852,6 @@ public final class LineageSettings {
*/
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
@@ -3157,17 +2956,6 @@ public final class LineageSettings {
*/
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
@@ -3222,19 +3010,6 @@ public final class LineageSettings {
/** @hide */
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 @@ public final class LineageSettings {
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 @@ public final class LineageSettings {
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 @@ public final class LineageSettings {
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);
@@ -3784,14 +3551,6 @@ public final class LineageSettings {
public static final String WAKE_WHEN_PLUGGED_OR_UNPLUGGED =
"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 @@ public final class LineageSettings {
* <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
/**