Home
last modified time | relevance | path

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

123456

/packages/modules/Connectivity/tests/common/java/android/net/
DLinkPropertiesTest.java34 import android.net.LinkProperties.ProvisioningChange;
110 private void checkEmpty(final LinkProperties lp) { in checkEmpty()
138 private LinkProperties makeTestObject() { in makeTestObject()
139 final LinkProperties lp = new LinkProperties(); in makeTestObject()
166 public void assertLinkPropertiesEqual(LinkProperties source, LinkProperties target) { in assertLinkPropertiesEqual()
225 LinkProperties source = new LinkProperties(); in testEqualsNull()
226 LinkProperties target = new LinkProperties(); in testEqualsNull()
234 LinkProperties source = new LinkProperties(); in testEqualsSameOrder()
249 LinkProperties target = new LinkProperties(); in testEqualsSameOrder()
343 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.java54 public final class LinkProperties implements Parcelable { class
93 private Hashtable<String, LinkProperties> mStackedLinks = new Hashtable<>();
118 LinkProperties before, LinkProperties after) { in compareProvisioning()
157 public LinkProperties() { in LinkProperties() method in LinkProperties
165 public LinkProperties(@Nullable LinkProperties source) { in LinkProperties() method in LinkProperties
180 public LinkProperties(@Nullable LinkProperties source, boolean parcelSensitiveFields) { in LinkProperties() method in LinkProperties
193 for (LinkProperties l: source.mStackedLinks.values()) { in LinkProperties()
236 for (LinkProperties stacked: mStackedLinks.values()) { in getAllInterfaceNames()
271 for (LinkProperties stacked: mStackedLinks.values()) { in getAllAddresses()
348 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()
DNetworkState.java39 public final LinkProperties linkProperties;
55 public NetworkState(int legacyNetworkType, @NonNull LinkProperties linkProperties, in NetworkState()
63 public NetworkState(@NonNull NetworkInfo networkInfo, @NonNull LinkProperties linkProperties, in NetworkState()
71 @NonNull LinkProperties linkProperties, in NetworkState()
/packages/modules/NetworkStack/apishim/29/com/android/networkstack/apishim/api29/
DNetworkInformationShimImpl.java20 import android.net.LinkProperties;
70 public Uri getCaptivePortalApiUrl(@Nullable LinkProperties lp) { in getCaptivePortalApiUrl()
76 public void setCaptivePortalApiUrl(@NonNull LinkProperties lp, @Nullable Uri url) { in setCaptivePortalApiUrl()
82 public CaptivePortalDataShim getCaptivePortalData(@Nullable LinkProperties lp) { in getCaptivePortalData()
88 public IpPrefix getNat64Prefix(@NonNull LinkProperties lp) { in getNat64Prefix()
94 public void setNat64Prefix(@NonNull LinkProperties lp, @Nullable IpPrefix prefix) { in setNat64Prefix()
107 public LinkProperties makeSensitiveFieldsParcelingCopy(@NonNull final LinkProperties lp) { in makeSensitiveFieldsParcelingCopy()
108 return new LinkProperties(lp); in makeSensitiveFieldsParcelingCopy()
112 public void setDhcpServerAddress(@NonNull LinkProperties lp, in setDhcpServerAddress()
122 public void setCaptivePortalData(@NonNull LinkProperties lp, in setCaptivePortalData()
/packages/modules/NetworkStack/apishim/common/com/android/networkstack/apishim/common/
DNetworkInformationShim.java20 import android.net.LinkProperties;
38 Uri getCaptivePortalApiUrl(@Nullable LinkProperties lp); in getCaptivePortalApiUrl()
43 void setCaptivePortalApiUrl(@NonNull LinkProperties lp, @Nullable Uri url); in setCaptivePortalApiUrl()
49 CaptivePortalDataShim getCaptivePortalData(@Nullable LinkProperties lp); in getCaptivePortalData()
55 IpPrefix getNat64Prefix(@NonNull LinkProperties lp); in getNat64Prefix()
60 void setNat64Prefix(@NonNull LinkProperties lp, @Nullable IpPrefix prefix); in setNat64Prefix()
72 LinkProperties makeSensitiveFieldsParcelingCopy(@NonNull LinkProperties lp); in makeSensitiveFieldsParcelingCopy()
77 void setDhcpServerAddress(@NonNull LinkProperties lp, @NonNull Inet4Address serverAddress); in setDhcpServerAddress()
84 void setCaptivePortalData(@NonNull LinkProperties lp, in setCaptivePortalData()
/packages/modules/NetworkStack/apishim/30/com/android/networkstack/apishim/api30/
DNetworkInformationShimImpl.java20 import android.net.LinkProperties;
65 public Uri getCaptivePortalApiUrl(@Nullable LinkProperties lp) { in getCaptivePortalApiUrl()
71 public void setCaptivePortalApiUrl(@NonNull LinkProperties lp, @Nullable Uri url) { in setCaptivePortalApiUrl()
77 public CaptivePortalDataShim getCaptivePortalData(@Nullable LinkProperties lp) { in getCaptivePortalData()
84 public IpPrefix getNat64Prefix(@NonNull LinkProperties lp) { in getNat64Prefix()
89 public void setNat64Prefix(@NonNull LinkProperties lp, @Nullable IpPrefix prefix) { in setNat64Prefix()
102 public LinkProperties makeSensitiveFieldsParcelingCopy(@NonNull final LinkProperties lp) { in makeSensitiveFieldsParcelingCopy()
103 return new LinkProperties(lp, true); in makeSensitiveFieldsParcelingCopy()
107 public void setDhcpServerAddress(@NonNull LinkProperties lp, in setDhcpServerAddress()
113 public void setCaptivePortalData(@NonNull LinkProperties lp, in setCaptivePortalData()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DNat464XlatTest.java39 import android.net.LinkProperties;
110 mNai.linkProperties = new LinkProperties();
160 LinkProperties oldLp = new LinkProperties(mNai.linkProperties);
198 mNai.linkProperties = new LinkProperties(oldLp);
213 ArgumentCaptor<LinkProperties> c = ArgumentCaptor.forClass(LinkProperties.class);
264 ArgumentCaptor<LinkProperties> c = ArgumentCaptor.forClass(LinkProperties.class);
354 ArgumentCaptor<LinkProperties> c = ArgumentCaptor.forClass(LinkProperties.class);
470 final LinkProperties emptyLp = new LinkProperties();
471 LinkProperties fixedupLp;
473 fixedupLp = new LinkProperties();
[all …]
DDnsManagerTest.java52 import android.net.LinkProperties;
166 LinkProperties lp = new LinkProperties(); in testTrackedValidationUpdates()
182 LinkProperties fixedLp = new LinkProperties(lp); in testTrackedValidationUpdates()
186 fixedLp = new LinkProperties(lp); in testTrackedValidationUpdates()
211 fixedLp = new LinkProperties(lp); in testTrackedValidationUpdates()
222 fixedLp = new LinkProperties(lp); in testTrackedValidationUpdates()
231 fixedLp = new LinkProperties(lp); in testTrackedValidationUpdates()
243 LinkProperties lp = new LinkProperties(); in testIgnoreUntrackedValidationUpdates()
351 final LinkProperties lp = new LinkProperties(); in testSendDnsConfiguration()
407 LinkProperties lp = new LinkProperties(); in testGetPrivateDnsConfigForNetwork()
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DIPv6TetheringCoordinator.java21 import android.net.LinkProperties;
153 new LinkProperties(ns.linkProperties), in setUpstreamNetworkState()
163 final LinkProperties lp = getInterfaceIPv6LinkProperties(ipServer); in updateIPv6TetheringInterfaces()
186 private LinkProperties getInterfaceIPv6LinkProperties(IpServer ipServer) { in getInterfaceIPv6LinkProperties()
207 final LinkProperties lp = getIPv6OnlyLinkProperties( in getInterfaceIPv6LinkProperties()
224 private static LinkProperties getIPv6OnlyLinkProperties(LinkProperties lp) { in getIPv6OnlyLinkProperties()
225 final LinkProperties v6only = new LinkProperties(); in getIPv6OnlyLinkProperties()
274 private static LinkProperties getUniqueLocalConfig(byte[] ulp, short subnetId) { in getUniqueLocalConfig()
275 final LinkProperties lp = new LinkProperties(); in getUniqueLocalConfig()
DOffloadController.java41 import android.net.LinkProperties;
100 private final HashMap<String, LinkProperties> mDownstreams;
104 private LinkProperties mUpstreamLinkProperties;
566 public void setUpstreamLinkProperties(LinkProperties lp) { in setUpstreamLinkProperties()
571 mUpstreamLinkProperties = (lp != null) ? new LinkProperties(lp) : null; in setUpstreamLinkProperties()
595 public void notifyDownstreamLinkProperties(LinkProperties lp) { in notifyDownstreamLinkProperties()
597 final LinkProperties oldLp = mDownstreams.put(ifname, new LinkProperties(lp)); in notifyDownstreamLinkProperties()
604 private void pushDownstreamState(LinkProperties oldLp, LinkProperties newLp) { in pushDownstreamState()
628 for (LinkProperties lp : mDownstreams.values()) { in pushAllDownstreamState()
635 final LinkProperties lp = mDownstreams.remove(ifname); in removeDownstreamInterface()
[all …]
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DNat464Xlat.java31 import android.net.LinkProperties;
127 LinkProperties lp = nai.linkProperties; in requiresClat()
149 LinkProperties lp = nai.linkProperties; in shouldStartClat()
274 LinkProperties lp = new LinkProperties(mNetwork.linkProperties); in stop()
396 public void fixupLinkProperties(@NonNull LinkProperties oldLp, @NonNull LinkProperties lp) { in fixupLinkProperties()
409 for (LinkProperties stacked: oldLp.getStackedLinks()) { in fixupLinkProperties()
417 private LinkProperties makeLinkProperties(LinkAddress clatAddress) { in makeLinkProperties()
418 LinkProperties stacked = new LinkProperties(); in makeLinkProperties()
477 LinkProperties lp = new LinkProperties(mNetwork.linkProperties); in handleInterfaceLinkStateChanged()
/packages/modules/NetworkStack/common/networkstackclient/src/android/net/ip/
DIpClientUtil.java22 import android.net.LinkProperties;
47 private LinkProperties mCallbackLinkProperties;
53 public LinkProperties waitForProvisioning() { in waitForProvisioning()
59 public void onProvisioningSuccess(LinkProperties newLp) { in onProvisioningSuccess()
65 public void onProvisioningFailure(LinkProperties newLp) { in onProvisioningFailure()
123 public void onProvisioningSuccess(LinkProperties newLp) { in onProvisioningSuccess()
127 public void onProvisioningFailure(LinkProperties newLp) { in onProvisioningFailure()
133 public void onLinkPropertiesChange(LinkProperties newLp) { in onLinkPropertiesChange()
DIpClientCallbacks.java21 import android.net.LinkProperties;
83 public void onProvisioningSuccess(LinkProperties newLp) {} in onProvisioningSuccess()
88 public void onProvisioningFailure(LinkProperties newLp) {} in onProvisioningFailure()
93 public void onLinkPropertiesChange(LinkProperties newLp) {} in onLinkPropertiesChange()
DIIpClientCallbacks.aidl19 import android.net.LinkProperties;
38 void onProvisioningSuccess(in LinkProperties newLp); in onProvisioningSuccess()
39 void onProvisioningFailure(in LinkProperties newLp); in onProvisioningFailure()
42 void onLinkPropertiesChange(in LinkProperties newLp); in onLinkPropertiesChange()
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DIPv6TetheringCoordinatorTest.java39 import android.net.LinkProperties;
86 final LinkProperties linkProp = new LinkProperties(); in createDualStackUpstream()
97 private void assertOnlyOneV6AddressAndNoV4(LinkProperties lp) { in assertOnlyOneV6AddressAndNoV4()
129 final ArgumentCaptor<LinkProperties> lp = ArgumentCaptor.forClass(LinkProperties.class); in testUpdateIpv6Upstream()
133 final LinkProperties v6OnlyLink = lp.getValue(); in testUpdateIpv6Upstream()
145 final LinkProperties localOnlyLink = lp.getValue(); in testUpdateIpv6Upstream()
DOffloadControllerTest.java63 import android.net.LinkProperties;
280 final LinkProperties lp = new LinkProperties(); in testSetUpstreamLinkPropertiesWorking()
350 final LinkProperties stacked = new LinkProperties(); in testSetUpstreamLinkPropertiesWorking()
432 final LinkProperties lp = new LinkProperties(); in testGetForwardedStats()
534 final LinkProperties lp = new LinkProperties(); in checkSetDataWarningAndLimit()
682 final LinkProperties usbLinkProperties = new LinkProperties(); in testAddRemoveDownstreams()
744 final LinkProperties upstreamLp = new LinkProperties(); in testControlCallbackOnStoppedUnsupportedFetchesAllStats()
775 final LinkProperties upstreamLp = new LinkProperties(); in testControlCallbackOnSupportAvailableFetchesAllStatsAndPushesAllParameters()
790 final LinkProperties usbLinkProperties = new LinkProperties(); in testControlCallbackOnSupportAvailableFetchesAllStatsAndPushesAllParameters()
797 final LinkProperties wifiLinkProperties = new LinkProperties(); in testControlCallbackOnSupportAvailableFetchesAllStatsAndPushesAllParameters()
[all …]
/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/Connectivity/Tethering/tests/unit/src/android/net/ip/
DIpServerTest.java74 import android.net.LinkProperties;
196 private final ArgumentCaptor<LinkProperties> mLinkPropertiesCaptor =
197 ArgumentCaptor.forClass(LinkProperties.class);
254 LinkProperties lp = new LinkProperties(); in initTetheredStateMachine()
367 verify(mCallback).updateLinkProperties(eq(mIpServer), any(LinkProperties.class)); in startsOutAvailable()
398 verify(mCallback).updateLinkProperties(eq(mIpServer), any(LinkProperties.class)); in handlesImmediateInterfaceDown()
416 eq(mIpServer), any(LinkProperties.class)); in canBeTethered()
434 eq(mIpServer), any(LinkProperties.class)); in canUnrequestTethering()
597 eq(mIpServer), any(LinkProperties.class)); in canUnrequestTetheringWithUpstream()
719 final ArgumentCaptor<LinkProperties> lpCaptor = in testOnNewPrefixRequest()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/
DPrivateDnsPreferenceControllerTest.java51 import android.net.LinkProperties;
144 private void updateLinkProperties(LinkProperties lp) { in updateLinkProperties()
212 LinkProperties lp = mock(LinkProperties.class); in getSummary_PrivateDnsModeOpportunistic()
219 lp = mock(LinkProperties.class); in getSummary_PrivateDnsModeOpportunistic()
236 LinkProperties lp = mock(LinkProperties.class); in getSummary_PrivateDnsModeProviderHostname()
243 lp = mock(LinkProperties.class); in getSummary_PrivateDnsModeProviderHostname()
/packages/modules/NetworkStack/src/android/net/ip/
DIpClient.java47 import android.net.LinkProperties;
277 public void onProvisioningSuccess(LinkProperties newLp) { in onProvisioningSuccess()
289 public void onProvisioningFailure(LinkProperties newLp) { in onProvisioningFailure()
301 public void onLinkPropertiesChange(LinkProperties newLp) { in onLinkPropertiesChange()
520 private LinkProperties mLinkProperties;
725 mLinkProperties = new LinkProperties(); in IpClient()
1183 mLinkProperties = new LinkProperties(); in resetLinkProperties()
1204 static boolean isProvisioned(LinkProperties lp, InitialConfiguration config) { in isProvisioned()
1240 private int compareProvisioning(LinkProperties oldLp, LinkProperties newLp) { in compareProvisioning()
1344 private void dispatchCallback(int delta, LinkProperties newLp) { in dispatchCallback()
[all …]
/packages/modules/NetworkStack/tests/unit/src/android/net/ip/
DIpClientTest.java49 import android.net.LinkProperties;
186 private static LinkProperties makeEmptyLinkProperties(String iface) { in makeEmptyLinkProperties()
187 final LinkProperties empty = new LinkProperties(); in makeEmptyLinkProperties()
245 private LinkProperties makeIPv6ProvisionedLinkProperties() { in makeIPv6ProvisionedLinkProperties()
271 final LinkProperties lp = makeIPv6ProvisionedLinkProperties(); in doProvisioningWithDefaultConfiguration()
286 private void addIPv4Provisioning(LinkProperties lp) { in addIPv4Provisioning()
302 private void doIPv6ProvisioningLoss(LinkProperties lp) { in doIPv6ProvisioningLoss()
313 final LinkProperties lp = makeIPv6ProvisionedLinkProperties(); in doDefaultIPv6ProvisioningConfigurationAndProvisioningLossTest()
340 final LinkProperties lp = makeIPv6ProvisionedLinkProperties(); in doDefaultDualStackProvisioningConfigurationTest()
405 LinkProperties want = linkproperties(links(TEST_LOCAL_ADDRESSES), in testProvisioningWithInitialConfiguration()
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/details/
DWifiInfoProvider.java25 import android.net.LinkProperties;
77 void onLinkPropertiesChanged(Network network, LinkProperties lp); in onLinkPropertiesChanged()
90 private LinkProperties mLinkProperties;
105 public void onLinkPropertiesChanged(Network network, LinkProperties lp) {
252 public LinkProperties getLinkProperties() { in getLinkProperties()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/net/
DIkeDefaultNetworkCallbackTest.java27 import android.net.LinkProperties;
129 private LinkProperties getLinkPropertiesWithAddresses(InetAddress... addresses) in getLinkPropertiesWithAddresses()
131 LinkProperties linkProperties = new LinkProperties(); in getLinkPropertiesWithAddresses()

123456