Build 1.0_r1(from source)

android.provider
Class Settings.Gservices

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

public static final class Settings.Gservices
extends Settings.NameValueTable

Gservices settings, containing the network names for Google's various services. This table holds simple name/addr pairs. Addresses can be accessed through the getString() method.


Nested Class Summary
static class Settings.Gservices.QueryMap
          Deprecated.  
 
Field Summary
static String CHECKIN_EVENTS
          Event tags from the kernel event log to upload during checkin.
static String CHECKIN_INTERVAL
          The interval (in seconds) between periodic checkin attempts.
static Uri CONTENT_URI
          The content:// style URL for this table
static String DISK_FREE_CHANGE_REPORTING_THRESHOLD
          Threshold for the amount of change in disk free space required to report the amount of free space.
static String GLS_PUBLIC_KEY
          RSA public key used to encrypt passwords stored in the database.
static String GMAIL_CONFIG_INFO_MIN_SERVER_VERSION
          The minimum version of the server that is required in order for the device to accept the server's recommendations about the initial sync settings to use.
static String GMAIL_DISALLOW_IMAGE_PREVIEWS
          Controls whether Gmail offers a preview button for images.
static String GMAIL_TIMEOUT_MS
          The timeout in milliseconds that Gmail uses when opening a connection and reading from it.
static String GOOGLE_LOGIN_GENERIC_AUTH_SERVICE
          "Generic" service name for authentication requests.
static String GOOGLE_SERVICES_PREFIX
          Prefix for new Google services published by the checkin server.
static String GTALK_DATA_MESSAGE_WAKELOCK_MS
          GTalkService holds a wakelock while broadcasting the intent for data message received.
static String GTALK_SERVICE_ACTIVE_HEARTBEAT_INTERVAL_MS
          How frequently we send heartbeat pings to the GTalk server.
static String GTALK_SERVICE_AWAY_HEARTBEAT_INTERVAL_MS
          How frequently we send heartbeat pings to the GTalk server.
static String GTALK_SERVICE_CONNECT_ON_AUTO_SYNC
          By default, GTalkService will always connect to the server regardless of the auto-sync setting.
static String GTALK_SERVICE_HEARTBEAT_ACK_TIMEOUT_MS
          How long we wait to receive a heartbeat ping acknowledgement (or another packet) from the GTalk server, before deeming the connection dead.
static String GTALK_SERVICE_HOSTNAME
          Hostname of the GTalk server.
static String GTALK_SERVICE_IDLE_TIMEOUT_MS
          How long after screen is turned off before we consider the user to be idle.
static String GTALK_SERVICE_MAX_RECONNECT_DELAY
          The maximum reconnect delay time, in milliseconds.
static String GTALK_SERVICE_MIN_RECONNECT_DELAY_LONG
          The minimum reconnect delay for long network outages
static String GTALK_SERVICE_MIN_RECONNECT_DELAY_SHORT
          The minimum reconnect delay for short network outages or when the network is suspended due to phone use.
static String GTALK_SERVICE_NOSYNC_HEARTBEAT_INTERVAL_MS
          How frequently we send heartbeat pings to the GTalk server.
static String GTALK_SERVICE_RECONNECT_VARIANT_LONG
          The reconnect variant range for long network outages.
static String GTALK_SERVICE_RECONNECT_VARIANT_SHORT
          The reconnect variant range for short network outages or when the network is suspended due to phone use.
static String GTALK_SERVICE_RMQ_ACK_INTERVAL
          The server configurable RMQ acking interval
static String GTALK_SERVICE_SECURE_PORT
          Secure port of the GTalk server.
static String GTALK_SERVICE_SHORT_NETWORK_DOWNTIME
          The network downtime that is considered "short" for the above calculations, in milliseconds.
static String GTALK_SERVICE_SYNC_HEARTBEAT_INTERVAL_MS
          How frequently we send heartbeat pings to the GTalk server.
static String GTALK_SSL_HANDSHAKE_TIMEOUT_MS
          The socket read timeout used to control how long ssl handshake wait for reads before timing out.
static String MEMCHECK_EXEC_END_TIME
          Last time during the day it is okay to kill processes or reboot the device due to low memory situations.
static String MEMCHECK_EXEC_START_TIME
          First time during the day it is okay to kill processes or reboot the device due to low memory situations.
static String MEMCHECK_INTERVAL
          How frequently (in seconds) to check the memory status of the device.
static String MEMCHECK_LOG_REALTIME_INTERVAL
          Max frequency (in seconds) to log memory check stats, in realtime seconds.
static String MEMCHECK_MIN_ALARM
          How much time there must be until the next alarm in order to kill processes or reboot.
static String MEMCHECK_MIN_SCREEN_OFF
          How long the screen must have been off in order to kill processes or reboot.
static String MEMCHECK_PHONE_ENABLED
          Boolean indicating whether restarting the phone process due to memory checks is enabled.
