Commit Graph

1803 Commits

Author SHA1 Message Date
TreeHugger Robot
e52840449e Merge "More QS theme fixes for contrast" 2017-05-12 15:06:57 +00:00
Mady Mellor
d7637ece5c Merge "Remove PIP tuner items" into oc-dev am: 86339dc8ee
am: 2d11f63de9

Change-Id: I93aef75b94b56bfe2f31958c373a44582df0ec02
2017-05-11 06:56:39 +00:00
Mady Mellor
4cb14eeab8 Merge "Slight adjustments to gradient shown when dragging to dismiss" into oc-dev am: 1eeeba6af6
am: ab1a61952f

Change-Id: If0afd973763dee805be2f63a571d79adba9ecd1b
2017-05-11 06:40:01 +00:00
Adrian Roos
25664896dd Merge "AOD: Notification groups on Ambient Display" into oc-dev am: bafe438d71
am: ec9559ddc6

Change-Id: I176adacd40cce9d0b321501e8fe8d29f1168f0d5
2017-05-11 04:34:09 +00:00
TreeHugger Robot
86339dc8ee Merge "Remove PIP tuner items" into oc-dev 2017-05-11 01:13:48 +00:00
TreeHugger Robot
1eeeba6af6 Merge "Slight adjustments to gradient shown when dragging to dismiss" into oc-dev 2017-05-11 00:39:08 +00:00
Mady Mellor
d3e90ea4ab Slight adjustments to gradient shown when dragging to dismiss
- Adjusted the height
- Gave the asset a 90% alpha and set it as the background programmatically

Test: manual, have a PIP drag it around, note the gradient appearance
Change-Id: I7bc3262f6813f737da62201cdce6a14046f3e754
2017-05-10 14:25:01 -07:00
Mady Mellor
8c7dc429b5 Remove PIP tuner items
Test: Check tuner for items, also try moving PIP around note it doesn't
      minimize, also try long drag to dismiss, note it doesn't dismiss
Bug: 37476193

Change-Id: I1ac1abd9c75d40bd84f59dab8aba5cdb98cd59bb
2017-05-10 12:55:39 -07:00
Adrian Roos
bafe438d71 Merge "AOD: Notification groups on Ambient Display" into oc-dev 2017-05-10 18:17:44 +00:00
Jason Monk
4c1e9a2fc8 More QS theme fixes for contrast
Test: visual
Change-Id: I4494e92ebf79bbc20c30a18f5ac13228801a3e54
Fixes: 37443237
2017-05-10 13:06:35 -04:00
TreeHugger Robot
d74dedc24a Merge "Rounded corners support, off by default." 2017-05-10 14:25:59 +00:00
Julia Reynolds
c12676b449 Update zen introduction text
And add alarm text to QS & volume dialog.

Fixes: 31533768
Fixes: 33815404
Test: manual
Change-Id: I82f119a8bdbfbc62b0ace752dca0fbc0d5bf8a35
2017-05-10 14:16:41 +00:00
Jason Monk
d4afe152bf Rounded corners support, off by default.
Test: runtest systemui
Bug: 33208650
Change-Id: I63e11e36268e277cc1c5e70651fa5248aa8b3fc0
2017-05-10 08:27:34 -04:00
Adrian Roos
6f6e159484 AOD: Notification groups on Ambient Display
Bug: 36690937
Test: receive notification group on ambient display
Change-Id: I9dd91b85432e3d4309e0eb78a7b03ada87c3554e
2017-05-09 17:02:25 -07:00
Anthony Chen
e63854a7bc Merge "Allow notification expansion to be toggleable." 2017-05-09 21:58:07 +00:00
TreeHugger Robot
7db8419ee3 Merge "Early version of new volume + power menus" 2017-05-09 20:02:39 +00:00
Geoffrey Pitsch
5bc430556d Remove period in Notification Inline secondary text.
Bug: 38115976
Test: manual
Change-Id: I1fb453e8a3d5f2906c07878423fa32d8bfca67c2
2017-05-09 17:08:56 +00:00
Anthony Chen
6bf88a01d7 Allow notification expansion to be toggleable.
Android Auto does not want notificaitons that have actions to be
expandable. Rather, they should always be in their expanded state. The
only exception to this are grouped notifications, which should be
collasped by default. They also can still be expanded.

