Commit Graph

10087 Commits

Author SHA1 Message Date
Jason Chang
4d3995b399 Merge "Fix One-handed mode tutorial broken on large screen device" into tm-dev 2022-04-07 13:58:52 +00:00
TreeHugger Robot
833c210550 Merge "Clone mInsets when copying DeviceProfile to taskbar" into tm-dev 2022-04-07 13:44:14 +00:00
TreeHugger Robot
0bf61a64f6 Merge "Revert "Add screen record to FallbackRecentsTest#goToOverviewFro..."" into tm-dev 2022-04-07 11:12:50 +00:00
Alex Chau
9e9dd8fa43 Merge "Make AllApps bottom sheet follow finger and snap after 30% progress" into tm-dev 2022-04-07 09:50:04 +00:00
TreeHugger Robot
e633cca3bc Merge "Adding finish signal to GestureNavContract." into tm-dev 2022-04-07 03:24:01 +00:00
Sunny Goyal
5c20fdd73f Adding finish signal to GestureNavContract.
Also fixing also-closing behavior for FloatingSurfaceView for Android S

Bug: 228260232
Test: Verified manually on device
Change-Id: I83f6417a756c1459533294d681e83abba6ea58aa
2022-04-06 13:42:59 -07:00
Alex Chau
e0227551cf Clone mInsets when copying DeviceProfile to taskbar
- Set mInsets with windowBounds.insets when initialized, and set windowBounds.insets when cloning DeviceProfile
- Added more bottom sheet / all apps in DeviceProfile dump
- Also dump taskbar's device profile in dumpsys

Fix: 226968237
Test: Taskbar AllApps should have correct top padding
Test: adb shell dumpsys activity com.google.android.apps.nexuslauncher
Test: adb shell dumpsys activity service com.google.android.apps.nexuslauncher/com.android.quickstep.TouchInteractionService
Change-Id: I7739c699fb16544b92dc820354a643f745694c25
2022-04-06 19:44:43 +01:00
Stefan Andonian
510a818521 Show an 'Undo' snackbar when users dismiss a predicted hotseat item.
Bug: 200841778
Test: Hard-coded the flag to be true, and verified that the snack bar
is shown with the correct text. Also verified that talkback announces
"Item Removed" properly and that the correct log event is produced by
the AppEventProducer which AiAi needs to process the user action.

Change-Id: Ifbb9cf7aecf26cd4bcebf48d4fb07fb3d5af46bb
2022-04-06 17:22:40 +00:00
Alex Chau
c3d2d45851 Revert "Add screen record to FallbackRecentsTest#goToOverviewFro..."
Reason for revert: b/223278795 resolved
Reverted Changes:
I3ddcf5db0:Add screen record to FallbackRecentsTest#goToOverv...

Change-Id: I668637bf1733feb2de8c0ee3c70cbfb3adc269e1
2022-04-06 14:59:45 +00:00
Alex Chau
c83ea5f8fb Make AllApps bottom sheet follow finger and snap after 30% progress
Bug: 220336617
Test: manual
Change-Id: I0b6296cf5abf0f0a5f34fc2a0b5be93dc93ebf3f
2022-04-06 13:30:41 +01:00
Alex Chau
f5f589ad52 Merge "Ensure TestLauncher is actaully shown in goToOverviewFromHome" into tm-dev 2022-04-06 09:41:02 +00:00
Sunny Goyal
5e16325ccd Merge "Fixing crash when unfolding with an app already open" into tm-dev 2022-04-06 07:46:46 +00:00
Shawn Lin
d1567efff5 Merge "Fixed cts failure of WindowInsetsControllerTests" into tm-dev 2022-04-06 02:37:24 +00:00
Andy Wickham
894c0479ad Merge "Removes deprecated uses of Display#getRealSize in Gesture Nav Edu." into tm-dev 2022-04-06 01:43:05 +00:00
Alex Chau
499723636d Ensure TestLauncher is actaully shown in goToOverviewFromHome
- The previous activity can be other test activity with same package name, the check should be more speciifc on the launcher activity itself

