From 7910bd8def9b35195c7e4165c7ae4a5a2636af07 Mon Sep 17 00:00:00 2001 From: Julia Tuttle Date: Wed, 22 Jul 2020 17:16:03 -0400 Subject: [PATCH] =?UTF-8?q?Update=20language=20to=20comply=20with=20Androi?= =?UTF-8?q?d=E2=80=99s=20inclusive=20language=20guidance?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://source.android.com/setup/contribute/respectful-code for reference #inclusivefixit Bug: 161896447 Test: still builds! let's see what presubmit says. Change-Id: Ia9627baca3fcbafc1cd192cc6a378917fe81acac --- .../statusbar/phone/PanelViewController.java | 2 +- .../policy/BatteryControllerImpl.java | 26 +++++++++---------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelViewController.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelViewController.java index e942d85790c16..ac329e2598a91 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelViewController.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelViewController.java @@ -408,7 +408,7 @@ public abstract class PanelViewController { && !mKeyguardStateController.isKeyguardFadingAway()) { long timePassed = SystemClock.uptimeMillis() - mDownTime; if (timePassed < ViewConfiguration.getLongPressTimeout()) { - // Lets show the user that he can actually expand the panel + // Let's show the user that they can actually expand the panel runPeekAnimation( PEEK_ANIMATION_DURATION, getPeekHeight(), true /* collapseWhenFinished */); } else { diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/policy/BatteryControllerImpl.java b/packages/SystemUI/src/com/android/systemui/statusbar/policy/BatteryControllerImpl.java index d30f01a658f6b..88a6263c1dca0 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/policy/BatteryControllerImpl.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/policy/BatteryControllerImpl.java @@ -74,7 +74,7 @@ public class BatteryControllerImpl extends BroadcastReceiver implements BatteryC protected boolean mPowerSave; private boolean mAodPowerSave; protected boolean mWirelessCharging; - private boolean mTestmode = false; + private boolean mTestMode = false; @VisibleForTesting boolean mHasReceivedBattery = false; private Estimate mEstimate; @@ -154,7 +154,7 @@ public class BatteryControllerImpl extends BroadcastReceiver implements BatteryC public void onReceive(final Context context, Intent intent) { final String action = intent.getAction(); if (action.equals(Intent.ACTION_BATTERY_CHANGED)) { - if (mTestmode && !intent.getBooleanExtra("testmode", false)) return; + if (mTestMode && !intent.getBooleanExtra("testmode", false)) return; mHasReceivedBattery = true; mLevel = (int)(100f * intent.getIntExtra(BatteryManager.EXTRA_LEVEL, 0) @@ -172,29 +172,29 @@ public class BatteryControllerImpl extends BroadcastReceiver implements BatteryC } else if (action.equals(PowerManager.ACTION_POWER_SAVE_MODE_CHANGED)) { updatePowerSave(); } else if (action.equals(ACTION_LEVEL_TEST)) { - mTestmode = true; + mTestMode = true; mMainHandler.post(new Runnable() { int curLevel = 0; int incr = 1; int saveLevel = mLevel; boolean savePlugged = mPluggedIn; - Intent dummy = new Intent(Intent.ACTION_BATTERY_CHANGED); + Intent mTestIntent = new Intent(Intent.ACTION_BATTERY_CHANGED); @Override public void run() { if (curLevel < 0) { - mTestmode = false; - dummy.putExtra("level", saveLevel); - dummy.putExtra("plugged", savePlugged); - dummy.putExtra("testmode", false); + mTestMode = false; + mTestIntent.putExtra("level", saveLevel); + mTestIntent.putExtra("plugged", savePlugged); + mTestIntent.putExtra("testmode", false); } else { - dummy.putExtra("level", curLevel); - dummy.putExtra("plugged", incr > 0 ? BatteryManager.BATTERY_PLUGGED_AC + mTestIntent.putExtra("level", curLevel); + mTestIntent.putExtra("plugged", incr > 0 ? BatteryManager.BATTERY_PLUGGED_AC : 0); - dummy.putExtra("testmode", true); + mTestIntent.putExtra("testmode", true); } - context.sendBroadcast(dummy); + context.sendBroadcast(mTestIntent); - if (!mTestmode) return; + if (!mTestMode) return; curLevel += incr; if (curLevel == 100) {