summaryrefslogtreecommitdiff
path: root/src/com/android/launcher3/model/UserLockStateChangedTask.java
AgeCommit message (Collapse)Author
2020-07-10Creating a common method to iterate over all model items.Sunny Goyal
This would allow adding different source for model items without modifying every model task Bug: 160748731 Change-Id: I5a14dd761e2b8696c58dc8fec7b14077da0aced3
2020-04-09Moving model data structures to a separate fileSunny Goyal
Change-Id: I77ad7a5219e72d2e0d6c1803de2ac3ed6a65a8f7
2020-04-09Fix the issue "Turn on work profile?" dialog not displayed forPinyao Ting
work profile deep shortcuts when disabled. When work profile is locked, the state change doesn't propagated into UserManagerService immediately. This CL remove that dependency, rather than having Launcher calls UserManager#isUserUnlocked, the state is passed into UserLockStateChangedTask by extracting user state from broadcasted intent at the call-site. Bug: 147210578 Test: manual Change-Id: I87f3d0478df44df60e273189f77b61bc40dd2630
2020-02-06Various icon cache fixesSunny Goyal
> Multiple instances of LauncherIcon created when LauncherIcons refers IconCache which in turn creates new LauncherIcons > Widget icons are never cached as they were using low res icons > Shortcut drag icons are not loaded synchronously when using PinItemRequest flow > Wrong lastUpdatedTime is used in iconCache for shortcuts > IconUpdateHandler does not ignore managedUser promise icons Change-Id: Ie7eed68a30fad11d1861b6c70c380953a15ae1cf
2020-01-02Removing static reference of deep shortcut managerSunny Goyal
Bug: 141376165 Change-Id: Ie60b82be63a8926825598c681d8b2a1b2ace6413
2019-12-11Removing static instances of UserManagerCompat and AppWidgetManagerSunny Goyal
> Changing the lifecycle to follow other static objects in Launcher > Removing compat interface and inlining everything to helpers Bug: 141376165 Change-Id: I82bd5db1969101de9a7eac77f32728d70195bb35
2019-10-28Storing BitmapInfo instead of icon and color directly in itemInfoSunny Goyal
This will allow subclassing BitmapInfo to support custom icon/dynamic icons which can be loaded on the background thread instead of going through IconFactory which runs on UiThread Change-Id: Ieced6e91330bdff1b505826d097a8df711dfe967
2019-07-25Separating apps list callback from model callback and simplifying various eventsSunny Goyal
Bug: 137568159 Change-Id: I4d8bb5c01cabe642731ebd3f57fe15bdc5a569b7
2019-07-17Removing global state from DeepShortcutManagerSunny Goyal
This makes DeepShortcutManager thread-safe and avoids any locks Change-Id: If4593b3541da6259591ff7a607efa58158006481
2019-04-22Removing ShortcutInfoCompat and directly using ShortcutInfoSunny Goyal
Change-Id: I2842689e192a206c0d31558c8126eae1c7904598
2019-04-16ShortcutInfo renamed to WorkspaceItemInfoSunny Goyal
Will get rid of ShortcutInfoCompat in a follow up cl Change-Id: I7d7d9c938635f59b216290ba28bea9d0e0721a7d
2019-01-29Changing min sdk to 25Sunny Goyal
Change-Id: I0d28069967854357ca755bf25dec19d4979bdecf
2018-11-30Fixing shortcut icons are not getting correct color extraction.Sunny Goyal
> Avoiding color extraction for icons which have already be evaluated > Fixing color extraction from hardware bitmaps Bug: 111343544 Change-Id: I624866e892465684871fbc130003e32945d86460
2018-10-22Deepshortcuts - only keep the per package shortcut count in memory.Zak Cohen
Change to only keep the per Activity shortcut count in memory, not the list of ids. The full shortcuts are loaded at long press time so saves memory. Bug:117239104 Test:Manual and ran instrumentation tests Change-Id: Iee974ecba2c977216be4f078396ceed22b931f5d
2018-10-19Setup make icon-loader libraryHyunyoung Song
Bug: 115891474 Test: make -j10 icon-loader Next step: Launcher will depend on icon-loader in next CL Change-Id: I797ddb857cf8be79f3be6ca2f174c593ca3713a5
2018-09-26Move IconNormalizer/ShadowGenerator/LauncherIcons to icons packageHyunyoung Song
Bug: 115891474 Sending out the package name changing CL first before I make LauncherIconsHandler and tests around it. Change-Id: Ic10479a06333e1435b392a7072cd08782e710cbd
2018-01-09Making LauncherIcons thread safeSunny Goyal
Creating a pool of LauncherIcons so that they can be used from multiple threads Change-Id: Idc7b5ddb47b6e338a5389f3c4faa6f63de108c72
2018-01-03Dominant color is part of icon cacheSunny Goyal
> Calculating extracted color during icon generation and storing it in model and DB > Removing unused logic avoid various types of badge rendering > Icons are badged with extracted colors, while folder is badged with theme color Bug: 35428783 Change-Id: I93e30c52fbded7515c3ae1778422e84672eafb56
2017-10-31Moving various runtime flags into the common base class.Sunny Goyal
Caching the ststemApp status for workspace shortcuts. Change-Id: I25663e1f04a9768afcca000294adcbb00ea1db7b
2017-08-17Simplifying some package matching code by using common itemInfo mathcherSunny Goyal
Change-Id: Ib98d528391e19c0de3fe11304330dfa37710548c
2017-07-28Use deep shortcuts' icons as a fallback when updatingTony
We already do this when loading, but now we also do it when getting callbacks that potentially change the shortcut icon. These callbacks first check the pinned shortcut info, but if there is no icon there we now fall back to the current icon instead of the default icon. Bug: 62814533 Change-Id: I777adedf4b7f93dbaddb98a993eda34d59dcc173
2017-06-08Adding support for loading workspace in the absence of Launcher.Sunny Goyal
> LoadWorkspace can be called with a LoaderResult which does not bind anything. > Synchronous bind does not look for a valid page id, and will fallback to the current pageId similar to full load flow Bug: 37616877 Change-Id: If14491dc79c5b85ae1019cc93e4e08759df3387d
2017-03-28Minor Refactoring only: no functional changeMario Bertschler
- organizing imports - remove redundant modifiers on LauncherCallback interface - fix typos Change-Id: I61eb985cac7c1379b6b804a67d4f234386d3d1b4
2017-02-16Separating methods for updating the model to a sepatate class.Sunny Goyal
Removing static access to model update methods, to allow for better access control and testing Change-Id: I9afe004dbf1b2fe50df422fd28bceea9230a4704
2017-01-18Moving icon generation out of ShortcutInfo constructor so that itSunny Goyal
can be created on the UI thread Change-Id: If84e52041eb4ab20807f5cfd4b7f31d7b5f381ed
2017-01-03Simplifying IconCache access codeSunny Goyal
Providing a way to access icon cache without LauncherAcitivtiyInfo. This allows fetching LauncherActivityInfo only when required, thus avoiding system RPC when the icon is already in cache. Change-Id: I92918c7a0d0d0796e5f7b70d4ecb6787c52c6600
2016-12-15No more UserHandleCompatSunny Goyal
Bug: 32745285 Change-Id: I762fb4e268c1afe48a1860ab12a4ccb3f626aa95
2016-11-21Changing DeepShortcutManager to have a singleton contructor insteadSunny Goyal
of getting it from LauncherAppState This follows the design of other managers and makes it easier to access it from other processes and non-ui thread. Bug: 33032833 Change-Id: I8ad82ae5b6cc47bae885f9896985675c7dd0d5b8
2016-11-09Moving various runnables in LauncherModel to individual tasksSunny Goyal
> Adding tests for some of the runnable Change-Id: I1a315d38878857df3371f0e69d622a41fc3b081a