Home
last modified time | relevance | path

Searched refs:IpSecTransform (Results 1 – 16 of 16) sorted by relevance

/frameworks/base/tests/net/java/android/net/
DIpSecTransformTest.java41 IpSecTransform preModification = new IpSecTransform(null, config); in testCreateTransformCopiesConfig()
44 IpSecTransform postModification = new IpSecTransform(null, config); in testCreateTransformCopiesConfig()
57 IpSecTransform config1 = new IpSecTransform(null, config); in testCreateTransformsWithSameConfigEqual()
58 IpSecTransform config2 = new IpSecTransform(null, config); in testCreateTransformsWithSameConfigEqual()
DIpSecConfigTest.java40 assertEquals(IpSecTransform.MODE_TRANSPORT, c.getMode()); in testDefaults()
44 assertEquals(IpSecTransform.ENCAP_NONE, c.getEncapType()); in testDefaults()
56 c.setMode(IpSecTransform.MODE_TUNNEL); in getSampleConfig()
DIpSecManagerTest.java204 IpSecTransform dummyTransform = new IpSecTransform(null, dummyConfig); in testApplyTransportModeTransformEnsuresSocketCreation()
/frameworks/base/core/java/android/net/
DIpSecTransform.java57 public final class IpSecTransform implements AutoCloseable { class
92 public IpSecTransform(Context context, IpSecConfig config) { in IpSecTransform() method in IpSecTransform
130 private IpSecTransform activate() in activate()
158 if (!(other instanceof IpSecTransform)) return false; in equals()
159 final IpSecTransform rhs = (IpSecTransform) other; in equals()
359 public IpSecTransform.Builder setEncryption(@NonNull IpSecAlgorithm algo) { in setEncryption()
374 public IpSecTransform.Builder setAuthentication(@NonNull IpSecAlgorithm algo) { in setAuthentication()
395 public IpSecTransform.Builder setAuthenticatedEncryption(@NonNull IpSecAlgorithm algo) { in setAuthenticatedEncryption()
415 public IpSecTransform.Builder setIpv4Encapsulation( in setIpv4Encapsulation()
449 public IpSecTransform buildTransportModeTransform( in buildTransportModeTransform()
[all …]
DIpSecManager.java360 @PolicyDirection int direction, @NonNull IpSecTransform transform) throws IOException { in applyTransportModeTransform()
397 @PolicyDirection int direction, @NonNull IpSecTransform transform) throws IOException { in applyTransportModeTransform()
444 @PolicyDirection int direction, @NonNull IpSecTransform transform) throws IOException { in applyTransportModeTransform()
529 public void removeTunnelModeTransform(Network net, IpSecTransform transform) {} in removeTunnelModeTransform()
921 @PolicyDirection int direction, @NonNull IpSecTransform transform) throws IOException { in applyTunnelModeTransform()
DIpSecConfig.java34 private int mMode = IpSecTransform.MODE_TRANSPORT;
62 private int mEncapType = IpSecTransform.ENCAP_NONE;
292 .append(mMode == IpSecTransform.MODE_TUNNEL ? "TUNNEL" : "TRANSPORT") in toString()
/frameworks/base/services/core/java/com/android/server/
DIpSecService.java38 import android.net.IpSecTransform;
1487 case IpSecTransform.ENCAP_NONE: in checkIpSecConfig()
1489 case IpSecTransform.ENCAP_ESPINUDP: in checkIpSecConfig()
1490 case IpSecTransform.ENCAP_ESPINUDP_NON_IKE: in checkIpSecConfig()
1547 if (config.getEncapType() != IpSecTransform.ENCAP_NONE && sourceFamily != AF_INET) { in checkIpSecConfig()
1553 case IpSecTransform.MODE_TRANSPORT: in checkIpSecConfig()
1555 case IpSecTransform.MODE_TUNNEL: in checkIpSecConfig()
1592 if (encapType != IpSecTransform.ENCAP_NONE) { in createOrUpdateTransform()
1644 if (c.getMode() == IpSecTransform.MODE_TUNNEL) { in createTransform()
1659 if (c.getEncapType() != IpSecTransform.ENCAP_NONE) { in createTransform()
[all …]
/frameworks/base/tests/net/java/com/android/server/
DIpSecServiceParameterizedTest.java41 import android.net.IpSecTransform;
293 config.setEncapType(IpSecTransform.ENCAP_ESPINUDP); in addEncapSocketToIpSecConfig()
366 ipSecConfig.setMode(IpSecTransform.MODE_TRANSPORT); in testCreateTransportModeTransformWithEncap()
392 ipSecConfig.setMode(IpSecTransform.MODE_TUNNEL); in testCreateTunnelModeTransformWithEncap()
716 ipSecConfig.setMode(IpSecTransform.MODE_TUNNEL); in verifyApplyTunnelModeTransformCommon()
756 ipSecConfig.setMode(IpSecTransform.MODE_TUNNEL); in testApplyTunnelModeTransformWithClosedSpi()
/frameworks/base/services/core/java/com/android/server/connectivity/
DVpnIkev2Utils.java41 import android.net.IpSecTransform;
319 public void onIpSecTransformCreated(@NonNull IpSecTransform transform, int direction) { in onIpSecTransformCreated()
325 public void onIpSecTransformDeleted(@NonNull IpSecTransform transform, int direction) { in onIpSecTransformDeleted()
DVpn.java56 import android.net.IpSecTransform;
2168 @NonNull Network network, @NonNull IpSecTransform transform, int direction);
2339 @NonNull Network network, @NonNull IpSecTransform transform, int direction) {
/frameworks/base/non-updatable-api/
Dsystem-lint-baseline.txt6 BuilderSetStyle: android.net.IpSecTransform.Builder#buildTunnelModeTransform(java.net.InetAddress, …
7 …hould use setFoo() / addFoo() / clearFoo() style: method android.net.IpSecTransform.Builder.buildT…
Dsystem-current.txt4433 …oid.net.IpSecManager.IpSecTunnelInterface, int, @NonNull android.net.IpSecTransform) throws java.i…
4444 public static class IpSecTransform.Builder {
4445 …android.Manifest.permission.MANAGE_IPSEC_TUNNELS) public android.net.IpSecTransform buildTunnelMod…
Dcurrent.txt28833 …ortModeTransform(@NonNull java.net.Socket, int, @NonNull android.net.IpSecTransform) throws java.i…
28834 …ransform(@NonNull java.net.DatagramSocket, int, @NonNull android.net.IpSecTransform) throws java.i…
28835 …Transform(@NonNull java.io.FileDescriptor, int, @NonNull android.net.IpSecTransform) throws java.i…
28863 public final class IpSecTransform implements java.lang.AutoCloseable {
28867 public static class IpSecTransform.Builder {
28868 ctor public IpSecTransform.Builder(@NonNull android.content.Context);
28869 …method @NonNull public android.net.IpSecTransform buildTransportModeTransform(@NonNull java.net.In…
28870 …method @NonNull public android.net.IpSecTransform.Builder setAuthenticatedEncryption(@NonNull andr…
28871 …method @NonNull public android.net.IpSecTransform.Builder setAuthentication(@NonNull android.net.I…
28872 …method @NonNull public android.net.IpSecTransform.Builder setEncryption(@NonNull android.net.IpSec…
[all …]
/frameworks/base/api/
Dsystem-current.txt4433 …oid.net.IpSecManager.IpSecTunnelInterface, int, @NonNull android.net.IpSecTransform) throws java.i…
4444 public static class IpSecTransform.Builder {
4445 …android.Manifest.permission.MANAGE_IPSEC_TUNNELS) public android.net.IpSecTransform buildTunnelMod…
Dcurrent.txt28963 …ortModeTransform(@NonNull java.net.Socket, int, @NonNull android.net.IpSecTransform) throws java.i…
28964 …ransform(@NonNull java.net.DatagramSocket, int, @NonNull android.net.IpSecTransform) throws java.i…
28965 …Transform(@NonNull java.io.FileDescriptor, int, @NonNull android.net.IpSecTransform) throws java.i…
28993 public final class IpSecTransform implements java.lang.AutoCloseable {
28997 public static class IpSecTransform.Builder {
28998 ctor public IpSecTransform.Builder(@NonNull android.content.Context);
28999 …method @NonNull public android.net.IpSecTransform buildTransportModeTransform(@NonNull java.net.In…
29000 …method @NonNull public android.net.IpSecTransform.Builder setAuthenticatedEncryption(@NonNull andr…
29001 …method @NonNull public android.net.IpSecTransform.Builder setAuthentication(@NonNull android.net.I…
29002 …method @NonNull public android.net.IpSecTransform.Builder setEncryption(@NonNull android.net.IpSec…
[all …]
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt43682 …yTunnelModeTransform(Landroid/net/IpSecManager$IpSecTunnelInterface;ILandroid/net/IpSecTransform;)V
43688 …id/net/IpSecManager;->removeTunnelModeTransform(Landroid/net/Network;Landroid/net/IpSecTransform;)V
43700 …t/IpSecTransform$Builder;->buildTunnelModeTransform(Ljava/net/InetAddress;Landroid/net/IpSecManage…
43701 Landroid/net/IpSecTransform$Builder;->mConfig:Landroid/net/IpSecConfig;
43702 Landroid/net/IpSecTransform$Builder;->mContext:Landroid/content/Context;
43703 Landroid/net/IpSecTransform$NattKeepaliveCallback;-><init>()V
43704 Landroid/net/IpSecTransform$NattKeepaliveCallback;->ERROR_HARDWARE_ERROR:I
43705 Landroid/net/IpSecTransform$NattKeepaliveCallback;->ERROR_HARDWARE_UNSUPPORTED:I
43706 Landroid/net/IpSecTransform$NattKeepaliveCallback;->ERROR_INVALID_NETWORK:I
43707 Landroid/net/IpSecTransform$NattKeepaliveCallback;->onError(I)V
[all …]