Home | History | Annotate | Download | only in shadows

Lines Matching defs:Settings

4 import android.provider.Settings;
14 * Shadow of {@code Settings} that allows the status of various System and Secure settings to be simulated, changed and
18 @Implements(Settings.class)
20 @Implements(Settings.class)
40 public static int getInt(ContentResolver cr, String name) throws Settings.SettingNotFoundException {
44 throw new Settings.SettingNotFoundException(name);
79 public static long getLong(ContentResolver cr, String name) throws Settings.SettingNotFoundException {
83 throw new Settings.SettingNotFoundException(name);
103 public static float getFloat(ContentResolver cr, String name) throws Settings.SettingNotFoundException {
107 throw new Settings.SettingNotFoundException(name);
122 @Implements(Settings.System.class)
126 @Implements(Settings.Secure.class)
130 @Implements(Settings.Global.class)
140 Settings.System.putInt(Robolectric.application.getContentResolver(), Settings.System.AIRPLANE_MODE_ON, isAirplaneMode ? 1 : 0);
149 Settings.Secure.putInt(Robolectric.application.getContentResolver(), Settings.Secure.WIFI_ON, isOn ? 1 : 0);
158 Settings.System.putInt(Robolectric.application.getContentResolver(), Settings.System.TIME_12_24, use24HourTimeFormat ? 24 : 12);