Commit Graph

53916 Commits

Author SHA1 Message Date
Bill Yi 486c139776 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ieec1273b2d9fb1b9555ea9e06089ac1bdd1a02b6
2022-08-07 12:01:31 -07:00
Android Build Coastguard Worker a816790ff7 Snap for 8914606 from 68ef8bf37a to tm-qpr1-release
Change-Id: I8c4fdb0e4a32be20dfa741a53b4733589b3fd7ef
2022-08-07 01:25:12 +00:00
Sunny Goyal 38b9216e1b Merge "Dumping view capture directly to file instead of loading it all in memory" into tm-qpr-dev am: 68ef8bf37a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19536173

Change-Id: I4abcac5302f53bf1f64695335093d885e0be42f8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-06 05:37:00 +00:00
Sunny Goyal 68ef8bf37a Merge "Dumping view capture directly to file instead of loading it all in memory" into tm-qpr-dev 2022-08-06 05:14:16 +00:00
Android Build Coastguard Worker 808384dee7 Snap for 8912782 from 80d33f35a9 to tm-qpr1-release
Change-Id: I3ff94624ea0aeb5753fe094d50fef4f5781bc3ab
2022-08-06 02:41:45 +00:00
Pat Manning d6142daa10 Merge "Skip button layout spacing call when kids nav bar is active." into tm-qpr-dev am: 80d33f35a9
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19459614

Change-Id: Ibe89336449a0dd3f0167e3934847daa82ad4d18c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-06 01:49:31 +00:00
Sunny Goyal fb6ca5ceff Merge "Fixing surface blur when using multiple surfaces" into tm-qpr-dev am: 0c0fb6bc08
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19222535

Change-Id: Icbae40f77402af53ae1190f3d6a21bf554483fa7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-06 01:49:15 +00:00
Sunny Goyal a30cf8b7e1 Dumping view capture directly to file instead of loading it
all in memory

This avoid OOM when processing large data

Bug: 241600398
Test: Verified on device
Change-Id: I76072d52e47bea3a2f9802ce3b23ddae58fe8d23
2022-08-05 16:30:01 -07:00
Pat Manning 80d33f35a9 Merge "Skip button layout spacing call when kids nav bar is active." into tm-qpr-dev 2022-08-05 23:29:24 +00:00
Sunny Goyal 0c0fb6bc08 Merge "Fixing surface blur when using multiple surfaces" into tm-qpr-dev 2022-08-05 23:12:22 +00:00
Alex Chau e5829075ab Update hotseat QSB alpha after isQsbInline changes
Fix: 238578584
Test: Repeat steps in bug for portrait/landscape
Change-Id: I1bb9724f3e32bfc148ac75df3d1211c71c99875c
2022-08-05 17:29:22 +01:00
Luca Zuccarini 7e02d6845e Introduce a new flag to guard keyboard synchronization.
Bug: 234812580
Test: manual
Change-Id: I1c8714fa68cde06b95f6a7822075188c7dc2f71f
2022-08-05 12:20:14 +00:00
Luca Zuccarini c7114defc7 Update keyboard dismissal logic in the AllAppsTransitionController.
Dismissing the keyboard immediately interferes with the synchronized
keyboard animation. Instead, we wait until the end of the animation and
if it is successful (transition actually happened and wasn't
interrupted) we hide the keyboard. This call does nothing if the
keyboard was already hidden through the synchronized animation, and
hides it otherwise.

Bug: 234812580
Test: manual
Change-Id: Idabbc707dd0244bdf75316777e945624a8e8bdfc
2022-08-05 12:20:08 +00:00
Pat Manning 3c7d220a0b Merge "Remove scaling from spring loaded y translation." into tm-qpr-dev am: 67fe05beaf
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19528333

Change-Id: I4e4aeaa7e33d990ee7b41619bc71e473518cf349
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-05 11:06:11 +00:00
Pat Manning f3783291ec Skip button layout spacing call when kids nav bar is active.
Fix: 240530037
Test: manual.
Change-Id: Ibf777dfdaab3c81da8feed581a0297f09a62539d
2022-08-05 10:35:07 +00:00
Pat Manning 67fe05beaf Merge "Remove scaling from spring loaded y translation." into tm-qpr-dev 2022-08-05 10:34:30 +00:00
Thales Lima 84fa75cc7d Show resize handle on cancel widget drop
Fix: 233834133
Test: manual on handheld and large screens, until we have create a way to resize widgets in TAPL b/241385885

Change-Id: I427dfaadd219d33a5371c3ae92c4e2311d3d3c6a
2022-08-05 10:30:37 +00:00
Nicolo' Mazzucato bd819cdf0f Disable hinge sensor while the screen is off
This allows to save some power while the device is unfolded but with screen off.

+ Avoiding registering more listeners if HingeSensorAngleProvider.start() is called multiple times sequentially without a `stop` in the middle. It seems that otherwise we would get duplicated callbacks.

+ Adding onScreenTurningOn and onScreenTurningOff callbacks to forward to Launcher (as only sysui is receiving them)

