Commit Graph

17144 Commits

Author SHA1 Message Date
Alex Chau 2ca7481b04 Merge "Migrate ENABLE_GRID_ONLY_OVERVIEW to aconfig flag" into main 2023-10-05 15:40:17 +00:00
Brandon Dayauon d45403ee2d Merge "Fix text jumping from one line -> two line when scrolling" into main 2023-10-05 00:36:17 +00:00
Brandon Dayauon 6c345f4d4c Fix text jumping from one line -> two line when scrolling
The issue this happens is because the paint letter spacing can change during checkForEllipsis()
so during vertical calculation for two line, set the paint letter spacing to the MIN_LETTER_SPACING that is used
in checkForELlipsis()

bug: 303319642
Test: After: https://drive.google.com/file/d/14YfmEWNpmllSAdLeUamUpewa8ljbqXAU/view?usp=sharing
before: https://drive.google.com/file/d/14Y_I-iuyOGHCr809AlqNL8o1IdFjk3_8/view?usp=sharing
Flag: disabled
Change-Id: I1f56a9e9d22ab45b0491e5fa65b5bfc5b10fc720
2023-10-04 16:44:03 -07:00
Sebastián Franco bd4776b095 Merge "Making sure window inset controller is not null" into main 2023-10-04 22:16:58 +00:00
Sebastian Franco 2023b359b7 Making sure window inset controller is not null
In some cases the controller can be null if the view is no longer
connected to the window.

Also, this issue seems to only happen in cuttlefish instances so there
might be a weird behaviour going on there but in any case is good to check
for nulls.

Test: No testing require is only null checkin, just making sure it compiles.
Bug: 302869930
Change-Id: I88d6091b57293e9493385185bfeb3e470c9bad84
2023-10-04 13:18:18 -07:00
Federico Baron fe60ac4f26 Merge "Add flag check for SMARTSPACE_AS_A_WIDGET to loadertask.java" into main 2023-10-04 19:14:13 +00:00
fbaron 22a9c3cb7f Add flag check for SMARTSPACE_AS_A_WIDGET to loadertask.java
Missing a flag check that is necessary in LoaderTask.java to prevent the code from running when the flag is off.

Bug: 300140279
Flag: SMARTSPACE_AS_A_WIDGET
Test: no test
Change-Id: Iaa89e8542475eb01f679f70734a61c13a3cde89f
2023-10-04 10:19:46 -07:00
Federico Baron 48a9a3d198 Merge "Cleanup SHOW_DOT_PAGINATION flag" into main 2023-10-04 17:00:45 +00:00
Brandon Dayauon 39276d643b Merge "Make DISPLAY_SEARCH_RESULT_SMALL not badged" into main 2023-10-04 16:13:10 +00:00
Jeremy Sim 4986aa85e5 Merge "App Pairs: App pairs now save with automatic default name and custom split ratios" into main 2023-10-04 00:06:57 +00:00
Brian Isganitis a9928faea8 Merge "Promote ENABLE_ALL_APPS_SEARCH_IN_TASKBAR to droidfood." into main 2023-10-03 22:05:15 +00:00
fbaron 80b0ce819c Cleanup SHOW_DOT_PAGINATION flag
Fix: 270395278
Flag: no flag
Test: verify everything still works the same
Change-Id: I803d9c22ac4c7040c47410b97cbdb2b11e33e8c9
2023-10-03 21:59:02 +00:00
Federico Baron 80c138f293 Merge "Add smartspace as a widget to first page (implementation 2)" into main 2023-10-03 21:57:54 +00:00
Fengjiang Li d31f9080aa Merge "Fix All Apps Icons Count estimation" into main 2023-10-03 21:57:36 +00:00
Fengjiang Li 0c740c774e Merge "[Launcher] Fix launcher startup logging" into main 2023-10-03 21:26:39 +00:00
Brian Isganitis 26e1ff58ca Promote ENABLE_ALL_APPS_SEARCH_IN_TASKBAR to droidfood.
Test: Manual
Bug: 216683257
Flag: ENABLE_ALL_APPS_SEARCH_IN_TASKBAR
Change-Id: I02a492af320775404603d939b405764eff61d8a1
2023-10-03 14:12:19 -04:00
Jeremy Sim 6ac8949fc4 App Pairs: App pairs now save with automatic default name and custom split ratios
[App Pairs 4/?]

