Home
last modified time | relevance | path

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

/frameworks/base/packages/SettingsLib/src/com/android/settingslib/fuelgauge/
DBatteryStatus.java46 public static final int BATTERY_LEVEL_UNKNOWN = -1; field in BatteryStatus
209 return BATTERY_LEVEL_UNKNOWN; in getBatteryLevel()
212 batteryChangedIntent.getIntExtra(BatteryManager.EXTRA_LEVEL, BATTERY_LEVEL_UNKNOWN); in getBatteryLevel()
223 ? BATTERY_LEVEL_UNKNOWN in getBatteryLevel()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DCachedBluetoothDevice.java728 .filter(batteryLevel -> batteryLevel > BluetoothDevice.BATTERY_LEVEL_UNKNOWN) in getMinBatteryLevelWithMemberDevices()
730 .orElse(BluetoothDevice.BATTERY_LEVEL_UNKNOWN); in getMinBatteryLevelWithMemberDevices()
748 return batteryLevel > BluetoothDevice.BATTERY_LEVEL_UNKNOWN in getValidMinBatteryLevelWithMemberDevices()
1510 } else if (leftBattery > BluetoothDevice.BATTERY_LEVEL_UNKNOWN in getConnectionSummary()
1514 } else if (rightBattery > BluetoothDevice.BATTERY_LEVEL_UNKNOWN in getConnectionSummary()
1568 !shortSummary && (leftBattery > BluetoothDevice.BATTERY_LEVEL_UNKNOWN); in getHearingDeviceSummaryRes()
1570 !shortSummary && (rightBattery > BluetoothDevice.BATTERY_LEVEL_UNKNOWN); in getHearingDeviceSummaryRes()
1627 int leftBattery = BluetoothDevice.BATTERY_LEVEL_UNKNOWN; in getLeftBatteryLevel()
1635 if (leftBattery == BluetoothDevice.BATTERY_LEVEL_UNKNOWN) { in getLeftBatteryLevel()
1638 .filter(batteryLevel -> batteryLevel > BluetoothDevice.BATTERY_LEVEL_UNKNOWN) in getLeftBatteryLevel()
[all …]
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/
DCachedBluetoothDeviceTest.java119 private int mBatteryLevel = BluetoothDevice.BATTERY_LEVEL_UNKNOWN;
261 mBatteryLevel = BluetoothDevice.BATTERY_LEVEL_UNKNOWN; in getConnectionSummary_testSingleProfileConnectDisconnect()
294 mBatteryLevel = BluetoothDevice.BATTERY_LEVEL_UNKNOWN; in getTvConnectionSummary_testSingleProfileConnectDisconnect()
389 mBatteryLevel = BluetoothDevice.BATTERY_LEVEL_UNKNOWN; in getConnectionSummary_testSingleProfileActiveDeviceA2dp()
421 mBatteryLevel = BluetoothDevice.BATTERY_LEVEL_UNKNOWN; in getTvConnectionSummary_testSingleProfileActiveDeviceA2dp()
562 mBatteryLevel = BluetoothDevice.BATTERY_LEVEL_UNKNOWN; in getConnectionSummary_testSingleProfileActiveDeviceHfp()
596 mBatteryLevel = BluetoothDevice.BATTERY_LEVEL_UNKNOWN; in getTvConnectionSummary_testSingleProfileActiveDeviceHfp()
1015 doAnswer((invocation) -> BluetoothDevice.BATTERY_LEVEL_UNKNOWN).when( in getConnectionSummary_testMemberDevicesBatteryUnknown_returnMinBattery()
1031 doAnswer((invocation) -> BluetoothDevice.BATTERY_LEVEL_UNKNOWN).when( in getTvConnectionSummary_testMemberDevicesBatteryUnknown_returnMinBattery()
1045 doAnswer((invocation) -> BluetoothDevice.BATTERY_LEVEL_UNKNOWN).when( in getConnectionSummary_testAllDevicesBatteryUnknown_returnNoBattery()
[all …]
/frameworks/base/services/core/java/com/android/server/input/
DBatteryController.java562 int mBluetoothBatteryLevel = BluetoothDevice.BATTERY_LEVEL_UNKNOWN;
564 int mBluetoothMetadataBatteryLevel = BluetoothDevice.BATTERY_LEVEL_UNKNOWN;
613 mBluetoothBatteryLevel = BluetoothDevice.BATTERY_LEVEL_UNKNOWN; in configureDeviceMonitor()
678 mBluetoothMetadataBatteryLevel = BluetoothDevice.BATTERY_LEVEL_UNKNOWN; in stopBluetoothMetadataMonitoring()
720 mBluetoothMetadataBatteryLevel = BluetoothDevice.BATTERY_LEVEL_UNKNOWN; in updateBluetoothMetadataState()
962 BluetoothDevice.BATTERY_LEVEL_UNKNOWN);
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DBluetoothTile.java271 if (batteryLevel > BluetoothDevice.BATTERY_LEVEL_UNKNOWN) { in getSecondaryLabel()
/frameworks/base/tests/Input/src/com/android/server/input/
DBatteryControllerTests.kt773 BluetoothDevice.BATTERY_LEVEL_UNKNOWN) in testFallBackToNativeBatteryStateWhenBluetoothStateInvalid()