public static final class

LineageSettings.System

extends Settings.NameValueTable
java.lang.Object
   ↳ android.provider.Settings.NameValueTable
     ↳ lineageos.providers.LineageSettings.System

Class Overview

System settings, containing miscellaneous Lineage system preferences. This table holds simple name/value pairs. There are convenience functions for accessing individual settings entries.

Summary

Constants
String APP_SWITCH_WAKE_SCREEN Whether to wake the screen with the app switch key, the value is boolean.
String ASSIST_WAKE_SCREEN Whether to wake the screen with the assist key, the value is boolean.
String BACK_WAKE_SCREEN Whether to wake the screen with the back key, the value is boolean.
String BATTERY_LIGHT_BRIGHTNESS_LEVEL Contains the battery light maximum brightness to use.
String BATTERY_LIGHT_BRIGHTNESS_LEVEL_ZEN Contains the battery light maximum brightness to use when Do Not Disturb is active.
String BATTERY_LIGHT_ENABLED Whether the battery light should be enabled (if hardware supports it) The value is boolean (1 or 0).
String BATTERY_LIGHT_FULL_COLOR What color to use for the battery LED while charging - full
String BATTERY_LIGHT_LOW_COLOR What color to use for the battery LED while charging - low
String BATTERY_LIGHT_MEDIUM_COLOR What color to use for the battery LED while charging - medium
String BATTERY_LIGHT_PULSE Whether the battery LED should repeatedly flash when the battery is low on charge.
String BERRY_CURRENT_ACCENT Current accent package name
String BERRY_GLOBAL_STYLE Whether to use dark theme 0: automatic - based on wallpaper 1: time - based on LiveDisplay status 2: force light 3: force dark
String BERRY_MANAGED_BY_APP Current application managing the style
String BLUETOOTH_ACCEPT_ALL_FILES If all file types can be accepted over Bluetooth OBEX.
String BUTTON_BACKLIGHT_ONLY_WHEN_PRESSED Whether the button backlight is only lit when pressed (and not when screen is touched) The value is boolean (1 or 0).
String CALL_RECORDING_FORMAT Call recording format value 0: AMR_WB 1: MPEG_4 Default: 0
String CAMERA_LAUNCH Whether to launch secure camera app when key is longpressed 0 = 0ff, 1 = on
String CAMERA_SLEEP_ON_RELEASE Whether or not to send device back to sleep if Camera button is released ("Peek") 0 = 0ff, 1 = on
String CAMERA_WAKE_SCREEN Whether to wake the screen with the camera key half-press.
String DIALER_OPENCNAM_ACCOUNT_SID The OpenCNAM paid account ID to be utilized by the Dialer
String DIALER_OPENCNAM_AUTH_TOKEN The OpenCNAM authentication token to be utilized by the Dialer
String DISPLAY_AUTO_CONTRAST Use auto contrast optimization feature of display 0 = 0ff, 1 = on
String DISPLAY_AUTO_OUTDOOR_MODE Automatic outdoor mode 0 = 0ff, 1 = on
String DISPLAY_CABC Use display power saving features such as CABC or CABL 0 = 0ff, 1 = on
String DISPLAY_COLOR_ADJUSTMENT Manual display color adjustments (RGB values as floats, separated by spaces)
String DISPLAY_COLOR_ENHANCE Use color enhancement feature of display 0 = 0ff, 1 = on
String DISPLAY_LOW_POWER This constant was deprecated in API level 8. Use DISPLAY_CABC instead
String DISPLAY_PICTURE_ADJUSTMENT The current custom picture adjustment values as a delimited string
String DISPLAY_TEMPERATURE_DAY Color temperature of the display during the day
String DISPLAY_TEMPERATURE_MODE Display color temperature adjustment mode, one of DAY (default), NIGHT, or AUTO.
String DISPLAY_TEMPERATURE_NIGHT Color temperature of the display at night
String DOUBLE_TAP_SLEEP_GESTURE Enable statusbar double tap gesture on to put device to sleep 0 = 0ff, 1 = on
String ENABLE_FORWARD_LOOKUP Enable looking up of phone numbers of nearby places 0 = 0ff, 1 = on
String ENABLE_PEOPLE_LOOKUP Enable looking up of phone numbers of people 0 = 0ff, 1 = on
String ENABLE_REVERSE_LOOKUP Enable looking up of information of phone numbers not in the contacts 0 = 0ff, 1 = on
String FORWARD_LOOKUP_PROVIDER The forward lookup provider to be utilized by the Dialer
String HEADSET_CONNECT_PLAYER Whether or not to launch default music player when headset is connected
String HIGH_TOUCH_SENSITIVITY_ENABLE Whether the HighTouchSensitivity is activated or not.
String HOME_WAKE_SCREEN Whether to wake the screen with the home key, the value is boolean.
String INCREASING_RING Whether the phone ringtone should be played in an increasing manner 0 = 0ff, 1 = on
String INCREASING_RING_RAMP_UP_TIME Ramp up time (seconds) for increasing ring
String INCREASING_RING_START_VOLUME Start volume fraction for increasing ring volume
String KEY_APP_SWITCH_ACTION Action to perform when the app switch key is pressed.
String KEY_APP_SWITCH_LONG_PRESS_ACTION Action to perform when the app switch key is long-pressed.
String KEY_ASSIST_ACTION Action to perform when the assistant (search) key is pressed.
String KEY_ASSIST_LONG_PRESS_ACTION Action to perform when the assistant (search) key is long-pressed.
String KEY_HOME_DOUBLE_TAP_ACTION Action to perform when the home key is double-tapped.
String KEY_HOME_LONG_PRESS_ACTION Action to perform when the home key is long-pressed.
String KEY_MENU_ACTION Action to perform when the menu key is pressed.
String KEY_MENU_LONG_PRESS_ACTION Action to perform when the menu key is long-pressed.
String LOCKSCREEN_PIN_SCRAMBLE_LAYOUT Whether to scramble a pin unlock layout 0 = 0ff, 1 = on
String LOCKSCREEN_ROTATION Whether keyguard will rotate to landscape mode 0 = false, 1 = true
String MENU_WAKE_SCREEN Whether to wake the screen with the menu key, the value is boolean.
String NAVBAR_LEFT_IN_LANDSCAPE Whether navigation bar is placed on the left side in landscape mode 0 = 0ff, 1 = on
String NAVIGATION_BAR_MENU_ARROW_KEYS boolean value.
String NAV_BUTTONS Navigation controls to Use
String NOTIFICATION_LIGHT_BRIGHTNESS_LEVEL Contains the notifications light maximum brightness to use.
String NOTIFICATION_LIGHT_BRIGHTNESS_LEVEL_ZEN Contains the notifications light maximum brightness to use when Do Not Disturb is active.
String NOTIFICATION_LIGHT_PULSE_CALL_COLOR What color to use for the missed call notification LED
String NOTIFICATION_LIGHT_PULSE_CALL_LED_OFF How long to wait between flashes for the missed call notification LED
String NOTIFICATION_LIGHT_PULSE_CALL_LED_ON How long to flash the missed call notification LED
String NOTIFICATION_LIGHT_PULSE_CUSTOM_ENABLE Whether to use the custom LED values for the notification pulse LED.
String NOTIFICATION_LIGHT_PULSE_CUSTOM_VALUES Which custom LED values to use for the notification pulse LED.
String NOTIFICATION_LIGHT_PULSE_DEFAULT_COLOR What color to use for the notification LED by default
String NOTIFICATION_LIGHT_PULSE_DEFAULT_LED_OFF How long to wait between flashes for the notification LED by default
String NOTIFICATION_LIGHT_PULSE_DEFAULT_LED_ON How long to flash the notification LED by default
String NOTIFICATION_LIGHT_PULSE_VMAIL_COLOR What color to use for the voicemail notification LED
String NOTIFICATION_LIGHT_PULSE_VMAIL_LED_OFF How long to wait between flashes for the voicemail notification LED
String NOTIFICATION_LIGHT_PULSE_VMAIL_LED_ON How long to flash the voicemail notification LED
String NOTIFICATION_LIGHT_SCREEN_ON Whether to allow notifications with the screen on or DayDreams.
String NOTIFICATION_PLAY_QUEUE Whether to attach a queue to media notifications.
String PEOPLE_LOOKUP_PROVIDER The people lookup provider to be utilized by the Dialer
String PROXIMITY_ON_WAKE Check the proximity sensor during wakeup 0 = 0ff, 1 = on
String QS_SHOW_BRIGHTNESS_SLIDER Whether to show the brightness slider in quick settings panel.
String RECENTS_SHOW_SEARCH_BAR Show search bar in recents 0 = 0ff, 1 = on
String REVERSE_LOOKUP_PROVIDER The reverse lookup provider to be utilized by the Dialer
String SHOW_ALARM_ICON Whether to show the alarm clock icon in the status bar.
String STATUS_BAR_AM_PM Display style of AM/PM next to clock in status bar 0: Normal display (Eclair stock) 1: Small display (Froyo stock) 2: No display (Gingerbread/ICS stock) default: 2
String STATUS_BAR_BATTERY_STYLE Display style of the status bar battery information 0: Display the battery an icon in portrait mode 2: Display the battery as a circle 4: Hide the battery status information 5: Display the battery an icon in landscape mode 6: Display the battery as plain text default: 0
String STATUS_BAR_BRIGHTNESS_CONTROL Whether to control brightness from status bar 0 = 0ff, 1 = on
String STATUS_BAR_CLOCK Whether to show the clock in the right or left position or show it in the center 0: show the clock in the right position (LTR) 1: show the clock in the center 2: show the clock in the left position (LTR) default: 0
String STATUS_BAR_IME_SWITCHER Whether to show the IME switcher in the status bar 0 = 0ff, 1 = on
String STATUS_BAR_NOTIF_COUNT Show the pending notification counts as overlays on the status bar
String STATUS_BAR_QUICK_QS_PULLDOWN Whether to allow one finger quick settings expansion on the side of the statusbar.
String STATUS_BAR_SHOW_BATTERY_PERCENT Status bar battery % 0: Hide the battery percentage 1: Display the battery percentage inside the icon 2: Display the battery percentage next to the icon
String STATUS_BAR_SHOW_WEATHER Boolean value on whether to show weather in the statusbar 0 = 0ff, 1 = on
String STYLUS_ICON_ENABLED Show icon when stylus is used The value is boolean (1 or 0).
String SWAP_VOLUME_KEYS_ON_ROTATION Swap volume buttons when the screen is rotated 0 - Disabled 1 - Enabled (screen is rotated by 90 or 180 degrees: phone, hybrid) 2 - Enabled (screen is rotated by 180 or 270 degrees: tablet)
String SYSTEMUI_BURNIN_PROTECTION Whether to enable burnin protection 0 = 0ff, 1 = on
String SYSTEM_PROFILES_ENABLED Whether to enable system profiles feature 0 = off, 1 = on
String SYS_PROP_LINEAGE_SETTING_VERSION
String T9_SEARCH_INPUT_LOCALE Locale for secondary overlay on dialer for t9 search input
String TORCH_LONG_PRESS_POWER_GESTURE Activate torchlight when power button is long-pressed while the display is off The value is boolean (1 or 0).
String TORCH_LONG_PRESS_POWER_TIMEOUT When the torch has been turned on by long press on power, automatically turn off after a configurable number of seconds.
String TOUCHSCREEN_GESTURE_HAPTIC_FEEDBACK Whether or not to vibrate when a touchscreen gesture is detected
String USE_EDGE_SERVICE_FOR_GESTURES Use EdgeGesture Service for system gestures in PhoneWindowManager 0 = 0ff, 1 = on
String VOLBTN_MUSIC_CONTROLS Whether or not volume button music controls should be enabled to seek media tracks 0 = 0ff, 1 = on
String VOLUME_ADJUST_SOUNDS_ENABLED Volume Adjust Sounds Enable, This is the noise made when using volume hard buttons Defaults to 1 - sounds enabled
String VOLUME_ANSWER_CALL Whether to answer the call with the volume keys, the value is boolean.
String VOLUME_KEYS_CONTROL_RING_STREAM Volume key controls ringtone or media sound stream
String VOLUME_WAKE_SCREEN Whether to wake the screen with the volume keys, the value is boolean.
String ZEN_ALLOW_LIGHTS Whether the notification light will be allowed when in zen mode during downtime
String ZEN_PRIORITY_ALLOW_LIGHTS Whether the notification light will be allowed when in zen priority mode during downtime
[Expand]
Inherited Constants
From class android.provider.Settings.NameValueTable
From interface android.provider.BaseColumns
Fields
public static final Uri CONTENT_URI
Public Constructors
LineageSettings.System()
Public Methods
static float getFloat(ContentResolver cr, String name, float def)
Convenience function for retrieving a single settings value as a floating point number.
static float getFloat(ContentResolver cr, String name)
Convenience function for retrieving a single system settings value as a float.
static int getInt(ContentResolver cr, String name)
Convenience function for retrieving a single settings value as an integer.
static int getInt(ContentResolver cr, String name, int def)
Convenience function for retrieving a single settings value as an integer.
static long getLong(ContentResolver cr, String name)
Convenience function for retrieving a single settings value as a long.
static long getLong(ContentResolver cr, String name, long def)
Convenience function for retrieving a single settings value as a long.
static String getString(ContentResolver resolver, String name)
Look up a name in the database.
static Uri getUriFor(String name)
Construct the content URI for a particular name/value pair, useful for monitoring changes with a ContentObserver.
static boolean putFloat(ContentResolver cr, String name, float value)
Convenience function for updating a single settings value as a floating point number.
static boolean putInt(ContentResolver cr, String name, int value)
Convenience function for updating a single settings value as an integer.
static boolean putLong(ContentResolver cr, String name, long value)
Convenience function for updating a single settings value as a long integer.
static boolean putString(ContentResolver resolver, String name, String value)
Store a name/value pair into the database.
[Expand]
Inherited Methods
From class android.provider.Settings.NameValueTable
From class java.lang.Object

