Home
last modified time | relevance | path

Searched refs:mBatteryStatsHelper (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBatteryStatsHelperTest.java100 private BatteryStatsHelper mBatteryStatsHelper; field in BatteryStatsHelperTest
137 mBatteryStatsHelper = spy(new BatteryStatsHelper(mContext)); in setUp()
138 mBatteryStatsHelper.setPackageManager(mPackageManager); in setUp()
144 assertThat(mBatteryStatsHelper.shouldHideSipper(mNormalBatterySipper)).isTrue(); in testShouldHideSipper_TypeUnAccounted_ReturnTrue()
150 assertThat(mBatteryStatsHelper.shouldHideSipper(mNormalBatterySipper)).isTrue(); in testShouldHideSipper_TypeOverAccounted_ReturnTrue()
156 assertThat(mBatteryStatsHelper.shouldHideSipper(mNormalBatterySipper)).isTrue(); in testShouldHideSipper_TypeIdle_ReturnTrue()
162 assertThat(mBatteryStatsHelper.shouldHideSipper(mNormalBatterySipper)).isTrue(); in testShouldHideSipper_TypeCell_ReturnTrue()
168 assertThat(mBatteryStatsHelper.shouldHideSipper(mNormalBatterySipper)).isTrue(); in testShouldHideSipper_TypeScreen_ReturnTrue()
175 assertThat(mBatteryStatsHelper.shouldHideSipper(mNormalBatterySipper)).isTrue(); in testShouldHideSipper_TypeSystem_ReturnTrue()
181 assertThat(mBatteryStatsHelper.shouldHideSipper(mNormalBatterySipper)).isFalse(); in testShouldHideSipper_UidNormal_ReturnFalse()
[all …]
/frameworks/base/services/core/java/com/android/server/stats/
DStatsCompanionService.java299 private BatteryStatsHelper mBatteryStatsHelper = null; field in StatsCompanionService
1750 if (mBatteryStatsHelper == null) { in getBatteryStatsHelper()
1754 mBatteryStatsHelper = new BatteryStatsHelper(mContext, false); in getBatteryStatsHelper()
1758 mBatteryStatsHelper.create((Bundle) null); in getBatteryStatsHelper()
1763 mBatteryStatsHelper.refreshStats(BatteryStats.STATS_SINCE_CHARGED, UserHandle.USER_ALL); in getBatteryStatsHelper()
1765 mBatteryStatsHelper.clearStats(); in getBatteryStatsHelper()
1768 return mBatteryStatsHelper; in getBatteryStatsHelper()