Commit Graph

13134 Commits

Author SHA1 Message Date
Winson Chung
49affea25b Fix trampoline activities when relaunching PiP
- We should be checking the actual launched-from package since that stores
  the source package across trampoline activities

Bug: 35458117
Test: Enter PiP from a trampoline activity, launch again from Launcher
      and ensure that it is expanded

Change-Id: Ia0e586e8b21dee63b513bd61a41a24e7da4325e1
2017-02-17 10:07:30 -08:00
TreeHugger Robot
e4b106b1aa Merge "Fix notification shelf icon showing on top of snooze leave behind" 2017-02-16 18:34:59 +00:00
Selim Cinek
fb08562731 Merge "Fixes a bug where children could have a colored background" 2017-02-16 04:21:33 +00:00
TreeHugger Robot
040e425b49 Merge changes Ia33ab1ab,I1d01ab5d
* changes:
  AOD: Add toggle for waking up instead of ambient display on sensors
  AOD: Refactor DozeMachine to allow waking up
2017-02-16 02:28:23 +00:00
TreeHugger Robot
8d6a617069 Merge "Removing PiP from SysUI tuner." 2017-02-16 02:23:03 +00:00
TreeHugger Robot
634733e42e Merge "Ensuring that there are per-user last stack active times." 2017-02-16 01:53:06 +00:00
TreeHugger Robot
1fad70afd3 Merge "Various QS fixes and cleanup" 2017-02-16 01:05:48 +00:00
Selim Cinek
9ce3285dc3 Fixes a bug where children could have a colored background
Because notifications can have had an override color and could
then become children, the color could stick around.

Test: runtest systemui
Change-Id: Ie89807c41a12b2d4a405c77d6da1c4e4ac78b325
Fixes: 34740139
2017-02-15 16:37:36 -08:00
Winson Chung
6e35ee1ff5 Removing PiP from SysUI tuner.
Bug: 35143109
Test: Go to tuner, observe
Change-Id: I5c4eadc33a303e7bf7d99aa772296405d39ee251
2017-02-15 16:32:45 -08:00
Adrian Roos
7a1654e8e4 AOD: Add toggle for waking up instead of ambient display on sensors
Bug: 30876804
Test: Open SysUI tuner -> Ambient Display -> Toggle wake up on sensors setting, verify that double tap and lift wake up phone instead of triggering ambient display.
Change-Id: Ia33ab1ab5ed532f239262d70e00dac3fec0330e2
2017-02-16 01:21:13 +01:00
Adrian Roos
4fb1f51978 AOD: Refactor DozeMachine to allow waking up
Bug: 30876804
Test: runtest -x $ANDROID_BUILD_TOP/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/DozeMachineTest.java
Change-Id: I1d01ab5d8ba3c1bf7b11b0b4911b25f3416ca6e9
2017-02-16 01:19:38 +01:00
Adrian Roos
2a7e2deb57 Merge "AOD: Show fingerprint error messages" 2017-02-15 23:59:51 +00:00
Jason Monk
f13413e2f3 Various QS fixes and cleanup
Test: runtest systemui
Change-Id: If87f58f2af00b23c5e1a8e38a63a6a63d903002c
2017-02-15 17:48:27 -05:00
Adrian Roos
dcdaaec8d5 Merge "AOD: Show High notifications on AOD" 2017-02-15 21:56:40 +00:00
Winson Chung
28217a4ca2 Ensuring that there are per-user last stack active times.
- This fixes an issue where the last stack active time would be clobbered
  when switching between users.  With the policy in the phone/stack
  recents, this is fine, but with the grid recents, it no longer only
  applies when out of the historical window, so it is always wrong (it
  would normally be wrong if switching back from another user after the
  historical time of six hours).

  This CL will migrate the last stack active time to a per-user secure
  setting, which will be used going forward.

Bug: 35375206
Test: On the Ryu, launch some tasks, switch users, launch more tasks, and
      return to the original user

