Commit Graph

31445 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
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
TreeHugger Robot
a92257ed90 Merge "Import translations. DO NOT MERGE" 2016-11-19 15:02:54 +00:00
TreeHugger Robot
a6b612fd82 Merge "Import translations. DO NOT MERGE" 2016-11-19 14:04:08 +00:00
Bill Yi
85f9ccbf56 Import translations. DO NOT MERGE
Change-Id: Iadc470c8d2fc31553ded49bf89d85326fdcf1779
Auto-generated-cl: translation import
2016-11-19 05:00:57 -08:00
Bill Yi
873fb866b6 Import translations. DO NOT MERGE
Change-Id: I4d3552b93ea2105f454d6bb93517360a3aa5c615
Auto-generated-cl: translation import
2016-11-19 01:05:28 -08:00
Adrian Roos
f9d13f6d7a Doze: Add plugin hook
Test: mmm vendor/google_experimental/users/roosa/DozePlugin/
Change-Id: I7ea55954f0c07be932e8ee7037e03b7c01cc1108
2016-11-18 15:59:00 -08:00
Jeff Sharkey
40f92647ec Merge "Lists returned from OS aren't mutable." 2016-11-18 22:42:53 +00:00
Adam Powell
cd09af7282 Merge "Fix FragmentManager.FragmentLifecycleCallbacks scope" 2016-11-18 22:18:42 +00:00
Selim Cinek
b09087612f Merge "Share one receiver for CurrentUserTracker" am: 06d619ccfa am: a84c7ea396 am: 61e2ff5727
am: a1f9cd0ee6

Change-Id: Iffd6e087582c730323c7d9250cd3d5abba92015a
2016-11-18 20:11:21 +00:00
Selim Cinek
419fe69344 Merge "Brightness mirror - fix multi-touch issue" am: 1bfab3de31 am: 44857962dc am: 3212624a6b
am: a2ecf784dc

Change-Id: I8f9feab09979f78a79a24e106f2094349ab300d4
2016-11-18 20:10:20 +00:00
Selim Cinek
a1f9cd0ee6 Merge "Share one receiver for CurrentUserTracker" am: 06d619ccfa am: a84c7ea396
am: 61e2ff5727

Change-Id: I0d10e5142705810274e4677115bb4e249ad806f4
2016-11-18 20:04:25 +00:00
Selim Cinek
a2ecf784dc Merge "Brightness mirror - fix multi-touch issue" am: 1bfab3de31 am: 44857962dc
am: 3212624a6b

Change-Id: Ib473c039fd8392c8d43c0c1473f0c705c00b625e
2016-11-18 20:03:28 +00:00
Selim Cinek
61e2ff5727 Merge "Share one receiver for CurrentUserTracker" am: 06d619ccfa
am: a84c7ea396

Change-Id: I54ca8022b6aeb15329d7a432300eaa758ea4b8ac
2016-11-18 19:57:20 +00:00
Selim Cinek
3212624a6b Merge "Brightness mirror - fix multi-touch issue" am: 1bfab3de31
am: 44857962dc

Change-Id: Ie5f7a865b3ed1d17444b5133ad530ae6191294a9
2016-11-18 19:56:27 +00:00
Selim Cinek
a84c7ea396 Merge "Share one receiver for CurrentUserTracker"
am: 06d619ccfa

Change-Id: I4b0dc5398b0be804663ebd633070a38cc51ec7de
2016-11-18 19:51:23 +00:00
Selim Cinek
44857962dc Merge "Brightness mirror - fix multi-touch issue"
am: 1bfab3de31

Change-Id: I5906d89a1c4e1343dbdbf99f328a5356b4f2be85
2016-11-18 19:50:27 +00:00
Selim Cinek
06d619ccfa Merge "Share one receiver for CurrentUserTracker" 2016-11-18 19:39:30 +00:00
Selim Cinek
1bfab3de31 Merge "Brightness mirror - fix multi-touch issue" 2016-11-18 19:39:10 +00:00
Jeff Sharkey
97449fa389 Lists returned from OS aren't mutable.
Data returned via ParceledListSlice is a snapshot of data from the
system, and should not be mutated directly.

