Package org.robolectric.shadows
Class ShadowSettings.ShadowSystem
- java.lang.Object
-
- org.robolectric.shadows.ShadowSettings.ShadowSystem
-
- Enclosing class:
- ShadowSettings
@Implements(android.provider.Settings.System.class) public static class ShadowSettings.ShadowSystem extends Object
-
-
Constructor Summary
Constructors Constructor Description ShadowSystem()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected 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)
-
-
-
Method Detail
-
putInt
@Implementation protected static boolean putInt(ContentResolver cr, String name, int value)
-
getInt
@Implementation protected static int getInt(ContentResolver cr, String name, int def)
-
getInt
@Implementation protected static int getInt(ContentResolver cr, String name) throws Settings.SettingNotFoundException
-
putString
@Implementation protected static boolean putString(ContentResolver cr, String name, String value)
-
getString
@Implementation protected static String getString(ContentResolver cr, String name)
-
getStringForUser
@Implementation(minSdk=17) protected static String getStringForUser(ContentResolver cr, String name, int userHandle)
-
putLong
@Implementation protected static boolean putLong(ContentResolver cr, String name, long value)
-
getLong
@Implementation protected static long getLong(ContentResolver cr, String name, long def)
-
getLong
@Implementation protected static long getLong(ContentResolver cr, String name) throws Settings.SettingNotFoundException
-
putFloat
@Implementation protected static boolean putFloat(ContentResolver cr, String name, float value)
-
getFloat
@Implementation protected static float getFloat(ContentResolver cr, String name, float def)
-
getFloat
@Implementation protected static float getFloat(ContentResolver cr, String name) throws Settings.SettingNotFoundException
-
-