Home
last modified time | relevance | path

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

/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/
DBatteryUsageBroadcastReceiverTest.java82 when(mFakeFeatureFactory.powerUsageFeatureProvider.getFullChargeIntentAction()) in onReceive_aospNotFullCharged_notFetchUsageData()
84 when(mFakeFeatureFactory.powerUsageFeatureProvider.delayHourlyJobWhenBooting()) in onReceive_aospNotFullCharged_notFetchUsageData()
99 when(mFakeFeatureFactory.powerUsageFeatureProvider.getFullChargeIntentAction()) in onReceive_aospNearBooting_notFetchUsageData()
101 when(mFakeFeatureFactory.powerUsageFeatureProvider.delayHourlyJobWhenBooting()) in onReceive_aospNearBooting_notFetchUsageData()
120 when(mFakeFeatureFactory.powerUsageFeatureProvider.getFullChargeIntentAction()) in onReceive_aospWrongAction_notFetchUsageData()
122 when(mFakeFeatureFactory.powerUsageFeatureProvider.delayHourlyJobWhenBooting()) in onReceive_aospWrongAction_notFetchUsageData()
140 when(mFakeFeatureFactory.powerUsageFeatureProvider.getFullChargeIntentAction()) in onReceive_aospNormal_fetchUsageData()
142 when(mFakeFeatureFactory.powerUsageFeatureProvider.delayHourlyJobWhenBooting()) in onReceive_aospNormal_fetchUsageData()
160 when(mFakeFeatureFactory.powerUsageFeatureProvider.getFullChargeIntentAction()) in onReceive_pixelNotFullCharged_notFetchUsageData()
162 when(mFakeFeatureFactory.powerUsageFeatureProvider.delayHourlyJobWhenBooting()) in onReceive_pixelNotFullCharged_notFetchUsageData()
[all …]
DBatteryTipsControllerTest.java78 when(mFeatureFactory.powerUsageFeatureProvider.isBatteryTipsEnabled()).thenReturn(true); in handleBatteryTipsCardUpdated_adaptiveBrightnessAnomaly_showAnomaly()
104 when(mFeatureFactory.powerUsageFeatureProvider.isBatteryTipsEnabled()).thenReturn(true); in handleBatteryTipsCardUpdated_screenTimeoutAnomaly_showAnomaly()
135 when(mFeatureFactory.powerUsageFeatureProvider.isBatteryTipsEnabled()).thenReturn(true); in handleBatteryTipsCardUpdated_screenTimeoutAnomalyHasTitle_showAnomaly()
158 when(mFeatureFactory.powerUsageFeatureProvider.isBatteryTipsEnabled()).thenReturn(true); in handleBatteryTipsCardUpdated_appAnomaly_showAnomaly()
DPeriodicJobManagerTest.java55 doReturn(false).when(mFeatureFactory.powerUsageFeatureProvider).delayHourlyJobWhenBooting(); in setUp()
106 doReturn(true).when(mFeatureFactory.powerUsageFeatureProvider).delayHourlyJobWhenBooting(); in getTriggerAtMillis_halfFullHourTimeZoneWithBroadcastDelay_returnsExpectedResult()
150 doReturn(true).when(mFeatureFactory.powerUsageFeatureProvider).delayHourlyJobWhenBooting(); in getTriggerAtMillis_fullHourTimeZoneWithBroadcastDelay_returnsExpectedResult()
DBatteryTipsCardPreferenceTest.java110 when(mFeatureFactory.powerUsageFeatureProvider.isBatteryTipsEnabled()).thenReturn(true); in onClick_mainBtnOfSettingsAnomalyLaunchPage_getAdaptiveBrightnessLauncher()
151 when(mFeatureFactory.powerUsageFeatureProvider.isBatteryTipsEnabled()).thenReturn(true); in onClick_mainBtnOfSettingsAnomalyChangeSettings_settingsChanged()
187 when(mFeatureFactory.powerUsageFeatureProvider.isBatteryTipsEnabled()).thenReturn(true); in onClick_dismissBtnOfSettingsAnomaly_cardDismissAndLogged()
217 when(mFeatureFactory.powerUsageFeatureProvider.isBatteryTipsEnabled()).thenReturn(true); in onClick_mainBtnOfAppsAnomaly_selectHighlightSlot()
249 when(mFeatureFactory.powerUsageFeatureProvider.isBatteryTipsEnabled()).thenReturn(true); in onClick_dismissBtnOfAppsAnomaly_keepHighlightSlotIndex()
DBatteryChartViewTest.java54 mPowerUsageFeatureProvider = mFeatureFactory.powerUsageFeatureProvider; in setUp()
DPowerUsageSummaryTest.java110 when(mFeatureFactory.powerUsageFeatureProvider.getAdditionalBatteryInfoIntent()) in setUp()
DBatteryUsageBreakdownControllerTest.java88 .when(mFeatureFactory.powerUsageFeatureProvider) in setUp()
DBatteryChartPreferenceControllerTest.java104 .when(mFeatureFactory.powerUsageFeatureProvider) in setUp()
DDataProcessorTest.java98 mPowerUsageFeatureProvider = mFeatureFactory.powerUsageFeatureProvider; in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/detectors/
DBatteryDefenderDetectorTest.java56 when(mFakeFeatureFactory.powerUsageFeatureProvider.isBatteryDefend(mBatteryInfo)) in detect_notBatteryDefend_tipInvisible()
64 when(mFakeFeatureFactory.powerUsageFeatureProvider.isBatteryDefend(mBatteryInfo)) in detect_isBatteryDefend_tipNew()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DDebugEstimatesLoader.java48 PowerUsageFeatureProvider powerUsageFeatureProvider = in loadInBackground() local
73 Estimate estimate = powerUsageFeatureProvider.getEnhancedBatteryPrediction(context); in loadInBackground()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DAutoRestrictionPreferenceControllerTest.java92 doReturn(true).when(mFeatureFactory.powerUsageFeatureProvider).isSmartBatterySupported(); in testGetAvailabilityStatus_smartBatterySupported_returnDisabled()
100 doReturn(false).when(mFeatureFactory.powerUsageFeatureProvider).isSmartBatterySupported(); in testGetAvailabilityStatus_smartBatteryUnSupported_returnAvailable()
DSmartBatteryPreferenceControllerTest.java101 doReturn(true).when(mFeatureFactory.powerUsageFeatureProvider).isSmartBatterySupported(); in testGetAvailabilityStatus_smartBatterySupported_returnAvailable()
109 doReturn(false).when(mFeatureFactory.powerUsageFeatureProvider).isSmartBatterySupported(); in testGetAvailabilityStatus_smartBatteryUnSupported_returnDisabled()
DBatteryInfoTest.java122 doReturn(false).when(mFeatureFactory.powerUsageFeatureProvider).isExtraDefend(); in setUp()
312 .when(mFeatureFactory.powerUsageFeatureProvider) in getBatteryInfo_chargingWithDefender_updateChargeLabel()
369 doReturn(true).when(mFeatureFactory.powerUsageFeatureProvider).isExtraDefend(); in getBatteryInfo_dockDefenderActive_updateChargeString()
371 .when(mFeatureFactory.powerUsageFeatureProvider) in getBatteryInfo_dockDefenderActive_updateChargeString()
421 doReturn(false).when(mFeatureFactory.powerUsageFeatureProvider).isExtraDefend(); in getBatteryInfo_dockDefenderFutureBypass_updateChargeLabel()
929 .when(mFeatureFactory.powerUsageFeatureProvider) in assertHistoryAndEnhancedProjection()
960 .when(mFeatureFactory.powerUsageFeatureProvider) in getBatteryInfo()
DSmartBatterySettingsTest.java44 mPowerUsageFeatureProvider = FakeFeatureFactory.setupForTest().powerUsageFeatureProvider; in setUp()
DBatteryUtilsTest.java128 mProvider = mFeatureFactory.powerUsageFeatureProvider; in setUp()
DBatteryBackupHelperTest.java110 mPowerUsageFeatureProvider = FakeFeatureFactory.setupForTest().powerUsageFeatureProvider; in setUp()
/packages/apps/Settings/tests/robotests/testutils/com/android/settings/testutils/
DFakeFeatureFactory.java72 public final PowerUsageFeatureProvider powerUsageFeatureProvider; field in FakeFeatureFactory
124 powerUsageFeatureProvider = mock(PowerUsageFeatureProvider.class); in FakeFeatureFactory()
187 return powerUsageFeatureProvider; in getPowerUsageFeatureProvider()
/packages/apps/Settings/tests/unit/src/com/android/settings/testutils/
DFakeFeatureFactory.java71 public final PowerUsageFeatureProvider powerUsageFeatureProvider; field in FakeFeatureFactory
125 powerUsageFeatureProvider = mock(PowerUsageFeatureProvider.class); in FakeFeatureFactory()
188 return powerUsageFeatureProvider; in getPowerUsageFeatureProvider()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/
DBatteryManagerPreferenceControllerTest.java68 mPowerUsageFeatureProvider = mFeatureFactory.powerUsageFeatureProvider; in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/bugreport/
DLogUtilsTest.java64 mPowerUsageFeatureProvider = FakeFeatureFactory.setupForTest().powerUsageFeatureProvider; in setUp()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/
DPowerUsageAdvanced.java274 final PowerUsageFeatureProvider powerUsageFeatureProvider = in detectAnomaly() local
277 powerUsageFeatureProvider.detectPowerAnomaly( in detectAnomaly()
/packages/apps/Settings/src/com/android/settings/overlay/
DFeatureFactory.kt78 abstract val powerUsageFeatureProvider: PowerUsageFeatureProvider constant in com.android.settings.overlay.FeatureFactory
DFeatureFactoryImpl.kt84 override val powerUsageFeatureProvider by lazy { PowerUsageFeatureProviderImpl(appContext) } in <lambda>() constant in com.android.settings.overlay.FeatureFactoryImpl
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/testutils/
DFakeFeatureFactory.kt76 override val powerUsageFeatureProvider: PowerUsageFeatureProvider constant in com.android.settings.testutils.FakeFeatureFactory