android.provider
Class Settings.Secure

java.lang.Object
  extended by android.provider.Settings.NameValueTable
      extended by android.provider.Settings.Secure
All Implemented Interfaces:
BaseColumns
Enclosing class:
Settings

public static final class Settings.Secure
extends Settings.NameValueTable


Field Summary
static String ACCESSIBILITY_ENABLED
           
static String ADB_ENABLED
           
static String ALLOW_MOCK_LOCATION
           
static String ALLOWED_GEOLOCATION_ORIGINS
           
static String ANDROID_ID
           
static String BACKGROUND_DATA
           
static String BLUETOOTH_ON
           
static Uri CONTENT_URI
           
static String DATA_ROAMING
           
static String DEFAULT_INPUT_METHOD
           
static String DEVICE_PROVISIONED
           
static String ENABLED_ACCESSIBILITY_SERVICES
           
static String ENABLED_INPUT_METHODS
           
static String HTTP_PROXY
           
static String INSTALL_NON_MARKET_APPS
           
static String LOCATION_PROVIDERS_ALLOWED
           
static String LOCK_PATTERN_ENABLED
           
static String LOCK_PATTERN_TACTILE_FEEDBACK_ENABLED
           
static String LOCK_PATTERN_VISIBLE
           
static String LOGGING_ID
           
static String NETWORK_PREFERENCE
           
static String PARENTAL_CONTROL_ENABLED
           
static String PARENTAL_CONTROL_LAST_UPDATE
           
static String PARENTAL_CONTROL_REDIRECT_URL
           
static String SETTINGS_CLASSNAME
           
static String SYS_PROP_SETTING_VERSION
           
static String TTS_DEFAULT_COUNTRY
           
static String TTS_DEFAULT_LANG
           
static String TTS_DEFAULT_PITCH
           
static String TTS_DEFAULT_RATE
           
static String TTS_DEFAULT_SYNTH
           
static String TTS_DEFAULT_VARIANT
           
static String TTS_ENABLED_PLUGINS
           
static String TTS_USE_DEFAULTS
           
static String USB_MASS_STORAGE_ENABLED
           
static String USE_GOOGLE_MAIL
           
static String WIFI_MAX_DHCP_RETRY_COUNT
           
static String WIFI_MOBILE_DATA_TRANSITION_WAKELOCK_TIMEOUT_MS
           
static String WIFI_NETWORKS_AVAILABLE_NOTIFICATION_ON
           
static String WIFI_NETWORKS_AVAILABLE_REPEAT_DELAY
           
static String WIFI_NUM_OPEN_NETWORKS_KEPT
           
static String WIFI_ON
           
static String WIFI_WATCHDOG_ACCEPTABLE_PACKET_LOSS_PERCENTAGE
           
static String WIFI_WATCHDOG_AP_COUNT
           
static String WIFI_WATCHDOG_BACKGROUND_CHECK_DELAY_MS
           
static String WIFI_WATCHDOG_BACKGROUND_CHECK_ENABLED
           
static String WIFI_WATCHDOG_BACKGROUND_CHECK_TIMEOUT_MS
           
static String WIFI_WATCHDOG_INITIAL_IGNORED_PING_COUNT
           
static String WIFI_WATCHDOG_MAX_AP_CHECKS
           
static String WIFI_WATCHDOG_ON
           
static String WIFI_WATCHDOG_PING_COUNT
           
static String WIFI_WATCHDOG_PING_DELAY_MS
           
static String WIFI_WATCHDOG_PING_TIMEOUT_MS
           
static String WIFI_WATCHDOG_WATCH_LIST
           
 
Fields inherited from class android.provider.Settings.NameValueTable
NAME, VALUE
 
Fields inherited from interface android.provider.BaseColumns
_COUNT, _ID
 
Constructor Summary
Settings.Secure()
           
 
Method Summary
static float getFloat(ContentResolver cr, String name)
           
static float getFloat(ContentResolver cr, String name, float def)
           
static int getInt(ContentResolver cr, String name)
           
static int getInt(ContentResolver cr, String name, int def)
           
static long getLong(ContentResolver cr, String name)
           
static long getLong(ContentResolver cr, String name, long def)
           
static String getString(ContentResolver resolver, String name)
           
static Uri getUriFor(String name)
           
static boolean isLocationProviderEnabled(ContentResolver cr, String provider)
           
static boolean putFloat(ContentResolver cr, String name, float value)
           
static boolean putInt(ContentResolver cr, String name, int value)
           
static boolean putLong(ContentResolver cr, String name, long value)
           
