Commit Graph

12718 Commits

Author SHA1 Message Date
Jiaquan He
cec869d361 2D Recents: Show shadows behind task views. am: 15fa3246d8
am: 0cb857822e

Change-Id: Ice75a09a845ed8639c11053a3428f0b01fc40ded
2017-01-12 19:02:18 +00:00
Jiaquan He
0cb857822e 2D Recents: Show shadows behind task views.
am: 15fa3246d8

Change-Id: Ia2401df9750bb42a53ae214ed8998e1225499337
2017-01-12 18:56:27 +00:00
Selim Cinek
97f14c47db Fixed a bug where notifications could stay expanded
am: b2236108ae

Change-Id: I9c776321f0865f6971692008256cd80adbab5469
2017-01-12 18:42:32 +00:00
Winson Chung
7c31e6aa23 Merge "Replacing removed string." 2017-01-12 18:17:37 +00:00
Selim Cinek
f6c9c21745 Allowing heads-up notifications now on the lock screen
am: ab24dc9f29

Change-Id: I7677c513dba5d787e44bdd73b3cc5d9c004305f5
2017-01-12 16:14:34 +00:00
Selim Cinek
85e481140c Introduced the visual stability manager
am: add9526b1d

Change-Id: I4a8ff70995585461d84ce6a4a3976104e7465547
2017-01-12 16:13:47 +00:00
Selim Cinek
fabd50de62 Removing notifications always immediately when swiping them away
am: 5e018206e2

Change-Id: I09f3b3a2f793b10b7c9c39e96b26a89992a1314a
2017-01-12 16:13:00 +00:00
Selim Cinek
b2236108ae Fixed a bug where notifications could stay expanded
When expanding and locking the screen, the notification
could be stuck in a userlocked state and therefore look
expanded even on the lock screen.
Another case where this could happen was when there was
a race between locking the screen and collapsing a group.

Merged-In: I4f359d727013ee8c9e4174d2855896ba8d3d1a0b
Change-Id: I4f359d727013ee8c9e4174d2855896ba8d3d1a0b
Test: have group on locked shade, expand, click on middle space during expansion
Bug: 33614507
2017-01-12 15:52:53 +00:00
Jorim Jaggi
e2c77f9035 Handle content insets for snapshots
Pass information about content insets of a snapshotted task to
SystemUI and use it there to correctly offset the snapshot
when drawing.

Test: Open app, go to recents, make sure app aligns before
and after the animation.
Bug: 31339431
Change-Id: I2ff9bd44534bd8f66b591385da1e1e3aec40b6c5
2017-01-12 16:28:19 +01:00
Jorim Jaggi
02886a82d8 Initial implementation of snapshots
All this functionality is hidden behind a flag. If this flag is
active, we disable the regular screenshots.

Instead, we take a screenshot when an app transition for which a
task is disappearing is starting. The screenshot gets stored
into a gralloc buffer. SystemUI uses a new method to retrieve
a snapshot gralloc buffer and then draws it using GraphicBuffer.
createHardwareBitmap().

When starting an existing activity in an existing tasks, or when
bringing an existing tasks to front from recents, we add a new
snapshot starting window. For that, we reuse the existing
starting window, but when creating the window, we use a fake
window that draws the contents of the starting window.

Test: runtest frameworks-services -c
com.android.server.wm.TaskSnapshotControllerTest
Bug: 31339431
Change-Id: If72df07b3e56f30413db5029d0887b8c9665aaf4
2017-01-12 16:28:01 +01:00
Selim Cinek
ab24dc9f29 Allowing heads-up notifications now on the lock screen
In order to isolate notifications properly from their group
and in order to allow them to visually reorder, we now allow
heads up notifications on the lock screen.

Merged-In: I1d04a92e66ae92ecee4f8ee23b218c2b167dadd4
Change-Id: I1d04a92e66ae92ecee4f8ee23b218c2b167dadd4
Test: existing tests pass
Test: add heads up on lockscreen
Test: heads up group child on lockscreen
Bug: 33773401
2017-01-12 01:08:09 +00:00
Selim Cinek
add9526b1d Introduced the visual stability manager
Notifications used to roam around and reorder whenever
they wished. Those little beasts must be tamed, hence
a new visual stability manager is introduced that
dictates the terms of their interplay.

