Searched refs:consumerType (Results 1 – 9 of 9) sorted by relevance
/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/db/ |
D | BatteryState.java | 43 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/ |
D | BatteryHistEntryTest.java | 302 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()
|
D | BatteryDiffEntryTest.java | 548 private BatteryDiffEntry createBatteryDiffEntry(int consumerType, long uid, boolean isHidden) { in createBatteryDiffEntry() argument 558 /*consumerType*/ consumerType, in createBatteryDiffEntry() 596 private static ContentValues getContentValuesWithType(int consumerType) { in getContentValuesWithType() argument 598 values.put(BatteryHistEntry.KEY_CONSUMER_TYPE, Integer.valueOf(consumerType)); in getContentValuesWithType()
|
D | BatteryDiffDataTest.java | 230 final int consumerType, in createBatteryHistEntry() argument 251 values.put(BatteryHistEntry.KEY_CONSUMER_TYPE, consumerType); in createBatteryHistEntry()
|
D | DataProcessorTest.java | 2391 final int consumerType, in createBatteryHistEntry() argument 2412 values.put(BatteryHistEntry.KEY_CONSUMER_TYPE, consumerType); in createBatteryHistEntry() 2527 final int consumerType, in assertBatteryDiffEntry() argument 2538 assertThat(entry.mConsumerType).isEqualTo(consumerType); in assertBatteryDiffEntry()
|
D | BatteryUsageContentProviderTest.java | 318 assertThat(states.get(0).consumerType).isEqualTo(2); in insert_batteryState_returnsExpectedResult()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/ |
D | ConvertUtils.java | 84 public static boolean isUidConsumer(final int consumerType) { in isUidConsumer() argument 85 return consumerType == CONSUMER_TYPE_UID_BATTERY; in isUidConsumer() 89 public static boolean isUserConsumer(final int consumerType) { in isUserConsumer() argument 90 return consumerType == CONSUMER_TYPE_USER_BATTERY; in isUserConsumer() 94 public static boolean isSystemConsumer(final int consumerType) { in isSystemConsumer() argument 95 return consumerType == CONSUMER_TYPE_SYSTEM_BATTERY; in isSystemConsumer()
|
D | BatteryDiffEntry.java | 127 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/ |
D | BatteryStateTest.java | 77 assertThat(state.consumerType).isEqualTo(2); in testBuilder_returnsExpectedResult()
|