Package org.robolectric.shadows
Class ShadowCarrierConfigManager
java.lang.Object
org.robolectric.shadows.ShadowCarrierConfigManager
@Implements(value=android.telephony.CarrierConfigManager.class, minSdk=23) public class ShadowCarrierConfigManager extends Object
-
Constructor Summary
Constructors Constructor Description ShadowCarrierConfigManager()
-
Method Summary
Modifier and Type Method Description protected PersistableBundle
getConfigForSubId(int subId)
ReturnsPersistableBundle
previously set by#setConfigForSubId(int)
, or default values for an invalidsubId
.void
setConfigForSubId(int subId, PersistableBundle config)
Sets that theconfig
PersistableBundle for a particularsubId
; controls the return value ofCarrierConfigManager#getConfigForSubId()
.
-
Constructor Details
-
ShadowCarrierConfigManager
public ShadowCarrierConfigManager()
-
-
Method Details
-
getConfigForSubId
ReturnsPersistableBundle
previously set by#setConfigForSubId(int)
, or default values for an invalidsubId
. -
setConfigForSubId
Sets that theconfig
PersistableBundle for a particularsubId
; controls the return value ofCarrierConfigManager#getConfigForSubId()
.
-