Home
last modified time | relevance | path

Searched refs:BATTERY_LEVEL_UNKNOWN (Results 1 – 14 of 14) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/
DDataProcessorTest.java20 import static com.android.settingslib.fuelgauge.BatteryStatus.BATTERY_LEVEL_UNKNOWN;
520 expectedDailyLevels.add(BATTERY_LEVEL_UNKNOWN); in getLevelDataThroughProcessedHistoryMap_MultipleDaysData_returnExpectedResult()
538 expectedHourlyLevels1.add(BATTERY_LEVEL_UNKNOWN); in getLevelDataThroughProcessedHistoryMap_MultipleDaysData_returnExpectedResult()
539 expectedHourlyLevels1.add(BATTERY_LEVEL_UNKNOWN); in getLevelDataThroughProcessedHistoryMap_MultipleDaysData_returnExpectedResult()
541 expectedHourlyLevels2.add(BATTERY_LEVEL_UNKNOWN); in getLevelDataThroughProcessedHistoryMap_MultipleDaysData_returnExpectedResult()
544 expectedHourlyLevels2.add(BATTERY_LEVEL_UNKNOWN); in getLevelDataThroughProcessedHistoryMap_MultipleDaysData_returnExpectedResult()
581 expectedDailyLevels.add(BATTERY_LEVEL_UNKNOWN); in getLevelDataThroughProcessedHistoryMap_daylightSaving25Hour_returnExpectedResult()
582 expectedDailyLevels.add(BATTERY_LEVEL_UNKNOWN); in getLevelDataThroughProcessedHistoryMap_daylightSaving25Hour_returnExpectedResult()
620 expectedHourlyLevels1.add(BATTERY_LEVEL_UNKNOWN); in getLevelDataThroughProcessedHistoryMap_daylightSaving25Hour_returnExpectedResult()
621 expectedHourlyLevels1.add(BATTERY_LEVEL_UNKNOWN); in getLevelDataThroughProcessedHistoryMap_daylightSaving25Hour_returnExpectedResult()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/btservice/
DRemoteDevicesTest.java149 int batteryLevel = BluetoothDevice.BATTERY_LEVEL_UNKNOWN; in testUpdateBatteryLevel_errorNegativeValue()
221 mDevice1, BluetoothDevice.BATTERY_LEVEL_UNKNOWN, mIntentArgument); in testResetBatteryLevel_testResetAfterUpdate()
227 BluetoothDevice.BATTERY_LEVEL_UNKNOWN); in testResetBatteryLevel_testResetAfterUpdate()
275 mDevice1, BluetoothDevice.BATTERY_LEVEL_UNKNOWN, mIntentArgument); in testResetBatteryLevelOnHeadsetStateChange()
281 BluetoothDevice.BATTERY_LEVEL_UNKNOWN); in testResetBatteryLevelOnHeadsetStateChange()
371 BluetoothDevice.BATTERY_LEVEL_UNKNOWN, in testResetBatteryLevel_testAclStateChangeCallback()
382 BluetoothDevice.BATTERY_LEVEL_UNKNOWN, in testResetBatteryLevel_testAclStateChangeCallback()
477 BluetoothDevice.BATTERY_LEVEL_UNKNOWN, in testGetBatteryLevelFromXEventVsc()
480 BluetoothDevice.BATTERY_LEVEL_UNKNOWN, in testGetBatteryLevelFromXEventVsc()
483 BluetoothDevice.BATTERY_LEVEL_UNKNOWN, in testGetBatteryLevelFromXEventVsc()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/
DRemoteDevices.java285 private int mBatteryLevelFromHfp = BluetoothDevice.BATTERY_LEVEL_UNKNOWN;
286 private int mBatteryLevelFromBatteryService = BluetoothDevice.BATTERY_LEVEL_UNKNOWN;
581 if (mBatteryLevelFromBatteryService != BluetoothDevice.BATTERY_LEVEL_UNKNOWN) { in getBatteryLevel()
785 BluetoothDevice.BATTERY_LEVEL_UNKNOWN); in resetBatteryLevel()
787 deviceProperties.setBatteryLevelFromHfp(BluetoothDevice.BATTERY_LEVEL_UNKNOWN); in resetBatteryLevel()
835 percent = BluetoothDevice.BATTERY_LEVEL_UNKNOWN; in batteryChargeIndicatorToPercentge()
1476 int batteryPercent = BluetoothDevice.BATTERY_LEVEL_UNKNOWN; in onVendorSpecificHeadsetEvent()
1485 if (batteryPercent != BluetoothDevice.BATTERY_LEVEL_UNKNOWN) { in onVendorSpecificHeadsetEvent()
1508 return BluetoothDevice.BATTERY_LEVEL_UNKNOWN; in getBatteryLevelFromAppleBatteryVsc()
1515 return BluetoothDevice.BATTERY_LEVEL_UNKNOWN; in getBatteryLevelFromAppleBatteryVsc()
[all …]
DAdapterService.java20 import static android.bluetooth.BluetoothDevice.BATTERY_LEVEL_UNKNOWN;
3471 return BluetoothDevice.BATTERY_LEVEL_UNKNOWN; in getBatteryLevel()
3476 return BluetoothDevice.BATTERY_LEVEL_UNKNOWN; in getBatteryLevel()
6826 if (batteryLevel == BATTERY_LEVEL_UNKNOWN) { in setBatteryLevel()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/
DBatteryLevelData.java19 import static com.android.settingslib.fuelgauge.BatteryStatus.BATTERY_LEVEL_UNKNOWN;
65 : BATTERY_LEVEL_UNKNOWN); in PeriodBatteryLevelData()
DBatteryChartView.java20 import static com.android.settingslib.fuelgauge.BatteryStatus.BATTERY_LEVEL_UNKNOWN;
737 return viewModel.getLevel(trapezoidIndex) != BATTERY_LEVEL_UNKNOWN in isTrapezoidValid()
738 && viewModel.getLevel(trapezoidIndex + 1) != BATTERY_LEVEL_UNKNOWN; in isTrapezoidValid()
DDataProcessor.java22 import static com.android.settingslib.fuelgauge.BatteryStatus.BATTERY_LEVEL_UNKNOWN;
1246 return BATTERY_LEVEL_UNKNOWN; in getLevel()
1596 int startBatteryLevel = BATTERY_LEVEL_UNKNOWN; in getAccumulatedUsageDiffData()
1597 int endBatteryLevel = BATTERY_LEVEL_UNKNOWN; in getAccumulatedUsageDiffData()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/bas/
DBatteryStateMachineTest.java19 import static android.bluetooth.BluetoothDevice.BATTERY_LEVEL_UNKNOWN;
341 .handleBatteryChanged(any(BluetoothDevice.class), eq(BATTERY_LEVEL_UNKNOWN)); in testDisconnectResetBatteryLevel()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/bas/
DBatteryStateMachine.java19 import static android.bluetooth.BluetoothDevice.BATTERY_LEVEL_UNKNOWN;
260 service.handleBatteryChanged(mDevice, BATTERY_LEVEL_UNKNOWN); in resetBatteryLevel()
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DAdvancedBluetoothDetailsHeaderControllerTest.java153 when(mBluetoothDevice.getBatteryLevel()).thenReturn(BluetoothDevice.BATTERY_LEVEL_UNKNOWN); in refresh_connectedWatch_unknownBatteryLevel_shouldNotShowBatteryLevel()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DAdvancedBluetoothDetailsHeaderController.java464 if (level != BluetoothDevice.BATTERY_LEVEL_UNKNOWN in updateSubLayoutUi()
/packages/modules/Bluetooth/framework/java/android/bluetooth/
DBluetoothDevice.java333 @SystemApi public static final int BATTERY_LEVEL_UNKNOWN = -1; field in BluetoothDevice
/packages/modules/Bluetooth/framework/api/
Dsystem-current.txt236 field public static final int BATTERY_LEVEL_UNKNOWN = -1; // 0xffffffff
/packages/modules/Bluetooth/apex/hiddenapi/
Dhiddenapi-max-target-o-low-priority.txt281 Landroid/bluetooth/BluetoothDevice;->BATTERY_LEVEL_UNKNOWN:I