Constants

public static final String APP_SWITCH_WAKE_SCREEN

added in API level 8

Whether to wake the screen with the app switch key, the value is boolean. 0 = 0ff, 1 = on

Constant Value: "app_switch_wake_screen"

public static final String ASSIST_WAKE_SCREEN

added in API level 8

Whether to wake the screen with the assist key, the value is boolean. 0 = 0ff, 1 = on

Constant Value: "assist_wake_screen"

public static final String BACK_WAKE_SCREEN

added in API level 8

Whether to wake the screen with the back key, the value is boolean. 0 = 0ff, 1 = on

Constant Value: "back_wake_screen"

public static final String BATTERY_LIGHT_BRIGHTNESS_LEVEL

added in API level 9

Contains the battery light maximum brightness to use. Values range from 1 to 255

Constant Value: "battery_light_brightness_level"

public static final String BATTERY_LIGHT_BRIGHTNESS_LEVEL_ZEN

added in API level 9

Contains the battery light maximum brightness to use when Do Not Disturb is active. Values range from 1 to 255

Constant Value: "battery_light_brightness_level_zen"

public static final String BATTERY_LIGHT_ENABLED

added in API level 8

Whether the battery light should be enabled (if hardware supports it) The value is boolean (1 or 0).

Constant Value: "battery_light_enabled"

