4416 Commits

Author SHA1 Message Date
Selim Cinek
8df56452cb Improved animation logic of the new notifications
Scrolling and other local updates work much better now when an
animation is already in place.

Change-Id: I602899bc75ae132ebb30591e723be3f00f744e18
2014-05-08 15:25:40 +02:00
Jorim Jaggi
5aa045cc6b Allow different animation lengths in StackStateAnimator.
Combine them using the maximum length.

Change-Id: Idc1e6e52f7f36ed46fbfba013c23773eeed95cd6
2014-05-08 01:18:00 +00:00
Jorim Jaggi
fe6bfa644c Only handle scroll events when over content.
This makes sure that the unlock text is always shown when tapping
the bottom area.

Bug: 14381296
Change-Id: If1729a01dab21ddf0b93e665c85fd72ed399c0fd
2014-05-08 02:46:10 +02:00
Jorim Jaggi
e96fcd1faa Enable "More"-card double tap interaction.
Bug: 14492098
Change-Id: I8b80df407df8b6df0af616932018e40e903a7966
2014-05-08 02:45:39 +02:00
Jorim Jaggi
d552d9d8e9 Introduce AmbientState for StackScroller.
AmbientState is a global state for the algorithm of the
StackScroller. Dimmed and which child is activated was moved
into this state. Further, scale and dimmed is also a
StackScrollState and animated in StackStateAnimator.

Change-Id: Ia68131cee62b2e0005f55ea6dc400d149ec15278
2014-05-08 02:33:56 +02:00
Winson Chung
945c27836b Merge "Disabling shadowing (until bugs are addressed) and refactoring some constants." 2014-05-07 22:04:16 +00:00
Winson Chung
814086db67 Disabling shadowing (until bugs are addressed) and refactoring some constants.
Change-Id: Iaf4c98bcb13441be3e66048687ea5b0673d2bce6
2014-05-07 15:01:14 -07:00
Jorim Jaggi
4f0128fb8f Merge "New layout structure for the expanded status bar." 2014-05-07 21:43:14 +00:00
Jorim Jaggi
603d270a53 Merge "Add intermediate lock icon so users know how to unlock." 2014-05-07 20:18:35 +00:00
Jorim Jaggi
47a7b0769f Add intermediate lock icon so users know how to unlock.
Bug: 14381296
Change-Id: I51c63dd5ba9a26b7e03be092482f4c4f69b31754
2014-05-07 22:10:17 +02:00
Jorim Jaggi
d7daab7b9e New layout structure for the expanded status bar.
This also includes a new (very WIP) interaction to get to quick
settings, with clumping the cards and a scrollable container with
the cards and the bottom QS part in it.

Change-Id: Ib073bb0174cddcf60347a5e3bb474fb3b6385bcf
2014-05-07 19:49:23 +02:00
Jorim Jaggi
2322ae82e9 Merge "Improved interception logic of the PanelView" 2014-05-07 17:45:31 +00:00
Selim Cinek
172e914178 Improved interception logic of the PanelView
It was previously possible to get into undesired states when closing
the shade and clicking on it in midtransition. This was also triggered
when double tapping a card.

Bug: 14130526
Change-Id: I6b73f348dba4ee21d2401004176a9c6cc0c59745
2014-05-07 19:38:00 +02:00
Selim Cinek
0be30834b4 Merge "Improved notification scroller animation logic" 2014-05-07 15:42:42 +00:00
Selim Cinek
3af00cf106 Improved notification scroller animation logic
When an animation was already running, the calculation of the
new duration was wrong. We are now also starting the animation
instantly instead of waiting for the next frame.
Also improved the scrolling performance, which was lagging behind by one frame

Change-Id: I25d6e6eedf33d94f2f90bdc39d863955c707370c
2014-05-07 17:33:25 +02:00
Jason Monk
10a38c06df Merge "Only show IME in navigation bar when it should" 2014-05-07 14:20:04 +00:00
Jason Monk
b605fecd9e Only show IME in navigation bar when it should
Add a flag to indicate that the IME should be shown.  This follows
the continuous ime notification boolean, and if there are multiple
input methods to choose from enabled.  This way the notification
and navigation button show up under the same circumstances (but
not on the same devices).

