Commit Graph

10685 Commits

Author SHA1 Message Date
Pat Manning
f77606c8be Merge "Clip taskbar size from bottom of thumbnail in overview." into tm-qpr-dev 2022-07-13 10:43:12 +00:00
Yunfan Chen
4726b4fc21 Merge "Provide IME insets with insetsSizeOverrides" into tm-qpr-dev 2022-07-13 02:45:58 +00:00
Pat Manning
9f61347bc6 Clip taskbar size from bottom of thumbnail in overview.
Remove other TaskView clipping logic as it is always false for other sides.

Fix: 234007059
Test: TaskThumbnailViewTest
Change-Id: I56210605fb8c2f433236a82932aaa2800afe392b
2022-07-12 13:27:25 +01:00
Alex Chau
fbd9ebd0a0 Merge "Make workspace and hotseat scale down in widgets picker" into tm-qpr-dev 2022-07-12 10:08:20 +00:00
Hongwei Wang
46f79bda0c Merge "Adjust the auto-pip app bounds for TaskBar" into tm-qpr-dev 2022-07-08 21:31:48 +00:00
Alex Chau
0c4e11b479 Make workspace and hotseat scale down in widgets picker
- Also centralized workspace content scale percentage to DeviceProfile

Test: manual
Fix: 231699666
Change-Id: I3f8dcb9921e0cd93ad391d51120b189005ad07df
2022-07-08 19:03:48 +01:00
Hongwei Wang
2501f228bd Merge "Ensure sendUserLeaveHint be false when split from Overview" into tm-qpr-dev 2022-07-08 17:02:58 +00:00
Sunny Goyal
251ee0a066 Merge "Removing tabWidth calculation and using DeviceProfile directly" into tm-qpr-dev 2022-07-08 15:39:30 +00:00
Alex Chau
1eb730a69c Merge "Always return portrait orientation handler when Recents activity can rotate" into tm-qpr-dev 2022-07-08 10:52:01 +00:00
Alex Chau
653cad4ec6 Merge "Use taskbarSize to calculate clippedInsets" into tm-qpr-dev 2022-07-08 10:51:51 +00:00
Hongwei Wang
a9f258cb12 Adjust the auto-pip app bounds for TaskBar
When on tablet / large-screen devices where TaskBar is present, the
bounds of the recents animation leash would be cut by TaskBar height,
therefore we need to adjust the app bounds for auto-pip accordingly.

Video: http://recall/-/aaaaaabFQoRHlzixHdtY/fmMql9z3gYIu98ntQYklQU
Video: http://recall/-/aaaaaabFQoRHlzixHdtY/hvoqi4bBWyPMgwzEXXrnnC
Bug: 201824622
Test: Enter PiP from GMM on tablet and unfolded foldables, both \
      landscape and portrait, with TaskBar stashed and unstashed.
Change-Id: Id91190b8f0045db4af0f2a3f1993149dc34457ab
2022-07-07 10:41:37 -07:00
Alex Chau
fb790ea6c7 Enable overlay for all fully visible tasks
Fix: 238310277
Test: In tablet, all fully visible tasks have overlay enabled
Test: In handheld, only current and not adjacent tasks have overlay enabled
Test: No overlay in groupedTaskView
Change-Id: I59b8bebc4e701d3042217f9af222db0b5337ea16
2022-07-07 15:59:44 +01:00
Hongwei Wang
81dde0d3fb Ensure sendUserLeaveHint be false when split from Overview
This is to ensure that we do not enter PiP when the user intention is to
create split-screen.

Video: http://recall/-/aaaaaabFQoRHlzixHdtY/gSDHKaYxyTEQ6665rr4lt9
Video: http://recall/-/aaaaaabFQoRHlzixHdtY/hTmOVfZDExC14JaJ5fXAZf
Bug: 234070451
Test: Split from menu option when in Overview in both folded and \
      unfolded states, see also videos
Change-Id: Id0a2470f9b37cae2e0897d0570f68909c995f8e0
2022-07-06 16:18:46 -07:00
Pat Manning
6501379fcc Merge "Hide action buttons instead of whole overview actions view in order to show share target." into tm-qpr-dev 2022-07-06 20:05:03 +00:00
Tony Wickham
4b2bf90f2c Merge "Proper fix for gesture nav flicker using runOnPageScrollsInitialized()" into tm-qpr-dev 2022-07-06 16:30:01 +00:00
Tony Wickham
ca6480341e Merge "Add null check on mRecentsView in the InputConsumerProxy" into tm-qpr-dev 2022-07-06 16:27:14 +00:00
Tony Wickham
0c8ceda6e7 Merge "Move TEST_HARNESS_TRIGGER_TIMEOUT to MotionPauseDetector directly" into tm-qpr-dev 2022-07-06 16:25:03 +00:00
Pat Manning
7ab2ff0007 Hide action buttons instead of whole overview actions view in order to show share target.
Test: manual.
Fix: 234606068
Change-Id: I1b7115a6faffd1dcb00528220fe6607f8035c4fe
2022-07-06 14:50:00 +01:00
Thales Lima
b8c0595d42 Add new hotseat bottom margin options
This changes how the hotseat height is calculated and by consequence how spaces are distributed in the workspace as well. This is the first of a series of changes that will improve and streamline workspace calculations.

