Commit Graph

12659 Commits

Author SHA1 Message Date
Julia Reynolds
bb983d20d2 Use internal volume controller and status bar.
Remove code that let these components be replaced by external
processes.

Bug: 33006669
Bug: 34106436
Test: manual. reboot device, play music, change volume,
view notifications
Change-Id: I458f11537ab9db6f23735487513815553004613f
2017-01-06 15:59:45 +00:00
Chris Wren
5e6c0ffd3e Create a global registry for system message IDs
Port all system UI notifications to use the registry.  Retain stable
integer IDs where they exist. Assign new stable IDs where resource IDs
were previously used.

Using "message" rather than "notification" since we may eventually
want to include dialogs and toasts.

Bug: 32584866
Bug: 30995038
Test: runtest systemui
Change-Id: Iec4d7cebbd88683e339ada29a279315222699942
2017-01-06 09:22:02 -05:00
Winson Chung
31c568274b Add logging for task view thumbnail state. am: eb2206cb51
am: 96a5c216b7

Change-Id: Id6f8fbdac18861ea1244b2c43885d978851694e7
2017-01-05 19:45:06 +00:00
Winson Chung
96a5c216b7 Add logging for task view thumbnail state.
am: eb2206cb51

Change-Id: Ibf8fed3d189483f8a8b351d87f406c90d0259fc5
2017-01-05 19:38:37 +00:00
Lei Yu
2cba0e8b0f Merge "Remove hardcoded color for cellular data usage view" 2017-01-05 18:57:57 +00:00
Ben Murdoch
f0b74e306d Remove two unused filters on PowerUI receiver.
Removing some dead code.

Test: None, remove dead code.
Change-Id: Ibcb31797dc1551f7fed540843afc58cb4eb7d077
2017-01-05 14:57:43 +00:00
Andrew Sapperstein
b54a792429 Added alert icon to high temp dialog.
am: bd4eeb7259

Change-Id: I8f6d4a0c9ba5c15478010714995243c305982707
2017-01-05 03:07:47 +00:00
Andrew Sapperstein
a477ead31c Add VR mode check for thermal notification
am: d51ac7322e

Change-Id: I056136375b74a38a4973951fb33f795e784bab1e
2017-01-05 03:07:01 +00:00
Andrew Sapperstein
104c66d71e Show notif when device reaches throttling temp
am: 67e97053c5

Change-Id: I44639cb19b7fa9547dc1e579a5beb34f923da2a7
2017-01-05 03:05:59 +00:00
Andrew Sapperstein
bd4eeb7259 Added alert icon to high temp dialog.
Test: manual
Bug: 30995038
Change-Id: I966294c5fb0b8297b2f336102996291f66c08d2c
(cherry picked from commit e26dc3d194)
2017-01-04 16:54:31 -08:00
Andrew Sapperstein
d51ac7322e Add VR mode check for thermal notification
When in VR mode, don't show the high temp notification
since VR shows its own notification.

Test: manual
Bug: 30995038
Change-Id: I845480d968a9b0da9997f035875885bc261c577a
(cherry picked from commit 65d8a5fc73)
2017-01-04 16:54:15 -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
jackqdyulei
b68fd7ae0a Remove hardcoded color for cellular data usage view
1. Remove hardcoded color and create colorStateList instead
2. Remove warning color and use attr textColorError instead
3. Add function to extract color from colorStateList

Bug: 32592245
Test: manual - Take screenshots
Change-Id: I7f0a54b304b09b99ba1f255952e7e99e009a4d2a
2017-01-04 16:12:44 -08:00
Andrew Sapperstein
388ef5df44 Merge "Added alert icon to high temp dialog." 2017-01-04 21:08:38 +00:00
Andrew Sapperstein
e26dc3d194 Added alert icon to high temp dialog.
Test: manual
Bug: 30995038
Change-Id: I966294c5fb0b8297b2f336102996291f66c08d2c
2017-01-04 11:25:20 -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
Adrian Roos
f39f98f562 Merge "QS - Fix race condition in accessibility" into nyc-mr2-dev 2017-01-04 00:01:07 +00:00
Lei Yu
c71f5b34ce Merge "Add TileColorPicker to remove hardcoded tile state color" 2017-01-03 22:15:11 +00:00
Winson Chung
eb2206cb51 Add logging for task view thumbnail state.
Test: adb shell dumpsys activity com.android.systemui

