/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/ |
D | BatteryUsageBroadcastReceiverTest.java | 82 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 …]
|
D | BatteryTipsControllerTest.java | 78 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()
|
D | PeriodicJobManagerTest.java | 55 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()
|
D | BatteryTipsCardPreferenceTest.java | 110 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()
|
D | BatteryChartViewTest.java | 54 mPowerUsageFeatureProvider = mFeatureFactory.powerUsageFeatureProvider; in setUp()
|
D | PowerUsageSummaryTest.java | 110 when(mFeatureFactory.powerUsageFeatureProvider.getAdditionalBatteryInfoIntent()) in setUp()
|
D | BatteryUsageBreakdownControllerTest.java | 88 .when(mFeatureFactory.powerUsageFeatureProvider) in setUp()
|
D | BatteryChartPreferenceControllerTest.java | 104 .when(mFeatureFactory.powerUsageFeatureProvider) in setUp()
|
D | DataProcessorTest.java | 98 mPowerUsageFeatureProvider = mFeatureFactory.powerUsageFeatureProvider; in setUp()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/detectors/ |
D | BatteryDefenderDetectorTest.java | 56 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/ |
D | DebugEstimatesLoader.java | 48 PowerUsageFeatureProvider powerUsageFeatureProvider = in loadInBackground() local 73 Estimate estimate = powerUsageFeatureProvider.getEnhancedBatteryPrediction(context); in loadInBackground()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/ |
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 | 101 doReturn(true).when(mFeatureFactory.powerUsageFeatureProvider).isSmartBatterySupported(); in testGetAvailabilityStatus_smartBatterySupported_returnAvailable() 109 doReturn(false).when(mFeatureFactory.powerUsageFeatureProvider).isSmartBatterySupported(); in testGetAvailabilityStatus_smartBatteryUnSupported_returnDisabled()
|
D | BatteryInfoTest.java | 122 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()
|
D | SmartBatterySettingsTest.java | 44 mPowerUsageFeatureProvider = FakeFeatureFactory.setupForTest().powerUsageFeatureProvider; in setUp()
|
D | BatteryUtilsTest.java | 128 mProvider = mFeatureFactory.powerUsageFeatureProvider; in setUp()
|
D | BatteryBackupHelperTest.java | 110 mPowerUsageFeatureProvider = FakeFeatureFactory.setupForTest().powerUsageFeatureProvider; in setUp()
|
/packages/apps/Settings/tests/robotests/testutils/com/android/settings/testutils/ |
D | FakeFeatureFactory.java | 72 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/ |
D | FakeFeatureFactory.java | 71 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/ |
D | BatteryManagerPreferenceControllerTest.java | 68 mPowerUsageFeatureProvider = mFeatureFactory.powerUsageFeatureProvider; in setUp()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/bugreport/ |
D | LogUtilsTest.java | 64 mPowerUsageFeatureProvider = FakeFeatureFactory.setupForTest().powerUsageFeatureProvider; in setUp()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/ |
D | PowerUsageAdvanced.java | 274 final PowerUsageFeatureProvider powerUsageFeatureProvider = in detectAnomaly() local 277 powerUsageFeatureProvider.detectPowerAnomaly( in detectAnomaly()
|
/packages/apps/Settings/src/com/android/settings/overlay/ |
D | FeatureFactory.kt | 78 abstract val powerUsageFeatureProvider: PowerUsageFeatureProvider constant in com.android.settings.overlay.FeatureFactory
|
D | FeatureFactoryImpl.kt | 84 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/ |
D | FakeFeatureFactory.kt | 76 override val powerUsageFeatureProvider: PowerUsageFeatureProvider constant in com.android.settings.testutils.FakeFeatureFactory
|