Commit Graph

381 Commits

Author SHA1 Message Date
Pinyao Ting
3c530ff514 allow error notification in plugin framework to be shown in external
process, such as Launcher

Bug: 139823632
Change-Id: Id0307e483e66bd3c396f5355a526e4c728e68335
Test: Manual
2019-08-22 10:42:16 -07:00
Hongwei Wang
006e34e49e Merge "Enables back gesture nav in screen pinning" into qt-r1-dev am: f8108f81cc am: c55e4e668f
am: 57a9fbff5b

Change-Id: If4b60e1c5a7f08d6ae8a92b1504ddc02beafae7f
2019-08-14 15:16:44 -07:00
Hongwei Wang
c55e4e668f Merge "Enables back gesture nav in screen pinning" into qt-r1-dev
am: f8108f81cc

Change-Id: Ibc491beb050da96ea742194c0f539d44c46f845b
2019-08-14 14:31:18 -07:00
Hongwei Wang
c0cc6218aa Enables back gesture nav in screen pinning
Bug: 138969972
Test: Back gesture in screen pinning mode
Change-Id: I0ddb7a6e7978e7ec82d7949048e75147c5ece3c8
2019-08-13 10:50:43 -07:00
Tracy Zhou
8089ffaced Pass the captured snapshot data to Launcher when recents animation is
cancelled.

In the current implementation, when recents animation is cancelled due
to stack order change, window manager replaces the surface with a
snapshot before cancellation. Launcher needs to acquire the snapshot in
order to switch the live tile into snapshot mode, and yet because the
recents animation is cancelled, that snapshot can no longer be acquired
anymore. This change takes care of this "relay" process.

Fixes: 138683199
Test: N/A
Change-Id: I1c11af38c2bdc442e3b45d0b5f0c7e7e37c2b0f0
2019-08-11 17:00:38 +00:00
TreeHugger Robot
23e5669c92 Merge "Only fire EvictionCallback when item actually evicted" 2019-08-09 02:09:21 +00:00
Vinit Nayak
e185ac2b8b Merge "Create general callback for changes to RecentTaskList" 2019-08-06 22:05:26 +00:00
Vinit Nayak
88c504cbc5 Only fire EvictionCallback when item actually evicted
In TaskKeyLruCache, we currently call the EvictionCallback
without checking if the entry was actually evicted or not.

fixes: 138952364
Test: Unit tests, manually inspected via debugger

Change-Id: Ic8e871f8e5a0324e4d00011d5bcd7036302b5c68
2019-08-05 15:16:18 -07:00
Adrian Roos
304f75603b GestureNav: Log exclusion rect heights am: 5f2c9a14f5 am: fde134f106
am: e4b2440287

Change-Id: If3f626a85dcf93482ad580e93c1c5b49299fd78f
2019-08-05 14:43:57 -07:00
Adrian Roos
e4b2440287 GestureNav: Log exclusion rect heights am: 5f2c9a14f5
am: fde134f106

Change-Id: I6b4d05cbd7f9b42dd4e2e340b2abadc791c69f37
2019-08-05 14:30:16 -07:00
Adrian Roos
ad19429212 GestureNav: Log exclusion rect heights
am: 5f2c9a14f5

Change-Id: Ic64a4394729c416813888244639ee31a1bb24d70
2019-08-05 14:18:13 -07:00
Adrian Roos
5f2c9a14f5 GestureNav: Log exclusion rect heights
Logs the rejected and requested exclusion rect heights.

Test: adb shell device_config put android:window_manager key_system_gesture_exclusion_log_debounce_millis 1000
Bug: 135152789
Change-Id: Ie12640f4bf0a8b40b666e604188a0bedd85e8981
Exempt-From-Owner-Approval: DeviceConfig.java: Adding constant to WindowManager namespace.
2019-08-05 21:19:40 +02:00
Tracy Zhou
4465cd3487 Merge "Change RecentsAnimationListenerSet interface" into qt-qpr1-dev am: 1ed86c9cf1
am: e103b2b9c8

Change-Id: I2b7cd26ee6e09d9ec1b0abd9977352a7c968c225
2019-08-01 19:44:25 -07:00
Tracy Zhou
f36321fc91 Change RecentsAnimationListenerSet interface
Instead of passing a boolean value signaling whether to defer with
screenshot, we want to pass the actual screenshot to Launcher if that's
the case. Another change will follow to implement passing the screenshot
from the window manager.

Bug: 138683199
Test: N/A
Change-Id: If5956436641aa35ffac3122fb53d13366552e0f1
2019-07-31 12:16:40 -07:00
Winson Chung
18cde725d3 Adding quick settings flag to sysui state am: 5b6a1fe8a8 am: dd26fafd8d
am: fb06056b79

