Rename isScreenOn() to isInteractive().
Fix build break due to an earlier merge. Change-Id: I6e6583b251da9e027a4ade45cb4bb77e9d4ee624
This commit is contained in:
@@ -986,7 +986,7 @@ public class PhoneWindowManager implements WindowManagerPolicy {
|
||||
initializeHdmiState();
|
||||
|
||||
// Match current screen state.
|
||||
if (mPowerManager.isScreenOn()) {
|
||||
if (mPowerManager.isInteractive()) {
|
||||
screenTurningOn(null);
|
||||
} else {
|
||||
screenTurnedOff(WindowManagerPolicy.OFF_BECAUSE_OF_USER);
|
||||
@@ -3973,7 +3973,7 @@ public class PhoneWindowManager implements WindowManagerPolicy {
|
||||
case KeyEvent.KEYCODE_POWER: {
|
||||
result &= ~ACTION_PASS_TO_USER;
|
||||
if (down) {
|
||||
boolean panic = mImmersiveModeConfirmation.onPowerKeyDown(isScreenOn,
|
||||
boolean panic = mImmersiveModeConfirmation.onPowerKeyDown(interactive,
|
||||
event.getDownTime(), isImmersiveMode(mLastSystemUiFlags));
|
||||
if (panic) {
|
||||
mHandler.post(mRequestTransientNav);
|
||||
@@ -3995,7 +3995,7 @@ public class PhoneWindowManager implements WindowManagerPolicy {
|
||||
telephonyService.silenceRinger();
|
||||
} else if ((mIncallPowerBehavior
|
||||
& Settings.Secure.INCALL_POWER_BUTTON_BEHAVIOR_HANGUP) != 0
|
||||
&& telephonyService.isOffhook() && isScreenOn) {
|
||||
&& telephonyService.isOffhook() && interactive) {
|
||||
// Otherwise, if "Power button ends call" is enabled,
|
||||
// the Power button will hang up any current active call.
|
||||
hungUp = telephonyService.endCall();
|
||||
|
||||
@@ -393,7 +393,7 @@ final class DisplayPowerController implements AutomaticBrightnessController.Call
|
||||
|
||||
// Initialize screen state for battery stats.
|
||||
try {
|
||||
if (mPowerState.isScreenOn()) {
|
||||
if (mPowerState.getScreenState() != Display.STATE_OFF) {
|
||||
mBatteryStats.noteScreenOn();
|
||||
} else {
|
||||
mBatteryStats.noteScreenOff();
|
||||
|
||||
Reference in New Issue
Block a user