Home
last modified time | relevance | path

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

/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/
DBatteryDiffEntry.java35 import com.android.settings.fuelgauge.batteryusage.BatteryEntry.NameAndIcon;
53 static final Map<String, NameAndIcon> sResourceCache = new ArrayMap<>();
340 final NameAndIcon nameAndIcon = getCache(); in loadLabelAndIcon()
370 putResourceCache(getKey(), new NameAndIcon(mAppLabel, mAppIcon, mAppIconId)); in loadLabelAndIcon()
377 final NameAndIcon nameAndIconForUser = in loadLabelAndIcon()
383 getKey(), new NameAndIcon(mAppLabel, mAppIcon, /* iconId= */ 0)); in loadLabelAndIcon()
387 final NameAndIcon nameAndIconForSystem = in loadLabelAndIcon()
395 putResourceCache(getKey(), new NameAndIcon(mAppLabel, mAppIcon, mAppIconId)); in loadLabelAndIcon()
408 getKey(), new NameAndIcon(mAppLabel, mAppIcon, /* iconId= */ 0)); in loadLabelAndIcon()
451 private NameAndIcon getCache() { in getCache()
[all …]
DBatteryEntry.java54 public static final class NameAndIcon { class in BatteryEntry
60 public NameAndIcon(String name, Drawable icon, int iconId) { in NameAndIcon() method in BatteryEntry.NameAndIcon
64 public NameAndIcon(String name, String packageName, Drawable icon, int iconId) { in NameAndIcon() method in BatteryEntry.NameAndIcon
218 final NameAndIcon nameAndIcon = in BatteryEntry()
244 final NameAndIcon nameAndIcon = getNameAndIconFromPowerComponent(context, powerComponentId); in BatteryEntry()
290 public static NameAndIcon loadNameAndIcon( in loadNameAndIcon()
397 return new NameAndIcon(name, defaultPackageName, icon, /* iconId= */ 0); in loadNameAndIcon()
547 public static NameAndIcon getNameAndIconFromUserId(Context context, final int userId) { in getNameAndIconFromUserId()
561 return new NameAndIcon(name, icon, 0 /* iconId */); in getNameAndIconFromUserId()
565 public static NameAndIcon getNameAndIconFromUid(Context context, String name, final int uid) { in getNameAndIconFromUid()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/
DBatteryEntryTest.java40 import com.android.settings.fuelgauge.batteryusage.BatteryEntry.NameAndIcon;
318 final NameAndIcon nameAndIcon = BatteryEntry.getNameAndIconFromUserId(mContext, userId); in getNameAndIconFromUserId_nullUserInfo_returnDefaultNameAndIcon()
326 final NameAndIcon nameAndIcon = in getNameAndIconFromUid_rerturnExpectedName()
339 final NameAndIcon nameAndIcon = in getNameAndIconFromUid_tetheringUid_rerturnExpectedName()
348 final NameAndIcon nameAndIcon = in getNameAndIconFromUid_removedAppsUid_rerturnExpectedName()
400 final NameAndIcon nameAndIcon = in assertNameAndIcon()
406 final NameAndIcon nameAndIcon = in assertNameAndIcon()
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()
DBatteryUsageBreakdownControllerTest.java130 new BatteryEntry.NameAndIcon("fakeName", /* icon= */ null, /* iconId= */ 1)); in setUp()
DBatteryChartPreferenceControllerTest.java120 new BatteryEntry.NameAndIcon("fakeName", /* icon= */ null, /* iconId= */ 1)); in setUp()