Commit Graph

334 Commits

Author SHA1 Message Date
Colin Cross
6afa62024a Set min_sdk_version for SystemUISharedLib
Set min_sdk_version so that the manifest cant be merged into
Launcher3 when it is converted to Android.bp.

Test: mmma packages/apps/Launcher3
Change-Id: I28543d4be54aa789fbb452be005373239e1e0a6e
2019-09-17 16:00:21 -07:00
davidln
a06b4b2fa5 Notify on task display change.
This is a targeted fix for not receiving a task stack change callback
when a task with a resumed Activity is reparented to another display.

Bug: 128932906

Test: manual - launch activity from virtual display onto default display
  in a new task, verify callback notified. atest WmTests
Change-Id: Idabad8379cded664bcf302d5c6fb69564d158eb7
Merged-In: Idabad8379cded664bcf302d5c6fb69564d158eb7
2019-06-27 18:54:00 +00:00
Sunny Goyal
c55bac635a Using correct slop for checking quickstep gesture
Bug: 135214165
Test: Compiles
Change-Id: I6d74b33fce31346086acfaba1b9ebfeed8f928e6
2019-06-19 12:11:52 -07:00
TreeHugger Robot
702c5199f9 Merge "Hiding home handle while on home in no-button mode" into qt-dev 2019-06-18 00:10:17 +00:00
Sunny Goyal
c73ce70467 Hiding home handle while on home in no-button mode
> Unifying handling home and back button alpha logic

Test: go home, manual
Bug: 134381592
Change-Id: I93a72cc4ac252f2ced22216f14c50b074e9903c8
2019-06-17 12:50:24 -07:00
TreeHugger Robot
c6f5069668 Merge "Trace sync rt transaction applier" into qt-dev 2019-06-13 23:12:00 +00:00
Jorim Jaggi
84149044fd Trace sync rt transaction applier
Test: Trace
Bug: 134583193
Change-Id: I00c2863f954e4c991d684ce4220380573db4d749
2019-06-13 21:45:14 +02:00
Matt Pietal
777c82d9b7 GlobalScreenshot - Fix race condition
It is possible for the call to system windows to occur slightly after
the ChooserActivity gets launched, therefore preventing it from ever
showing. Wait on the future before attempting to launch the activity.

Bug: 134976976
Test: Screenshot, then share over and over
Change-Id: Iba98a079412f8e35643f3a1db04e749b3c654637
2019-06-11 15:50:54 -04:00
Winson Chung
c8120d6d6a Merge "Expose keyguard showing-but-occluded state to launcher" into qt-dev 2019-06-04 20:56:37 +00:00
Winson Chung
7bbeb4531a Expose keyguard showing-but-occluded state to launcher
Bug: 133871965
Test: Verify with sysui dump in various states
Change-Id: I39c99712d525e0823a86d32510beb0a35103dd5e
2019-06-04 10:36:32 -07:00
TreeHugger Robot
b730e36596 Merge "Fix loading classloader for plugins whitelisted by component name" into qt-dev 2019-06-04 12:36:12 +00:00
Winson Chung
241e63d2ff Fix regression in swiping up from lockscreen
Bug: 134391878
Test: Swipe up to assistant from lockscreen

Change-Id: I32fe638de507775c5744344bc5e71509e4a5b0e1
2019-06-03 22:16:11 +00:00
Steve Elliott
66109771d3 Fix loading classloader for plugins whitelisted by component name
Fixes: 134162974
Test: manual
Change-Id: I1e6df38b455eb0038f1b255724619ba53561ff2a
2019-06-03 14:05:37 -04:00
TreeHugger Robot
2fb4cb55f0 Merge "Use unbatched inputeventreceiver, reduce touchslop" into qt-dev 2019-05-30 21:42:27 +00:00
Sunny Goyal
9a98e2265c Adding a compat class to listen for exclusion rect changes
Bug: 133844237
Test: Verified library changes with Launcher
Change-Id: I39e817943d3804353dbe17fd4b7339970181acb5
2019-05-29 16:45:25 -07:00
Siarhei Vishniakou
faa8799621 Use unbatched inputeventreceiver, reduce touchslop
To ensure gesture navigation has sufficient time to intercept gestures,
use unbatched inputreceiver, meaning that input events will be processed
immediately rather than on vsync boundaries.

