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
Modifier and Type Method Description protected void
clearVcnConfig(ParcelUuid subGroup)
protected List<ParcelUuid>
getConfiguredSubscriptionGroups()
ParcelUuid
getRegisteredSubscriptionGroup(VcnManager.VcnStatusCallback callback)
Gets the subscription group of given VcnStatusCallback incallbacks
.Set<VcnManager.VcnStatusCallback>
getRegisteredVcnStatusCallbacks()
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
unregisterVcnStatusCallback(VcnManager.VcnStatusCallback callback)
-
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
.
-