static boolean putString(ContentResolver resolver, String name, String value)
           
static void setLocationProviderEnabled(ContentResolver cr, String provider, boolean enabled)
           
 
Methods inherited from class android.provider.Settings.NameValueTable
getUriFor, putString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SYS_PROP_SETTING_VERSION

public static final String SYS_PROP_SETTING_VERSION
See Also:
Constant Field Values

CONTENT_URI

public static final Uri CONTENT_URI

ADB_ENABLED

public static final String ADB_ENABLED
See Also:
Constant Field Values

ALLOW_MOCK_LOCATION

public static final String ALLOW_MOCK_LOCATION
See Also:
Constant Field Values

ANDROID_ID

public static final String ANDROID_ID
See Also:
Constant Field Values

BLUETOOTH_ON

public static final String BLUETOOTH_ON
See Also:
Constant Field Values

DATA_ROAMING

public static final String DATA_ROAMING
See Also:
Constant Field Values

DEFAULT_INPUT_METHOD

public static final String DEFAULT_INPUT_METHOD
See Also:
Constant Field Values

DEVICE_PROVISIONED

public static final String DEVICE_PROVISIONED
See Also:
Constant Field Values

ENABLED_INPUT_METHODS

public static final String ENABLED_INPUT_METHODS
See Also:
Constant Field Values

HTTP_PROXY

public static final String HTTP_PROXY
See Also:
Constant Field Values

INSTALL_NON_MARKET_APPS

public static final String INSTALL_NON_MARKET_APPS
See Also:
Constant Field Values

LOCATION_PROVIDERS_ALLOWED

public static final String LOCATION_PROVIDERS_ALLOWED
See Also:
Constant Field Values

LOCK_PATTERN_ENABLED

public static final String LOCK_PATTERN_ENABLED
See Also:
Constant Field Values

LOCK_PATTERN_VISIBLE

public static final String LOCK_PATTERN_VISIBLE
See Also:
Constant Field Values

LOCK_PATTERN_TACTILE_FEEDBACK_ENABLED

public static final String LOCK_PATTERN_TACTILE_FEEDBACK_ENABLED
See Also:
Constant Field Values

LOGGING_ID

public static final String LOGGING_ID
See Also:
Constant Field Values

NETWORK_PREFERENCE

public static final String NETWORK_PREFERENCE
See Also:
Constant Field Values

PARENTAL_CONTROL_ENABLED

public static final String PARENTAL_CONTROL_ENABLED
See Also:
Constant Field Values

PARENTAL_CONTROL_LAST_UPDATE

public static final String PARENTAL_CONTROL_LAST_UPDATE
See Also:
Constant Field Values

PARENTAL_CONTROL_REDIRECT_URL

public static final String PARENTAL_CONTROL_REDIRECT_URL
See Also:
Constant Field Values

SETTINGS_CLASSNAME

public static final String SETTINGS_CLASSNAME
See Also:
Constant Field Values

USB_MASS_STORAGE_ENABLED

public static final String USB_MASS_STORAGE_ENABLED
See Also:
Constant Field Values

USE_GOOGLE_MAIL

public static final String USE_GOOGLE_MAIL
See Also:
Constant Field Values

ACCESSIBILITY_ENABLED

public static final String ACCESSIBILITY_ENABLED
See Also:
Constant Field Values

ENABLED_ACCESSIBILITY_SERVICES

public static final String ENABLED_ACCESSIBILITY_SERVICES
See Also:
Constant Field Values

TTS_USE_DEFAULTS

public static final String TTS_USE_DEFAULTS
See Also:
Constant Field Values

TTS_DEFAULT_RATE

public static final String TTS_DEFAULT_RATE
See Also:
Constant Field Values

TTS_DEFAULT_PITCH

public static final String TTS_DEFAULT_PITCH
See Also:
Constant Field Values

TTS_DEFAULT_SYNTH

public static final String TTS_DEFAULT_SYNTH
See Also:
Constant Field Values

TTS_DEFAULT_LANG

public static final String TTS_DEFAULT_LANG
See Also:
Constant Field Values

TTS_DEFAULT_COUNTRY

public static final String TTS_DEFAULT_COUNTRY
See Also:
Constant Field Values

TTS_DEFAULT_VARIANT

public static final String TTS_DEFAULT_VARIANT
See Also:
Constant Field Values

TTS_ENABLED_PLUGINS

public static final String TTS_ENABLED_PLUGINS
See Also:
Constant Field Values

WIFI_NETWORKS_AVAILABLE_NOTIFICATION_ON

