13200 Commits

Author SHA1 Message Date
Rakesh Iyer
df727cb559 Fullscreen user switcher layout tweaks.
The hard coded padding between the disclaimer text and
the UserGridView was causing troubles with smaller screen
sizes so use layout weights instead to achieve the same
results.

Bug: 26749378
Change-Id: I8a3b0784696ad14ec8f9f99a2af649f43d187307
2016-01-26 11:40:51 -08:00
Xiaohui Chen
0691703467 sysui: remove shelf
Bug: 26742568
Change-Id: I10bbf55b4b93fb5d360a56dcc59c943d8806a27e
2016-01-26 11:32:20 -08:00
Xiaohui Chen
e9dab0dade DO NOT MERGE sysui: remove shelf
Bug: 26742568
Change-Id: I36bd013c4adb62b76b6f2789aa490c1484a535d7
2016-01-26 11:31:51 -08:00
Jason Monk
69e76ccee7 Add user switcher back to QS
Change-Id: Ie3f8139782aee06ad932ded9145162de5e22a824
2016-01-26 11:03:16 -05:00
Jeremy Klein
0301cd9523 Merge "Expose a simple tethering API which includes provision checks." 2016-01-26 03:59:51 +00:00
Jorim Jaggi
50cd6361d7 Refine divider behavior
- Switch earlier to the dismissing/fullscreen layout, so
we minimize holes.
- For the bottom/right one, switch also earlier to the larger size to
minimize holes. We can't do this for the upper one because it will be
confusing there if the layout bounds doesn't equal the bounds while
snapping.

Change-Id: I8f065514f7aaa15ae76af648794ab8b23302e534
2016-01-26 03:19:15 +00:00
Jeremy Klein
36c7aa0325 Expose a simple tethering API which includes provision checks.
This CL exposes startTethering and stopTethering functions which also
encapsulate all provisioning check logic. Right now, only silent checks
are implemented, but UI checks will come in a follow-up CL. GTS tests
and Settings changes are under the same topic ID.

BUG: 26247383
Change-Id: I65f61d899594cb3f9035d8496366af17a57a090f
2016-01-25 16:37:09 -08:00
Winson Chung
2e0eef3e89 Merge changes I53b9dab1,If8a33073
* changes:
  Make mock tasks work again.
  Fixing layout issue causing overlay to sometimes not appear.
2016-01-26 00:16:06 +00:00
Jorim Jaggi
11cc01df27 Add animation when docking top task with long press
Change-Id: I7af4149f2c517e8d6ace22f1e49e319d2461503e
2016-01-25 15:54:38 -08:00
Youngsang Cho
6a00b709f9 Handle TaskStackListener.onPinnedActivityRestartAttempt in PIP system UI
Bug: 26452296
Change-Id: Ic828462dce0b6f88c9b00fac36ade5492cec94fb
2016-01-25 15:51:49 -08:00
Wale Ogunwale
cc25a8a24e Send notification we attempted to start an already running pinned acitvity
API will be used by Android TV sys-ui to decide what to do next with the
Pinned activity.

Bug: 26452296
Change-Id: I5411515d079468616422ba9e5093164a924cd6a2
2016-01-25 15:14:26 -08:00
Jason Monk
9a4ce137eb Add data saver tile
Bug: 22817899
Change-Id: I900f19cca54daabd45fe358ae4117d4f3e9ab824
2016-01-25 17:16:22 -05:00
Rakesh Iyer
2790a37e0f Move FullscreenUserSwitcher into car/
Move the full screen user switcher into the car/ directory
because it is only used there.

Bug: 26559008
Change-Id: I4f24b2029ed11be49a165be35e225e726677d37e
2016-01-25 13:00:20 -08:00
Jason Monk
d7ecd381e4 Merge "Re-add support for the app shelf" 2016-01-25 20:16:14 +00:00
Jason Monk
4f878ef5cc Re-add support for the app shelf
Accidentally broken as a part of tuner customization of the nav bar.
Now supported for inflation.

Change-Id: Id097fb48d1d77aa37518246cca8c7a9494de2af2
2016-01-25 15:15:24 -05:00
Wale Ogunwale
5a5877d52e Merge "Removed handling of layoutDirection configuration change" 2016-01-25 19:04:20 +00:00
Wale Ogunwale
133f299c16 Removed handling of layoutDirection configuration change
We thought this was required for resizing, but it isn't.

