Commit Graph

529 Commits

Author SHA1 Message Date
Jason Monk
44ad61f06e Clean up some QS user switcher colors
Change-Id: Ie6699f3cede075ee22997440c716138402840587
Fixes: 34775035
Test: visual
2017-03-16 12:45:48 -04:00
Sid Soundararajan
7616234117 Merge "RecentsTV : Remove all Recents TV Code" 2017-03-13 17:44:55 +00:00
TreeHugger Robot
b6c6eaf8d4 Merge "Updating expanded PiP menu." 2017-03-10 00:17:42 +00:00
Winson Chung
e7a3d2225c Updating expanded PiP menu.
- Adding consistent scrim behind menu
- Tweaking icon/button sizes
- Updating the expand button depending on the current placement of the PiP
- Better centering of the expand button

Bug: 35358425
Test: Expand pip
Change-Id: I34575bb08d4815f51b6f14f8b0e25b20b9a97320
2017-03-09 14:46:05 -08:00
Adrian Roos
5602189a6d AOD: Show charging status on AOD1
- Change PowerManager to not turn on display when on AOD
- Add charging icon to AOD1
- Add transient charging indication when plugged in

Bug: 30876804
Bug: 35850304
Test: runtest systemui; enable AOD, plug in phone, verify charging indicator shows, verify charging text shows and goes away after a few seconds
Change-Id: Icb80843a12c56c7e2abeca78115a366b4d508d4f
2017-03-09 14:31:24 -08:00
Sid Soundararajan
0e88d32b96 RecentsTV : Remove all Recents TV Code
This patch will remove the Recents TV Code from SystemUI.

Test: To test this removes the Recents Feature and has no
side effects, try to launch recents with long-press HOME. This
should result in launching the phone version of recents.

BUG: 36035359
Change-Id: I9026b480968575ce08e1ce344512f168fdc5fe87
2017-03-08 16:19:04 -08:00
Mady Mellor
a7f69740b5 Update how PIP size is determined
- minSize = 108dp
- defaultSmallestEdge = max(23% of screen width, minSize)
- the shortest edge of the PIP should be minSize and the rest scales
  according to the aspect ratio
- rather than a default PIP size, use default aspect ratio
- adding expand button
- fitting actions to spec

Fixes: 35358504
Test: manually used test app to try different aspect ratios
Change-Id: Ib6890fb7824889b9edeea7efb5b9771e64fc1514
Signed-off-by: Winson Chung <winsonc@google.com>
2017-03-06 16:39:11 -08:00
Jason Monk
e5b770e47d Updated QS UI
- Adds footer to QS which contains the date/alarm info
   and all touch targets (settings, edit, etc.)
 - Swaps out emergency + carrier text on cell tile for a
   standard CarrierText from lock screen in the header
   to make the header only contain status info.
 - Add dividing line
 - Work on animations

Test: runtest systemui
Change-Id: I97dfea1b1ea7006b53eb61ac3a1f942c64dd282d
2017-03-04 20:02:09 -05:00
TreeHugger Robot
2a434d17b1 Merge "Remove tint from network logging icon" 2017-02-27 18:24:10 +00:00
TreeHugger Robot
eba6e6c7dc Merge "Move the lock item for the QS WifiPicker." 2017-02-27 18:04:06 +00:00
Robin Lee
8b371480d3 Remove tint from network logging icon
Mirrors the change in commit 3250885c9f
("Visual refresh for QS") which removed tint from all ic_qs_xyz.xml
icons for quicksettings.

This one was missed because it was committed to nougat-mr2-dev and
only merged into the development branch afterwards.

Change-Id: I603c31aa82e9d52925fbe06d02a620036d93056e
Fix: 35620542
Test: adb shell am start 'android.app.action.SHOW_DEVICE_MONITORING_DIALOG' on a device with network logging enabled.
2017-02-25 01:15:19 +00:00
Jason Monk
58be7a675b Add colorError
Remove scatered references to old error color and replace them with
references to new colorError