public static final String BATTERY_LIGHT_FULL_COLOR

added in API level 8

What color to use for the battery LED while charging - full

Constant Value: "battery_light_full_color"

public static final String BATTERY_LIGHT_LOW_COLOR

added in API level 8

What color to use for the battery LED while charging - low

Constant Value: "battery_light_low_color"

public static final String BATTERY_LIGHT_MEDIUM_COLOR

added in API level 8

What color to use for the battery LED while charging - medium

Constant Value: "battery_light_medium_color"

public static final String BATTERY_LIGHT_PULSE

added in API level 8

Whether the battery LED should repeatedly flash when the battery is low on charge. The value is boolean (1 or 0).

Constant Value: "battery_light_pulse"

public static final String BERRY_CURRENT_ACCENT

added in API level 9

Current accent package name

Constant Value: "berry_current_accent"

public static final String BERRY_GLOBAL_STYLE

added in API level 9

Whether to use dark theme 0: automatic - based on wallpaper 1: time - based on LiveDisplay status 2: force light 3: force dark

Constant Value: "berry_global_style"

public static final String BERRY_MANAGED_BY_APP

added in API level 9

Current application managing the style

Constant Value: "berry_managed_by_app"

public static final String BLUETOOTH_ACCEPT_ALL_FILES

added in API level 8

