Home
last modified time | relevance | path

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

1234

/frameworks/base/tests/net/java/android/net/
DLinkPropertiesTest.java26 import android.net.LinkProperties;
27 import android.net.LinkProperties.CompareResult;
28 import android.net.LinkProperties.ProvisioningChange;
72 public void assertLinkPropertiesEqual(LinkProperties source, LinkProperties target) { in assertLinkPropertiesEqual()
114 LinkProperties source = new LinkProperties(); in testEqualsNull()
115 LinkProperties target = new LinkProperties(); in testEqualsNull()
123 LinkProperties source = new LinkProperties(); in testEqualsSameOrder()
136 LinkProperties target = new LinkProperties(); in testEqualsSameOrder()
214 LinkProperties source = new LinkProperties(); in testEqualsDifferentOrder()
227 LinkProperties target = new LinkProperties(); in testEqualsDifferentOrder()
[all …]
/frameworks/base/core/java/android/net/
DLinkProperties.java48 public final class LinkProperties implements Parcelable { class
69 private Hashtable<String, LinkProperties> mStackedLinks =
70 new Hashtable<String, LinkProperties>();
121 LinkProperties before, LinkProperties after) { in compareProvisioning()
160 public LinkProperties() { in LinkProperties() method in LinkProperties
166 public LinkProperties(LinkProperties source) { in LinkProperties() method in LinkProperties
180 for (LinkProperties l: source.mStackedLinks.values()) { in LinkProperties()
219 for (LinkProperties stacked: mStackedLinks.values()) { in getAllInterfaceNames()
252 for (LinkProperties stacked: mStackedLinks.values()) { in getAllAddresses()
327 for (LinkProperties stacked: mStackedLinks.values()) { in getAllLinkAddresses()
[all …]
DIConnectivityManager.aidl20 import android.net.LinkProperties;
59 LinkProperties getActiveLinkProperties(); in getActiveLinkProperties()
60 LinkProperties getLinkPropertiesForType(int networkType); in getLinkPropertiesForType()
61 LinkProperties getLinkProperties(in Network network); in getLinkProperties()
144 int registerNetworkAgent(in Messenger messenger, in NetworkInfo ni, in LinkProperties lp, in registerNetworkAgent()
DNetworkAgent.java195 NetworkCapabilities nc, LinkProperties lp, int score) { in NetworkAgent()
200 NetworkCapabilities nc, LinkProperties lp, int score, NetworkMisc misc) { in NetworkAgent()
212 new LinkProperties(lp), new NetworkCapabilities(nc), score, misc); in NetworkAgent()
347 public void sendLinkProperties(LinkProperties linkProperties) { in sendLinkProperties()
348 queueOrSendMessage(EVENT_NETWORK_PROPERTIES_CHANGED, new LinkProperties(linkProperties)); in sendLinkProperties()
/frameworks/base/services/core/java/com/android/server/connectivity/tethering/
DIPv6TetheringCoordinator.java22 import android.net.LinkProperties;
148 new LinkProperties(ns.linkProperties), in setUpstreamNetworkState()
160 final LinkProperties lp = getInterfaceIPv6LinkProperties(sm); in updateIPv6TetheringInterfaces()
166 private LinkProperties getInterfaceIPv6LinkProperties(TetherInterfaceStateMachine sm) { in getInterfaceIPv6LinkProperties()
192 final LinkProperties lp = getIPv6OnlyLinkProperties( in getInterfaceIPv6LinkProperties()
209 private static LinkProperties getIPv6OnlyLinkProperties(LinkProperties lp) { in getIPv6OnlyLinkProperties()
210 final LinkProperties v6only = new LinkProperties(); in getIPv6OnlyLinkProperties()
259 private static LinkProperties getUniqueLocalConfig(byte[] ulp, short subnetId) { in getUniqueLocalConfig()
260 final LinkProperties lp = new LinkProperties(); in getUniqueLocalConfig()
DOffloadController.java30 import android.net.LinkProperties;
85 private final HashMap<String, LinkProperties> mDownstreams;
88 private LinkProperties mUpstreamLinkProperties;
361 public void setUpstreamLinkProperties(LinkProperties lp) { in setUpstreamLinkProperties()
366 mUpstreamLinkProperties = (lp != null) ? new LinkProperties(lp) : null; in setUpstreamLinkProperties()
386 public void notifyDownstreamLinkProperties(LinkProperties lp) { in notifyDownstreamLinkProperties()
388 final LinkProperties oldLp = mDownstreams.put(ifname, new LinkProperties(lp)); in notifyDownstreamLinkProperties()
395 private void pushDownstreamState(LinkProperties oldLp, LinkProperties newLp) { in pushDownstreamState()
419 for (LinkProperties lp : mDownstreams.values()) { in pushAllDownstreamState()
425 final LinkProperties lp = mDownstreams.remove(ifname); in removeDownstreamInterface()
[all …]
DTetheringInterfaceUtils.java20 import android.net.LinkProperties;
43 final LinkProperties lp = ns.linkProperties; in getTetheringInterfaces()
84 private static String getInterfaceForDestination(LinkProperties lp, InetAddress dst) { in getInterfaceForDestination()
DIControlsTethering.java19 import android.net.LinkProperties;
65 public void updateLinkProperties(TetherInterfaceStateMachine who, LinkProperties newLp) {} in updateLinkProperties()
DTetherInterfaceStateMachine.java29 import android.net.LinkProperties;
121 private final LinkProperties mLinkProperties;
135 private LinkProperties mLastIPv6LinkProperties;
153 mLinkProperties = new LinkProperties(); in TetherInterfaceStateMachine()
179 public LinkProperties linkProperties() { return new LinkProperties(mLinkProperties); } in linkProperties()
302 private void updateUpstreamIPv6LinkProperties(LinkProperties v6only) { in updateUpstreamIPv6LinkProperties()
466 TetherInterfaceStateMachine.this, new LinkProperties(mLinkProperties)); in sendLinkProperties()
501 updateUpstreamIPv6LinkProperties((LinkProperties) message.obj); in processMessage()
565 updateUpstreamIPv6LinkProperties((LinkProperties) message.obj); in processMessage()
/frameworks/base/services/core/java/com/android/server/connectivity/
DNat464Xlat.java22 import android.net.LinkProperties;
231 public void fixupLinkProperties(LinkProperties oldLp, LinkProperties lp) { in fixupLinkProperties()
240 for (LinkProperties stacked: oldLp.getStackedLinks()) { in fixupLinkProperties()
248 private LinkProperties makeLinkProperties(LinkAddress clatAddress) { in makeLinkProperties()
249 LinkProperties stacked = new LinkProperties(); in makeLinkProperties()
293 LinkProperties lp = new LinkProperties(mNetwork.linkProperties); in handleInterfaceLinkStateChanged()
316 LinkProperties lp = new LinkProperties(mNetwork.linkProperties); in handleInterfaceRemoved()
/frameworks/base/tests/net/java/com/android/server/connectivity/
DDnsManagerTest.java36 import android.net.LinkProperties;
102 LinkProperties lp = new LinkProperties(); in testTrackedValidationUpdates()
113 LinkProperties fixedLp = new LinkProperties(lp); in testTrackedValidationUpdates()
117 fixedLp = new LinkProperties(lp); in testTrackedValidationUpdates()
141 fixedLp = new LinkProperties(lp); in testTrackedValidationUpdates()
151 fixedLp = new LinkProperties(lp); in testTrackedValidationUpdates()
159 fixedLp = new LinkProperties(lp); in testTrackedValidationUpdates()
171 LinkProperties lp = new LinkProperties(); in testIgnoreUntrackedValidationUpdates()
DNat464XlatTest.java32 import android.net.LinkProperties;
76 mNai.linkProperties = new LinkProperties(); in setUp()
116 ArgumentCaptor<LinkProperties> c = ArgumentCaptor.forClass(LinkProperties.class); in testNormalStartAndStop()
155 ArgumentCaptor<LinkProperties> c = ArgumentCaptor.forClass(LinkProperties.class); in testClatdCrashWhileRunning()
/frameworks/base/services/net/java/android/net/ip/
DIpClient.java28 import android.net.LinkProperties.ProvisioningChange;
29 import android.net.LinkProperties;
162 public void onProvisioningSuccess(LinkProperties newLp) {} in onProvisioningSuccess()
163 public void onProvisioningFailure(LinkProperties newLp) {} in onProvisioningFailure()
166 public void onLinkPropertiesChange(LinkProperties newLp) {} in onLinkPropertiesChange()
195 private LinkProperties mCallbackLinkProperties;
197 public LinkProperties waitForProvisioning() { in waitForProvisioning()
203 public void onProvisioningSuccess(LinkProperties newLp) { in onProvisioningSuccess()
209 public void onProvisioningFailure(LinkProperties newLp) { in onProvisioningFailure()
260 public void onProvisioningSuccess(LinkProperties newLp) { in onProvisioningSuccess()
[all …]
DIpReachabilityMonitor.java21 import android.net.LinkProperties;
22 import android.net.LinkProperties.ProvisioningChange;
177 private LinkProperties mLinkProperties = new LinkProperties();
257 public void updateLinkProperties(LinkProperties lp) {
265 mLinkProperties = new LinkProperties(lp);
295 final LinkProperties whatIfLp = new LinkProperties(mLinkProperties);
317 final ProvisioningChange delta = LinkProperties.compareProvisioning(
/frameworks/base/telephony/java/android/telephony/
DPreciseDataConnectionState.java22 import android.net.LinkProperties;
48 private LinkProperties mLinkProperties = null;
58 LinkProperties linkProperties, String failCause) { in PreciseDataConnectionState()
85 mLinkProperties = (LinkProperties)in.readParcelable(null); in PreciseDataConnectionState()
150 public LinkProperties getDataConnectionLinkProperties() { in getDataConnectionLinkProperties()
/frameworks/base/core/java/com/android/server/net/
DNetlinkTracker.java20 import android.net.LinkProperties;
77 private final LinkProperties mLinkProperties;
86 mLinkProperties = new LinkProperties(); in NetlinkTracker()
190 public synchronized LinkProperties getLinkProperties() { in getLinkProperties()
191 return new LinkProperties(mLinkProperties); in getLinkProperties()
296 public synchronized void setDnsServersOn(LinkProperties lp) { in setDnsServersOn()
/frameworks/opt/net/ethernet/java/com/android/server/ethernet/
DEthernetNetworkFactory.java25 import android.net.LinkProperties;
231 private LinkProperties mLinkProperties = new LinkProperties();
241 public void onProvisioningSuccess(LinkProperties newLp) {
246 public void onProvisioningFailure(LinkProperties newLp) {
251 public void onLinkPropertiesChange(LinkProperties newLp) {
303 void onIpLayerStarted(LinkProperties linkProperties) { in onIpLayerStarted()
328 void onIpLayerStopped(LinkProperties linkProperties) { in onIpLayerStopped()
335 void updateLinkProperties(LinkProperties linkProperties) { in updateLinkProperties()
/frameworks/base/tests/net/java/com/android/server/connectivity/tethering/
DOffloadControllerTest.java49 import android.net.LinkProperties;
260 final LinkProperties lp = new LinkProperties(); in testSetUpstreamLinkPropertiesWorking()
330 final LinkProperties stacked = new LinkProperties(); in testSetUpstreamLinkPropertiesWorking()
419 final LinkProperties lp = new LinkProperties(); in testGetForwardedStats()
492 final LinkProperties lp = new LinkProperties(); in testSetInterfaceQuota()
577 final LinkProperties usbLinkProperties = new LinkProperties(); in testAddRemoveDownstreams()
636 final LinkProperties upstreamLp = new LinkProperties(); in testControlCallbackOnStoppedUnsupportedFetchesAllStats()
668 final LinkProperties upstreamLp = new LinkProperties(); in testControlCallbackOnSupportAvailableFetchesAllStatsAndPushesAllParameters()
683 final LinkProperties usbLinkProperties = new LinkProperties(); in testControlCallbackOnSupportAvailableFetchesAllStatsAndPushesAllParameters()
689 final LinkProperties wifiLinkProperties = new LinkProperties(); in testControlCallbackOnSupportAvailableFetchesAllStatsAndPushesAllParameters()
DTetherInterfaceStateMachineTest.java44 import android.net.LinkProperties;
80 private final ArgumentCaptor<LinkProperties> mLinkPropertiesCaptor =
81 ArgumentCaptor.forClass(LinkProperties.class);
120 verify(mTetherHelper).updateLinkProperties(eq(mTestedSm), any(LinkProperties.class)); in startsOutAvailable()
151 verify(mTetherHelper).updateLinkProperties(eq(mTestedSm), any(LinkProperties.class)); in handlesImmediateInterfaceDown()
165 eq(mTestedSm), any(LinkProperties.class)); in canBeTethered()
180 eq(mTestedSm), any(LinkProperties.class)); in canUnrequestTethering()
278 eq(mTestedSm), any(LinkProperties.class)); in canUnrequestTetheringWithUpstream()
381 private void assertIPv4AddressAndDirectlyConnectedRoute(LinkProperties lp) { in assertIPv4AddressAndDirectlyConnectedRoute()
397 private void assertNoAddressesNorRoutes(LinkProperties lp) { in assertNoAddressesNorRoutes()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/deviceinfo/
DAbstractIpAddressPreferenceController.java21 import android.net.LinkProperties;
95 LinkProperties prop = cm.getActiveLinkProperties(); in getDefaultIpAddresses()
99 private static String formatIpAddresses(LinkProperties prop) { in formatIpAddresses()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DDcAsyncChannel.java19 import android.net.LinkProperties;
258 public LinkProperties rspLinkProperties(Message response) { in rspLinkProperties()
259 LinkProperties retVal = (LinkProperties) response.obj; in rspLinkProperties()
269 public LinkProperties getLinkPropertiesSync() { in getLinkPropertiesSync()
270 LinkProperties value; in getLinkPropertiesSync()
/frameworks/base/telephony/java/android/telephony/data/
DIDataService.aidl19 import android.net.LinkProperties;
31 boolean allowRoaming, int reason, in LinkProperties linkProperties, in setupDataCall()
/frameworks/base/telephony/java/com/android/internal/telephony/
DITelephonyRegistry.aidl20 import android.net.LinkProperties;
50 String reason, String apn, String apnType, in LinkProperties linkProperties, in notifyDataConnection()
53 String reason, String apn, String apnType, in LinkProperties linkProperties, in notifyDataConnectionForSubscriber()
/frameworks/opt/net/lowpan/service/java/com/android/server/lowpan/
DLowpanInterfaceTracker.java24 import android.net.LinkProperties;
99 private LinkProperties mLinkProperties;
137 public void onProvisioningSuccess(LinkProperties newLp) { in onProvisioningSuccess()
142 public void onProvisioningFailure(LinkProperties newLp) { in onProvisioningFailure()
147 public void onLinkPropertiesChange(LinkProperties newLp) { in onLinkPropertiesChange()
295 mLinkProperties = (LinkProperties) message.obj; in processMessage()
542 mLinkProperties = new LinkProperties(); in LowpanInterfaceTracker()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/
DOsuNetworkConnectionTest.java34 import android.net.LinkProperties;
99 private LinkProperties createProvisionedLinkProperties() { in createProvisionedLinkProperties()
104 LinkProperties lp4 = new LinkProperties(); in createProvisionedLinkProperties()
242 callback.onLinkPropertiesChanged(mCurrentNetwork, new LinkProperties()); in verifyNetworkConnectionTimeout()

1234