This patch includes:
- Ability to save and launch app pairs with custom 0.3, 0.7, or 0.5 split ratios
- App pairs now save with default name "App1 | App2"
- Grid migration, prediction, and other misc. flows should now work with app pairs

Flag: ENABLE_APP_PAIRS (set to false)
Bug: 274189428
Test: AppPairsControllerTest.java
Change-Id: I46dd3e30f8de03dd3e6d086c8ff9fc52e7e7fd2b
2023-10-03 10:38:03 -07:00
Federico Baron 769fa53481 Merge "Cleanup LARGE_SCREEN_WIDGET_PICKER flag" into main 2023-10-03 17:26:53 +00:00
Federico Baron bf5757c334 Merge "Cleanup ENABLE_DOWNLOAD_APP_UX_V3 and ENABLE_DOWNLOAD_APP_UX_V2" into main 2023-10-03 17:25:55 +00:00
Fengjiang Li 6c59082697 Fix All Apps Icons Count estimation
We used to estiamte more all apps icons to pre-inflate than needed. This would reduce the post boot memory useage.

Test: Grab heap dump after device boot to verify number of BubbleTextView is reduced
Bug: 297352492
Change-Id: Ice3950b781fe7b5d7df2c0c5c7b7a316b5851bc7
2023-10-03 10:16:30 -07:00
Brandon Dayauon 0ae52c9863 Make DISPLAY_SEARCH_RESULT_SMALL not badged
bug: 299364813
Test:Manual -
before: https://drive.google.com/file/d/1Gb_bV5oIEPAvNYnqMJwscX-r1iz967eY/view?usp=sharing
after: https://drive.google.com/file/d/1GTH1A8biVAVnWXaArMkdzWK9kiwFhVCn/view?usp=sharing

Flag: n/a
Change-Id: I6e928079d53bfa7f87cde4d420ee05b1edf875f5
2023-10-03 15:49:45 +00:00
Alex Chau 6f264a927b Migrate ENABLE_GRID_ONLY_OVERVIEW to aconfig flag
Bug: 270397206
Test: OverviewActionsControllerTest
Flag: enableGridOnlyOverview
Change-Id: I1519e0e8d5b8a7e294d2d310c1614e8462649031
2023-10-03 12:58:18 +01:00
Kevin Lim 07546b88e7 [AppInfo] Enable logs for debugging unexpected AppInfo changes.
Here's a sample log run through of AllAppsStore and PackageUpdatedTask
logs: http://gpaste/5250747917664256

Bug: b/290090023
Flag: None. Adding logging.
Test: None. Adding logging.
Change-Id: Ia1d620a50267d6a65fe719936d7e87e6dad13afa
2023-10-02 19:40:58 +00:00
Fengjiang Li 188fbc92d1 [Launcher] Fix launcher startup logging
After reporting startup logs, we should tear down logger to prevent sending invalid logs

