Home
last modified time | relevance | path

Searched refs:NameAndIcon (Results 1 – 5 of 5) sorted by relevance

/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryEntry.java55 public static final class NameAndIcon { class in BatteryEntry
61 public NameAndIcon(String name, Drawable icon, int iconId) { in NameAndIcon() method in BatteryEntry.NameAndIcon
65 public NameAndIcon( in NameAndIcon() method in BatteryEntry.NameAndIcon
111 final NameAndIcon nameAndIcon = in run()
236 final NameAndIcon nameAndIcon = getNameAndIconFromUserId( in BatteryEntry()
260 final NameAndIcon nameAndIcon = getNameAndIconFromPowerComponent(context, powerComponentId); in BatteryEntry()
327 final NameAndIcon nameAndIcon = getNameAndIconFromUid(mContext, name, uid); in getQuickNameIconForUid()
345 public static NameAndIcon loadNameAndIcon( in loadNameAndIcon()
443 return new NameAndIcon(name, defaultPackageName, icon, /*iconId=*/ 0); in loadNameAndIcon()
548 public static NameAndIcon getNameAndIconFromUserId( in getNameAndIconFromUserId()
[all …]
DBatteryDiffEntry.java41 static final Map<String, BatteryEntry.NameAndIcon> sResourceCache = new HashMap<>();
162 final BatteryEntry.NameAndIcon nameAndIcon = getCache(); in loadLabelAndIcon()
185 final BatteryEntry.NameAndIcon nameAndIconForUser = in loadLabelAndIcon()
193 new BatteryEntry.NameAndIcon(mAppLabel, mAppIcon, /*iconId=*/ 0)); in loadLabelAndIcon()
197 final BatteryEntry.NameAndIcon nameAndIconForSystem = in loadLabelAndIcon()
208 new BatteryEntry.NameAndIcon(mAppLabel, mAppIcon, mAppIconId)); in loadLabelAndIcon()
222 new BatteryEntry.NameAndIcon(mAppLabel, mAppIcon, /*iconId=*/ 0)); in loadLabelAndIcon()
262 private BatteryEntry.NameAndIcon getCache() { in getCache()
299 final BatteryEntry.NameAndIcon nameAndIcon = in loadNameAndIconForUid()
305 final BatteryEntry.NameAndIcon nameAndIcon = in loadNameAndIconForUid()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryDiffEntryTest.java132 final BatteryEntry.NameAndIcon nameAndIcon = in testLoadLabelAndIcon_forSystemBattery_returnExpectedResult()
158 final BatteryEntry.NameAndIcon nameAndIcon = in testLoadLabelAndIcon_forUserBattery_returnExpectedResult()
187 final BatteryEntry.NameAndIcon nameAndIcon = in testGetAppLabel_loadDataFromApplicationInfo()
207 final BatteryEntry.NameAndIcon nameAndIcon = in testGetAppLabel_loadDataFromPreDefinedNameAndUid()
253 final BatteryEntry.NameAndIcon nameAndIcon = in testGetAppIcon_uidConsumerWithNullIcon_returnDefaultActivityIcon()
262 new BatteryEntry.NameAndIcon("app label", null, /*iconId=*/ 0)); in testClearCache_clearDataForResourcesAndFlags()
290 final BatteryEntry.NameAndIcon nameAndIcon = in testClearCache_switchLocale_clearCacheIconAndLabel()
DBatteryEntryTest.java40 import com.android.settings.fuelgauge.BatteryEntry.NameAndIcon;
262 final NameAndIcon nameAndIcon = BatteryEntry.getNameAndIconFromUserId( in getNameAndIconFromUserId_nullUserInfo_returnDefaultNameAndIcon()
271 final NameAndIcon nameAndIcon = BatteryEntry.getNameAndIconFromUid( in getNameAndIconFromUid_rerturnExpectedName()
313 final NameAndIcon nameAndIcon = BatteryEntry.getNameAndIconFromUid( in assertNameAndIcon()
319 final NameAndIcon nameAndIcon = BatteryEntry.getNameAndIconFromPowerComponent( in assertNameAndIcon()
DBatteryChartPreferenceControllerTest.java123 new BatteryEntry.NameAndIcon("fakeName", /*icon=*/ null, /*iconId=*/ 1)); in setUp()