/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/ |
D | AnomalyDetectionJobServiceTest.java | 148 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()
|
D | BatteryManagerPreferenceControllerTest.java | 74 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/ |
D | PowerUsageSummaryTest.java | 162 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()
|
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 | 93 doReturn(true).when(mFeatureFactory.powerUsageFeatureProvider).isSmartBatterySupported(); in testGetAvailabilityStatus_smartBatterySupported_returnAvailable() 101 doReturn(false).when(mFeatureFactory.powerUsageFeatureProvider).isSmartBatterySupported(); in testGetAvailabilityStatus_smartBatteryUnSupported_returnDisabled()
|
D | BatteryInfoTest.java | 311 doReturn(pointsExpected).when(mFeatureFactory.powerUsageFeatureProvider) in assertHistoryAndEnhancedProjection() 335 doReturn(enhanced).when(mFeatureFactory.powerUsageFeatureProvider) in getBatteryInfo()
|
D | PowerUsageAdvancedTest.java | 101 when(mFeatureFactory.powerUsageFeatureProvider.isPowerAccountingToggleEnabled()) in testOptionsMenu_toggleAppsEnabled()
|
D | BatteryUtilsTest.java | 177 mProvider = mFeatureFactory.powerUsageFeatureProvider; in setUp()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/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/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/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/tests/robotests/src/com/android/settings/testutils/ |
D | FakeFeatureFactory.java | 57 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/ |
D | DebugEstimatesLoader.java | 48 PowerUsageFeatureProvider powerUsageFeatureProvider = in loadInBackground() local 61 Estimate estimate = powerUsageFeatureProvider.getEnhancedBatteryPrediction(context); in loadInBackground()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
D | DebugEstimatesLoader.java | 50 PowerUsageFeatureProvider powerUsageFeatureProvider = in loadInBackground() local 63 Estimate estimate = powerUsageFeatureProvider.getEnhancedBatteryPrediction(context); in loadInBackground()
|