History log of /frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
372d1bdd54fe977c71bdaae895687c76ac35202a 14-Aug-2015 Selim Cinek <cinek@google.com> Launching the camera now from systemUI including animations

The GestureLaunchService now informs systemUI that a launch
has been requested and the systemUI, depending on its state
will launch the Camera in the correct mode, including
animations.

Bug: 22957192
Bug: 22958025
Change-Id: I815437c8bd33638245ac61a750f64af74fe3e1e3
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java
ab45a217b0002dcf586d529ab8581cacbbfc37e9 21-Aug-2015 Jorim Jaggi <jjaggi@google.com> Make wake-and-unlock faster

- Scrims: When dismissing Keyguard, don't wait until the next frame
to start the animation. Saves 16ms
- Scrims: Skip first frame, because it's completely black anyways.
Saves 16ms.
- Don't wait with navigation bar to show until the screen has turned
on. Window manager is blocked on DisplayPowerController anyways, so
the animation will exactly be started when the screen turns on. Fixes
some jank as well.
- Window manager: Don't wait for the window below Keyguard for draw
completion until turning on screen. Saves a lot of time depending on
how the app is behaving.

Bug: 23401557
Change-Id: I9734f9a12143f0e3c0647e9aa066831a29a6de63
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java
83eb6bb5d83d3994a3750b566a2109a049ab1388 18-Aug-2015 Jorim Jaggi <jjaggi@google.com> Improve motion for wake-and-unlocking while pulsing

- Move all fingerprint related to logic in on central class in
SystemUI that knows all the state of the UI so there is exactly ONE
place in which we decide what to do when we acquire a fingerprint.
- When pulsing and we get a valid finger, we fade the contents of the
Keyguard out and fade the scrim out almost the same way as we would do
in a normal wake-and-unlock sequence.
- Hide shadows while dozing, so we don't see the artifacts when we fade
the dozed Keyguard out.

Bug: 23225107
Change-Id: I82f78e61f2530cf7d507ade80f6f0a340c082567
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java
0d210f6395072db4a4c53d4cb8fac4a59a3965b4 10-Jul-2015 Jorim Jaggi <jjaggi@google.com> Animation for touch, wake and unlock

- Add callback to inform SysUI when the screen has been unblocked
and turned on.
- Cleanup inconsistent messaging about device interactive/screen on
and off.
- Add callbacks to inform SysUI about screen states
- Implement a quick fade for the scrim after touch, wake, and unlock.
First, start with a black scrim on top of everything, and then fade
it out.
- Make sure we play the normal unlock animation when device is pulsing
- Override navigation bar animations for touch, wake and unlock: Fade
in the same manner as the scrim.

Bug: 22571198
Bug: 21855614
Change-Id: I8ff08d72cced1e0f03c78d71ff710d8a4f6b848c
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java
e8bae6288bf0f241f0cea70f2c5e8294f930d4d8 15-Jul-2015 Selim Cinek <cinek@google.com> Fixed a bug where a fingerprint animation was not running

Previously the fingerprint animation would not run
when we successfully unlocked with the fingerprint,
because we were checking for the wrong state.

Bug: 22483380
Change-Id: I8d3ec303a43323431b8866df29ddd6d668edc1ed
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java
edd32b881780e52b4ecc43f8df3b6b091e70a863 24-Jun-2015 Selim Cinek <cinek@google.com> Fixed a bug with encryption where the keyguard was never shown with PIN

This led to the network being unusable.
We now ensure that the Keyguard is not notified of the SIM PIN
changes until after the initial dismissal logic is done.
In addition, the fullscreen PIN is now always shown immediately
and not until the user swipes up, which was an error before.
Also made sure that the Keyguard Scrim is correctly visible
when shown.

Bug: 21850021
Change-Id: I81804124bae30adf0e17e26cc42f67e48fc446e8
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java
37c110fa14aed2bb54f685f3855feb30000322fa 22-May-2015 Selim Cinek <cinek@google.com> Fixed a flash when launching keyguard affordances

When media artwork was present the screen would briefly
show the artwork and the scrim when launching the affordances
on the keyguard.

Bug: 21379150
Change-Id: Ica36e7f7ef11beef9b2351af4cf43ab4e20151ac
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java
e5716222a1a11922267193d5815fb083fc4e11d3 14-May-2015 Jorim Jaggi <jjaggi@google.com> Adjust lockscreen style to spec

Bug: 21111048
Change-Id: Ibdecaf01224ef45a53b4981d8b79d27034a3df45
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java
131c1e2960fa5bdf54bfb6fcd5ac98c9f728f796 12-May-2015 Selim Cinek <cinek@google.com> Made sure that HUNS with full screen intents stay pinned

