Home
last modified time | relevance | path

Searched refs:mUidBatteryConsumer (Results 1 – 3 of 3) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/
DAppBatteryPreferenceControllerTest.java74 private UidBatteryConsumer mUidBatteryConsumer; field in AppBatteryPreferenceControllerTest
101 when(mUidBatteryConsumer.getUid()).thenReturn(TARGET_UID); in setUp()
128 uidBatteryConsumers.add(mUidBatteryConsumer); in findTargetBatteryConsumer_findCorrectBatteryConsumer()
133 .isEqualTo(mUidBatteryConsumer); in findTargetBatteryConsumer_findCorrectBatteryConsumer()
182 mController.mUidBatteryConsumer = mUidBatteryConsumer; in isBatteryStatsAvailable_hasBatteryStatsHelperAndSipper_returnTrue()
200 mController.mUidBatteryConsumer = mUidBatteryConsumer; in launchPowerUsageDetailFragment_shouldNotCrash()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/
DBatteryEntryTest.java72 @Mock private UidBatteryConsumer mUidBatteryConsumer; field in BatteryEntryTest
198 when(mUidBatteryConsumer.getTimeInProcessStateMs( in getTimeInForegroundMs_app()
206 mUidBatteryConsumer, in getTimeInForegroundMs_app()
230 when(mUidBatteryConsumer.getTimeInProcessStateMs( in getTimeInBackgroundMs_app()
238 mUidBatteryConsumer, in getTimeInBackgroundMs_app()
249 when(mUidBatteryConsumer.getTimeInProcessStateMs( in getTimeInForegroundServiceMs_app()
257 mUidBatteryConsumer, in getTimeInForegroundServiceMs_app()
/packages/apps/Settings/src/com/android/settings/applications/appinfo/
DAppBatteryPreferenceController.java67 UidBatteryConsumer mUidBatteryConsumer; field in AppBatteryPreferenceController
137 mUidBatteryConsumer, /* isHidden */ false, in handlePreferenceTreeClick()
138 mUidBatteryConsumer.getUid(), /* packages */ null, mPackageName); in handlePreferenceTreeClick()
213 mUidBatteryConsumer = findTargetUidBatteryConsumer(mBatteryUsageStats, in onLoadFinished()
228 return mUidBatteryConsumer != null; in isBatteryStatsAvailable()