/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/btservice/ |
D | RemoteDevicesTest.java | 125 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/ |
D | BatteryMeterView.java | 78 public int getBatteryLevel() { in getBatteryLevel() method in BatteryMeterView 79 return mDrawable.getBatteryLevel(); in getBatteryLevel() 93 final int level = mDrawable.getBatteryLevel(); in updateColorFilter()
|
D | BatteryHeaderPreferenceController.java | 155 final int batteryLevel = Utils.getBatteryLevel(batteryBroadcast); in quickUpdateHeaderPreference()
|
D | BatteryInfo.java | 304 info.batteryLevel = Utils.getBatteryLevel(batteryBroadcast); in getBatteryInfo()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/ |
D | ConvertUtilsTest.java | 139 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()
|
D | DatabaseUtilsTest.java | 566 assertThat(deviceBatteryState.getBatteryLevel()).isEqualTo(20); in verifyBatteryEntryContentValues() 578 assertThat(deviceBatteryState.getBatteryLevel()).isEqualTo(20); in verifyFakeBatteryEntryContentValues()
|
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
D | LeAudioBluetoothDetailsHeaderController.java | 267 updateBatteryLayout(R.id.bt_battery_left, cachedDevice.getBatteryLevel()); in updateBatteryLayout() 269 updateBatteryLayout(R.id.bt_battery_right, cachedDevice.getBatteryLevel()); in updateBatteryLayout()
|
D | AdvancedBluetoothDetailsHeaderController.java | 387 Supplier<Integer> nativeBatteryLevel = Suppliers.memoize(bluetoothDevice::getBatteryLevel); in updateSubLayout()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/ |
D | BatteryHistEntry.java | 95 mBatteryLevel = deviceBatteryState.getBatteryLevel(); in BatteryHistEntry() 125 mBatteryLevel = deviceBatteryState.getBatteryLevel(); in BatteryHistEntry()
|
D | BatteryUsageBroadcastReceiver.java | 137 final int batteryLevel = BatteryStatus.getBatteryLevel(intent); in sendBatteryEventData()
|
D | BatteryLevelData.java | 174 batteryLevelMap.put(event.getTimestamp(), event.getBatteryLevel()); in combine()
|
D | ConvertUtils.java | 162 values.put(BatteryEventEntity.KEY_BATTERY_LEVEL, event.getBatteryLevel()); in convertBatteryEventToContentValues()
|
D | DatabaseUtils.java | 682 final int batteryLevel = BatteryStatus.getBatteryLevel(intent); in sendBatteryEntryData()
|
D | DataProcessor.java | 1263 return BatteryStatus.getBatteryLevel(intent); in getCurrentLevel()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/ |
D | BatteryMeterViewTest.java | 69 assertThat(mDrawable.getBatteryLevel()).isEqualTo(BATTERY_LEVEL); in testSetBatteryInfo_setCorrectly()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/ |
D | RemoteDevices.java | 579 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()
|
D | AdapterService.java | 3465 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/ |
D | StatsEventTestUtilsTest.java | 63 assertThat(atom.getBatteryLevelChanged().getBatteryLevel()).isEqualTo(3); in testOneField()
|
/packages/apps/Car/SystemUI/src/com/android/systemui/car/bluetooth/ |
D | CarBatteryController.java | 190 int batteryLevel = device.getBatteryLevel(); in updateBatteryIcon()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/ |
D | AdvancedBluetoothDetailsHeaderControllerTest.java | 117 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/ |
D | Utils.java | 59 public static int getBatteryLevel(Intent batteryChangedIntent) { in getBatteryLevel() method in Utils
|
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/util/ |
D | LibUtils.java | 89 public static int getBatteryLevel(Intent batteryChangedIntent) { in getBatteryLevel() method in LibUtils
|
/packages/modules/Bluetooth/android/app/aidl/android/bluetooth/ |
D | IBluetooth.aidl | 131 int getBatteryLevel(in BluetoothDevice device, in AttributionSource attributionSource); in getBatteryLevel() method
|
/packages/modules/Bluetooth/framework/java/android/bluetooth/ |
D | BluetoothDevice.java | 1820 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/ |
D | Utils.java | 270 return formatPercentage(getBatteryLevel(batteryChangedIntent)); in getBatteryPercentage()
|