If all file types can be accepted over Bluetooth OBEX. 0 = 0ff, 1 = on

Constant Value: "bluetooth_accept_all_files"

public static final String BUTTON_BACKLIGHT_ONLY_WHEN_PRESSED

added in API level 9

Whether the button backlight is only lit when pressed (and not when screen is touched) The value is boolean (1 or 0).

Constant Value: "button_backlight_only_when_pressed"

public static final String CALL_RECORDING_FORMAT

added in API level 8

Call recording format value 0: AMR_WB 1: MPEG_4 Default: 0

Constant Value: "call_recording_format"

public static final String CAMERA_LAUNCH

added in API level 8

Whether to launch secure camera app when key is longpressed 0 = 0ff, 1 = on

Constant Value: "camera_launch"

public static final String CAMERA_SLEEP_ON_RELEASE

added in API level 8

Whether or not to send device back to sleep if Camera button is released ("Peek") 0 = 0ff, 1 = on

Constant Value: "camera_sleep_on_release"

public static final String CAMERA_WAKE_SCREEN

added in API level 8

Whether to wake the screen with the camera key half-press. 0 = 0ff, 1 = on

Constant Value: "camera_wake_screen"

public static final String DIALER_OPENCNAM_ACCOUNT_SID

added in API level 8

The OpenCNAM paid account ID to be utilized by the Dialer

Constant Value: "dialer_opencnam_account_sid"

public static final String DIALER_OPENCNAM_AUTH_TOKEN

added in API level 8

The OpenCNAM authentication token to be utilized by the Dialer

Constant Value: "dialer_opencnam_auth_token"

public static final String DISPLAY_AUTO_CONTRAST

added in API level 8

Use auto contrast optimization feature of display 0 = 0ff, 1 = on

Constant Value: "display_auto_contrast"

public static final String DISPLAY_AUTO_OUTDOOR_MODE

added in API level 8

Automatic outdoor mode 0 = 0ff, 1 = on

Constant Value: "display_auto_outdoor_mode"

public static final String DISPLAY_CABC

added in API level 8

Use display power saving features such as CABC or CABL 0 = 0ff, 1 = on

Constant Value: "display_low_power"

public static final String DISPLAY_COLOR_ADJUSTMENT

added in API level 8

Manual display color adjustments (RGB values as floats, separated by spaces)

Constant Value: "display_color_adjustment"

public static final String DISPLAY_COLOR_ENHANCE

added in API level 8

Use color enhancement feature of display 0 = 0ff, 1 = on

Constant Value: "display_color_enhance"

public static final String DISPLAY_LOW_POWER

added in API level 8

This constant was deprecated in API level 8.
Use DISPLAY_CABC instead

Constant Value: "display_low_power"

public static final String DISPLAY_PICTURE_ADJUSTMENT

added in API level 8

The current custom picture adjustment values as a delimited string

Constant Value: "display_picture_adjustment"

public static final String DISPLAY_TEMPERATURE_DAY

added in API level 8

Color temperature of the display during the day

Constant Value: "display_temperature_day"

public static final String DISPLAY_TEMPERATURE_MODE

added in API level 8

Display color temperature adjustment mode, one of DAY (default), NIGHT, or AUTO.

Constant Value: "display_temperature_mode"

public static final String DISPLAY_TEMPERATURE_NIGHT

added in API level 8

Color temperature of the display at night

Constant Value: "display_temperature_night"

public static final String DOUBLE_TAP_SLEEP_GESTURE

added in API level 8

Enable statusbar double tap gesture on to put device to sleep 0 = 0ff, 1 = on

Constant Value: "double_tap_sleep_gesture"

public static final String ENABLE_FORWARD_LOOKUP

added in API level 8

Enable looking up of phone numbers of nearby places 0 = 0ff, 1 = on

Constant Value: "enable_forward_lookup"

public static final String ENABLE_PEOPLE_LOOKUP

added in API level 8

Enable looking up of phone numbers of people 0 = 0ff, 1 = on

