Searched refs:leftBattery (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/ |
D | CachedBluetoothDevice.java | 1272 int leftBattery = in getBroadcastConnectionSummary() local 1297 leftBattery, in getBroadcastConnectionSummary() 1307 leftBattery, in getBroadcastConnectionSummary() 1325 leftBattery, in getBroadcastConnectionSummary() 1349 int leftBattery, in getSummaryWithBatteryInfo() argument 1353 if (isTwsBatteryAvailable(leftBattery, rightBattery) && !shortSummary) { in getSummaryWithBatteryInfo() 1356 Utils.formatPercentage(leftBattery), in getSummaryWithBatteryInfo() 1402 int leftBattery = -1; in getConnectionSummary() local 1446 leftBattery = getLeftBatteryLevel(); in getConnectionSummary() 1450 if (isTwsBatteryAvailable(leftBattery, rightBattery)) { in getConnectionSummary() [all …]
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/ |
D | CachedBluetoothDeviceTest.java | 1281 String leftBattery = "Left 15%"; in getTvConnectionSummary_trueWirelessDeviceWithLowBattery() local 1286 assertForegroundColorSpan(summary, 0, 0, leftBattery.length(), lowBatteryColor); in getTvConnectionSummary_trueWirelessDeviceWithLowBattery() 1287 assertThat(summary.toString()).isEqualTo(leftBattery + " " + rightBattery); in getTvConnectionSummary_trueWirelessDeviceWithLowBattery() 1296 assertThat(summary.toString()).isEqualTo(leftBattery + " " + rightBattery); in getTvConnectionSummary_trueWirelessDeviceWithLowBattery() 1304 assertForegroundColorSpan(summary, 0, 0, leftBattery.length(), lowBatteryColor); in getTvConnectionSummary_trueWirelessDeviceWithLowBattery() 1308 leftBattery.length() + 1, in getTvConnectionSummary_trueWirelessDeviceWithLowBattery() 1309 leftBattery.length() + rightBattery.length() + 1, in getTvConnectionSummary_trueWirelessDeviceWithLowBattery() 1311 assertThat(summary.toString()).isEqualTo(leftBattery + " " + rightBattery); in getTvConnectionSummary_trueWirelessDeviceWithLowBattery()
|