Searched refs:mBatteryDiffEntry (Results 1 – 4 of 4) sorted by relevance
92 private BatteryDiffEntry mBatteryDiffEntry; field in BatteryChartPreferenceControllerTest113 mBatteryDiffEntry = new BatteryDiffEntry( in setUp()119 mBatteryDiffEntry = spy(mBatteryDiffEntry); in setUp()316 doReturn(mDrawable).when(mBatteryDiffEntry).getAppIcon(); in testAddPreferenceToScreen_addPreferenceIntoScreen()317 doReturn(appLabel).when(mBatteryDiffEntry).getAppLabel(); in testAddPreferenceToScreen_addPreferenceIntoScreen()320 doReturn(false).when(mBatteryDiffEntry).validForRestriction(); in testAddPreferenceToScreen_addPreferenceIntoScreen()323 Arrays.asList(mBatteryDiffEntry)); in testAddPreferenceToScreen_addPreferenceIntoScreen()336 assertThat(pref.getBatteryDiffEntry()).isSameInstanceAs(mBatteryDiffEntry); in testAddPreferenceToScreen_addPreferenceIntoScreen()345 doReturn(mDrawable).when(mBatteryDiffEntry).getAppIcon(); in testAddPreferenceToScreen_alreadyInScreen_notAddPreferenceAgain()346 doReturn(appLabel).when(mBatteryDiffEntry).getAppLabel(); in testAddPreferenceToScreen_alreadyInScreen_notAddPreferenceAgain()[all …]
72 BatteryDiffEntry mBatteryDiffEntry; field in AppBatteryPreferenceController120 if (mBatteryDiffEntry != null) { in handlePreferenceTreeClick()122 + mBatteryDiffEntry.getPackageName() in handlePreferenceTreeClick()124 + mBatteryDiffEntry.mBatteryHistEntry.mUid in handlePreferenceTreeClick()129 mBatteryDiffEntry, in handlePreferenceTreeClick() local131 mBatteryDiffEntry.getPercentOfTotal(), /* round */ true), in handlePreferenceTreeClick()207 mBatteryDiffEntry = batteryDiffEntry; in loadBatteryDiffEntries()216 if (mBatteryDiffEntry != null && mBatteryDiffEntry.mConsumePower > 0) {218 mBatteryDiffEntry.getPercentOfTotal(), /* round */ true);
81 private BatteryDiffEntry mBatteryDiffEntry; field in AppBatteryPreferenceControllerTest170 mBatteryDiffEntry.mConsumePower = 1; in updateBatteryWithDiffEntry_withConsumePower_summaryPercent()171 mController.mBatteryDiffEntry = mBatteryDiffEntry; in updateBatteryWithDiffEntry_withConsumePower_summaryPercent()172 when(mBatteryDiffEntry.getPercentOfTotal()).thenReturn(60.0); in updateBatteryWithDiffEntry_withConsumePower_summaryPercent()
40 private BatteryDiffEntry mBatteryDiffEntry; field in PowerGaugePreference103 mBatteryDiffEntry = entry; in setBatteryDiffEntry()111 return mBatteryDiffEntry; in getBatteryDiffEntry()