Constant Value: "enable_people_lookup"

public static final String ENABLE_REVERSE_LOOKUP

added in API level 8

Enable looking up of information of phone numbers not in the contacts 0 = 0ff, 1 = on

Constant Value: "enable_reverse_lookup"

public static final String FORWARD_LOOKUP_PROVIDER

added in API level 8

The forward lookup provider to be utilized by the Dialer

Constant Value: "forward_lookup_provider"

public static final String HEADSET_CONNECT_PLAYER

added in API level 8

Whether or not to launch default music player when headset is connected

Constant Value: "headset_connect_player"

public static final String HIGH_TOUCH_SENSITIVITY_ENABLE

added in API level 8

Whether the HighTouchSensitivity is activated or not. 0 = off, 1 = on

Constant Value: "high_touch_sensitivity_enable"

public static final String HOME_WAKE_SCREEN

added in API level 8

Whether to wake the screen with the home key, the value is boolean. 0 = 0ff, 1 = on

Constant Value: "home_wake_screen"

public static final String INCREASING_RING

added in API level 8

Whether the phone ringtone should be played in an increasing manner 0 = 0ff, 1 = on

Constant Value: "increasing_ring"

public static final String INCREASING_RING_RAMP_UP_TIME

added in API level 8

Ramp up time (seconds) for increasing ring

Constant Value: "increasing_ring_ramp_up_time"

public static final String INCREASING_RING_START_VOLUME

added in API level 8

Start volume fraction for increasing ring volume

Constant Value: "increasing_ring_start_vol"

public static final String KEY_APP_SWITCH_ACTION

added in API level 8

Action to perform when the app switch key is pressed. (Default is 2) (See KEY_HOME_LONG_PRESS_ACTION for valid values)

Constant Value: "key_app_switch_action"

public static final String KEY_APP_SWITCH_LONG_PRESS_ACTION

added in API level 8

Action to perform when the app switch key is long-pressed. (Default is 0) (See KEY_HOME_LONG_PRESS_ACTION for valid values)

Constant Value: "key_app_switch_long_press_action"

public static final String KEY_ASSIST_ACTION

added in API level 8

Action to perform when the assistant (search) key is pressed. (Default is 3) (See KEY_HOME_LONG_PRESS_ACTION for valid values)

Constant Value: "key_assist_action"

public static final String KEY_ASSIST_LONG_PRESS_ACTION

added in API level 8

Action to perform when the assistant (search) key is long-pressed. (Default is 4) (See KEY_HOME_LONG_PRESS_ACTION for valid values)

Constant Value: "key_assist_long_press_action"

public static final String KEY_HOME_DOUBLE_TAP_ACTION

added in API level 8

Action to perform when the home key is double-tapped. (Default can be configured via config_doubleTapOnHomeBehavior) (See KEY_HOME_LONG_PRESS_ACTION for valid values)

Constant Value: "key_home_double_tap_action"

public static final String KEY_HOME_LONG_PRESS_ACTION

added in API level 8

Action to perform when the home key is long-pressed. (Default can be configured via config_longPressOnHomeBehavior) 0 - Nothing 1 - Menu 2 - App-switch 3 - Search 4 - Voice search 5 - In-app search 6 - Launch Camera 7 - Action Sleep 8 - Last app 9 - Toggle split screen 10 - Single hand (left) 11 - Single hand (right)

Constant Value: "key_home_long_press_action"

public static final String KEY_MENU_ACTION

added in API level 8

Action to perform when the menu key is pressed. (Default is 1) (See KEY_HOME_LONG_PRESS_ACTION for valid values)

Constant Value: "key_menu_action"

public static final String KEY_MENU_LONG_PRESS_ACTION

added in API level 8

Action to perform when the menu key is long-pressed. (Default is 0 on devices with a search key, 3 on devices without) (See KEY_HOME_LONG_PRESS_ACTION for valid values)

Constant Value: "key_menu_long_press_action"

public static final String LOCKSCREEN_PIN_SCRAMBLE_LAYOUT

added in API level 8

Whether to scramble a pin unlock layout 0 = 0ff, 1 = on

Constant Value: "lockscreen_scramble_pin_layout"

public static final String LOCKSCREEN_ROTATION

added in API level 8

Whether keyguard will rotate to landscape mode 0 = false, 1 = true

Constant Value: "lockscreen_rotation"

public static final String MENU_WAKE_SCREEN

added in API level 8

Whether to wake the screen with the menu key, the value is boolean. 0 = 0ff, 1 = on

Constant Value: "menu_wake_screen"

public static final String NAVBAR_LEFT_IN_LANDSCAPE

added in API level 8

Whether navigation bar is placed on the left side in landscape mode 0 = 0ff, 1 = on

Constant Value: "navigation_bar_left"

public static final String NAVIGATION_BAR_MENU_ARROW_KEYS

added in API level 8

boolean value. toggles using arrow key locations on nav bar as left and right dpad keys

Constant Value: "navigation_bar_menu_arrow_keys"

public static final String NAV_BUTTONS

added in API level 8

Navigation controls to Use

Constant Value: "nav_buttons"

public static final String NOTIFICATION_LIGHT_BRIGHTNESS_LEVEL

