Commit Graph

18722 Commits

Author SHA1 Message Date
jackqdyulei
c48ea683eb Add tint for cast icon
Bug: 32592245
Test: Manual
Change-Id: I9893f308739594540baa1720b994403070eb2bd1
2016-12-05 10:00:40 -08:00
TreeHugger Robot
5ba211a6b8 Merge "Let lock icon reappear after fingerprint draw off" 2016-11-29 14:53:50 +00:00
TreeHugger Robot
8d86417c8e Merge "Fix scrim handling when dismissing Keyguard in occluded case" 2016-11-29 14:31:54 +00:00
TreeHugger Robot
d25cf04e98 Merge "Add explicit method to dismiss Keyguard" 2016-11-29 14:30:46 +00:00
Jorim Jaggi
e93698b8e0 Fix scrim handling when dismissing Keyguard in occluded case
Test: Manual, no security, Keyguard occluded, pull down shade,
press settings, ensure smooth scrim animation.
Test: Manual, with pattern, Keyguard occluded, pull down shade,
press settings, solve pattern, ensure smooth scrim animations.

Change-Id: I74e13844573e94d9fdc016ba33171c7c64a4f0f4
2016-11-29 13:14:28 +00:00
Jorim Jaggi
8dea48c87e Let lock icon reappear after fingerprint draw off
Test: Unlock with fingerprint, observe icon
Test: Unlock with fingerprint while collapsing panel, make sure
icon reappears after 800ms.

Change-Id: I8b081445bdaaa68741e4bab57a6f79f6e12f1d54
Fixes: 30507748
2016-11-29 14:12:09 +01:00
Michal Karpinski
c6b4d6d23c Merge "Strong auth timeout for trust agents" 2016-11-29 10:09:09 +00:00
Selim Cinek
0ec10ac7cf Merge changes from topic 'dyson'
* changes:
  Improved the transformation to an icon further
  Fixed a bug where the last notification could be invisible / faded
  Adapted the shelf color when transitioning
  Fully removed the bottom stack
  Fixed a bug where the first notification was cut off
  Fixed a a bug where clear all was invisible
  Fixed a flicker when expanding quicksettings on the lockscreen
  Added appear and disappear animations for the shelf icons
  Implemented a nicer transition when the icons overflow
  Added the possibility to animate X and refactoring
  Modified heads up experience
  Fixed a bug with not-gone notifications
  Adapted the animation to the full shade
  Fixed the lockscreen positon with a single notificaton
  Made heads up work again
  Fixed the transformation into the shelf
  Used different curve for the icons when expanding
  Refactored the stack animation logic
  Refactored shelf transformation code to support animations
  Improved the transition into the statusbar
  Adapted the icon transformation into the shelf
  Fixed the appearance of the shelf on the lockscreen
  Introduced the Notification shelf
  Refactored the viewstates for more modularity
2016-11-29 00:29:01 +00:00
Jean-Michel Trivi
1c94fdc469 Merge changes from topic 'a11yModal'
* changes:
  Javadoc and AudioManager update for A11Y stream
  Conditional behavior for a11y stream volume
2016-11-28 22:24:40 +00:00
Selim Cinek
875a3a11e2 Improved the transformation to an icon further
The content now shifts away more and without fading out.

Change-Id: I02b53400a68dc68ef49bc2bd830b51bced5a6ba1
Test: Add notification - test merging behavior
Bug: 32437839
2016-11-28 14:07:11 -08:00
Selim Cinek
938bdaa86e Fixed a bug where the last notification could be invisible / faded
if the last notification was small, it was already fading out in
the resting state.

Test: add a small notification without text and title and have it as
      last notification in the shade. Observe that it's not faded out.
Bug: 32437839
Change-Id: I4acd429e363185276fe1f472ecbeddae8f56e45a
2016-11-28 14:01:53 -08:00
Selim Cinek
f9bba0b0dd Adapted the shelf color when transitioning
The shelf now changes colors correctly when
transitioning between low and high-priority
notifications.

Test: manual, add low-prio notification
Bug: 32437839
Change-Id: Iab51f3f1b1b2f446b1c00c80ecabcc4b00b0064a
2016-11-28 14:01:34 -08:00
Selim Cinek
db16737031 Fully removed the bottom stack
Moved the ambient notifications into the shelf
instead of having them behave with their own
physics. Previously the ambient notifications
were stuck in the old world behind the shelf,
but this doesn't make sense anymore.