In particular, this can cause developer confusion if they call
Collection.remove(), which doesn't actually mutate the value in the
system.  There are other mutation APIs that developers should be
using instead, such as JobScheduler.cancel().

Test: builds, boots, common operations work
Bug: 27856974
Change-Id: I72528dee4d79e483aa295bd91d1ed80d0d72d21c
2016-11-18 11:06:06 -07:00
Maurice Lam
66549382f0 Merge "Fix TTS for GMT offset" 2016-11-18 03:36:52 +00:00
TreeHugger Robot
8068bfeae2 Merge "Doze: Fix WakeLock bug" 2016-11-17 20:57:33 +00:00
Adam Powell
74827260a8 Fix FragmentManager.FragmentLifecycleCallbacks scope
Static class is much more useful here.

Bug: 32938039
Test: n/a
Change-Id: I0010fde25e3b2a4f59b360c0035505c831c07c53
2016-11-17 12:20:26 -08:00
Pavlin Radoslavov
9cfb18a0ff Merge "Don't disconnect an A2DP device when connecting to same device" am: 3ebcf1218b am: c15cc348e8 am: ffb6a4beab
am: c51275a5e5

Change-Id: I26e97c6f6f13b5b37134763f95131e184530b3ad
2016-11-17 19:03:32 +00:00
Pavlin Radoslavov
c51275a5e5 Merge "Don't disconnect an A2DP device when connecting to same device" am: 3ebcf1218b am: c15cc348e8
am: ffb6a4beab

Change-Id: I2924dfe291a6a29620d4e22c47c32716516911e3
2016-11-17 07:22:23 +00:00
Pavlin Radoslavov
ffb6a4beab Merge "Don't disconnect an A2DP device when connecting to same device" am: 3ebcf1218b
am: c15cc348e8

Change-Id: I0754321d2e289b4c6d2d64a00d13a2d9c2bfcf1c
2016-11-17 07:16:13 +00:00
Pavlin Radoslavov
c15cc348e8 Merge "Don't disconnect an A2DP device when connecting to same device"
am: 3ebcf1218b

Change-Id: Ibbf94535642bbde6e35ee1dacbd27dd13f400f16
2016-11-17 07:07:20 +00:00
Pavlin Radoslavov
eb067ba741 Don't disconnect an A2DP device when connecting to same device
When processing a connect request for an A2DP device, Settings
would trigger a disconnect request for all A2DP devices that
have state of CONNECTED, CONNECTING or DISCONNECTING, including
eventually the device we are connecting to.
This could create timing-related issues, and is not necessary.
Now we explicitly check to avoid disconnecting the device we are
connecting to.

Test: Manual A2DP testing with a phone and wireless headsets
Bug: 32688022
Change-Id: I572dd87c071829b734513c4b928a4d65fe539520
2016-11-17 05:29:08 +00:00
Adrian Roos
ae0c5e8d2c Doze: Fix WakeLock bug
Change-Id: I3d687bbf82173723c420058867531a970d1f46cb
Fixes: 32857549
Test: runtest -x $(gettop)/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/DozeMachineTest.java
2016-11-16 20:15:09 -08:00
TreeHugger Robot
2ba9de340b Merge "Add a category key for development options." 2016-11-17 02:34:35 +00:00
dooyoung.hwang
e9556a89db Share one receiver for CurrentUserTracker
Each CurrentUserTracker has one receiver per one object.
This could cause unnecessary transaction as Tracker counts
increases. The idea of redcuing receiver is creating
one static receiver for CurrentUserTracker and share it
with all object.

Test: Check if Quicksetting order is changed properly
after switching user.

Change-Id: I8404829826391f8b315b42bbd0f50e77b783eeab
2016-11-17 09:47:28 +09:00
Fan Zhang
e9bb36caa6 Add a category key for development options.
Bug: 32623105
Test: RunSettingsLibRoboTests
Change-Id: I892385d3acf11c3d02df30a5cc9d73e3ecf8612c
2016-11-16 15:26:06 -08:00
Fan Zhang
5fa4af08c6 Remove tiles pointing to same intent within same category.
Bug: 32874082
Test: RunSettingsLibRoboTests
Change-Id: I155495882663ed60cbf21c9a5651709ac3cbd137
2016-11-16 12:40:35 -08:00