Searched refs:batteryConsumerId (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/core/tests/batterystatstests/BatteryStatsViewer/src/com/android/frameworks/core/batterystatsviewer/ |
D | BatteryConsumerData.java | 65 List<BatteryUsageStats> batteryUsageStatsList, String batteryConsumerId) { in BatteryConsumerData() argument 66 switch (getConsumerType(batteryConsumerId)) { in BatteryConsumerData() 68 populateForUidBatteryConsumer(context, batteryUsageStatsList, batteryConsumerId); in BatteryConsumerData() 78 String batteryConsumerId) { in populateForUidBatteryConsumer() argument 82 batteryConsumerId); in populateForUidBatteryConsumer() 84 modeledBatteryUsageStats, batteryConsumerId); in populateForUidBatteryConsumer() 92 batteryUsageStats, batteryConsumerId, context.getPackageManager()); in populateForUidBatteryConsumer() 169 batteryConsumerId, context.getPackageManager()); in populateForUidBatteryConsumer() 287 String batteryConsumerId) { in getRequestedBatteryConsumer() argument 289 if (batteryConsumerId(consumer).equals(batteryConsumerId)) { in getRequestedBatteryConsumer() [all …]
|
D | BatteryConsumerInfoHelper.java | 45 @NonNull BatteryUsageStats batteryUsageStats, String batteryConsumerId, in makeBatteryConsumerInfo() argument 48 batteryConsumerId); in makeBatteryConsumerInfo() 54 if (BatteryConsumerData.batteryConsumerId(consumer).equals(batteryConsumerId)) { in makeBatteryConsumerInfo() 64 info.id = batteryConsumerId; in makeBatteryConsumerInfo() 72 info.id = BatteryConsumerData.batteryConsumerId(uidBatteryConsumer); in makeBatteryConsumerInfo()
|
D | BatteryConsumerPickerActivity.java | 63 void onBatteryConsumerSelected(String batteryConsumerId); in onBatteryConsumerSelected() argument 83 final String batteryConsumerId = getPreferences(Context.MODE_PRIVATE) in onCreate() local 85 if (batteryConsumerId != null) { in onCreate() 86 startBatteryStatsActivity(batteryConsumerId); in onCreate() 91 public void setSelectedBatteryConsumer(String batteryConsumerId) { in setSelectedBatteryConsumer() argument 93 .putString(PREF_SELECTED_BATTERY_CONSUMER, batteryConsumerId) in setSelectedBatteryConsumer() 95 startBatteryStatsActivity(batteryConsumerId); in setSelectedBatteryConsumer() 98 private void startBatteryStatsActivity(String batteryConsumerId) { in startBatteryStatsActivity() argument 100 .putExtra(BatteryStatsViewerActivity.EXTRA_BATTERY_CONSUMER, batteryConsumerId); in startBatteryStatsActivity() 164 BatteryConsumerData.batteryConsumerId(consumer), in loadInBackground()
|