Bug: 223278795
Test: com.android.quickstep.FallbackRecentsTest#goToOverviewFromHome
Change-Id: Ie9b88fa0ee16a5b1aec23258b09ab2a22450ac38
2022-04-05 19:55:53 +00:00
Andy Wickham
936c6c6ead Removes deprecated uses of Display#getRealSize in Gesture Nav Edu.
Fix: 227307214
Test: Manually went through the gesture nav tutorials.
Change-Id: I0c6fec12915bacec7933a4beb1a6aa68dc49dd67
2022-04-05 12:11:15 -07:00
Brian Isganitis
fe5684c2e8 Merge "Create ResourceBasedOverride for SearchSessionManager." into tm-dev 2022-04-05 17:22:13 +00:00
Thiru Ramasamy
b266baa64d Merge "Rename "ONE_SEARCH" attributes to "WEB_SEARCH"" into tm-dev 2022-04-05 14:20:13 +00:00
Alex Chau
d5d06190a7 Merge "Add ScreenRecordrule to FallbackRecentsTest" into tm-dev 2022-04-05 10:19:55 +00:00
Brian Isganitis
63c32cab98 Create ResourceBasedOverride for SearchSessionManager.
This override will allow Launcher3 to initialize and control a search session implementation.

Bug: 216683257
Test: Manual
Change-Id: I43d4793ef176cfd8e074961286356b96f9222ca9
2022-04-04 17:02:41 -07:00
Alex Chau
53d3be9d66 Add ScreenRecordrule to FallbackRecentsTest
Bug: 223278795
Test: presubmit
Change-Id: Iec9157165bb21626af7036a9c4df0dfcc447f890
2022-04-04 19:58:16 +01:00
Pat Manning
10b77ab7e7 Merge "Animate overivew actions view hiding on scroll." into tm-dev 2022-04-04 18:43:08 +00:00
Pat Manning
458dcdbe1e Animate overivew actions view hiding on scroll.
Test: manual
Fix: 221113300
Change-Id: Ie21343e280639e027f012d9c734b798f4dc4e71a
2022-04-04 17:10:27 +01:00
Thiru Ramasamy
dde19ea64d Rename "ONE_SEARCH" attributes to "WEB_SEARCH"
* Minor fix to logging

Bug: 210792253
Test: manual
Change-Id: Ib32b945e1fa7696b3b8360dae01e1bd00295ff8d
2022-04-01 23:10:43 +00:00
Tracy Zhou
b5f7e4fc19 Fix npe in FrameHandler
Previously we check if the view root is null, but after ag/16308550 we no longer do so

Fixes: 208657242
Test: N/A
Change-Id: I0bb4a1b26ca8b201393587e7d0d922b7d4e08419
2022-03-31 21:46:47 -07:00
Tracy Zhou
bb75f59792 Merge "Do not append additional delimiters" into tm-dev 2022-04-01 04:26:20 +00:00
Tracy Zhou
0439fcdd5c Do not append additional delimiters
Fixes: 227665358
Test: N/A
Change-Id: I6ec0bca286c0824e474f04a61b7d855858490120
2022-03-31 17:15:46 -07:00
Vinit Nayak
c8b2fdbc6a Merge "Add metrics for taskbar 3 button nav" into tm-dev 2022-03-31 23:22:33 +00:00
Tony Wickham
6e9c06998d Merge "Log when calling disposeEventHandlers" into tm-dev 2022-03-31 23:20:46 +00:00
Vinit Nayak
26b6b577b9 Add metrics for taskbar 3 button nav
Fixes: 221075063
Test: wwlogcat shows right events,
new events show up on aster dashboard

Change-Id: I3864ac02ea00f281d33ccb26b95a4916bd8b6be9
Merged-In: I3864ac02ea00f281d33ccb26b95a4916bd8b6be9
2022-03-31 19:36:47 +00:00
Schneider Victor-tulias
3a6b7360a2 Merge "Add public constructors to gesture tutorial fragments." into tm-dev 2022-03-31 17:30:14 +00:00
Tony Wickham
e0c464a0e0 Merge "Decouple taskbar background color from overview" into tm-dev 2022-03-31 17:28:40 +00:00
Tony Wickham
ae82fc4ba0 Decouple taskbar background color from overview
- Taskbar background is 15L but Overview dark should be 35L