Test: manual: add heads-up and see if they correctly appear
Test: runtest -x packages/SystemUI/tests/src/com/android/systemui/notification/VisualStabilityManagerTest.java
Bug: 33773401
Merged-In: I8d7596fa7c14e0df68459a77d445f618d517ad51
Change-Id: I8d7596fa7c14e0df68459a77d445f618d517ad51
2017-01-12 01:05:59 +00:00
Selim Cinek
5e018206e2 Removing notifications always immediately when swiping them away
When swiping away notifications we were previously relying on the
notification manager to cancel the notification for us. If the state
diverges however (due to bugs) this leads to unrecoverable empty
holes which is super bad.

Merged-In: If63c5434b4e438fea560e0013a12c60655103977
Change-Id: If63c5434b4e438fea560e0013a12c60655103977
Test: existing tests pass
Bug: 33457118
2017-01-12 01:03:16 +00:00
Jiaquan He
15fa3246d8 2D Recents: Show shadows behind task views.
Test: Checked that there's a shadow behind each task view in Grid-based
Recents on local sw600dp device.
Bug: 32101881
Change-Id: I2cb2c0f73cbe23c4dcce5a4839965fdff13a0df5
2017-01-11 15:52:57 -08:00
Winson Chung
5ec184876a Replacing removed string.
Bug: 33564921
Test: Build and open quick settings.
Change-Id: I740541cec75cdc5b570ffda860a8b62d76813aaa
2017-01-11 15:08:59 -08:00
TreeHugger Robot
59011d0f6f Merge "DozeService: Fix crash if StatusBar not yet initialized" 2017-01-11 21:19:30 +00:00
TreeHugger Robot
6e7ff7be76 Merge "Refactor ExpandableNotiRow" 2017-01-11 21:13:00 +00:00
Selim Cinek
6b74aba3d8 Merge changes Iedf3172f,I62aa349b,I38c6970b
* changes:
  Using a different interpolator when unlocking to an app
  Adapted the shade closing interpolator
  Fixed the appearing of the statusbar icons
2017-01-11 20:53:00 +00:00
TreeHugger Robot
3c4dd649da Merge "Show work unlock prompt on focus as well as touch" 2017-01-11 20:38:58 +00:00
Adrian Roos
0b2e23a427 DozeService: Fix crash if StatusBar not yet initialized
Fixes a bug where a crashing SystemUI may crash again after restarting
if the services restart in an unexpected order.

Bug: 34044765
Test: Crash SystemUI, observe that it doesn't crash again right away.
Change-Id: Id6f781ba29ff11be0850b1883ca2942f15e76324
2017-01-11 11:56:47 -08:00
TreeHugger Robot
97d9813245 Merge "Add one-shot plugin support" 2017-01-11 19:35:22 +00:00
Adrian Roos
eb434ff5b7 Refactor ExpandableNotiRow
Test: manual
Change-Id: I00e2b7ed3b710d3d6b656dfabec209bb8b22f390
2017-01-11 11:18:48 -08:00
TreeHugger Robot
3c6f28aa59 Merge "Added TaskWindowContainerController" 2017-01-11 19:14:55 +00:00
TreeHugger Robot
801e7bb7fd Merge "Do not select an importance for unspecified notifications" 2017-01-11 19:13:37 +00:00
Robin Lee
ad0118a358 Show work unlock prompt on focus as well as touch
With change I4576aaafa141ef5297f9c18935b747693a80f0fd we can be
reasonably sure this isn't going to instantly bring the prompt into
fullscreen, since launching this activity as an overlay in an
unfocused task won't bring it to the front.

But if it's launched in a focused task, it will get focused and
brought to the front, starting the unlock process. This saves us a
click, and user frustration, and is generally a good thing.

