Commit Graph

46606 Commits

Author SHA1 Message Date
Brian Isganitis
7ef4fe42cb Add separate AFV type for options popup dialog.
Now that we close all non rebind safe AFVs onResume, the options popup dialog is getting closed. This dialog is rebind safe, but currently using TYPE_OPTIONS_POPUP which isn't.

Test: Dialog stays open on activity recreate. Also ran affected tests.
Bug: 227142635
Change-Id: Ibbac925ce5dd2de5c7770cb8f5bd8c5e438449cf
2022-04-07 16:29:44 -07:00
Stefan Andonian
52eaebead4 Merge "Close open folders when pausing launcher." into tm-dev 2022-04-07 18:53:45 +00:00
TreeHugger Robot
44f9f67696 Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-dev 2022-04-07 18:51:23 +00:00
TreeHugger Robot
b9879a0b85 Merge "Making tablet grid scalable and tuning size" into tm-dev 2022-04-07 15:43:40 +00:00
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
Thales Lima
c0481524da Making tablet grid scalable and tuning size
Bug: 227344807
Test: manual and HSV
Change-Id: I078d19905947eb924de8b6ed9067b70a32674bfa
2022-04-07 11:21:48 +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
Thiru Ramasamy
aa49200100 Merge "Log LAUNCHER_ALLAPPS_QUICK_SEARCH_WITH_IME event." into tm-dev 2022-04-07 01:07:28 +00:00
Anushree Ganjam
45f221621e Add ALL_APPS_SEARCH_RESULT_WEB_SUGGEST for ResultType.WEB_SUGGEST
Bug: 220922858
Test: Manual.

Change-Id: I5a52872a3bf75109b95e9853883825e32a623a1d
2022-04-06 22:18:14 +00:00
Stefan Andonian
253c23b2e8 Close open folders when pausing launcher.
Previously, folders wouldn't close after launching an app and quickly navigating back the launcher.
This is because the onStop state which contains a call to AbstractFloatingView.closeViews() wasn't being called.
This change adds an additional call to specifically close any open folders when the Launcher enters a paused state.

Bug: 227142635
Test: Verified that the issue is fixed after code change.
I logged the Launcher's lifecycle state to ensure my manual testing was reliable.

Change-Id: I838f992f83afdd754672ebbe85d0eb2a7e894417
2022-04-06 21:47:35 +00:00
Thiru Ramasamy
d66f433cde Log LAUNCHER_ALLAPPS_QUICK_SEARCH_WITH_IME event.
Test: Manual - wwdebug && wwlogcat - http://gpaste/5690465669087232
Bug: 210792253
Change-Id: Ibe0c762a9e40e1af85a4d18051ba2a74e9f6106a
2022-04-06 14:32:34 -07: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
Brandon Dayauon
e3589debfd Merge "Change work_app_edu to be like T spec: https://screenshot.googleplex.com/43ThiCnqrAqAQgE" into tm-dev 2022-04-06 20:41:24 +00: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
Pat Manning
08610ca583 Adjust workspace grid and cellLayout paddings.
This is a partial revert of ag/17540098

Bug: 202971709
Test: manual
Change-Id: Ia49e48f336bcca906aae6b014d88f10421b83d0c
2022-04-06 13:10:50 +01:00
Pat Manning
690661159e Merge "Adjust edit state drop targets and workspace scaling per device type and orientation." into tm-dev 2022-04-06 11:08:22 +00: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
Bill Yi
777dddbdb9 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I9b223c149fced7402e479f63808abb215cbf85f1
2022-04-05 21:30:12 +00:00
Pat Manning
de25c0db36 Adjust edit state drop targets and workspace scaling per device type and orientation.
This is a partial revert of ag/17540098

Bug: 202971709
Test: manual
Change-Id: I0a642f932afd75e47ce11a2c1ee94643d1a67e0c
2022-04-05 20:56:03 +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
Brandon Dayauon
d20011be15 Change work_app_edu to be like T spec: https://screenshot.googleplex.com/43ThiCnqrAqAQgE
Fixed the button to show on Portrait mode..streamline added for work_mode_fab.
Took out unneccessary attributes such as textColor for the button and took out background.

How it looks in landscape: https://screenshot.googleplex.com/AVaUEztqsXYA28N
How it looks in portrait: https://screenshot.googleplex.com/3oTG3j7yZLCxkLz
Apk: https://drive.google.com/file/d/1qLeiJSF3lHf7tZzoHWwBHGxDgbveTIYX/view?usp=sharing

Test: Manual - Tested on local Pixel device (Raven)
Bug: 224731116
Bug: 224731300
Change-Id: If1392806adecf1ce02723d20686ca6bf524f6464
2022-04-05 11:50:18 -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
Alex Chau
f9aa367324 Merge "Override statusBar top inset in Launcher" into tm-dev 2022-04-05 10:19:26 +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
Stefan Andonian
bae4a72d30 Merge "Show correct drop targets for All-apps predicted item drags." into tm-dev 2022-04-04 20:13:29 +00:00
Brian Isganitis
9417012064 Merge "Add utility for isWallpaperSupported." into tm-dev 2022-04-04 19:57:25 +00: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
Stefan Andonian
c62a4dae5f Show correct drop targets for All-apps predicted item drags.
This change fixes a bug where, after a user drags and drops a
predicted app from the all apps page once, dragging that item again
results in the "Remove" drop target being shown rather than the
"Do Not Suggest" drop target.

Bug: 221057278
Test: Verified correct drop down targets were present after fix when
dropping all apps prediction item on workspace multiple times in a row.

Change-Id: I95940eeebbd547861fcdfbb5d02769b82446184d
2022-04-04 17:32:32 +00:00
Alex Chau
20af9304cb Override statusBar top inset in Launcher
Fix: 227600170
Test: manual on small and large screen devices
Change-Id: I1b0dacaf555db966d1e2a837310d9cebe3e60d7a
2022-04-04 17:39:31 +01: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
Xin Li
369dcf68a5 [automerger skipped] Merge Android 12 QPR3 ab/8391262 am: e24db03da4 -s ours am: 1eff2959d1 -s ours
am skip reason: Merged-In Ifdaf4928e7f1f0da5deb7dd44a6b89f5f08cdf2c with SHA-1 bd2860f039 is already in history

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

Change-Id: I9afe65f3ce14ffdb7473e25a9a7763bdaed4e276
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-03 07:43:36 +00:00
Xin Li
1eff2959d1 [automerger skipped] Merge Android 12 QPR3 ab/8391262 am: e24db03da4 -s ours
am skip reason: Merged-In Ifdaf4928e7f1f0da5deb7dd44a6b89f5f08cdf2c with SHA-1 bd2860f039 is already in history

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

Change-Id: I3d3f56108117d0b8b8e97e8463ea6e2b64a80cb5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-03 07:11:35 +00: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
Xin Li
e24db03da4 Merge Android 12 QPR3 ab/8391262
Bug: 226662282
Merged-In: Ifdaf4928e7f1f0da5deb7dd44a6b89f5f08cdf2c
Change-Id: Ic3e8c89ef9571af2b88516911f0fe1238a2eb847
2022-04-01 20:32:44 +00:00
TreeHugger Robot
f89d83f4e0 Merge "Remove unnecessary offset from the app label ICU string" into tm-dev 2022-04-01 20:28:20 +00:00
Tracy Zhou
76a99eccc0 Merge "Fix npe in FrameHandler" into tm-dev 2022-04-01 18:10:10 +00:00
Sunny Goyal
59c535bb71 Merge "Adding a feature flag to disable icon overrides" into tm-dev 2022-04-01 17:26:09 +00:00