Change-Id: Id453e9d9012a34ab45102fdcd4075bb42f4143bd
2019-07-28 01:52:55 -07:00
Winson Chung
5b6a1fe8a8 Adding quick settings flag to sysui state
- We were previously ignoring the QS state for notifications expanded since
  we were only using that flag for gating whether to allow back. But since
  we also use the state for gating swipe up, we should be explicit and
  check that both notifications are hidden and we are not in QS.

Bug: 135969043
Test: Swipe into QS, ensure the state is set
Change-Id: Ia284938e32f54998bf7aba3a051de2b30cdc0e26
2019-07-28 05:29:59 +00:00
Vinit Nayak
3e73749c13 Create general callback for changes to RecentTaskList
New callback called whenever a user visible task
is added or removed to the recents list. This results
in less work by updating only when recent task list
changes instead of listening for active task list
changes.

Test: atest RecentTasksTest

fixes: 111077107

Change-Id: I9acf13762d0c79bfde90b64fa5e0edaf882068cc
2019-07-26 12:10:47 -07:00
Vinit Nayak
0739ec03c1 Merge "Prevent key removal on cache update" into qt-r1-dev am: c1dc1facea am: 0b23789274
am: 3454e5970c

Change-Id: I6217571e072efa30542718e4e44c3eb472aaf6f7
2019-07-26 09:49:59 -07:00
Vinit Nayak
3a9f1f547a Prevent key removal on cache update
Recent thumbnail cache keys were prematurely
deleted from the TaskKeyCache.

Test: atest SystemUITests:TaskKeyLruCacheTest

fixes: 111077107
Change-Id: I4d38ba1f69b4a4b9898e1951b68181f27f92c116
2019-07-26 01:20:14 +00:00
Winson Chung
df69ae467a Merge "Modify deferred recents animation cancel to work without screenshot" into qt-r1-dev am: 48e3cfc06a am: 932a656359
am: 71626be681

Change-Id: Ie5636139863163d42788314c0e8ca0c946a80ae1
2019-07-24 00:33:54 -07:00
Winson Chung
3d00facef8 Merge "Proxy search disabled flag to Launcher" into qt-r1-dev am: 6d4d529fb1 am: ea9527d31f
am: 1fca79b766

Change-Id: I9955d17200e9af9cc29794a771469f14eab8c6c4
2019-07-23 23:41:18 -07:00
Winson Chung
48e3cfc06a Merge "Modify deferred recents animation cancel to work without screenshot" into qt-r1-dev 2019-07-24 05:14:05 +00:00
Winson Chung
cb6454e68a Proxy search disabled flag to Launcher
Bug: 137652372
Test: Just adding a flag
Change-Id: Ib1936dc0d2eed02bc2ef0dd7e091cbc4fa7af682
2019-07-23 15:55:10 -07:00
Winson Chung
7a545ae9cc Modify deferred recents animation cancel to work without screenshot
- Allow the recents animation runner to request deferring a cancel from
  stack order change until the next app transition start without using
  a screenshot. This allows launcher to set this state, then start an
  activity without a flash due to the animation not finishing immediately
- Always prepare a transition when using the deferred cancel to ensure
  an app transition callback
- Handle app transition canceled as well (if canceled, we continue to
  cancel recents the animation with/without the screenshot as requested)
- Remove internal lock and use the global WM lock when setting the defer
  cancel state
- Renamed a few methods to clarify the deferred cancel flow

Bug: 137196872
Test: atest FrameworksServicesTests:RecentsAnimationControllerTest
Test: atest WmTests:RecentsAnimationTest
Change-Id: Ie8f6f60b6bf6777e36f24749b30f90c8c26ee848
2019-07-23 15:50:33 -07:00
Dave Mankoff
482796022a Fix flakes related to concurrent access of PluginManager.
Bug: 138139118
Test: atest SystemUITests
Change-Id: I53cfbf80e01c807ff6ba91f62e8afb7f9290c543
2019-07-23 13:36:48 -04:00
Hongwei Wang
3b9bdcffaf Adds identifier to TaskSnapshot
This identifier is introduced to differentiate two task snapshots in
AiAi. Currently, the timestamp (in millis) is chosen as the identifier.

Bug: 136563752
Test: atest TaskSnapshotPersisterLoaderTest
Change-Id: I249511d1e4bb34a93d5db08d2b1cea3b1ee5d034
2019-07-16 10:36:52 -07:00
Sunny Goyal
d147b36dea Merge "Adding method to check if a task is running in home stack" into qt-r1-dev am: 22110bae84
am: b45b84324b

