Commit Graph

296667 Commits

Author SHA1 Message Date
Selim Cinek
5b5beb01dc Added appear and disappear animations for the shelf icons
The icons now animate in and out of the shelf nicer.
Also fixed that the regular animation was played when in the shelf.

Test: Add notifications, observe animation in statusbar
Bug: 32437839
Change-Id: Id003fee1508b8c18a933d38faf93541be21baffd
2016-11-28 13:44:35 -08:00
Selim Cinek
49014f8522 Implemented a nicer transition when the icons overflow
The overflowing icons are now represented as dots and
animate in and out nicer.
The shelf also animates much nicer from the regular statusbar
size if there are a lot of notifications.

Test: Add a lot of notifications, observe them nicely overflowing into dots
Bug: 32437839
Change-Id: I5906c076bbf5d48cbabdbacfd21234bed55c6caa
2016-11-28 13:44:34 -08:00
Selim Cinek
c40c79ac66 Added the possibility to animate X and refactoring
A viewstate can now animate its X value.
This also refactors the animation logic such that
an application when an animation is running will
update the existing animation nicely.

Test: manual, observe views animating in X
Bug: 32437839
Change-Id: Ic091d87e530af793281ca3f2b1e9370ff5dac236
2016-11-28 13:44:31 -08:00
Selim Cinek
d127d79231 Modified heads up experience
When dragging down, the shelf is now hidden behind the notification
until it was fully revealed once.

Test: Add heads-up, drag down on it.
Bug: 32437839
Change-Id: I85133855428777a606a3039e26acf53e6e63a3bb
2016-11-21 14:42:54 -08:00
Selim Cinek
25b5291e12 Fixed a bug with not-gone notifications
Notifications with a GONE parent broke the whole scrolling model.
The shelf is now always placed at the end instead and the number
of GONE views are measured.

Test: Add a group with a single notification and see that nothing jumps
Bug: 32437839
Change-Id: I27a8c0b46eb8f329f23ad46c3995a19fb839caff
2016-11-21 14:42:53 -08:00
Selim Cinek
eccb5de73c Adapted the animation to the full shade
The background and the shelf now animate properly on
the lockscreen when going to the full shade.

Test: Go to lockscreen from keyguard
Bug: 32437839
Change-Id: Idd7e8325cc91464ed9c943c5ae311576d8aaaebc
2016-11-21 14:42:53 -08:00
Selim Cinek
aa417dac58 Fixed the lockscreen positon with a single notificaton
The notification was wrongly pushed up on the lockscreen
if there was only a single notification.

Test: Add a single notification, observe that it's not pushed in.
Bug: 32437839
Change-Id: Ica6275d0efb18a0a39d943e874d464a86593d5b3
2016-11-21 14:42:52 -08:00
Selim Cinek
cafa87f91d Made heads up work again
Heads up notifications were completely broken before
with the shelf, but work better now.

Test: Add heads-up observe that it's visible
Bug: 32437839
Change-Id: I9ac08f4ea54a912efd53bb849b3223f534b76915
2016-11-21 14:42:52 -08:00
Selim Cinek
a686b2c9a9 Fixed the transformation into the shelf
The transformation was based on the intrinsic height but that doesn't
work since it can suddenly jump, i.e when swiping away the top notification.

Test: Add tall notifications, swipe top one away, observe no jumping.
Bug: 32437839
Change-Id: I68f83e167f73ca6c87a5838000b11029214e4ca3
2016-11-21 14:42:51 -08:00
Selim Cinek
9458b19f75 Used different curve for the icons when expanding
The icon animation has now a different interpolator when
expanding compared to when fully expanded. this makes sure
that its moving nicely linear when fully expanded, but in
an accelerate decelerated manner when not.

Test: Add notifications, observe interpolators
Bug: 32437839
Change-Id: I3efcaf54e012f8462bc21ff819903c22d8a1af21
2016-11-21 14:42:50 -08:00
Selim Cinek
0cfbef45f0 Refactored the stack animation logic
Animations are now also applicable to normal views
and are more modularly applied to specific stack
view states.

