Home
last modified time | relevance | path

Searched refs:deviceBatteryState (Results 1 – 10 of 10) sorted by relevance

/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/
DBatteryHistEntry.java94 final DeviceBatteryState deviceBatteryState = batteryInformation.getDeviceBatteryState(); in BatteryHistEntry() local
95 mBatteryLevel = deviceBatteryState.getBatteryLevel(); in BatteryHistEntry()
96 mBatteryStatus = deviceBatteryState.getBatteryStatus(); in BatteryHistEntry()
97 mBatteryHealth = deviceBatteryState.getBatteryHealth(); in BatteryHistEntry()
124 final DeviceBatteryState deviceBatteryState = batteryInformation.getDeviceBatteryState(); in BatteryHistEntry() local
125 mBatteryLevel = deviceBatteryState.getBatteryLevel(); in BatteryHistEntry()
126 mBatteryStatus = deviceBatteryState.getBatteryStatus(); in BatteryHistEntry()
127 mBatteryHealth = deviceBatteryState.getBatteryHealth(); in BatteryHistEntry()
DConvertUtils.java632 final DeviceBatteryState deviceBatteryState = in constructBatteryInformation() local
640 .setDeviceBatteryState(deviceBatteryState) in constructBatteryInformation()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/
DConvertUtilsTest.java113 final DeviceBatteryState deviceBatteryState = batteryInformation.getDeviceBatteryState(); in convertBatteryEntryToContentValues_appEntry_returnsExpectedContentValues() local
139 assertThat(deviceBatteryState.getBatteryLevel()).isEqualTo(12); in convertBatteryEntryToContentValues_appEntry_returnsExpectedContentValues()
140 assertThat(deviceBatteryState.getBatteryStatus()) in convertBatteryEntryToContentValues_appEntry_returnsExpectedContentValues()
142 assertThat(deviceBatteryState.getBatteryHealth()) in convertBatteryEntryToContentValues_appEntry_returnsExpectedContentValues()
179 final DeviceBatteryState deviceBatteryState = batteryInformation.getDeviceBatteryState(); in convertBatteryEntryToContentValues_systemEntry_returnsExpectedContentValues() local
205 assertThat(deviceBatteryState.getBatteryLevel()).isEqualTo(12); in convertBatteryEntryToContentValues_systemEntry_returnsExpectedContentValues()
206 assertThat(deviceBatteryState.getBatteryStatus()) in convertBatteryEntryToContentValues_systemEntry_returnsExpectedContentValues()
208 assertThat(deviceBatteryState.getBatteryHealth()) in convertBatteryEntryToContentValues_systemEntry_returnsExpectedContentValues()
228 final DeviceBatteryState deviceBatteryState = batteryInformation.getDeviceBatteryState(); in convertBatteryEntryToContentValues_nullBatteryEntry_returnsExpectedContentValues() local
232 assertThat(deviceBatteryState.getBatteryLevel()).isEqualTo(12); in convertBatteryEntryToContentValues_nullBatteryEntry_returnsExpectedContentValues()
[all …]
DDatabaseUtilsTest.java564 final DeviceBatteryState deviceBatteryState = batteryInformation.getDeviceBatteryState(); in verifyBatteryEntryContentValues() local
566 assertThat(deviceBatteryState.getBatteryLevel()).isEqualTo(20); in verifyBatteryEntryContentValues()
567 assertThat(deviceBatteryState.getBatteryStatus()) in verifyBatteryEntryContentValues()
569 assertThat(deviceBatteryState.getBatteryHealth()) in verifyBatteryEntryContentValues()
577 final DeviceBatteryState deviceBatteryState = batteryInformation.getDeviceBatteryState(); in verifyFakeBatteryEntryContentValues() local
578 assertThat(deviceBatteryState.getBatteryLevel()).isEqualTo(20); in verifyFakeBatteryEntryContentValues()
579 assertThat(deviceBatteryState.getBatteryStatus()) in verifyFakeBatteryEntryContentValues()
581 assertThat(deviceBatteryState.getBatteryHealth()) in verifyFakeBatteryEntryContentValues()
DBatteryUsageContentProviderTest.java272 final DeviceBatteryState deviceBatteryState = in insert_batteryState_returnsExpectedResult() local
280 .setDeviceBatteryState(deviceBatteryState) in insert_batteryState_returnsExpectedResult()
326 final DeviceBatteryState deviceBatteryState = in insert_partialFieldsContentValues_returnsExpectedResult() local
333 BatteryInformation.newBuilder().setDeviceBatteryState(deviceBatteryState).build(); in insert_partialFieldsContentValues_returnsExpectedResult()
DBatteryHistEntryTest.java398 DeviceBatteryState deviceBatteryState = in createBatteryHistEntry() local
406 .setDeviceBatteryState(deviceBatteryState) in createBatteryHistEntry()
DDataProcessManagerTest.java464 final DeviceBatteryState deviceBatteryState = in getContentValuesWithBatteryLevel() local
467 BatteryInformation.newBuilder().setDeviceBatteryState(deviceBatteryState).build(); in getContentValuesWithBatteryLevel()
DDataProcessorTest.java2371 final DeviceBatteryState deviceBatteryState = in getContentValuesWithBatteryLevel() local
2374 BatteryInformation.newBuilder().setDeviceBatteryState(deviceBatteryState).build(); in getContentValuesWithBatteryLevel()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/db/
DBatteryStateTest.java43 final DeviceBatteryState deviceBatteryState = in setUp() local
51 .setDeviceBatteryState(deviceBatteryState) in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/
DBatteryTestUtils.java117 DeviceBatteryState deviceBatteryState = in insertDataToBatteryStateTable() local
125 .setDeviceBatteryState(deviceBatteryState) in insertDataToBatteryStateTable()