Bug: 240661156
Bug: 240374404
Test: DeviceFoldStateProviderTest && LauncherFoldAnimationTest (e2e)
Change-Id: I769643321c4819c145aac1b0a32a80d5738951c2
2022-08-05 09:19:59 +00:00
Android Build Coastguard Worker 15477de5d0 Snap for 8909196 from b0f42f03bf to tm-qpr1-release
Change-Id: Ic3e1b971e25b8cfdb92ad3b2d17ad8d3b0ebe003
2022-08-05 03:24:44 +00:00
Thales Lima 9938c2f791 Calculate hotseat width based on available width
Navigation buttons take space on the hotseat, so hotseat width (qsb width and border space between icons) should be calculated instead of having a coded value.

Bug: 223724516
Bug: 228998463
Test: manual, changing display size
Test: manual, changing hotseatBarEndOffset value
Test: HotseatWidthCalculationTest
Change-Id: Ibd4f5ff2e06afda8e7420fb744db049d2e418e14
2022-08-04 15:21:06 +01:00
Alex Chau 16ac12b450 Merge "Adjust height of tablet AllApps base on row height" into tm-qpr-dev am: b0f42f03bf
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19416113

Change-Id: Ibb938354217feb1b6a2d53921a3535e7fc82adb6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-04 14:14:22 +00:00
Alex Chau b0f42f03bf Merge "Adjust height of tablet AllApps base on row height" into tm-qpr-dev 2022-08-04 13:55:06 +00:00
Pat Manning 9fd69c0d42 Remove scaling from spring loaded y translation.
Fix: 239401465
Test: manual. To follow up with screenshot test: b/241386128
Change-Id: I916fcca22f5c827e1af38a50847585afcefc330d
2022-08-04 14:53:35 +01:00
Jerry Chang 32820e89e3 Fix no action menu for split pairs in overview panel
The splitting tasks will be reparented to RecentAnimationSplitTasks
overlay layer in order to animate them together. However, the other
animating apps should also be placed to the same overlay layer so all of
them can be layered properly during the transition.

Bug: 239630217
Test: action menu shows above split pairs in overview panel
Change-Id: I4dda71317bb61775664dcbfe1cee9a099aca872f
2022-08-04 04:34:20 +00:00
Android Build Coastguard Worker 9324841a5d Snap for 8903569 from 89b8f65277 to tm-qpr1-release
Change-Id: Icd10decc455a80873f2dc857709a1496f78ec476
2022-08-03 23:34:04 +00:00
Alex Chau 206ede9c1f Adjust height of tablet AllApps base on row height
- Also used hotseatQsbHeight for AllApps QSB height as they have to match to transform between each other

Fix: 232907846
Test: manual on different tablets
Test: atest DeviceProfileTest
Change-Id: I001d0e129db2a5de6c8ace4c3302381110da03f1
2022-08-03 15:29:22 +00:00
TreeHugger Robot eaeceb9b7b Merge "Account for span greater than 1 in getReorderRadius" into tm-qpr-dev am: 89b8f65277
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19441591

Change-Id: Iae70d6d2bccce247803774434f22977e807446b6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-03 14:33:24 +00:00
Sunny Goyal 7e0795609f Merge "Removing unused ShadowDrawable" into tm-qpr-dev am: 41321dfe71
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19506676

Change-Id: I60ed5d12170fc265469dd8747e1ea7ef6157b12a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-03 14:33:11 +00:00
Sunny Goyal e00fc434f0 Merge "Create less number of dot-renderers at startup" into tm-qpr-dev am: f28c428050
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19498070

Change-Id: Ia7c5ef35f51afd4f1d56c753ca157d228d1c80a4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-03 14:32:56 +00:00
TreeHugger Robot 89b8f65277 Merge "Account for span greater than 1 in getReorderRadius" into tm-qpr-dev 2022-08-03 14:12:45 +00:00
Sunny Goyal 41321dfe71 Merge "Removing unused ShadowDrawable" into tm-qpr-dev 2022-08-03 14:08:52 +00:00
Sunny Goyal f28c428050 Merge "Create less number of dot-renderers at startup" into tm-qpr-dev 2022-08-03 14:08:07 +00:00
Android Build Coastguard Worker a138db7e35 Snap for 8898488 from d6f79830e5 to tm-qpr1-release
Change-Id: Id6fa0576c15f8bf3b3a737db30147dbf0e3a39c3
2022-08-02 23:25:25 +00:00
Sunny Goyal ea6d59fbd4 Removing unused ShadowDrawable
Bug: 241152608
Test: Presubmit
Change-Id: Iae3b3799959dfe3457791cfac88a2cb4ac5770a4
2022-08-02 14:58:25 -07:00
Sunny Goyal 65190aef37 Create less number of dot-renderers at startup
Bug: 235568943
Test: Launcher starts and shows dots normally
Change-Id: I6958b9b98efb43aa280e6ce31af9c0c936610dea
2022-08-02 14:43:31 -07:00
Sunny Goyal c5c7da9a8b Removing some obsolete features
PROMISE_APPS_NEW_INSTALLS = true
ENABLE_QUICKSTEP_WIDGET_APP_START = true
FOLDER_NAME_SUGGEST = true
ENABLE_PREDICTION_DISMISS = true
HOTSEAT_MIGRATE_TO_FOLDER = false
ENABLE_DEEP_SHORTCUT_ICON_CACHE = true
ENABLE_THEMED_ICONS = true
ENABLE_ALL_APPS_EDU = true
EXPANDED_SMARTSPACE = false

