Home
last modified time | relevance | path

Searched refs:mBatteryHistEntry (Results 1 – 7 of 7) sorted by relevance

/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryDiffEntry.java53 public final BatteryHistEntry mBatteryHistEntry; field in BatteryDiffEntry
77 mBatteryHistEntry = batteryHistEntry; in BatteryDiffEntry()
100 this.mBatteryHistEntry /*same instance*/); in clone()
108 ? mBatteryHistEntry.mAppLabel in getAppLabel()
127 ? mDefaultPackageName : mBatteryHistEntry.mPackageName; in getPackageName()
146 switch (mBatteryHistEntry.mConsumerType) { in isSystemEntry()
151 return isSystemUid((int) mBatteryHistEntry.mUid) in isSystemEntry()
152 || mBatteryHistEntry.mIsHidden; in isSystemEntry()
183 switch (mBatteryHistEntry.mConsumerType) { in loadLabelAndIcon()
187 mContext, (int) mBatteryHistEntry.mUserId); in loadLabelAndIcon()
[all …]
DBatteryChartPreferenceController.java218 final BatteryHistEntry histEntry = diffEntry.mBatteryHistEntry; in handlePreferenceTreeClick()
410 final String prefKey = entry.mBatteryHistEntry.getKey(); in addPreferenceToScreen()
462 final String prefKey = entry.mBatteryHistEntry.getKey(); in refreshExpandUi()
DConvertUtils.java304 final String key = entry.mBatteryHistEntry.getKey(); in insert24HoursData()
DAdvancedPowerUsageDetail.java140 final BatteryHistEntry histEntry = diffEntry.mBatteryHistEntry; in startBatteryDetailPage()
/packages/apps/Settings/src/com/android/settings/applications/appinfo/
DAppBatteryPreferenceController.java124 + mBatteryDiffEntry.mBatteryHistEntry.mUid in handlePreferenceTreeClick()
188 .filter(entry -> entry.mBatteryHistEntry.mConsumerType in loadBatteryDiffEntries()
190 .filter(entry -> entry.mBatteryHistEntry.mUserId == mUserId) in loadBatteryDiffEntries()
194 + entry.mBatteryHistEntry.mPackageName in loadBatteryDiffEntries()
195 + " | uid: " + entry.mBatteryHistEntry.mUid in loadBatteryDiffEntries()
196 + " | userId: " + entry.mBatteryHistEntry.mUserId); in loadBatteryDiffEntries()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryChartPreferenceControllerTest.java82 @Mock private BatteryHistEntry mBatteryHistEntry; field in BatteryChartPreferenceControllerTest
118 mBatteryHistEntry); in setUp()
318 doReturn(PREF_KEY).when(mBatteryHistEntry).getKey(); in testAddPreferenceToScreen_addPreferenceIntoScreen()
347 doReturn(PREF_KEY).when(mBatteryHistEntry).getKey(); in testAddPreferenceToScreen_alreadyInScreen_notAddPreferenceAgain()
369 doReturn(false).when(mBatteryHistEntry).isAppEntry(); in testHandlePreferenceTreeClick_forAppEntry_returnTrue()
388 doReturn(true).when(mBatteryHistEntry).isAppEntry(); in testHandlePreferenceTreeClick_forSystemEntry_returnTrue()
513 doReturn(PREF_KEY).when(mBatteryHistEntry).getKey(); in testOnExpand_expandedIsTrue_addSystemEntriesToPreferenceGroup()
530 doReturn(PREF_KEY).when(mBatteryHistEntry).getKey(); in testOnExpand_expandedIsFalse_removeSystemEntriesFromPreferenceGroup()
717 /*consumePower=*/ 0, mBatteryHistEntry); in createBatteryDiffEntry()
DBatteryDiffEntryTest.java61 @Mock private BatteryHistEntry mBatteryHistEntry; field in BatteryDiffEntryTest
106 entryList.add(createBatteryDiffEntry(30, mBatteryHistEntry)); in testComparator_sortCollectionsInDescOrder()
107 entryList.add(createBatteryDiffEntry(20, mBatteryHistEntry)); in testComparator_sortCollectionsInDescOrder()
108 entryList.add(createBatteryDiffEntry(10, mBatteryHistEntry)); in testComparator_sortCollectionsInDescOrder()