This also fixed a bug where the notifications were
wrongly positioned on the lockscreen since the shelf
counted as a view that wasn't gone.

Test: add low-priority notifications, observe scrolling
Bug: 32437839
Change-Id: I3921ea9f80a06f1b6330315423b012174269ac8e
2016-11-28 13:55:56 -08:00
Selim Cinek
2e5a3fac65 Fixed a bug where the first notification was cut off
When dragging down on the lockscreen, the first notification
would be cut off.

Test: drag down on a single notification on the lockscreen
Bug: 32437839
Change-Id: I4796661e63a94e598e5489377d7ecd67b35e6e88
2016-11-28 13:44:37 -08:00
Selim Cinek
c9c640fd86 Fixed a a bug where clear all was invisible
Test: add notifications, observe clear all
Bug: 32437839
Change-Id: I8e485d07b14b205d479594451f7dc998714d5b86
2016-11-28 13:44:36 -08:00
Selim Cinek
91d4cbae0a Fixed a flicker when expanding quicksettings on the lockscreen
The notifications flickered open when expanding quicksettings
on the lockscreen.

Test: add notifications (>4) expand quicksettings
Bug: 32437839
Change-Id: I12359ec374b281cb11816c7259c78715aedded43
2016-11-28 13:44:36 -08:00
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
Robin Lee
50a9ad2be8 Hide work messages even when main user isn't secure
For example if user 0 has no lock screen set, but the work user does,
and the "hide all notifications while locked" field is set, we should
hide those notifications because they are supposed to be hidden behind
the work lock screen.

Fix: 32585026
Test: statusbartest/NotificationTestList.java
Change-Id: I29243f683fd4ef2d5fc71a40cd1e37ee29c5679c
2016-11-28 15:14:19 +00:00
Jean-Michel Trivi
ac48767f91 Conditional behavior for a11y stream volume
VolumePolicy: define two a11y modes: 1/ legacy where
  a11y volume aliases to media volume, 2/ a11y where
  the a11y volume is independent from any other stream
  type volume.
Refactor accessibility service listening to accomodate
  communicating to the volume controller when the
  a11y service is running.
Make accessibility stream alias conditional on a11y
  service running. Reflect the behavior in the
  volume controller.

Test: enable Talkback and verify logs in Vol controller
Bug 30448020

Change-Id: I80535ba259a22b6d93e62a7b3ca462a19d4c84b7
2016-11-23 16:31:38 -08:00
Manu Cornet
e138bd1955 Change the task layout to better match mocks, add "in" animation
This only adds an animation when transitioning into recents. "Out"
animations will come later as they need to be run in parallel with
launching the activity not to introduce any latency.

Test: Open recents on sw600dp device, check recents layout/animations
Bug: 32101881
Change-Id: I367f8e5c106cd06d2a7833c165ecb960a7821ed9
2016-11-23 14:48:30 -08:00
Jorim Jaggi
241ae10b21 Add explicit method to dismiss Keyguard
The flag is a bit clunky for most cases, and a method is more
clear.

Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test
android.server.cts.KeyguardTests

Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test
android.server.cts.KeyguardLockedTests

Test: runtest systemui -c
com.android.systemui.keyguard.DismissCallbackRegistryTest

Bug: 30961403
Bug: 27422134
Change-Id: I39de90c7cfecd99350a74f72cd76418e337f2b79
2016-11-23 16:27:35 +01:00
Jorim Jaggi
3e416cf4a8 Merge "Fix Keyboard flicker" 2016-11-23 10:27:26 +00: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
Michal Karpinski
c52f867875 Strong auth timeout for trust agents
The fingerprint timeout tracking in KeyguardUpdateMonitor has been
extended with use of StrongAuthTracker.

Test: timeout will be CTS tested, testing of unlocking TBD
Bug: 29825955
Change-Id: I5cc49ef46631c412f2d1db88e68a308322b27027
2016-11-21 10:01:59 +00:00
TreeHugger Robot
a6b612fd82 Merge "Import translations. DO NOT MERGE" 2016-11-19 14:04:08 +00: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