summaryrefslogtreecommitdiff
path: root/quickstep/src/com/android/launcher3/model/QuickstepModelDelegate.java
AgeCommit message (Collapse)Author
2021-12-21Log launcher settings whenever launcher layout is logged using pull atom.Thiru Ramasamy
* Whenever launcher setting is changed, only log the changed setting instead of all Bug: 181703659 Test: wwdebug && wwlogcat AND statsd_testdrive 10108 Change-Id: I9c6b7a17d653038a91f885df455e5ebbb401b49a Merged-In: I9c6b7a17d653038a91f885df455e5ebbb401b49a (cherry picked from commit f7ebfb9a7fc2151621567008acfe103c76a6ef0d)
2021-11-24Fix ClassCastException in QuickstepModelDelegateSchneider Victor-tulias
- Added a casting check as an immediate fix to b/173838775 - Added logging to help debug the corrupt state where an item of type other than FolderInfo is used as an other item's container. - Added LoaderMemoryLogger for adding large logs that are only conditionally printed. Bug: 173838775 Test: manually checked logs Change-Id: I9491cb421b9fb807d5fb110b04ad069481de768f
2021-11-11Address AppEventProducer to correctly send search-result location on ↵Hyunyoung Song
AppTargetEvent Bug: 191362091 Test: logcat printout 11-10 20:27:02.290 32215 32237 D QuickstepModelDelegate: notifyAppTargetEvent action=1launchLocation=search-results Change-Id: I16ef7679116e397a8a108cc291f5741febf2e453
2021-10-26Send widget added and removed events to AiAi.Alina Zaidi
-Pass the widgets on workspace as an extra List<AppTargetEvents> while creating prediction session. -Notify the session about widget added/removed events after creation. Bug: 186648032 Test: Manually checked events are received Change-Id: I4de6c011a1e24c129a3e995ddba16bfc55074939
2021-09-10Implement LauncherLayoutSnapshot pulled atom callback.Thiru Ramasamy
This change will pull only the workspace items but not the launcher settings such as grid layout etc. Future CLs will address it. Bug: 181703659 Test: Manual-`statsd_testdrive 10108` http://gpaste/4894958784872448 Change-Id: I0e7d7da62034c411edb26ff9205a81b0e2e891a0
2021-08-26Do not reload launcher when changing active displaySunny Goyal
> Updating IDP to use fixed bitmap sizes, so that the cache stays valid > Caching last known windowMetrices for non-active displays and using estimation only when the cache is not available > Only reloading model if IDP change could have affected the model > Remove unnecessary listeners from IDP which are already controlled by model lifecycle Bug: 191657065 Test: Manual Change-Id: Ia8e6dfafd0977e62aa3fcf367ad79f7a49b2df51
2021-05-05Linking various settings that control icon cache to icon stateSunny Goyal
Also separating icon provider for recents from Launcher as it used a fixed size Bug: 183641907 Test: Verified on device Change-Id: I6ea3caa0066d1483bfb8a81f0e8aaa472c813afe
2021-05-03Adding support for determining split layout for launcher.Sunny Goyal
> Simulating the windo wmanager API to get available device profiles until final API > When a device has multiple internal displays, and with both tablet and phone possibilities, it uses a split workspace layout Bug: 186160341 Bug: 175782275 Test: Manual Change-Id: Ieff2329acac7cdd6b9abe6f96cd459cd45bd0efe
2021-04-12Add support for having more hotseat icons in the DB than we showTony Wickham
Split InvariantDeviceProfile#numHotseatIcons into two variables: numDatabaseHotseatIcons and numShownHotseatIcons. These are generally the same, but different DisplayOptions within the same GridOption can choose to show different numbers of hotseat icons while sharing the same database. numDatabaseHotseatIcons is used for all reading/writing/migrating purposes, while numShownHotseatIcons determines how many Hotseat icons to show in the UI. Test: Existing tests pass, added two new migration tests Bug: 184789479 Bug: 171917176 Change-Id: I54583504f61a47a4444b6a637ebb7e3ab31528b7
2021-03-22Increase the number of prediction for widgets modelSteven Ng
Test: launch all widgets tray and observes widgets predicted. Bug: 179797520 Change-Id: Id231cde5015a2a79b7532a39343b3340c27e09c9
2021-03-08Widgets recommendation backendSteven Ng
Add a widgets recommendation mechanism based on AiAI app predication ranking with the following changes: 1. Only one widget is picked from one app. 2. Widgets that are already added to the workspace are excluded from the recommendation. Test: run PredicationUpdateTaskTest Bug: 179797520 Change-Id: Ia697bc6df0bae75969e68b7b3de32d57901f7461
2021-02-23[AA+] Log additional UI events with Launcher snapshot logging.thiruram
Bug: 180418845 Test: Manual Change-Id: I74ab1faafe6c21a8fbf6992a8aebe918cc31d85e
2021-02-11Adds CONTAINER_QSB to be used for QSB data.Andy Wickham
Also updates some related generics definitions for better/simpler compile-time checks. Bug: 178536734 Test: Manual Change-Id: If439b64ad968f62674f856fd3ff465bf21cc9204
2020-10-27Integrating snapshot logging in LauncherSunny Goyal
> Workspace snapshot is logged when the workspace loads (at most once a day) > Removing unnecessary thread jumping when logging folders > Preference snapshot is logged on process start and whenever something changes Change-Id: I93767de89b11522d843c0e8300d1f108c78f6d90
2020-08-17Moving hotseat predictions to ModelDelegateSunny Goyal
Bug: 160748731 Change-Id: I8db7856a17e0b6ca45b4d5ec3513f788f22db11a
2020-08-14Removing icon recents versionSunny Goyal
Change-Id: Ibdc88715e38590cedf8a7b5174061bb2c6ef9533