static String MEMCHECK_PHONE_HARD_THRESHOLD
          How many bytes the phone process must be below to avoid scheduling a hard restart.
static String MEMCHECK_PHONE_SOFT_THRESHOLD
          How many bytes the phone process must be below to avoid scheduling a soft restart.
static String MEMCHECK_RECHECK_INTERVAL
          How frequently to check whether it is a good time to restart things, if the device is in a bad state.
static String MEMCHECK_SYSTEM_ENABLED
          Boolean indicating whether rebooting due to system memory checks is enabled.
static String MEMCHECK_SYSTEM_HARD_THRESHOLD
          How many bytes the system process must be below to avoid scheduling a hard reboot.
static String MEMCHECK_SYSTEM_SOFT_THRESHOLD
          How many bytes the system process must be below to avoid scheduling a soft reboot.
static String MMS_X_WAP_PROFILE_URL
          MMS - URL to use for HTTP "x-wap-profile" header
static String PARENTAL_CONTROL_CHECK_ENABLED
          Only check parental control status if this is set to "true".
static String PARENTAL_CONTROL_EXPECTED_RESPONSE
          When parental control is off, we expect to get this string from the litmus url.
static String PARENTAL_CONTROL_REDIRECT_REGEX
          When the litmus url returns a 302, declare parental control to be on only if the redirect url matches this regular expression.
static String PARENTAL_CONTROL_TIMEOUT_IN_MS
          Duration in which parental control status is valid.
static String PDP_WATCHDOG_ERROR_POLL_COUNT
          The number of polls to perform (at PDP_WATCHDOG_ERROR_POLL_INTERVAL_MS) after hitting PDP_WATCHDOG_TRIGGER_PACKET_COUNT before attempting data connection recovery.
static String PDP_WATCHDOG_ERROR_POLL_INTERVAL_MS
          The interval in milliseconds at which to check packet counts on the mobile data interface after PDP_WATCHDOG_TRIGGER_PACKET_COUNT outgoing packets has been reached without incoming packets.
static String PDP_WATCHDOG_LONG_POLL_INTERVAL_MS
          The interval in milliseconds at which to check packet counts on the mobile data interface when screen is off, to detect possible data connection problems.
static String PDP_WATCHDOG_MAX_PDP_RESET_FAIL_COUNT
          The number of failed PDP reset attempts before moving to something more drastic: re-registering to the network.
static String PDP_WATCHDOG_PING_ADDRESS
          Address to ping as a last sanity check before attempting any recovery.
static String PDP_WATCHDOG_PING_DEADLINE
          The "-w deadline" parameter for the ping, ie, the max time in seconds to spend pinging.
static String PDP_WATCHDOG_POLL_INTERVAL_MS
          The interval in milliseconds at which to check packet counts on the mobile data interface when screen is on, to detect possible data connection problems.