Bug: 302560751
Test: Verify rotating screen doesn't send startup logs to server
Change-Id: I8cf0a1a34aa9fffb67ddf83efe27908a28538551
2023-10-02 11:14:18 -07:00
Pat Manning 1695cc724c Create icon app chip menu for overview tasks.
Fix: 257951354
Test: TaplTestsQuickstep
Test: TaplTestsSplitscreen
Flag: ENABLE_OVERVIEW_ICON_MENU
Change-Id: Id8a14b1970ae42bcc74e95419caeaf52ef63638b
2023-10-02 12:51:56 +00:00
fbaron e58aaf1802 Add smartspace as a widget to first page (implementation 2)
Flag: SMARTSPACE_AS_A_WIDGET
Test: verify that the smartspace gets replaced with a smartspace widget
Bug: 300140279
Change-Id: I42c170de5e2a9fd3d24d99bb8b09cf412c55e3a5
2023-09-29 18:16:09 +00:00
Sebastián Franco 94f7b53a54 Merge "Adding a keyboard shortcut delegarte to move logic outside of the launcher" into main 2023-09-29 18:03:02 +00:00
Fengjiang Li 576c7ff4d7 Merge "Don't preinflate all apps for taskbar in AllAppsStore#setApps" into main 2023-09-29 16:16:58 +00:00
Jagrut Desai 7a2bfd39bb Merge "Add isTransientTaskbar as DeviceProfile Builder Property" into main 2023-09-28 22:34:25 +00:00
Fengjiang Li e92556819b Don't preinflate all apps for taskbar in AllAppsStore#setApps
Triggering all apps pre-infation at AllAppsStore#setApps is too late for taskbar, because it is in same frame when user opens all apps from taskbar. We should find an earlier entry point to pre-inflate all apps for taskbar.

Test: Verify taskbar is rendered correctly. Also verify we no longer pre-inflate all apps for taskbar in perfetto trace
Change-Id: If1f8c616b6be7f64ea16807f4b7a8b75da55d038
2023-09-28 14:29:07 -07:00
Sebastián Franco d37195dc35 Merge "Moving getters and setters to the end of the file" into main 2023-09-28 20:13:46 +00:00
Jagrut Desai 3a7d139110 Add isTransientTaskbar as DeviceProfile Builder Property
- Breakout CL part 5
- This is a breakout cl from ag/24272821 to make it more readable and atomic.
- This cl consist of adding isTransientTaskbar as DeviceProfile Builder Poropety
- This cl alos consist a shared pref listener for taskbar pinning to update device profile.

Test: Manual, Visual
Bug: 265170176
Flag: ENABLE_TASKBAR_PINNING
Change-Id: I2ade751ffc8c59bd4b862b56c8ca7eb2aa05b7f2
2023-09-28 12:01:58 -07:00
Stefan Andonian dfc628dabb Merge "Make exception for TASKBAR_PINNING so it is boot aware." into main 2023-09-28 18:59:14 +00:00
Sebastian Franco 4080fddfe7 Adding a keyboard shortcut delegarte to move logic outside of the launcher
Bug: 301142423
Test: compiling, this change is a no-op change
Change-Id: I2f5ee35a9ab645c26cc97669f6a745490fdfdb61
2023-09-28 10:03:17 -07:00
Fengjiang Li e05ada7992 Merge "Lower thread priority to pre-inflate BubbleTextView for all apps" into main 2023-09-28 16:28:45 +00:00
Sebastián Franco 015eda683f Merge "Make sure to not call DragOver when the drag is still under PreDrag" into main 2023-09-28 16:13:32 +00:00
fbaron 461a9aa1b1 Cleanup ENABLE_DOWNLOAD_APP_UX_V3 and ENABLE_DOWNLOAD_APP_UX_V2
Fix: 270395186
Fix: 270395134
Test: verify everything works as before
Flag: no flag
Change-Id: I838ed115c371cd157fe3bbe01a5385b8b3f8f918
2023-09-27 23:29:33 +00:00
fbaron 2553ec02b7 Cleanup LARGE_SCREEN_WIDGET_PICKER flag
Fix: 270395809
Flag: no flag
Test: WidgetPickerImageTest
Change-Id: I99734ae7f87b4c2c7b4e798d14cd12f473daac6e
2023-09-27 15:43:07 -07:00
Sebastian Franco 1be772df1d Make sure to not call DragOver when the drag is still under PreDrag
Adding a flag so we can turn off this behavior if it break a drag functionallity

Fix: 299748096
Test: most of dragging test will test this
Change-Id: I4f45faea4f19bd99a946a28372546e18ca5f6a2f
2023-09-27 15:05:47 -07:00
Stefan Andonian 939d5f876b Make exception for TASKBAR_PINNING so it is boot aware.
Bug: 251502424
Test: No launcher exceptions where thrown when TASKBAR_PINNING feature
is enabled.

