Home
last modified time | relevance | path

Searched refs:nameAndIcon (Results 1 – 4 of 4) sorted by relevance

/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryDiffEntry.java162 final BatteryEntry.NameAndIcon nameAndIcon = getCache(); in loadLabelAndIcon() local
163 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() local
301 mAppLabel = nameAndIcon.name; in loadNameAndIconForUid()
302 mAppIcon = nameAndIcon.icon; in loadNameAndIconForUid()
305 final BatteryEntry.NameAndIcon nameAndIcon = in loadNameAndIconForUid() local
[all …]
DBatteryEntry.java111 final NameAndIcon nameAndIcon = in run() local
115 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() local
238 icon = nameAndIcon.icon; in BatteryEntry()
239 name = nameAndIcon.name; in BatteryEntry()
260 final NameAndIcon nameAndIcon = getNameAndIconFromPowerComponent(context, powerComponentId); in BatteryEntry() local
261 iconId = nameAndIcon.iconId; in BatteryEntry()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryDiffEntryTest.java132 final BatteryEntry.NameAndIcon nameAndIcon = in testLoadLabelAndIcon_forSystemBattery_returnExpectedResult() local
134 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() local
160 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() local
189 assertThat(nameAndIcon.name).isEqualTo(expectedAppLabel); in testGetAppLabel_loadDataFromApplicationInfo()
207 final BatteryEntry.NameAndIcon nameAndIcon = in testGetAppLabel_loadDataFromPreDefinedNameAndUid() local
209 assertThat(nameAndIcon.name).isEqualTo(expectedAppLabel); in testGetAppLabel_loadDataFromPreDefinedNameAndUid()
[all …]
DBatteryEntryTest.java262 final NameAndIcon nameAndIcon = BatteryEntry.getNameAndIconFromUserId( in getNameAndIconFromUserId_nullUserInfo_returnDefaultNameAndIcon() local
264 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() local
273 assertThat(nameAndIcon.name).isEqualTo(getString(R.string.process_kernel_label)); in getNameAndIconFromUid_rerturnExpectedName()
313 final NameAndIcon nameAndIcon = BatteryEntry.getNameAndIconFromUid( in assertNameAndIcon() local
315 assertThat(nameAndIcon.name).isEqualTo(getString(stringId)); in assertNameAndIcon()
319 final NameAndIcon nameAndIcon = BatteryEntry.getNameAndIconFromPowerComponent( in assertNameAndIcon() local
321 assertThat(nameAndIcon.name).isEqualTo(getString(stringId)); in assertNameAndIcon()
322 assertThat(nameAndIcon.iconId).isEqualTo(iconId); in assertNameAndIcon()