Test: make & visual
Change-Id: Icca8cd790db351c3dfce2197f2046879d062a2c0
2017-02-24 14:57:27 -05:00
Jason Monk
ab9ab96d0d resolve merge conflicts of 1723bc14eb to stage-aosp-master am: 4f458421b1
am: eac19cd55d

Change-Id: Iec06900eba071a56696a1c240b79f0dd7ab05d70
2017-02-24 15:27:47 +00:00
Jason Monk
4f458421b1 resolve merge conflicts of 1723bc14eb to stage-aosp-master
Change-Id: I11054806dbd263b2adaedb21458c33b7407bb7d6
2017-02-24 09:34:42 -05:00
Jason Monk
543947ba53 Merge "Update clipboard icon for the tuner" 2017-02-23 20:17:52 +00:00
Evan Laird
8b72643b12 Fix qs_signal icon clipping
Test: visual
Change-Id: If212eefc9303590b7168432120c46bf07ac184d1
Fixes: 34799892
2017-02-23 15:00:46 -05:00
Jason Monk
79f21a3f41 Update clipboard icon for the tuner
Change-Id: Ie8ff3e6d87afbbd09efe8f529756710f6a61da6e
Fixes: 35707044
Test: visual
2017-02-23 12:52:32 -05:00
Kenneth Westin
5c88ffb507 Data activity icon in statusbar
Display data activity icon for Wi-Fi and mobile data
respectively in statusbar

Bug: 30849089
Test: manual - go to Settings > Developer options > Demo mode and then
               enable both "Enable demo mode" and "Show demo mode"

Change-Id: I16e880ffb97666a6c6507b9cc8c99bf580972207
2017-02-23 13:08:16 +09:00
Jason Monk
324b8867e4 Add ongoing notification for instant apps
Show a BTW notification when instant app is top of either of the
stacks.

Bug: 35152138
Test: Open ephemeral app, look at notifications.
Change-Id: Id992dd893a6632e9b95948a9e11167762f42bc49
2017-02-16 17:20:02 -05:00
TreeHugger Robot
1fad70afd3 Merge "Various QS fixes and cleanup" 2017-02-16 01:05:48 +00:00
Jason Monk
f13413e2f3 Various QS fixes and cleanup
Test: runtest systemui
Change-Id: If87f58f2af00b23c5e1a8e38a63a6a63d903002c
2017-02-15 17:48:27 -05:00
Jason Monk
790442e4cd Tuner updates
Some UX updates to the tuner to feel better and align with settings
UX patterns.

Test: visual
Change-Id: I9c57194b9649c61e0d6d3f9e21a51d9c4a5c1286
2017-02-15 13:35:00 -05:00
Sundeep Ghuman
ff0f108681 Move the lock item for the QS WifiPicker.
This matches the new Wifi Picker style used in WifiSettings.

Bug: 35164592
Test: See screenshot in comments
Change-Id: I6b1203adf4b217071510b3411aadc3f38f2650d6
2017-02-13 12:58:18 -08:00
Jiaquan He
41b8a3af18 2D Recents: Fix the thumbnail radius. am: 083c6fbbd0
am: 5207be100b

Change-Id: Ic2912d940a877730165a8188ca39ada17ebfa540
2017-02-08 01:02:05 +00:00
Jiaquan He
5207be100b 2D Recents: Fix the thumbnail radius.
am: 083c6fbbd0

Change-Id: I93ff98979bcffa0c3724807ec9caac8f39025fa6
2017-02-08 00:06:22 +00:00
Mady Mellor
d4e40fb097 Update the drag to dismiss UI to be closer to design
Rather than a circular target for drag to dismiss, there is text / icon
as well as a gradient. As the PIP approaches the text / icon they grow
in size. If the PIP is released overtop of the text / icon, it is
dismissed.