When a HUN came in with a full screen intent came in and the shade
was open, the notification was not pinned and therefore got lost
when the shade was closed, potentially leading to missed alarms
or calls.

Bug: 20431566
Change-Id: I0d5da0f9baba8d9f68ba2755c40c5fd9a8471191
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java
737bff3476a3af8f930d29fccce16d033fbc3efa 09-May-2015 Selim Cinek <cinek@google.com> Fixed a bug where the HUN would interfere with the normal touches

When a hun came in or went away, the touchable regions were not
enforced correctly due to a race condition. This lead to the user
grabing the notification panel unintentionally and ripping him
out of the normal touch state.
Also fixed a small bug where the alpha was not correctly animating
sometimes and the HUN shadow would still draw.

Bug: 20956211
Change-Id: Iae1fef5825b3d2b8b4128cc8c3272019194cd819
(cherry picked from commit 8b4a06e9e269140c93c1a9ef5add008f7610d1a4)
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java
b349af573121cc659d775696066a13ed7101c308 29-Apr-2015 John Spurlock <jspurlock@google.com> Volume: dismiss volume UI to avoid HUNs.

Also include headsUp in the name of the pinned callback
method.

Internal version of AOSP proposal:
https://android-review.googlesource.com/147502

Change-Id: I8fe14bd7d65b2d3564cb1e2869d7ffbbac89e80d
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java
684a442b812a5e95d813700ffa2fd17ca72048a7 16-Apr-2015 Selim Cinek <cinek@google.com> Follow up CL for heads up notification refactoring

Change-Id: Iaf286dfd30a86d3d7d6dd947d3c10ac9eb8c2b1e
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java
aac932591d7aa05bae61d2b47ed7647f35da0001 15-Apr-2015 Selim Cinek <cinek@google.com> Added the heads up scrim back

Also fixed a bug where the notification panel would
keep a hardware layer.
Also improved the interal structure of the HeadsUpManager

Change-Id: I635e4a89b0a32573c26515cc3e65e142d77593ec
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java
2231c6e1adefdb7636d9fe38a388f1b0660d30ea 19-Dec-2014 Christoph Studer <chstuder@google.com> SysUI: Log lockscreen state to eventlog

Logs the following keyguard and status bar states to
eventlog:
* statusBarState
* keyguardShowing
* keyguardOccluded
* bouncerShowing
* secure
* currentlyInsecure

Bug: 18767135
Change-Id: If27a9340dd1b5ec609f9940d9e0f32bd7aed1ed2
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java
048af1f727dc81a6450e004391d072599ac449ee 11-Nov-2014 Jorim Jaggi <jjaggi@google.com> Fix doze jank by removing a fullscreen layer of overdraw

Move all doze related stuff into DozeScrimController, and combine
both alpha values from the regular ScrimController and
DozeScrimController before applying it to a view. Move the black
background from NotificationPanelView to DozeScrimController, which
saves a fullscreen layer of overdraw during the transition.

Bug: 18238168
Change-Id: Ifb133bf4a0f8255f5c2f5e205509af339cac8c8f
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java
16423aa0c6d1f5a8e9abd294d876933d44361fbc 28-Oct-2014 Jorim Jaggi <jjaggi@google.com> Improve doze transitions

This change animates the status bar and the bottom area when exiting
doze mode from touch. We also prevent all animations when exiting
from other means, i.e. usually when the power button is pressed, so
we don't have a distracting animation there. In addition, this also
optimizes the scrim animations a bit in terms of interpolation and
duration to make the experience smoother and cleans up some logic.

Bug: 18146441
Bug: 17717584
Change-Id: I495ce480c25de24b6433adebdfe923b637d98f66
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java
5e08e6957d1ada027ee93a0c8f745a9f8b89bb60 04-Oct-2014 Jorim Jaggi <jjaggi@google.com> Fix blank Keyguard #4

When we were fading out the preview for phone/camera to crossfade to
the real application, it might have been that showKeyguard was
called in the middle of this transition. This change makes sure that
we cancel this animation when showing the keyguard.

Bug: 17439581
Change-Id: I89cacf7ecf43d37ea979418b976390272510a09d
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java
0e66439387e36876de94a60658917a7f3b0e6d27 27-Sep-2014 Jorim Jaggi <jjaggi@google.com> Add option to enable scrim SRC optimization

It turns out that the optimization to disable glClear + draw scrim
with SRC is not good for all devices, so this CL adds a config flag
to revert to the old behavior.

