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
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
clearVcnConfig
(ParcelUuid subGroup) protected List<ParcelUuid>
Gets the subscription group of given VcnStatusCallback incallbacks
.Gets a list of all registered VcnStatusCallbacks.protected void
registerVcnStatusCallback
(ParcelUuid subGroup, Executor executor, VcnManager.VcnStatusCallback callback) void
setGatewayConnectionError
(String gatewayConnectionName, int errorCode, Throwable detail) Triggers onGatewayConnectionError of VcnStatusCallbackVcnManager.VcnStatusCallback.onGatewayConnectionError(java.lang.String, int, java.lang.Throwable)
).void
setStatus
(int statusCode) Set the vcn status code (seecurrentVcnStatus
).protected void
setVcnConfig
(ParcelUuid subGroup, VcnConfig config) protected void
-
Constructor Details
-
ShadowVcnManager
public ShadowVcnManager()
-
-
Method Details
-
registerVcnStatusCallback
@Implementation protected void registerVcnStatusCallback(ParcelUuid subGroup, Executor executor, VcnManager.VcnStatusCallback callback) -
unregisterVcnStatusCallback
-
setVcnConfig
-
clearVcnConfig
-
getConfiguredSubscriptionGroups
-
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
Gets the subscription group of given VcnStatusCallback incallbacks
.
-