/frameworks/base/tests/net/common/java/android/net/ |
D | LinkPropertiesTest.java | 34 import android.net.LinkProperties.ProvisioningChange; 111 private void checkEmpty(final LinkProperties lp) { in checkEmpty() 139 private LinkProperties makeTestObject() { in makeTestObject() 140 final LinkProperties lp = new LinkProperties(); in makeTestObject() 167 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 …]
|
/frameworks/base/core/java/android/net/ |
D | LinkProperties.java | 55 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 166 public LinkProperties(@Nullable LinkProperties source) { in LinkProperties() method in LinkProperties 182 public LinkProperties(@Nullable LinkProperties source, boolean parcelSensitiveFields) { in LinkProperties() method in LinkProperties 195 for (LinkProperties l: source.mStackedLinks.values()) { in LinkProperties() 238 for (LinkProperties stacked: mStackedLinks.values()) { in getAllInterfaceNames() 273 for (LinkProperties stacked: mStackedLinks.values()) { in getAllAddresses() 352 for (LinkProperties stacked: mStackedLinks.values()) { in getAllLinkAddresses() [all …]
|
D | ConnectivityDiagnosticsManager.java | 224 @NonNull private final LinkProperties mLinkProperties; 250 @NonNull LinkProperties linkProperties, in ConnectivityReport() 255 mLinkProperties = new LinkProperties(linkProperties); in ConnectivityReport() 285 public LinkProperties getLinkProperties() { in getLinkProperties() 286 return new LinkProperties(mLinkProperties); in getLinkProperties() 444 @NonNull private final LinkProperties mLinkProperties; 471 @NonNull LinkProperties linkProperties, in DataStallReport() 477 mLinkProperties = new LinkProperties(linkProperties); in DataStallReport() 516 public LinkProperties getLinkProperties() { in getLinkProperties() 517 return new LinkProperties(mLinkProperties); in getLinkProperties()
|
D | NetworkAgent.java | 327 NetworkCapabilities nc, LinkProperties lp, int score) { in NetworkAgent() 334 NetworkCapabilities nc, LinkProperties lp, int score, NetworkAgentConfig config) { in NetworkAgent() 341 NetworkCapabilities nc, LinkProperties lp, int score, int providerId) { in NetworkAgent() 348 NetworkCapabilities nc, LinkProperties lp, int score, NetworkAgentConfig config, in NetworkAgent() 377 @NonNull NetworkCapabilities nc, @NonNull LinkProperties lp, int score, in NetworkAgent() 387 public final LinkProperties properties; 392 @NonNull LinkProperties properties, int score, @NonNull NetworkAgentConfig config, in InitialConfiguration() 405 @NonNull NetworkCapabilities nc, @NonNull LinkProperties lp, int score, in NetworkAgent() 418 new LinkProperties(lp), score, config, ni); in NetworkAgent() 647 public final void sendLinkProperties(@NonNull LinkProperties linkProperties) { in sendLinkProperties() [all …]
|
D | ITestNetworkManager.aidl | 20 import android.net.LinkProperties; 35 void setupTestNetwork(in String iface, in LinkProperties lp, in boolean isMetered, in setupTestNetwork()
|
/frameworks/libs/net/common/framework/android/net/util/ |
D | LinkPropertiesUtils.java | 22 import android.net.LinkProperties; 137 @Nullable LinkProperties left, @Nullable LinkProperties right) { in compareAddresses() 156 public static boolean isIdenticalAddresses(@NonNull LinkProperties left, in isIdenticalAddresses() 157 @NonNull LinkProperties right) { in isIdenticalAddresses() 171 public static boolean isIdenticalDnses(@NonNull LinkProperties left, in isIdenticalDnses() 172 @NonNull LinkProperties right) { in isIdenticalDnses() 194 public static boolean isIdenticalHttpProxy(@NonNull LinkProperties left, in isIdenticalHttpProxy() 195 @NonNull LinkProperties right) { in isIdenticalHttpProxy() 206 public static boolean isIdenticalInterfaceName(@NonNull LinkProperties left, in isIdenticalInterfaceName() 207 @NonNull LinkProperties right) { in isIdenticalInterfaceName() [all …]
|
/frameworks/base/tests/net/java/android/net/ |
D | ConnectivityDiagnosticsManagerTest.java | 92 final LinkProperties linkProperties = new LinkProperties(); in createSampleConnectivityReport() 109 new LinkProperties(), in createDefaultConnectivityReport() 154 final LinkProperties linkProperties = sampleReport.getLinkProperties(); in testConnectivityReportEquals() 163 new LinkProperties(), in testConnectivityReportEquals() 171 new LinkProperties(), in testConnectivityReportEquals() 187 new LinkProperties(), in testConnectivityReportEquals() 195 new LinkProperties(), in testConnectivityReportEquals() 206 final LinkProperties linkProperties = new LinkProperties(); in createSampleDataStallReport() 229 new LinkProperties(), in createDefaultDataStallReport() 241 final LinkProperties linkProperties = sampleReport.getLinkProperties(); in testDataStallReportEquals() [all …]
|
/frameworks/base/services/net/java/android/net/ip/ |
D | IpClientUtil.java | 22 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()
|
D | IpClientCallbacks.java | 21 import android.net.LinkProperties; 82 public void onProvisioningSuccess(LinkProperties newLp) {} in onProvisioningSuccess() 87 public void onProvisioningFailure(LinkProperties newLp) {} in onProvisioningFailure() 92 public void onLinkPropertiesChange(LinkProperties newLp) {} in onLinkPropertiesChange()
|
/frameworks/base/packages/Tethering/src/com/android/networkstack/tethering/ |
D | IPv6TetheringCoordinator.java | 21 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()
|
D | UpstreamNetworkState.java | 18 import android.net.LinkProperties; 29 public final LinkProperties linkProperties; 36 public UpstreamNetworkState(LinkProperties linkProperties, in UpstreamNetworkState()
|
D | OffloadController.java | 38 import android.net.LinkProperties; 97 private final HashMap<String, LinkProperties> mDownstreams; 100 private LinkProperties mUpstreamLinkProperties; 495 public void setUpstreamLinkProperties(LinkProperties lp) { in setUpstreamLinkProperties() 500 mUpstreamLinkProperties = (lp != null) ? new LinkProperties(lp) : null; in setUpstreamLinkProperties() 524 public void notifyDownstreamLinkProperties(LinkProperties lp) { in notifyDownstreamLinkProperties() 526 final LinkProperties oldLp = mDownstreams.put(ifname, new LinkProperties(lp)); in notifyDownstreamLinkProperties() 533 private void pushDownstreamState(LinkProperties oldLp, LinkProperties newLp) { in pushDownstreamState() 557 for (LinkProperties lp : mDownstreams.values()) { in pushAllDownstreamState() 564 final LinkProperties lp = mDownstreams.remove(ifname); in removeDownstreamInterface() [all …]
|
D | TetheringInterfaceUtils.java | 20 import android.net.LinkProperties; 47 final LinkProperties lp = ns.linkProperties; in getTetheringInterfaces() 88 private static String getInterfaceForDestination(LinkProperties lp, InetAddress dst) { in getInterfaceForDestination()
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | Nat464Xlat.java | 27 import android.net.LinkProperties; 125 LinkProperties lp = nai.linkProperties; in requiresClat() 145 LinkProperties lp = nai.linkProperties; in shouldStartClat() 287 LinkProperties lp = new LinkProperties(mNetwork.linkProperties); in stop() 409 public void fixupLinkProperties(@NonNull LinkProperties oldLp, @NonNull LinkProperties lp) { in fixupLinkProperties() 422 for (LinkProperties stacked: oldLp.getStackedLinks()) { in fixupLinkProperties() 430 private LinkProperties makeLinkProperties(LinkAddress clatAddress) { in makeLinkProperties() 431 LinkProperties stacked = new LinkProperties(); in makeLinkProperties() 489 LinkProperties lp = new LinkProperties(mNetwork.linkProperties); in handleInterfaceLinkStateChanged()
|
/frameworks/base/tests/net/java/com/android/server/connectivity/ |
D | Nat464XlatTest.java | 35 import android.net.LinkProperties; 101 mNai.linkProperties = new LinkProperties(); 147 LinkProperties oldLp = new LinkProperties(mNai.linkProperties); 185 mNai.linkProperties = new LinkProperties(oldLp); 200 ArgumentCaptor<LinkProperties> c = ArgumentCaptor.forClass(LinkProperties.class); 253 ArgumentCaptor<LinkProperties> c = ArgumentCaptor.forClass(LinkProperties.class); 343 ArgumentCaptor<LinkProperties> c = ArgumentCaptor.forClass(LinkProperties.class); 465 final LinkProperties emptyLp = new LinkProperties(); 466 LinkProperties fixedupLp; 468 fixedupLp = new LinkProperties(); [all …]
|
D | DnsManagerTest.java | 48 import android.net.LinkProperties; 154 LinkProperties lp = new LinkProperties(); in testTrackedValidationUpdates() 170 LinkProperties fixedLp = new LinkProperties(lp); in testTrackedValidationUpdates() 174 fixedLp = new LinkProperties(lp); in testTrackedValidationUpdates() 201 fixedLp = new LinkProperties(lp); in testTrackedValidationUpdates() 211 fixedLp = new LinkProperties(lp); in testTrackedValidationUpdates() 219 fixedLp = new LinkProperties(lp); in testTrackedValidationUpdates() 231 LinkProperties lp = new LinkProperties(); in testIgnoreUntrackedValidationUpdates() 338 final LinkProperties lp = new LinkProperties(); in testSendDnsConfiguration() 395 LinkProperties lp = new LinkProperties(); in testGetPrivateDnsConfigForNetwork()
|
/frameworks/base/packages/Tethering/tests/unit/src/com/android/networkstack/tethering/ |
D | IPv6TetheringCoordinatorTest.java | 39 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()
|
D | PrivateAddressCoordinatorTest.java | 31 import android.net.LinkProperties; 170 private LinkProperties buildUpstreamLinkProperties(boolean withIPv4, boolean withIPv6, in buildUpstreamLinkProperties() 182 final LinkProperties prop = new LinkProperties(); in buildUpstreamLinkProperties() 214 final LinkProperties v6OnlyMobileProp = buildUpstreamLinkProperties(false, true, true); in testNoConflictUpstreamPrefix() 219 final LinkProperties v4OnlyMobileProp = buildUpstreamLinkProperties(true, false, true); in testNoConflictUpstreamPrefix() 223 final LinkProperties v4v6MobileProp = buildUpstreamLinkProperties(true, true, true); in testNoConflictUpstreamPrefix() 227 final LinkProperties v6OnlyWifiProp = buildUpstreamLinkProperties(false, true, false); in testNoConflictUpstreamPrefix() 232 final LinkProperties v4OnlyWifiProp = buildUpstreamLinkProperties(true, false, false); in testNoConflictUpstreamPrefix()
|
D | OffloadControllerTest.java | 62 import android.net.LinkProperties; 290 final LinkProperties lp = new LinkProperties(); in testSetUpstreamLinkPropertiesWorking() 360 final LinkProperties stacked = new LinkProperties(); in testSetUpstreamLinkPropertiesWorking() 444 final LinkProperties lp = new LinkProperties(); in testGetForwardedStats() 531 final LinkProperties lp = new LinkProperties(); in testSetInterfaceQuota() 615 final LinkProperties usbLinkProperties = new LinkProperties(); in testAddRemoveDownstreams() 679 final LinkProperties upstreamLp = new LinkProperties(); in testControlCallbackOnStoppedUnsupportedFetchesAllStats() 712 final LinkProperties upstreamLp = new LinkProperties(); in testControlCallbackOnSupportAvailableFetchesAllStatsAndPushesAllParameters() 727 final LinkProperties usbLinkProperties = new LinkProperties(); in testControlCallbackOnSupportAvailableFetchesAllStatsAndPushesAllParameters() 734 final LinkProperties wifiLinkProperties = new LinkProperties(); in testControlCallbackOnSupportAvailableFetchesAllStatsAndPushesAllParameters() [all …]
|
/frameworks/base/telephony/java/android/telephony/ |
D | PreciseDataConnectionState.java | 27 import android.net.LinkProperties; 62 private LinkProperties mLinkProperties = null; 78 @Nullable LinkProperties linkProperties, in PreciseDataConnectionState() 101 @Nullable LinkProperties linkProperties, in PreciseDataConnectionState() 131 mLinkProperties = (LinkProperties) in.readParcelable(null); in PreciseDataConnectionState() 229 public LinkProperties getDataConnectionLinkProperties() { in getDataConnectionLinkProperties() 237 public LinkProperties getLinkProperties() { in getLinkProperties()
|
/frameworks/libs/net/common/tests/unit/src/android/net/util/ |
D | LinkPropertiesUtilsTest.java | 26 import android.net.LinkProperties; 67 private LinkProperties createTestObject() { in createTestObject() 68 final LinkProperties lp = new LinkProperties(); in createTestObject() 83 final LinkProperties source = createTestObject(); in testLinkPropertiesIdenticalEqual() 84 final LinkProperties target = new LinkProperties(source); in testLinkPropertiesIdenticalEqual() 171 final LinkProperties source = createTestObject(); in testCompareAddresses() 172 final LinkProperties target = new LinkProperties(source); in testCompareAddresses()
|
/frameworks/base/core/java/com/android/server/net/ |
D | NetlinkTracker.java | 21 import android.net.LinkProperties; 78 private final LinkProperties mLinkProperties; 88 mLinkProperties = new LinkProperties(); in NetlinkTracker() 193 public synchronized LinkProperties getLinkProperties() { in getLinkProperties() 194 return new LinkProperties(mLinkProperties); in getLinkProperties() 300 public synchronized void setDnsServersOn(LinkProperties lp) { in setDnsServersOn()
|
/frameworks/base/services/core/java/com/android/server/ |
D | TestNetworkService.java | 30 import android.net.LinkProperties; 155 @NonNull private final LinkProperties mLp; 168 @NonNull LinkProperties lp, 231 @Nullable LinkProperties lp, 260 lp = new LinkProperties(); 262 lp = new LinkProperties(lp); 305 @Nullable LinkProperties lp,
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/deviceinfo/ |
D | AbstractIpAddressPreferenceController.java | 21 import android.net.LinkProperties; 96 LinkProperties prop = cm.getActiveLinkProperties(); in getDefaultIpAddresses() 100 private static String formatIpAddresses(LinkProperties prop) { in formatIpAddresses()
|
/frameworks/opt/net/ethernet/java/com/android/server/ethernet/ |
D | EthernetNetworkFactory.java | 29 import android.net.LinkProperties; 253 private LinkProperties mLinkProperties = new LinkProperties(); 327 public void onProvisioningSuccess(LinkProperties newLp) { in onProvisioningSuccess() 332 public void onProvisioningFailure(LinkProperties newLp) { in onProvisioningFailure() 337 public void onLinkPropertiesChange(LinkProperties newLp) { in onLinkPropertiesChange() 457 void onIpLayerStarted(LinkProperties linkProperties) { in onIpLayerStarted() 487 void onIpLayerStopped(LinkProperties linkProperties) { in onIpLayerStopped() 498 void updateLinkProperties(LinkProperties linkProperties) { in updateLinkProperties()
|