static String PDP_WATCHDOG_TRIGGER_PACKET_COUNT
          The number of outgoing packets sent without seeing an incoming packet that triggers a countdown (of PDP_WATCHDOG_ERROR_POLL_COUNT device is logged to the event log
static String PROVISIONING_DIGEST
          The hash value of the current provisioning settings
static String PROVISIONING_OVERRIDE
          Provisioning keys to block from server update
static String REBOOT_INTERVAL
          How frequently (in DAYS) to reboot the device.
static String REBOOT_START_TIME
          First time during the day it is okay to force a reboot of the device (if REBOOT_INTERVAL is set).
static String REBOOT_WINDOW
          The window of time (in seconds) after each REBOOT_INTERVAL in which a reboot can be executed.
static String SETTINGS_CONTRIBUTORS_PRETTY_URL
          URL that points to the contributors to display in Settings.
static String SETTINGS_CONTRIBUTORS_URL
          URL that points to the contributors to display in Settings.
static String SETTINGS_TOS_PRETTY_URL
          URL that points to the legal terms of service to display in Settings.
static String SETTINGS_TOS_URL
          URL that points to the legal terms of service to display in Settings.
static String SYNC_MAX_RETRY_DELAY_IN_SECONDS
          The maximum reconnect delay for short network outages or when the network is suspended due to phone use.
static String SYNC_MIN_GZIP_BYTES
          How many bytes long a message has to be, in order to be gzipped.
static String SYS_FREE_STORAGE_LOG_INTERVAL
          The interval in minutes after which the amount of free storage left on the device is logged to the event log
static String SYS_PROP_SETTING_VERSION
           
static String SYS_STORAGE_THRESHOLD_PERCENTAGE
          Minimum percentage of free storage on the device that is used to determine if the device is running low on storage.
static String USE_MSISDN_TOKEN
          Request an MSISDN token for various Google services.
static String VENDING_REQUIRE_SIM_FOR_PURCHASE
          Indicates if Vending Machine requires a SIM to be in the phone to allow a purchase.
static String VENDING_SUPPORT_URL
          Support URL that is opened in a browser when user clicks on 'Help and Info' in Vending Machine.
static String VENDING_SYNC_FREQUENCY_MS
          Frequency in milliseconds at which we should sync the locally installed Vending Machine content with the server.
static String VENDING_TOS_URL
          URL that points to the terms of service for Vending Machine.
static String VENDING_TOS_VERSION
          The current version id of the Vending Machine terms of service.
static String VENDING_USE_CHECKOUT_QA_SERVICE
          Whether to use sierraqa instead of sierra tokens for the purchase flow in Vending Machine.
static String WIFI_IDLE_MS
          The interval in milliseconds after which Wi-Fi is considered idle.
static String WIFI_MAX_DHCP_RETRY_COUNT
          The maximum number of times we will retry a connection to an access point for which we have failed in acquiring an IP address from DHCP.
static String WIFI_MOBILE_DATA_TRANSITION_WAKELOCK_TIMEOUT_MS
          The interval in milliseconds at which we forcefully release the transition-to-mobile-data wake lock.
static String YOUTUBE_BY_AUTHOR_URL
          YouTube - "by author" videos url -- used for My videos
static String YOUTUBE_CATEGORY_LIST_URL
          YouTube - url to get the list of categories
static String YOUTUBE_CATEGORY_SEARCH_URL
          YouTube - category search videos url
static String YOUTUBE_INDIVIDUAL_VIDEO_URL
          YouTube - individual video url
static String YOUTUBE_MOBILE_VIDEOS_URL
          YouTube - "mobile" videos url
static String YOUTUBE_MOST_DISCUSSED_URL
          YouTube - "most discussed" url
static String YOUTUBE_MOST_LINKED_URL
          YouTube - "most linked" url
static String YOUTUBE_MOST_RECENT_URL
          YouTube - "most recent" url
static String YOUTUBE_MOST_RESPONDED_URL
          YouTube - "most responded" url
static String YOUTUBE_MOST_VIEWED_URL
          YouTube - "most viewed" url
static String YOUTUBE_MY_FAVORITES_URL
          YouTube - "my favorite" videos url
static String YOUTUBE_MY_PLAYLISTS_URL
          YouTube - user's playlist url
static String YOUTUBE_MY_SUBSCRIPTIONS_URL
          YouTube - user's subscriptions url
static String YOUTUBE_MY_VIDEOS_URL
          YouTube - my uploaded videos
static String YOUTUBE_RECENTLY_FEATURED_URL
          YouTube - "recently featured" url
static String YOUTUBE_REGISTER_DEVICE_URL
          YouTube - the url we use to contact YouTube to get a device id
static String YOUTUBE_RELATED_VIDEOS_URL
          YouTube - related videos url
static String YOUTUBE_SAVE_TO_FAVORITES_URL
          YouTube - save a video to favorite videos url
static String YOUTUBE_SEARCH_URL
          YouTube - search videos url
static String YOUTUBE_TOP_FAVORITES_URL
          YouTube - "top favorites" url
static String YOUTUBE_TOP_RATED_URL
          YouTube - "top rated" url
static String YOUTUBE_USE_PROXY
          YouTube - the flag to indicate whether to use proxy
 
Fields inherited from class android.provider.Settings.NameValueTable
NAME, VALUE
 
Fields inherited from interface android.provider.BaseColumns
_COUNT, _ID
 
Constructor Summary
Settings.Gservices()
           
 
Method Summary
static int getInt(ContentResolver resolver, String name, int defValue)
          Look up the value for name in the database, convert it to an int using Integer.parseInt and return it.
static long getLong(ContentResolver resolver, String name, long defValue)
          Look up the value for name in the database, convert it to a long using Long.parseLong and return it.
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 putString(ContentResolver resolver, String name, String value)
          Store a name/value pair into the database.
 
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
The content:// style URL for this table


MMS_X_WAP_PROFILE_URL

public static final String MMS_X_WAP_PROFILE_URL
MMS - URL to use for HTTP "x-wap-profile" header

See Also:
Constant Field Values

YOUTUBE_MOST_VIEWED_URL

public static final String YOUTUBE_MOST_VIEWED_URL
YouTube - "most viewed" url

See Also:
Constant Field Values

YOUTUBE_MOST_RECENT_URL

public static final String YOUTUBE_MOST_RECENT_URL
YouTube - "most recent" url

See Also:
Constant Field Values

YOUTUBE_TOP_FAVORITES_URL

public static final String YOUTUBE_TOP_FAVORITES_URL
YouTube - "top favorites" url

See Also:
Constant Field Values

YOUTUBE_MOST_DISCUSSED_URL

public static final String YOUTUBE_MOST_DISCUSSED_URL
YouTube - "most discussed" url

See Also:
Constant Field Values

YOUTUBE_MOST_RESPONDED_URL

public static final String YOUTUBE_MOST_RESPONDED_URL
YouTube - "most responded" url

See Also:
Constant Field Values

YOUTUBE_MOST_LINKED_URL

public static final String YOUTUBE_MOST_LINKED_URL
YouTube - "most linked" url

See Also:
Constant Field Values

YOUTUBE_TOP_RATED_URL

public static final String YOUTUBE_TOP_RATED_URL
YouTube - "top rated" url

See Also:
Constant Field Values

YOUTUBE_RECENTLY_FEATURED_URL

public static final String YOUTUBE_RECENTLY_FEATURED_URL
YouTube - "recently featured" url

See Also:
Constant Field Values

YOUTUBE_MY_VIDEOS_URL

public static final String YOUTUBE_MY_VIDEOS_URL
YouTube - my uploaded videos

See Also:
Constant Field Values

YOUTUBE_MY_FAVORITES_URL

public static final String YOUTUBE_MY_FAVORITES_URL
YouTube - "my favorite" videos url

See Also:
Constant Field Values

YOUTUBE_BY_AUTHOR_URL

public static final String YOUTUBE_BY_AUTHOR_URL
YouTube - "by author" videos url -- used for My videos

See Also:
Constant Field Values

YOUTUBE_SAVE_TO_FAVORITES_URL

public static final String YOUTUBE_SAVE_TO_FAVORITES_URL
YouTube - save a video to favorite videos url

See Also:
Constant Field Values

YOUTUBE_MOBILE_VIDEOS_URL

public static final String YOUTUBE_MOBILE_VIDEOS_URL
YouTube - "mobile" videos url

See Also:
Constant Field Values

YOUTUBE_SEARCH_URL

public static final String YOUTUBE_SEARCH_URL
YouTube - search videos url

See Also:
Constant Field Values

YOUTUBE_CATEGORY_SEARCH_URL

public static final String YOUTUBE_CATEGORY_SEARCH_URL
YouTube - category search videos url

See Also:
Constant Field Values

YOUTUBE_CATEGORY_LIST_URL

public static final String YOUTUBE_CATEGORY_LIST_URL
YouTube - url to get the list of categories

See Also:
Constant Field Values

YOUTUBE_RELATED_VIDEOS_URL

public static final String YOUTUBE_RELATED_VIDEOS_URL
YouTube - related videos url

See Also:
Constant Field Values

YOUTUBE_INDIVIDUAL_VIDEO_URL

public static final String YOUTUBE_INDIVIDUAL_VIDEO_URL
YouTube - individual video url

See Also:
Constant Field Values

YOUTUBE_MY_PLAYLISTS_URL

public static final String YOUTUBE_MY_PLAYLISTS_URL
YouTube - user's playlist url

See Also:
Constant Field Values

YOUTUBE_MY_SUBSCRIPTIONS_URL

public static final String YOUTUBE_MY_SUBSCRIPTIONS_URL
YouTube - user's subscriptions url

See Also:
Constant Field Values

YOUTUBE_REGISTER_DEVICE_URL

public static final String YOUTUBE_REGISTER_DEVICE_URL
YouTube - the url we use to contact YouTube to get a device id

See Also:
Constant Field Values

YOUTUBE_USE_PROXY

public static final String YOUTUBE_USE_PROXY
YouTube - the flag to indicate whether to use proxy

See Also:
Constant Field Values

CHECKIN_EVENTS

public static final String CHECKIN_EVENTS
Event tags from the kernel event log to upload during checkin.

See Also:
Constant Field Values

CHECKIN_INTERVAL

public static final String CHECKIN_INTERVAL
The interval (in seconds) between periodic checkin attempts.

See Also:
Constant Field Values

MEMCHECK_INTERVAL

public static final String MEMCHECK_INTERVAL
How frequently (in seconds) to check the memory status of the device.

See Also:
Constant Field Values

MEMCHECK_LOG_REALTIME_INTERVAL

public static final String MEMCHECK_LOG_REALTIME_INTERVAL
Max frequency (in seconds) to log memory check stats, in realtime seconds. This allows for throttling of logs when the device is running for large amounts of time.

See Also:
Constant Field Values

MEMCHECK_SYSTEM_ENABLED

public static final String MEMCHECK_SYSTEM_ENABLED
Boolean indicating whether rebooting due to system memory checks is enabled.

See Also:
Constant Field Values

MEMCHECK_SYSTEM_SOFT_THRESHOLD

public static final String MEMCHECK_SYSTEM_SOFT_THRESHOLD
How many bytes the system process must be below to avoid scheduling a soft reboot. This reboot will happen when it is next determined to be a good time.

See Also:
Constant Field Values

MEMCHECK_SYSTEM_HARD_THRESHOLD

public static final String MEMCHECK_SYSTEM_HARD_THRESHOLD
How many bytes the system process must be below to avoid scheduling a hard reboot. This reboot will happen immediately.

See Also:
Constant Field Values

MEMCHECK_PHONE_SOFT_THRESHOLD

public static final String MEMCHECK_PHONE_SOFT_THRESHOLD
How many bytes the phone process must be below to avoid scheduling a soft restart. This restart will happen when it is next determined to be a good time.

See Also:
Constant Field Values

MEMCHECK_PHONE_HARD_THRESHOLD

public static final String MEMCHECK_PHONE_HARD_THRESHOLD
How many bytes the phone process must be below to avoid scheduling a hard restart. This restart will happen immediately.

See Also:
Constant Field Values

MEMCHECK_PHONE_ENABLED

public static final String MEMCHECK_PHONE_ENABLED
Boolean indicating whether restarting the phone process due to memory checks is enabled.

See Also:
Constant Field Values

MEMCHECK_EXEC_START_TIME

public static final String MEMCHECK_EXEC_START_TIME
First time during the day it is okay to kill processes or reboot the device due to low memory situations. This number is in seconds since midnight.

See Also:
Constant Field Values

MEMCHECK_EXEC_END_TIME

public static final String MEMCHECK_EXEC_END_TIME
Last time during the day it is okay to kill processes or reboot the device due to low memory situations. This number is in seconds since midnight.

See Also:
Constant Field Values

MEMCHECK_MIN_SCREEN_OFF

public static final String MEMCHECK_MIN_SCREEN_OFF
How long the screen must have been off in order to kill processes or reboot. This number is in seconds. A value of -1 means to entirely disregard whether the screen is on.

See Also:
Constant Field Values

MEMCHECK_MIN_ALARM

public static final String MEMCHECK_MIN_ALARM
How much time there must be until the next alarm in order to kill processes or reboot. This number is in seconds. Note: this value must be smaller than MEMCHECK_RECHECK_INTERVAL or else it will always see an alarm scheduled within its time.

See Also:
Constant Field Values

MEMCHECK_RECHECK_INTERVAL

public static final String MEMCHECK_RECHECK_INTERVAL
How frequently to check whether it is a good time to restart things, if the device is in a bad state. This number is in seconds. Note: this value must be larger than MEMCHECK_MIN_ALARM or else the alarm to schedule the recheck will always appear within the minimum "do not execute now" time.

See Also:
Constant Field Values

REBOOT_INTERVAL

public static final String REBOOT_INTERVAL
How frequently (in DAYS) to reboot the device. If 0, no reboots will occur.

See Also:
Constant Field Values

REBOOT_START_TIME

public static final String REBOOT_START_TIME
First time during the day it is okay to force a reboot of the device (if REBOOT_INTERVAL is set). This number is in seconds since midnight.

See Also:
Constant Field Values

REBOOT_WINDOW

public static final String REBOOT_WINDOW
The window of time (in seconds) after each REBOOT_INTERVAL in which a reboot can be executed. If 0, a reboot will always be executed at exactly the given time. Otherwise, it will only be executed if the device is idle within the window.

See Also:
Constant Field Values

GMAIL_CONFIG_INFO_MIN_SERVER_VERSION

public static final String GMAIL_CONFIG_INFO_MIN_SERVER_VERSION
The minimum version of the server that is required in order for the device to accept the server's recommendations about the initial sync settings to use. When this is unset, blank or can't be interpreted as an integer then we will not ask the server for a recommendation.

See Also:
Constant Field Values

GMAIL_DISALLOW_IMAGE_PREVIEWS

public static final String GMAIL_DISALLOW_IMAGE_PREVIEWS
Controls whether Gmail offers a preview button for images.

See Also:
Constant Field Values

GMAIL_TIMEOUT_MS

public static final String GMAIL_TIMEOUT_MS
The timeout in milliseconds that Gmail uses when opening a connection and reading from it. A missing value or a value of -1 instructs Gmail to use the defaults provided by GoogleHttpClient.

See Also:
Constant Field Values

GTALK_SERVICE_HOSTNAME

public static final String GTALK_SERVICE_HOSTNAME
Hostname of the GTalk server.

See Also:
Constant Field Values

GTALK_SERVICE_SECURE_PORT

public static final String GTALK_SERVICE_SECURE_PORT
Secure port of the GTalk server.

See Also:
Constant Field Values

GTALK_SERVICE_RMQ_ACK_INTERVAL

public static final String GTALK_SERVICE_RMQ_ACK_INTERVAL
The server configurable RMQ acking interval

See Also:
Constant Field Values

GTALK_SERVICE_MIN_RECONNECT_DELAY_SHORT

public static final String GTALK_SERVICE_MIN_RECONNECT_DELAY_SHORT
The minimum reconnect delay for short network outages or when the network is suspended due to phone use.

See Also:
Constant Field Values

GTALK_SERVICE_RECONNECT_VARIANT_SHORT

public static final String GTALK_SERVICE_RECONNECT_VARIANT_SHORT
The reconnect variant range for short network outages or when the network is suspended due to phone use. A random number between 0 and this constant is computed and added to GTALK_SERVICE_MIN_RECONNECT_DELAY_SHORT to form the initial reconnect delay.

See Also:
Constant Field Values

GTALK_SERVICE_MIN_RECONNECT_DELAY_LONG

public static final String GTALK_SERVICE_MIN_RECONNECT_DELAY_LONG
The minimum reconnect delay for long network outages

See Also:
Constant Field Values

GTALK_SERVICE_RECONNECT_VARIANT_LONG

public static final String GTALK_SERVICE_RECONNECT_VARIANT_LONG
The reconnect variant range for long network outages. A random number between 0 and this constant is computed and added to GTALK_SERVICE_MIN_RECONNECT_DELAY_LONG to form the initial reconnect delay.

See Also:
Constant Field Values

GTALK_SERVICE_MAX_RECONNECT_DELAY

public static final String GTALK_SERVICE_MAX_RECONNECT_DELAY
The maximum reconnect delay time, in milliseconds.

See Also:
Constant Field Values

GTALK_SERVICE_SHORT_NETWORK_DOWNTIME

public static final String GTALK_SERVICE_SHORT_NETWORK_DOWNTIME
The network downtime that is considered "short" for the above calculations, in milliseconds.

See Also:
Constant Field Values

GTALK_SERVICE_AWAY_HEARTBEAT_INTERVAL_MS

public static final String GTALK_SERVICE_AWAY_HEARTBEAT_INTERVAL_MS
How frequently we send heartbeat pings to the GTalk server. Receiving a server packet will reset the heartbeat timer. The away heartbeat should be used when the user is logged into the GTalk app, but not actively using it.

See Also:
Constant Field Values

GTALK_SERVICE_ACTIVE_HEARTBEAT_INTERVAL_MS

public static final String GTALK_SERVICE_ACTIVE_HEARTBEAT_INTERVAL_MS
How frequently we send heartbeat pings to the GTalk server. Receiving a server packet will reset the heartbeat timer. The active heartbeat should be used when the user is actively using the GTalk app.

See Also:
Constant Field Values

GTALK_SERVICE_SYNC_HEARTBEAT_INTERVAL_MS

public static final String GTALK_SERVICE_SYNC_HEARTBEAT_INTERVAL_MS
How frequently we send heartbeat pings to the GTalk server. Receiving a server packet will reset the heartbeat timer. The sync heartbeat should be used when the user isn't logged into the GTalk app, but auto-sync is enabled.

See Also:
Constant Field Values

GTALK_SERVICE_NOSYNC_HEARTBEAT_INTERVAL_MS

public static final String GTALK_SERVICE_NOSYNC_HEARTBEAT_INTERVAL_MS
How frequently we send heartbeat pings to the GTalk server. Receiving a server packet will reset the heartbeat timer. The no sync heartbeat should be used when the user isn't logged into the GTalk app, and auto-sync is not enabled.

See Also:
Constant Field Values

GTALK_SERVICE_HEARTBEAT_ACK_TIMEOUT_MS

public static final String GTALK_SERVICE_HEARTBEAT_ACK_TIMEOUT_MS
How long we wait to receive a heartbeat ping acknowledgement (or another packet) from the GTalk server, before deeming the connection dead.

See Also:
Constant Field Values

GTALK_SERVICE_IDLE_TIMEOUT_MS

public static final String GTALK_SERVICE_IDLE_TIMEOUT_MS
How long after screen is turned off before we consider the user to be idle.

See Also:
Constant Field Values

GTALK_SERVICE_CONNECT_ON_AUTO_SYNC

public static final String GTALK_SERVICE_CONNECT_ON_AUTO_SYNC
By default, GTalkService will always connect to the server regardless of the auto-sync setting. However, if this parameter is true, then GTalkService will only connect if auto-sync is enabled. Using the GTalk app will trigger the connection too.

See Also:
Constant Field Values

GTALK_DATA_MESSAGE_WAKELOCK_MS

public static final String GTALK_DATA_MESSAGE_WAKELOCK_MS
GTalkService holds a wakelock while broadcasting the intent for data message received. It then automatically release the wakelock after a timeout. This setting controls what the timeout should be.

See Also:
Constant Field Values

GTALK_SSL_HANDSHAKE_TIMEOUT_MS

public static final String GTALK_SSL_HANDSHAKE_TIMEOUT_MS
The socket read timeout used to control how long ssl handshake wait for reads before timing out. This is needed so the ssl handshake doesn't hang for a long time in some circumstances.

See Also:
Constant Field Values

SYNC_MIN_GZIP_BYTES

public static final String SYNC_MIN_GZIP_BYTES
How many bytes long a message has to be, in order to be gzipped.

See Also:
Constant Field Values

PROVISIONING_DIGEST

public static final String PROVISIONING_DIGEST
The hash value of the current provisioning settings

See Also:
Constant Field Values

PROVISIONING_OVERRIDE

public static final String PROVISIONING_OVERRIDE
Provisioning keys to block from server update

See Also:
Constant Field Values

GOOGLE_LOGIN_GENERIC_AUTH_SERVICE

public static final String GOOGLE_LOGIN_GENERIC_AUTH_SERVICE
"Generic" service name for authentication requests.

See Also:
Constant Field Values

VENDING_SYNC_FREQUENCY_MS

public static final String VENDING_SYNC_FREQUENCY_MS
Frequency in milliseconds at which we should sync the locally installed Vending Machine content with the server.

See Also:
Constant Field Values

VENDING_SUPPORT_URL

public static final String VENDING_SUPPORT_URL
Support URL that is opened in a browser when user clicks on 'Help and Info' in Vending Machine.

See Also:
Constant Field Values

VENDING_REQUIRE_SIM_FOR_PURCHASE

public static final String VENDING_REQUIRE_SIM_FOR_PURCHASE
Indicates if Vending Machine requires a SIM to be in the phone to allow a purchase. true = SIM is required false = SIM is not required

See Also:
Constant Field Values

VENDING_TOS_VERSION

public static final String VENDING_TOS_VERSION
The current version id of the Vending Machine terms of service.

See Also:
Constant Field Values

VENDING_TOS_URL

public static final String VENDING_TOS_URL
URL that points to the terms of service for Vending Machine.

See Also:
Constant Field Values

VENDING_USE_CHECKOUT_QA_SERVICE

public static final String VENDING_USE_CHECKOUT_QA_SERVICE
Whether to use sierraqa instead of sierra tokens for the purchase flow in Vending Machine. true = use sierraqa false = use sierra (default)

See Also:
Constant Field Values

SETTINGS_TOS_URL

public static final String SETTINGS_TOS_URL
URL that points to the legal terms of service to display in Settings.

This should be a https URL. For a pretty user-friendly URL, use SETTINGS_TOS_PRETTY_URL.

See Also:
Constant Field Values

SETTINGS_TOS_PRETTY_URL

public static final String SETTINGS_TOS_PRETTY_URL
URL that points to the legal terms of service to display in Settings.

This should be a pretty http URL. For the URL the device will access via Settings, use SETTINGS_TOS_URL.

See Also:
Constant Field Values

SETTINGS_CONTRIBUTORS_URL

public static final String SETTINGS_CONTRIBUTORS_URL
URL that points to the contributors to display in Settings.

This should be a https URL. For a pretty user-friendly URL, use SETTINGS_CONTRIBUTORS_PRETTY_URL.

See Also:
Constant Field Values

SETTINGS_CONTRIBUTORS_PRETTY_URL

public static final String SETTINGS_CONTRIBUTORS_PRETTY_URL
URL that points to the contributors to display in Settings.

This should be a pretty http URL. For the URL the device will access via Settings, use SETTINGS_CONTRIBUTORS_URL.

See Also:
Constant Field Values

USE_MSISDN_TOKEN

public static final String USE_MSISDN_TOKEN
Request an MSISDN token for various Google services.

See Also:
Constant Field Values

GLS_PUBLIC_KEY

public static final String GLS_PUBLIC_KEY
RSA public key used to encrypt passwords stored in the database.

See Also:
Constant Field Values

PARENTAL_CONTROL_CHECK_ENABLED

public static final String PARENTAL_CONTROL_CHECK_ENABLED
Only check parental control status if this is set to "true".

See Also:
Constant Field Values

PARENTAL_CONTROL_TIMEOUT_IN_MS

public static final String PARENTAL_CONTROL_TIMEOUT_IN_MS
Duration in which parental control status is valid.

See Also:
Constant Field Values

PARENTAL_CONTROL_EXPECTED_RESPONSE

public static final String PARENTAL_CONTROL_EXPECTED_RESPONSE
When parental control is off, we expect to get this string from the litmus url.

See Also:
Constant Field Values

PARENTAL_CONTROL_REDIRECT_REGEX

public static final String PARENTAL_CONTROL_REDIRECT_REGEX
When the litmus url returns a 302, declare parental control to be on only if the redirect url matches this regular expression.

See Also:
Constant Field Values

DISK_FREE_CHANGE_REPORTING_THRESHOLD

public static final String DISK_FREE_CHANGE_REPORTING_THRESHOLD
Threshold for the amount of change in disk free space required to report the amount of free space. Used to prevent spamming the logs when the disk free space isn't changing frequently.

See Also:
Constant Field Values

GOOGLE_SERVICES_PREFIX

public static final String GOOGLE_SERVICES_PREFIX
Prefix for new Google services published by the checkin server.

See Also:
Constant Field Values

SYNC_MAX_RETRY_DELAY_IN_SECONDS

public static final String SYNC_MAX_RETRY_DELAY_IN_SECONDS
The maximum reconnect delay for short network outages or when the network is suspended due to phone use.

See Also:
Constant Field Values

SYS_STORAGE_THRESHOLD_PERCENTAGE

public static final String SYS_STORAGE_THRESHOLD_PERCENTAGE
Minimum percentage of free storage on the device that is used to determine if the device is running low on storage. Say this value is set to 10, the device is considered running low on storage if 90% or more of the device storage is filled up.

See Also:
Constant Field Values

SYS_FREE_STORAGE_LOG_INTERVAL

public static final String SYS_FREE_STORAGE_LOG_INTERVAL
The interval in minutes after which the amount of free storage left on the device is logged to the event log

See Also:
Constant Field Values

PDP_WATCHDOG_POLL_INTERVAL_MS

public static final String PDP_WATCHDOG_POLL_INTERVAL_MS
The interval in milliseconds at which to check packet counts on the mobile data interface when screen is on, to detect possible data connection problems.

See Also:
Constant Field Values

PDP_WATCHDOG_LONG_POLL_INTERVAL_MS

public static final String PDP_WATCHDOG_LONG_POLL_INTERVAL_MS
The interval in milliseconds at which to check packet counts on the mobile data interface when screen is off, to detect possible data connection problems.

See Also:
Constant Field Values

PDP_WATCHDOG_ERROR_POLL_INTERVAL_MS

public static final String PDP_WATCHDOG_ERROR_POLL_INTERVAL_MS
The interval in milliseconds at which to check packet counts on the mobile data interface after PDP_WATCHDOG_TRIGGER_PACKET_COUNT outgoing packets has been reached without incoming packets.

See Also:
Constant Field Values

PDP_WATCHDOG_TRIGGER_PACKET_COUNT

public static final String PDP_WATCHDOG_TRIGGER_PACKET_COUNT
The number of outgoing packets sent without seeing an incoming packet that triggers a countdown (of PDP_WATCHDOG_ERROR_POLL_COUNT device is logged to the event log

See Also:
Constant Field Values

PDP_WATCHDOG_ERROR_POLL_COUNT

public static final String PDP_WATCHDOG_ERROR_POLL_COUNT
The number of polls to perform (at PDP_WATCHDOG_ERROR_POLL_INTERVAL_MS) after hitting PDP_WATCHDOG_TRIGGER_PACKET_COUNT before attempting data connection recovery.

See Also:
Constant Field Values

PDP_WATCHDOG_MAX_PDP_RESET_FAIL_COUNT

public static final String PDP_WATCHDOG_MAX_PDP_RESET_FAIL_COUNT
The number of failed PDP reset attempts before moving to something more drastic: re-registering to the network.

See Also:
Constant Field Values

PDP_WATCHDOG_PING_ADDRESS

public static final String PDP_WATCHDOG_PING_ADDRESS
Address to ping as a last sanity check before attempting any recovery. Unset or set to "0.0.0.0" to skip this check.

See Also:
Constant Field Values

PDP_WATCHDOG_PING_DEADLINE

public static final String PDP_WATCHDOG_PING_DEADLINE
The "-w deadline" parameter for the ping, ie, the max time in seconds to spend pinging.

See Also:
Constant Field Values

WIFI_IDLE_MS

public static final String WIFI_IDLE_MS
The interval in milliseconds after which Wi-Fi is considered idle. When idle, it is possible for the device to be switched from Wi-Fi to the mobile data network.

See Also:
Constant Field Values

WIFI_MOBILE_DATA_TRANSITION_WAKELOCK_TIMEOUT_MS

public static final String WIFI_MOBILE_DATA_TRANSITION_WAKELOCK_TIMEOUT_MS
The interval in milliseconds at which we forcefully release the transition-to-mobile-data wake lock.

See Also:
Constant Field Values

WIFI_MAX_DHCP_RETRY_COUNT

public static final String WIFI_MAX_DHCP_RETRY_COUNT
The maximum number of times we will retry a connection to an access point for which we have failed in acquiring an IP address from DHCP. A value of N means that we will make N+1 connection attempts in all.

See Also:
Constant Field Values
Constructor Detail

Settings.Gservices

public Settings.Gservices()
Method Detail

getString

public static String getString(ContentResolver resolver,
                               String name)
Look up a name in the database.

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

putString

public static boolean putString(ContentResolver resolver,
                                String name,
                                String value)
Store a name/value pair into the database.

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

getInt

public static int getInt(ContentResolver resolver,
                         String name,
                         int defValue)
Look up the value for name in the database, convert it to an int using Integer.parseInt and return it. If it is null or if a NumberFormatException is caught during the conversion then return defValue.


getLong

public static long getLong(ContentResolver resolver,
                           String name,
                           long defValue)
Look up the value for name in the database, convert it to a long using Long.parseLong and return it. If it is null or if a NumberFormatException is caught during the conversion then return defValue.


getUriFor

public static Uri getUriFor(String name)
Construct the content URI for a particular name/value pair, useful for monitoring changes with a ContentObserver.

Parameters:
name - to look up in the table
Returns:
the corresponding content URI, or null if not present

Build 1.0_r1(from source)

Please submit a feedback, bug or feature