Home
last modified time | relevance | path

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

/frameworks/base/tests/net/java/com/android/server/connectivity/tethering/
DEntitlementManagerTest.java362 assertFalse(mEnMgr.isCellularUpstreamPermitted()); in verifyPermissionResult()
368 assertTrue(mEnMgr.isCellularUpstreamPermitted()); in verifyPermissionResult()
378 assertFalse(mEnMgr.isCellularUpstreamPermitted()); in verifyPermissionIfAllNotApproved()
382 assertFalse(mEnMgr.isCellularUpstreamPermitted()); in verifyPermissionIfAllNotApproved()
386 assertFalse(mEnMgr.isCellularUpstreamPermitted()); in verifyPermissionIfAllNotApproved()
396 assertTrue(mEnMgr.isCellularUpstreamPermitted()); in verifyPermissionIfAnyApproved()
401 assertTrue(mEnMgr.isCellularUpstreamPermitted()); in verifyPermissionIfAnyApproved()
404 assertFalse(mEnMgr.isCellularUpstreamPermitted()); in verifyPermissionIfAnyApproved()
419 assertTrue(mEnMgr.isCellularUpstreamPermitted()); in testRunTetherProvisioning()
427 assertTrue(mEnMgr.isCellularUpstreamPermitted()); in testRunTetherProvisioning()
[all …]
DUpstreamNetworkMonitorTest.java107 when(mEntitleMgr.isCellularUpstreamPermitted()).thenReturn(true); in setUp()
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()
383 when(mEntitleMgr.isCellularUpstreamPermitted()).thenReturn(false); in testGetCurrentPreferredUpstream()
385 when(mEntitleMgr.isCellularUpstreamPermitted()).thenReturn(true); in testGetCurrentPreferredUpstream()
415 when(mEntitleMgr.isCellularUpstreamPermitted()).thenReturn(false); in testGetCurrentPreferredUpstream()
/frameworks/base/services/core/java/com/android/server/connectivity/tethering/
DUpstreamNetworkMonitor.java182 if (!isCellularUpstreamPermitted()) { in registerMobileNetworkRequest()
226 mNetworkMap.values(), preferredTypes, isCellularUpstreamPermitted()); in selectPreferredUpstreamType()
245 if (!isCellularUpstreamPermitted()) releaseMobileNetworkRequest(); in selectPreferredUpstreamType()
264 if (!isCellularUpstreamPermitted()) return null; in getCurrentPreferredUpstream()
281 private boolean isCellularUpstreamPermitted() { in isCellularUpstreamPermitted() method in UpstreamNetworkMonitor
283 return mEntitlementMgr.isCellularUpstreamPermitted(); in isCellularUpstreamPermitted()
496 boolean isCellularUpstreamPermitted) { in findFirstAvailableUpstreamByType() argument
508 if (!isCellularUpstreamPermitted && isCellular(nc)) { in findFirstAvailableUpstreamByType()
DEntitlementManager.java163 public boolean isCellularUpstreamPermitted() { in isCellularUpstreamPermitted() method in EntitlementManager