Test: Swipe up from taskbar (which is 15L), background matches until
going to overview, then animates to appropriate overview color based on
theme (light or dark).
Bug: 227344452
Change-Id: I52d892a569c8db565b4cfe271e532009f34ec669
2022-03-31 17:28:16 +00:00
Alex Chau
5f8386cf26 Merge "Using the WindowMetrics API instead of display.getRealSize" into tm-dev 2022-03-31 10:58:40 +00:00
Vinit Nayak
254c77e279 Merge "Fix translation for secondary split thumbnail in RTL" into tm-dev 2022-03-31 04:19:42 +00:00
Schneider Victor-tulias
054faba0a1 Add public constructors to gesture tutorial fragments.
The lack of public, no-arg constructors was causing the tutorial to crash on re-creation (eg. rotating the screen.) Added public constructors and refactored event logging.

Also added an update to the All Set page to allow the subtitle to display in one line.

Fixes: 226321558
Fixes: 226550217
Test: manual
Change-Id: I00a6135e658a66313df5e07833e6c6a20a618672
2022-03-30 23:51:18 +00:00
Hongwei Wang
fe43ca95da Merge "Handle shadow radius for auto-pip in Launcher" into tm-dev 2022-03-30 22:23:51 +00:00
Sunny Goyal
36c0f76e21 Using the WindowMetrics API instead of display.getRealSize
Bug: 221961069
Bug: 195408476
Bug: 198965093
Test: Verified locally and presubmit
Change-Id: I4dac9c19df4c43e6a38ba5c05f27d25f4cfcb071
2022-03-30 21:07:23 +00:00
Vinit Nayak
1322fc3710 Fix translation for secondary split thumbnail in RTL
Fix: 225157531
Test: Swipe up in RTL shows both thumbnails
were expected.

Change-Id: I87d286b6ce6542c7cffadf86e3d4d99a3618f984
2022-03-30 10:32:51 -07:00
shawnlin
34aad9e022 Fixed cts failure of WindowInsetsControllerTests
If stashing taskbar is caused IME visiblity, we could just skip updating
rounded corner insets since the rounded corners will be covered by IME
during IME is showing and task bar will be restored back to unstashed
when IME is hidden.

Bug: 225765490
Test: atest WindowInsetsControllerTests
Change-Id: If8f40add0d4d9f746169d26f46f27545b4023e90
2022-03-30 18:20:32 +08:00
Sunny Goyal
6d5a1c1307 Fixing crash when unfolding with an app already open
Bug: 227388787
Test: Manual
Change-Id: Ib1726b99a978bd613c337c2eff4873322d894485
2022-03-29 16:29:05 -07:00
Vinit Nayak
db2c726560 Merge "Always look for MODE_OPENING during task launch from overview" into tm-dev 2022-03-29 21:11:26 +00:00
TreeHugger Robot
4cb55616e2 Merge "Close system windows when toggling overview" into tm-dev 2022-03-29 16:56:16 +00:00
Tony Wickham
b2aa48cad6 Merge "Fix problems with taskbar floating views on rotation" into tm-dev 2022-03-29 16:36:16 +00:00
Tony Wickham
c30e733d5f Merge "Update gesture region when display size changes" into tm-dev 2022-03-29 16:33:58 +00:00
Jason Chang
ae4d2193d9 Fix One-handed mode tutorial broken on large screen device
Change the orientation judgement by checking display info's
width & height

Bug: 223486060

Test: manual
Change-Id: I94947ad635146dcb656e5074577b297617326c8d
2022-03-29 13:46:27 +00:00
Alex Chau
f10b877fbd Merge "Add screen record to FallbackRecentsTest#goToOverviewFromHome" into tm-dev 2022-03-29 11:39:44 +00:00
TreeHugger Robot
38aeb36043 Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-dev 2022-03-29 07:37:55 +00:00
Vinit Nayak
526f4ce7ae Always look for MODE_OPENING during task launch from overview
* Previously the target mode was dependent on whether liveTile
was running or not, opposite targets seem to be coming in from
WM now.
* Remove a bunch of un-used code from LauncherSplitScreenListener
that was used when we only allowed one split pair in overview
previously. Now that is handled by RecentTasksController in shell
so we don't need any additional bookkeeping.

Fix: 212220301
Test: Able to launch side tasks in overview
Change-Id: I002340d98ba379cb4ab9ae37eadfa235d6b5e56d
2022-03-28 21:32:09 -07:00
Sebastián Franco
9d5eef80cd Merge "Brighten theme-icons when in Dark mode and add dark color for taskbar" into tm-dev 2022-03-29 00:00:33 +00:00