Home
last modified time | relevance | path

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

/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryEntryTest.java40 import com.android.settings.fuelgauge.BatteryEntry.NameAndIcon;
94 private BatteryEntry createBatteryEntryForApp(String[] packages, String packageName, in createBatteryEntryForApp()
99 return new BatteryEntry(mMockContext, mockHandler, mockUserManager, in createBatteryEntryForApp()
103 private BatteryEntry createAggregateBatteryEntry(int powerComponentId) { in createAggregateBatteryEntry()
104 return new BatteryEntry(mMockContext, powerComponentId, 200, 100, 1000); in createAggregateBatteryEntry()
107 private BatteryEntry createCustomAggregateBatteryEntry(int powerComponentId) { in createCustomAggregateBatteryEntry()
108 return new BatteryEntry(mMockContext, powerComponentId, "CUSTOM", 200, 100); in createCustomAggregateBatteryEntry()
111 private BatteryEntry createUserBatteryConsumer(int userId) { in createUserBatteryConsumer()
114 return new BatteryEntry(mMockContext, mockHandler, mockUserManager, in createUserBatteryConsumer()
120 BatteryEntry entry = createBatteryEntryForApp(null, APP_DEFAULT_PACKAGE_NAME, in batteryEntryForApp_shouldSetDefaultPackageNameAndLabel()
[all …]
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()
DBatteryAppListPreferenceControllerTest.java65 private BatteryEntry mBatteryEntry;
DBatteryHistEntryTest.java41 private BatteryEntry mockBatteryEntry;
DConvertUtilsTest.java54 @Mock private BatteryEntry mockBatteryEntry;
DBatteryChartPreferenceControllerTest.java123 new BatteryEntry.NameAndIcon("fakeName", /*icon=*/ null, /*iconId=*/ 1)); in setUp()
DAdvancedPowerUsageDetailTest.java115 private BatteryEntry mBatteryEntry;
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryAppListPreferenceController.java113 case BatteryEntry.MSG_UPDATE_NAME_ICON:
114 BatteryEntry entry = (BatteryEntry) msg.obj;
126 case BatteryEntry.MSG_REPORT_FULLY_DRAWN:
156 BatteryEntry.stopRequestQueue(); in onPause()
157 mHandler.removeMessages(BatteryEntry.MSG_UPDATE_NAME_ICON); in onPause()
163 BatteryEntry.clearUidCache(); in onDestroy()
189 BatteryEntry entry = pgp.getInfo(); in handlePreferenceTreeClick()
215 final List<BatteryEntry> usageList = in refreshAppListGroup()
220 final BatteryEntry entry = usageList.get(i); in refreshAppListGroup()
261 BatteryEntry.startRequestQueue(); in refreshAppListGroup()
[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()
186 BatteryEntry.getNameAndIconFromUserId( in loadLabelAndIcon()
193 new BatteryEntry.NameAndIcon(mAppLabel, mAppIcon, /*iconId=*/ 0)); in loadLabelAndIcon()
197 final BatteryEntry.NameAndIcon nameAndIconForSystem = in loadLabelAndIcon()
198 BatteryEntry.getNameAndIconFromPowerComponent( 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()
[all …]
DBatteryEntry.java53 public class BatteryEntry { class
82 static final ArrayList<BatteryEntry> sRequestQueue = new ArrayList<BatteryEntry>();
101 BatteryEntry be; in run()
112 BatteryEntry.loadNameAndIcon( in run()
157 public static final Comparator<BatteryEntry> COMPARATOR =
185 public BatteryEntry(Context context, Handler handler, UserManager um, in BatteryEntry() method in BatteryEntry
191 public BatteryEntry(Context context, Handler handler, UserManager um, in BatteryEntry() method in BatteryEntry
246 public BatteryEntry(Context context, int powerComponentId, double devicePowerMah, in BatteryEntry() method in BatteryEntry
269 public BatteryEntry(Context context, int powerComponentId, String powerComponentName, in BatteryEntry() method in BatteryEntry
349 BatteryEntry batteryEntry, in loadNameAndIcon()
DPowerGaugePreference.java39 private BatteryEntry mInfo;
46 BatteryEntry info) { in PowerGaugePreference()
59 CharSequence contentDescription, BatteryEntry info) { in PowerGaugePreference()
106 BatteryEntry getInfo() { in getInfo()
DAdvancedPowerUsageDetail.java160 InstrumentedPreferenceFragment fragment, BatteryEntry entry, String usagePercent, in startBatteryDetailPage()
208 BatteryEntry batteryEntry) { in getUserIdToLaunchAdvancePowerUsageDetail()
DPowerUsageAdvanced.java83 BatteryEntry.clearUidCache(); in onDestroy()
DConvertUtils.java95 BatteryEntry entry, in convert()
/packages/apps/Settings/src/com/android/settings/applications/appinfo/
DAppBatteryPreferenceController.java43 import com.android.settings.fuelgauge.BatteryEntry;
140 final BatteryEntry entry = new BatteryEntry(mContext, /* handler */null, userManager, in handlePreferenceTreeClick()