Modify the code to allow this to be changed. In addition, modify some of
the animation so that the dividers so not flash when the notification
group is expanding.

There is also a change to bring the header of the notification to the
front so that the child notifications do not overlap it. This is because
in Auto, the app name and icon are not displayed in the header, but the
expand button is still there.

Test: booted on phone and Android Auto headunit.
Bug: 33210494
Change-Id: I0a121a0eaee6159ccea9961721abe92603484a17
2017-05-08 15:58:47 -07:00
Jaewan Kim
36b01e6429 Merge "TV PIP: Fix broken TV PIP" into oc-dev am: 2e0d455177
am: 84744bdae2

Change-Id: Ic3d5d6f34a5ee9ddd231efc973576b57394b281f
2017-05-08 22:47:37 +00:00
TreeHugger Robot
2e0d455177 Merge "TV PIP: Fix broken TV PIP" into oc-dev 2017-05-08 22:26:18 +00:00
Jason Monk
395617fd35 Start drawing QS slashes rather than using AVDS
These need a bit more work like length control and animations, etc.
but this is a decent start.

Test: visual
Change-Id: I750d777b2b4a19f8c586066712f5a3f7e79befd6
2017-05-05 14:25:43 -04:00
Dianne Hackborn
1391e2348b Merge "All kinds of little foreground services fixes." into oc-dev am: 525044e987
am: 596fc8b8d4

Change-Id: I79d7fc47855bdf0043d770b0a59a704260aa55e7
2017-05-05 09:13:24 +00:00
Dianne Hackborn
4ae51e09d8 All kinds of little foreground services fixes.
- Better explanations of some strings.
- Fix to use the right package when an item is pressed in
  the foreground services dialog.
- Improve java docs on Service.startForeground().

Bug: 37925387
    735566 lv - Android - [Source] Context unclear or missing:
    Apps running in background
Bug: 37925888
    735566 lv - Android - [Source] Context unclear or missing:
    Tap for details on battery and data usage
Bug: 37897953
    735566 gl - Android - [Source] Context unclear or missing:
    LEFT_SIDE, RIGHT_SIDE
Bug: 37943079
    Music is dying mid playback

Test: manual
Change-Id: Ied41932c61f59335bd18dfba3fcb13af28a0bddd
2017-05-04 23:31:33 -07:00
Jaewan Kim
26c6356397 TV PIP: Fix broken TV PIP
Bug: 37249867
Test: Manual test (checked that the notification UI is shown when the
    PIP starts, and dismissed when the PIP is closed. The 'DETAILS' and
    the 'DISMISS' button in the notification also worked.)
Change-Id: I12e385b51f834991a0115ce5ba7dd98180577adb
2017-05-04 16:16:38 +00:00
Adrian Roos
600b64acd0 Merge "AOD: Increase shelf icon size while dark" into oc-dev am: f852ed40a6
am: b1539f82f5

Change-Id: Id3469ac59c9799160eca2034ec42e029b967d00b
2017-05-01 23:27:13 +00:00
TreeHugger Robot
f852ed40a6 Merge "AOD: Increase shelf icon size while dark" into oc-dev 2017-05-01 23:11:53 +00:00
Dianne Hackborn
8a40a4ca27 Merge "Work on issue #36891897: Need to ensure foreground services can't..." into oc-dev am: f1a4b50739
am: a766f1d1ec

Change-Id: I82c6b62af3d4eddbd4e97c83b2bb7d4a1657c63d
2017-04-30 17:44:10 +00:00
Dianne Hackborn
83b40f69be Work on issue #36891897: Need to ensure foreground services can't...
...hide themselves

