Loading packages/SystemUI/src/com/android/keyguard/KeyguardUpdateMonitor.java +8 −12 Original line number Diff line number Diff line Loading @@ -991,6 +991,12 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener { maxChargingWattage > fastThreshold ? CHARGING_FAST : CHARGING_REGULAR; } @Override public String toString() { return "BatteryStatus{status=" + status + ",level=" + level + ",plugged=" + plugged + ",health=" + health + ",maxChargingWattage=" + maxChargingWattage + "}"; } } public class StrongAuthTracker extends LockPatternUtils.StrongAuthTracker { Loading Loading @@ -1624,18 +1630,8 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener { return true; } // change in battery level while plugged in if (nowPluggedIn && old.level != current.level) { return true; } // change in battery level while keyguard visible if (mKeyguardIsVisible && old.level != current.level) { return true; } // change where battery needs charging if (!nowPluggedIn && current.isBatteryLow() && current.level != old.level) { // change in battery level if (old.level != current.level) { return true; } Loading packages/SystemUI/src/com/android/systemui/statusbar/KeyguardIndicationController.java +19 −4 Original line number Diff line number Diff line Loading @@ -52,6 +52,8 @@ import com.android.systemui.statusbar.policy.UserInfoController; import com.android.systemui.util.wakelock.SettableWakeLock; import com.android.systemui.util.wakelock.WakeLock; import java.io.FileDescriptor; import java.io.PrintWriter; import java.text.NumberFormat; /** Loading Loading @@ -116,11 +118,9 @@ public class KeyguardIndicationController { WakeLock wakeLock) { mContext = context; mIndicationArea = indicationArea; mTextView = (KeyguardIndicationTextView) indicationArea.findViewById( R.id.keyguard_indication_text); mTextView = indicationArea.findViewById(R.id.keyguard_indication_text); mInitialTextColor = mTextView != null ? mTextView.getCurrentTextColor() : Color.WHITE; mDisclosure = (KeyguardIndicationTextView) indicationArea.findViewById( R.id.keyguard_indication_enterprise_disclosure); mDisclosure = indicationArea.findViewById(R.id.keyguard_indication_enterprise_disclosure); mLockIcon = lockIcon; mWakeLock = new SettableWakeLock(wakeLock); Loading Loading @@ -416,6 +416,21 @@ public class KeyguardIndicationController { updateDisclosure(); } public void dump(FileDescriptor fd, PrintWriter pw, String[] args) { pw.println("KeyguardIndicationController:"); pw.println(" mTransientTextColor: " + Integer.toHexString(mTransientTextColor)); pw.println(" mInitialTextColor: " + Integer.toHexString(mInitialTextColor)); pw.println(" mPowerPluggedIn: " + mPowerPluggedIn); pw.println(" mPowerCharged: " + mPowerCharged); pw.println(" mChargingSpeed: " + mChargingSpeed); pw.println(" mChargingWattage: " + mChargingWattage); pw.println(" mMessageToShowOnScreenOn: " + mMessageToShowOnScreenOn); pw.println(" mDozing: " + mDozing); pw.println(" mBatteryLevel: " + mBatteryLevel); pw.println(" mTextView.getText(): " + (mTextView == null ? null : mTextView.getText())); pw.println(" computePowerIndication(): " + computePowerIndication()); } protected class BaseKeyguardCallback extends KeyguardUpdateMonitorCallback { public static final int HIDE_DELAY_MS = 5000; private int mLastSuccessiveErrorMessage = -1; Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java +4 −0 Original line number Diff line number Diff line Loading @@ -2663,6 +2663,10 @@ public class StatusBar extends SystemUI implements DemoMode, mFingerprintUnlockController.dump(pw); } if (mKeyguardIndicationController != null) { mKeyguardIndicationController.dump(fd, pw, args); } if (mScrimController != null) { mScrimController.dump(fd, pw, args); } Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java +4 −4 File changed.Contains only whitespace changes. Show changes Loading
packages/SystemUI/src/com/android/keyguard/KeyguardUpdateMonitor.java +8 −12 Original line number Diff line number Diff line Loading @@ -991,6 +991,12 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener { maxChargingWattage > fastThreshold ? CHARGING_FAST : CHARGING_REGULAR; } @Override public String toString() { return "BatteryStatus{status=" + status + ",level=" + level + ",plugged=" + plugged + ",health=" + health + ",maxChargingWattage=" + maxChargingWattage + "}"; } } public class StrongAuthTracker extends LockPatternUtils.StrongAuthTracker { Loading Loading @@ -1624,18 +1630,8 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener { return true; } // change in battery level while plugged in if (nowPluggedIn && old.level != current.level) { return true; } // change in battery level while keyguard visible if (mKeyguardIsVisible && old.level != current.level) { return true; } // change where battery needs charging if (!nowPluggedIn && current.isBatteryLow() && current.level != old.level) { // change in battery level if (old.level != current.level) { return true; } Loading
packages/SystemUI/src/com/android/systemui/statusbar/KeyguardIndicationController.java +19 −4 Original line number Diff line number Diff line Loading @@ -52,6 +52,8 @@ import com.android.systemui.statusbar.policy.UserInfoController; import com.android.systemui.util.wakelock.SettableWakeLock; import com.android.systemui.util.wakelock.WakeLock; import java.io.FileDescriptor; import java.io.PrintWriter; import java.text.NumberFormat; /** Loading Loading @@ -116,11 +118,9 @@ public class KeyguardIndicationController { WakeLock wakeLock) { mContext = context; mIndicationArea = indicationArea; mTextView = (KeyguardIndicationTextView) indicationArea.findViewById( R.id.keyguard_indication_text); mTextView = indicationArea.findViewById(R.id.keyguard_indication_text); mInitialTextColor = mTextView != null ? mTextView.getCurrentTextColor() : Color.WHITE; mDisclosure = (KeyguardIndicationTextView) indicationArea.findViewById( R.id.keyguard_indication_enterprise_disclosure); mDisclosure = indicationArea.findViewById(R.id.keyguard_indication_enterprise_disclosure); mLockIcon = lockIcon; mWakeLock = new SettableWakeLock(wakeLock); Loading Loading @@ -416,6 +416,21 @@ public class KeyguardIndicationController { updateDisclosure(); } public void dump(FileDescriptor fd, PrintWriter pw, String[] args) { pw.println("KeyguardIndicationController:"); pw.println(" mTransientTextColor: " + Integer.toHexString(mTransientTextColor)); pw.println(" mInitialTextColor: " + Integer.toHexString(mInitialTextColor)); pw.println(" mPowerPluggedIn: " + mPowerPluggedIn); pw.println(" mPowerCharged: " + mPowerCharged); pw.println(" mChargingSpeed: " + mChargingSpeed); pw.println(" mChargingWattage: " + mChargingWattage); pw.println(" mMessageToShowOnScreenOn: " + mMessageToShowOnScreenOn); pw.println(" mDozing: " + mDozing); pw.println(" mBatteryLevel: " + mBatteryLevel); pw.println(" mTextView.getText(): " + (mTextView == null ? null : mTextView.getText())); pw.println(" computePowerIndication(): " + computePowerIndication()); } protected class BaseKeyguardCallback extends KeyguardUpdateMonitorCallback { public static final int HIDE_DELAY_MS = 5000; private int mLastSuccessiveErrorMessage = -1; Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java +4 −0 Original line number Diff line number Diff line Loading @@ -2663,6 +2663,10 @@ public class StatusBar extends SystemUI implements DemoMode, mFingerprintUnlockController.dump(pw); } if (mKeyguardIndicationController != null) { mKeyguardIndicationController.dump(fd, pw, args); } if (mScrimController != null) { mScrimController.dump(fd, pw, args); } Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java +4 −4 File changed.Contains only whitespace changes. Show changes