Merge "Update language to comply with Android's inclusive language guidance" am: b8017c9d03

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1382480

Change-Id: Ia0c937717d130ea844bab629c744e32201991610
This commit is contained in:
Puma Hsu
2020-08-07 02:54:33 +00:00
committed by Automerger Merge Worker

View File

@@ -363,7 +363,7 @@ public class PowerUITest extends SysuiTestCase {
mPowerUI.mSevereWarningShownThisChargeCycle = false; mPowerUI.mSevereWarningShownThisChargeCycle = false;
BatteryStateSnapshotWrapper state = new BatteryStateSnapshotWrapper(); BatteryStateSnapshotWrapper state = new BatteryStateSnapshotWrapper();
// sanity check to make sure we can show for a valid config // readiness check to make sure we can show for a valid config
state.mBatteryLevel = 10; state.mBatteryLevel = 10;
state.mTimeRemainingMillis = Duration.ofHours(2).toMillis(); state.mTimeRemainingMillis = Duration.ofHours(2).toMillis();
boolean shouldShow = mPowerUI.shouldShowHybridWarning(state.get()); boolean shouldShow = mPowerUI.shouldShowHybridWarning(state.get());
@@ -428,7 +428,7 @@ public class PowerUITest extends SysuiTestCase {
mPowerUI.mSevereWarningShownThisChargeCycle = false; mPowerUI.mSevereWarningShownThisChargeCycle = false;
BatteryStateSnapshotWrapper state = new BatteryStateSnapshotWrapper(); BatteryStateSnapshotWrapper state = new BatteryStateSnapshotWrapper();
// sanity check to make sure we can show for a valid config // readiness check to make sure we can show for a valid config
state.mBatteryLevel = 1; state.mBatteryLevel = 1;
state.mTimeRemainingMillis = Duration.ofMinutes(1).toMillis(); state.mTimeRemainingMillis = Duration.ofMinutes(1).toMillis();
boolean shouldShow = mPowerUI.shouldShowHybridWarning(state.get()); boolean shouldShow = mPowerUI.shouldShowHybridWarning(state.get());
@@ -551,7 +551,7 @@ public class PowerUITest extends SysuiTestCase {
state.mIsHybrid = false; state.mIsHybrid = false;
BatteryStateSnapshot lastState = state.get(); BatteryStateSnapshot lastState = state.get();
// sanity check to make sure we can show for a valid config // readiness check to make sure we can show for a valid config
state.mBatteryLevel = 10; state.mBatteryLevel = 10;
state.mBucket = -1; state.mBucket = -1;
boolean shouldShow = mPowerUI.shouldShowLowBatteryWarning(state.get(), lastState); boolean shouldShow = mPowerUI.shouldShowLowBatteryWarning(state.get(), lastState);