Package org.robolectric.shadows
Class ShadowSettings.ShadowGlobal
java.lang.Object
org.robolectric.shadows.ShadowSettings.ShadowGlobal
- Enclosing class:
- ShadowSettings
@Implements(value=android.provider.Settings.Global.class,
minSdk=17)
public static class ShadowSettings.ShadowGlobal
extends Object
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static float
getFloat
(ContentResolver cr, String name) protected static float
getFloat
(ContentResolver cr, String name, float def) protected static int
getInt
(ContentResolver cr, String name) protected static int
getInt
(ContentResolver cr, String name, int def) protected static long
getLong
(ContentResolver cr, String name) protected static long
getLong
(ContentResolver cr, String name, long def) protected static String
getString
(ContentResolver cr, String name) protected static String
getStringForUser
(ContentResolver cr, String name, int userHandle) protected static boolean
putFloat
(ContentResolver cr, String name, float value) protected static boolean
putInt
(ContentResolver cr, String name, int value) protected static boolean
putLong
(ContentResolver cr, String name, long value) protected static boolean
putString
(ContentResolver cr, String name, String value) static void
reset()
-
Constructor Details
-
ShadowGlobal
public ShadowGlobal()
-
-
Method Details
-
putInt
-
getInt
-
getInt
@Implementation protected static int getInt(ContentResolver cr, String name) throws Settings.SettingNotFoundException -
putString
-
getString
-
getStringForUser
@Implementation(minSdk=17) protected static String getStringForUser(ContentResolver cr, String name, int userHandle) -
putLong
-
getLong
-
getLong
@Implementation protected static long getLong(ContentResolver cr, String name) throws Settings.SettingNotFoundException -
putFloat
-
getFloat
-
getFloat
@Implementation protected static float getFloat(ContentResolver cr, String name) throws Settings.SettingNotFoundException -
reset
-