Bug: 17673806
Change-Id: Ic4e0177f2d6fcf4448755d0be66e8fbef2d15ab5
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java
58a28eb85e8e55587e871487fe17d815979fede6 22-Sep-2014 John Spurlock <jspurlock@google.com> Doze: Fix NPE found when pulsing and !dozing.

Bug:17390492
Change-Id: Id6665c5bb8fa13ee08f68478c601b77a4f9e3f6a
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java
7858a1b5d8861ef4471b5f5c4ad9b41e5c6cf2d0 20-Sep-2014 Jeff Brown <jeffbrown@google.com> Merge "Fix order of operations while pulsing the ambient display." into lmp-dev
4d69e2219390bce567b0d2c986d0bd3a3182eda5 19-Sep-2014 Jeff Brown <jeffbrown@google.com> Fix order of operations while pulsing the ambient display.

This change fixes several issues in how the display's power state
was coordinated to ensure that the display is not turned on until
the pulse is ready to be shown. It also greatly simplifies the
wakelock logic and makes it completely deterministic instead of
relying on timed delays.

Bug: 17516245
Change-Id: If2b96845a010f2d05c610970257d898f32ccacb7
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java
a0fad3ba06d0352f640532e69ed3d540b3795535 19-Sep-2014 Selim Cinek <cinek@google.com> Optimized and improved the status bar performance a lot

Instead of clearing the Statusbarwindow buffer in the beginning
we now draw the scrim with mode SRC and therefore a whole screen
of overdraw is saved!

Bug: 17287256
Change-Id: I29f14a2c3d4cb087c422ae6f486d23d7f8ec173b
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java
813552cc27cbeac366166cdda82fd813c8458bbf 19-Sep-2014 John Spurlock <jspurlock@google.com> When dozing, re-enable falsing threshold and log events.

- Reactivate our configured keyguard falsing swipe threshold
for secure keyguards, but only when dozing.
- Add DozeLog helper to capture/maintain interesting events
about the doze + unlock process, enabled by default, but
only on devices that start dozing at least once.
- Dump summary counts + logged events to dumpsys output.
- Pass notification pulse "instance" as an extra to the scheduled
intent, so we can log accordingly.

Bug:17496795
Change-Id: I7e88f93bfc967bdc06550cf1fe5e74d535edd774
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java
190d026167401ed593924dd12ab6e134e2d08e94 14-Sep-2014 John Spurlock <jspurlock@google.com> Doze: Aggressively dial down notification-related pulses.

When dozing and buzz-worthy notifications arrive, don't follow
the LED logic with periodic pulses.

Instead, follow a simple decay schedule after the initial arrival,
pulsing only at 10s, 30s, 60s, and 120s.

The schedule is reset when a new notification arrives, but only
for the first three times, until either the pickup sensor is
triggered or the device exits doze.

Also:
- Make the notification trigger configurable.
- Centralize existing sysprop configuration into DozeParameters.
- Decouple vibration from debugging, make separately configurable.
- Remove "delayed" pulse concept, fold into new schedule.

Bug:17496795
Change-Id: I64fc1c862bcfa1c288a4fd91c9d17e3bff245add
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java
d06aa570374ecfe5c707140a12a309b1b7c07e08 10-Sep-2014 John Spurlock <jspurlock@google.com> Doze: Introduce a pulse period function.

Instead of pulsing every 30 seconds to mimic the LED, use
a function that pulses more frequently for new notifications,
decaying to a slower pulse, and eventually stopping.

Specifically, the step function for the interval is:
- 10 seconds for the first minute
- then 30 seconds until the five minute mark
- then 60 seconds until the 30 minute mark
- then no pulsing at all

- Since we pulse more frequently on new notifications, remove
the "multi-pulse" concept.
- Move all doze-related duration parameters to a new helper,
backed by config, overridable by sysprops, include in dump.
- Wake up from dozing when hitting volume keys during a pulse.
-
Bug:17393939
Change-Id: Ica86f08b25c738338fced165c77faf3dfccd0343
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java
8b12f22bc1f654d0afe1a5588ed3667428b305c8 09-Sep-2014 John Spurlock <jspurlock@google.com> Doze: Wake up on touch, fade between states.

- When dozing, the first motion event triggers a wake up.
- Fade the backgrounds to ease the transition out of doze.

Bug:17167296
Change-Id: I5615ca0839dfa3ed2cf3001baf407c707f0676d5
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java
76a1623afc170a13923b68f3256057d8adeb7937 08-Aug-2014 Jorim Jaggi <jjaggi@google.com> Preparations for lockscreen launch animations

