/frameworks/base/nfc/java/android/nfc/ |
D | WlcListenerDeviceInfo.java | 63 private double mBatteryLevel; field in WlcListenerDeviceInfo 78 this.mBatteryLevel = batteryLevel; in WlcListenerDeviceInfo() 103 return mBatteryLevel; in getBatteryLevel() 116 this.mBatteryLevel = in.readDouble(); in WlcListenerDeviceInfo() 142 dest.writeDouble(mBatteryLevel); in writeToParcel()
|
/frameworks/base/services/core/java/com/android/server/powerstats/ |
D | BatteryTrigger.java | 35 private int mBatteryLevel = 0; field in BatteryTrigger 44 if (newBatteryLevel < mBatteryLevel) { 49 mBatteryLevel = newBatteryLevel; 63 mBatteryLevel = batteryStatus.getIntExtra(BatteryManager.EXTRA_LEVEL, 0); in BatteryTrigger()
|
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/ |
D | BatteryStatsResetTest.java | 86 private int mBatteryLevel; field in BatteryStatsResetTest 105 mBatteryLevel = 100; in setUp() 310 for (int level = mBatteryLevel - 1; level >= targetLevel; level--) { in dischargeToLevel() 319 for (int level = mBatteryLevel + 1; level <= targetLevel; level++) { in chargeToLevel() 338 mBatteryLevel = level; in prepareBatteryLevel() 339 mBatteryChargeUah = mBatteryLevel * mBatteryChargeFullUah / 100; in prepareBatteryLevel() 341 (100 - mBatteryLevel) * BATTERY_CHARGE_RATE_SECONDS_PER_LEVEL; in prepareBatteryLevel() 352 mBatteryLevel, mBatteryTemp, mBatteryVoltageMv, mBatteryChargeUah, in updateBatteryState()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/ |
D | CachedBluetoothDeviceTest.java | 119 private int mBatteryLevel = BluetoothDevice.BATTERY_LEVEL_UNKNOWN; field in CachedBluetoothDeviceTest 158 doAnswer((invocation) -> mBatteryLevel).when(mCachedDevice).getBatteryLevel(); in setUp() 159 doAnswer((invocation) -> mBatteryLevel).when(mSubCachedDevice).getBatteryLevel(); in setUp() 251 mBatteryLevel = 10; in getConnectionSummary_testSingleProfileConnectDisconnect() 261 mBatteryLevel = BluetoothDevice.BATTERY_LEVEL_UNKNOWN; in getConnectionSummary_testSingleProfileConnectDisconnect() 284 mBatteryLevel = 10; in getTvConnectionSummary_testSingleProfileConnectDisconnect() 294 mBatteryLevel = BluetoothDevice.BATTERY_LEVEL_UNKNOWN; in getTvConnectionSummary_testSingleProfileConnectDisconnect() 307 mBatteryLevel = 10; in getConnectionSummary_testMultipleProfileConnectDisconnect() 338 mBatteryLevel = 10; in getTvConnectionSummary_testMultipleProfileConnectDisconnect() 380 mBatteryLevel = 10; in getConnectionSummary_testSingleProfileActiveDeviceA2dp() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/power/ |
D | PowerUITest.java | 366 state.mBatteryLevel = 15; in testMaybeShowHybridWarning() 375 state.mBatteryLevel = 1; in testMaybeShowHybridWarning() 385 state.mBatteryLevel = 100; in testMaybeShowHybridWarning() 402 state.mBatteryLevel = 10; in testShouldShowHybridWarning_lowLevelWarning() 432 state.mBatteryLevel = 100; in testShouldShowHybridWarning_lowLevelWarning() 437 state.mBatteryLevel = 10; in testShouldShowHybridWarning_lowLevelWarning() 461 state.mBatteryLevel = 1; in testShouldShowHybridWarning_severeLevelWarning() 491 state.mBatteryLevel = 100; in testShouldShowHybridWarning_severeLevelWarning() 496 state.mBatteryLevel = 1; in testShouldShowHybridWarning_severeLevelWarning() 519 state.mBatteryLevel = 19; in testShouldDismissHybridWarning() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/power/batterysaver/ |
D | BatterySavingStatsTest.java | 54 private int mBatteryLevel = 1_000_000_000; field in BatterySavingStatsTest.BatterySavingStatsTestable 67 return mBatteryLevel; in injectBatteryLevel() 72 return mBatteryLevel / 10; in injectBatteryPercent() 85 mBatteryLevel -= value; in drainBattery() 86 if (mBatteryLevel < 0) { in drainBattery() 87 mBatteryLevel = 0; in drainBattery()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/ |
D | PowerUI.java | 110 @VisibleForTesting int mBatteryLevel = 100; field in PowerUI 318 final int oldBatteryLevel = mBatteryLevel; in onReceive() 319 mBatteryLevel = intent.getIntExtra(BatteryManager.EXTRA_LEVEL, 100); in onReceive() 333 int bucket = findBatteryLevelBucket(mBatteryLevel); in onReceive() 339 Slog.d(TAG, "level " + oldBatteryLevel + " --> " + mBatteryLevel); in onReceive() 347 mWarnings.update(mBatteryLevel, bucket, mScreenOffTime); in onReceive() 394 mCurrentBatteryStateSnapshot = new BatteryStateSnapshot(mBatteryLevel, isPowerSaverMode, in maybeShowBatteryWarningV2() 405 mCurrentBatteryStateSnapshot = new BatteryStateSnapshot(mBatteryLevel, isPowerSaverMode, in maybeShowBatteryWarningV2() 419 || mBatteryLevel != mLastBatteryStateSnapshot.getBatteryLevel()) { in refreshEstimateIfNeeded() 663 pw.println(Integer.toString(mBatteryLevel)); in dump() [all …]
|
D | PowerNotificationWarnings.java | 163 private int mBatteryLevel; field in PowerNotificationWarnings 238 mBatteryLevel = batteryLevel; in update() 594 if (DEBUG) Slog.d(TAG, "dismissing low battery warning: level=" + mBatteryLevel); in dismissLowBatteryWarning() 611 "show low battery warning: level=" + mBatteryLevel in showLowBatteryWarning()
|
/frameworks/base/tests/SystemUIDemoModeController/src/com/example/android/demomodecontroller/ |
D | DemoModeController.java | 153 if (batteryLevel != mBatteryLevel) { in onTouch() 154 mBatteryLevel = batteryLevel; in onTouch() 305 private int mBatteryLevel; // 0 - 100 field in DemoModeController 311 intent.putExtra("level", Integer.toString(mBatteryLevel));
|
/frameworks/base/services/core/java/com/android/server/power/batterysaver/ |
D | BatterySaverStateMachine.java | 157 private int mBatteryLevel; field in BatterySaverStateMachine 313 return mBatteryLevel <= mDynamicPowerSavingsDisableThreshold; in isInDynamicLowZoneLocked() 520 final boolean levelChanged = mBatteryLevel != newLevel; in setBatteryStatus() 528 mBatteryLevel = newLevel; in setBatteryStatus() 622 } else if (mIsPowered && mBatteryLevel >= ADAPTIVE_AUTO_DISABLE_BATTERY_LEVEL) { in doAutoBatterySaverLocked() 750 && mBatteryLevel >= mSettingBatterySaverStickyAutoDisableThreshold; in updateStateLocked() 1049 ipw.println(mBatteryLevel); in dump() 1103 proto.write(BatterySaverStateMachineProto.BATTERY_LEVEL, mBatteryLevel); in dumpProto()
|
/frameworks/base/core/java/android/hardware/display/ |
D | BrightnessChangeEvent.java | 271 private float mBatteryLevel; field in BrightnessChangeEvent.Builder 328 mBatteryLevel = batteryLevel; in setBatteryLevel() 399 mBatteryLevel, mPowerBrightnessFactor, mNightMode, mColorTemperature, in build()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | KeyguardIndicationController.java | 218 private int mBatteryLevel; field in KeyguardIndicationController 1060 .format(mBatteryLevel / 100f); in updateDeviceEntryIndication() 1090 String percentage = NumberFormat.getPercentInstance().format(mBatteryLevel / 100f); in computePowerIndication() 1094 String percentage = NumberFormat.getPercentInstance().format(mBatteryLevel / 100f); in computePowerIndication() 1139 String percentage = NumberFormat.getPercentInstance().format(mBatteryLevel / 100f); in computePowerChargingStringIndication() 1241 pw.println(" mBatteryLevel: " + mBatteryLevel); in dump() 1278 mBatteryLevel = status.level; in onRefreshBatteryInfo() 1292 mKeyguardLogger.logRefreshBatteryInfo(isChargingOrFull, mPowerPluggedIn, mBatteryLevel, in onRefreshBatteryInfo()
|
/frameworks/base/media/java/android/mtp/ |
D | MtpDatabase.java | 101 private int mBatteryLevel; field in MtpDatabase 276 if (newLevel != mBatteryLevel) { 277 mBatteryLevel = newLevel; 721 outIntValue[0] = mBatteryLevel; in getDeviceProperty()
|
/frameworks/base/services/core/java/com/android/server/power/ |
D | PowerManagerService.java | 461 private int mBatteryLevel; field in PowerManagerService 2618 final int oldBatteryLevel = mBatteryLevel; 2619 mBatteryLevel = mBatteryManagerInternal.getBatteryLevel(); 2630 + ", mBatteryLevel=" + mBatteryLevel 2636 mDreamsBatteryLevelDrain += (oldBatteryLevel - mBatteryLevel); 2670 mNotifier.onWirelessChargingStarted(mBatteryLevel, mUserId); 2676 mBatterySaverStateMachine.setBatteryStatus(mIsPowered, mBatteryLevel, 3510 + "Battery level now: " + mBatteryLevel + "%."); 3588 && mBatteryLevel < mDreamsBatteryLevelMinimumWhenNotPoweredConfig) { 3593 || mBatteryLevel >= mDreamsBatteryLevelMinimumWhenPoweredConfig; [all …]
|
/frameworks/base/services/core/java/com/android/server/power/stats/ |
D | BatteryStatsImpl.java | 938 private int mBatteryLevel; field in BatteryStatsImpl 11431 mBatteryLevel = 0; in initTimersAndCounters() 11921 mDischargeCurrentLevel = mDischargeUnplugLevel = mDischargePlugLevel = mBatteryLevel; in resetAllStatsAndHistoryLocked() 11926 mDischargeScreenOnUnplugLevel = mBatteryLevel; in resetAllStatsAndHistoryLocked() 11931 mDischargeScreenDozeUnplugLevel = mBatteryLevel; in resetAllStatsAndHistoryLocked() 11936 mDischargeScreenOffUnplugLevel = mBatteryLevel; in resetAllStatsAndHistoryLocked() 15030 mBatteryLevel = level; 15038 } else if (mBatteryLevel != level || mOnBattery != onBattery) { 15058 mBatteryLevel = level; 15083 if (mBatteryLevel != level) { [all …]
|
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/ |
D | JobSchedulerService.java | 4251 private int mBatteryLevel; 4292 mBatteryLevel = mBatteryManagerInternal.getBatteryLevel(); 4394 mBatteryLevel = mBatteryManagerInternal.getBatteryLevel(); 4464 return mBatteryLevel >= 70 && BatteryManager.isAdaptiveChargingPolicy(mChargingPolicy); 5869 pw.println(mBatteryStateTracker.mBatteryLevel);
|
/frameworks/base/boot/hiddenapi/ |
D | hiddenapi-max-target-o.txt | 19687 Landroid/hardware/display/BrightnessChangeEvent$Builder;->mBatteryLevel:F 32178 Landroid/mtp/MtpDatabase;->mBatteryLevel:I
|