Change-Id: Ia6a2253061f1876f4bcc511de48c1078e9d96be5
2014-05-07 09:51:58 -04:00
Selim Cinek
2c5d4a08d2 Merge "Refactored the notification animations, improved stack scroller" 2014-05-07 13:43:43 +00:00
Selim Cinek
eb973565f3 Refactored the notification animations, improved stack scroller
Animations are now only triggered when absolutely needed.
In addition, the notifications are now not clipped anymore when starting
a drag on them and the notification below the dragged one is fadded in if
necessary.

Change-Id: I80e8b3ea8fb48505edfb3cace6176dfa00c5a659
2014-05-07 15:00:45 +02:00
Winson Chung
c9e7b1e3da Merge "Fixing issue with animation not running after SystemUI crashes (Bug 14453240)" 2014-05-07 00:22:50 +00:00
Winson Chung
96e3bc1f8d Fixing issue with animation not running after SystemUI crashes (Bug 14453240)
- Falling back to default transition if we don't have a thumbnail (Bug 14589475)
- Tweaking over scroll to prevent scrolling past a certain point (Bug 14582630)
- Fixing issue with missing top padding in the stack view
- Adding some shadowing to distinguish similar cards from each other
2014-05-06 17:13:28 -07:00
Jorim Jaggi
ef3b18b101 Merge "Never close Keyguard automatically." 2014-05-06 20:01:43 +00:00
Jorim Jaggi
fd4235f268 Merge "Fix overly huge PanelView." 2014-05-06 13:24:20 +00:00
Jorim Jaggi
3b23999954 Fix overly huge PanelView.
Bug: 14489968
Change-Id: Ibdc820348eb7d045ffb5ad07093ac86e5ff7abb0
2014-05-06 14:53:04 +02:00
Jorim Jaggi
dba6ca00c3 Merge "Implement phone affordance on lockscreen." 2014-05-06 12:10:53 +00:00
Jorim Jaggi
97b63c4112 Implement phone affordance on lockscreen.
Refactor the camera affordance into a reusable view. This change
also swaps the asset for the camera affordance.

Bug: 14488709
Change-Id: I0633614f6a1ea81faa37923f748af3c635e64a52
2014-05-06 13:56:44 +02:00
Winson Chung
98596c92a3 Merge "Exposing the API to support widgets in Recents." 2014-05-05 23:59:29 +00:00
Winson Chung
da5b84c8d3 Exposing the API to support widgets in Recents.
Change-Id: I2d53f226dbc328f0dbda7006eac647c6468c6b36
2014-05-05 14:33:44 -07:00
Christoph Studer
983ce97a5d Merge changes Iffd15e95,Id2db95ec
* changes:
  Log notification clicks
  Add userId to StatusBarNotification key
2014-05-05 19:04:57 +00:00
Jason Monk
f593c9d728 Merge "Add null check on navigation bar visibility" 2014-05-05 18:14:27 +00:00
John Spurlock
efc1a289c6 Cleanup logspam.
Change-Id: I21b39458147e911da3ab7a260c13abf7ec4eea5d
2014-05-05 08:43:08 -04:00
Winson Chung
f7bca430d9 Adding ability to load a search widget into Recents.
Change-Id: Ie17d9b9a47c979774b39a37e87f75d9dadc79ad9
2014-05-02 18:45:40 -07:00
Winson Chung
f5e22e71cb Incorporating theme colors into task views.
Change-Id: Ie7166d78dacabe4bff7afdade2d1da9d0651e403
2014-05-02 18:35:35 -07:00
Dianne Hackborn
d83a096f29 Bump up priority of system receiving BOOT_COMPLETED.
Change-Id: I5166f88f11f781914312e867cb653c8ecbefa705
2014-05-02 16:29:10 -07:00
Jorim Jaggi
c1cf1aec53 Never close Keyguard automatically.
Also make the bouncer less translucent, so it looks better when
a user double-clicks on a notification (because it is now shown
behind, so we need more background protection).