added in API level 8

Contains the notifications light maximum brightness to use. Values range from 1 to 255

Constant Value: "notification_light_brightness_level"

public static final String NOTIFICATION_LIGHT_BRIGHTNESS_LEVEL_ZEN

added in API level 9

Contains the notifications light maximum brightness to use when Do Not Disturb is active. Values range from 1 to 255

Constant Value: "notification_light_brightness_level_zen"

public static final String NOTIFICATION_LIGHT_PULSE_CALL_COLOR

added in API level 8

What color to use for the missed call notification LED

Constant Value: "notification_light_pulse_call_color"

public static final String NOTIFICATION_LIGHT_PULSE_CALL_LED_OFF

added in API level 8

How long to wait between flashes for the missed call notification LED

Constant Value: "notification_light_pulse_call_led_off"

public static final String NOTIFICATION_LIGHT_PULSE_CALL_LED_ON

added in API level 8

How long to flash the missed call notification LED

Constant Value: "notification_light_pulse_call_led_on"

public static final String NOTIFICATION_LIGHT_PULSE_CUSTOM_ENABLE

added in API level 8

Whether to use the custom LED values for the notification pulse LED. 0 = 0ff, 1 = on

Constant Value: "notification_light_pulse_custom_enable"

public static final String NOTIFICATION_LIGHT_PULSE_CUSTOM_VALUES

added in API level 8

Which custom LED values to use for the notification pulse LED.

Constant Value: "notification_light_pulse_custom_values"

public static final String NOTIFICATION_LIGHT_PULSE_DEFAULT_COLOR

added in API level 8

What color to use for the notification LED by default

Constant Value: "notification_light_pulse_default_color"

public static final String NOTIFICATION_LIGHT_PULSE_DEFAULT_LED_OFF

added in API level 8

How long to wait between flashes for the notification LED by default

Constant Value: "notification_light_pulse_default_led_off"

public static final String NOTIFICATION_LIGHT_PULSE_DEFAULT_LED_ON

added in API level 8

How long to flash the notification LED by default

Constant Value: "notification_light_pulse_default_led_on"

public static final String NOTIFICATION_LIGHT_PULSE_VMAIL_COLOR

added in API level 8

What color to use for the voicemail notification LED

Constant Value: "notification_light_pulse_vmail_color"

public static final String NOTIFICATION_LIGHT_PULSE_VMAIL_LED_OFF

added in API level 8

How long to wait between flashes for the voicemail notification LED

Constant Value: "notification_light_pulse_vmail_led_off"

public static final String NOTIFICATION_LIGHT_PULSE_VMAIL_LED_ON

added in API level 8

How long to flash the voicemail notification LED

Constant Value: "notification_light_pulse_vmail_led_on"

public static final String NOTIFICATION_LIGHT_SCREEN_ON

added in API level 8

Whether to allow notifications with the screen on or DayDreams. The value is boolean (1 or 0). Default will always be false.

Constant Value: "notification_light_screen_on_enable"

public static final String NOTIFICATION_PLAY_QUEUE

added in API level 8

Whether to attach a queue to media notifications. 0 = 0ff, 1 = on

Constant Value: "notification_play_queue"

public static final String PEOPLE_LOOKUP_PROVIDER

added in API level 8

The people lookup provider to be utilized by the Dialer

Constant Value: "people_lookup_provider"

public static final String PROXIMITY_ON_WAKE

added in API level 8

Check the proximity sensor during wakeup 0 = 0ff, 1 = on

Constant Value: "proximity_on_wake"

public static final String QS_SHOW_BRIGHTNESS_SLIDER

added in API level 8

Whether to show the brightness slider in quick settings panel. 0 = 0ff, 1 = on

Constant Value: "qs_show_brightness_slider"

public static final String RECENTS_SHOW_SEARCH_BAR

added in API level 8

Show search bar in recents 0 = 0ff, 1 = on

Constant Value: "recents_show_search_bar"

public static final String REVERSE_LOOKUP_PROVIDER

added in API level 8

The reverse lookup provider to be utilized by the Dialer

Constant Value: "reverse_lookup_provider"

public static final String SHOW_ALARM_ICON

added in API level 8

Whether to show the alarm clock icon in the status bar. 0 = 0ff, 1 = on

Constant Value: "show_alarm_icon"

public static final String STATUS_BAR_AM_PM

added in API level 8

Display style of AM/PM next to clock in status bar 0: Normal display (Eclair stock) 1: Small display (Froyo stock) 2: No display (Gingerbread/ICS stock) default: 2

Constant Value: "status_bar_am_pm"

public static final String STATUS_BAR_BATTERY_STYLE

added in API level 8

Display style of the status bar battery information 0: Display the battery an icon in portrait mode 2: Display the battery as a circle 4: Hide the battery status information 5: Display the battery an icon in landscape mode 6: Display the battery as plain text default: 0

Constant Value: "status_bar_battery_style"

public static final String STATUS_BAR_BRIGHTNESS_CONTROL

added in API level 8

Whether to control brightness from status bar 0 = 0ff, 1 = on

Constant Value: "status_bar_brightness_control"

public static final String STATUS_BAR_CLOCK

added in API level 8

