@Implements(value=android.provider.Settings.class)
public class ShadowSettings
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ShadowSettings.ShadowGlobal |
static class |
ShadowSettings.ShadowSecure |
static class |
ShadowSettings.ShadowSystem |
| Constructor and Description |
|---|
ShadowSettings() |
| Modifier and Type | Method and Description |
|---|---|
static void |
set24HourTimeFormat(boolean use24HourTimeFormat)
Sets the value of the
Settings.System#TIME_12_24 setting. |
static void |
setAirplaneMode(boolean isAirplaneMode)
Sets the value of the
Settings.System#AIRPLANE_MODE_ON setting. |
static void |
setWifiOn(boolean isOn)
Non-Android accessor that allows the value of the WIFI_ON setting to be set.
|
public static void setAirplaneMode(boolean isAirplaneMode)
Sets the value of the Settings.System#AIRPLANE_MODE_ON setting.
isAirplaneMode - new status for airplane modepublic static void setWifiOn(boolean isOn)
Non-Android accessor that allows the value of the WIFI_ON setting to be set.
isOn - new status for wifi modepublic static void set24HourTimeFormat(boolean use24HourTimeFormat)
Sets the value of the Settings.System#TIME_12_24 setting.
use24HourTimeFormat - new status for the time setting