Home
last modified time | relevance | path

Searched refs:LinkProperties (Results 1 – 25 of 248) sorted by relevance

12345678910

/packages/modules/Connectivity/tests/common/java/android/net/
DLinkPropertiesTest.java34 import android.net.LinkProperties.ProvisioningChange;
118 private void checkEmpty(final LinkProperties lp) { in checkEmpty()
143 private LinkProperties makeTestObject() { in makeTestObject()
144 final LinkProperties lp = new LinkProperties(); in makeTestObject()
169 public void assertLinkPropertiesEqual(LinkProperties source, LinkProperties target) { in assertLinkPropertiesEqual()
226 LinkProperties source = new LinkProperties(); in testEqualsNull()
227 LinkProperties target = new LinkProperties(); in testEqualsNull()
235 LinkProperties source = new LinkProperties(); in testEqualsSameOrder()
250 LinkProperties target = new LinkProperties(); in testEqualsSameOrder()
344 LinkProperties source = new LinkProperties(); in testEqualsDifferentOrder()
[all …]
DConnectivityDiagnosticsManagerTest.java95 final LinkProperties linkProperties = new LinkProperties(); in createSampleConnectivityReport()
112 new LinkProperties(), in createDefaultConnectivityReport()
157 final LinkProperties linkProperties = sampleReport.getLinkProperties(); in testConnectivityReportEquals()
166 new LinkProperties(), in testConnectivityReportEquals()
174 new LinkProperties(), in testConnectivityReportEquals()
190 new LinkProperties(), in testConnectivityReportEquals()
198 new LinkProperties(), in testConnectivityReportEquals()
209 final LinkProperties linkProperties = new LinkProperties(); in createSampleDataStallReport()
232 new LinkProperties(), in createDefaultDataStallReport()
244 final LinkProperties linkProperties = sampleReport.getLinkProperties(); in testDataStallReportEquals()
[all …]
/packages/modules/Connectivity/framework/src/android/net/
DLinkProperties.java59 public final class LinkProperties implements Parcelable { class
98 private Hashtable<String, LinkProperties> mStackedLinks = new Hashtable<>();
123 LinkProperties before, LinkProperties after) { in compareProvisioning()
162 public LinkProperties() { in LinkProperties() method in LinkProperties
170 public LinkProperties(@Nullable LinkProperties source) { in LinkProperties() method in LinkProperties
185 public LinkProperties(@Nullable LinkProperties source, boolean parcelSensitiveFields) { in LinkProperties() method in LinkProperties
198 for (LinkProperties l: source.mStackedLinks.values()) { in LinkProperties()
241 for (LinkProperties stacked: mStackedLinks.values()) { in getAllInterfaceNames()
276 for (LinkProperties stacked: mStackedLinks.values()) { in getAllAddresses()
353 for (LinkProperties stacked: mStackedLinks.values()) { in getAllLinkAddresses()
[all …]
DConnectivityDiagnosticsManager.java223 @NonNull private final LinkProperties mLinkProperties;
249 @NonNull LinkProperties linkProperties, in ConnectivityReport()
254 mLinkProperties = new LinkProperties(linkProperties); in ConnectivityReport()
284 public LinkProperties getLinkProperties() { in getLinkProperties()
285 return new LinkProperties(mLinkProperties); in getLinkProperties()
443 @NonNull private final LinkProperties mLinkProperties;
470 @NonNull LinkProperties linkProperties, in DataStallReport()
476 mLinkProperties = new LinkProperties(linkProperties); in DataStallReport()
515 public LinkProperties getLinkProperties() { in getLinkProperties()
516 return new LinkProperties(mLinkProperties); in getLinkProperties()
/packages/modules/NetworkStack/apishim/29/com/android/networkstack/apishim/api29/
DNetworkInformationShimImpl.java20 import android.net.LinkProperties;
56 public Uri getCaptivePortalApiUrl(@Nullable LinkProperties lp) { in getCaptivePortalApiUrl()
62 public void setCaptivePortalApiUrl(@NonNull LinkProperties lp, @Nullable Uri url) { in setCaptivePortalApiUrl()
68 public CaptivePortalDataShim getCaptivePortalData(@Nullable LinkProperties lp) { in getCaptivePortalData()
74 public IpPrefix getNat64Prefix(@NonNull LinkProperties lp) { in getNat64Prefix()
80 public void setNat64Prefix(@NonNull LinkProperties lp, @Nullable IpPrefix prefix) { in setNat64Prefix()
93 public LinkProperties makeSensitiveFieldsParcelingCopy(@NonNull final LinkProperties lp) { in makeSensitiveFieldsParcelingCopy()
94 return new LinkProperties(lp); in makeSensitiveFieldsParcelingCopy()
98 public void setDhcpServerAddress(@NonNull LinkProperties lp, in setDhcpServerAddress()
108 public void setCaptivePortalData(@NonNull LinkProperties lp, in setCaptivePortalData()
/packages/modules/Connectivity/staticlibs/framework/com/android/net/module/util/
DLinkPropertiesUtils.java22 import android.net.LinkProperties;
137 @Nullable LinkProperties left, @Nullable LinkProperties right) { in compareAddresses()
157 public static boolean isIdenticalAllLinkAddresses(@Nullable LinkProperties left, in isIdenticalAllLinkAddresses()
158 @Nullable LinkProperties right) { in isIdenticalAllLinkAddresses()
174 public static boolean isIdenticalAddresses(@NonNull LinkProperties left, in isIdenticalAddresses()
175 @NonNull LinkProperties right) { in isIdenticalAddresses()
189 public static boolean isIdenticalDnses(@NonNull LinkProperties left, in isIdenticalDnses()
190 @NonNull LinkProperties right) { in isIdenticalDnses()
212 public static boolean isIdenticalHttpProxy(@NonNull LinkProperties left, in isIdenticalHttpProxy()
213 @NonNull LinkProperties right) { in isIdenticalHttpProxy()
[all …]
/packages/modules/NetworkStack/apishim/common/com/android/networkstack/apishim/common/
DNetworkInformationShim.java20 import android.net.LinkProperties;
40 Uri getCaptivePortalApiUrl(@Nullable LinkProperties lp); in getCaptivePortalApiUrl()
45 void setCaptivePortalApiUrl(@NonNull LinkProperties lp, @Nullable Uri url); in setCaptivePortalApiUrl()
51 CaptivePortalDataShim getCaptivePortalData(@Nullable LinkProperties lp); in getCaptivePortalData()
57 IpPrefix getNat64Prefix(@NonNull LinkProperties lp); in getNat64Prefix()
62 void setNat64Prefix(@NonNull LinkProperties lp, @Nullable IpPrefix prefix); in setNat64Prefix()
74 LinkProperties makeSensitiveFieldsParcelingCopy(@NonNull LinkProperties lp); in makeSensitiveFieldsParcelingCopy()
79 void setDhcpServerAddress(@NonNull LinkProperties lp, @NonNull Inet4Address serverAddress); in setDhcpServerAddress()
86 void setCaptivePortalData(@NonNull LinkProperties lp, in setCaptivePortalData()
/packages/modules/NetworkStack/apishim/30/com/android/networkstack/apishim/api30/
DNetworkInformationShimImpl.java22 import android.net.LinkProperties;
60 public Uri getCaptivePortalApiUrl(@Nullable LinkProperties lp) { in getCaptivePortalApiUrl()
66 public void setCaptivePortalApiUrl(@NonNull LinkProperties lp, @Nullable Uri url) { in setCaptivePortalApiUrl()
72 public CaptivePortalDataShim getCaptivePortalData(@Nullable LinkProperties lp) { in getCaptivePortalData()
79 public IpPrefix getNat64Prefix(@NonNull LinkProperties lp) { in getNat64Prefix()
84 public void setNat64Prefix(@NonNull LinkProperties lp, @Nullable IpPrefix prefix) { in setNat64Prefix()
97 public LinkProperties makeSensitiveFieldsParcelingCopy(@NonNull final LinkProperties lp) { in makeSensitiveFieldsParcelingCopy()
98 return new LinkProperties(lp, true); in makeSensitiveFieldsParcelingCopy()
102 public void setDhcpServerAddress(@NonNull LinkProperties lp, in setDhcpServerAddress()
108 public void setCaptivePortalData(@NonNull LinkProperties lp, in setCaptivePortalData()
/packages/modules/NetworkStack/common/networkstackclient/src/android/net/ip/
DIpClientUtil.java22 import android.net.LinkProperties;
48 private LinkProperties mCallbackLinkProperties;
54 public LinkProperties waitForProvisioning() { in waitForProvisioning()
60 public void onProvisioningSuccess(LinkProperties newLp) { in onProvisioningSuccess()
66 public void onProvisioningFailure(LinkProperties newLp) { in onProvisioningFailure()
132 public void onProvisioningSuccess(LinkProperties newLp) { in onProvisioningSuccess()
133 mCb.onProvisioningSuccess(new LinkProperties(newLp)); in onProvisioningSuccess()
136 public void onProvisioningFailure(LinkProperties newLp) { in onProvisioningFailure()
137 mCb.onProvisioningFailure(new LinkProperties(newLp)); in onProvisioningFailure()
142 public void onLinkPropertiesChange(LinkProperties newLp) { in onLinkPropertiesChange()
[all …]
DIpClientCallbacks.java21 import android.net.LinkProperties;
84 public void onProvisioningSuccess(LinkProperties newLp) {} in onProvisioningSuccess()
89 public void onProvisioningFailure(LinkProperties newLp) {} in onProvisioningFailure()
94 public void onLinkPropertiesChange(LinkProperties newLp) {} in onLinkPropertiesChange()
DIIpClientCallbacks.aidl19 import android.net.LinkProperties;
39 void onProvisioningSuccess(in LinkProperties newLp); in onProvisioningSuccess()
40 void onProvisioningFailure(in LinkProperties newLp); in onProvisioningFailure()
43 void onLinkPropertiesChange(in LinkProperties newLp); in onLinkPropertiesChange()
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DIPv6TetheringCoordinator.java21 import android.net.LinkProperties;
154 new LinkProperties(ns.linkProperties), in setUpstreamNetworkState()
164 final LinkProperties lp = getInterfaceIPv6LinkProperties(ipServer); in updateIPv6TetheringInterfaces()
187 private LinkProperties getInterfaceIPv6LinkProperties(IpServer ipServer) { in getInterfaceIPv6LinkProperties()
208 final LinkProperties lp = getIPv6OnlyLinkProperties( in getInterfaceIPv6LinkProperties()
225 private static LinkProperties getIPv6OnlyLinkProperties(LinkProperties lp) { in getIPv6OnlyLinkProperties()
226 final LinkProperties v6only = new LinkProperties(); in getIPv6OnlyLinkProperties()
275 private static LinkProperties getUniqueLocalConfig(byte[] ulp, short subnetId) { in getUniqueLocalConfig()
276 final LinkProperties lp = new LinkProperties(); in getUniqueLocalConfig()
DOffloadController.java41 import android.net.LinkProperties;
100 private final HashMap<String, LinkProperties> mDownstreams;
103 private LinkProperties mUpstreamLinkProperties;
555 public void setUpstreamLinkProperties(LinkProperties lp) { in setUpstreamLinkProperties()
560 mUpstreamLinkProperties = (lp != null) ? new LinkProperties(lp) : null; in setUpstreamLinkProperties()
584 public void notifyDownstreamLinkProperties(LinkProperties lp) { in notifyDownstreamLinkProperties()
586 final LinkProperties oldLp = mDownstreams.put(ifname, new LinkProperties(lp)); in notifyDownstreamLinkProperties()
593 private void pushDownstreamState(LinkProperties oldLp, LinkProperties newLp) { in pushDownstreamState()
617 for (LinkProperties lp : mDownstreams.values()) { in pushAllDownstreamState()
624 final LinkProperties lp = mDownstreams.remove(ifname); in removeDownstreamInterface()
[all …]
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/net/
DIkeDefaultNetworkCallbackTest.java28 import android.net.LinkProperties;
53 private LinkProperties mCurrLp;
62 mCurrLp = mock(LinkProperties.class); in setUp()
77 LinkProperties lp = mock(LinkProperties.class); in verifyNewNetworkCallback()
159 LinkProperties lp = spy(getLinkPropertiesWithAddresses(UPDATED_ADDRESS)); in testOnLinkPropertiesChanged()
188 private LinkProperties getLinkPropertiesWithAddresses(InetAddress... addresses) in getLinkPropertiesWithAddresses()
190 LinkProperties linkProperties = new LinkProperties(); in getLinkPropertiesWithAddresses()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DNat464XlatTest.java43 import android.net.LinkProperties;
129 mNai.linkProperties = new LinkProperties();
180 LinkProperties oldLp = new LinkProperties(mNai.linkProperties);
218 mNai.linkProperties = new LinkProperties(oldLp);
266 ArgumentCaptor<LinkProperties> c = ArgumentCaptor.forClass(LinkProperties.class);
316 ArgumentCaptor<LinkProperties> c = ArgumentCaptor.forClass(LinkProperties.class);
400 ArgumentCaptor<LinkProperties> c = ArgumentCaptor.forClass(LinkProperties.class);
512 final LinkProperties emptyLp = new LinkProperties();
513 LinkProperties fixedupLp;
515 fixedupLp = new LinkProperties();
[all …]
DDnsManagerTest.java51 import android.net.LinkProperties;
143 LinkProperties lp = new LinkProperties(); in testTrackedValidationUpdates()
161 LinkProperties fixedLp = new LinkProperties(lp); in testTrackedValidationUpdates()
165 fixedLp = new LinkProperties(lp); in testTrackedValidationUpdates()
190 fixedLp = new LinkProperties(lp); in testTrackedValidationUpdates()
201 fixedLp = new LinkProperties(lp); in testTrackedValidationUpdates()
210 fixedLp = new LinkProperties(lp); in testTrackedValidationUpdates()
222 LinkProperties lp = new LinkProperties(); in testIgnoreUntrackedValidationUpdates()
332 final LinkProperties lp = new LinkProperties(); in testSendDnsConfiguration()
388 LinkProperties lp = new LinkProperties(); in testGetPrivateDnsConfigForNetwork()
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DNat464Xlat.java33 import android.net.LinkProperties;
146 LinkProperties lp = nai.linkProperties; in requiresClat()
168 LinkProperties lp = nai.linkProperties; in shouldStartClat()
310 LinkProperties lp = new LinkProperties(mNetwork.linkProperties); in stop()
432 public void fixupLinkProperties(@Nullable LinkProperties oldLp, @NonNull LinkProperties lp) { in fixupLinkProperties()
447 for (LinkProperties stacked: oldLp.getStackedLinks()) { in fixupLinkProperties()
455 private LinkProperties makeLinkProperties(LinkAddress clatAddress) { in makeLinkProperties()
456 LinkProperties stacked = new LinkProperties(); in makeLinkProperties()
517 LinkProperties lp = new LinkProperties(mNetwork.linkProperties); in handleInterfaceLinkStateChanged()
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DIPv6TetheringCoordinatorTest.java39 import android.net.LinkProperties;
87 final LinkProperties linkProp = new LinkProperties(); in createDualStackUpstream()
98 private void assertOnlyOneV6AddressAndNoV4(LinkProperties lp) { in assertOnlyOneV6AddressAndNoV4()
130 final ArgumentCaptor<LinkProperties> lp = ArgumentCaptor.forClass(LinkProperties.class); in testUpdateIpv6Upstream()
134 final LinkProperties v6OnlyLink = lp.getValue(); in testUpdateIpv6Upstream()
146 final LinkProperties localOnlyLink = lp.getValue(); in testUpdateIpv6Upstream()
DOffloadControllerTest.java65 import android.net.LinkProperties;
288 final LinkProperties lp = new LinkProperties(); in testSetUpstreamLinkPropertiesWorking()
358 final LinkProperties stacked = new LinkProperties(); in testSetUpstreamLinkPropertiesWorking()
440 final LinkProperties lp = new LinkProperties(); in testGetForwardedStats()
542 final LinkProperties lp = new LinkProperties(); in checkSetDataWarningAndLimit()
706 final LinkProperties usbLinkProperties = new LinkProperties(); in testAddRemoveDownstreams()
768 final LinkProperties upstreamLp = new LinkProperties(); in testControlCallbackOnStoppedUnsupportedFetchesAllStats()
799 final LinkProperties upstreamLp = new LinkProperties(); in testControlCallbackOnSupportAvailableFetchesAllStatsAndPushesAllParameters()
814 final LinkProperties usbLinkProperties = new LinkProperties(); in testControlCallbackOnSupportAvailableFetchesAllStatsAndPushesAllParameters()
821 final LinkProperties wifiLinkProperties = new LinkProperties(); in testControlCallbackOnSupportAvailableFetchesAllStatsAndPushesAllParameters()
[all …]
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/net/
DIkeNetworkCallbackBase.java23 import android.net.LinkProperties;
37 protected LinkProperties mCurrLp;
45 LinkProperties currLp, in IkeNetworkCallbackBase()
65 protected boolean isCurrentAddressLost(LinkProperties linkProperties) { in isCurrentAddressLost()
93 public void setNetwork(Network network, LinkProperties lp, NetworkCapabilities nc) { in setNetwork()
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/
DLinkPropertiesUtilsTest.java29 import android.net.LinkProperties;
72 private LinkProperties createTestObject() { in createTestObject()
73 final LinkProperties lp = new LinkProperties(); in createTestObject()
88 final LinkProperties source = createTestObject(); in testLinkPropertiesIdenticalEqual()
89 final LinkProperties target = new LinkProperties(source); in testLinkPropertiesIdenticalEqual()
181 final LinkProperties stacked = new LinkProperties(); in testLinkPropertiesIdenticalEqual()
243 final LinkProperties source = createTestObject(); in testCompareAddresses()
244 final LinkProperties target = new LinkProperties(source); in testCompareAddresses()
/packages/modules/Connectivity/Tethering/tests/unit/src/android/net/ip/
DIpServerTest.java74 import android.net.LinkProperties;
191 private final ArgumentCaptor<LinkProperties> mLinkPropertiesCaptor =
192 ArgumentCaptor.forClass(LinkProperties.class);
248 LinkProperties lp = new LinkProperties(); in initTetheredStateMachine()
324 verify(mCallback).updateLinkProperties(eq(mIpServer), any(LinkProperties.class)); in startsOutAvailable()
355 verify(mCallback).updateLinkProperties(eq(mIpServer), any(LinkProperties.class)); in handlesImmediateInterfaceDown()
379 eq(mIpServer), any(LinkProperties.class)); in canBeTetheredAsBluetooth()
403 eq(mIpServer), any(LinkProperties.class)); in canUnrequestTethering()
577 eq(mIpServer), any(LinkProperties.class)); in canUnrequestTetheringWithUpstream()
709 final ArgumentCaptor<LinkProperties> lpCaptor = in testOnNewPrefixRequest()
[all …]
/packages/modules/Connectivity/staticlibs/testutils/devicetests/com/android/testutils/
DTestNetworkTracker.kt26 import android.net.LinkProperties
82 lp: LinkProperties, in initTestNetwork()
91 lp: LinkProperties?, in initTestNetwork()
97 val lpWithIface = if (lp == null) null else LinkProperties(lp).apply { in initTestNetwork()
112 val lp: LinkProperties?,
/packages/modules/Connectivity/Tethering/apex/hiddenapi/
Dhiddenapi-max-target-o-low-priority.txt20 …;->onAvailable(Landroid/net/Network;Landroid/net/NetworkCapabilities;Landroid/net/LinkProperties;)V
119 …orkAgent(Landroid/os/Messenger;Landroid/net/NetworkInfo;Landroid/net/LinkProperties;Landroid/net/N…
189 …nnectivityManager$Stub$Proxy;->getLinkProperties(Landroid/net/Network;)Landroid/net/LinkProperties;
190 …droid/net/IConnectivityManager$Stub$Proxy;->getLinkPropertiesForType(I)Landroid/net/LinkProperties;
213 …orkAgent(Landroid/os/Messenger;Landroid/net/NetworkInfo;Landroid/net/LinkProperties;Landroid/net/N…
334 …oid/net/IConnectivityManager;->getLinkProperties(Landroid/net/Network;)Landroid/net/LinkProperties;
335 Landroid/net/IConnectivityManager;->getLinkPropertiesForType(I)Landroid/net/LinkProperties;
355 …orkAgent(Landroid/os/Messenger;Landroid/net/NetworkInfo;Landroid/net/LinkProperties;Landroid/net/N…
441 Landroid/net/LinkProperties$CompareResult;-><init>()V
442 Landroid/net/LinkProperties$CompareResult;-><init>(Ljava/util/Collection;Ljava/util/Collection;)V
[all …]
/packages/modules/NetworkStack/tests/integration/common/android/net/ip/
DIpClientIntegrationTestCommon.java143 import android.net.LinkProperties;
1418 final LinkProperties emptyLp = new LinkProperties();
1429 private LinkProperties verifyIPv4OnlyProvisioningSuccess(
1431 final ArgumentCaptor<LinkProperties> captor = ArgumentCaptor.forClass(LinkProperties.class);
1433 final LinkProperties lp = captor.getValue();
1825 ArgumentCaptor<LinkProperties> captor = ArgumentCaptor.forClass(LinkProperties.class);
1830 private void createTestNetworkAgentAndRegister(final LinkProperties lp) throws Exception {
1873 private LinkProperties prepareDhcpReacquireTest() throws Exception {
1883 final LinkProperties lp =
1889 private OnAlarmListener runDhcpRenewTest(final Handler handler, final LinkProperties lp,
[all …]

12345678910