History log of /frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/BarTransitions.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
c0f0a74762f7b3651d0fcd8371e9eb0c84779b1a 28-Oct-2014 Adrian Roos <roosa@google.com> Fix low profile bar mode for Material themed apps

Bug: 17691219
Change-Id: I1b1fb2e831e5d4c41073bb4db0793bf66468c4c4
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/BarTransitions.java
255dd04271088590fedc46c8e22b2fd4ab142d39 19-Aug-2014 Selim Cinek <cinek@google.com> Added notification color to all system notifications

Bug: 17128331
Change-Id: I81a94510ef51b99916f314c0dd65852426a1fbeb
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/BarTransitions.java
f479792e05485a536c3fa68db9d8a71f34591b78 04-Aug-2014 Jorim Jaggi <jjaggi@google.com> New swipe-up assist animation for L.

Bug: 16307470
Bug: 14623152
Change-Id: Ib7e0381d118bda177981cc56ec9a8fb418dfb0e3
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/BarTransitions.java
0ff62e09116dd125fc36f7af5de7a0b60aaa789b 22-Jul-2014 John Spurlock <jspurlock@google.com> BatterySaver: Make the bars orange.

Bug:16203820
Change-Id: I85f700d30a90212202626fc10fb289aca7f2b688
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/BarTransitions.java
ea56251d92050e9a672d1f66d0d4621e4dd4136e 05-May-2014 Adrian Roos <roosa@google.com> Colorize SystemUI

Makes the color of the status and navigation bars customizable by
the app.

Bug: 14564488
Change-Id: I036edc228cfe1b659c7f11a43cdc4598ee705ff8
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/BarTransitions.java
fd0e6c0d6fd17c7a5949ae581bf2355268545fd4 14-Jan-2014 John Spurlock <jspurlock@google.com> Allow lights-out + bar icon dimming on low-end devices.

Maintain fallback to OPAQUE mode on low-end devices in place of the
translucent modes.

Bug: 12546110
Change-Id: Ia3582c305cb09aadd56c6aa58b039a174675c79a
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/BarTransitions.java
56d007b99841f7f603e5d5bc5c23b94c010f1945 28-Oct-2013 John Spurlock <jspurlock@google.com> Manage keyguard nav elements using transitions.

Move the logic for managing dimming the navigation bar
elements on the lockscreen into BarTransitions.

Replace search light + camera assets with new
versions at full brightness, and apply 50% dimming
at runtime, including the IME dismiss button.

Remove unused StatusBarManager _NOP hints.

Improve choreography between camera button +
password security (w/ IME). Fix a few found bugs
in PagedView.

Improve password security unlock transition, manually
fade in back along with the rest of the icons.

Bug:11221659
Change-Id: Ifd1f8c9f400d90542f0ca858b9a4deacabbd518a
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/BarTransitions.java
42197263bc08843ad18a8660887ef540c630c232 21-Oct-2013 John Spurlock <jspurlock@google.com> Optimize system bar background drawable.

Out with TransitionDrawable.

The new background drawable knows about all possible
background styles, and optimizes the transitions
between them - including picking up from the current
state, force finishing on screen off, and using
SystemClock.elapsedRealtime() for timing.

Bug:11254317
Change-Id: Ice83dc966f6674ef97f7008f2a1b62d67ec59e7d
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/BarTransitions.java
46ec729a88079d3878a95a57ab703e64638dfc1a 08-Oct-2013 Chris Craik <ccraik@google.com> Merge "Clean up unused resources" into klp-dev
641ac6429ac6bdd6748b84eb7a7b5ade95f854fb 04-Oct-2013 Chris Craik <ccraik@google.com> Clean up unused resources

bug:10641374

Additionally, fixes incorrect getColor use

Change-Id: Ie56ad5baa099cc421629a5dcc8ef9de14e44079a
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/BarTransitions.java
bd95740648372449a4d5c164d7050eee352d4c24 03-Oct-2013 John Spurlock <jspurlock@google.com> Transparent system ui flags -> Translucent WM flags.

Migrate View.SYSTEM_UI_FLAG_TRANSPARENT_(STATUS/NAVIGATION) to
WindowManager.LayoutParams.FLAG_TRANSLUCENT_(STATUS|NAVIGATION).