Change-Id: I9941526de5d1dd52d1f9003e795995389064b19d
2017-02-15 13:46:52 -08:00
Selim Cinek
74841fb59f Merge "Fixed that an icon could become invisible" 2017-02-15 21:17:56 +00:00
Jason Monk
d7937b3488 Merge "New system for versioning sysui plugins" 2017-02-15 20:49:05 +00:00
Jason Monk
6650e89dbc Merge "Tuner updates" 2017-02-15 20:24:44 +00:00
Selim Cinek
251334e1dc Merge "Made the notificationViewStates static" 2017-02-15 20:10:11 +00:00
Selim Cinek
b52448c8b5 Merge "Fixed a few coloring issues" 2017-02-15 20:08:58 +00:00
Selim Cinek
5ece5a7c34 Fixed that an icon could become invisible
A icon could be invisible because we were not aborting the animation
in certain cases. This should be fixed now.

Change-Id: I8caf35034704a0df3d205205086c4622b60e0da9
Fixes: 35385932
Test: runtest systemui
2017-02-15 11:49:35 -08:00
Jason Monk
4cfd8c740d Fix test failures on treehugger?
Test: runtest systemui
Change-Id: I0660729aade05cd63b240eed13ed9d5c9ff8de91
2017-02-15 13:52:47 -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
Selim Cinek
d4776a52b4 Made the notificationViewStates static
We shouldn't hold an implicit reference to the
row, let's fix that.

Bug: 35345204
Test: runtest systemui
Change-Id: Ifa0ba0bd07850ae575059b6368791d60d1091616
2017-02-14 18:50:16 -08:00
Selim Cinek
875ba9bd8e Fixed a few coloring issues
The color of the icon was happening in a
non-animated way. We're now animating the
color properly.
This also fixes an issue where the action
bar could be fully black.

Test: add colorized notification, observe animation
Fixes: 35308322
Change-Id: I4fbc1794fc027efb42eee3ee8f06fd9d8c513456
2017-02-14 17:28:15 -08:00
Winson Chung
2c02bd1cf0 Merge "Disable fetching of thumbnails when using snapshots." 2017-02-14 23:11:05 +00:00
TreeHugger Robot
e4a2476ea9 Merge "Fix status bar showing on lock screen on boot" 2017-02-14 22:34:22 +00:00
TreeHugger Robot
291c9078e6 Merge "Percentage text now sits alongside the battery icon." 2017-02-14 21:55:38 +00:00
TreeHugger Robot
bafbc762cc Merge "Fixed an issue where children dissappeared the wrong way" 2017-02-14 21:48:29 +00:00
TreeHugger Robot
ffc9c74013 Merge "The transformhelper now also transforms gone views" 2017-02-14 21:19:22 +00:00
TreeHugger Robot
8b39573f15 Merge "Heads-up notifications of increased height behave better" 2017-02-14 21:07:22 +00:00
Jason Monk
1e5ba5d087 Fix status bar showing on lock screen on boot
Fix dispatching of disables through StatusBar.

Change-Id: Iee5e5d8cdf64f06b28986ff599aa3479c712980f
Fixes: 35200453
Test: visual
2017-02-14 15:48:57 -05:00
Robin Lee
6f8f019571 Merge "Redact GridTaskViewThumbnail" 2017-02-14 20:28:39 +00:00
Dan Sandler
055bb61426 Percentage text now sits alongside the battery icon.
The old embedded percentage (introduced in change I6a3e7409) is hard
to read at status bar size, so we now draw it in a separate TextView to
the left (start) of the battery gauge. (The embedded code remains so
that it can be used by other places where the battery is drawn larger.)

The old system setting "status_bar_show_battery_percent" is still used
to control whether this percentage is shown, but note that it now
applies only to BatteryMeterView (i.e., the status bar) and not other
usages of BatteryMeterDrawable.

Bug: 32539932
Test: (manual) adb shell settings put system status_bar_show_battery_percent 1
Change-Id: Id298dba544f594b11269539284a2e8042fd4780b
2017-02-14 14:47:28 -05:00
TreeHugger Robot
7776844d77 Merge "SysUiLeaks: Turn leak reporting because of known leak" 2017-02-14 19:16:53 +00:00
Robin Lee
3cb867326a Merge "Theme work lock activity with the task primaryColor" 2017-02-14 18:38:14 +00:00
Robin Lee
7e9a26fb18 Redact GridTaskViewThumbnail
This inherits from TaskViewThumbnail but has its own drawing logic that
skips work redaction for locked users. This is required by CTS Verifier,
so it needs to be done here as well.