Whether to show the clock in the right or left position or show it in the center 0: show the clock in the right position (LTR) 1: show the clock in the center 2: show the clock in the left position (LTR) default: 0

Constant Value: "status_bar_clock"

public static final String STATUS_BAR_IME_SWITCHER

added in API level 8

Whether to show the IME switcher in the status bar 0 = 0ff, 1 = on

Constant Value: "status_bar_ime_switcher"

public static final String STATUS_BAR_NOTIF_COUNT

added in API level 8

Show the pending notification counts as overlays on the status bar

Constant Value: "status_bar_notif_count"

public static final String STATUS_BAR_QUICK_QS_PULLDOWN

added in API level 8

Whether to allow one finger quick settings expansion on the side of the statusbar. 0 = 0ff, 1 = right, 2 = left

Constant Value: "qs_quick_pulldown"

public static final String STATUS_BAR_SHOW_BATTERY_PERCENT

added in API level 8

Status bar battery % 0: Hide the battery percentage 1: Display the battery percentage inside the icon 2: Display the battery percentage next to the icon

Constant Value: "status_bar_show_battery_percent"

public static final String STATUS_BAR_SHOW_WEATHER

added in API level 8

Boolean value on whether to show weather in the statusbar 0 = 0ff, 1 = on

Constant Value: "status_bar_show_weather"

public static final String STYLUS_ICON_ENABLED

added in API level 8

Show icon when stylus is used The value is boolean (1 or 0).

Constant Value: "stylus_icon_enabled"

public static final String SWAP_VOLUME_KEYS_ON_ROTATION

added in API level 8

Swap volume buttons when the screen is rotated 0 - Disabled 1 - Enabled (screen is rotated by 90 or 180 degrees: phone, hybrid) 2 - Enabled (screen is rotated by 180 or 270 degrees: tablet)

Constant Value: "swap_volume_keys_on_rotation"

public static final String SYSTEMUI_BURNIN_PROTECTION

added in API level 8

Whether to enable burnin protection 0 = 0ff, 1 = on

Constant Value: "systemui_burnin_protection"

public static final String SYSTEM_PROFILES_ENABLED

added in API level 8

Whether to enable system profiles feature 0 = off, 1 = on

Constant Value: "system_profiles_enabled"

public static final String SYS_PROP_LINEAGE_SETTING_VERSION

added in API level 8

Constant Value: "sys.lineage_settings_system_version"

public static final String T9_SEARCH_INPUT_LOCALE

added in API level 8

Locale for secondary overlay on dialer for t9 search input

Constant Value: "t9_search_input_locale"

public static final String TORCH_LONG_PRESS_POWER_GESTURE

added in API level 8

Activate torchlight when power button is long-pressed while the display is off The value is boolean (1 or 0).

Constant Value: "torch_long_press_power_gesture"

public static final String TORCH_LONG_PRESS_POWER_TIMEOUT

added in API level 8

When the torch has been turned on by long press on power, automatically turn off after a configurable number of seconds. The value is an integer number of seconds in the range 0-3600. 0 means never automatically turn off.

Constant Value: "torch_long_press_power_timeout"

public static final String TOUCHSCREEN_GESTURE_HAPTIC_FEEDBACK

added in API level 8

Whether or not to vibrate when a touchscreen gesture is detected

Constant Value: "touchscreen_gesture_haptic_feedback"

public static final String USE_EDGE_SERVICE_FOR_GESTURES

added in API level 8

Use EdgeGesture Service for system gestures in PhoneWindowManager 0 = 0ff, 1 = on

Constant Value: "edge_service_for_gestures"

public static final String VOLBTN_MUSIC_CONTROLS

added in API level 8

Whether or not volume button music controls should be enabled to seek media tracks 0 = 0ff, 1 = on

Constant Value: "volbtn_music_controls"

public static final String VOLUME_ADJUST_SOUNDS_ENABLED

added in API level 8

Volume Adjust Sounds Enable, This is the noise made when using volume hard buttons Defaults to 1 - sounds enabled

Constant Value: "volume_adjust_sounds_enabled"

public static final String VOLUME_ANSWER_CALL

added in API level 8

Whether to answer the call with the volume keys, the value is boolean. 0 = 0ff, 1 = on

Constant Value: "volume_answer_call"

public static final String VOLUME_KEYS_CONTROL_RING_STREAM

added in API level 8

Volume key controls ringtone or media sound stream

Constant Value: "volume_keys_control_ring_stream"

public static final String VOLUME_WAKE_SCREEN

added in API level 8

Whether to wake the screen with the volume keys, the value is boolean. 0 = 0ff, 1 = on

Constant Value: "volume_wake_screen"

public static final String ZEN_ALLOW_LIGHTS

added in API level 8

Whether the notification light will be allowed when in zen mode during downtime

Constant Value: "allow_lights"

public static final String ZEN_PRIORITY_ALLOW_LIGHTS

added in API level 8

Whether the notification light will be allowed when in zen priority mode during downtime

Constant Value: "zen_priority_allow_lights"

Fields

public static final Uri CONTENT_URI

added in API level 8

Public Constructors

public LineageSettings.System ()

added in API level 8

Public Methods

public static float getFloat (ContentResolver cr, String name, float def)

added in API level 8

