diff options
| author | 2012-08-21 23:11:46 -0700 | |
|---|---|---|
| committer | 2012-08-22 00:06:09 -0700 | |
| commit | 00a8f4ff627584f4d9a8ae0cd83f87786005e16d (patch) | |
| tree | 0bbd2f92496759a17a34cf740a72a8baa0d68349 /services | |
| parent | aa202a6dc33d331cbd9e34a1bb5f74db6284dda6 (diff) | |
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
Diffstat (limited to 'services')
| -rw-r--r-- | services/java/com/android/server/power/DisplayPowerController.java | 4 | ||||
| -rw-r--r-- | services/java/com/android/server/power/ElectronBeam.java | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/services/java/com/android/server/power/DisplayPowerController.java b/services/java/com/android/server/power/DisplayPowerController.java index 80ad6121202d..5f917af174ef 100644 --- a/services/java/com/android/server/power/DisplayPowerController.java +++ b/services/java/com/android/server/power/DisplayPowerController.java @@ -106,8 +106,8 @@ final class DisplayPowerController { // well after dusk. private static final long TWILIGHT_ADJUSTMENT_TIME = DateUtils.HOUR_IN_MILLIS * 2; - private static final int ELECTRON_BEAM_ON_ANIMATION_DURATION_MILLIS = 300; - private static final int ELECTRON_BEAM_OFF_ANIMATION_DURATION_MILLIS = 600; + private static final int ELECTRON_BEAM_ON_ANIMATION_DURATION_MILLIS = 250; + private static final int ELECTRON_BEAM_OFF_ANIMATION_DURATION_MILLIS = 450; private static final int MSG_UPDATE_POWER_STATE = 1; private static final int MSG_PROXIMITY_SENSOR_DEBOUNCED = 2; diff --git a/services/java/com/android/server/power/ElectronBeam.java b/services/java/com/android/server/power/ElectronBeam.java index 2d242494add6..aad5a9adc03e 100644 --- a/services/java/com/android/server/power/ElectronBeam.java +++ b/services/java/com/android/server/power/ElectronBeam.java @@ -60,7 +60,7 @@ final class ElectronBeam { // The relative proportion of the animation to spend performing // the horizontal stretch effect. The remainder is spent performing // the vertical stretch effect. - private static final float HSTRETCH_DURATION = 0.3f; + private static final float HSTRETCH_DURATION = 0.4f; private static final float VSTRETCH_DURATION = 1.0f - HSTRETCH_DURATION; // Set to true when the animation context has been fully prepared. |