Bug: 31001762
Test: //tests/PoApi/src/com/google/android/afwtest/poapi/WorkChallengeTest (harness)
Change-Id: Ic5a33589e2b63d04e47c5f166da0077188cb55ea
2017-01-11 17:52:18 +00:00
Geoffrey Pitsch
4e7ae02ce0 Do not select an importance for unspecified notifications
Test: runtest systemui-notification
Bug: 34164846
Change-Id: I4988ce26264853fd9ab84ae02e995641edf933cd
2017-01-11 12:48:09 -05:00
Robin Lee
3101b3ad21 Merge changes I3fd28e69,If43820b6
* changes:
  Lock work tasks from SystemUI instead of ActivityStarter
  Bounce work challenge through a WorkLockActivity
2017-01-11 17:41:01 +00:00
Wale Ogunwale
e1fe7fa288 Added TaskWindowContainerController
For linking TaskRecord in AMS to Task window container in WMS.

Bug: 30060889
Test: bit FrameworksServicesTests:com.android.server.wm.AppWindowContainerControllerTests
Test: bit FrameworksServicesTests:com.android.server.wm.TaskWindowContainerControllerTests
Test: Existing test pass and manual testing.
Change-Id: I16248f3e96e5087ba24198a48a3bd10a12ae76a6
2017-01-11 09:19:35 -08:00
Jason Monk
59d86ed2a8 Add one-shot plugin support
Should have happened a while ago.

Test: runtest systemui
Change-Id: I0da4deb5c297e8030213810815a408364ec97e14
2017-01-11 11:29:17 -05:00
TreeHugger Robot
2d75264011 Merge "Fixes for FlashlightTile lifecycle" 2017-01-11 16:02:54 +00:00
Jason Monk
861e09ade2 Fixes for FlashlightTile lifecycle
Change-Id: I690440465ef5312d77a279e73eaa22ccbdfbcd53
Fixes: 33861261
Test: runtest systemui
2017-01-11 09:41:05 -05:00
Robin Lee
c41f6ec877 Lock work tasks from SystemUI instead of ActivityStarter
By adding an onTaskProfileLocked(taskId, userId) RPC to
TaskStackListener and routing that through to a new WorkLockController.

Bug: 31001762
Test: //tests/PoApi/src/com/google/android/afwtest/poapi/WorkChallengeTest
Change-Id: I3fd28e6926c3f928e78b3c6ce0fe27413617695f
2017-01-11 14:13:07 +00:00
Robin Lee
3fef1f2843 Bounce work challenge through a WorkLockActivity
This stops us from depending on Settings for keeping the work profile
secure. Instead that is delegated to a smaller Activity inside SystemUI
which has just two jobs:

 1) Don't let anyone see the content that's supposed to be locked.

 2) Start ConfirmCredentialsActivity (still lives in Settings for now)

Bug: 31001762
Test: //cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/MixedManagedProfileOwnerTest#testResetPasswordFbe
Test: //tests/PoApi/src/com/google/android/afwtest/poapi/WorkChallengeTest
Change-Id: If43820b683007a60a37edf32fb65b442a8fb709b
2017-01-11 14:13:03 +00:00
Santos Cordon
f85ab8306f Add Brightness setting for VR Mode.
am: d6a5660a2c

Change-Id: If371f485471eb1ab0a3e07964c197cb9b8ef1c9f
2017-01-11 03:12:05 +00:00
Santos Cordon
e89ba5222c Merge "Add Brightness setting for VR Mode." 2017-01-11 03:02:02 +00:00
Santos Cordon
3107d29c8f Add Brightness setting for VR Mode.
This change saves and loads a different brightness setting when the user
goes in and out of VR Mode.

Test: runtests frameworks-core
Test: Turn vr mode on and change brightness (should remain separate from
normal brightness)

Bug: 30984614
Change-Id: If3c3e81b592e0c6fd037e5783559683e5cb58379
2017-01-10 17:16:04 -08:00
phweiss
a524313118 Re-Add VPN-"Settings" button to QSFooter dialog
am: d361b181e5