public static final String WIFI_NETWORKS_AVAILABLE_NOTIFICATION_ON
See Also:
Constant Field Values

WIFI_NETWORKS_AVAILABLE_REPEAT_DELAY

public static final String WIFI_NETWORKS_AVAILABLE_REPEAT_DELAY
See Also:
Constant Field Values

WIFI_NUM_OPEN_NETWORKS_KEPT

public static final String WIFI_NUM_OPEN_NETWORKS_KEPT
See Also:
Constant Field Values

WIFI_ON

public static final String WIFI_ON
See Also:
Constant Field Values

WIFI_WATCHDOG_ACCEPTABLE_PACKET_LOSS_PERCENTAGE

public static final String WIFI_WATCHDOG_ACCEPTABLE_PACKET_LOSS_PERCENTAGE
See Also:
Constant Field Values

WIFI_WATCHDOG_AP_COUNT

public static final String WIFI_WATCHDOG_AP_COUNT
See Also:
Constant Field Values

WIFI_WATCHDOG_BACKGROUND_CHECK_DELAY_MS

public static final String WIFI_WATCHDOG_BACKGROUND_CHECK_DELAY_MS
See Also:
Constant Field Values

WIFI_WATCHDOG_BACKGROUND_CHECK_ENABLED

public static final String WIFI_WATCHDOG_BACKGROUND_CHECK_ENABLED
See Also:
Constant Field Values

WIFI_WATCHDOG_BACKGROUND_CHECK_TIMEOUT_MS

public static final String WIFI_WATCHDOG_BACKGROUND_CHECK_TIMEOUT_MS
See Also:
Constant Field Values

WIFI_WATCHDOG_INITIAL_IGNORED_PING_COUNT

public static final String WIFI_WATCHDOG_INITIAL_IGNORED_PING_COUNT
See Also:
Constant Field Values

WIFI_WATCHDOG_MAX_AP_CHECKS

public static final String WIFI_WATCHDOG_MAX_AP_CHECKS
See Also:
Constant Field Values

WIFI_WATCHDOG_ON

public static final String WIFI_WATCHDOG_ON
See Also:
Constant Field Values

WIFI_WATCHDOG_WATCH_LIST

public static final String WIFI_WATCHDOG_WATCH_LIST
See Also:
Constant Field Values

WIFI_WATCHDOG_PING_COUNT

public static final String WIFI_WATCHDOG_PING_COUNT
See Also:
Constant Field Values

WIFI_WATCHDOG_PING_DELAY_MS

public static final String WIFI_WATCHDOG_PING_DELAY_MS
See Also:
Constant Field Values

WIFI_WATCHDOG_PING_TIMEOUT_MS

public static final String WIFI_WATCHDOG_PING_TIMEOUT_MS
See Also:
Constant Field Values

WIFI_MAX_DHCP_RETRY_COUNT

public static final String WIFI_MAX_DHCP_RETRY_COUNT
See Also:
Constant Field Values

WIFI_MOBILE_DATA_TRANSITION_WAKELOCK_TIMEOUT_MS

public static final String WIFI_MOBILE_DATA_TRANSITION_WAKELOCK_TIMEOUT_MS
See Also:
Constant Field Values

BACKGROUND_DATA

public static final String BACKGROUND_DATA
See Also:
Constant Field Values

ALLOWED_GEOLOCATION_ORIGINS

public static final String ALLOWED_GEOLOCATION_ORIGINS
See Also:
Constant Field Values
Constructor Detail

Settings.Secure

public Settings.Secure()
Method Detail

getString

public static String getString(ContentResolver resolver,
                               String name)

putString

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

getUriFor

public static Uri getUriFor(String name)

getInt

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

getInt

public static int getInt(ContentResolver cr,
                         String name)
                  throws Settings.SettingNotFoundException
Throws:
Settings.SettingNotFoundException

putInt

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

getLong

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

getLong

public static long getLong(ContentResolver cr,
                           String name)
                    throws Settings.SettingNotFoundException
Throws:
Settings.SettingNotFoundException

putLong

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

getFloat

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

getFloat

public static float getFloat(ContentResolver cr,
                             String name)
                      throws Settings.SettingNotFoundException
Throws:
Settings.SettingNotFoundException

putFloat

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

isLocationProviderEnabled

public static final boolean isLocationProviderEnabled(ContentResolver cr,
                                                      String provider)

setLocationProviderEnabled

public static final void setLocationProviderEnabled(ContentResolver cr,
                                                    String provider,
                                                    boolean enabled)


Copyright © 2008-2010. All Rights Reserved.