Home
last modified time | relevance | path

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

/frameworks/base/packages/SettingsLib/src/com/android/settingslib/fuelgauge/
DBatteryStatus.java92 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/
DBatterySaverTileDataInteractor.kt26 import com.android.systemui.util.kotlin.getBatteryLevel in <lambda>()
55 batteryController.getBatteryLevel().distinctUntilChanged().flowOn(bgCoroutineContext), in <lambda>()
/frameworks/base/core/java/android/os/
DBatteryManagerInternal.java49 public abstract int getBatteryLevel(); in getBatteryLevel() method in BatteryManagerInternal
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/
DPowerUI.java419 || 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()
DPowerNotificationWarnings.java303 .format((double) mCurrentBatterySnapshot.getBatteryLevel() / 100.0); in showWarningNotification()
/frameworks/base/core/tests/batterystatstests/BatteryStatsLoadTests/src/com/android/frameworks/core/batterystatsloadtests/
DPowerMetricsCollector.java117 mInitialBatteryLevel = mCurrentBatteryLevel = getBatteryLevel(intent);
153 mCurrentBatteryLevel = getBatteryLevel(intent);
170 private float getBatteryLevel(Intent intent) {
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/kotlin/
DBatteryControllerExt.kt57 fun BatteryController.getBatteryLevel(): Flow<Int> { in getBatteryLevel() method
/frameworks/base/nfc/java/android/nfc/
DWlcListenerDeviceInfo.java102 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/
DBluetoothDeviceLayerDrawableTest.java81 assertThat(batteryDrawable.getBatteryLevel()).isEqualTo(BATTERY_LEVEL); in testBatteryMeterDrawable_configCorrect()
/frameworks/base/services/core/java/com/android/server/input/
DBatteryController.java620 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/
DCachedBluetoothDeviceTest.java158 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/
DCachedBluetoothDevice.java716 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/
DBatteryControllerTests.kt700 `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/
DBatterySavingStats.java277 return bmi.getBatteryLevel(); in injectBatteryPercent()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/graph/
DThemedBatteryDrawable.kt324 public fun getBatteryLevel(): Int { in <lambda>() method
DBatteryMeterDrawableBase.java205 public int getBatteryLevel() { in getBatteryLevel() method in BatteryMeterDrawableBase
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DUtils.java215 public static int getBatteryLevel(Intent batteryChangedIntent) { in getBatteryLevel() method in Utils
/frameworks/base/services/core/java/com/android/server/
DBatteryService.java1454 public int getBatteryLevel() { in getBatteryLevel() method in BatteryService.LocalService
/frameworks/base/nfc/api/
Dcurrent.txt183 method @FloatRange(from=0.0, to=100.0) public double getBatteryLevel();
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/
DJobSchedulerService.java4292 mBatteryLevel = mBatteryManagerInternal.getBatteryLevel();
4394 mBatteryLevel = mBatteryManagerInternal.getBatteryLevel();
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/
DJobSchedulerServiceTest.java2500 doReturn(level).when(mBatteryManagerInternal).getBatteryLevel();
/frameworks/base/services/tests/powerservicetests/src/com/android/server/power/
DPowerManagerServiceTest.java445 when(mBatteryManagerInternalMock.getBatteryLevel()) in setBatteryLevel()
/frameworks/base/services/core/java/com/android/server/power/
DPowerManagerService.java2619 mBatteryLevel = mBatteryManagerInternal.getBatteryLevel();
/frameworks/base/services/
Dart-wear-profile1891 PLcom/android/server/BatteryService$LocalService;->getBatteryLevel()I
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt34110 Landroid/os/BatteryManagerInternal;->getBatteryLevel()I