Package org.robolectric.shadows
Class ShadowVcnManager
- java.lang.Object
-
- org.robolectric.shadows.ShadowVcnManager
-
@Implements(value=android.net.vcn.VcnManager.class, minSdk=31, isInAndroidSdk=false) public class ShadowVcnManager extends Object
A Shadow for android.net.vcn.VcnManager added in Android S.
-
-
Constructor Summary
Constructors Constructor Description ShadowVcnManager()
-
Method Summary
-
-
-
Method Detail
-
registerVcnStatusCallback
@Implementation protected void registerVcnStatusCallback(ParcelUuid subGroup, Executor executor, VcnManager.VcnStatusCallback callback)
-
unregisterVcnStatusCallback
@Implementation protected void unregisterVcnStatusCallback(VcnManager.VcnStatusCallback callback)
-
setVcnConfig
@Implementation protected void setVcnConfig(ParcelUuid subGroup, VcnConfig config)
-
clearVcnConfig
@Implementation protected void clearVcnConfig(ParcelUuid subGroup)
-
getConfiguredSubscriptionGroups
@Implementation protected List<ParcelUuid> getConfiguredSubscriptionGroups()
-
getRegisteredVcnStatusCallbacks
public Set<VcnManager.VcnStatusCallback> getRegisteredVcnStatusCallbacks()
Gets a list of all registered VcnStatusCallbacks.
-
setStatus
public void setStatus(int statusCode)
Set the vcn status code (seecurrentVcnStatus
). TriggersVcnManager.VcnStatusCallback.onStatusChanged(int)
of all registeredcallbacks
-
setGatewayConnectionError
public void setGatewayConnectionError(String gatewayConnectionName, int errorCode, Throwable detail)
Triggers onGatewayConnectionError of VcnStatusCallbackVcnManager.VcnStatusCallback.onGatewayConnectionError(java.lang.String, int, java.lang.Throwable)
).
-
getRegisteredSubscriptionGroup
public ParcelUuid getRegisteredSubscriptionGroup(VcnManager.VcnStatusCallback callback)
Gets the subscription group of given VcnStatusCallback incallbacks
.
-
-