/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/ |
D | AnomalyDetectionJobServiceTest.java | 153 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()
|
D | BatteryManagerPreferenceControllerTest.java | 74 when(mFeatureFactory.powerUsageFeatureProvider.isSmartBatterySupported()).thenReturn(true); in updateState_smartBatteryWithoutRestriction_showSummary()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/detectors/ |
D | EarlyWarningDetectorTest.java | 65 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/ |
D | AnomalyDetectionJobService.java | 101 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/ |
D | AdvancedPowerUsageDetailTest.java | 154 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()
|
D | PowerUsageSummaryTest.java | 110 when(mFeatureFactory.powerUsageFeatureProvider.getAdditionalBatteryInfoIntent()) in setUp() 112 when(mFeatureFactory.powerUsageFeatureProvider.isChartGraphEnabled(mRealContext)) in setUp() 146 when(mFeatureFactory.powerUsageFeatureProvider.isChartGraphEnabled(mRealContext)) in initPreference_chartGraphDisabled_hasCorrectSummary()
|
D | AutoRestrictionPreferenceControllerTest.java | 92 doReturn(true).when(mFeatureFactory.powerUsageFeatureProvider).isSmartBatterySupported(); in testGetAvailabilityStatus_smartBatterySupported_returnDisabled() 100 doReturn(false).when(mFeatureFactory.powerUsageFeatureProvider).isSmartBatterySupported(); in testGetAvailabilityStatus_smartBatteryUnSupported_returnAvailable()
|
D | SmartBatteryPreferenceControllerTest.java | 94 doReturn(true).when(mFeatureFactory.powerUsageFeatureProvider).isSmartBatterySupported(); in testGetAvailabilityStatus_smartBatterySupported_returnAvailable() 102 doReturn(false).when(mFeatureFactory.powerUsageFeatureProvider).isSmartBatterySupported(); in testGetAvailabilityStatus_smartBatteryUnSupported_returnDisabled()
|
D | BatteryHistoryLoaderTest.java | 54 doReturn(batteryHistoryMap).when(mFeatureFactory.powerUsageFeatureProvider) in testLoadIBackground_returnsMapFromPowerFeatureProvider()
|
D | BatteryInfoTest.java | 327 doReturn(pointsExpected).when(mFeatureFactory.powerUsageFeatureProvider) in assertHistoryAndEnhancedProjection() 351 doReturn(enhanced).when(mFeatureFactory.powerUsageFeatureProvider) in getBatteryInfo()
|
D | BatteryChartViewTest.java | 64 mPowerUsageFeatureProvider = mFeatureFactory.powerUsageFeatureProvider; in setUp()
|
D | ConvertUtilsTest.java | 64 mPowerUsageFeatureProvider = mFeatureFactory.powerUsageFeatureProvider; in setUp()
|
D | BatteryUtilsTest.java | 146 mProvider = mFeatureFactory.powerUsageFeatureProvider; in setUp()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
D | BatteryHistoryLoader.java | 43 final PowerUsageFeatureProvider powerUsageFeatureProvider = in loadInBackground() local 45 return powerUsageFeatureProvider.getBatteryHistory(mContext); in loadInBackground()
|
D | DebugEstimatesLoader.java | 52 PowerUsageFeatureProvider powerUsageFeatureProvider = in loadInBackground() local 66 Estimate estimate = powerUsageFeatureProvider.getEnhancedBatteryPrediction(context); in loadInBackground()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/testutils/ |
D | FakeFeatureFactory.java | 61 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/ |
D | FakeFeatureFactory.java | 66 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/ |
D | AppBatteryPreferenceController.java | 256 final PowerUsageFeatureProvider powerUsageFeatureProvider = 258 mIsChartGraphEnabled = powerUsageFeatureProvider.isChartGraphEnabled(context);
|