Convenience function for retrieving a single settings value as a floating point number. Note that internally setting values are always stored as strings; this function converts the string to an float for you. The default value will be returned if the setting is not defined or not a valid float.

Parameters
cr ContentResolver: The ContentResolver to access.
name String: The name of the setting to retrieve.
def float: Value to return if the setting is not defined.
Returns
float The setting's current value, or 'def' if it is not defined or not a valid float.

public static float getFloat (ContentResolver cr, String name)

added in API level 8

Convenience function for retrieving a single system settings value as a float. Note that internally setting values are always stored as strings; this function converts the string to a float for you.

This version does not take a default value. If the setting has not been set, or the string value is not a number, it throws LineageSettings.LineageSettingNotFoundException.

Parameters
cr ContentResolver: The ContentResolver to access.
name String: The name of the setting to retrieve.
Returns
float The setting's current value.
Throws
LineageSettings.LineageSettingNotFoundException Thrown if a setting by the given name can't be found or the setting value is not a float.

public static int getInt (ContentResolver cr, String name)

added in API level 8

Convenience function for retrieving a single settings value as an integer. Note that internally setting values are always stored as strings; this function converts the string to an integer for you.

This version does not take a default value. If the setting has not been set, or the string value is not a number, it throws LineageSettings.LineageSettingNotFoundException.

Parameters
cr ContentResolver: The ContentResolver to access.
name String: The name of the setting to retrieve.
Returns
int The setting's current value.
Throws
LineageSettings.LineageSettingNotFoundException Thrown if a setting by the given name can't be found or the setting value is not an integer.

public static int getInt (ContentResolver cr, String name, int def)

added in API level 8

Convenience function for retrieving a single settings value as an integer. Note that internally setting values are always stored as strings; this function converts the string to an integer for you. The default value will be returned if the setting is not defined or not an integer.

Parameters
cr ContentResolver: The ContentResolver to access.
name String: The name of the setting to retrieve.
def int: Value to return if the setting is not defined.
Returns
int The setting's current value, or 'def' if it is not defined or not a valid integer.

public static long getLong (ContentResolver cr, String name)

added in API level 8

Convenience function for retrieving a single settings value as a long. Note that internally setting values are always stored as strings; this function converts the string to a long for you.

This version does not take a default value. If the setting has not been set, or the string value is not a number, it throws LineageSettings.LineageSettingNotFoundException.

Parameters
cr ContentResolver: The ContentResolver to access.
name String: The name of the setting to retrieve.
Returns
long The setting's current value.
Throws
LineageSettings.LineageSettingNotFoundException Thrown if a setting by the given name can't be found or the setting value is not an integer.

public static long getLong (ContentResolver cr, String name, long def)

added in API level 8

Convenience function for retrieving a single settings value as a long. Note that internally setting values are always stored as strings; this function converts the string to a long for you. The default value will be returned if the setting is not defined or not a long.

Parameters
cr ContentResolver: The ContentResolver to access.
name String: The name of the setting to retrieve.
def long: Value to return if the setting is not defined.
Returns
long The setting's current value, or 'def' if it is not defined or not a valid long.

public static String getString (ContentResolver resolver, String name)

added in API level 8

Look up a name in the database.

Parameters
resolver ContentResolver: to access the database with
name String: to look up in the table
Returns
String the corresponding value, or null if not present

public static Uri getUriFor (String name)

added in API level 8

Construct the content URI for a particular name/value pair, useful for monitoring changes with a ContentObserver.

Parameters
name String: to look up in the table
Returns
Uri the corresponding content URI

public static boolean putFloat (ContentResolver cr, String name, float value)

added in API level 8

Convenience function for updating a single settings value as a floating point number. This will either create a new entry in the table if the given name does not exist, or modify the value of the existing row with that name. Note that internally setting values are always stored as strings, so this function converts the given value to a string before storing it.

Parameters
cr ContentResolver: The ContentResolver to access.
name String: The name of the setting to modify.
value float: The new value for the setting.
Returns
boolean true if the value was set, false on database errors

public static boolean putInt (ContentResolver cr, String name, int value)

added in API level 8

Convenience function for updating a single settings value as an integer. This will either create a new entry in the table if the given name does not exist, or modify the value of the existing row with that name. Note that internally setting values are always stored as strings, so this function converts the given value to a string before storing it.

Parameters
cr ContentResolver: The ContentResolver to access.
name String: The name of the setting to modify.
value int: The new value for the setting.
Returns
boolean true if the value was set, false on database errors

public static boolean putLong (ContentResolver cr, String name, long value)

added in API level 8

Convenience function for updating a single settings value as a long integer. This will either create a new entry in the table if the given name does not exist, or modify the value of the existing row with that name. Note that internally setting values are always stored as strings, so this function converts the given value to a string before storing it.

Parameters
cr ContentResolver: The ContentResolver to access.
name String: The name of the setting to modify.
value long: The new value for the setting.
Returns
boolean true if the value was set, false on database errors

public static boolean putString (ContentResolver resolver, String name, String value)

added in API level 8

Store a name/value pair into the database.

Parameters
resolver ContentResolver: to access the database with
name String: to store
value String: to associate with the name
Returns
boolean true if the value was set, false on database errors