Test: Add notifications, observe animations
Bug: 32437839
Change-Id: I75ebf98657749b50d43c88c4c39c5d4c302b1280
2016-11-21 14:42:36 -08:00
Selim Cinek
c383fd0508 Refactored shelf transformation code to support animations
The shelf positions are now applied in each frame if there
is an animation in order to not have weird transitions
when a notifications moves in / out of the shelf.

Test: Add notifications, swipe one away see animation out of the shelf
Bug: 32437839
Change-Id: Ie50362c85ec2fb2a9822de6a387167913d7a58dd
2016-11-21 14:33:45 -08:00
Selim Cinek
48ff9b4833 Improved the transition into the statusbar
When expanding, the shelf now transforms into
the statusbar, providing a more seemless transition.

This also modifies the panel peeking:
previously the panel was always peeking right after a tap timeout
which would take the panel away from the users finger.
The panel is now only peeking when the user clicked on the bar instead.

Test: Add some notification and collapse the panel. Observe nicer transition
Bug: 32437839
Change-Id: I772f6684e1cee2004e9b366d203a5c5188af4a93
2016-11-21 14:33:44 -08:00
Selim Cinek
0242fbb9fd Adapted the icon transformation into the shelf
The transformation is now more refined.

Test: Add notifications, scroll
Bug: 32437839
Change-Id: I2d553b2305fae508d2eb94ca4cee18faa41815a1
2016-11-21 14:33:44 -08:00
Selim Cinek
ad7fac0659 Fixed the appearance of the shelf on the lockscreen
Previously the shelf algorithm wasn't applied properly
on the lockscreen.

Test: Add notifications, observe shelf on the lockscreen when collapsing
Bug: 32437839
Change-Id: I7c768e1450a86b5a8731c998ef58212550dfb4bc
2016-11-21 14:33:43 -08:00
Selim Cinek
281c202784 Introduced the Notification shelf
Started the implementation of a new notification
scrolling model that dynamically transforms notifications
into a new icon shelf.

Test: Add notifications, scroll!
Bug: 32437839
Change-Id: Ic28cc1c82f2cda2ffa7a312648903b5bc2408820
2016-11-21 14:33:40 -08:00
Selim Cinek
bbcebde5f4 Refactored the viewstates for more modularity
Viewstates are now much more independent of the
Stack scroller and can be used on their own.

Test: Add notification, everything still works
Bug: 32437839
Change-Id: I535ea9200dcaafef9eb833c2f0301cb09731542f
2016-11-21 11:55:29 -08:00
Philip P. Moltmann
76932df9ec Merge "Wait when other thread is binding to print spooler" 2016-11-21 19:21:24 +00:00
Jeff Tinker
66f6547ba9 Merge "Removing widevine classic" 2016-11-21 17:53:18 +00:00
Torne (Richard Coles)
2c0dc3e094 Merge "Precreate the classloader for the WebView." am: 566b1c80e4 am: 1feb782f01 am: 9565860b08
am: 7e17c6b0f1

Change-Id: Ie512327827e48319b3244a8d3041cb78538109d3
2016-11-21 17:18:55 +00:00
Torne (Richard Coles)
7e17c6b0f1 Merge "Precreate the classloader for the WebView." am: 566b1c80e4 am: 1feb782f01
am: 9565860b08

Change-Id: I070288a127cbaa08f05b49f66e23ea0ec298040b
2016-11-21 17:13:45 +00:00
Torne (Richard Coles)
9565860b08 Merge "Precreate the classloader for the WebView." am: 566b1c80e4
am: 1feb782f01

Change-Id: Iec0bf848e4c25afc6a6b9ee83339a03f314adee9
2016-11-21 17:08:46 +00:00
Torne (Richard Coles)
1feb782f01 Merge "Precreate the classloader for the WebView."
am: 566b1c80e4

Change-Id: Ic79079748dae515cb8d89ef99148755ac65f1d47
2016-11-21 17:04:22 +00:00
Treehugger Robot
566b1c80e4 Merge "Precreate the classloader for the WebView." 2016-11-21 16:54:53 +00:00
Jeff Sharkey
ca50c360bf Merge "Check provider access for content changes." 2016-11-21 16:19:43 +00:00
Ian Pedowitz
cd3672586e Merge "Revert "Lists returned from OS aren't mutable."" 2016-11-21 15:13:30 +00:00
Ian Pedowitz
4fe2517732 Revert "Lists returned from OS aren't mutable."
This reverts commit 97449fa389.

