Skip to content

Commit 00a8f4f

Browse files
author
Jeff Brown
committed
Make the electron beam animation shorter.
Now using about the same duration as it used to have when it was implemented in Surface Flinger. Change-Id: I09b28222379f4b6583f1f7b34188cc36c50509e9
1 parent aa202a6 commit 00a8f4f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

services/java/com/android/server/power/DisplayPowerController.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ final class DisplayPowerController {
106106
// well after dusk.
107107
private static final long TWILIGHT_ADJUSTMENT_TIME = DateUtils.HOUR_IN_MILLIS * 2;
108108

109-
private static final int ELECTRON_BEAM_ON_ANIMATION_DURATION_MILLIS = 300;
110-
private static final int ELECTRON_BEAM_OFF_ANIMATION_DURATION_MILLIS = 600;
109+
private static final int ELECTRON_BEAM_ON_ANIMATION_DURATION_MILLIS = 250;
110+
private static final int ELECTRON_BEAM_OFF_ANIMATION_DURATION_MILLIS = 450;
111111

112112
private static final int MSG_UPDATE_POWER_STATE = 1;
113113
private static final int MSG_PROXIMITY_SENSOR_DEBOUNCED = 2;

services/java/com/android/server/power/ElectronBeam.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ final class ElectronBeam {
6060
// The relative proportion of the animation to spend performing
6161
// the horizontal stretch effect. The remainder is spent performing
6262
// the vertical stretch effect.
63-
private static final float HSTRETCH_DURATION = 0.3f;
63+
private static final float HSTRETCH_DURATION = 0.4f;
6464
private static final float VSTRETCH_DURATION = 1.0f - HSTRETCH_DURATION;
6565

6666
// Set to true when the animation context has been fully prepared.

0 commit comments

Comments
 (0)