The activity manager now keeps track of all apps that are running
foreground services and builds a notification showing them to the
user.  We ensure they are shown to the user for at least 30 seconds
(configurable).  If foreground services are executed while the
screen is off, their apps will be shown to the user for at least
30 seconds after the screen turns back on.

While doing this I am also adding a new process state to distinguish
between "important background" stuff that should bypass bg check vs.
ones that don't.  By default, these now no longer bypass bg check,
which is really the expected (and documented) behavior.  There is a
new bind flag to allow them to bypass bg check, which is currently
only used by the IME.

Also add some new job scheduler commands that will be used to
write new tests cases for jobs timing out.

Bug: 36891897

Test: manual

Change-Id: Ied3f7b56444254513fd776f06b88bc0e54704958
2017-04-29 19:41:12 -07:00
Adrian Roos
138f034377 AOD: Increase shelf icon size while dark
Bug: 37640299
Test: Trigger ambient display, observe that shelf icons are 20dp
Change-Id: Ib096cac8c217d5296e60ef7894831f560f26c22a
2017-04-28 16:50:04 -07:00
Zachary Iqbal
8f4c2426f6 Added indication text stubs for changes to trust.
Notes:
- Subclasses of KeyguardIndicationController can now provide indication text to be displayed when trust has been granted.

Test: runtest sysui
Bug: 37487319
Change-Id: I030954d51a5c3000c45e465fcd261e4887520aa6
2017-04-28 13:39:50 -07:00
Jason Monk
16fbd9dd1d Early version of new volume + power menus
Still needs a bunch of code cleanup, but this will get a version
into the tree for testing.

Test: visual
Bug: 37013646
Change-Id: I29800b57d80ea120c691663392f368c17325ab54
2017-04-28 14:56:12 -04:00
Anthony Chen
078aad71cb Merge "Allow the width of the notification panel to be adjusted separately from the quick settings panel." 2017-04-27 00:12:56 +00:00
Mady Mellor
4ff13244a3 Merge "Add ability to fling to dismiss PIP from anywhere" into oc-dev am: ddb460c18f
am: 1534d44e3f

Change-Id: I5c80a6abbc6713b2c862e50ec8894ca6f875a429
2017-04-26 21:05:35 +00:00
TreeHugger Robot
ddb460c18f Merge "Add ability to fling to dismiss PIP from anywhere" into oc-dev 2017-04-26 20:52:02 +00:00
Anthony Chen
04d1ea759d Allow the width of the notification panel to be adjusted separately from
the quick settings panel.

Also, introduce the option to allow the clipping that the panel by
default does to be disabled. This allows the items in the panel to be
swiped beyond the edges of the panel.

Test: booted up on AAE headunit and Angler device.
Change-Id: I8d8f501f98fea5c1c85541099df4ca34d10fc648
2017-04-26 11:47:44 -07:00
Adrian Roos
8955d62868 Merge "AOD: Remove wake up fully config flag" into oc-dev am: ce83c81b84
am: 95c71928fd

Change-Id: I1d34072cf451c80f414b9cc06a5af4d391c5220f
2017-04-26 17:38:00 +00:00
Adrian Roos
60a7739798 AOD: Remove wake up fully config flag
Fixes: 37270258
Test: Double tap, make sure device does not wake up to lockscreen, only to ambient display
Change-Id: Iaf0c3bfb5dcf566adae7f37b51c866d92bce7a1d
2017-04-25 14:28:41 -07:00
Mady Mellor
47ba140cbf Add ability to fling to dismiss PIP from anywhere
This is by default turned off and is behind a tuner flag.

Allows the PIP to be dismissed if it is flung towards the bottom center
of the screen and the finger is released within the bottom area of the
screen.

Test: Manual - enable tuner setting, have a PIP, position it at top of
      screen, long- fling it towards bottom center of screen, it dismisses.
Bug: 35358628
Change-Id: I2d3d50093f6523c7bb321e0486dab360095a398e
2017-04-25 12:08:08 -07:00
Charles He
78f3c385ca Merge "Merge "Add a11y voice for the VPN icon in status bar" into oc-dev am: 274442e334" into oc-dev-plus-aosp
am: 59179b499a

