summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/ShortcutInfo.java
Commit message (Collapse)AuthorAgeFilesLines
* Removing UserManagerCompat wrapper for getting baded labelSunny Goyal2018-11-051-3/+1
| | | | | | | This removes some crass dependency on Launcher compat implementation making it easier to move iconCache to a separate library Change-Id: If5fab0c82d98089cde6f54b6a374fb7bb2db5ae8
* Removing additional rpc due to icon cache updateSunny Goyal2018-09-211-0/+1
| | | | | | | | | | When launcher loads, it fetches the list of apps twice, once for loading all-apps and again for updating icons. Instead reusing the previously fetched apps list. Also moving the icon loading in a separate package for further generalization Change-Id: Ibd2dae56e6027a31b633da030bc6b43a90b27e1b
* Using a placeholder icon shape instead of low-res/blurry iconSunny Goyal2018-08-271-1/+1
| | | | | Bug: 111142970 Change-Id: I867224464ae9c026f4dcb5256ef14fc39c8e751d
* Moving click and long click handling for items from launcher to separate classSunny Goyal2018-03-081-1/+1
| | | | Change-Id: I1d12862205f7fa7f3671ff351e66dba58bb430e2
* Moving various runtime flags into the common base class.Sunny Goyal2017-10-311-52/+2
| | | | | | Caching the ststemApp status for workspace shortcuts. Change-Id: I25663e1f04a9768afcca000294adcbb00ea1db7b
* Integrating suggested app by handling new status flags for shortcut items.Mario Bertschler2017-08-241-0/+24
| | | | | | | | Guarded via feature flag SUGGESTED_APP. Bug: 62483883 Change-Id: I7e0c8a9875bc37c435aa4316b44322a628cd4826
* Minor Refactoring only: no functional changeMario Bertschler2017-03-281-3/+3
| | | | | | | | - organizing imports - remove redundant modifiers on LauncherCallback interface - fix typos Change-Id: I61eb985cac7c1379b6b804a67d4f234386d3d1b4
* Removing the profile extra from intent and using the profile id from the ↵Sunny Goyal2017-03-211-1/+1
| | | | | | | | | profile column The intent extra is not always correct as the profile id can change during backup restore. This allows us to use a consistant behavior everywhere. Change-Id: I004bd244204ca91758b1d42488e1fc13b0ccb998
* App discovery integration in All Apps searchMario Bertschler2017-03-031-3/+0
| | | | | | | | | This is the basis for app discovery integration while searching in all apps. This does NOT include binding to the actual service and retrieving results, but instead provides all the UI to show suggested instant apps and apps from a store with star rating and pricing. Change-Id: I1605b52848491acee4ac1d15c0112e6a768363f6
* Adding some widget addition flow testsSunny Goyal2017-01-231-1/+1
| | | | | | | > Added two dummy widget providers: with config and without config > Added tests for verify widget config flow Change-Id: I4577f085abe8f8b82047b644c71cc9065358153a
* Moving icon generation out of ShortcutInfo constructor so that itSunny Goyal2017-01-181-44/+0
| | | | | | can be created on the UI thread Change-Id: If84e52041eb4ab20807f5cfd4b7f31d7b5f381ed
* Merge "Loading proper app icon if the associated activity is null" into ↵Sunny Goyal2017-01-131-9/+21
|\ | | | | | | ub-launcher3-master
| * Loading proper app icon if the associated activity is nullSunny Goyal2017-01-111-9/+21
| | | | | | | | | | Bug: 34123342 Change-Id: Ibb80c6e442beea34c612fb4ce5246260714820e2
* | Removing promiseIntent property from ShortuctInfoSunny Goyal2017-01-121-11/+1
|/ | | | | | | | > Instead of checking promiseIntent != null, using isPromise() for consistency > Fixing bug where clicking a pending icon does not launch anything > Fixing bug where draging an icon on Info target, permanently hides the icon Change-Id: Ic8f6b56042dba42d5ed9aedb0f5947186e1a4208
* Removing static Context access using LauncherAppStateSunny Goyal2017-01-111-2/+2
| | | | | | | | > This ensures that LauncherAppState is only accessed in the presence of a valid context Bug: 33032833 Change-Id: I955e5cb022f8bd6374681ae6c0720a2666d5b750
* Fixing AppInfo missing intent when loading iconSunny Goyal2017-01-101-0/+3
| | | | | Bug: 34199268 Change-Id: I7223d1d408e7b48f9c63c9801c2805aaf7363038
* Removing logic around replacing icon during restoreSunny Goyal2017-01-051-0/+1
| | | | | | | | This logic was dependent on key-value based backup. Since we are using full-backup, the appropriate flags are never set. Bug: 18764649 Change-Id: I95a93eee63ac9c82acfb66abfdd1a5407974df46
* Simplifying IconCache access codeSunny Goyal2017-01-031-32/+10
| | | | | | | | 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
* No more UserHandleCompatSunny Goyal2016-12-151-2/+3
| | | | | Bug: 32745285 Change-Id: I762fb4e268c1afe48a1860ab12a4ccb3f626aa95
* Ensuring that ShortcutInfo always has an iconSunny Goyal2016-12-131-53/+8
| | | | | | | | | > Making iconBitmap public instead of a getter (similar to AppInfo) > Removing getIcon() which can lead to IO on UI thread > Removing updateIcon and handling the update at the caller Bug: 21325319 Change-Id: I6a49b9043f974e9629ea25e77012d97cc04c0594
* Merge "Changing DeepShortcutManager to have a singleton contructor instead ↵Sunny Goyal2016-11-211-1/+2
|\ | | | | | | of getting it from LauncherAppState" into ub-launcher3-master
| * Changing DeepShortcutManager to have a singleton contructor insteadSunny Goyal2016-11-211-1/+2
| | | | | | | | | | | | | | | | | | | | 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
* | Adding a utility class to enforce that icons are always flattened onSunny Goyal2016-11-191-25/+12
|/ | | | | | | the background thread. Bug: 21325319 Change-Id: I4d0f02557cdbf70cfa86750ac047faf2917e39bf
* Moving various runnables in LauncherModel to individual tasksSunny Goyal2016-11-091-4/+4
| | | | | | > Adding tests for some of the runnable Change-Id: I1a315d38878857df3371f0e69d622a41fc3b081a
* Moving come helper methods to corresponding classesSunny Goyal2016-10-101-9/+0
| | | | | | | | > Moving isPackageEnabled to InstallShortcutReceiver > Moving the deep shortcut map to the data model > Removing appInfo.flags. Instead fetching the flags when needed Change-Id: I654dd8acefa7b7d183b0419afbe112bef001d536
* Adding support for multiwindow drag and dropSunny Goyal2016-09-121-1/+1
|\ | | | | | | | | | | am: d139b0aa7d Change-Id: Ie2a41a3e355ff502a870bde5c8be2576b8712bf7
| * Adding support for multiwindow drag and dropSunny Goyal2016-09-121-1/+1
| | | | | | | | Change-Id: I95b46e3c3f1238307d3ef5a6c81a8e530ba0987a
* | Moving some image handling classes to .graphics packageSunny Goyal2016-09-021-4/+5
|/ | | | Change-Id: Id6d3d0b9c345a503ff2e09f073eb4b6449e21c7e
* Unifying toString() method for various ItemInfo subclassesSunny Goyal2016-09-011-8/+0
| | | | Change-Id: I7cde42f0df412e2877fb93c77e74ee56a25edead
* Use promisedIntent instead of intent when deep shortcuts are restored.Tony Wickham2016-08-291-1/+6
| | | | | | | | | | This ensures that the intent has the package corresponding to the shortcut publisher, rather than a market intent. It also ensures that the intent has the EXTRA_SHORTCUT_ID attached. Bug: 31123204 Change-Id: I05d56396b629880322e915f52bfc0605b921b0b1
* Use shortcut disabled message if available.Tony Wickham2016-08-051-0/+7
| | | | | Bug: 30681210 Change-Id: Ibb5fd58e5fc9557b63730bc1e3c3977133769466
* Merge "Adding quiet mode support for shortcuts" into ub-launcher3-calgarySunny Goyal2016-08-011-2/+7
|\
| * Adding quiet mode support for shortcutsSunny Goyal2016-07-291-2/+7
| | | | | | | | | | | | | | | | | | | | | | > LauncherApps returns empty list when the user is locked. Not relying on LauncherApps in this case > When the user is locked, removing all dynamic shortcuts > Loading shortcuts from DB when the user is locked > Verifying the shortcuts again when the user is available Bug: 30411561 Change-Id: Ib6eb372c5b009cadb86a8f6e781f3f3cbf787ceb
* | Merge "Badging shortcuts with app icons" into ub-launcher3-calgarySunny Goyal2016-07-291-5/+22
|\ \ | |/ |/|
| * Badging shortcuts with app iconsSunny Goyal2016-07-291-6/+22
| | | | | | | | Change-Id: I3fa005ece20a54b31f823acb28c384ecdf1eafb1
* | Showing the shortcuts in the disabled state and removing ti from the menuSunny Goyal2016-07-281-4/+15
| | | | | | | | | | | | | | when its disabled Bug: 30315906 Change-Id: Ice747e7be955d8bb2dd65191f7613e2afd4abc1c
* | Check package name and user handle in onShortcutsChanged().Tony Wickham2016-07-281-1/+0
|/ | | | | | | | | Otherwise shortcuts with the same id would be updated, even if they were in different packages. Bug: 28980830 Change-Id: Ideefe3aaac83af38c03a38d821bac192ae55fe67
* Removing shadow and badging from the icon which is shown in the menuSunny Goyal2016-07-261-38/+33
| | | | | | | These are added as soon as the icon is added to the workspace Bug: 28980830 Change-Id: I725d2ee8994324f09d9ecf7bbbb0090a7ceb5769
* Adding support for dynamically adding shadows to the iconSunny Goyal2016-07-201-1/+1
| | | | Change-Id: I94d98750aea1faef8879e25990aa5c41a4894708
* Fixing issue with content description not being updated.Winson2016-07-121-1/+1
| | | | | Bug: 30064868 Change-Id: I09a0576c3618c253c25a5e755081833816887698
* Making some shortcut manager calls protected by MR1 version checkSunny Goyal2016-06-231-6/+6
| | | | Change-Id: Ifdfa95a58aa18a825c1838c61055928dbe0ea3be
* Add support for launcher shortcuts.Tony Wickham2016-06-211-3/+46
| | | | | | | | | | | | | | | | | | | - This CL has no UI but provides the necessary backing for one. - Adds new item type: ITEM_TYPE_DEEP_SHORTCUT, to distinguish from ITEM_TYPE_SHORTCUT. We can reconsider these names. - Adds ShortcutCache, using LruCache for up to 30 dynamic shortcuts (pinned shortcuts are always cached in a HashMap). - DeepShortcutManager queries for shortcuts and other things like pin them. In a future CL it will use the cache, but for now it simply makes an RPC for all queries. - LauncherModel maintains counts for pinned shortcuts, pinning and unpinning when counts reach 1 or 0, respectively. - LauncherModel maintains a map of components to lists of shortcut ids, which Launcher gets a copy of after it is changed in the background. This will allow us to know how many shortcuts an app has immediately, and query for details as the UI is animating. Change-Id: Ic526f374dd10d72a261bae67f07f098fca8d8bca
* Making the security checks and policy changes only when launching customSunny Goyal2016-06-101-0/+1
| | | | | | shortcuts. This prevents launcher specific intents to unknowingly leak data. Change-Id: I01343a9cee1f2a9a37a20aaf24e933e2771ecdbc
* Removing icon_type columnSunny Goyal2016-05-111-25/+7
| | | | | | | | | Icon type is not used consistently. It is used initially during the loader. Afterwards, we save both the icon and resource to the db. Instead of changing the logic to always read the shortcut-resource first, and fallback to the bitmap if the resource is not available, always write the bitmap to DB whenever the shortcut is edited. Change-Id: I0ea5e88f8904bd3250ca669220b3e5d6aeef1bfd
* Revert "Reverting refactoring of Folder and FolderIcon to avoid dependencies ↵Sunny Goyal2016-02-231-0/+4
| | | | | | | | breakage" This reverts commit fc956e5a2a818c06ed3424e15b0aa20a3f604658. Change-Id: Ib3b5156b8fc3cad35c4634d61d5390c848ce1f93
* Reverting refactoring of Folder and FolderIcon to avoid dependencies breakageSunny Goyal2016-02-171-4/+0
| | | | Change-Id: Ifd0d717d70aff4c83c9eb5cba397d04500b2c869
* Refactor FolderIcon to separate the preview effect into it's own classAdam Cohen2016-02-121-0/+1
| | | | | | | -> Created com.android.launcher3.folder package to house most folder-related files (aside from the FolderInfo) which is more related to the model than the UI. Change-Id: I767063e1e4c775c01a799a3bede30cd94ac48ade
* Respond to managed profile availabilty Intents.Kenny Guy2016-01-251-0/+5
| | | | | | | Grey out applications when managed profile is not available. Change-Id: I9bb9442cd0b3d0d207062716bfd6b179e3ba8489
* Grey out suspended applications.Kenny Guy2016-01-251-0/+11
| | | | | | | | Grey out application shortcuts and all apps entries for packages that are suspended. Bug: 22776761 Change-Id: I1b63da1816aca1de52b9f9bee62d1b162d0cdf4d
* resolve merge conflicts of 0c2f0700a5 to ub-launcher3-master.Sunny Goyal2015-11-301-11/+3
|\ | | | | | | Change-Id: I92f38e9f4ac4d9b6c5a3000e0971d2bc417bd3c6