Bug: 228998463
Fix: 234023782
Fix: 230191631
Fix: 232914299
Fix: 236238226
Test: manual, HSV and comparing to mocks
Change-Id: If021e8ba2c7c24c0bf9f27a1aa7aa946792ed04f
2022-07-05 15:33:47 +01:00
Pat Manning
0f8bbef729 Merge "Simplify vertical bar hotseat bottom calculation for spring loaded state." into tm-qpr-dev 2022-07-05 10:28:10 +00:00
Alex Chau
b00a9fca79 Use taskbarSize to calculate clippedInsets
- Instead of calculating clippedInsets from thumbnail dimension, always use taskbarSize
- Clean up clippedInsets code as only bottom inset is ever present

Fix: 235328056
Test: With taskbar hidden, out of orientation thumbnail has proper size in quickswitch and overview
Change-Id: I3d7fc7899f04862c3401935b10f475e9ab74685a
2022-07-04 18:49:11 +01:00
Pat Manning
a7335bccdc Simplify vertical bar hotseat bottom calculation for spring loaded state.
Fix: 236941743
Test: manual.
Change-Id: I7f110fea48eb88e7f941a64c17a65feec14531f3
2022-07-04 12:45:40 +01:00
Tony Wickham
ce563b6b44 Add null check on mRecentsView in the InputConsumerProxy
Test: N/A
Fixes: 237217685
Change-Id: I45352f180e3df3298039b183eee743e5a246f543
2022-07-01 16:52:06 -07:00
Jeremy Sim
e19aab9010 Merge "Allows Launcher to recover gracefully into OverviewSplitSelect state" into tm-qpr-dev 2022-07-01 21:40:34 +00:00
Alex Chau
2f8e69ea96 Always return portrait orientation handler when Recents activity can rotate
Fix: 232164817
Test: In tablet, launch app in landscape, rotate to portrait, swipe up and RecentsView should be in correct orientation
Test: In phone, swipe up to potrait home from landscape only apps
Change-Id: Ia7cbd841decc4370aaf3de1f865e5abb9f5f6bf0
2022-07-01 15:06:13 +01:00
Yunfan Chen
7f6eb29b9a Provide IME insets with insetsSizeOverrides
The frameworks extended the API to let window provide insets to given
typed window with insetsSizeOverrides. Migrate to the method to
provide insets for IME.

Test: build
Test: the IME can receive correct insets
Bug: 225200928
Change-Id: Ic8eab5198221bc8de6eca432e8b3e11067c83d57
2022-07-01 13:03:09 +09:00
Jeremy Sim
c94f4b779b Allows Launcher to recover gracefully into OverviewSplitSelect state
When Launcher restarts (as the result of a UiModeChange or something else), it attempts to recover its previous state. However, the OverviewSplitSelect state is unique because it requires some additional information to recover properly (the taskId of the staged task and so on). This change makes it so that the relevant information is passed forward in the recovery bundle. Launcher will now restart in the base Overview state, and then immediately apply the saved data to recover the OverviewSplitSelect state.

Fixes: 233019928
Test: Manual
Change-Id: Ie6123ef9c374be000268f82857b696c49213c541
Merged-In: Ie6123ef9c374be000268f82857b696c49213c541
2022-07-01 00:07:54 +00:00
Tony Wickham
539c2703ea Move TEST_HARNESS_TRIGGER_TIMEOUT to MotionPauseDetector directly
- Removed TestProtocol.sForcePauseTimeout and
  TestProtocol.REQUEST_SET_FORCE_PAUSE_TIMEOUT
- Instead, add MotionPauseDetector.TEST_HARNESS_TRIGGER_TIMEOUT, which
  is used when Utilities.IS_RUNNING_IN_TEST_HARNESS.

Test: unbundled/launcher/launcher3_test_platform
Fixes: 232548865
Change-Id: I224e99042b41375cab6bffd555434217518958c5
2022-06-30 12:16:08 -07:00
Tracy Zhou
1092ccacbf Merge "Show IME switcher only when physical keyboard is connected in 3 button nav (instead of also when virtual keyboard is visible)" into tm-qpr-dev 2022-06-29 21:27:17 +00:00
TreeHugger Robot
3cbbacebc8 Merge "Let launcher clean-up shell transition leashes" into tm-qpr-dev 2022-06-29 02:41:30 +00:00
Wei Sheng Shih
0dd24fc7c3 Merge "[Shell Transition]Fix live tile be hidden by wallpaper leash." into tm-qpr-dev 2022-06-29 02:10:19 +00:00
Anushree Ganjam
a65cc60f9d Merge "Move bitmapSupplier.get() call to a worker thread." into tm-qpr-dev 2022-06-28 23:13:35 +00:00
Hongwei Wang
6c4b75c365 Merge "Scale the surface by progress when auto enter PiP" into tm-qpr-dev 2022-06-28 16:40:21 +00:00
Vinit Nayak
6b05c8ce1f Merge "Close all open views for 1P and 3P launchers" into tm-qpr-dev 2022-06-28 16:24:16 +00:00
Vinit Nayak
c012c5385d Merge "Hide split option if task is not dockable" into tm-qpr-dev 2022-06-28 16:15:52 +00:00
Nicolò Mazzucato
5529b23fbb Merge "Add jank monitoring for taskbar appearing and disappearing" into tm-qpr-dev 2022-06-28 15:15:35 +00:00
Vaibhav Devmurari
b1405a2fc1 Merge "Allow taskbar and taskbar all apps window to receive split touches" into tm-qpr-dev 2022-06-28 10:24:27 +00:00
Nicolo' Mazzucato
8256537fdb Add jank monitoring for taskbar appearing and disappearing
Bug: 228969045
Test: record a perfetto trace and make sure the interaction is there
Change-Id: Id220f8eef5b08fb69410e08c230f867ffe21d126
2022-06-28 08:28:35 +00:00
Vinit Nayak
e8a805c3f6 Hide split option if task is not dockable
* Also hide if activity is currently in multi-window
to keep logic parity

