Home
last modified time | relevance | path

Searched refs:BatteryConsumerData (Results 1 – 13 of 13) sorted by relevance

/frameworks/base/core/tests/batterystatstests/BatteryStatsViewer/src/com/android/frameworks/core/batterystatsviewer/
DBatteryConsumerInfoHelper.java40 public BatteryConsumerData.ConsumerType consumerType;
47 BatteryConsumerData.ConsumerType consumerType = BatteryConsumerData.getConsumerType( in makeBatteryConsumerInfo()
54 if (BatteryConsumerData.batteryConsumerId(consumer).equals(batteryConsumerId)) { in makeBatteryConsumerInfo()
71 info.consumerType = BatteryConsumerData.ConsumerType.UID_BATTERY_CONSUMER; in makeBatteryConsumerInfo()
72 info.id = BatteryConsumerData.batteryConsumerId(uidBatteryConsumer); in makeBatteryConsumerInfo()
140 info.consumerType = BatteryConsumerData.ConsumerType.DEVICE_POWER_COMPONENT; in makeAggregateBatteryConsumerInfo()
141 info.id = BatteryConsumerData.AGGREGATE_BATTERY_CONSUMER_ID; in makeAggregateBatteryConsumerInfo()
DBatteryStatsViewerActivity.java186 BatteryConsumerData batteryConsumerData = new BatteryConsumerData(this, in onBatteryStatsDataLoaded()
218 == BatteryConsumerData.ConsumerType.DEVICE_POWER_COMPONENT) { in onBatteryStatsDataLoaded()
256 private List<BatteryConsumerData.Entry> mEntries = Collections.emptyList();
258 public void setEntries(List<BatteryConsumerData.Entry> entries) { in setEntries()
279 BatteryConsumerData.Entry entry = mEntries.get(position); in onBindViewHolder()
372 private void setProportionText(TextView textView, BatteryConsumerData.Entry entry) { in setProportionText()
DBatteryConsumerPickerActivity.java158 BatteryConsumerData.AGGREGATE_BATTERY_CONSUMER_ID, in loadInBackground()
164 BatteryConsumerData.batteryConsumerId(consumer), in loadInBackground()
DBatteryConsumerData.java29 public class BatteryConsumerData { class
64 public BatteryConsumerData(Context context, in BatteryConsumerData() method in BatteryConsumerData
/frameworks/base/core/java/android/os/
DPowerComponents.java45 private final BatteryConsumer.BatteryConsumerData mData;
51 PowerComponents(BatteryConsumer.BatteryConsumerData data) { in PowerComponents()
243 BatteryUsageStatsAtomsProto.BatteryConsumerData.POWER_COMPONENTS, in writeStatsProtoImpl()
269 BatteryUsageStatsAtomsProto.BatteryConsumerData.POWER_COMPONENTS, in writeStatsProtoImpl()
278 proto.start(BatteryUsageStatsAtomsProto.BatteryConsumerData.SLICES); in writePowerUsageSlice()
280 BatteryUsageStatsAtomsProto.BatteryConsumerData.PowerComponentUsageSlice in writePowerUsageSlice()
287 procState = BatteryUsageStatsAtomsProto.BatteryConsumerData.PowerComponentUsageSlice in writePowerUsageSlice()
291 procState = BatteryUsageStatsAtomsProto.BatteryConsumerData.PowerComponentUsageSlice in writePowerUsageSlice()
295 procState = BatteryUsageStatsAtomsProto.BatteryConsumerData.PowerComponentUsageSlice in writePowerUsageSlice()
299 procState = BatteryUsageStatsAtomsProto.BatteryConsumerData.PowerComponentUsageSlice in writePowerUsageSlice()
[all …]
DBatteryConsumer.java308 protected final BatteryConsumerData mData;
311 protected BatteryConsumer(BatteryConsumerData data, @NonNull PowerComponents powerComponents) { in BatteryConsumer()
316 public BatteryConsumer(BatteryConsumerData data) { in BatteryConsumer()
556 BatteryUsageStatsAtomsProto.BatteryConsumerData.TOTAL_CONSUMED_POWER_DECI_COULOMBS, in writeStatsProtoImpl()
569 static class BatteryConsumerData { class in BatteryConsumer
574 BatteryConsumerData(CursorWindow cursorWindow, int cursorRow, in BatteryConsumerData() method in BatteryConsumer.BatteryConsumerData
582 static BatteryConsumerData create(CursorWindow cursorWindow, in create()
589 return new BatteryConsumerData(cursorWindow, cursorRow, layout); in create()
804 protected final BatteryConsumer.BatteryConsumerData mData;
807 public BaseBuilder(BatteryConsumer.BatteryConsumerData data, int consumerType, in BaseBuilder()
DUidBatteryConsumer.java78 UidBatteryConsumer(BatteryConsumerData data) { in UidBatteryConsumer()
163 static UidBatteryConsumer create(BatteryConsumerData data) { in create()
236 public Builder(BatteryConsumerData data, @NonNull BatteryStats.Uid batteryStatsUid, in Builder()
241 public Builder(BatteryConsumerData data, int uid, double minConsumedPowerThreshold) { in Builder()
245 private Builder(BatteryConsumerData data, @Nullable BatteryStats.Uid batteryStatsUid, in Builder()
DBatteryUsageStats.java364 final BatteryConsumer.BatteryConsumerData data = in BatteryUsageStats()
365 new BatteryConsumer.BatteryConsumerData(mBatteryConsumersCursorWindow, i, in BatteryUsageStats()
859 final BatteryConsumer.BatteryConsumerData data = in Builder()
860 BatteryConsumer.BatteryConsumerData.create(mBatteryConsumersCursorWindow, in Builder()
1000 final BatteryConsumer.BatteryConsumerData data = in getOrCreateUidBatteryConsumerBuilder()
1001 BatteryConsumer.BatteryConsumerData.create(mBatteryConsumersCursorWindow, in getOrCreateUidBatteryConsumerBuilder()
1019 final BatteryConsumer.BatteryConsumerData data = in getOrCreateUidBatteryConsumerBuilder()
1020 BatteryConsumer.BatteryConsumerData.create(mBatteryConsumersCursorWindow, in getOrCreateUidBatteryConsumerBuilder()
1036 final BatteryConsumer.BatteryConsumerData data = in getOrCreateUserBatteryConsumerBuilder()
1037 BatteryConsumer.BatteryConsumerData.create(mBatteryConsumersCursorWindow, in getOrCreateUserBatteryConsumerBuilder()
DUserBatteryConsumer.java45 UserBatteryConsumer(BatteryConsumerData data) { in UserBatteryConsumer()
111 Builder(BatteryConsumerData data, int userId, double minConsumedPowerThreshold) { in Builder()
DAggregateBatteryConsumer.java44 AggregateBatteryConsumer(BatteryConsumerData data) { in AggregateBatteryConsumer()
120 public Builder(BatteryConsumer.BatteryConsumerData data, int scope, in Builder()
/frameworks/base/core/tests/batterystatstests/BatteryUsageStatsProtoTests/src/com/android/internal/os/
DBatteryUsageStatsPulledTest.java32 import android.os.nano.BatteryUsageStatsAtomsProto.BatteryConsumerData.PowerComponentUsage;
126 android.os.nano.BatteryUsageStatsAtomsProto.BatteryConsumerData consumerProto) { in assertSameBatteryConsumer()
163 BatteryUsageStatsAtomsProto.BatteryConsumerData.PowerComponentUsageSlice in assertSameBatteryConsumer()
165 for (BatteryUsageStatsAtomsProto.BatteryConsumerData.PowerComponentUsageSlice in assertSameBatteryConsumer()
395 BatteryUsageStatsAtomsProto.BatteryConsumerData consumerData = in testLargeAtomTruncated()
401 BatteryUsageStatsAtomsProto.BatteryConsumerData consumerData = in testLargeAtomTruncated()
/frameworks/base/core/proto/android/os/
Dbatteryusagestats.proto46 message BatteryConsumerData { message
89 optional BatteryConsumerData device_battery_consumer = 4;
94 optional BatteryConsumerData battery_consumer_data = 2;
/frameworks/proto_logging/stats/
Datoms.proto9592 message BatteryConsumerData { message
9634 optional BatteryConsumerData device_battery_consumer = 4;
9639 optional BatteryConsumerData battery_consumer_data = 2;