Test: Using PIP test app, have a PIP, drag it to dismiss target area.
Change-Id: I339ad14e144dfd61f0e990ba4d2559642a47b141
2017-02-02 11:08:26 -08:00
Jiaquan He
083c6fbbd0 2D Recents: Fix the thumbnail radius.
Changes the task thumbnail radius to 4dp.

Test: Checked that Recents task thumbnail radius is changed to 4dp on
local sw600dp device.
Bug: 32101881
Bug: 34746192

Change-Id: I1e950d305ed5edf7da577a8f05cf6005b4405205
2017-01-27 11:09:07 -08:00
Jason Monk
f58cc5768a Add separate roaming icon for status bar + QS
am: f62e889394

Change-Id: I065c6420e0ed379f44d7789e77590e5a39c2a5ec
2017-01-27 15:14:53 +00:00
Jason Monk
f62e889394 Add separate roaming icon for status bar + QS
Now data + roaming will be shown at the same time.

Test: runtest systemui
Bug: 31205845
Change-Id: I8fe167a0909c952ad0824e24e178857df2541554
2017-01-26 13:48:16 -05:00
Jason Monk
0f0de13c37 Add separate roaming icon for status bar + QS
Now data + roaming will be shown at the same time.

Test: runtest systemui
Bug: 31205845
Change-Id: I8fe167a0909c952ad0824e24e178857df2541554
2017-01-26 10:04:32 -05:00
Jason Monk
9726bcabb4 Merge "Tuner: Nav bar tuner" 2017-01-26 02:23:06 +00:00
Mady Mellor
04d7a0fca0 Add snooze to notification menu row
Moves the snooze plugin code into system UI.
Does not include assistant suggestions.

Test: manual
Change-Id: Ie2c51d65381530c9a72cd8a871efdbf0d63da490
2017-01-25 13:43:09 -08:00
Jason Monk
ea05f87b25 Tuner: Nav bar tuner
Usable edition.

Test: Manual
Change-Id: I20ec31560b89df8ded089974b7da1b60423cdb8b
2017-01-24 19:43:36 -05:00
TreeHugger Robot
171a0abae4 Merge "Fixes for new QS" 2017-01-24 22:58:08 +00:00
Jason Monk
b595098185 Fixes for new QS
A bunch of small cleanup for the new QS.

Change-Id: If0a5efe67366a4288f72cb91d32f5e20a4d4d6ca
Test: visual
Fixes: 34665057
Fixes: 34658107
Fixes: 34644473
2017-01-24 16:25:59 -05:00
Julia Reynolds
dbfb40f163 Optionally show accessibility stream volume row.
Bug: 30448020
Test: manual
Change-Id: I86a28c7a900d1fbc378f0ce4c113d59353bcb416
2017-01-24 16:27:23 +00:00
TreeHugger Robot
9553a1ecc2 Merge "Visual refresh for QS" 2017-01-20 18:08:53 +00:00
Jason Monk
3250885c9f Visual refresh for QS
Adds circles and things

Test: visual
Change-Id: I7d974fcfe6257357abfd1a7d0ee521f0e6cee588
2017-01-20 11:29:25 -05:00
Jiaquan He
0dd94210ee 2D Recents: round task thumbnails properly.
am: 90f4f5290b

Change-Id: Ice4ac5f7e32e9d209af2bec53530d8f425609ca2
2017-01-20 04:26:40 +00:00
Jiaquan He
76b2e0a21a 2D Recents: round task thumbnails properly.
Test: Checked that on local sw600dp devices, task views are rounded with
8dp. Also checked that Recents works properly on phones.
Bug: 32101881

Change-Id: I6f7a09a12c3e3f1f7270bed1ae25b291fadfb8f2
2017-01-19 16:39:11 -08:00
Jiaquan He
90f4f5290b 2D Recents: round task thumbnails properly.
Test: Checked that on local sw600dp devices, task views are rounded with
8dp. Also checked that Recents works properly on phones.
Bug: 32101881

