Home
last modified time | relevance | path

Searched refs:IkeTrafficSelector (Results 1 – 14 of 14) sorted by relevance

/packages/modules/IPsec/tests/iketests/src/java/android/net/ipsec/ike/
DIkeTrafficSelectorTest.java69 private IkeTrafficSelector mTsOne;
70 private IkeTrafficSelector mTsTwo;
71 private IkeTrafficSelector mTsIpv6Three;
75 new IkeTrafficSelector( in IkeTrafficSelectorTest()
76 IkeTrafficSelector.TRAFFIC_SELECTOR_TYPE_IPV4_ADDR_RANGE, in IkeTrafficSelectorTest()
82 new IkeTrafficSelector( in IkeTrafficSelectorTest()
83 IkeTrafficSelector.TRAFFIC_SELECTOR_TYPE_IPV4_ADDR_RANGE, in IkeTrafficSelectorTest()
89 new IkeTrafficSelector( in IkeTrafficSelectorTest()
90 IkeTrafficSelector.TRAFFIC_SELECTOR_TYPE_IPV6_ADDR_RANGE, in IkeTrafficSelectorTest()
103 IkeTrafficSelector[] selectors = in testDecodeIkeTrafficSelectors()
[all …]
DChildSessionParamsTest.java52 new IkeTrafficSelector[] {getExpectedDefaultIpv4Ts(), getExpectedDefaultIpv6Ts()}, in testBuild()
55 new IkeTrafficSelector[] {getExpectedDefaultIpv4Ts(), getExpectedDefaultIpv6Ts()}, in testBuild()
62 IkeTrafficSelector tsInbound = in testBuildTrafficSelectors()
63 new IkeTrafficSelector( in testBuildTrafficSelectors()
68 IkeTrafficSelector tsOutbound = in testBuildTrafficSelectors()
69 new IkeTrafficSelector( in testBuildTrafficSelectors()
96 private IkeTrafficSelector getExpectedDefaultIpv4Ts() { in getExpectedDefaultIpv4Ts()
100 return new IkeTrafficSelector(0, 65535, tsStartAddress, tsEndAddress); in getExpectedDefaultIpv4Ts()
103 private IkeTrafficSelector getExpectedDefaultIpv6Ts() { in getExpectedDefaultIpv6Ts()
108 return new IkeTrafficSelector(0, 65535, tsStartAddress, tsEndAddress); in getExpectedDefaultIpv6Ts()
DChildSessionConfigurationTest.java81 mMockInTsList = new LinkedList<IkeTrafficSelector>(); in setUp()
82 mMockInTsList.add(mock(IkeTrafficSelector.class)); in setUp()
84 mMockOutTsList = new LinkedList<IkeTrafficSelector>(); in setUp()
85 mMockOutTsList.add(mock(IkeTrafficSelector.class)); in setUp()
86 mMockOutTsList.add(mock(IkeTrafficSelector.class)); in setUp()
109 List<IkeTrafficSelector> expectedList, List<IkeTrafficSelector> tsList) { in verifyTsList()
/packages/modules/IPsec/src/java/android/net/ipsec/ike/
DChildSessionParams.java70 @NonNull private static final IkeTrafficSelector DEFAULT_TRAFFIC_SELECTOR_IPV4;
71 @NonNull private static final IkeTrafficSelector DEFAULT_TRAFFIC_SELECTOR_IPV6;
76 IkeTrafficSelector.TRAFFIC_SELECTOR_TYPE_IPV4_ADDR_RANGE);
79 IkeTrafficSelector.TRAFFIC_SELECTOR_TYPE_IPV6_ADDR_RANGE);
82 @NonNull private final IkeTrafficSelector[] mInboundTrafficSelectors;
83 @NonNull private final IkeTrafficSelector[] mOutboundTrafficSelectors;
93 IkeTrafficSelector[] inboundTs, in ChildSessionParams()
94 IkeTrafficSelector[] outboundTs, in ChildSessionParams()
116 public List<IkeTrafficSelector> getInboundTrafficSelectors() { in getInboundTrafficSelectors()
129 public List<IkeTrafficSelector> getOutboundTrafficSelectors() { in getOutboundTrafficSelectors()
[all …]
DIkeTrafficSelector.java50 public final class IkeTrafficSelector { class
121 private IkeTrafficSelector( in IkeTrafficSelector() method in IkeTrafficSelector
151 public IkeTrafficSelector( in IkeTrafficSelector() method in IkeTrafficSelector
176 public IkeTrafficSelector( in IkeTrafficSelector() method in IkeTrafficSelector
236 public static IkeTrafficSelector[] decodeIkeTrafficSelectors(int numTs, byte[] tsBytes) in decodeIkeTrafficSelectors()
238 IkeTrafficSelector[] tsArray = new IkeTrafficSelector[numTs]; in decodeIkeTrafficSelectors()
273 private static IkeTrafficSelector decodeTrafficSelector(ByteBuffer inputBuffer, int tsType) in decodeTrafficSelector()
321 return new IkeTrafficSelector( in decodeTrafficSelector()
371 public boolean contains(IkeTrafficSelector ts) { in contains()
399 if (!(o instanceof IkeTrafficSelector)) return false; in equals()
[all …]
DTransportModeChildSessionParams.java34 IkeTrafficSelector[] inboundTs, in TransportModeChildSessionParams()
35 IkeTrafficSelector[] outboundTs, in TransportModeChildSessionParams()
84 public Builder addInboundTrafficSelectors(@NonNull IkeTrafficSelector trafficSelector) { in addInboundTrafficSelectors()
105 public Builder addOutboundTrafficSelectors(@NonNull IkeTrafficSelector trafficSelector) { in addOutboundTrafficSelectors()
151 mInboundTsList.toArray(new IkeTrafficSelector[0]), in build()
152 mOutboundTsList.toArray(new IkeTrafficSelector[0]), in build()
DChildSessionConfiguration.java60 private final List<IkeTrafficSelector> mInboundTs;
61 private final List<IkeTrafficSelector> mOutboundTs;
76 List<IkeTrafficSelector> inTs, in ChildSessionConfiguration()
77 List<IkeTrafficSelector> outTs, in ChildSessionConfiguration()
150 List<IkeTrafficSelector> inTs, List<IkeTrafficSelector> outTs) { in ChildSessionConfiguration()
170 public List<IkeTrafficSelector> getInboundTrafficSelectors() { in getInboundTrafficSelectors()
185 public List<IkeTrafficSelector> getOutboundTrafficSelectors() { in getOutboundTrafficSelectors()
DTunnelModeChildSessionParams.java56 @NonNull IkeTrafficSelector[] inboundTs, in TunnelModeChildSessionParams()
57 @NonNull IkeTrafficSelector[] outboundTs, in TunnelModeChildSessionParams()
172 public Builder addInboundTrafficSelectors(@NonNull IkeTrafficSelector trafficSelector) { in addInboundTrafficSelectors()
193 public Builder addOutboundTrafficSelectors(@NonNull IkeTrafficSelector trafficSelector) { in addOutboundTrafficSelectors()
391 mInboundTsList.toArray(new IkeTrafficSelector[0]), in build()
392 mOutboundTsList.toArray(new IkeTrafficSelector[0]), in build()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/
DIkeTsPayloadTest.java25 import android.net.ipsec.ike.IkeTrafficSelector;
54 private IkeTrafficSelector mTsOne;
55 private IkeTrafficSelector mTsTwo;
59 new IkeTrafficSelector( in IkeTsPayloadTest()
60 IkeTrafficSelector.TRAFFIC_SELECTOR_TYPE_IPV4_ADDR_RANGE, in IkeTsPayloadTest()
66 new IkeTrafficSelector( in IkeTsPayloadTest()
67 IkeTrafficSelector.TRAFFIC_SELECTOR_TYPE_IPV4_ADDR_RANGE, in IkeTsPayloadTest()
93 new IkeTsPayload(true /*isInitiator*/, new IkeTrafficSelector[] {mTsOne, mTsTwo}); in testBuildAndEncodeTsPayload()
104 IkeTrafficSelector tsOneNarrowPortRange = in testContains()
105 new IkeTrafficSelector( in testContains()
[all …]
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
DIkeTsPayload.java19 import android.net.ipsec.ike.IkeTrafficSelector;
46 public final IkeTrafficSelector[] trafficSelectors;
64 trafficSelectors = IkeTrafficSelector.decodeIkeTrafficSelectors(numTs, tsBytes); in IkeTsPayload()
73 public IkeTsPayload(boolean isInitiator, IkeTrafficSelector[] ikeTrafficSelectors) { in IkeTsPayload()
100 for (IkeTrafficSelector subTs : tsPayload.trafficSelectors) { in contains()
101 for (IkeTrafficSelector superTs : this.trafficSelectors) { in contains()
122 for (IkeTrafficSelector ts : trafficSelectors) { in encodeToByteBuffer()
135 for (IkeTrafficSelector ts : trafficSelectors) { in getPayloadLength()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/
DChildSessionStateMachine.java59 import android.net.ipsec.ike.IkeTrafficSelector;
198 @VisibleForTesting IkeTrafficSelector[] mLocalTs;
200 @VisibleForTesting IkeTrafficSelector[] mRemoteTs;
1992 IkeTrafficSelector[] currentLocalTs, in getRekeyChildCreateReqPayloads()
1993 IkeTrafficSelector[] currentRemoteTs, in getRekeyChildCreateReqPayloads()
2022 IkeTrafficSelector[] currentLocalTs, in getRekeyChildCreateRespPayloads()
2023 IkeTrafficSelector[] currentRemoteTs, in getRekeyChildCreateRespPayloads()
2049 IkeTrafficSelector[] initTs, in getChildCreatePayloads()
2050 IkeTrafficSelector[] respTs, in getChildCreatePayloads()
2283 Pair<IkeTrafficSelector[], IkeTrafficSelector[]> tsPair = in validateAndNegotiateChild()
[all …]
/packages/modules/IPsec/api/
Dsystem-lint-baseline.txt46 …odeChildSessionParams.Builder#addInboundTrafficSelectors(android.net.ipsec.ike.IkeTrafficSelector):
47 …ModeChildSessionParams.Builder.addInboundTrafficSelectors(android.net.ipsec.ike.IkeTrafficSelector)
48 …deChildSessionParams.Builder#addOutboundTrafficSelectors(android.net.ipsec.ike.IkeTrafficSelector):
49 …odeChildSessionParams.Builder.addOutboundTrafficSelectors(android.net.ipsec.ike.IkeTrafficSelector)
54 …odeChildSessionParams.Builder#addInboundTrafficSelectors(android.net.ipsec.ike.IkeTrafficSelector):
55 …ModeChildSessionParams.Builder.addInboundTrafficSelectors(android.net.ipsec.ike.IkeTrafficSelector)
66 …deChildSessionParams.Builder#addOutboundTrafficSelectors(android.net.ipsec.ike.IkeTrafficSelector):
67 …odeChildSessionParams.Builder.addOutboundTrafficSelectors(android.net.ipsec.ike.IkeTrafficSelector)
Dsystem-current.txt71 …method @NonNull public java.util.List<android.net.ipsec.ike.IkeTrafficSelector> getInboundTrafficS…
76 …method @NonNull public java.util.List<android.net.ipsec.ike.IkeTrafficSelector> getOutboundTraffic…
81 …method @NonNull public java.util.List<android.net.ipsec.ike.IkeTrafficSelector> getInboundTrafficS…
82 …method @NonNull public java.util.List<android.net.ipsec.ike.IkeTrafficSelector> getOutboundTraffic…
235 public final class IkeTrafficSelector {
236 …ctor public IkeTrafficSelector(int, int, @NonNull java.net.InetAddress, @NonNull java.net.InetAddr…
277 …essionParams.Builder addInboundTrafficSelectors(@NonNull android.net.ipsec.ike.IkeTrafficSelector);
278 …ssionParams.Builder addOutboundTrafficSelectors(@NonNull android.net.ipsec.ike.IkeTrafficSelector);
290 …essionParams.Builder addInboundTrafficSelectors(@NonNull android.net.ipsec.ike.IkeTrafficSelector);
296 …ssionParams.Builder addOutboundTrafficSelectors(@NonNull android.net.ipsec.ike.IkeTrafficSelector);
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/
DChildSessionStateMachineTest.java81 import android.net.ipsec.ike.IkeTrafficSelector;
499 List<IkeTrafficSelector> expectedList, List<IkeTrafficSelector> tsList) { in verifyTsList()
965 IkeTrafficSelector[] initTs = in makeInboundRekeyChildPayloads()
969 IkeTrafficSelector[] respTs = in makeInboundRekeyChildPayloads()