Home
last modified time | relevance | path

Searched refs:VpnTransportInfo (Results 1 – 10 of 10) sorted by relevance

/packages/modules/Connectivity/tests/common/java/android/net/
DVpnTransportInfoTest.java52 final VpnTransportInfo v = new VpnTransportInfo(VpnManager.TYPE_VPN_PLATFORM, "12345"); in testParceling()
55 final VpnTransportInfo v2 = in testParceling()
56 new VpnTransportInfo(VpnManager.TYPE_VPN_PLATFORM, "12345", true, true); in testParceling()
64 final VpnTransportInfo v11 = new VpnTransportInfo(VpnManager.TYPE_VPN_PLATFORM, session1); in testEqualsAndHashCode()
65 final VpnTransportInfo v12 = new VpnTransportInfo(VpnManager.TYPE_VPN_SERVICE, session1); in testEqualsAndHashCode()
66 final VpnTransportInfo v13 = new VpnTransportInfo(VpnManager.TYPE_VPN_PLATFORM, session1); in testEqualsAndHashCode()
67 final VpnTransportInfo v14 = new VpnTransportInfo(VpnManager.TYPE_VPN_LEGACY, session1); in testEqualsAndHashCode()
68 final VpnTransportInfo v15 = new VpnTransportInfo(VpnManager.TYPE_VPN_OEM, session1); in testEqualsAndHashCode()
69 final VpnTransportInfo v16 = new VpnTransportInfo( in testEqualsAndHashCode()
71 final VpnTransportInfo v17 = new VpnTransportInfo( in testEqualsAndHashCode()
[all …]
/packages/modules/Connectivity/framework/src/android/net/
DVpnTransportInfo.java46 public final class VpnTransportInfo implements TransportInfo, Parcelable { class
73 public VpnTransportInfo makeCopy(@RedactionType long redactions) { in makeCopy()
74 return new VpnTransportInfo(mType, in makeCopy()
85 public VpnTransportInfo(int type, @Nullable String sessionId) { in VpnTransportInfo() method in VpnTransportInfo
99 public VpnTransportInfo(int type, @Nullable String sessionId, boolean bypassable, in VpnTransportInfo() method in VpnTransportInfo
172 if (!(o instanceof VpnTransportInfo)) return false; in equals()
174 VpnTransportInfo that = (VpnTransportInfo) o; in equals()
206 public static final @NonNull Creator<VpnTransportInfo> CREATOR =
207 new Creator<VpnTransportInfo>() {
208 public VpnTransportInfo createFromParcel(Parcel in) {
[all …]
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DNetworkScoreTest.kt29 import android.net.VpnTransportInfo in <lambda>()
140 setTransportInfo(VpnTransportInfo(VpnManager.TYPE_VPN_SERVICE, null)) in <lambda>()
DNetworkAgentTest.kt77 import android.net.VpnTransportInfo in <lambda>()
920 setTransportInfo(VpnTransportInfo(VpnManager.TYPE_VPN_SERVICE, mySessionId)) in testSetUnderlyingNetworksAndVpnSpecifier()
940 (vpnNc.transportInfo as VpnTransportInfo).type) in testSetUnderlyingNetworksAndVpnSpecifier()
941 assertEquals(mySessionId, (vpnNc.transportInfo as VpnTransportInfo).sessionId) in testSetUnderlyingNetworksAndVpnSpecifier()
1703 it.setTransportInfo(VpnTransportInfo(VpnManager.TYPE_VPN_PLATFORM, sessionId, in doTestNativeNetworkCreation()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivityservice/
DCSIngressDiscardRuleTests.kt30 import android.net.VpnTransportInfo
57 VpnTransportInfo( in vpnNc()
/packages/modules/Connectivity/framework/api/
Dmodule-lib-current.txt241 public final class VpnTransportInfo implements android.os.Parcelable android.net.TransportInfo {
242 ctor @Deprecated public VpnTransportInfo(int, @Nullable String);
245 method @NonNull public android.net.VpnTransportInfo makeCopy(long);
Dsystem-current.txt516 public final class VpnTransportInfo implements android.os.Parcelable android.net.TransportInfo {
517 ctor public VpnTransportInfo(int, @Nullable String, boolean, boolean);
523 …field @NonNull public static final android.os.Parcelable.Creator<android.net.VpnTransportInfo> CRE…
/packages/modules/Connectivity/tests/cts/hostside/app/src/com/android/cts/net/hostside/
DVpnTest.java94 import android.net.VpnTransportInfo;
1714 assertTrue(ti instanceof VpnTransportInfo); in maybeExpectVpnTransportInfo()
1715 assertEquals(VpnManager.TYPE_VPN_SERVICE, ((VpnTransportInfo) ti).getType()); in maybeExpectVpnTransportInfo()
/packages/modules/Connectivity/service/src/com/android/server/
DConnectivityService.java240 import android.net.VpnTransportInfo;
11950 if (!(ti instanceof VpnTransportInfo)) return VpnManager.TYPE_VPN_NONE;
11951 return ((VpnTransportInfo) ti).getType();
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DConnectivityServiceTest.java345 import android.net.VpnTransportInfo;
1533 .setTransportInfo(new VpnTransportInfo(
1579 mNetworkCapabilities.setTransportInfo(new VpnTransportInfo(getActiveVpnType(), in registerAgent()
1720 ti instanceof VpnTransportInfo); in assertVpnTransportInfo()
1721 assertEquals(type, ((VpnTransportInfo) ti).getType()); in assertVpnTransportInfo()