Home
last modified time | relevance | path

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

/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/
DAnomalyDetectionJobServiceTest.java148 mFeatureFactory.powerUsageFeatureProvider, in saveAnomalyToDatabase_systemWhitelisted_doNotSave()
169 mFeatureFactory.powerUsageFeatureProvider, in saveAnomalyToDatabase_systemApp_doNotSaveButLog()
189 mFeatureFactory.powerUsageFeatureProvider, mFeatureFactory.metricsFeatureProvider, in saveAnomalyToDatabase_systemUid_doNotSave()
204 mFeatureFactory.powerUsageFeatureProvider, mFeatureFactory.metricsFeatureProvider, in saveAnomalyToDatabase_uidNull_doNotSave()
224 mFeatureFactory.powerUsageFeatureProvider, mFeatureFactory.metricsFeatureProvider, in saveAnomalyToDatabase_normalAppWithAutoRestriction_save()
249 mFeatureFactory.powerUsageFeatureProvider, mFeatureFactory.metricsFeatureProvider, in saveAnomalyToDatabase_normalAppWithoutAutoRestriction_save()
DBatteryManagerPreferenceControllerTest.java74 when(mFeatureFactory.powerUsageFeatureProvider.isSmartBatterySupported()).thenReturn(true); in updateState_smartBatteryOnWithoutRestriction_showSummary()
85 when(mFeatureFactory.powerUsageFeatureProvider.isSmartBatterySupported()).thenReturn(true); in updateState_smartBatteryOff_showSummary()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DPowerUsageSummaryTest.java162 when(mFeatureFactory.powerUsageFeatureProvider.getAdditionalBatteryInfoIntent()) in setUp()
251 when(mFeatureFactory.powerUsageFeatureProvider.isEnhancedBatteryPredictionEnabled(any())) in showBothEstimates_summariesAreBothModified()
259 }).when(mFeatureFactory.powerUsageFeatureProvider).getOldEstimateDebugString(any()); in showBothEstimates_summariesAreBothModified()
266 }).when(mFeatureFactory.powerUsageFeatureProvider).getEnhancedEstimateDebugString(any()); in showBothEstimates_summariesAreBothModified()
278 doReturn(true).when(mFeatureFactory.powerUsageFeatureProvider).isEstimateDebugEnabled(); in debugMode()
296 when(mFeatureFactory.powerUsageFeatureProvider.isPowerAccountingToggleEnabled()) in optionsMenu_advancedPageEnabled()
DAutoRestrictionPreferenceControllerTest.java92 doReturn(true).when(mFeatureFactory.powerUsageFeatureProvider).isSmartBatterySupported(); in testGetAvailabilityStatus_smartBatterySupported_returnDisabled()
100 doReturn(false).when(mFeatureFactory.powerUsageFeatureProvider).isSmartBatterySupported(); in testGetAvailabilityStatus_smartBatteryUnSupported_returnAvailable()
DSmartBatteryPreferenceControllerTest.java93 doReturn(true).when(mFeatureFactory.powerUsageFeatureProvider).isSmartBatterySupported(); in testGetAvailabilityStatus_smartBatterySupported_returnAvailable()
101 doReturn(false).when(mFeatureFactory.powerUsageFeatureProvider).isSmartBatterySupported(); in testGetAvailabilityStatus_smartBatteryUnSupported_returnDisabled()
DBatteryInfoTest.java311 doReturn(pointsExpected).when(mFeatureFactory.powerUsageFeatureProvider) in assertHistoryAndEnhancedProjection()
335 doReturn(enhanced).when(mFeatureFactory.powerUsageFeatureProvider) in getBatteryInfo()
DPowerUsageAdvancedTest.java101 when(mFeatureFactory.powerUsageFeatureProvider.isPowerAccountingToggleEnabled()) in testOptionsMenu_toggleAppsEnabled()
DBatteryUtilsTest.java177 mProvider = mFeatureFactory.powerUsageFeatureProvider; in setUp()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/batterytip/
DAnomalyDetectionJobService.java101 final PowerUsageFeatureProvider powerUsageFeatureProvider = FeatureFactory in onStartJob() local
109 contentResolver, powerUsageFeatureProvider, metricsFeatureProvider, in onStartJob()
131 ContentResolver contentResolver, PowerUsageFeatureProvider powerUsageFeatureProvider, in saveAnomalyToDatabase() argument
146 final boolean autoFeatureOn = powerUsageFeatureProvider.isSmartBatterySupported() in saveAnomalyToDatabase()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/
DAnomalyDetectionJobService.java101 final PowerUsageFeatureProvider powerUsageFeatureProvider = FeatureFactory in onStartJob() local
109 contentResolver, powerUsageFeatureProvider, metricsFeatureProvider, in onStartJob()
131 ContentResolver contentResolver, PowerUsageFeatureProvider powerUsageFeatureProvider, in saveAnomalyToDatabase() argument
146 final boolean autoFeatureOn = powerUsageFeatureProvider.isSmartBatterySupported() in saveAnomalyToDatabase()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/detectors/
DEarlyWarningDetectorTest.java65 doReturn(true).when(mFakeFeatureFactory.powerUsageFeatureProvider) in setUp()
80 doReturn(false).when(mFakeFeatureFactory.powerUsageFeatureProvider) in testDetect_testFeatureOn_tipNew()
105 doReturn(false).when(mFakeFeatureFactory.powerUsageFeatureProvider) in testDetect_noEarlyWarning_tipInvisible()
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/
DFakeFeatureFactory.java57 public final PowerUsageFeatureProvider powerUsageFeatureProvider; field in FakeFeatureFactory
101 powerUsageFeatureProvider = mock(PowerUsageFeatureProvider.class); in FakeFeatureFactory()
139 return powerUsageFeatureProvider; in getPowerUsageFeatureProvider()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/
DDebugEstimatesLoader.java48 PowerUsageFeatureProvider powerUsageFeatureProvider = in loadInBackground() local
61 Estimate estimate = powerUsageFeatureProvider.getEnhancedBatteryPrediction(context); in loadInBackground()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DDebugEstimatesLoader.java50 PowerUsageFeatureProvider powerUsageFeatureProvider = in loadInBackground() local
63 Estimate estimate = powerUsageFeatureProvider.getEnhancedBatteryPrediction(context); in loadInBackground()