Package org.robolectric.shadows
Class ShadowSettings.ShadowConfig
java.lang.Object
org.robolectric.shadows.ShadowSettings.ShadowConfig
- Enclosing class:
- ShadowSettings
@Implements(value=android.provider.Settings.Config.class,
isInAndroidSdk=false,
minSdk=29)
public static class ShadowSettings.ShadowConfig
extends Object
Shadow for
Settings.Config
.
This shadow is primarily to support DeviceConfig
, which queries
Settings.Config
. DeviceConfig
is pure Java code so it's not
necessary to shadow that directly.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static boolean
deleteString
(ContentResolver resolver, String namespace, String name) protected static boolean
deleteString
(String namespace, String name) protected static String
getString
(ContentResolver cr, String name) protected static String
getStrings
(ContentResolver resolver, String namespace, List<String> names) protected static boolean
putString
(ContentResolver cr, String name, String value, boolean makeDefault) protected static boolean
putString
(ContentResolver cr, String namespace, String name, String value, boolean makeDefault) protected static boolean
static void
reset()
protected static boolean
setStrings
(ContentResolver cr, String namespace, Map<String, String> keyValues)
-
Constructor Details
-
ShadowConfig
public ShadowConfig()
-
-
Method Details
-
putString
@Implementation(maxSdk=29) protected static boolean putString(ContentResolver cr, String name, String value, boolean makeDefault) -
putString
@Implementation(minSdk=30, maxSdk=33) protected static boolean putString(ContentResolver cr, String namespace, String name, String value, boolean makeDefault) -
putString
@Implementation(minSdk=34) protected static boolean putString(String namespace, String name, String value, boolean makeDefault) -
getString
-
getString
-
getStrings
@Implementation(minSdk=30) protected static Map<String,String> getStrings(ContentResolver resolver, String namespace, List<String> names) -
setStrings
@Implementation(minSdk=30) protected static boolean setStrings(ContentResolver cr, String namespace, Map<String, String> keyValues) -
deleteString
-
deleteString
@Implementation(minSdk=33, maxSdk=33) protected static boolean deleteString(ContentResolver resolver, String namespace, String name) -
reset
-