Also, reduce touch slop to ensure that interception happens before the
app starts to react to the gesture.

Fix provided by michaelwr@.

Note: if the device is slow (for example, still executing first-boot
instructions), then the symptom can still be reproduced. However, once
the performance is good, then the issue is no longer observed.

Bug: 130352502
Test: open google maps and swipe from right and left. observe that the
map doesn't start moving before the back gesture icon appears.

Change-Id: I0696509c7f1cb0a0d2450080e0b61e2218a01140
2019-05-29 13:46:54 -07:00
Kunhung Li
286c52f8c2 Add live wallpaper metrics to atoms.proto
Resue StyleUIChanged message to append live wallpaper events.

Test: make statsd_testdrive && statsd_testdrive 179
Bug: 133209268
Bug: 127745228
Change-Id: I864d8e35bd071f7bcd2249ef20446a42a680dc6d
2019-05-24 01:42:15 +00:00
Winson Chung
a706700a31 Clean up system ui state flags
- Move setting of the flags to the responsible components, updating them
  directly instead of duplicating the logic in OverviewProxyService
- Add flags for tracking keyguard state, overview disabled state, and
  screen pinning state
- Ensure the notification expanded state excludes quicksettings
- Add logging for states and both back/assistant disabled states

Bug: 132107485
Bug: 131698989
Test: Immersive mode - ensure you can't swipe back, ensure you can't swipe
                       up or open the assistant
Test: Expanded notification - ensure back doesn't work when locked/unlocked
Test: Expanded QS - ensure back works when locked/unlocked
Test: A11Y - ensure that 2 finger swipe up shows accessibility menu
Test: A11Y - ensure that 2 finger swipe up & hold works
Test: Bouncer - launch notification over launcher, ensure back works,
 	        ensure assistant doesn't work
Test: Screen pinning - ensure back/assistant doesn't work

Change-Id: Ife37bf40602b997e6c2b534d9fa274ce07c53b07
Signed-off-by: Winson Chung <winsonc@google.com>
2019-05-21 10:38:05 -07:00
Miranda Kephart
4be269094e Add onAssistantGestureCompletion to SystemUiProxy
Allows passing the incoming velocity for gestures. This lets
SystemUI react differently to flings vs drags.

Bug: 132356358
Test: manual
Change-Id: I91df5801eb3399c94320307ccdbeca7763075984
2019-05-20 10:53:15 -04:00
Hyunyoung Song
d200fa1908 Revert "Notify OverviewProxyService of scrim colors"
Bug: 130451254
Test: manual

This reverts commit d9b9847ad6.

Reason for revert: found a better way to extract scrim colors without going through OverviewProxy

Change-Id: Iac97fee4d9b15757f7211889f6c370757c0870e3
2019-05-13 16:53:56 +00:00
Lucas Dupin
d9b9847ad6 Notify OverviewProxyService of scrim colors
Bug: 130451254
Test: manual
Test: atest SysuiColorExtractorTests
Change-Id: I0ce271d3250ff5292a8e195c4c19ee99328ebad4
2019-05-10 11:00:33 -07:00
Mark Renouf
66bb870917 Adds missing break after last statement in switch
Test: no functional change
Bug: 123542488
Change-Id: I756755324e7a59e58affc13c272c8154425b8363
2019-05-07 13:55:35 -04:00
Mark Renouf
446251dc52 Adds OnBackPressedOnTaskRoot
This allows Bubbles to be collapsed instead of finished
when there is only one activity in the stack.

