Home
last modified time | relevance | path

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

/frameworks/base/packages/Tethering/tests/unit/src/com/android/networkstack/tethering/
DUpstreamNetworkMonitorTest.java93 @Mock private EntitlementManager mEntitleMgr; field in UpstreamNetworkMonitorTest
107 when(mEntitleMgr.isCellularUpstreamPermitted()).thenReturn(true); in setUp()
143 mUNM.startTrackDefaultNetwork(sDefaultRequest, mEntitleMgr); in testDefaultNetworkIsTracked()
156 mUNM.startTrackDefaultNetwork(sDefaultRequest, mEntitleMgr); in testListensForAllNetworks()
167 mUNM.startTrackDefaultNetwork(sDefaultRequest, mEntitleMgr); in testCallbacksRegistered()
290 mUNM.startTrackDefaultNetwork(sDefaultRequest, mEntitleMgr); in testSelectPreferredUpstreamType()
325 when(mEntitleMgr.isCellularUpstreamPermitted()).thenReturn(false); in testSelectPreferredUpstreamType()
329 when(mEntitleMgr.isCellularUpstreamPermitted()).thenReturn(true); in testSelectPreferredUpstreamType()
361 when(mEntitleMgr.isCellularUpstreamPermitted()).thenReturn(false); in testSelectPreferredUpstreamType()
365 when(mEntitleMgr.isCellularUpstreamPermitted()).thenReturn(true); in testSelectPreferredUpstreamType()
[all …]
DTetheringTest.java229 private EntitlementManager mEntitleMgr; field in TetheringTest
395 mEntitleMgr = spy(super.getEntitlementManager(ctx, h, log, callback)); in getEntitlementManager()
396 return mEntitleMgr; in getEntitlementManager()
1796 verify(mEntitleMgr).dump(any()); in testDumpTetheringLog()
1808 verify(mEntitleMgr).startProvisioningIfNeeded(TETHERING_WIFI, false); in testExemptFromEntitlementCheck()
1809 verify(mEntitleMgr, never()).setExemptedDownstreamType(TETHERING_WIFI); in testExemptFromEntitlementCheck()
1810 assertFalse(mEntitleMgr.isCellularUpstreamPermitted()); in testExemptFromEntitlementCheck()
1813 verify(mEntitleMgr).stopProvisioningIfNeeded(TETHERING_WIFI); in testExemptFromEntitlementCheck()
1814 reset(mEntitleMgr); in testExemptFromEntitlementCheck()
1821 verify(mEntitleMgr, never()).startProvisioningIfNeeded(TETHERING_WIFI, false); in testExemptFromEntitlementCheck()
[all …]