Package org.robolectric.shadows
Class ShadowImsMmTelManager
- java.lang.Object
-
- org.robolectric.shadows.ShadowImsMmTelManager
-
@Implements(value=android.telephony.ims.ImsMmTelManager.class, minSdk=29, looseSignatures=true, isInAndroidSdk=false) public class ShadowImsMmTelManager extends Object
Supports IMS by default. IMS unregistered by default.
-
-
Field Summary
Fields Modifier and Type Field Description protected static Map<Integer,ImsMmTelManager>
existingInstances
-
Constructor Summary
Constructors Constructor Description ShadowImsMmTelManager()
-
Method Summary
-
-
-
Field Detail
-
existingInstances
protected static final Map<Integer,ImsMmTelManager> existingInstances
-
-
Method Detail
-
__constructor__
@Implementation(maxSdk=30) protected void __constructor__(int subId)
-
setImsAvailableOnDevice
public void setImsAvailableOnDevice(boolean imsAvailableOnDevice)
Sets whether IMS is available on the device. Setting this to false will causeImsException
to be thrown whenever methods requiring IMS support are invoked includingregisterImsRegistrationCallback(Executor, RegistrationCallback)
andregisterMmTelCapabilityCallback(Executor, CapabilityCallback)
.
-
registerImsRegistrationCallback
@Implementation protected void registerImsRegistrationCallback(@NonNull Executor executor, @NonNull ImsMmTelManager.RegistrationCallback c) throws ImsException
- Throws:
ImsException
-
unregisterImsRegistrationCallback
@Implementation protected void unregisterImsRegistrationCallback(@NonNull ImsMmTelManager.RegistrationCallback c)
-
setImsRegistering
public void setImsRegistering(int imsRegistrationTech)
TriggersImsMmTelManager.RegistrationCallback.onRegistering(int)
for all registeredImsMmTelManager.RegistrationCallback
callbacks.
-
setImsRegistered
public void setImsRegistered(int imsRegistrationTech)
TriggersImsMmTelManager.RegistrationCallback.onRegistered(int)
for all registeredImsMmTelManager.RegistrationCallback
callbacks.
-
setImsUnregistered
public void setImsUnregistered(@NonNull ImsReasonInfo imsReasonInfo)
TriggersImsMmTelManager.RegistrationCallback.onUnregistered(ImsReasonInfo)
for all registeredImsMmTelManager.RegistrationCallback
callbacks.
-
registerMmTelCapabilityCallback
@Implementation protected void registerMmTelCapabilityCallback(@NonNull Executor executor, @NonNull ImsMmTelManager.CapabilityCallback c) throws ImsException
- Throws:
ImsException
-
unregisterMmTelCapabilityCallback
@Implementation protected void unregisterMmTelCapabilityCallback(@NonNull ImsMmTelManager.CapabilityCallback c)
-
isAvailable
@Implementation protected boolean isAvailable(int capability, int imsRegTech)
-
setMmTelCapabilitiesAvailable
public void setMmTelCapabilitiesAvailable(@NonNull MmTelFeature.MmTelCapabilities capabilities)
Sets the availableMmTelFeature.MmTelCapabilities
. Only invokesImsMmTelManager.CapabilityCallback.onCapabilitiesStatusChanged(MmTelCapabilities)
if IMS has been registered usingsetImsUnregistered(ImsReasonInfo)
.
-
getSubscriptionId
public int getSubscriptionId()
Get subscription id
-
createForSubscriptionId
@Implementation protected static ImsMmTelManager createForSubscriptionId(int subId)
Returns only one instance per subscription id.
-
clearExistingInstances
@Resetter public static void clearExistingInstances()
-
-