Commit Graph

48282 Commits

Author SHA1 Message Date
Bill Yi
dbda4a9043 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: bd6dd7d908 -s ours am: 39c6c0fbbc -s ours am: 679bdcafac -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19118359

Change-Id: I2016a734c8b6e06d647f95942d5930e988694b77
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-30 23:07:29 +00:00
Bill Yi
679bdcafac [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: bd6dd7d908 -s ours am: 39c6c0fbbc -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19118359

Change-Id: I72a52ca55e4537c7eb1007fe92484574841e590f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-30 22:39:17 +00:00
Bill Yi
39c6c0fbbc [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: bd6dd7d908 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19118359

Change-Id: I798c4c6e5a74dac7a68ce4e827c436018aaf95eb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-30 22:34:41 +00:00
Sunny Goyal
cb31a64299 Merge "Fixing widget accessibility node order" into tm-qpr-dev 2022-06-30 19:22:26 +00:00
Abhilasha Chahal
a8dcd442fe Merge "Allow overriding DragController and drag use cases" into tm-qpr-dev 2022-06-30 10:04:07 +00:00
TreeHugger Robot
72c5f330bf Merge "Add TAPL API for adding app icon to hotseat" into tm-qpr-dev 2022-06-30 05:28:14 +00:00
Sihua Ma
9ce586b3cb Merge "Fill the fade-in ImageView with its content for the cross fade animation" into tm-qpr-dev 2022-06-29 22:17:20 +00: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
Sunny Goyal
4827a7d5a9 Fixing widget accessibility node order
Making sure that that search and prediction bar are on top of
RecyclerView/PagedView. This is determined by the widget of the
drawn width of the views if their top matches

Bug: 209579563
Test: Verified that the tite is focused first when opening widgets
Change-Id: Ib800b3743ece915ac4894029462d5776d389ff3f
2022-06-29 11:32:36 -07:00
Bill Yi
bd6dd7d908 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I2a458df64e6de938816c60e0b93078bea7ace0ed
2022-06-29 11:05:40 -07:00
Abhilasha Chahal
cb32935281 Allow overriding DragController and drag use cases
Test: Manually verified Launcher3 works fine
Bug: 233864888
Change-Id: Ifb2fe19c0a2b332862b36b1ac0100e0f5301a5a6
2022-06-29 17:29:47 +00:00
Sunny Goyal
24d7de43fb Merge "Fixing nullpointer exception when accessing StatsLogger before initialization" into tm-qpr-dev 2022-06-29 16:17:55 +00:00
Jeremy Sim
9b7280bd70 Merge "Prevents split thumbnails from flipping when entering Overview in fake seascape" into tm-qpr-dev 2022-06-29 05:47:09 +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
TreeHugger Robot
5d749d93e6 Merge "Fixing widget size cache loop end-boundary" into tm-qpr-dev 2022-06-28 05:19:32 +00: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
Jeremy Sim
96c2aad623 Prevents split thumbnails from flipping when entering Overview in fake seascape
Fixes a bug where the user would see the splitscreen thumbnails swap position when entering Overview from fake seascape.

The bug arose because Overview's layout in fake seascape previously respected the primary-top secondary-bottom rule for placing splitscreen thumbnails. Actually, this needs to be flipped to preserve left-right orientation: If the user sees Task A on the left, it should always be on the left no matter how they rotate their device.

Fixed by swapping thumbnail and icon positions in SeascapePagedViewHandler#setSplitTaskSwipeRect() and setSplitIconParams(). Fake seascape will now show primary thumbnail on the "bottom" of the screen and secondary on "top."

This patch also corrects a minor calculation bug affecting icon alignment.

Fixes: 221133532
Test: Manual
Change-Id: Id587cf3815e64792d758d0e352da1e1e38cb4348
2022-06-27 22:33:30 +00:00
Pinyao Ting
6c7361fb46 Merge "Cache and reuses LauncherAppWidgetHostView when launcher resumes" into tm-qpr-dev 2022-06-27 20:51:22 +00:00
Sunny Goyal
977838b568 Fixing nullpointer exception when accessing StatsLogger before initialization
Bug: 236227523
Test: Manual
Change-Id: I2caaa143ab2ddd4442d5c56152c7b4a7c723b92b
2022-06-27 13:16:19 -07: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
Sunny Goyal
008238ef43 Fixing widget size cache loop end-boundary
Bug: 236961658
Test: Verified on device
Change-Id: Ied629cd875a01abc45a7d055edfde5e156de53ea
2022-06-27 11:25:57 -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
Alex Chau
f52a13e424 Merge "Add test to dismiss AllApps bottom sheet" into tm-qpr-dev 2022-06-27 09:56:58 +00:00
Alex Chau
7cbe51c22f Merge "In AllApps search mode, only consume touch over visible container" into tm-qpr-dev 2022-06-27 09:56:42 +00:00
Chilun Huang
7662dae663 Add TAPL API for adding app icon to hotseat
Please refer to go/tapl-add-icon-to-hotseat for more details.

Bug: 231400119
Test: atest NexusLauncherTests:TaplTestsQuickstep#testAddDeleteShortcutOnHotseat
Change-Id: I8cadecbe742413e3ce35ff269c0f78057331532c
Merged-In: I8cadecbe742413e3ce35ff269c0f78057331532c
2022-06-27 11:10:21 +08: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
Vadim Tryshev
630fd0b09f Merge "Ignoring failing test" into tm-qpr-dev 2022-06-25 01:44:45 +00:00
TreeHugger Robot
adf526ab74 Merge "Not using calculator from test" into tm-qpr-dev 2022-06-24 21:07:10 +00:00
Vadim Tryshev
542d3cf4f2 Ignoring failing test
Bug: 233075289
Change-Id: I4f270127b72255037dd5aaccdc375dfebb6b1dc4
Test: presubmit
2022-06-24 20:50:42 +00:00
Schneider Victor-tulias
a36e5f13c0 Treat all apps predictions as all app icons when animating icons to their original position
Taskbar all apps predictions were being ignored when animating a cancelled drag to their original position. This was causing a null pointer since they no longer had a view parent that could be used. These icons will now animated to the taskbar all apps icon.

Fixes: 236669335
Test: cancelled drags of taskbar icons, predicted taskbar icons, taskbar all apps icons and taskbar all apps prediction icons
Change-Id: I2a9a1ed4120927a08b8c8341ad36dfdb95fef608
2022-06-24 12:22:04 -07:00
Tracy Zhou
804feb76e7 Fix ime switcher not showing for 3-button nav
Bug: 226489759
Test: connect to a physical keyboard in 3 button nav and make sure the ime switcher shows
Change-Id: Iabde149e8bcd1edacff8e039f956628c69341ecb
2022-06-24 11:17:40 -07:00
Alex Chau
d936273b1f Add test to dismiss AllApps bottom sheet
- http://docs/document/d/1ITZDMchoMndfa0nMuOTXbhKhK2aMDz0AT9dgusgxEro

Bug: 236360930
Test: TaplTestsLauncher3.testAllAppsDeadzoneForTablet
Test: TaplTestsNexus.testSearchDeadzoneForTablet
Change-Id: I62adb1d6ef237f9bca3812b8cdce9e5a8383158f
2022-06-24 18:29:43 +01:00
Alex Chau
a3070ea61d In AllApps search mode, only consume touch over visible container
Bug: 236360930
Test: Tap on deadzone to dismiss AllApps in search mode
Test: touch outside recycler view inside container, doesn't swipe left/right
Change-Id: I18498ea50f217231c3bb4489d6d9e95fc0e7da53
2022-06-24 11:51:11 +01:00
Luca Zuccarini
4a0129fa5f Merge "Unify the source of truth for NORMAL <> ALL_APPS transitions." into tm-qpr-dev 2022-06-24 10:25:49 +00:00