Bug: 32735667
Change-Id: Ieb06b1c11f833f7489d1d4994e634efea4227db2
2017-01-03 20:39:10 +00:00
Winson Chung
c75ffe8ccb Fixing some interaction issues with the PIP menu.
- Due to jank when finishing the PIP menu activity, we handle the
  menu visibility explicitly and keep the menu activity around
  once triggered (until PIP ends), instead of finishing and
  recreating it each time it is invoked.  This also gives us the
  flexibility to control how the animation looks of both the menu
  and individual actions.
- Allow dragging the PIP while the menu activity is showing and
  taking input
- Tapping outside of the PIP now hides the menu

Test: Enable the tap-to-interact in the SysUI tuner and drag while
      the menu is showing.

Change-Id: Iac74710100d793e6825b00c7c0d71b85fb420fa0
Signed-off-by: Winson Chung <winsonc@google.com>
2017-01-03 11:28:37 -08: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
dongwan0605.kim
16ea7f7640 Merge "QS: Fix QuickQS visibility at non-first page" am: fce04dc0be am: 56812a0146 am: 852fb2b1f1
am: 29d656dbe1

Change-Id: Ibfa95306964670aa10618bc5aa377a0a1bb6ab06
2017-01-03 16:34:00 +00:00
dongwan0605.kim
29d656dbe1 Merge "QS: Fix QuickQS visibility at non-first page" am: fce04dc0be am: 56812a0146
am: 852fb2b1f1

Change-Id: Ide5e7c588eb1707015ac33a13fb9788e80617587
2017-01-03 16:27:27 +00:00
dongwan0605.kim
852fb2b1f1 Merge "QS: Fix QuickQS visibility at non-first page" am: fce04dc0be
am: 56812a0146

Change-Id: If8d2963ed44e49e3b33b73a82378b2af32ba4676
2017-01-03 16:17:28 +00:00
dongwan0605.kim
03c9afadab QS: Fix QuickQS visibility at non-first page
When user collapsed QSPanel at non-first page, QuickQS always remained
View.Visible. When user canceled collapsing, QQS remained clickable
although invisible to user(alpha = 0).
QQS must be non-clickable when user cancels collapsing at non-first page.

Test: QSPanel > 2nd page > Cancel collapsing while collapse QSPanel
      > Verify invisible QQS is non-clickable

Change-Id: I4c1f195a3faec8e89bb073443f6345f4faddf781
2017-01-03 06:47:17 +00:00
Jiaquan He
5303427bc6 Cut the Grid-based Recents title if it's too long. am: 8f34df423d
am: e7d2311593

Change-Id: I91f090f72790bf77480a4bd393c1e1bf1c1ff8ca
2016-12-30 01:54:38 +00:00
Jiaquan He
e7d2311593 Cut the Grid-based Recents title if it's too long.
am: 8f34df423d

Change-Id: I941f6d96bd6dab4c3bf6c09e5dbf4b136407a055
2016-12-30 01:23:48 +00:00
TreeHugger Robot
e606e999a7 Merge "Cut the Grid-based Recents title if it's too long." into nyc-mr2-dev 2016-12-30 00:35:38 +00:00
TreeHugger Robot
96b97d722f Merge "Disallow entering PiP without dismissing keyguard." 2016-12-29 20:29:45 +00:00
Winson Chung
0655da0374 Disallow entering PiP without dismissing keyguard.
- If an activity is showing on the keyguard and enters picture-
  in-picture, then prompt the user to authenticate first
- Fixing NPE in SystemUI due to null runnable being added to the
  post-keyguard-gone callbacks
- Prevent FLAG_SHOW_WHEN_LOCKED from applying when determining
  visibility over keyguard for activities that are in the pinned
  stack

Bug: 33660880
Test: android.server.cts.KeyguardLockedTests
Test: #testEnterPipOverKeyguard

Change-Id: I89477a8a0067e285e5d0122e918fac45274c57ad
2016-12-29 10:53:23 -08:00
Geoffrey Pitsch
f47277805a Merge "Change Notification Inline Settings for Channels" 2016-12-29 15:36:56 +00:00
Selim Cinek
3e555495fc Merge "Improved the behavior with the empty shade view" 2016-12-29 12:26:44 +00:00
Selim Cinek
fe0f4357a1 Merge "Fixed a bug where notifications could stay expanded" 2016-12-29 12:26:07 +00:00
Jiaquan He
71cfaee778 Move grid checking into the layout algorithm. am: 26f637b555
am: c29cd0fdca

