/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/ |
D | TestConnectivityManager.java | 143 TestNetworkAgent defaultNetwork) { in sendDefaultNetworkBroadcasts() argument 147 if (defaultNetwork != null) { in sendDefaultNetworkBroadcasts() 148 sendConnectivityAction(defaultNetwork.legacyType, true /* connected */); in sendDefaultNetworkBroadcasts() 153 TestNetworkAgent defaultNetwork) { in sendDefaultNetworkCallbacks() argument 156 if (defaultNetwork != null) { in sendDefaultNetworkCallbacks() 157 nri.handler.post(() -> cb.onAvailable(defaultNetwork.networkId)); in sendDefaultNetworkCallbacks() 159 defaultNetwork.networkId, defaultNetwork.networkCapabilities)); in sendDefaultNetworkCallbacks() 161 defaultNetwork.networkId, defaultNetwork.linkProperties)); in sendDefaultNetworkCallbacks()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/net/ |
D | NetworkStatsBaseTest.java | 60 int metered, int roaming, int defaultNetwork, long rxBytes, long rxPackets, in assertValues() argument 85 if (defaultNetwork == DEFAULT_NETWORK_ALL) { in assertValues() 89 defaultNetworks = new int[] {defaultNetwork}; in assertValues()
|
D | NetworkStatsFactoryTest.java | 560 int tag, int metered, int roaming, int defaultNetwork, long rxBytes, long rxPackets, in assertStatsEntry() argument 562 final int i = stats.findIndex(iface, uid, set, tag, metered, roaming, defaultNetwork); in assertStatsEntry() 567 iface, uid, set, tag, metered, roaming, defaultNetwork)); in assertStatsEntry()
|
D | NetworkStatsServiceTest.java | 1632 int roaming, int defaultNetwork, long rxBytes, long rxPackets, long txBytes, 1643 assertValues(stats, IFACE_ALL, uid, set, TAG_NONE, metered, roaming, defaultNetwork,
|
/packages/apps/Settings/src/com/android/settings/network/ |
D | PrivateDnsPreferenceController.java | 105 final Network defaultNetwork = mConnectivityManager.getActiveNetwork(); in onStart() local 106 if (defaultNetwork != null) { in onStart() 107 mLatestLinkProperties = mConnectivityManager.getLinkProperties(defaultNetwork); in onStart()
|
/packages/modules/Connectivity/tests/unit/java/android/net/ |
D | NetworkStatsTest.java | 1041 int tag, int metered, int roaming, int defaultNetwork, long rxBytes, long rxPackets, in assertContains() argument 1043 int index = stats.findIndex(iface, uid, set, tag, metered, roaming, defaultNetwork); in assertContains() 1045 assertValues(stats, index, iface, uid, set, tag, metered, roaming, defaultNetwork, in assertContains() 1050 int tag, int metered, int roaming, int defaultNetwork, long rxBytes, long rxPackets, in assertValues() argument 1053 assertValues(entry, iface, uid, set, tag, metered, roaming, defaultNetwork); in assertValues() 1059 int roaming, int defaultNetwork) { in assertValues() argument 1066 assertEquals(defaultNetwork, entry.defaultNetwork); in assertValues()
|
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
D | ConnectivityManagerTest.java | 785 final Network defaultNetwork = defaultTrackingCallback.waitForAvailable(); in testRegisterNetworkCallback() local 787 defaultNetwork); in testRegisterNetworkCallback() 795 assertEquals(defaultNetwork, perUidNetwork); in testRegisterNetworkCallback() 799 assertEquals(defaultNetwork, bestMatchingNetwork); in testRegisterNetworkCallback() 2129 final Network defaultNetwork = mCm.getActiveNetwork(); 2133 callback.expectAvailableCallbacks(defaultNetwork); 2140 myUidCallback.expectBlockedStatusCallback(defaultNetwork, BLOCKED_REASON_LOCKDOWN_VPN); 2145 otherUidCallback.expectBlockedStatusCallback(defaultNetwork, BLOCKED_REASON_LOCKDOWN_VPN); 2154 myUidCallback.expectBlockedStatusCallback(defaultNetwork, BLOCKED_REASON_NONE); 2155 otherUidCallback.expectBlockedStatusCallback(defaultNetwork, BLOCKED_REASON_NONE);
|
D | NetworkAgentTest.kt | 672 val defaultNetwork = mCM.activeNetwork in testSetUnderlyingNetworksAndVpnSpecifier() constant 673 assertNotNull(defaultNetwork) in testSetUnderlyingNetworksAndVpnSpecifier() 674 val defaultNetworkCapabilities = mCM.getNetworkCapabilities(defaultNetwork) in testSetUnderlyingNetworksAndVpnSpecifier()
|
/packages/modules/Connectivity/tests/cts/hostside/app/src/com/android/cts/net/hostside/ |
D | VpnTest.java | 721 final Network defaultNetwork = mCM.getActiveNetwork(); in testDefault() local 736 callback.expectAvailableCallbacks(defaultNetwork, false /* suspended */, in testDefault() 761 assertNotEqual(defaultNetwork, vpnNetwork); in testDefault()
|
/packages/modules/Connectivity/service/src/com/android/server/ |
D | ConnectivityService.java | 5357 final Network defaultNetwork = getNetwork(getDefaultNetworkForUid(ownerUid)); in underlyingNetworksOrDefault() local 5358 if (underlyingNetworks == null && defaultNetwork != null) { in underlyingNetworksOrDefault() 5360 underlyingNetworks = new Network[] { defaultNetwork }; in underlyingNetworksOrDefault() 5474 final NetworkAgentInfo defaultNetwork = getDefaultNetwork(); in getLegacyLockdownNai() local 5475 if (defaultNetwork == null || !defaultNetwork.network.equals(underlying[0])) { in getLegacyLockdownNai()
|
/packages/modules/DnsResolver/tests/ |
D | resolv_integration_test.cpp | 6577 ScopedPhysicalNetwork defaultNetwork{NETID_UNSET, "Default"}; in TEST_F() local 6588 {&defaultNetwork, bypassableVpnNetId, bypassableVpnPair->dnsServer}, in TEST_F() 6605 std::vector<ScopedNetwork*> nwVec{&defaultNetwork, &underlyingNetwork, in TEST_F()
|
/packages/modules/Connectivity/Tethering/apex/hiddenapi/ |
D | hiddenapi-max-target-o-low-priority.txt | 955 Landroid/net/NetworkStats$Entry;->defaultNetwork:I
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/ |
D | ConnectivityServiceTest.java | 11473 final Network defaultNetwork = defaultRequest.getSatisfier() == null in verifyMultipleDefaultNetworksTracksCorrectly() local 11479 defaultNetwork); in verifyMultipleDefaultNetworksTracksCorrectly() 11484 assertEquals(expectedPerAppNetwork, defaultNetwork); in verifyMultipleDefaultNetworksTracksCorrectly()
|