Change-Id: I6ce10b08136f3ed9615897237a1404fa6400fb50
2017-04-24 21:12:58 +00:00
Jason Monk
44b9fa6ff2 Merge "Merge "Fix QS size on 320dp with big fonts" into oc-dev am: 5667b6ba1d" into oc-dev-plus-aosp
am: d6b13bc235

Change-Id: Ie54e2c3f63e250061acdce98dd29ea33e8764afc
2017-04-24 20:20:08 +00:00
TreeHugger Robot
274442e334 Merge "Add a11y voice for the VPN icon in status bar" into oc-dev 2017-04-24 15:14:12 +00:00
Jason Monk
5667b6ba1d Merge "Fix QS size on 320dp with big fonts" into oc-dev 2017-04-24 13:20:41 +00:00
Andrii Kulian
44118a5391 Merge "Don't put non-resizeable activities on secondary displays" into oc-dev am: b216d0f09f
am: 9ca1490cbe

Change-Id: Id1ddad10cf696e96d556fb2a77f8ee6458f384a0
2017-04-22 01:13:56 +00:00
Andrii Kulian
b216d0f09f Merge "Don't put non-resizeable activities on secondary displays" into oc-dev 2017-04-22 00:59:39 +00:00
TreeHugger Robot
e4bd13f845 Merge "Update fullscreen user switcher on the lock screen." 2017-04-22 00:14:11 +00:00
Rakesh Iyer
5b3278f614 Update fullscreen user switcher on the lock screen.
The older implementation didn't scale well with an
increasing number of users, it just kept making the
user pods smaller and smaller. Replace the custom
GridView with a custom ViewPager with a paging
indicator.

Also remove all the text from the screen since we
don't need it anymore.

More changes to follow.

Bug: 36454400
Test: Created more users than can fit on one screen,
      booted up and switched between the users.
Change-Id: I6de323fbaa6bc4cefc2bdb73a4c68c4f092a08a6
2017-04-21 15:20:37 -07:00
Charles He
ce28b3838c Add a11y voice for the VPN icon in status bar
Bug: 37530860
Test: Enable Talkback and highlight the VPN icon
Change-Id: I8c63493b168b40e048b67950e5ed487e95bfb5f5
2017-04-21 20:15:09 +01:00
Anthony Chen
9fe1ee7413 Allow clipping of notifications to be toggled.
There are two clippings being changed. The first is the shrinking of the
height when a notification is being scrolled offscreen. This effect is
not noticeable on phones/tablet, where the background is a rectangle.
However, for Android Auto, the background is a rounded rectangle. By
allowing the clipping to be disabled, the notification now appears to
scroll off-screen and not that its height is shrinking.

The second modification is to allow the outline of the notification to
have rounded corners. This allows the outline to clip its contents along
the rounded edges.

Test: booted up on phone and Android Auto headunit
Bug: 33210494
Change-Id: Id41a57c9164cabe554b4c5b4d713e9d3cb805b09
2017-04-21 10:41:10 -07:00
Jason Monk
290a4199c7 Fix QS size on 320dp with big fonts
Test: visual
Change-Id: Id87425ba06962c4028374fdb71f2b996a4e966aa
Fixes: 37561810
2017-04-21 11:52:04 -04:00
Anthony Chen
0f6e96c1ab Modifications to allow notification header to be customized.
Changes include:
- Allowing the margins between header items to be customized.
- Allow expand button to be laid out at the end of the header view.
- Ensure the media header height can be customized.
- Allow entire header to be clicked to expand the notification rather
than just the notification button.

Also, fix how the color is resolved from the header. It currently checks
the color directly on the expand button. However, this color can simply
be retrieved by the header's getOriginalNotificationColor() method.

Test: booted on phone and Android Auto headunit
Bug: 33210494
Change-Id: I4bb3ff42d23b44de28dc1196799a7c3bda40bbac
2017-04-20 17:14:13 -07:00