Home
last modified time | relevance | path

Searched refs:getNetId (Results 1 – 25 of 26) sorted by relevance

12

/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DLingerMonitor.java120 if (mNotifications.valueAt(i) == toNai.network.getNetId()) { in getNotificationSource()
128 return mEverNotified.get(nai.network.getNetId(), false); in everNotified()
158 mNotifier.showNotification(fromNai.network.getNetId(), NotificationType.NETWORK_SWITCH, in showNotification()
212 mNotifications.put(fromNai.network.getNetId(), toNai.network.getNetId()); in notify()
213 mEverNotified.put(fromNai.network.getNetId(), true); in notify()
299 mNotifications.delete(nai.network.getNetId()); in noteDisconnect()
300 mEverNotified.delete(nai.network.getNetId()); in noteDisconnect()
DNat464Xlat.java203 addrStr = mClatCoordinator.clatStart(baseIface, getNetId(), mNat64PrefixInUse); in enterStartingState()
318 mDnsResolver.startPrefix64Discovery(getNetId()); in startPrefixDiscovery()
320 Log.e(TAG, "Error starting prefix discovery on netId " + getNetId() + ": " + e); in startPrefixDiscovery()
327 mDnsResolver.stopPrefix64Discovery(getNetId()); in stopPrefixDiscovery()
329 Log.e(TAG, "Error stopping prefix discovery on netId " + getNetId() + ": " + e); in stopPrefixDiscovery()
344 mDnsResolver.setPrefix64(getNetId(), prefixString); in setPrefix64()
346 Log.e(TAG, "Error setting NAT64 prefix on netId " + getNetId() + " to " in setPrefix64()
643 protected int getNetId() { in getNetId() method in Nat464Xlat
644 return mNetwork.network.getNetId(); in getNetId()
DDnsManager.java280 mPrivateDnsMap.remove(network.getNetId()); in removeNetwork()
281 mPrivateDnsValidationMap.remove(network.getNetId()); in removeNetwork()
282 mNetworkCapabilitiesMap.remove(network.getNetId()); in removeNetwork()
283 mLinkPropertiesMap.remove(network.getNetId()); in removeNetwork()
289 return mPrivateDnsMap.getOrDefault(network.getNetId(), PRIVATE_DNS_OFF); in getPrivateDnsConfig()
295 ? mPrivateDnsMap.put(network.getNetId(), cfg) in updatePrivateDns()
296 : mPrivateDnsMap.remove(network.getNetId()); in updatePrivateDns()
DNetworkAgentInfo.java1435 "NETWORK_LINGER_COMPLETE." + network.getNetId() /* cmdName */,
1648 return "[" + network.getNetId() + " "
DKeepaliveStatsTracker.java214 final int netId = network.getNetId(); in getKeepaliveId()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiScoreReportTest.java248 when(mNetwork.getNetId()).thenReturn(0); in setUp()
459 when(mNetwork.getNetId()).thenReturn(TEST_NETWORK_ID); in testExternalScorerWhileLingering_sendLingeringScore()
1064 when(mNetwork.getNetId()).thenReturn(TEST_NETWORK_ID);
1076 when(mNetwork.getNetId()).thenReturn(TEST_NETWORK_ID); in testClientStartOnRegWhileActive()
1095 when(mNetwork.getNetId()).thenReturn(TEST_NETWORK_ID); in testClientGetSessionIdOnStop()
1135 when(mNetwork.getNetId()).thenReturn(TEST_NETWORK_ID); in testFrameworkGetsUpdatesScore()
1200 when(mNetwork.getNetId()).thenReturn(TEST_NETWORK_ID); in testFrameworkTriggersUpdateOfWifiUsabilityStats()
1241 when(mNetwork.getNetId()).thenReturn(TEST_NETWORK_ID); in askForNudCheckWhenExternalScoreBreaches()
1278 when(mNetwork.getNetId()).thenReturn(TEST_NETWORK_ID); in bssidBlockListDoesnotHappenWhenExitingIsLessThanMinDuration()
1308 when(mNetwork.getNetId()).thenReturn(TEST_NETWORK_ID); in bssidBlockListHappensWhenExitingIsLongerThanMinDuration()
[all …]
/packages/modules/NetworkStack/apishim/30/com/android/networkstack/apishim/api30/
DNetworkShimImpl.java53 public int getNetId() { in getNetId() method in NetworkShimImpl
54 return mNetwork.getNetId(); in getNetId()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/connectivity/
DConnectivityFragment.java223 if (def != null && def.getNetId() != netId) { in bindToNetwork()
387 ni.mNetId = n.getNetId(); in getNetworkItem()
413 ni.mRequested = (mNetworkCallbacks.get(n.getNetId()) != null); in getNetworkItem()
438 mNetworks.put(networks[i].getNetId(), networks[i]); in refreshNetworks()
592 return net1 != null && net2 != null && net1.getNetId() == net2.getNetId(); in sameNetworkId()
/packages/modules/NetworkStack/apishim/common/com/android/networkstack/apishim/common/
DNetworkShim.java33 int getNetId() throws UnsupportedApiLevelException; in getNetId() method
/packages/modules/Connectivity/tests/common/java/android/net/
DNetworkTest.java166 assertEquals(1234, new Network(1234).getNetId()); in testGetNetId()
167 assertEquals(2345, new Network(2345, true).getNetId()); in testGetNetId()
/packages/modules/NetworkStack/apishim/29/com/android/networkstack/apishim/api29/
DNetworkShimImpl.java54 public int getNetId() throws UnsupportedApiLevelException { in getNetId() method in NetworkShimImpl
/packages/services/Mms/src/com/android/mms/service/
DMmsNetworkManager.java358 return mNetwork.getNetId(); in acquireNetwork()
396 return mNetwork.getNetId(); in acquireNetwork()
DMmsRequest.java153 mNetworkIdToApn.put(connectionState.getNetId(), apnSetting); in onPreciseDataConnectionStateChanged()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/net/
DIkeNetworkCallbackBase.java83 + mCurrNetwork.getNetId()); in isCurrentAddressLost()
/packages/modules/Connectivity/service/src/com/android/server/
DConnectivityService.java2275 return getNetworkAgentInfoForNetId(network.getNetId());
2387 "%s %d(%d) on netId %d: %s", action, nri.mAsUid, requestId, net.getNetId(),
3302 netId = nai.network.getNetId();
4238 pw.println(defaultNai.network.getNetId());
4524 Arrays.sort(networks, Comparator.comparingInt(nai -> nai.network.getNetId()));
4897 mNotifier.clearNotification(nai.network.getNetId(),
4899 mNotifier.clearNotification(nai.network.getNetId(),
4901 mNotifier.clearNotification(nai.network.getNetId(),
4903 mNotifier.clearNotification(nai.network.getNetId(),
4999 mNetId = nai.network.getNetId();
[all …]
DTestNetworkService.java243 mTestNetworkTracker.remove(getNetwork().getNetId()); in teardown()
366 mTestNetworkTracker.put(agent.getNetwork().getNetId(), agent); in setupTestNetwork()
/packages/modules/Connectivity/framework/src/android/net/
DNetworkUtils.java85 return netHandle == 0L ? NETID_UNSET : Network.fromNetworkHandle(netHandle).getNetId(); in getBoundNetworkForProcess()
DNetwork.java179 public int getNetId() { in getNetId() method in Network
/packages/modules/NetworkStack/src/com/android/networkstack/netlink/
DTcpSocketTracker.java237 final int netId = NetworkShimImpl.newInstance(mNetwork).getNetId(); in getNetworkMarkMask()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DNat464XlatTest.java107 @Override protected int getNetId() { in makeNat464Xlat()
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DConnectivityServiceTest.java1586 new NativeUidRangeConfig(mMockVpn.getNetwork().getNetId(), in registerAgent()
1589 mMockVpn.getNetwork().getNetId() == config.netId in registerAgent()
3973 agent.getNetwork().getNetId(), INetd.PERMISSION_NONE));
3991 verify(mMockNetd, never()).networkDestroy(network.getNetId());
4003 verify(mMockNetd).networkDestroy(agent.getNetwork().getNetId());
11235 int netId = network.getNetId();
13498 new NativeUidRangeConfig(mMockVpn.getNetwork().getNetId(),
13502 new NativeUidRangeConfig(mMockVpn.getNetwork().getNetId(),
15021 mService.mNoServiceNetwork.network.getNetId(), 1 /* times */,
15038 mService.mNoServiceNetwork.network.getNetId(), 1 /* times */,
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiScoreReport.java723 netId = network.getNetId(); in getCurrentNetId()
/packages/modules/Connectivity/service-t/src/com/android/server/
DIpSecService.java1754 (c.getNetwork() != null) ? c.getNetwork().getNetId() : 0, in createOrUpdateTransform()
/packages/modules/Connectivity/framework/api/
Dsystem-current.txt228 method public int getNetId();
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DTethering.java1896 final int netId = (network != null) ? network.getNetId() : NETID_UNSET; in setDnsForwarders()

12