Bug: 241141733
Test: Presubmit
Change-Id: I72c0c20ab7e214994dc3c3665c90e85d45991a7a
2022-08-02 13:38:38 -07:00
Sihua Ma 1d8b7cba31 Showing Toast message when the target package is null for the disabled shortcut
The shortcut for a certain set of apps could have their component names set to null. In this case, if we still need the package name for the shortcut, we should use the package name from the intent, which is accomplished in getTargetPackage. Additionally, if the target package is still null, we are falling back to showing the Toast messages only.

Fix: 239685630
Test: Verified that the crash no longer happens after clicking on grayed out shortcuts
Change-Id: I4de68ea1a227032e16e5c00407f75159a7aba30f
2022-08-02 11:17:29 -07:00
TreeHugger Robot 3bf38df8b4 Merge "Don't crop task with RemoteAnimaionTarget#contentInsets" into tm-qpr-dev am: d6f79830e5
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19395526

Change-Id: I2e66a94496cd5d24c016b4ffed93e7a818d77850
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-02 13:19:59 +00:00
TreeHugger Robot d6f79830e5 Merge "Don't crop task with RemoteAnimaionTarget#contentInsets" into tm-qpr-dev 2022-08-02 13:05:02 +00:00
Vinit Nayak b197ea0c25 Use Taskbar window for phones (only works on gesture nav) with flag am: 7db37b3d94
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18801667

Change-Id: Icb4ed4c35ec434dacb70ef1c9cd7b6b5bfccaf70
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-02 04:14:05 +00:00
Vinit Nayak 7db37b3d94 Use Taskbar window for phones (only works on gesture nav) with flag
* Try to avoid re-creating TaskbarActivityContext to
avoid re-inflating taskbar views
* Toggle via Flipper App (key 1101)
OR adb shell setprop persist.wm.debug.hide_navbar_window 1 && adb reboot
TODOs
* Only works for gesture nav, not 3 button
* Sampling on phone doesn't always work.

Bug: 219035565
Change-Id: I2a015f99d5f1fe86d7261eec9fd898bd4480ff9f
2022-08-01 17:48:09 -07:00
Android Build Coastguard Worker 9651fee04e Snap for 8892748 from ceb2aaa9e4 to tm-qpr1-release
Change-Id: Ie2a8e9fc17ad039751dd888fbb5ff5a1305d8bea
2022-08-01 23:25:20 +00:00
Schneider Victor-tulias 187b9ef0f5 Merge "Add logging to help debug additional app infos being updated by CacheDataUpdatedTask" into tm-qpr-dev am: 4eec22f818
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19462408

Change-Id: I8d115d1f8da1c95625ae03787fd525fda68dc5fb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-01 22:15:06 +00:00
Schneider Victor-tulias 4eec22f818 Merge "Add logging to help debug additional app infos being updated by CacheDataUpdatedTask" into tm-qpr-dev 2022-08-01 21:50:09 +00:00
TreeHugger Robot 4397dec83d Merge "Remove unused logs" into tm-qpr-dev am: f47491bdf8
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19417493

Change-Id: Ia657d4c5c6030abb45d6e255d20f353f18d4b690
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-01 20:49:20 +00:00
TreeHugger Robot f47491bdf8 Merge "Remove unused logs" into tm-qpr-dev 2022-08-01 20:29:53 +00:00
Alex Chau a8b1b20f70 Merge "Refactor DeviceProfile tests based on dump() and use real device dimensions for tests." into tm-qpr-dev am: ceb2aaa9e4
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19356826

Change-Id: I8987fc4719ad84ee8b6928b170e084861ee50863
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-01 18:23:45 +00:00
Alex Chau ceb2aaa9e4 Merge "Refactor DeviceProfile tests based on dump() and use real device dimensions for tests." into tm-qpr-dev 2022-08-01 18:06:59 +00:00
Pat Manning 5f74bfd76d Refactor DeviceProfile tests based on dump() and use real device dimensions for tests.
- Added roundPxValueFromFloat when converting dp/sp to px to deterministically round up values around .5

Fix: 240133465
Bug: 237542518
Test: DeviceProfileTest.kt
Change-Id: If4239f714487fe5bf2ef44274e2ce415bd75c86d
2022-08-01 17:54:43 +00:00
Automerger Merge Worker 913d635bd4 Merge changes from topic "am-a8bd616d471949689504ebc9266e4940" into tm-qpr-dev-plus-aosp
* changes:
  [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-d1-dev am: bc92776f2f -s ours am: 247158606c -s ours
  [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: c99c99db15 -s ours am: 34e8ec3b9b -s ours
  [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: a404b51754 -s ours am: 44f091e360 -s ours
2022-08-01 17:21:24 +00:00