Change-Id: I6f7a09a12c3e3f1f7270bed1ae25b291fadfb8f2
2017-01-19 16:01:26 -08:00
Jiaquan He
e53960d10b Add keyboard support to Grid-based Recents. am: 21f495f07b
am: de934359ef

Change-Id: I224b4576c4ebf1e200003d554916b52a1319a387
2017-01-18 22:49:35 +00:00
Jiaquan He
de934359ef Add keyboard support to Grid-based Recents.
am: 21f495f07b

Change-Id: I5b2f1bb2e6c8a84e1bc14fa428a1c00af3abe31f
2017-01-18 22:19:32 +00:00
Jason Monk
e7beaf3efa resolve merge conflicts of 8cff199b09 to master
Change-Id: Ie61ca1bb88eadff30599c1776201482173479183
2017-01-18 15:09:42 -05:00
Jason Monk
8cff199b09 resolve merge conflicts of 54bce9c6ff to nyc-mr2-dev-plus-aosp
Change-Id: Ifaea1d0f58ea81a7d929dc891fe69c8d7c15af4e
2017-01-18 13:45:59 -05:00
Anas Karbila
f7648f4483 SystemUI: Add NFC tile
This patch adds a tile for QuickSettings
which controls the setting of NFC.

The drawable is from material.io.

Test: Enable and disable NFC using tile

Change-Id: I7dfaf3a4dca0c01d24be397e43ab131eb9885f62
Signed-off-by: Anas Karbila <anaskarbila@aospa.co>
Signed-off-by: Alex Naidis <alex.naidis@linux.com>
2017-01-18 12:12:03 +00:00
Jiaquan He
21f495f07b Add keyboard support to Grid-based Recents.
Test: Checked that pressing tab, shift + tab, alt + tab, alt + shift +
tab work for task navigation in Recents on local sw600dp device. Also
checked that Recents on phones work properly.
Bug: 32101881
Change-Id: I3e4cd212d2900523ece30a85cae7fb73a9594efb
2017-01-17 15:34:09 -08:00
Andrew Sapperstein
67e97053c5 Show notif when device reaches throttling temp
Adds logic to SystemUI that shows a notification alerting the user
that their phone has reached a certain temperature and has throttled
itself in order to cool down.

The logic is controlled by a configuration resource:
R.bool.config_showTemperatureWarning. If false, no action is taken.

When true, PowerUI checks every 30 seconds if the current temp of
HardwarePropertiesManager.DEVICE_TEMPERATURE_SKIN is greater than
the throttling temp of HardwarePropertiesManager.DEVICE_TEMPERATURE_SKIN.
If any one of the temperatures returned is greater, a notification is shown.

Clicking on the notification will show a dialog explaining more details
about what the device is doing in response to the high temperature.

The notification will disappear once the temperature drops below
the throttling temperature.

In order to check the temperature in SystemUI, HardwarePropertiesManager
has been updated to also allow any calls made by callers holding the
signature-level DEVICE_POWER permission.

Test: runtest systemui
Bug: 30995038

Change-Id: I1b3f122341911c68e90c8a49ad35267ac382b356
(cherry picked from commit b7caf1d06d)
2017-01-04 16:53:44 -08:00
Andrew Sapperstein
9625b4fce1 Merge changes from topics 'thermal-notif-2', 'thermal-notif'
* changes:
  Add VR mode check for thermal notification
  Show notif when device reaches throttling temp
2017-01-04 19:18:24 +00:00
jackqdyulei
76471a5d9e Add TileColorPicker to remove hardcoded tile state color
1. Remove hardcoded color qs_tile_tint_* in colors.xml
2. Add tint_color_selector.xml which uses colorForeground and alpha
to tint.
3. Use TileColorPicker to grab tile state colors from
tint_color_selector.xml and provide them to customTile and BatteryTile

Bug: 32592245
Test: make -j40 SystemUITests
Change-Id: Ie5fc828c3c6d4e1f192643592c034f462fae5313
2017-01-03 11:21:59 -08:00