Bug: 26742139
Change-Id: I2b25ac8b188f8cafaf9d7472f79ca947cfe824c0
2016-01-25 10:49:13 -08:00
Winson
6e6bd8776f Make mock tasks work again.
- Rename it so that it’s a bit more clear that they are mock tasks.

Change-Id: I53b9dab1789a208e74538cd8c3ee4ec58cfa364f
2016-01-25 10:41:40 -08:00
Jason Monk
76c70c8f5c Merge "Fix crash on bug report" 2016-01-25 18:35:09 +00:00
Jason Monk
25d3a437d5 Fix crash on bug report
Bug: 26766534
Change-Id: I5b76ac8911eef960028cceb40e54f76ea998024a
2016-01-25 13:00:44 -05:00
Adrian Roos
4afbe99127 Merge "Improved trust error messaging (1/2)" 2016-01-25 17:20:11 +00:00
Chris Wren
77781d3aaa a step toward enforcing unique metrics log IDs
First of several change lists:
1. Add in the new proto (this CL)
2. Migrate the existing code over to the proto.
3. Remove MetricsConstants once it is unused.

Bug: 26442178
Change-Id: Ic24829246af8ec5b202e39a85960aac5cf336c33
2016-01-25 11:24:08 -05:00
Adrian Roos
c13723f22e Improved trust error messaging (1/2)
Tracks why trust agents are disabled and shows
a generic message on the keyguard. Dedicated strings
in follow-up.

Bug: 22704995
Change-Id: Ibb4fd9c9386c4dc12f0734004502b9a9cc6ded79
2016-01-25 08:04:42 -08:00
Sudheer Shanka
a9459755c6 Fix UserAvatarView.setDisabled method.
Currently, we grey out the icon only when setDisabled method is called
and the icon is not already disabled. This would be a problem, if the
drawable is updated again. Updated to change the disabled state of the
icon in onDraw.

Bug: 26737161
Change-Id: Id166c05c3be3b1ebd9320b8f75f25a5a5cd12210
2016-01-25 14:28:20 +00:00
Geoff Mendal
70d815eb64 Import translations. DO NOT MERGE
Change-Id: I6198abea42fededfce4ee9be2c7a88523ace87ca
Auto-generated-cl: translation import
2016-01-25 06:04:23 -08:00
Winson
3c107166fc Fixing layout issue causing overlay to sometimes not appear.
- We were incorrectly making calls that could request layout after the
  view was detached from the parent, causing a messed up 
  layout-invalidation hierarchy path.  Now ensuring that we always reset
  the view before detaching, and after attaching.  As a result of this,
  we need to ensure that the same optimization as before applies, which 
  is that children of TaskView don’t affect the relayout of TaskView.
  We do so by making TaskView a subclass of FixedSizeFrameLayout which
  only takes layout updates uni-directionally down the view hierarchy.
- This CL also fixes an issue with missing task bar buttons due to an
  optimization which did not update the visibility and translation of
  buttons if a view is laid out after the task view size has changed.
- Removing double measurement of TaskView sub-children
- Removing unnecessary invalidate after marking the thumbnail as 
  invisible

Change-Id: If8a330733941add1f4214af792227345d6a26309
2016-01-23 16:07:24 -08:00
Winson Chung
5bada6998d Merge "Fix issue with stack not invalidating when only focus state changes." 2016-01-23 01:54:59 +00:00
Selim Cinek
084c16b8b3 Fixed a clipping bug when expanding children notification
When children are expanded with a finger we still need to clip!

Change-Id: Ie66bb0ba690163bcabdc503a03f1e23869ec175d
2016-01-23 01:52:36 +00:00
Winson
1c8461402b Fix issue with stack not invalidating when only focus state changes.
- Adding callback to invalidate when focus state changes.
- Fixing issue where we were posting the invalidate, causing everything
  to lag by 1 frame
- Fixing issue where we weren’t passing the cancel-enter animation flag
  down when setting focused tasks

Change-Id: I218ec78dc0e4e22e59ffcef03a1bc91d08b7c18b
2016-01-22 15:29:00 -08:00
Michal Karpinski
727aa9c296 Merge "Logging of unlock attempts and device locking to security log" 2016-01-22 22:48:17 +00:00
Julia Reynolds
5971d553b5 Merge "Inline settings color changes." 2016-01-22 19:47:37 +00:00
Julia Reynolds
7727ad23b2 Inline settings color changes.
Bug: 26486314
Change-Id: I8c842081e544b05c6d88e99361426052c216d8f7
2016-01-22 14:38:46 -05:00
Winson Chung
1fedd8c8c9 Merge "Fixing crash with retrieving the first stack task." 2016-01-22 17:58:58 +00:00
Xiaohui Chen
8c24cc13b8 Merge "sysui: refactor PhoneStatusBar" 2016-01-22 17:47:19 +00:00
Winson
35a8b04140 Fixing crash with retrieving the first stack task.
- We should be retrieving the first stack task for calculating the 
  thumbnail transition, regardless of whether it is freeform or not.

