Loading packages/SystemUI/plugin/src/com/android/systemui/plugins/ClockPlugin.java +6 −0 Original line number Diff line number Diff line Loading @@ -49,4 +49,10 @@ public interface ClockPlugin extends Plugin { * Notifies that time tick alarm from doze service fired. */ default void dozeTimeTick() { } /** * Set the amount (ratio) that the device has transitioned to doze. * @param darkAmount Amount of transition to doze: 1f for doze and 0f for awake. */ default void setDarkAmount(float darkAmount) {} } packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitch.java +10 −0 Original line number Diff line number Diff line Loading @@ -126,6 +126,16 @@ public class KeyguardClockSwitch extends FrameLayout { mClockView.setFormat24Hour(format); } /** * Set the amount (ratio) that the device has transitioned to doze. * @param darkAmount Amount of transition to doze: 1f for doze and 0f for awake. */ public void setDarkAmount(float darkAmount) { if (mClockPlugin != null) { mClockPlugin.setDarkAmount(darkAmount); } } public Paint getPaint() { return mClockView.getPaint(); } Loading packages/SystemUI/src/com/android/keyguard/KeyguardStatusView.java +1 −0 Original line number Diff line number Diff line Loading @@ -385,6 +385,7 @@ public class KeyguardStatusView extends GridLayout implements return; } mDarkAmount = darkAmount; mClockView.setDarkAmount(darkAmount); updateDark(); } Loading Loading
packages/SystemUI/plugin/src/com/android/systemui/plugins/ClockPlugin.java +6 −0 Original line number Diff line number Diff line Loading @@ -49,4 +49,10 @@ public interface ClockPlugin extends Plugin { * Notifies that time tick alarm from doze service fired. */ default void dozeTimeTick() { } /** * Set the amount (ratio) that the device has transitioned to doze. * @param darkAmount Amount of transition to doze: 1f for doze and 0f for awake. */ default void setDarkAmount(float darkAmount) {} }
packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitch.java +10 −0 Original line number Diff line number Diff line Loading @@ -126,6 +126,16 @@ public class KeyguardClockSwitch extends FrameLayout { mClockView.setFormat24Hour(format); } /** * Set the amount (ratio) that the device has transitioned to doze. * @param darkAmount Amount of transition to doze: 1f for doze and 0f for awake. */ public void setDarkAmount(float darkAmount) { if (mClockPlugin != null) { mClockPlugin.setDarkAmount(darkAmount); } } public Paint getPaint() { return mClockView.getPaint(); } Loading
packages/SystemUI/src/com/android/keyguard/KeyguardStatusView.java +1 −0 Original line number Diff line number Diff line Loading @@ -385,6 +385,7 @@ public class KeyguardStatusView extends GridLayout implements return; } mDarkAmount = darkAmount; mClockView.setDarkAmount(darkAmount); updateDark(); } Loading