Class ShadowCarrierConfigManager


  • @Implements(value=android.telephony.CarrierConfigManager.class,
                minSdk=23)
    public class ShadowCarrierConfigManager
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected android.os.PersistableBundle getConfigForSubId​(int subId)
      Returns PersistableBundle previously set by #setConfigForSubId(int), or default values for an invalid subId.
      void setConfigForSubId​(int subId, android.os.PersistableBundle config)
      Sets that the config PersistableBundle for a particular subId; controls the return value of CarrierConfigManager#getConfigForSubId().
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ShadowCarrierConfigManager

        public ShadowCarrierConfigManager()
    • Method Detail

      • getConfigForSubId

        @Implementation
        protected android.os.PersistableBundle getConfigForSubId​(int subId)
        Returns PersistableBundle previously set by #setConfigForSubId(int), or default values for an invalid subId.
      • setConfigForSubId

        public void setConfigForSubId​(int subId,
                                      android.os.PersistableBundle config)
        Sets that the config PersistableBundle for a particular subId; controls the return value of CarrierConfigManager#getConfigForSubId().