Fixes: 236689017
Test: Unable to initiate split with Camera app
Change-Id: Ib7e3043cbc7d4e2ef5da51779de36969ae7e6fef
2022-06-27 22:26:11 -07:00
Tracy Zhou
5bd220a230 Merge "Stash task bar when ime switcher is showing" into tm-qpr-dev 2022-06-28 04:50:34 +00:00
Anushree Ganjam
d1a3e7ff2c Move bitmapSupplier.get() call to a worker thread.
bitmapSupplier.get() is called twice which is unnecessary.
Call bitmapSupplier.get() in the constructor instead.

Bug: 232850298
Test: Manual.
OverView - shareImageToTarget https://b.corp.google.com/issues/232850298#comment8
Screenshot share from Toast - https://b.corp.google.com/issues/232850298#comment7

Change-Id: I920f89b90fafcc0d51b1b948fd76fdc9aaee4c52
2022-06-28 00:42:53 +00:00
Evan Rosky
6f4613749e Let launcher clean-up shell transition leashes
Originally disabled this when we were directly using
the transition's leashes for animation (since the transition
system owns those leashes). However, now that we create our
own leashes in RemoteAnimationAdapterCompat, we can use this
logic again.

Bug: 235616350
Test: launch and close app in quick succession
Change-Id: I27f70f26e114443aeb83671437f54747aae92c51
2022-06-27 16:07:33 -07:00
Tracy Zhou
6663ebba3e Merge "Perform haptic feedback on nav button key press" into tm-qpr-dev 2022-06-27 22:55:42 +00:00
Hongwei Wang
56911984e4 Scale the surface by progress when auto enter PiP
Video: http://recall/-/aaaaaabFQoRHlzixHdtY/coTRupQrNjoSwGDzMhA4X7
Video: http://recall/-/aaaaaabFQoRHlzixHdtY/fDqPTOPwyxHaZ4HLZDF7di
Bug: 235268241
Test: Verify the auto enter PiP animation for YouTube in \
      both folded and unfolded state. See also videos.
Change-Id: I6fc10d6a733b8bdd3587994e8e27c4d6ab7e4f39
2022-06-27 11:32:15 -07:00
Tony Wickham
c4405218ca Merge "Log when MotionPauseDetector detects onMotionPauseChanged" into tm-qpr-dev 2022-06-27 17:28:17 +00:00
Vaibhav Devmurari
207e374413 Allow taskbar and taskbar all apps window to receive split touches
Adding feature to allow UI interaction during Drag and drop.
To allow user to interact with taskbar UI during D&D, the window
should support FLAG_SPLIT_TOUCH to receive touch events while user
using D&D.
DD: go/global_drag_and_drop

Test: manual
Bug: 220109830
Change-Id: Icd549aa272c140d865d89eeb9f5619b5ab13c015
(cherry picked from commit 0074baa82e)
2022-06-27 10:11:58 +00:00
Tracy Zhou
015adda83c Stash task bar when ime switcher is showing
Bug: 226489759
Test: connect to physical keyboard and select a typable field, and make sure the task bar is stashed
Change-Id: Ie1cf753f793dc9cb350e57e9448c2913260992ca
2022-06-25 16:26:13 -07:00
Tracy Zhou
849a0c4e81 Show IME switcher only when physical keyboard is connected in 3 button nav (instead of also when virtual keyboard is visible)
Bug: 226489759
Test: connect to a physical keyboard in 3 button nav and make sure the ime switcher shows; and doesn't show with virtual keyboard
Change-Id: Ib9a5880eb1bd6d5b877a9f3789ce858f399c4910
2022-06-24 23:40:41 -07:00
Tracy Zhou
f9fafe7a92 Merge "Fix ime switcher not showing for 3-button nav" into tm-qpr-dev 2022-06-25 06:36:39 +00:00
TreeHugger Robot
ce12869fad Merge "Treat all apps predictions as all app icons when animating icons to their original position" into tm-qpr-dev 2022-06-25 06:33:16 +00:00