Bug: 33034458
Bug: 33032977
Bug: 27856974
Change-Id: If913e587ce4a48b9ed1c7c0a811bc39ce4e31d3c
2016-11-21 15:09:54 +00:00
Torne (Richard Coles)
3b6ca99b10 Precreate the classloader for the WebView.
We want to create the classloader for the WebView in advance in the
zygote so that it can preload Java and native code for its children, but
the zygote can't talk to the package manager (so doesn't have a
PackageInfo for the APK) and also doesn't have an ActivityThread, so
constructing a LoadedApk is difficult.

Instead, we use the fact that ApplicationLoaders contains a
process-global cache of classloaders for APKs, and prepopulate a cache
entry without constructing a LoadedApk. This requires making
ApplicationLoaders public. To calculate the correct library paths from
the information the zygote has, we reuse the logic in LoadedApk (which
is already public, and just needs a small change to allow a null
ActivityThread when checking for instrumentation).

The other parameters for classloader creation (target SDK, bundled app,
etc) are hardcoded to usable values for the WebView's case. WebView
never needs to use any system libraries that aren't public so claiming
it's not bundled is fine even when that isn't actually true, and WebView
will always target the current platform API level.

Once the classloader is created, look up the factory class and call
preloadInZygote on it to give it a chance to preload the native library
and do other shared initialisation.

Bug: 21643067
Test: enable multiprocess WebView, examine librank output to see sharing
Change-Id: I696ead637e3f7382bcc58cfaf61eac5921862015
2016-11-21 15:04:13 +00:00
Tobias Thierer
03c28084d5 Merge "API: Rename Collections.singleton*() type arg E -> T" 2016-11-21 14:33:53 +00:00
Tobias Thierer
be7e5900b2 API: Rename Collections.singleton*() type arg E -> T
This rename is part of the update of Collections.java to OpenJDK8u60.

This is compatible change because generic type argument names affect
neither compile time nor runtime compatibility.

The build system (incorrectly) flags this as a change to a released
API. Removing or changing released public APIs is infeasible on AOSP.
Therefore this change will remain restricted to internal branches
until the API is released.

Bug: 31902309
Test: make
Change-Id: I54bc3d6321429ff18c6057332b469286e8b1d42d
2016-11-21 11:45:27 +00:00
TreeHugger Robot
6b18e8f58c Merge "Import translations. DO NOT MERGE" 2016-11-21 07:26:08 +00:00
TreeHugger Robot
583727a345 Merge "Update the documentation related to VD / AVD" 2016-11-21 05:49:19 +00:00
Bill Yi
f3daae9a16 Merge "Import translations. DO NOT MERGE" into stage-aosp-master am: b9762351a3 -s ours am: 00544de5d0 -s ours
am: 059022bc1b  -s ours

Change-Id: Ie0f0b1e584527475c30aff1b45f957789b0cac14
2016-11-21 02:36:47 +00:00
Bill Yi
e291f00d8a Import translations. DO NOT MERGE am: 2bfcd92a56 -s ours am: c530f91d8d -s ours
am: b4013c83be  -s ours

Change-Id: Ib21972c9ae333143ce12e33e4f7175c799bcb69d
2016-11-21 02:35:46 +00:00
Bill Yi
9282876d7c Merge "Import translations. DO NOT MERGE" into stage-aosp-master am: 1ad0a421a6 -s ours am: c8d1cba0fa -s ours
am: 28345564b1  -s ours

Change-Id: I66f0140a84d555679c1f61df787dffc3128bb49f
2016-11-21 02:34:40 +00:00
Bill Yi
5f9416b379 Import translations. DO NOT MERGE am: e65b214f31 -s ours am: 584f7438ad -s ours
am: 31174c35f0  -s ours

Change-Id: I079e4f35c405cb614403de53284b4abfd447fd82
2016-11-21 02:33:31 +00:00
Bill Yi
cbae2ec617 Merge "Import translations. DO NOT MERGE" into stage-aosp-master am: 5770cc3c21 -s ours am: b712d61315 -s ours
am: 641a470843  -s ours

