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
Modifier and Type Method Description protected void
__constructor__(int subId)
static void
clearExistingInstances()
protected static ImsMmTelManager
createForSubscriptionId(int subId)
Returns only one instance per subscription id.int
getSubscriptionId()
Get subscription idprotected boolean
isAvailable(int capability, int imsRegTech)
protected void
registerImsRegistrationCallback(Executor executor, ImsMmTelManager.RegistrationCallback c)
protected void
registerImsRegistrationCallback(Executor executor, RegistrationManager.RegistrationCallback c)
protected void
registerMmTelCapabilityCallback(Executor executor, ImsMmTelManager.CapabilityCallback c)
void
setImsAvailableOnDevice(boolean imsAvailableOnDevice)
Sets whether IMS is available on the device.void
setImsRegistered(int imsRegistrationTech)
TriggersRegistrationCallback#onRegistered(int)
for all registeredRegistrationCallback
callbacks.void
setImsRegistered(ImsRegistrationAttributes attrs)
void
setImsRegistering(int imsRegistrationTech)
TriggersRegistrationCallback#onRegistering(int)
for all registeredRegistrationCallback
callbacks.void
setImsRegistering(ImsRegistrationAttributes attrs)
void
setImsUnregistered(ImsReasonInfo imsReasonInfo)
TriggersRegistrationCallback#onUnregistered(ImsReasonInfo)
for all registeredRegistrationCallback
callbacks.void
setMmTelCapabilitiesAvailable(MmTelFeature.MmTelCapabilities capabilities)
Sets the availableMmTelFeature.MmTelCapabilities
.void
setOnTechnologyChangeFailed(int imsRadioTech, ImsReasonInfo imsReasonInfo)
TriggersRegistrationCallback#onTechnologyChangeFailed(int, ImsReasonInfo)
for all registeredRegistrationCallback
callbacks.protected void
unregisterImsRegistrationCallback(ImsMmTelManager.RegistrationCallback c)
protected void
unregisterImsRegistrationCallback(RegistrationManager.RegistrationCallback c)
protected void
unregisterMmTelCapabilityCallback(ImsMmTelManager.CapabilityCallback c)
-
Field Details
-
Constructor Details
-
ShadowImsMmTelManager
public ShadowImsMmTelManager()
-
-
Method Details
-
__constructor__
-
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
-
registerImsRegistrationCallback
@Implementation(minSdk=30) protected void registerImsRegistrationCallback(@NonNull Executor executor, @NonNull RegistrationManager.RegistrationCallback c) throws ImsException- Throws:
ImsException
-
unregisterImsRegistrationCallback
@Implementation protected void unregisterImsRegistrationCallback(@NonNull ImsMmTelManager.RegistrationCallback c) -
unregisterImsRegistrationCallback
@Implementation(minSdk=30) protected void unregisterImsRegistrationCallback(@NonNull RegistrationManager.RegistrationCallback c) -
setImsRegistering
public void setImsRegistering(int imsRegistrationTech)TriggersRegistrationCallback#onRegistering(int)
for all registeredRegistrationCallback
callbacks. -
setImsRegistering
-
setImsRegistered
public void setImsRegistered(int imsRegistrationTech)TriggersRegistrationCallback#onRegistered(int)
for all registeredRegistrationCallback
callbacks. -
setImsRegistered
-
setImsUnregistered
TriggersRegistrationCallback#onUnregistered(ImsReasonInfo)
for all registeredRegistrationCallback
callbacks. -
setOnTechnologyChangeFailed
TriggersRegistrationCallback#onTechnologyChangeFailed(int, ImsReasonInfo)
for all registeredRegistrationCallback
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
-
setMmTelCapabilitiesAvailable
Sets the availableMmTelFeature.MmTelCapabilities
. Only invokesImsMmTelManager.CapabilityCallback.onCapabilitiesStatusChanged(MmTelCapabilities)
if IMS has been registered usingsetImsUnregistered(ImsReasonInfo)
. -
getSubscriptionId
public int getSubscriptionId()Get subscription id -
createForSubscriptionId
Returns only one instance per subscription id. -
clearExistingInstances
-