Home
last modified time | relevance | path

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

/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DUpstreamNetworkMonitorTest.java193 assertEquals(0, mCM.mRequested.size()); in testRequestsMobileNetwork()
197 assertEquals(0, mCM.mRequested.size()); in testRequestsMobileNetwork()
201 assertEquals(0, mCM.mRequested.size()); in testRequestsMobileNetwork()
216 assertEquals(0, mCM.mRequested.size()); in testDuplicateMobileRequestsIgnored()
222 assertEquals(0, mCM.mRequested.size()); in testDuplicateMobileRequestsIgnored()
252 assertEquals(0, mCM.mRequested.size()); in testRequestsDunNetwork()
256 assertEquals(0, mCM.mRequested.size()); in testRequestsDunNetwork()
260 assertEquals(0, mCM.mRequested.size()); in testRequestsDunNetwork()
387 assertEquals(0, mCM.mRequested.size()); in testGetCurrentPreferredUpstream()
393 assertEquals(0, mCM.mRequested.size()); in testGetCurrentPreferredUpstream()
[all …]
DTestConnectivityManager.java78 final Map<NetworkCallback, NetworkRequestInfo> mRequested = new ArrayMap<>(); field in TestConnectivityManager
110 && mRequested.isEmpty() in hasNoCallbacks()
118 && mRequested.isEmpty() in onlyHasDefaultCallbacks()
215 assertFalse(mRequested.containsKey(cb)); in requestNetwork()
216 mRequested.put(cb, new NetworkRequestInfo(req, h)); in requestNetwork()
245 assertFalse(mRequested.containsKey(cb)); in requestNetwork()
246 mRequested.put(cb, new NetworkRequestInfo(newReq, h)); in requestNetwork()
282 } else if (mRequested.containsKey(cb)) { in unregisterNetworkCallback()
283 mRequested.remove(cb); in unregisterNetworkCallback()
293 assertFalse(mRequested.containsKey(cb)); in unregisterNetworkCallback()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/connectivity/
DNetworkListAdapter.java101 vh.netActive.setBackgroundColor(mNetworkList[position].mRequested in getView()
106 setToggleButton(position, vh.requestButton, mNetworkList[position].mRequested, in getView()
145 if (mNetworkList[position].mRequested) { in onRequestClicked()
147 mNetworkList[position].mRequested = false; in onRequestClicked()
150 mNetworkList[position].mRequested = true; in onRequestClicked()
DConnectivityFragment.java137 public boolean mRequested; field in ConnectivityFragment.NetworkItem
413 ni.mRequested = (mNetworkCallbacks.get(n.getNetId()) != null); in getNetworkItem()