Home
last modified time | relevance | path

Searched refs:mBatteryLevel (Results 1 – 8 of 8) sorted by relevance

/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/
DBatteryHistEntry.java63 public final int mBatteryLevel; field in BatteryHistEntry
95 mBatteryLevel = deviceBatteryState.getBatteryLevel(); in BatteryHistEntry()
125 mBatteryLevel = deviceBatteryState.getBatteryLevel(); in BatteryHistEntry()
164 mBatteryLevel = batteryLevel; in BatteryHistEntry()
231 mBatteryLevel, mBatteryStatus, mBatteryHealth)) in toString()
362 ? upperHistEntry.mBatteryLevel in interpolate()
364 lowerHistEntry.mBatteryLevel, upperHistEntry.mBatteryLevel, ratio); in interpolate()
DDataProcessor.java496 return BatteryStatus.isCharged(firstHistEntry.mBatteryStatus, firstHistEntry.mBatteryLevel); in isFromFullCharge()
1256 batteryLevelCounter += entry.mBatteryLevel; in getLevel()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryBroadcastReceiverTest.java68 mBatteryBroadcastReceiver.mBatteryLevel = BATTERY_INIT_LEVEL; in setUp()
85 assertThat(mBatteryBroadcastReceiver.mBatteryLevel) in onReceive_batteryLevelChanged_dataUpdated()
139 mBatteryBroadcastReceiver.mBatteryLevel = batteryLevel; in onReceive_batteryDataNotChanged_listenerNotInvoked()
144 assertThat(mBatteryBroadcastReceiver.mBatteryLevel).isEqualTo(batteryLevel); in onReceive_batteryDataNotChanged_listenerNotInvoked()
176 assertThat(mBatteryBroadcastReceiver.mBatteryLevel) in register_updateBatteryStatus()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/db/
DBatteryEventEntity.java104 private int mBatteryLevel; field in BatteryEventEntity.Builder
123 mBatteryLevel = batteryLevel; in setBatteryLevel()
129 return new BatteryEventEntity(mTimestamp, mBatteryEventType, mBatteryLevel); in build()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryBroadcastReceiver.java76 @VisibleForTesting String mBatteryLevel; field in BatteryBroadcastReceiver
148 } else if (!batteryLevel.equals(mBatteryLevel)) { in updateBatteryStatus()
153 mBatteryLevel = batteryLevel; in updateBatteryStatus()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/
DBatteryHistEntryTest.java299 /* batteryLevel= */ upperHistEntry.mBatteryLevel); in testInterpolate_withoutLowerEntryData_returnExpectedResult()
370 assertThat(entry.mBatteryLevel).isEqualTo(batteryLevel); in assertBatteryHistEntry()
DConvertUtilsTest.java343 assertThat(batteryHistEntry.mBatteryLevel).isEqualTo(0); in convertToBatteryHistEntry_returnsExpectedResult()
357 assertThat(batteryHistEntry.mBatteryLevel).isEqualTo(0); in convertToBatteryHistEntry_nullBatteryEntry_returnsExpectedResult()
DDataProcessorTest.java452 assertThat(resultMap.get(expectedTimestamps[index]).get(FAKE_ENTRY_KEY).mBatteryLevel) in getHistoryMapWithExpectedTimestamps_returnExpectedMap()