Change-Id: Iee7dcfbb4a2bcaaddada850918185fc4d9cc47c1
2017-01-10 14:02:57 +00:00
phweiss
d361b181e5 Re-Add VPN-"Settings" button to QSFooter dialog
Button was removed during a redesign of the dialog in the case
of active device owner. However, when no DO is set, the button should
still be there.

Also, when VPN configuration is restricted, do not show the button, and
also do not show the link that is visible in the DO-version of the dialog.

Bug:34156553
Bug:29748723
Test: manual

Change-Id: I177afdc94dc396754fc7703e4316edaa7ce104cd
(cherry picked from commit a99a3f70e2)
2017-01-10 10:16:35 +00:00
Philipp Weiß
89a2cf74ba Merge "Re-Add VPN-"Settings" button to QSFooter dialog" 2017-01-10 10:14:37 +00:00
Santos Cordon
d6a5660a2c Add Brightness setting for VR Mode.
This change saves and loads a different brightness setting when the user
goes in and out of VR Mode.

Bug: 30984614
Change-Id: If3c3e81b592e0c6fd037e5783559683e5cb58379
2017-01-09 17:33:14 -08:00
Peeyush Agarwal
d06030c515 Merge "Fix KeyboardShortcuts show" 2017-01-09 22:05:25 +00:00
TreeHugger Robot
e7e4998784 Merge "Updating PIP to match UX" 2017-01-09 19:33:09 +00:00
TreeHugger Robot
337e36c5f4 Merge "Allow CommandQueue to have multiple callbacks" 2017-01-09 19:11:07 +00:00
Jiaquan He
5ae46bcb73 Force Grid-based Recents to show at most 8 tasks. am: 883887eac9
am: e1aee8bc8c

Change-Id: I3c231912c7be65768e8ade869203bfdc3c155624
2017-01-09 18:08:03 +00:00
Jiaquan He
e1aee8bc8c Force Grid-based Recents to show at most 8 tasks.
am: 883887eac9

Change-Id: I3960939f61acd8834101767481e5cafa7d9aac23
2017-01-09 18:03:34 +00:00
TreeHugger Robot
b100a9ac58 Merge "Force Grid-based Recents to show at most 8 tasks." into nyc-mr2-dev 2017-01-09 17:56:46 +00:00
Jason Monk
b5b0920170 Allow CommandQueue to have multiple callbacks
Allow for multiple callbacks to be added to CommandQueue.
This will allow PhoneStatusBar to be broken up into pieces
that make more sense.

Test: runtest systemui
Change-Id: I73a7da1c23c8e45a291e5957e7341f3930abc334
2017-01-09 12:51:56 -05:00
Jiaquan He
883887eac9 Force Grid-based Recents to show at most 8 tasks.
Bug: 32101881
Bug: 33975969

Change-Id: Icbadaa3ca12f53e57e06dd19d7809a23e0efa88c
2017-01-09 09:51:24 -08:00
phweiss
a99a3f70e2 Re-Add VPN-"Settings" button to QSFooter dialog
Button was removed during a redesign of the dialog in the case
of active device owner. However, when no DO is set, the button should
still be there.

Also, when VPN configuration is restricted, do not show the button, and
also do not show the link that is visible in the DO-version of the dialog.

Bug:34156553
Bug:29748723
Test: manual

Change-Id: I177afdc94dc396754fc7703e4316edaa7ce104cd
2017-01-09 18:42:17 +01:00
Winson Chung
a5acf18dfe Updating PIP to match UX
- Updating menu actions to match design, fixing issue where
  the actions background would still be visible if there were
  no actions
- Enabling tap-to-show-menu, minimizing, snap-to-edge by default,
  and removing swipe to dismiss option.
- Making the visible size a fixed value instead of a fraction of
  the PIP size

Test: android.server.cts.ActivityManagerPinnedStackTests
Change-Id: Ib767df497ca7bc901c553d35168080f3b737033a
Signed-off-by: Winson Chung <winsonc@google.com>
2017-01-06 16:20:52 -08:00