Home
last modified time | relevance | path

Searched refs:BatteryEntry (Results 1 – 22 of 22) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/
DBatteryEntryTest.java40 import com.android.settings.fuelgauge.batteryusage.BatteryEntry.NameAndIcon;
97 private BatteryEntry createBatteryEntryForApp( in createBatteryEntryForApp()
102 return new BatteryEntry( in createBatteryEntryForApp()
106 private BatteryEntry createAggregateBatteryEntry(int powerComponentId) { in createAggregateBatteryEntry()
107 return new BatteryEntry( in createAggregateBatteryEntry()
115 private BatteryEntry createCustomAggregateBatteryEntry(int powerComponentId) { in createCustomAggregateBatteryEntry()
116 return new BatteryEntry( in createCustomAggregateBatteryEntry()
123 private BatteryEntry createUserBatteryConsumer(int userId) { in createUserBatteryConsumer()
126 return new BatteryEntry(mMockContext, mMockUserManager, consumer, false, 0, null, null); in createUserBatteryConsumer()
131 BatteryEntry entry = in batteryEntryForApp_shouldSetDefaultPackageNameAndLabel()
[all …]
DBatteryDiffEntryTest.java216 final BatteryEntry.NameAndIcon nameAndIcon = in testLoadLabelAndIcon_forSystemBattery_returnExpectedResult()
242 final BatteryEntry.NameAndIcon nameAndIcon = in testLoadLabelAndIcon_forUserBattery_returnExpectedResult()
269 final BatteryEntry.NameAndIcon nameAndIcon = in testGetAppLabel_loadDataFromApplicationInfo()
289 final BatteryEntry.NameAndIcon nameAndIcon = in testGetAppLabel_loadDataFromPreDefinedNameAndUid()
353 final BatteryEntry.NameAndIcon nameAndIcon = in testGetAppIcon_uidConsumerWithNullIcon_returnDefaultActivityIcon()
362 new BatteryEntry.NameAndIcon("app label", null, /* iconId= */ 0)); in testClearCache_clearDataForAllCaches()
389 final BatteryEntry.NameAndIcon nameAndIcon = in testClearCache_switchLocale_clearCacheIconAndLabel()
DBatteryUsageDataLoaderTest.java61 @Mock private BatteryEntry mMockBatteryEntry;
80 final List<BatteryEntry> batteryEntryList = new ArrayList<>(); in loadUsageData_loadUsageDataWithHistory()
DDatabaseUtilsTest.java76 @Mock private BatteryEntry mMockBatteryEntry1;
77 @Mock private BatteryEntry mMockBatteryEntry2;
78 @Mock private BatteryEntry mMockBatteryEntry3;
175 final List<BatteryEntry> batteryEntryList = new ArrayList<>(); in sendBatteryEntryData_returnsExpectedList()
DDataProcessorTest.java85 @Mock private BatteryEntry mMockBatteryEntry1;
86 @Mock private BatteryEntry mMockBatteryEntry2;
87 @Mock private BatteryEntry mMockBatteryEntry3;
88 @Mock private BatteryEntry mMockBatteryEntry4;
1913 final List<BatteryEntry> batteryEntryList = new ArrayList<>(); in generateBatteryDiffData_returnsExpectedResult()
DBatteryHistEntryTest.java44 @Mock private BatteryEntry mMockBatteryEntry;
DBatteryUsageBreakdownControllerTest.java130 new BatteryEntry.NameAndIcon("fakeName", /* icon= */ null, /* iconId= */ 1)); in setUp()
DBatteryChartPreferenceControllerTest.java120 new BatteryEntry.NameAndIcon("fakeName", /* icon= */ null, /* iconId= */ 1)); in setUp()
DConvertUtilsTest.java66 @Mock private BatteryEntry mMockBatteryEntry;
/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/
DPowerGaugePreference.java49 private BatteryEntry mInfo;
57 Context context, Drawable icon, CharSequence contentDescription, BatteryEntry info) { in PowerGaugePreference()
74 BatteryEntry info) { in PowerGaugePreference()
126 BatteryEntry getInfo() { in getInfo()
DBatteryDiffEntry.java35 import com.android.settings.fuelgauge.batteryusage.BatteryEntry.NameAndIcon;
378 BatteryEntry.getNameAndIconFromUserId(mContext, (int) mUserId); in loadLabelAndIcon()
388 BatteryEntry.getNameAndIconFromPowerComponent(mContext, mComponentId); in loadLabelAndIcon()
494 BatteryEntry.getNameAndIconFromUid(mContext, mAppLabel, uid); in loadNameAndIconForUid()
500 BatteryEntry.loadNameAndIcon( in loadNameAndIconForUid()
503 BatteryEntry.clearUidCache(); in loadNameAndIconForUid()
DBatteryEntry.java51 public class BatteryEntry { class
104 public static final Comparator<BatteryEntry> COMPARATOR =
135 public BatteryEntry( in BatteryEntry() method in BatteryEntry
146 public BatteryEntry( in BatteryEntry() method in BatteryEntry
229 public BatteryEntry( in BatteryEntry() method in BatteryEntry
253 public BatteryEntry( in BatteryEntry() method in BatteryEntry
293 BatteryEntry batteryEntry, in loadNameAndIcon()
DDataProcessor.java370 public static List<BatteryEntry> generateBatteryEntryListFromBatteryUsageStats( in generateBatteryEntryListFromBatteryUsageStats()
381 final List<BatteryEntry> usageList = in generateBatteryEntryListFromBatteryUsageStats()
389 final BatteryEntry entry = usageList.get(i); in generateBatteryEntryListFromBatteryUsageStats()
1073 final List<BatteryEntry> batteryEntryList = in getBatteryHistListFromFromStatsService()
1087 @Nullable final List<BatteryEntry> batteryEntryList, in convertToBatteryHistEntry()
1687 private static List<BatteryEntry> getCoalescedUsageList( in getCoalescedUsageList()
1694 final SparseArray<BatteryEntry> batteryEntryList = new SparseArray<>(); in getCoalescedUsageList()
1695 final ArrayList<BatteryEntry> results = new ArrayList<>(); in getCoalescedUsageList()
1720 new BatteryEntry( in getCoalescedUsageList()
1731 final BatteryEntry existingSipper = batteryEntryList.valueAt(index); in getCoalescedUsageList()
[all …]
DBatteryUsageDataLoader.java43 @VisibleForTesting static Supplier<List<BatteryEntry>> sFakeBatteryEntryListSupplier;
62 final List<BatteryEntry> batteryEntryList = in loadBatteryStatsData()
DBatteryUsageBroadcastReceiver.java101 BatteryEntry.clearUidCache(); in onReceive()
DConvertUtils.java100 final BatteryEntry entry, in convertBatteryEntryToContentValues()
220 BatteryEntry entry, BatteryUsageStats batteryUsageStats) { in convertToBatteryHistEntry()
626 final BatteryEntry entry, in constructBatteryInformation()
DDatabaseUtils.java672 final List<BatteryEntry> batteryEntryList, in sendBatteryEntryData()
695 for (BatteryEntry entry : batteryEntryList) { in sendBatteryEntryData()
DPowerUsageAdvanced.java109 BatteryEntry.clearUidCache(); in onDestroy()
/packages/apps/Settings/src/com/android/settings/applications/appinfo/
DAppBatteryPreferenceController.java43 import com.android.settings.fuelgauge.batteryusage.BatteryEntry;
136 final BatteryEntry entry = new BatteryEntry(mContext, userManager, in handlePreferenceTreeClick()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DPowerBackgroundUsageDetailTest.java52 import com.android.settings.fuelgauge.batteryusage.BatteryEntry;
120 @Mock private BatteryEntry mBatteryEntry;
DAdvancedPowerUsageDetailTest.java53 import com.android.settings.fuelgauge.batteryusage.BatteryEntry;
112 @Mock private BatteryEntry mBatteryEntry;
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DAdvancedPowerUsageDetail.java48 import com.android.settings.fuelgauge.batteryusage.BatteryEntry;
164 BatteryEntry entry, in startBatteryDetailPage()