Home
last modified time | relevance | path

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

/packages/apps/Settings/tests/spa_unit/src/com/android/settings/datausage/lib/
DBillingCycleRepositoryTest.kt40 on { isBandwidthControlEnabled } doReturn true in <lambda>()
61 whenever(mockNetworkManagementService.isBandwidthControlEnabled).thenReturn(false) in <lambda>()
90 whenever(mockNetworkManagementService.isBandwidthControlEnabled).thenReturn(true) in <lambda>()
103 whenever(mockNetworkManagementService.isBandwidthControlEnabled).thenReturn(false) in isBandwidthControlEnabled_bandwidthControlDisabled_returnFalse()
105 val enabled = repository.isBandwidthControlEnabled() in isBandwidthControlEnabled_bandwidthControlDisabled_returnFalse()
112 whenever(mockNetworkManagementService.isBandwidthControlEnabled).thenReturn(true) in isBandwidthControlEnabled_bandwidthControlEnabled_returnTrue()
114 val enabled = repository.isBandwidthControlEnabled() in isBandwidthControlEnabled_bandwidthControlEnabled_returnTrue()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/
DAppDataUsagePreferenceControllerTest.java74 doReturn(true).when(mController).isBandwidthControlEnabled(); in getAvailabilityStatus_bandwidthControlEnabled_shouldReturnAvailable()
82 doReturn(false).when(mController).isBandwidthControlEnabled(); in getAvailabilityStatus_bandwidthControlDisabled_shouldReturnDisabled()
143 doReturn(true).when(mController).isBandwidthControlEnabled(); in displayPreference_noEntry_preferenceShouldNotEnable()
158 doReturn(true).when(mController).isBandwidthControlEnabled(); in displayPreference_appIsInstalled_preferenceShouldEnable()
172 doReturn(true).when(mController).isBandwidthControlEnabled(); in displayPreference_appIsNotInstalled_preferenceShouldDisable()
/packages/apps/Settings/src/com/android/settings/datausage/lib/
DBillingCycleRepository.kt45 isDataEnabled && isBandwidthControlEnabled() && userManager.isAdminUser in <lambda>()
48 open fun isBandwidthControlEnabled(): Boolean = try { in <lambda>() method
49 networkService.isBandwidthControlEnabled in <lambda>()
/packages/apps/Settings/src/com/android/settings/applications/appinfo/
DAppDataUsagePreferenceController.java64 return isBandwidthControlEnabled() ? AVAILABLE : CONDITIONALLY_UNAVAILABLE; in getAvailabilityStatus()
154 boolean isBandwidthControlEnabled() { in isBandwidthControlEnabled() method in AppDataUsagePreferenceController
155 return Utils.isBandwidthControlEnabled(); in isBandwidthControlEnabled()
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/spa/app/appinfo/
DAppDataUsagePreferenceTest.kt81 whenever(Utils.isBandwidthControlEnabled()).thenReturn(true) in <lambda>()
91 whenever(Utils.isBandwidthControlEnabled()).thenReturn(false) in <lambda>()
/packages/apps/Settings/src/com/android/settings/spa/app/appinfo/
DAppDataUsagePreference.kt95 Utils.isBandwidthControlEnabled() in <lambda>()
/packages/apps/Settings/src/com/android/settings/datausage/
DDataUsageList.kt80 if (!billingCycleRepository.isBandwidthControlEnabled()) { in <lambda>()
/packages/apps/Settings/src/com/android/settings/
DSettingsActivity.java754 Utils.isBandwidthControlEnabled() /* enabled */, in doUpdateTilesList()
769 Utils.isBandwidthControlEnabled(), isAdmin) in doUpdateTilesList()
DUtils.java662 public static boolean isBandwidthControlEnabled() { in isBandwidthControlEnabled() method in Utils
666 return netManager.isBandwidthControlEnabled(); in isBandwidthControlEnabled()