Add associated public attrs for both new window flags:
windowTranslucentStatus
windowTranslucentNavigation

Introduce convenient four new themes that set translucent decor:
Theme.Holo.NoActionBar.TranslucentDecor
Theme.Holo.Light.NoActionBar.TranslucentDecor
Theme.DeviceDefault.NoActionBar.TranslucentDecor
Theme.DeviceDefault.Light.NoActionBar.TranslucentDecor

Update PhoneWindowManager mechanism to plumb these values back to
SystemUI to drive bar mode state.

The new translucent flags come from the top fullscreen window, not
the focused window, so translucency does not change when opening
dialogs.

Imply some window-level system-ui visibility if one or both of these
new flags are present, specifically:
FLAG_TRANSLUCENT_STATUS implies LAYOUT_STABLE, LAYOUT_FULLSCREEN
FLAG_TRANSLUCENT_NAVIGATION implies LAYOUT STABLE, LAYOUT_HIDE_NAV

Rename all associated variable & resource names to use the term
translucent instead of transparent. (Retain the term semi-transparent
for the transient bar style).

Recents activity allowed to inherit translucent decor state via the
new PRIVATE_FLAG_INHERIT_TRANSLUCENT_DECOR. Compensating changes
to use the full screen area more appropriately.

Update keyguard to use new WM flags.

Update docs and various api artifacts.

Sanity-check fixes:
- Toasts and alerts given stable layout.
- Suppress nu-gradient when in transient (hidey) mode.
- New translucent flags use top-fullscreen window, dialogs don't clear.

Bug:10674960
Bug:11062108
Bug:10987178
Bug:10786445
Bug:10781433
Change-Id: If667a55bea4cf5e008549524b9899197fab55ebe
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/BarTransitions.java
7057d2c3a9a88f1d221bc69780385bd20c5b4999 02-Oct-2013 John Spurlock <jspurlock@google.com> Replace linear GradientDrawable with asset-based approach.

And disallow fully transparent nav bar when vertical.

Bug: 10967264
Change-Id: I42adf6de1eeb91e1b1a24dc6c7a64c8d86017b2d
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/BarTransitions.java
e631b41d8be2952db48df5838c6fb5d8df4645d1 18-Sep-2013 John Spurlock <jspurlock@google.com> Draw gradient behind fully transparent system bars.

Use a transition-drawable to crossfade between the gradient and
solid color backgrounds, avoiding custom onDraw.

Rename colors to their final names. Since both bars now receive the
gradient treatment, centralize in base BarTransitions.

Bug:10602521
Change-Id: Id094fa1767eabab88a3709d6026c23858c83fb5b
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/BarTransitions.java
7edfbca5d00cbc376fda790b50a3fedb9c6070ab 14-Sep-2013 John Spurlock <jspurlock@google.com> Promote lights-out to a bar transition mode.

Move all visual application of the legacy lights-out behind
a new mode managed by BarTransitions for better coordination.

Remove unused "hidden" state in NavigationBarView.

Improve window state (showing/hiding/hidden) calculation,
affecting whether or not sysui thinks it should animate.
Removes invalid interim mode changes causing needless
flashing during some transitions.

Consider WINDOW_STATE_HIDING a state in which we ought to animate,
since at least part of the window is visible throughout.

Make the status/nav bar transition helper classes real boys.

Animate KeyButtonView drawing alpha transition, cancel existing
animations when resetting to avoid needless and unsightly "recovery".

Bug:10746803
Change-Id: Ibd883da9041d071b6a4ff5b42cf96efba7696e9c
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/BarTransitions.java
d4e6575c4f664e0d42d9306c9762d96533df429e 28-Aug-2013 John Spurlock <jspurlock@google.com> Ensure IME windows always appear north of the nav bar.

Even if the bars are transparent / invisible.

Refactor the PSB bar mode override logic to take the IME hint into
account. Bars are overriden to opaque when hint is showing.

Initialize bar state to showing, fix bug that would mark state
as hidden pre-show (on shell restart).