Bug: 126852149
Test: launch activity, press back
Change-Id: Iad8db0549853e3f385d54fc6b6cea5e502d37139
2019-05-07 10:00:07 -04:00
Jeff Chang
6d856d335d Merge "Introduce the display ID to TaskKey" into qt-dev 2019-05-06 02:22:52 +00:00
Jeff Chang
bf589bb5b6 Introduce the display ID to TaskKey
Let the recents app to know the recent task was running from which display.

Bug: 118266305
Test: 1. atest ActivityManagerRecentTaskInfoTest
      2. atest TaskRecordTests

Change-Id: Ief2538056d414d8317b495ea45d50ccb2dc4518f
2019-05-03 21:58:54 +08:00
Steve Elliott
02bbaaa470 Allow specifying full component names in sysui plugin whitelist
This allows for a more granular whitelist, where a single package
could have multiple plugins available but only a subset are enabled.

Bug: 123881720
Test: manual
Change-Id: Ie9b2c31f08d9dac8a892501345e8ff85143f40f9
2019-05-03 00:34:19 +00:00
Winson Chung
67b090243d Preemptively clear buffer reference if snapshot is unused
- Normally this will be picked up in the next GC, but there is no reason
  to wait

Bug: 129295298
Test: Manual
Change-Id: I945336e86d0980f926586cfba6327c8c6c142ce8
2019-05-02 14:00:51 -07:00
TreeHugger Robot
c83bdb4626 Merge "Remove interaction flag code replaced by QuickStepContract (1/2)" into qt-dev 2019-05-01 00:18:35 +00:00
Beverly
440e6fae5e Add plugin to list before sending PLUGIN_CONNECTED
Test: manual
Fixes: 130527695
Change-Id: Ia40c25bc86aff18ed56399da89b6fdcc8a8d653f
2019-04-30 23:32:35 +00:00
Winson Chung
975eea7e98 Merge "Update sysui for screen pinning with gestural nav" into qt-dev 2019-04-30 02:10:25 +00:00
Matthew Ng
b2f89d3ee8 Remove interaction flag code replaced by QuickStepContract (1/2)
Test: manual
Bug: 112934365
Bug: 131419978
Fixes: 129497226
Change-Id: Iee5f5f99a1bea84fc69c8291e3f982ed68b875c5
2019-04-26 19:09:23 +00:00
Winson Chung
4d30e9ede9 Update sysui for screen pinning with gestural nav
- Add call to stop screen pinning
- Modify layout/description to reflect new gesture

Bug: 130828539
Test: Manual
Change-Id: I970a2dc7273170a735cf019f5c5ff6c1c3c269c0
2019-04-25 23:18:40 -07:00
Sunny Goyal
e951976e80 Fixing wrong message sent when surface params are applied
Bug: 123874711
Test: Verified jar with Launcher
Change-Id: I966bfc5bd87396916dbacdf894dc6cca26a03593
2019-04-25 11:53:57 -07:00
Winson Chung
05500a3651 Merge "Ensure we get the right nav bar mode for the current user in sysui" into qt-dev 2019-04-25 06:14:57 +00:00
Winson Chung
1aa24b9b5e Ensure we get the right nav bar mode for the current user in sysui
- Load resources from the current user's context to ensure the right
  overlays are read
- Create a controller in sysui to dispatch mode change to prevent callers
  from calling with the wrong user's context
- Clean up the quickstep contract to prevent launcher from calling methods
  using the baked in fw resource ids

Bug: 130185871
Test: Switch to secondary user, ensure the mode is read correctly
Change-Id: I00d9276185777e340b3e758345a00d2e9b3e3e64
2019-04-24 16:51:26 -07:00
Sunny Goyal
247eb895dc Exposing some accessibility methods and state to be used in Launcher
Bug: 130905838
Test: Verified the build with updated launcher
Change-Id: I09f77abc8c767fca8879610bc3fcef1f4da7f821
2019-04-24 12:10:27 -07:00
Sunny Goyal
21a47e6dea Adding callback when surface params are applied
Bug: 123874711
Test: Verified that there are no leak logs
Change-Id: I5dcb27c9c44d674363824e703b923fa83e3132b9
2019-04-23 06:36:01 -07:00
Dave Mankoff
bbad0dda60 Replace synchronous calls to shared prefs with async calls.
Also, make a copy of protected data to prevent accidental changes
from outside callers.

