Home
last modified time | relevance | path

Searched refs:getBatteryLevel (Results 1 – 25 of 27) sorted by relevance

12

/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/btservice/
DRemoteDevicesTest.java125 mRemoteDevices.getDeviceProperties(mDevice1).getBatteryLevel(), batteryLevel); in testUpdateBatteryLevel_normalSequence()
142 mRemoteDevices.getDeviceProperties(mDevice1).getBatteryLevel(), batteryLevel); in testUpdateBatteryLevel_normalSequence()
211 mRemoteDevices.getDeviceProperties(mDevice1).getBatteryLevel(), batteryLevel); in testResetBatteryLevel_testResetAfterUpdate()
226 mRemoteDevices.getDeviceProperties(mDevice1).getBatteryLevel(), in testResetBatteryLevel_testResetAfterUpdate()
262 mRemoteDevices.getDeviceProperties(mDevice1).getBatteryLevel(), batteryLevel); in testResetBatteryLevelOnHeadsetStateChange()
280 mRemoteDevices.getDeviceProperties(mDevice1).getBatteryLevel(), in testResetBatteryLevelOnHeadsetStateChange()
315 mRemoteDevices.getDeviceProperties(mDevice1).getBatteryLevel(), batteryLevel); in testOnHeadsetStateChangeWithBatteryService_NotResetBatteryLevel()
325 batteryLevel, mRemoteDevices.getDeviceProperties(mDevice1).getBatteryLevel()); in testOnHeadsetStateChangeWithBatteryService_NotResetBatteryLevel()
352 batteryLevel, mRemoteDevices.getDeviceProperties(mDevice1).getBatteryLevel()); in testResetBatteryLevel_testAclStateChangeCallback()
383 mRemoteDevices.getDeviceProperties(mDevice1).getBatteryLevel()); in testResetBatteryLevel_testAclStateChangeCallback()
[all …]
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryMeterView.java78 public int getBatteryLevel() { in getBatteryLevel() method in BatteryMeterView
79 return mDrawable.getBatteryLevel(); in getBatteryLevel()
93 final int level = mDrawable.getBatteryLevel(); in updateColorFilter()
DBatteryHeaderPreferenceController.java155 final int batteryLevel = Utils.getBatteryLevel(batteryBroadcast); in quickUpdateHeaderPreference()
DBatteryInfo.java304 info.batteryLevel = Utils.getBatteryLevel(batteryBroadcast); in getBatteryInfo()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/
DConvertUtilsTest.java139 assertThat(deviceBatteryState.getBatteryLevel()).isEqualTo(12); in convertBatteryEntryToContentValues_appEntry_returnsExpectedContentValues()
205 assertThat(deviceBatteryState.getBatteryLevel()).isEqualTo(12); in convertBatteryEntryToContentValues_systemEntry_returnsExpectedContentValues()
232 assertThat(deviceBatteryState.getBatteryLevel()).isEqualTo(12); in convertBatteryEntryToContentValues_nullBatteryEntry_returnsExpectedContentValues()
561 assertThat(batteryEvent.getBatteryLevel()).isEqualTo(88); in convertToBatteryEvent_normalCase_returnsExpectedResult()
578 assertThat(batteryEventList.get(0).getBatteryLevel()).isEqualTo(98); in convertToBatteryEventList_normalCase_returnsExpectedResult()
581 assertThat(batteryEventList.get(1).getBatteryLevel()).isEqualTo(90); in convertToBatteryEventList_normalCase_returnsExpectedResult()
599 assertThat(batteryEventList.get(0).getBatteryLevel()).isEqualTo(98); in convertToBatteryEventList_multipleDays_returnsExpectedResult()
602 assertThat(batteryEventList.get(1).getBatteryLevel()).isEqualTo(90); in convertToBatteryEventList_multipleDays_returnsExpectedResult()
605 assertThat(batteryEventList.get(2).getBatteryLevel()).isEqualTo(83); in convertToBatteryEventList_multipleDays_returnsExpectedResult()
DDatabaseUtilsTest.java566 assertThat(deviceBatteryState.getBatteryLevel()).isEqualTo(20); in verifyBatteryEntryContentValues()
578 assertThat(deviceBatteryState.getBatteryLevel()).isEqualTo(20); in verifyFakeBatteryEntryContentValues()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DLeAudioBluetoothDetailsHeaderController.java267 updateBatteryLayout(R.id.bt_battery_left, cachedDevice.getBatteryLevel()); in updateBatteryLayout()
269 updateBatteryLayout(R.id.bt_battery_right, cachedDevice.getBatteryLevel()); in updateBatteryLayout()
DAdvancedBluetoothDetailsHeaderController.java387 Supplier<Integer> nativeBatteryLevel = Suppliers.memoize(bluetoothDevice::getBatteryLevel); in updateSubLayout()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/
DBatteryHistEntry.java95 mBatteryLevel = deviceBatteryState.getBatteryLevel(); in BatteryHistEntry()
125 mBatteryLevel = deviceBatteryState.getBatteryLevel(); in BatteryHistEntry()
DBatteryUsageBroadcastReceiver.java137 final int batteryLevel = BatteryStatus.getBatteryLevel(intent); in sendBatteryEventData()
DBatteryLevelData.java174 batteryLevelMap.put(event.getTimestamp(), event.getBatteryLevel()); in combine()
DConvertUtils.java162 values.put(BatteryEventEntity.KEY_BATTERY_LEVEL, event.getBatteryLevel()); in convertBatteryEventToContentValues()
DDatabaseUtils.java682 final int batteryLevel = BatteryStatus.getBatteryLevel(intent); in sendBatteryEntryData()
DDataProcessor.java1263 return BatteryStatus.getBatteryLevel(intent); in getCurrentLevel()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryMeterViewTest.java69 assertThat(mDrawable.getBatteryLevel()).isEqualTo(BATTERY_LEVEL); in testSetBatteryInfo_setCorrectly()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/
DRemoteDevices.java579 int getBatteryLevel() { in getBatteryLevel() method in RemoteDevices.DeviceProperties
747 int prevBatteryLevel = deviceProperties.getBatteryLevel(); in updateBatteryLevel()
753 int newBatteryLevel = deviceProperties.getBatteryLevel(); in updateBatteryLevel()
782 int prevBatteryLevel = deviceProperties.getBatteryLevel(); in resetBatteryLevel()
790 int newBatteryLevel = deviceProperties.getBatteryLevel(); in resetBatteryLevel()
DAdapterService.java3465 public int getBatteryLevel(BluetoothDevice device, AttributionSource attributionSource) { in getBatteryLevel() method in AdapterService.AdapterServiceBinder
3478 return deviceProp.getBatteryLevel(); in getBatteryLevel()
/packages/modules/StatsD/tests/utils/tests/src/android/util/
DStatsEventTestUtilsTest.java63 assertThat(atom.getBatteryLevelChanged().getBatteryLevel()).isEqualTo(3); in testOneField()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/bluetooth/
DCarBatteryController.java190 int batteryLevel = device.getBatteryLevel(); in updateBatteryIcon()
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DAdvancedBluetoothDetailsHeaderControllerTest.java117 assertThat(iconDrawable.getBatteryLevel()).isEqualTo(BATTERY_LEVEL_MAIN); in createBatteryIcon_hasCorrectInfo()
153 when(mBluetoothDevice.getBatteryLevel()).thenReturn(BluetoothDevice.BATTERY_LEVEL_UNKNOWN); in refresh_connectedWatch_unknownBatteryLevel_shouldNotShowBatteryLevel()
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/about/
DUtils.java59 public static int getBatteryLevel(Intent batteryChangedIntent) { in getBatteryLevel() method in Utils
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/util/
DLibUtils.java89 public static int getBatteryLevel(Intent batteryChangedIntent) { in getBatteryLevel() method in LibUtils
/packages/modules/Bluetooth/android/app/aidl/android/bluetooth/
DIBluetooth.aidl131 int getBatteryLevel(in BluetoothDevice device, in AttributionSource attributionSource); in getBatteryLevel() method
/packages/modules/Bluetooth/framework/java/android/bluetooth/
DBluetoothDevice.java1820 public @IntRange(from = -100, to = 100) int getBatteryLevel() { in getBatteryLevel() method in BluetoothDevice
1828 return service.getBatteryLevel(this, mAttributionSource); in getBatteryLevel()
/packages/apps/Settings/src/com/android/settings/
DUtils.java270 return formatPercentage(getBatteryLevel(batteryChangedIntent)); in getBatteryPercentage()

12