- Update unlock animations to new spec to make the consistent with
lockscreen launch animations.
- Introduce disappearing motion for security views which runs before
we actually dismiss Keyguard.
- If a window is running the un-force-hide animation, treat as it
would have the wallpaper flag set so the wallpaper stays until
the animation is completely done.
- Run an animation on the wallpaper if the wallpaper is going away.

Bug: 15991916
Bug: 16234603
Bug: 15326120
Change-Id: I063aa4f269ddcf75b9a705e90f0c3056b541b642
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java
559d959b99f4daafc8befb2d9a8f2d85d771bf49 09-Aug-2014 John Spurlock <jspurlock@google.com> Doze: Pulse once when a pickup gesture is received.

- If configured, wire up the default sensor of TYPE_PICK_UP_GESTURE
as a signal to pulse (once) when dozing.
- Extend the duration that a pulse is visible.
- Skip the pre-pulse delay for the sensor signals.

Bug:15863249
Change-Id: I70e39fc5626fef5570ef74464c919427e0721c32
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java
cb566aab57cafb69c628809fc0a0ffa2151c7d6e 04-Aug-2014 John Spurlock <jspurlock@google.com> Doze: Follow the notification light.

- Send the notification light info up to SystemUI from NoMan.
- Doze mode will now periodically pulse the display (once)
if the notification light is active.
- Change "tease" terminology to "pulse", which is the singular.
Maintain the multi-pulse on buzz-beep-blink for now as extra
emphasis.
- Scrim controller now always takes number of pulses as an arg,
to support a single pulse (used for notification light, and
eventually pickup once available).
- Dial down the display brightness when pulsing.

Bug:15863249
Change-Id: Ifb208a27e82b66cff1d0c04e5b7f758098ea29cf
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java
dbc3dce886cb7abba23a9f18e60d0f5af5c93226 01-Aug-2014 Jorim Jaggi <jjaggi@google.com> Handle go to full shade motion for redacted case

Bug: 16291973
Change-Id: Idc5ea93548e17ef9cd2d7c36416b293950554703
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java
baa23274596246d03741457701ac515a73aa8818 08-Jul-2014 Selim Cinek <cinek@google.com> Implemented new camera affordance

Also fixed a bug in the touch logic where you could close the shade / hint
after going to the camera / phone.

Bug: 15126905
Change-Id: Iadfde56cb68f4048868eedec6bd3456f55823cd9
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java
ed69bd661f5152cdcb2d8359efb592234a45fc49 23-Jul-2014 John Spurlock <jspurlock@google.com> Doze: Manage screen state + brightness when teasing.

Bug:15863249
Change-Id: I2e9574afd58594d1895777024529e90815c66913
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java
a77b85b836dbd479ea428dd951cc7511862b1fd7 01-Jul-2014 Jorim Jaggi <jjaggi@google.com> Fix scrim in PIN/PUK.

Bug: 15949149
Change-Id: Ia68903445f256ad5db3d46d6916d57b57218a14d
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java
93439da0ed9213bc54291b3fce4e04dd3a7f9f3a 30-Jun-2014 Jorim Jaggi <jjaggi@google.com> Fix scrim flashing when no security is set.

Change-Id: Iccd07c39b57c7bcf3d4d26a00a46926df56eddbc
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java
bf370992508c55d1f2493923bdc1834a0710e4ba 17-Jun-2014 John Spurlock <jspurlock@google.com> Create a basic doze dream in SystemUI.

The doze dream is not configured by default.

When configured, the doze dream does not show anything by default.
It teases a dark version of the keyguard (showing only the time
and notifications) when a notification arrives or significant motion
is detected.

Bug:15863249
Change-Id: Icfceb054d35d6fd4d9178eda7480e2464873ca4b
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java
e29b2dbc762bfa66093d76f5a65f55328d8753c9 30-May-2014 Jorim Jaggi <jjaggi@google.com> Fade scrim in unlock animation.

This also introduces a startTime which gets sent from window manager
to SystemUI, which tells when the animation should start, to allow
for a more synchronized animation with fading out the scrim and
fading in the activity behind.

Bug: 15163546
Change-Id: I16212b1ef9eb76f1f98734da1d14fc5b7e626937
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java
2fbad7b6a724cf0a5b98b66fe639d58f5ab10af3 26-May-2014 Jorim Jaggi <jjaggi@google.com> Show bouncer immediately when MOTION_UP is received

Bug: 15163546
Change-Id: Ie50905b78352e54298cb7e0e3f13152e6c2becd0
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java
ecc798e6668046c2f67cf30c6ab1db2eba80cab1 26-May-2014 Jorim Jaggi <jjaggi@google.com> Improve scrim handling

Bug: 15163546
Change-Id: I0d2c05b035f832f4b4e6a2fc34113fe9d5677525
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java