Bug: 130525551
Test: Manual.
Change-Id: I7b6efa32bc6db88b79579effaa7ffe1466a80380
2019-04-19 21:15:33 +00:00
Winson Chung
e2a686dca3 Check that sysui states before allowing back gesture
- Ensure not in immersive mode, and also that the notification panel is
  not expanded

Bug: 130340004
Bug: 130417141
Test: Manual, ensure back doesn't work when notification panel is down or
      app is in immersive mode

Change-Id: I29f5cd80cc89b28802ca8b2c9e2956ae5b3b1151
2019-04-18 14:15:08 -07:00
TreeHugger Robot
73913e3bf6 Merge "Fixing HardwareBuffer leak when creating a bitmap" into qt-dev 2019-04-11 21:06:40 +00:00
Sunny Goyal
62915b28e0 Fixing HardwareBuffer leak when creating a bitmap
Callers are supposed to close the hardware buffer themselves. Creating
a utility method around this

Bug: 123874711
Test: No more leak warning on device
Change-Id: I2cf215f0646222f63e564a58edab1ffffa396ff3
2019-04-10 21:59:57 +00:00
Winson Chung
a313298ba9 Add state callbacks to launcher
Bug: 129785904
Test: Manual, change states and verify state is sent

Change-Id: I8db10688615f3021d8d1241a15010fa4a8c121b4
2019-04-10 14:18:35 -07:00
Tracy Zhou
9c675d4f4b Implement the new PiP animation (fade-in).
The new fully gestural navigation changes how user goes home from an
app as well as the animation of the app transition. The current PiP animation (bounds) is not compatible with the new model because of the direction of movements. Instead of animating bounds, we can fade the PiP window in after app closing animation finishes.

Fixes: 122609330
Test: 1. Open youtube, play a video, tap home to observe the new PiP
animation (demo video attached in the ticket b/122609330) 2. With gestural nav on, observe pip transition when swiping up to home.
atest ActivityManagerPinnedStackTests
atest BoundsAnimationControllerTests
atest RecentsAnimationTestTest

Change-Id: I28eeb1aa99c4fd569845ca7a42561f6b20796f9b
2019-04-09 10:37:32 -07:00
Winson Chung
099d3ae04b Merge "Add logging callback for back action" 2019-04-03 22:40:47 +00:00
TreeHugger Robot
b89d92b5d6 Merge "Adding some helper methods in QuickstepContract" 2019-04-03 20:26:44 +00:00
Winson Chung
04ff8bda2b Add logging callback for back action
Bug: 127848641
Test: adb shell setprop log.tag.UserEvent VERBOSE, hit back
Change-Id: Ic2289278acfd804cf40b93d0531a138d6e5c0445
2019-04-03 12:51:09 -07:00
Sunny Goyal
18ae97e337 Adding some helper methods in QuickstepContract
Test: N/A
Change-Id: I3d4c05820659a1f91d4a23f2bfd2ffc56ed06234
2019-04-03 11:25:59 -07:00
Sunny Goyal
a6a581279a Using input monitor for edge swipe handling for back
Bug: 112934365
Bug: 124299674
Bug: 124298541
Test: Verified build on device
Change-Id: Ic4cc4339b22aee63b0d96587f05dae3d8c01563f
2019-04-03 10:22:34 -07:00
Govinda Wasserman
1c72113451 Merge "Adds the ability for SysUI to request QSB alpha changes." 2019-04-03 15:59:10 +00:00
Adrian Roos
11dfd279a3 WindowInsets: populate system gesture and tappable element insets
Also fixes an infinite recursion when invoking
TestableContext.(un)registerComponentCallbacks().

Test: atest WindowInsetsPolicyTest
Bug: 126511573
Change-Id: I5c9f40054493a83746bce6124d72412e8eb8a0d1
2019-04-01 15:46:13 +02:00