/frameworks/base/packages/SettingsLib/src/com/android/settingslib/fuelgauge/ |
D | BatteryStatus.java | 92 level = getBatteryLevel(batteryChangedIntent); in BatteryStatus() 173 int level = getBatteryLevel(batteryChangedIntent); in isCharged() 202 var batteryLevel = getBatteryLevel(level, scale); in isCharged() 207 public static int getBatteryLevel(Intent batteryChangedIntent) { in getBatteryLevel() method in BatteryStatus 214 return getBatteryLevel(level, scale); in getBatteryLevel() 221 public static int getBatteryLevel(int level, int scale) { in getBatteryLevel() method in BatteryStatus 263 int level = getBatteryLevel(batteryChangedIntent); in isLowBattery() 285 int batteryLevel = getBatteryLevel(batteryChangedIntent); in isSevereLowBattery() 308 int level = getBatteryLevel(batteryChangedIntent); in isExtremeLowBattery()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/impl/battery/domain/interactor/ |
D | BatterySaverTileDataInteractor.kt | 26 import com.android.systemui.util.kotlin.getBatteryLevel in <lambda>() 55 batteryController.getBatteryLevel().distinctUntilChanged().flowOn(bgCoroutineContext), in <lambda>()
|
/frameworks/base/core/java/android/os/ |
D | BatteryManagerInternal.java | 49 public abstract int getBatteryLevel(); in getBatteryLevel() method in BatteryManagerInternal
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/ |
D | PowerUI.java | 419 || mBatteryLevel != mLastBatteryStateSnapshot.getBatteryLevel()) { in refreshEstimateIfNeeded() 435 if (currentSnapshot.getBatteryLevel() >= CHARGE_CYCLE_PERCENT_RESET) { in maybeShowHybridWarning() 450 if (currentSnapshot.getBatteryLevel() <= currentSnapshot.getSevereLevelThreshold()) { in maybeShowHybridWarning() 485 && snapshot.getBatteryLevel() <= snapshot.getLowLevelThreshold(); in shouldShowHybridWarning() 489 && snapshot.getBatteryLevel() <= snapshot.getSevereLevelThreshold(); in shouldShowHybridWarning() 505 || snapshot.getBatteryLevel() in shouldDismissHybridWarning()
|
D | PowerNotificationWarnings.java | 303 .format((double) mCurrentBatterySnapshot.getBatteryLevel() / 100.0); in showWarningNotification()
|
/frameworks/base/core/tests/batterystatstests/BatteryStatsLoadTests/src/com/android/frameworks/core/batterystatsloadtests/ |
D | PowerMetricsCollector.java | 117 mInitialBatteryLevel = mCurrentBatteryLevel = getBatteryLevel(intent); 153 mCurrentBatteryLevel = getBatteryLevel(intent); 170 private float getBatteryLevel(Intent intent) {
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/kotlin/ |
D | BatteryControllerExt.kt | 57 fun BatteryController.getBatteryLevel(): Flow<Int> { in getBatteryLevel() method
|
/frameworks/base/nfc/java/android/nfc/ |
D | WlcListenerDeviceInfo.java | 102 public @FloatRange(from = 0.0, to = 100.0) double getBatteryLevel() { in getBatteryLevel() method in WlcListenerDeviceInfo
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/graph/ |
D | BluetoothDeviceLayerDrawableTest.java | 81 assertThat(batteryDrawable.getBatteryLevel()).isEqualTo(BATTERY_LEVEL); in testBatteryMeterDrawable_configCorrect()
|
/frameworks/base/services/core/java/com/android/server/input/ |
D | BatteryController.java | 620 mBluetoothBatteryLevel = mBluetoothBatteryManager.getBatteryLevel( in configureDeviceMonitor() 933 int getBatteryLevel(String address); in getBatteryLevel() method 1003 public int getBatteryLevel(String address) { in getBatteryLevel() method in BatteryController.LocalBluetoothBatteryManager 1004 return getBluetoothDevice(mContext, address).getBatteryLevel(); in getBatteryLevel()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/ |
D | CachedBluetoothDeviceTest.java | 158 doAnswer((invocation) -> mBatteryLevel).when(mCachedDevice).getBatteryLevel(); in setUp() 159 doAnswer((invocation) -> mBatteryLevel).when(mSubCachedDevice).getBatteryLevel(); in setUp() 984 doAnswer((invocation) -> lowerBatteryLevel).when(mSubCachedDevice).getBatteryLevel(); in getConnectionSummary_testMemberDevicesExist_returnMinBattery() 1001 doAnswer((invocation) -> lowerBatteryLevel).when(mSubCachedDevice).getBatteryLevel(); in getTvConnectionSummary_testMemberDevicesExist_returnMinBattery() 1016 mSubCachedDevice).getBatteryLevel(); in getConnectionSummary_testMemberDevicesBatteryUnknown_returnMinBattery() 1032 mSubCachedDevice).getBatteryLevel(); in getTvConnectionSummary_testMemberDevicesBatteryUnknown_returnMinBattery() 1046 mSubCachedDevice).getBatteryLevel(); in getConnectionSummary_testAllDevicesBatteryUnknown_returnNoBattery() 1060 mSubCachedDevice).getBatteryLevel(); in getTvConnectionSummary_testAllDevicesBatteryUnknown_returnNoBattery()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/ |
D | CachedBluetoothDevice.java | 716 public int getBatteryLevel() { in getBatteryLevel() method in CachedBluetoothDevice 717 return mDevice.getBatteryLevel(); in getBatteryLevel() 727 .mapToInt(cachedDevice -> cachedDevice.getBatteryLevel()) in getMinBatteryLevelWithMemberDevices() 1637 .map(CachedBluetoothDevice::getBatteryLevel) in getLeftBatteryLevel() 1656 .map(CachedBluetoothDevice::getBatteryLevel) in getRightBatteryLevel()
|
/frameworks/base/tests/Input/src/com/android/server/input/ |
D | BatteryControllerTests.kt | 700 `when`(bluetoothBatteryManager.getBatteryLevel(eq("AA:BB:CC:DD:EE:FF"))).thenReturn(21) in testNotifiesBluetoothBatteryChanges() 721 `when`(bluetoothBatteryManager.getBatteryLevel(eq("AA:BB:CC:DD:EE:FF"))).thenReturn(21) in testBluetoothBatteryIsPrioritized() 750 `when`(bluetoothBatteryManager.getBatteryLevel(eq("AA:BB:CC:DD:EE:FF"))).thenReturn(21) in testFallBackToNativeBatteryStateWhenBluetoothStateInvalid() 866 `when`(bluetoothBatteryManager.getBatteryLevel(eq("AA:BB:CC:DD:EE:FF"))).thenReturn(21) in testBluetoothMetadataBatteryIsPrioritized()
|
/frameworks/base/services/core/java/com/android/server/power/batterysaver/ |
D | BatterySavingStats.java | 277 return bmi.getBatteryLevel(); in injectBatteryPercent()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/graph/ |
D | ThemedBatteryDrawable.kt | 324 public fun getBatteryLevel(): Int { in <lambda>() method
|
D | BatteryMeterDrawableBase.java | 205 public int getBatteryLevel() { in getBatteryLevel() method in BatteryMeterDrawableBase
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
D | Utils.java | 215 public static int getBatteryLevel(Intent batteryChangedIntent) { in getBatteryLevel() method in Utils
|
/frameworks/base/services/core/java/com/android/server/ |
D | BatteryService.java | 1454 public int getBatteryLevel() { in getBatteryLevel() method in BatteryService.LocalService
|
/frameworks/base/nfc/api/ |
D | current.txt | 183 method @FloatRange(from=0.0, to=100.0) public double getBatteryLevel();
|
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/ |
D | JobSchedulerService.java | 4292 mBatteryLevel = mBatteryManagerInternal.getBatteryLevel(); 4394 mBatteryLevel = mBatteryManagerInternal.getBatteryLevel();
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/ |
D | JobSchedulerServiceTest.java | 2500 doReturn(level).when(mBatteryManagerInternal).getBatteryLevel();
|
/frameworks/base/services/tests/powerservicetests/src/com/android/server/power/ |
D | PowerManagerServiceTest.java | 445 when(mBatteryManagerInternalMock.getBatteryLevel()) in setBatteryLevel()
|
/frameworks/base/services/core/java/com/android/server/power/ |
D | PowerManagerService.java | 2619 mBatteryLevel = mBatteryManagerInternal.getBatteryLevel();
|
/frameworks/base/services/ |
D | art-wear-profile | 1891 PLcom/android/server/BatteryService$LocalService;->getBatteryLevel()I
|
/frameworks/base/boot/hiddenapi/ |
D | hiddenapi-max-target-o.txt | 34110 Landroid/os/BatteryManagerInternal;->getBatteryLevel()I
|