Change-Id: I7cf89e650005871658ae2247374ac95d62247206
2016-11-21 02:32:27 +00:00
Bill Yi
0522a57b4b Import translations. DO NOT MERGE am: de5a72d802 -s ours am: 1959d2182c -s ours
am: 8fb0ffb4d0  -s ours

Change-Id: I45f39dd9afc3ade0431550c20e6fa1efe907b8ad
2016-11-21 02:31:15 +00:00
Bill Yi
bfba02e23e Merge "Import translations. DO NOT MERGE" into stage-aosp-master am: dc92c70106 -s ours am: fb8a4d17c2 -s ours
am: e083c8ea88  -s ours

Change-Id: I9952e7ec17edfe7746c99dd5aa5e96c54e4ca100
2016-11-21 02:28:03 +00:00
Bill Yi
14c7b3a4dc Import translations. DO NOT MERGE am: 2a2e8ce297 -s ours am: 3ea5862bb1 -s ours
am: e71efd830b  -s ours

Change-Id: I78aff8732c8a3e9e581f08464f706441a4446c02
2016-11-21 02:26:57 +00:00
Bill Yi
ff78f44595 Merge "Import translations. DO NOT MERGE" into stage-aosp-master am: 81abcfea7b -s ours am: bb7bad413a -s ours
am: 44ceb0eef5  -s ours

Change-Id: I287d63ac13ab680e2c103262caac3ecf5b8435fe
2016-11-21 02:25:55 +00:00
Bill Yi
fc6a9e8226 Import translations. DO NOT MERGE am: 521b3d5259 -s ours am: db8719a721 -s ours
am: d19aba43cd  -s ours

Change-Id: I8a0451022b919ce20e19f1076e5759522c211596
2016-11-21 02:24:48 +00:00
Bill Yi
bac2ad743b Merge "Import translations. DO NOT MERGE" into stage-aosp-master am: f94b944f80 -s ours am: 56cfda2ed4 -s ours
am: b8953810e8  -s ours

Change-Id: I4da36c04729ebc2bdb3f9d18f473537adbd4828f
2016-11-21 02:23:42 +00:00
Bill Yi
b2b6691991 Import translations. DO NOT MERGE am: 149b6ede65 -s ours am: f4561d90dc -s ours
am: c2574b9ba6  -s ours

Change-Id: I5846a654d802435a00cdb0e8b034ff2111fbb8be
2016-11-21 02:22:39 +00:00
Bill Yi
059022bc1b Merge "Import translations. DO NOT MERGE" into stage-aosp-master am: b9762351a3 -s ours
am: 00544de5d0  -s ours

Change-Id: I6f8aabe8b93dd3a81f615bdc33cd7ce8997a65e8
2016-11-21 02:20:24 +00:00
Bill Yi
b4013c83be Import translations. DO NOT MERGE am: 2bfcd92a56 -s ours
am: c530f91d8d  -s ours

Change-Id: I10126d3aa1d2c315445a22059182d95c03f71520
2016-11-21 02:19:20 +00:00
Bill Yi
28345564b1 Merge "Import translations. DO NOT MERGE" into stage-aosp-master am: 1ad0a421a6 -s ours
am: c8d1cba0fa  -s ours

Change-Id: I485a1f07041a16db18feec8cc83b282363bec568
2016-11-21 02:18:15 +00:00
Bill Yi
31174c35f0 Import translations. DO NOT MERGE am: e65b214f31 -s ours
am: 584f7438ad  -s ours

Change-Id: I420d94ba079fa629dc1427b868a2633d98fd296a
2016-11-21 02:17:10 +00:00
Bill Yi
641a470843 Merge "Import translations. DO NOT MERGE" into stage-aosp-master am: 5770cc3c21 -s ours
am: b712d61315  -s ours

Change-Id: Ia30f6cfcc7f7aa54ce3dab4e0f6cdbc75f75204f
2016-11-21 02:16:11 +00:00
Bill Yi
8fb0ffb4d0 Import translations. DO NOT MERGE am: de5a72d802 -s ours
am: 1959d2182c  -s ours

Change-Id: Ic59f23548fff2936730508652c2175859871cb43
2016-11-21 02:15:10 +00:00