Home
last modified time | relevance | path

Searched refs:trackingDefault (Results 1 – 1 of 1) sorted by relevance

/frameworks/base/packages/Tethering/tests/unit/src/com/android/networkstack/tethering/
DUpstreamNetworkMonitorTest.java146 assertEquals(1, mCM.trackingDefault.size()); in testDefaultNetworkIsTracked()
572 public Set<NetworkCallback> trackingDefault = new HashSet<>(); field in UpstreamNetworkMonitorTest.TestConnectivityManager
586 && trackingDefault.isEmpty() in hasNoCallbacks()
594 && (trackingDefault.size() == 1) in onlyHasDefaultCallbacks()
622 for (NetworkCallback cb : trackingDefault) { in makeDefaultNetwork()
638 assertFalse(trackingDefault.contains(cb)); in requestNetwork()
639 trackingDefault.add(cb); in requestNetwork()
689 if (trackingDefault.contains(cb)) { in unregisterNetworkCallback()
690 trackingDefault.remove(cb); in unregisterNetworkCallback()
702 assertFalse(trackingDefault.contains(cb)); in unregisterNetworkCallback()