Bug: 14059777
Change-Id: I2538b0e04ddc25c25a03c65c8a5bd7855720bbf2
2014-05-02 23:25:21 +02:00
Jason Monk
1e68fb3c38 Add null check on navigation bar visibility
When there are hardware keys getNavigationBarView() returns null,
this just checks before setting the visibility.

Bug: 14491311
Change-Id: I2ea8b62b1dfe05ca09636870b37dff184730369e
2014-05-02 16:06:20 -04:00
Jorim Jaggi
00ebdfe8ba Filter touch events in ExpandableView.
Because the actual height is the different as the laid out one, we
need to filter the touch events here.

Change-Id: I6abd3fb0fffe275c2b83e7c48df1dd866499a28c
2014-05-02 17:29:56 +02:00
Jorim Jaggi
59b5a356b8 Epic performance fix during animation.
Change-Id: I0a5627543a048cc5348f482ea3407676c9b42126
2014-05-02 16:46:02 +02:00
Jorim Jaggi
9cbadd3c08 Always use algorithm to set the children height.
This makes possible to animate between different children heights
between the states.

Change-Id: I5d74814a84c7ff5406481c3ab0553530ee20997b
2014-05-02 16:15:42 +02:00
Jorim Jaggi
98fb09c2b2 Fix animation play time, animation and alpha.
Change-Id: Ib5f0a7880473930da3db70fcbd8c4e620f267cf8
2014-05-02 16:15:12 +02:00
Jorim Jaggi
864347ae94 Update panel height when stack scroller padding is updated.
Change-Id: Ib894c084fb2b78f7227fda33559079ad4f7cbb55
2014-05-02 16:14:59 +02:00
Jorim Jaggi
0dd6881ea4 Introduce animation for changing top margin.
Change-Id: I7f77a1c69efc2dca3e5a37e7d6fc497ae487ec46
2014-05-02 16:14:49 +02:00
Jorim Jaggi
4222d9a7fb Change interaction for dragging down to full shade.
Starts expanding the card if it is expandable. If it's not, we
rubberband the expansion a lot. After the threshold has been reached,
we scale all the notifications up and make it fully white and opaque.

Change-Id: I9ecd020ca263b0f84e87fd6ab2332519ac5e9984
2014-05-02 16:14:38 +02:00
Jorim Jaggi
ecbab3662d Introduce SHADE_LOCKED as a special state for the shade.
This state can be either reached by tapping the more card or dragging
down on any card. In this state, the shade is fully interactive, but
the phone is stil locked. This state can only be enterred if
redaction is off but security is on. If redaction is on, we will show
the bouncer instead and go to the normal shade.

Bug: 14161523
Change-Id: I95ca0991745ffc11ed1028581e3da15265c12ae5
2014-05-02 16:14:26 +02:00
Jason Monk
434bdf50b3 Merge "Add IME Switcher icon to Navigation Bar" 2014-05-02 14:04:52 +00:00
Jason Monk
f1ff209523 Add IME Switcher icon to Navigation Bar
Adds button in the same location as the menu button and overrides
it when present.  The setNavigationHintIconHints lets it know when
the button should be shown.

Bug: 14257632
Change-Id: Ia80de7fd2390cd8b083e37cbe58b7ee53555e619
2014-05-02 09:39:41 -04:00
Christoph Studer
27364bc212 Merge "Fix notification visibility reporting" 2014-05-02 12:32:27 +00:00
Christoph Studer
037e34c823 Fix notification visibility reporting
Require the screen to be on for visibility reporting.

Change-Id: I600e2fa2861bddd41ab9f9f0f381d8b1c4946afa
2014-05-02 12:25:35 +02:00
Selim Cinek
97f1b8572f Merge "Removed always running preDrawListener" 2014-05-02 10:16:06 +00:00
Selim Cinek
1f553cfcf2 Removed always running preDrawListener
Replaced a always running preDrawListener with one which is just posted on
demand.

Change-Id: Ie7667302d848fe4a109c04dc91376f0b44d3acd3
2014-05-02 12:01:36 +02:00