Bug: 26739531
Change-Id: I27037a480201396011d7f9b8d094b4d9afe66f0e
2016-01-22 09:41:09 -08:00
Jason Monk
188908fc21 Fix home button
Change-Id: Ieafff8758340c1a434eed595ecb56415ed9ae62d
2016-01-22 10:24:04 -05:00
Jason Monk
a20818257e Make nav bar customizable through Tunable
Change-Id: I18c6bc3db1555ca8ec94f1ce594eb01158f32736
2016-01-22 09:47:08 -05:00
Michal Karpinski
779aad942f Logging of unlock attempts and device locking to security log
Bug: 22860162
Change-Id: Ice18a8f655030e52ae2d9e256b6120e5f87950c5
2016-01-22 11:15:34 +00:00
Youngsang Cho
60965d2271 Merge "Use ActivityOptions.setLaunchBounds to resize PIP" 2016-01-22 03:46:58 +00:00
Youngsang Cho
efbbd496f9 Use ActivityOptions.setLaunchBounds to resize PIP
Bug: 26574470
Change-Id: I5444ae40a51cf2746d78b4c006e5936c91d01ae4
2016-01-22 03:45:54 +00:00
Selim Cinek
5fbc632fef Fixed a bug where the wrong number of notifications were visible
Since the calculation of the number of notifications is dynamic now
it strongly depends on the notification min heights which are only
calculated once it is laid out.
This is now properly done.

Bug: 26480961
Change-Id: Ic7b270af826c28b4a9d2c08021605a5c9ae78860
2016-01-21 19:42:49 -08:00
Selim Cinek
7210947e0d Handling content intent of groups correctly
Content intent of children in groups can now
only be launched if the group is expanded.

Bug: 26582343
Change-Id: I5bf2c853d7659b4c764892409c6c7cc3fc647cc8
2016-01-21 19:42:49 -08:00
Selim Cinek
6183d12926 Fixed that music notifications were not clickable on lockscreen
On the lockscreen we were unintentionally disabling single clicks
on the media buttons while we only wanted to disallow it for the
notification header. This is now fixed by explicitly checking if
we are clicking on the notification header.

Bug: 26325096
Change-Id: I044f25ac3216b98c7769c31d09d19f801a437194
2016-01-21 19:42:49 -08:00
Selim Cinek
3bdbf28b49 Fixed the animation on the music template by introducing scale
The notification images can now animate in scale.

Change-Id: I7cc90e13f31208c76a490dd94a1ccbc05a4f8bd3
2016-01-21 19:42:49 -08:00
Selim Cinek
fa0a2d3d90 The notification content now switches earlier
The notification content visible is now based on the intrinsic
height of the view and not just the actual height anymore.
This allows notifications to switch earlier when clicking on
the collapse button.

Change-Id: Icdf4ea50a7b1bbb78bd57a9f1c3eea25cf9c8d7c
2016-01-21 19:42:49 -08:00
Selim Cinek
c848c3a1b4 Changed the work profile appearance
Change-Id: I0545ee9b18572b93f73b4cf54126cf03085b61b5
2016-01-21 19:42:49 -08:00
Selim Cinek
da6f1d605b Updated notification colors
Change-Id: I23ffc7325ec4947bb0e2d767d1e2ddbaa9b3f369
2016-01-21 19:42:49 -08:00
Selim Cinek
7b73a4c1d3 Fading out the divider now when removing children
Change-Id: I4466da4f82ae4868c6d0bd023a399c6067a9c3fb
2016-01-21 19:42:49 -08:00
Selim Cinek
9969559da0 Removed staggering animation with notification groups
It was more distracting than helping

Change-Id: I5a1110268d23d9f964ad515b6fff16cf9d9a4992
2016-01-21 19:42:49 -08:00
Selim Cinek
1b5f07d403 Fixed a bug where Sysui could crash
If no title was provided, SysUI could crash in a
group.

Change-Id: I9c40175b3e40410ce5b1e8fe1ef7e6c7124b0460
2016-01-21 19:42:49 -08:00