Package org.robolectric.shadows
Class ShadowSettings.ShadowSecure
java.lang.Object
org.robolectric.shadows.ShadowSettings.ShadowSecure
- Enclosing class:
- ShadowSettings
@Implements(android.provider.Settings.Secure.class)
public static class ShadowSettings.ShadowSecure
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 int
getIntForUser
(ContentResolver cr, String name, int userHandle) protected static int
getIntForUser
(ContentResolver cr, String name, int def, int userHandle) 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
putIntForUser
(ContentResolver cr, String name, int value, int userHandle) protected static boolean
putLong
(ContentResolver cr, String name, long value) protected static boolean
putString
(ContentResolver cr, String name, String value) static void
reset()
protected static void
setLocationProviderEnabled
(ContentResolver cr, String provider, boolean enabled) protected static boolean
setLocationProviderEnabledForUser
(ContentResolver cr, String provider, boolean enabled, int uid)
-
Constructor Details
-
ShadowSecure
public ShadowSecure()
-
-
Method Details
-
setLocationProviderEnabledForUser
@Implementation(maxSdk=28) protected static boolean setLocationProviderEnabledForUser(ContentResolver cr, String provider, boolean enabled, int uid) -
setLocationProviderEnabled
@Implementation(maxSdk=16) protected static void setLocationProviderEnabled(ContentResolver cr, String provider, boolean enabled) -
putInt
-
putIntForUser
@Implementation(minSdk=21) protected static boolean putIntForUser(ContentResolver cr, String name, int value, int userHandle) -
getIntForUser
@Implementation protected static int getIntForUser(ContentResolver cr, String name, int def, int userHandle) -
getIntForUser
@Implementation protected static int getIntForUser(ContentResolver cr, String name, int userHandle) throws Settings.SettingNotFoundException -
getInt
@Implementation protected static int getInt(ContentResolver cr, String name) throws Settings.SettingNotFoundException -
getInt
-
putString
-
getString
-
getStringForUser
@Implementation 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
-