Change-Id: I7e71d37547af1951938c6d5e77325d5e8e6b9fbd
2023-09-27 21:42:45 +00:00
Fengjiang Li 39133c38bc Lower thread priority to pre-inflate BubbleTextView for all apps
During sys health review it was called out that we could lower the thread priority to pre-inflate BubbleTextView so that ui thread and loader task thread has better chance to run on big core.

Bug: 297352492
Test: Grabbed perfetto trace and observed preinflation is run on "preinflate-allapps-icons" thread
Change-Id: I9330d4fbe5a98cdb793e8bfa970dfd84ae1f6c39
2023-09-27 13:29:17 -07:00
Schneider Victor-tulias f055c25ec1 Merge "Clean up FeatureFlags.java" into main 2023-09-27 17:28:16 +00:00
Brandon Dayauon cd460094ba Merge "Do a vertical check for two line text, if it clips dont show two line." into main 2023-09-26 22:16:37 +00:00
Schneider Victor-tulias 8d3d623bc7 Clean up FeatureFlags.java
Flag: not needed
Bug: 291651514
Test: not needed
Change-Id: I37d7ac39f5feddab303ccb3c3305e2e2b3b6bd3e
2023-09-26 17:25:33 -04:00
Brandon Dayauon 3cdb32cc1f Do a vertical check for two line text, if it clips dont show two line.
Added extra 16dp to the cell height in DeviceProfile as per spec: https://docs.google.com/presentation/d/1dSt-zY_wRrOmd9a9nsQG458CIK0RUqVJsHJxLHP_0Nc/edit#slide=id.g237e909075a_2_6
Updated tests andincluded vertical check to see if two line can be fully rendered without being clipped. Otherwise just show one line.
Since existing cell height is 104dp, we add 16dp to be up to spec (120dp)
- Clean up FeatureFlag ENABLE_TWOLINE_ALLAPPS and now use aconfig flag

bug: 270390937
Test: manually - photos
Regular font: https://screenshot.googleplex.com/ArUcgZgHqR4ZWBQ
Bigger font than regular that makes text to one line because it wouldve truncate: https://screenshot.googleplex.com/6s8EdMAbBLsYhLi
Bigger font than regular with predicted app row (twoline):
https://screenshot.googleplex.com/38TEQei5GvPiCc7
Super big font: https://screenshot.googleplex.com/3JUYYprJRQ32Hsq
big display and regular font: https://screenshot.googleplex.com/55rBKVQ8htSe9Vc
big display and bigger than regular font: https://screenshot.googleplex.com/3atzKzJUbfM7YQW
flag: is off

Change-Id: I6998ea5da35d3e00ac75327d16b5ca676fb11c1a
2023-09-26 02:38:16 +00:00
Thales Lima 8f58b0a63d Enable TEAMFOOD for ENABLE_RESPONSIVE_WORKSPACE flag
Bug: 299935275
Test: manual
Change-Id: If341730c3eb43ffb243b960ad76bc223058e426d
2023-09-25 16:27:21 -07:00
Thales Lima ca31b6105e Migrate ENABLE_RESPONSIVE_WORKSPACE to aconfig
- Keeping FeatureFlags.ENABLE_RESPONSIVE_WORKSPACE for local testing until aconfig is available in FlagFlipper
- Still reference ENABLE_RESPONSIVE_WORKSPACE in tests as aconfig still can't be mocked

Bug: 299935275
Test: manual
Change-Id: I092df894a3624dca6b9d381d56ada71d807547b5
2023-09-25 16:25:15 -07:00
Federico Baron 0bc00d24ab Merge "Add extraItems to dump log for BgDataModel" into main 2023-09-25 21:35:15 +00:00
Andrew Cole e81a3cef0c Merge "Unfolded Two Pane Widget Picker Prototype" into main 2023-09-25 19:59:30 +00:00
Brandon Dayauon c65b902cc4 Merge "Fix gray work apps when WorkPausedCard shoul've shown" into main 2023-09-25 18:13:12 +00:00