Test: visual, instructions --
Test: (1) set up work profile on ryu with a password
Test: (2) turn screen off and on again
Test: (3) go to recents, verify work apps redacted with correct color
Test: (4) open a work app, unlock, go back to recents, verify work apps
Test:     are not redacted any more.
Bug: 34836435
Change-Id: I2239fe4c035332a9c9b93d2d2b1c354f204358a8
2017-02-14 18:28:25 +00:00
Manu Cornet
ca170752d8 Merge "2D Recents: Fix a glitch during task relayout after a dismiss" into nyc-mr2-dev am: f47658f120
am: ec42e34422

Change-Id: Ifc42633a2d1b9250e7b5183338687a907e53035c
2017-02-14 18:21:27 +00:00
Peeyush Agarwal
1ea19d3463 Merge "Fix KeyboardShortcuts show" 2017-02-14 17:10:02 +00:00
Adrian Roos
fb2bb3f099 SysUiLeaks: Turn leak reporting because of known leak
Test: use device for a while, observe that no notifications are posted
Bug: 35345376
Change-Id: I8814cb540f4d8d840312e29fce4a28fee317e787
2017-02-14 17:44:15 +01:00
Adrian Roos
91ba307d9b AOD: Show fingerprint error messages
Change-Id: I6570bffed1632b5e42ad5f82f7e0ab6192e04e1d
Fixes: 34902351
Test: Enable fingerprint, get notification on Ambient Display, try to unlock with wrong finger. Verify that the fingerprint not recognized message shows
2017-02-14 16:50:46 +01:00
Manu Cornet
ec42e34422 Merge "2D Recents: Fix a glitch during task relayout after a dismiss" into nyc-mr2-dev
am: f47658f120

Change-Id: I664be0dd3e1f2e6cf2d7dc94613b0efcaf6887a9
2017-02-14 15:30:21 +00:00
Adrian Roos
649924d030 AOD: Show High notifications on AOD
Previously, it was only Urgent.

Bug: 30876804
Test: Receive notification that is high, but does not peek (e.g. Gmail) while screen is off. Verify it shows on Ambient Display
Change-Id: I9233a96abbc55a54dc5fab81ad79ee0980a0a035
2017-02-14 15:26:23 +01:00
TreeHugger Robot
9031554c25 Merge "AOD: show AOD1 instead of AOD2 on double tap" 2017-02-14 12:28:35 +00:00
Ricky Wai
89c376ed66 Merge "Change "Long pressing work mode in quick settings" to managed profile settings" 2017-02-14 11:14:12 +00:00
TreeHugger Robot
171ef98df6 Merge "Fix interaction w/ work profile & last chosen" 2017-02-14 01:24:19 +00:00
Mady Mellor
434180ce51 Fix notification shelf icon showing on top of snooze leave behind
Also fixes an issue where the guts closed listener would always call
onHeightChanged because the notification isn’t marked as removed
until after the listener gets called.

Fixes: 34866027
Test: Manual - have one notification, snooze it
Change-Id: Ic67bdb353b8bb5df8bdaaf6d3e71ade7da05ee46
2017-02-13 17:04:27 -08:00
Winson Chung
f88baf8b17 Disable fetching of thumbnails when using snapshots.
- We don't keep the snapshots on the SysUI side so this is just a wasted
  call to load them (the rest of the metadata can still be prefetched
  though).

Test: Launch new tasks and ensure that we aren't fetching task snapshots
      without entering overview.

Change-Id: I1fe01a162f15e4f75b333e7e1bbe32d07e5d0b8d
2017-02-13 16:11:40 -08:00
Hakan Seyalioglu
13405c5529 Fix interaction w/ work profile & last chosen
bug: 34677697
Test: New unit tests added
Change-Id: Ibb5c804c16a758ff041ce7165fda561d903b5f31
2017-02-13 15:24:58 -08:00
Robin Lee
3c82d3d5bf Theme work lock activity with the task primaryColor
This involves adding another system RPC, getTaskDescription(taskId)
gated on MANAGE_ACTIVITY_STACKS permission.

Bug: 31001762
Test: runtest -x frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/WorkLockActivityTest.java
Change-Id: Ieb996f7fab5bc79737df570e35733551118118d3
2017-02-13 23:22:34 +00:00