Home
last modified time | relevance | path

Searched refs:mBatteryDiffEntry (Results 1 – 4 of 4) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryChartPreferenceControllerTest.java92 private BatteryDiffEntry mBatteryDiffEntry; field in BatteryChartPreferenceControllerTest
113 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 …]
/packages/apps/Settings/src/com/android/settings/applications/appinfo/
DAppBatteryPreferenceController.java72 BatteryDiffEntry mBatteryDiffEntry; field in AppBatteryPreferenceController
120 if (mBatteryDiffEntry != null) { in handlePreferenceTreeClick()
122 + mBatteryDiffEntry.getPackageName() in handlePreferenceTreeClick()
124 + mBatteryDiffEntry.mBatteryHistEntry.mUid in handlePreferenceTreeClick()
129 mBatteryDiffEntry, in handlePreferenceTreeClick() local
131 mBatteryDiffEntry.getPercentOfTotal(), /* round */ true), in handlePreferenceTreeClick()
207 mBatteryDiffEntry = batteryDiffEntry; in loadBatteryDiffEntries()
216 if (mBatteryDiffEntry != null && mBatteryDiffEntry.mConsumePower > 0) {
218 mBatteryDiffEntry.getPercentOfTotal(), /* round */ true);
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/
DAppBatteryPreferenceControllerTest.java81 private BatteryDiffEntry mBatteryDiffEntry; field in AppBatteryPreferenceControllerTest
170 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()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DPowerGaugePreference.java40 private BatteryDiffEntry mBatteryDiffEntry; field in PowerGaugePreference
103 mBatteryDiffEntry = entry; in setBatteryDiffEntry()
111 return mBatteryDiffEntry; in getBatteryDiffEntry()