Loading core/java/android/view/WindowManagerPolicy.java +6 −0 Original line number Diff line number Diff line Loading @@ -994,6 +994,12 @@ public interface WindowManagerPolicy { */ public void screenTurningOn(ScreenOnListener screenOnListener); /** * Called when the device has actually turned on the screen, i.e. the display power state has * been set to ON and the screen is unblocked. */ public void screenTurnedOn(); /** * Called when the device has turned the screen off. */ Loading core/java/com/android/internal/policy/IKeyguardService.aidl +10 −0 Original line number Diff line number Diff line Loading @@ -64,6 +64,16 @@ oneway interface IKeyguardService { */ void onScreenTurningOn(IKeyguardDrawnCallback callback); /** * Called when the screen has actually turned on. */ void onScreenTurnedOn(); /** * Called when the screen has turned off. */ void onScreenTurnedOff(); void setKeyguardEnabled(boolean enabled); void onSystemReady(); void doKeyguardTimeout(in Bundle options); Loading packages/Keyguard/src/com/android/keyguard/CarrierText.java +4 −5 Original line number Diff line number Diff line Loading @@ -23,7 +23,6 @@ import java.util.Objects; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.content.res.Resources; import android.content.res.TypedArray; import android.net.ConnectivityManager; import android.net.wifi.WifiManager; Loading Loading @@ -59,11 +58,11 @@ public class CarrierText extends TextView { updateCarrierText(); } public void onScreenTurnedOff(int why) { public void onFinishedGoingToSleep(int why) { setSelected(false); }; public void onScreenTurnedOn() { public void onStartedWakingUp() { setSelected(true); }; }; Loading Loading @@ -193,8 +192,8 @@ public class CarrierText extends TextView { super.onFinishInflate(); mSeparator = getResources().getString( com.android.internal.R.string.kg_text_message_separator); final boolean screenOn = KeyguardUpdateMonitor.getInstance(mContext).isScreenOn(); setSelected(screenOn); // Allow marquee to work. boolean shouldMarquee = KeyguardUpdateMonitor.getInstance(mContext).isDeviceInteractive(); setSelected(shouldMarquee); // Allow marquee to work. } @Override Loading packages/Keyguard/src/com/android/keyguard/KeyguardMessageArea.java +4 −4 Original line number Diff line number Diff line Loading @@ -58,10 +58,10 @@ class KeyguardMessageArea extends TextView implements SecurityMessageDisplay { }; private KeyguardUpdateMonitorCallback mInfoCallback = new KeyguardUpdateMonitorCallback() { public void onScreenTurnedOff(int why) { public void onFinishedGoingToSleep(int why) { setSelected(false); }; public void onScreenTurnedOn() { public void onStartedWakingUp() { setSelected(true); }; }; Loading Loading @@ -126,8 +126,8 @@ class KeyguardMessageArea extends TextView implements SecurityMessageDisplay { @Override protected void onFinishInflate() { final boolean screenOn = KeyguardUpdateMonitor.getInstance(mContext).isScreenOn(); setSelected(screenOn); // This is required to ensure marquee works boolean shouldMarquee = KeyguardUpdateMonitor.getInstance(mContext).isDeviceInteractive(); setSelected(shouldMarquee); // This is required to ensure marquee works } private void securityMessageChanged(CharSequence message) { Loading packages/Keyguard/src/com/android/keyguard/KeyguardStatusView.java +4 −4 Original line number Diff line number Diff line Loading @@ -67,12 +67,12 @@ public class KeyguardStatusView extends GridLayout { } @Override public void onScreenTurnedOn() { public void onStartedWakingUp() { setEnableMarquee(true); } @Override public void onScreenTurnedOff(int why) { public void onFinishedGoingToSleep(int why) { setEnableMarquee(false); } Loading Loading @@ -113,8 +113,8 @@ public class KeyguardStatusView extends GridLayout { mClockView.setShowCurrentUserTime(true); mOwnerInfo = (TextView) findViewById(R.id.owner_info); final boolean screenOn = KeyguardUpdateMonitor.getInstance(mContext).isScreenOn(); setEnableMarquee(screenOn); boolean shouldMarquee = KeyguardUpdateMonitor.getInstance(mContext).isDeviceInteractive(); setEnableMarquee(shouldMarquee); refresh(); updateOwnerInfo(); Loading Loading
core/java/android/view/WindowManagerPolicy.java +6 −0 Original line number Diff line number Diff line Loading @@ -994,6 +994,12 @@ public interface WindowManagerPolicy { */ public void screenTurningOn(ScreenOnListener screenOnListener); /** * Called when the device has actually turned on the screen, i.e. the display power state has * been set to ON and the screen is unblocked. */ public void screenTurnedOn(); /** * Called when the device has turned the screen off. */ Loading
core/java/com/android/internal/policy/IKeyguardService.aidl +10 −0 Original line number Diff line number Diff line Loading @@ -64,6 +64,16 @@ oneway interface IKeyguardService { */ void onScreenTurningOn(IKeyguardDrawnCallback callback); /** * Called when the screen has actually turned on. */ void onScreenTurnedOn(); /** * Called when the screen has turned off. */ void onScreenTurnedOff(); void setKeyguardEnabled(boolean enabled); void onSystemReady(); void doKeyguardTimeout(in Bundle options); Loading
packages/Keyguard/src/com/android/keyguard/CarrierText.java +4 −5 Original line number Diff line number Diff line Loading @@ -23,7 +23,6 @@ import java.util.Objects; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.content.res.Resources; import android.content.res.TypedArray; import android.net.ConnectivityManager; import android.net.wifi.WifiManager; Loading Loading @@ -59,11 +58,11 @@ public class CarrierText extends TextView { updateCarrierText(); } public void onScreenTurnedOff(int why) { public void onFinishedGoingToSleep(int why) { setSelected(false); }; public void onScreenTurnedOn() { public void onStartedWakingUp() { setSelected(true); }; }; Loading Loading @@ -193,8 +192,8 @@ public class CarrierText extends TextView { super.onFinishInflate(); mSeparator = getResources().getString( com.android.internal.R.string.kg_text_message_separator); final boolean screenOn = KeyguardUpdateMonitor.getInstance(mContext).isScreenOn(); setSelected(screenOn); // Allow marquee to work. boolean shouldMarquee = KeyguardUpdateMonitor.getInstance(mContext).isDeviceInteractive(); setSelected(shouldMarquee); // Allow marquee to work. } @Override Loading
packages/Keyguard/src/com/android/keyguard/KeyguardMessageArea.java +4 −4 Original line number Diff line number Diff line Loading @@ -58,10 +58,10 @@ class KeyguardMessageArea extends TextView implements SecurityMessageDisplay { }; private KeyguardUpdateMonitorCallback mInfoCallback = new KeyguardUpdateMonitorCallback() { public void onScreenTurnedOff(int why) { public void onFinishedGoingToSleep(int why) { setSelected(false); }; public void onScreenTurnedOn() { public void onStartedWakingUp() { setSelected(true); }; }; Loading Loading @@ -126,8 +126,8 @@ class KeyguardMessageArea extends TextView implements SecurityMessageDisplay { @Override protected void onFinishInflate() { final boolean screenOn = KeyguardUpdateMonitor.getInstance(mContext).isScreenOn(); setSelected(screenOn); // This is required to ensure marquee works boolean shouldMarquee = KeyguardUpdateMonitor.getInstance(mContext).isDeviceInteractive(); setSelected(shouldMarquee); // This is required to ensure marquee works } private void securityMessageChanged(CharSequence message) { Loading
packages/Keyguard/src/com/android/keyguard/KeyguardStatusView.java +4 −4 Original line number Diff line number Diff line Loading @@ -67,12 +67,12 @@ public class KeyguardStatusView extends GridLayout { } @Override public void onScreenTurnedOn() { public void onStartedWakingUp() { setEnableMarquee(true); } @Override public void onScreenTurnedOff(int why) { public void onFinishedGoingToSleep(int why) { setEnableMarquee(false); } Loading Loading @@ -113,8 +113,8 @@ public class KeyguardStatusView extends GridLayout { mClockView.setShowCurrentUserTime(true); mOwnerInfo = (TextView) findViewById(R.id.owner_info); final boolean screenOn = KeyguardUpdateMonitor.getInstance(mContext).isScreenOn(); setEnableMarquee(screenOn); boolean shouldMarquee = KeyguardUpdateMonitor.getInstance(mContext).isDeviceInteractive(); setEnableMarquee(shouldMarquee); refresh(); updateOwnerInfo(); Loading