Home
last modified time | relevance | path

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

/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/
DAnomalyDetectionJobServiceTest.java153 mFeatureFactory.powerUsageFeatureProvider, in saveAnomalyToDatabase_systemAllowlisted_doNotSave()
174 mFeatureFactory.powerUsageFeatureProvider, in saveAnomalyToDatabase_systemApp_doNotSaveButLog()
194 mFeatureFactory.powerUsageFeatureProvider, mFeatureFactory.metricsFeatureProvider, in saveAnomalyToDatabase_systemUid_doNotSave()
209 mFeatureFactory.powerUsageFeatureProvider, mFeatureFactory.metricsFeatureProvider, in saveAnomalyToDatabase_uidNull_doNotSave()
229 mFeatureFactory.powerUsageFeatureProvider, mFeatureFactory.metricsFeatureProvider, in saveAnomalyToDatabase_normalAppWithAutoRestriction_save()
254 mFeatureFactory.powerUsageFeatureProvider, mFeatureFactory.metricsFeatureProvider, in saveAnomalyToDatabase_normalAppWithoutAutoRestriction_save()
DBatteryManagerPreferenceControllerTest.java74 when(mFeatureFactory.powerUsageFeatureProvider.isSmartBatterySupported()).thenReturn(true); in updateState_smartBatteryWithoutRestriction_showSummary()
/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/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/
DAdvancedPowerUsageDetailTest.java154 when(mFeatureFactory.powerUsageFeatureProvider.isChartGraphEnabled(mContext)) in setUp()
283 when(mFeatureFactory.powerUsageFeatureProvider.isChartGraphEnabled(mContext)) in testInitHeader_noUsageTimeAndGraphDisabled_hasCorrectSummary()
301 when(mFeatureFactory.powerUsageFeatureProvider.isChartGraphEnabled(mContext)) in testInitHeader_bgTwoMinFgZeroAndGraphDisabled_hasCorrectSummary()
321 when(mFeatureFactory.powerUsageFeatureProvider.isChartGraphEnabled(mContext)) in testInitHeader_bgLessThanAMinFgZeroAndGraphDisabled_hasCorrectSummary()
342 when(mFeatureFactory.powerUsageFeatureProvider.isChartGraphEnabled(mContext)) in testInitHeader_totalUsageLessThanAMinAndGraphDisabled_hasCorrectSummary()
364 when(mFeatureFactory.powerUsageFeatureProvider.isChartGraphEnabled(mContext)) in testInitHeader_TotalAMinutesBgLessThanAMinAndGraphDisabled_hasCorrectSummary()
384 when(mFeatureFactory.powerUsageFeatureProvider.isChartGraphEnabled(mContext)) in testInitHeader_TotalAMinBackgroundZeroAndGraphDisabled_hasCorrectSummary()
403 when(mFeatureFactory.powerUsageFeatureProvider.isChartGraphEnabled(mContext)) in testInitHeader_fgTwoMinBgFourMinAndGraphDisabled_hasCorrectSummary()
DPowerUsageSummaryTest.java110 when(mFeatureFactory.powerUsageFeatureProvider.getAdditionalBatteryInfoIntent()) in setUp()
112 when(mFeatureFactory.powerUsageFeatureProvider.isChartGraphEnabled(mRealContext)) in setUp()
146 when(mFeatureFactory.powerUsageFeatureProvider.isChartGraphEnabled(mRealContext)) in initPreference_chartGraphDisabled_hasCorrectSummary()
DAutoRestrictionPreferenceControllerTest.java92 doReturn(true).when(mFeatureFactory.powerUsageFeatureProvider).isSmartBatterySupported(); in testGetAvailabilityStatus_smartBatterySupported_returnDisabled()
100 doReturn(false).when(mFeatureFactory.powerUsageFeatureProvider).isSmartBatterySupported(); in testGetAvailabilityStatus_smartBatteryUnSupported_returnAvailable()
DSmartBatteryPreferenceControllerTest.java94 doReturn(true).when(mFeatureFactory.powerUsageFeatureProvider).isSmartBatterySupported(); in testGetAvailabilityStatus_smartBatterySupported_returnAvailable()
102 doReturn(false).when(mFeatureFactory.powerUsageFeatureProvider).isSmartBatterySupported(); in testGetAvailabilityStatus_smartBatteryUnSupported_returnDisabled()
DBatteryHistoryLoaderTest.java54 doReturn(batteryHistoryMap).when(mFeatureFactory.powerUsageFeatureProvider) in testLoadIBackground_returnsMapFromPowerFeatureProvider()
DBatteryInfoTest.java327 doReturn(pointsExpected).when(mFeatureFactory.powerUsageFeatureProvider) in assertHistoryAndEnhancedProjection()
351 doReturn(enhanced).when(mFeatureFactory.powerUsageFeatureProvider) in getBatteryInfo()
DBatteryChartViewTest.java64 mPowerUsageFeatureProvider = mFeatureFactory.powerUsageFeatureProvider; in setUp()
DConvertUtilsTest.java64 mPowerUsageFeatureProvider = mFeatureFactory.powerUsageFeatureProvider; in setUp()
DBatteryUtilsTest.java146 mProvider = mFeatureFactory.powerUsageFeatureProvider; in setUp()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryHistoryLoader.java43 final PowerUsageFeatureProvider powerUsageFeatureProvider = in loadInBackground() local
45 return powerUsageFeatureProvider.getBatteryHistory(mContext); in loadInBackground()
DDebugEstimatesLoader.java52 PowerUsageFeatureProvider powerUsageFeatureProvider = in loadInBackground() local
66 Estimate estimate = powerUsageFeatureProvider.getEnhancedBatteryPrediction(context); in loadInBackground()
/packages/apps/Settings/tests/unit/src/com/android/settings/testutils/
DFakeFeatureFactory.java61 public final PowerUsageFeatureProvider powerUsageFeatureProvider; field in FakeFeatureFactory
104 powerUsageFeatureProvider = mock(PowerUsageFeatureProvider.class); in FakeFeatureFactory()
156 return powerUsageFeatureProvider; in getPowerUsageFeatureProvider()
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/
DFakeFeatureFactory.java66 public final PowerUsageFeatureProvider powerUsageFeatureProvider; field in FakeFeatureFactory
118 powerUsageFeatureProvider = mock(PowerUsageFeatureProvider.class); in FakeFeatureFactory()
171 return powerUsageFeatureProvider; in getPowerUsageFeatureProvider()
/packages/apps/Settings/src/com/android/settings/applications/appinfo/
DAppBatteryPreferenceController.java256 final PowerUsageFeatureProvider powerUsageFeatureProvider =
258 mIsChartGraphEnabled = powerUsageFeatureProvider.isChartGraphEnabled(context);