Home
last modified time | relevance | path

Searched refs:consumerType (Results 1 – 9 of 9) sorted by relevance

/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/db/
DBatteryState.java43 public final int consumerType; field in BatteryState
65 int consumerType, in BatteryState() argument
74 this.consumerType = consumerType; in BatteryState()
111 consumerType, in toString()
195 public Builder setConsumerType(int consumerType) { in setConsumerType() argument
196 this.mConsumerType = consumerType; in setConsumerType()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/
DBatteryHistEntryTest.java302 private static BatteryHistEntry createEntry(int consumerType) { in createEntry() argument
303 return new BatteryHistEntry(getContentValuesWithType(consumerType)); in createEntry()
306 private static ContentValues getContentValuesWithType(int consumerType) { in getContentValuesWithType() argument
308 values.put(BatteryHistEntry.KEY_CONSUMER_TYPE, Integer.valueOf(consumerType)); in getContentValuesWithType()
DBatteryDiffEntryTest.java551 private BatteryDiffEntry createBatteryDiffEntry(int consumerType, long uid, boolean isHidden) { in createBatteryDiffEntry() argument
561 /*consumerType*/ consumerType, in createBatteryDiffEntry()
599 private static ContentValues getContentValuesWithType(int consumerType) { in getContentValuesWithType() argument
601 values.put(BatteryHistEntry.KEY_CONSUMER_TYPE, Integer.valueOf(consumerType)); in getContentValuesWithType()
DBatteryDiffDataTest.java230 final int consumerType, in createBatteryHistEntry() argument
251 values.put(BatteryHistEntry.KEY_CONSUMER_TYPE, consumerType); in createBatteryHistEntry()
DDataProcessorTest.java2445 final int consumerType, in createBatteryHistEntry() argument
2468 values.put(BatteryHistEntry.KEY_CONSUMER_TYPE, consumerType); in createBatteryHistEntry()
2583 final int consumerType, in assertBatteryDiffEntry() argument
2595 assertThat(entry.mConsumerType).isEqualTo(consumerType); in assertBatteryDiffEntry()
DBatteryUsageContentProviderTest.java335 assertThat(states.get(0).consumerType).isEqualTo(2); in insert_batteryState_returnsExpectedResult()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/
DConvertUtils.java85 public static boolean isUidConsumer(final int consumerType) { in isUidConsumer() argument
86 return consumerType == CONSUMER_TYPE_UID_BATTERY; in isUidConsumer()
90 public static boolean isUserConsumer(final int consumerType) { in isUserConsumer() argument
91 return consumerType == CONSUMER_TYPE_USER_BATTERY; in isUserConsumer()
95 public static boolean isSystemConsumer(final int consumerType) { in isSystemConsumer() argument
96 return consumerType == CONSUMER_TYPE_SYSTEM_BATTERY; in isSystemConsumer()
DBatteryDiffEntry.java127 int consumerType, in BatteryDiffEntry() argument
145 mConsumerType = consumerType; in BatteryDiffEntry()
158 public BatteryDiffEntry(Context context, String key, String legacyLabel, int consumerType) { in BatteryDiffEntry() argument
168 consumerType, in BatteryDiffEntry()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/db/
DBatteryStateTest.java77 assertThat(state.consumerType).isEqualTo(2); in testBuilder_returnsExpectedResult()