Change-Id: Icf69a78743697daaad7e55ca6116d24f716c88ef
2016-12-29 01:57:24 +00:00
Jiaquan He
c29cd0fdca Move grid checking into the layout algorithm.
am: 26f637b555

Change-Id: Ie65d71bd7f6edb5e92f6dd331999424a592c8073
2016-12-29 01:51:24 +00:00
TreeHugger Robot
c87fcb0963 Merge "Move grid checking into the layout algorithm." into nyc-mr2-dev 2016-12-29 01:41:56 +00:00
Manu Cornet
fc16b764b6 2D recents: show all close buttons right away am: 8ff7854c4b
am: ca0e55646b

Change-Id: I42325561cc94f816701f4c9cd3edaca31efd5a22
2016-12-29 00:28:55 +00:00
Manu Cornet
9577cb827a 2D Recents: use a slightly darker scrim background am: 48de4e6afe
am: bec5fee38d

Change-Id: Id67d6d2cbc81588dd6163cfbc25d6ff9f073e08a
2016-12-29 00:26:45 +00:00
Manu Cornet
ca0e55646b 2D recents: show all close buttons right away
am: 8ff7854c4b

Change-Id: I18e3729f5e09601a6548647fa16ba90bf2147cb0
2016-12-29 00:21:48 +00:00
Manu Cornet
bec5fee38d 2D Recents: use a slightly darker scrim background
am: 48de4e6afe

Change-Id: I33a961dbd1741d72fa86a0cde0b2e60b76271955
2016-12-29 00:19:48 +00:00
Jiaquan He
3b430f7d0c Merge "2D recents: show all close buttons right away" into nyc-mr2-dev 2016-12-29 00:13:18 +00:00
Jiaquan He
55a684ff65 Merge "2D Recents: use a slightly darker scrim background" into nyc-mr2-dev 2016-12-29 00:12:53 +00:00
Jiaquan He
8f34df423d Cut the Grid-based Recents title if it's too long.
Bug: 33847657
Bug: 32101881
Change-Id: I040dafcb37c9259dded8fa2cd896e4e4a59aeae5
2016-12-28 16:07:17 -08:00
Jiaquan He
26f637b555 Move grid checking into the layout algorithm.
We move grid layout checking into the layout algorithm, so that we can
hide more computation from the views.

Bug: 32101881

Change-Id: I174fe33ef7ed3c04987771dbb42d831a4b9bdab2
2016-12-28 16:07:15 -08:00
Jiaquan He
59deea52e3 Resue TaskView information. am: 0a5e2d6b93
am: e6dd53291e

Change-Id: Iedf5472abf2cf11ce0b9ad1f83224adbfda144ff
2016-12-29 00:06:31 +00:00
Adrian Roos
02ca26defc Merge "QS - Fix race condition in accessibility" am: 302efd6125 am: 3c0a8bba3c am: b12ed1e10f
am: 0a4e1b7078

Change-Id: I1409cc428b41b01ffb1461f011337a7cbe409b46
2016-12-29 00:05:22 +00:00
Android Build Merger (Role)
a1ac1af80f Merge "Resue TaskView information. am: 0a5e2d6b93" into nyc-mr2-dev-plus-aosp 2016-12-28 23:59:59 +00:00
Jiaquan He
e6dd53291e Resue TaskView information.
am: 0a5e2d6b93

Change-Id: I0d998b0e31dedb48ef284386811fe67fbda6c981
2016-12-28 23:58:49 +00:00
Adrian Roos
0a4e1b7078 Merge "QS - Fix race condition in accessibility" am: 302efd6125 am: 3c0a8bba3c
am: b12ed1e10f

Change-Id: I2f17f2bd2f293f2c68ba20fbfd6aa3e693f8b865
2016-12-28 23:58:43 +00:00
Adrian Roos
b12ed1e10f Merge "QS - Fix race condition in accessibility" am: 302efd6125
am: 3c0a8bba3c

Change-Id: I3e05c8c127c021dc321b0ef130159ff7a021a9e8
2016-12-28 23:51:30 +00:00