Searched refs:nameAndIcon (Results 1 – 4 of 4) sorted by relevance
162 final BatteryEntry.NameAndIcon nameAndIcon = getCache(); in loadLabelAndIcon() local163 if (nameAndIcon != null) { in loadLabelAndIcon()164 mAppLabel = nameAndIcon.name; in loadLabelAndIcon()165 mAppIcon = nameAndIcon.icon; in loadLabelAndIcon()166 mAppIconId = nameAndIcon.iconId; in loadLabelAndIcon()173 if (nameAndIcon != null && validForRestriction != null) { in loadLabelAndIcon()299 final BatteryEntry.NameAndIcon nameAndIcon = in loadNameAndIconForUid() local301 mAppLabel = nameAndIcon.name; in loadNameAndIconForUid()302 mAppIcon = nameAndIcon.icon; in loadNameAndIconForUid()305 final BatteryEntry.NameAndIcon nameAndIcon = in loadNameAndIconForUid() local[all …]
111 final NameAndIcon nameAndIcon = in run() local115 if (nameAndIcon != null) { in run()116 be.icon = nameAndIcon.icon; in run()117 be.name = nameAndIcon.name; in run()118 be.mDefaultPackageName = nameAndIcon.packageName; in run()236 final NameAndIcon nameAndIcon = getNameAndIconFromUserId( in BatteryEntry() local238 icon = nameAndIcon.icon; in BatteryEntry()239 name = nameAndIcon.name; in BatteryEntry()260 final NameAndIcon nameAndIcon = getNameAndIconFromPowerComponent(context, powerComponentId); in BatteryEntry() local261 iconId = nameAndIcon.iconId; in BatteryEntry()[all …]
132 final BatteryEntry.NameAndIcon nameAndIcon = in testLoadLabelAndIcon_forSystemBattery_returnExpectedResult() local134 assertThat(nameAndIcon.name).isEqualTo(expectedName); in testLoadLabelAndIcon_forSystemBattery_returnExpectedResult()135 assertThat(nameAndIcon.iconId).isEqualTo(R.drawable.ic_settings_aod); in testLoadLabelAndIcon_forSystemBattery_returnExpectedResult()158 final BatteryEntry.NameAndIcon nameAndIcon = in testLoadLabelAndIcon_forUserBattery_returnExpectedResult() local160 assertThat(nameAndIcon.name).isEqualTo(expectedName); in testLoadLabelAndIcon_forUserBattery_returnExpectedResult()161 assertThat(nameAndIcon.iconId).isEqualTo(0); in testLoadLabelAndIcon_forUserBattery_returnExpectedResult()187 final BatteryEntry.NameAndIcon nameAndIcon = in testGetAppLabel_loadDataFromApplicationInfo() local189 assertThat(nameAndIcon.name).isEqualTo(expectedAppLabel); in testGetAppLabel_loadDataFromApplicationInfo()207 final BatteryEntry.NameAndIcon nameAndIcon = in testGetAppLabel_loadDataFromPreDefinedNameAndUid() local209 assertThat(nameAndIcon.name).isEqualTo(expectedAppLabel); in testGetAppLabel_loadDataFromPreDefinedNameAndUid()[all …]
262 final NameAndIcon nameAndIcon = BatteryEntry.getNameAndIconFromUserId( in getNameAndIconFromUserId_nullUserInfo_returnDefaultNameAndIcon() local264 assertThat(nameAndIcon.name).isEqualTo(getString( in getNameAndIconFromUserId_nullUserInfo_returnDefaultNameAndIcon()266 assertThat(nameAndIcon.icon).isNull(); in getNameAndIconFromUserId_nullUserInfo_returnDefaultNameAndIcon()271 final NameAndIcon nameAndIcon = BatteryEntry.getNameAndIconFromUid( in getNameAndIconFromUid_rerturnExpectedName() local273 assertThat(nameAndIcon.name).isEqualTo(getString(R.string.process_kernel_label)); in getNameAndIconFromUid_rerturnExpectedName()313 final NameAndIcon nameAndIcon = BatteryEntry.getNameAndIconFromUid( in assertNameAndIcon() local315 assertThat(nameAndIcon.name).isEqualTo(getString(stringId)); in assertNameAndIcon()319 final NameAndIcon nameAndIcon = BatteryEntry.getNameAndIconFromPowerComponent( in assertNameAndIcon() local321 assertThat(nameAndIcon.name).isEqualTo(getString(stringId)); in assertNameAndIcon()322 assertThat(nameAndIcon.iconId).isEqualTo(iconId); in assertNameAndIcon()