Searched refs:mBatteryStatsHelper (Results 1 – 2 of 2) sorted by relevance
100 private BatteryStatsHelper mBatteryStatsHelper; field in BatteryStatsHelperTest137 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 …]
299 private BatteryStatsHelper mBatteryStatsHelper = null; field in StatsCompanionService1750 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()