Change-Id: I259ac9b58865dfcb15ccf3a6ab6ef724c3a57b90
2019-07-12 17:56:09 -07:00
Sunny Goyal
f5b03e0921 Adding method to check if a task is running in home stack
Bug: 137197916
Test: Verified on Launcher
Change-Id: I0260fa63e19bf7a22d81f44b56bd7e9818b19d16
2019-07-12 14:08:43 -07:00
Sunny Goyal
8b4ed43f99 Merge "Autoenabling gesture mode only is the device is unmanaged" into qt-r1-dev am: 7d5da92740
am: b8c400cc91

Change-Id: I4288a5ddf92020d4a6bbedafda70b4535745bed3
2019-07-12 09:38:45 -07:00
TreeHugger Robot
7d5da92740 Merge "Autoenabling gesture mode only is the device is unmanaged" into qt-r1-dev 2019-07-12 15:47:36 +00:00
Sunny Goyal
56d145fef9 Autoenabling gesture mode only is the device is unmanaged
> Adding a protected broadcast to enable gesture mode

If the device is not managed, gesture mode will be wnabled once setup-wizard
finishes. Otherwise, it will wait for a protected broadcast from the device/profile
owner app which can switch the device to gesture mode.

Bug: 134473386
Test: Verified on device setup in device owner and profile owner mode
Change-Id: I7d32d5461eef19a30f323295c7a9bac975adbf91
2019-07-09 14:37:29 -07:00
Jorim Jaggi
a6f397cd94 Merge "Launch recents from main thread" into qt-r1-dev am: 671ff72e46
am: e2e5f119fb

Change-Id: I76bc96dbbdc14c1bf5f6ecd9e94759876fdf053f
2019-07-09 06:24:17 -07:00
Jorim Jaggi
d6f0a5c243 Launch recents from main thread
Such that binder response inherits our nice scheduling
characteristics.

The old logic isn't really needed anymore, as we don't do anything
interesting on the main thread.

Test: Open app from recents
Fixes: 136111411
Change-Id: Ibfb0f60113bc0d9d94844ea4cde0e78723183eb2
2019-07-08 16:53:08 +02:00
David Nelloms
21e69dd2d1 Merge "Notify on task display change." into qt-r1-dev am: d2310e6ce3
am: 9733e690f9

Change-Id: Id3edb8a4410c85c4ea594738f88e52c49ec8223e
2019-06-27 11:19:15 -07:00
davidln
1ceedb55d0 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
2019-06-25 21:05:31 -07:00
Vishnu Nair
4bcd152a3a Remove SurfaceControl#getHandle from JAVA apis 1/2
Holding on to a reference of the handle in Java will keep the server-side surface alive until
the reference is removed by GC. This may cause surfaces to be kept alive longer than necessary.
Instead hold on the surface control and call SurfaceControl#release which will release the local
reference to the server-side surface.

Bug: 136004147
Test: go/wm-smoke
Test: gesture nav sanity tests
Test: atest CompositionSamplingListenerTest

Change-Id: Iab33680746c8f48c28783e6a2a13c9ac7ae04980
2019-06-25 17:31:11 -07:00
Sunny Goyal
95108f8c36 Merge "Using correct slop for checking quickstep gesture" into qt-dev am: 6f72636bb6
am: f3ede32617

Change-Id: I19ee39208dabcc54fe1ca38d619643cb020fb552
2019-06-19 19:44:00 -07:00
Sunny Goyal
7c3d6126bf Merge "Using correct slop for checking quickstep gesture" into qt-dev
am: 6f72636bb6

Change-Id: I909f0cc2e32ba44664e88046529cc626a81c8a31
2019-06-19 18:35:24 -07: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
Sunny Goyal
29a2b1109c Merge "Hiding home handle while on home in no-button mode" into qt-dev
am: 702c5199f9

Change-Id: I4c6f425736ff84ed21d513b00ee16219240b4b74
2019-06-17 17:41:33 -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
Jorim Jaggi
a8393c6b07 Merge "Trace sync rt transaction applier" into qt-dev
am: c6f5069668

Change-Id: Ifdfa1389a022a396167e606287485aabf7768c76
2019-06-13 16:29:14 -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
e43cea0622 Merge "GlobalScreenshot - Fix race condition" into qt-dev
am: 0ebf0252e0

Change-Id: Idd450a77f83c91b50e706b17ef3fb123c000a779
2019-06-11 17:12:33 -07: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
8533a4cc62 Merge "Expose keyguard showing-but-occluded state to launcher" into qt-dev
am: c8120d6d6a

Change-Id: Id709a812fc1db45e99a69a7114f2ff665b142cc2
2019-06-04 18:16:37 -07: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