@Implements(android.provider.Settings.Secure.class) public static class ShadowSettings.ShadowSecure extends Object
Constructor | Description |
---|---|
ShadowSecure() |
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 |
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) |
|
protected static void |
setLocationProviderEnabled(ContentResolver cr,
String provider,
boolean enabled) |
|
protected static boolean |
setLocationProviderEnabledForUser(ContentResolver cr,
String provider,
boolean enabled,
int uid) |
@Implementation(minSdk=17, maxSdk=28) protected static boolean setLocationProviderEnabledForUser(ContentResolver cr, String provider, boolean enabled, int uid)
@Implementation(maxSdk=16) protected static void setLocationProviderEnabled(ContentResolver cr, String provider, boolean enabled)
@Implementation protected static boolean putInt(ContentResolver cr, String name, int value)
@Implementation(minSdk=21) protected static boolean putIntForUser(ContentResolver cr, String name, int value, int userHandle)
@Implementation protected static int getInt(ContentResolver cr, String name) throws Settings.SettingNotFoundException
@Implementation protected static int getInt(ContentResolver cr, String name, int def)
@Implementation protected static boolean putString(ContentResolver cr, String name, String value)
@Implementation protected static String getString(ContentResolver cr, String name)
@Implementation(minSdk=17) protected static String getStringForUser(ContentResolver cr, String name, int userHandle)
@Implementation protected static boolean putLong(ContentResolver cr, String name, long value)
@Implementation protected static long getLong(ContentResolver cr, String name, long def)
@Implementation protected static long getLong(ContentResolver cr, String name) throws Settings.SettingNotFoundException
@Implementation protected static boolean putFloat(ContentResolver cr, String name, float value)
@Implementation protected static float getFloat(ContentResolver cr, String name, float def)
@Implementation protected static float getFloat(ContentResolver cr, String name) throws Settings.SettingNotFoundException