Bug:10505132
Bug:9499956
Change-Id: I21e830e90c7e9812b4192ca65c3c0cd7a6b72798
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/BarTransitions.java
b77edbfdab54531023c8bbea7d89b6cefc42096c 22-Aug-2013 John Spurlock <jspurlock@google.com> Improve transparent bar transitions.

1. Migrate transparent transitions to the new optimized
background color animations.

2. Ensure sysui animation transparent -> opaque has enough
time to run before window manager crops off the content area.

3. Lose the individual alpha on each status bar icon if the bars
are not opaque. Animate the alpha if visible, make sure they
play together.

4. Documentation typo fix found in AnimatorSet.

Bug:10344949
Change-Id: I615668ce3c552d3df15dbba5cdeeca67549a0220
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/BarTransitions.java
5b9145bf990a9bbf4fdef1739e61ff8c70ec868f 20-Aug-2013 John Spurlock <jspurlock@google.com> Improve transient bar transitions.

1. If app clears transient flag w/ a gesture, the touch-outside
listener would always win, causing an unsightly hide + immediate
reshow. Instead, give the app some time to clear the flag, then
perform a smooth transition in place.

2. When the transient bars are hidden, we do not know ahead of time
which background will be used on reshow (if transient bars are
revealed, the background is semi-transparent, if transient bars
are cleared, the background is opaque). Window manager is responsible
for showing windows, but sysui is responsible for setting the view
background. Therefore, we need some level of coordination between
the two in this case. Introduce two new non-public sysui flags
that represent the window manager's request to reshow the hidden
bars, but do not reshow until sysui acknowledges (by clearing the flag).
This gives sysui whatever time is necessary to prepare itself for
reshow, avoiding unsightly blip from opaque -> transparent during
the enter animation.

3. When both system bars are hidden, any low-profile changes are
moot. Avoid unsightly low-profile animations during bar reshow
by suppressing the flag in this case.

4. Improve transient bar home -> launcher transition by cancelling
the -> opaque animation. This also fixes a bug where hitting
home from the transient bar would leave you with a semi-transparent
bar in a non-transient state.

Bug:10284800
Change-Id: I238210561d8d5f70c1a517283b986c9105a1ec75
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/BarTransitions.java
3b139a9ed06fdaad694ca97b8f99e7038007a054 17-Aug-2013 John Spurlock <jspurlock@google.com> Transition bars to opaque on user interaction.

When the transient bars are revealed, smoothly transition the
bar style to opaque to blend with the other panel chrome.

Bug:8706719
Change-Id: I65e5b22e2f91a3db0394c0f571127397ba692f46
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/BarTransitions.java
89835ddf327ef256b44d91cf1fd1898c0599eb48 16-Aug-2013 John Spurlock <jspurlock@google.com> Lose navigation bar icon alpha in transparent modes.

Also decouple visual style from bar mode in preparation for future
changes.

Bug:10344949
Change-Id: I8e5a94b023cd6a6606c3aab485f81b1494295cee
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/BarTransitions.java
27735a4ba50d42df64eb82acc3f64fa2d68fd505 14-Aug-2013 John Spurlock <jspurlock@google.com> Maintain TRANSIENT_*_BAR flags until transient bars hidden.

Also factor common bar-management code into a separate helper
class called BarController instead of continuing to pollute
PhoneWindowManager with duplicate logic.

Bug:10345412
Change-Id: I880900e61daa6c2c53b169e4885e68ebc62ecb6c
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/BarTransitions.java
e932e30eadb5978591316ffe3d21d60604c0cd91 12-Aug-2013 John Spurlock <jspurlock@google.com> Distinguish transient + transparent bar styles.

Transient bars = 30% black scrim per spec (formerly view alpha).
Transparent nav bar = Simple gradient drawable from 50% to 0% black.
Transparent status bar = Fully transparent.

Smoother transitions between bar modes will be tricky due to
coordination with window manager, and thus deferred to a separate
future change.

Pre-baked assets instead of the gradient drawable will also be
part of a separate future change, this change is simply meant to
move closer to the final look and feel to minimize confusion for
those kicking the tires on the new flags.

Bug:10012887
Change-Id: I8c35a660187903224a6bfe604b5313e9115c4a73
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/BarTransitions.java