summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/LauncherAppState.java
Commit message (Collapse)AuthorAgeFilesLines
* Creating landscape and portrait device profiles at app initializationSunny Goyal2015-05-221-12/+1
| | | | Change-Id: Ide9d007adc36b348e19b05cdf49e87f8b02db60e
* Refactoring DeviceProfileAdam Cohen2015-05-211-46/+8
| | | | | | | | | | | | | | | | | | | | -> Pulling out the parts of device profile which can (and need to be) initialized and accessed without access to an Activity context, ie. the invariant bits. -> The invariant bits are stored in InvariantDeviceProfile which is initialized statically from LauncherAppState. -> The DeviceProfile contains the Activity context-dependent bits, and we will create one of these for each Activity instance, and this instance is accessed through the Launcher activity. -> It's possible that we can continue to refactor this such that all appropriate dimensions can be computed without an Activity context (by only specifying orientation). This would be an extension of this CL and allow us to know exactly how launcher will look in both orientations from any context. Sets the stage for some improvements around b/19514688 Change-Id: Ia7daccf14d8ca2b9cb340b8780b684769e9f1892
* Moving LauncherAccessibilityDelegate to accessibility packageSunny Goyal2015-05-191-0/+1
| | | | Change-Id: I510204a5a12abf2da2757f3e3f8b0e8869a6b04a
* Removing some thread priority management logicSunny Goyal2015-05-181-2/+0
| | | | | | > Not saving folder id in onSaveInstance as it is not used. Change-Id: I176beb77cafe27ec4b7500d65dc86287d2f2e0cb
* Handling managed profile creation in the model as the activitySunny Goyal2015-05-011-0/+4
| | | | | | can get killed in the background. Change-Id: I95f62cf268fe642c9a2bb4975eb92bf8e12d23a9
* Fixing missing updates in package install sessionsSunny Goyal2015-04-221-11/+0
| | | | | | | | | | | | > Ensure icon cache never returns null icon > Enabling install shortuct receiver only after workspace has finished binding > Making all the model changes for package installs on worker thread and only posting the updaes on the UI > Making shortcut exists check on the loaded items and not on the DB > Explicitely using worker thread for PckageInstallListener > Removing backward compatibility support from PackageInstallerCompat Change-Id: I9592771b9670c1c1c84c8208cae8dafa7b393e65
* Automatically adding managed profile shortcuts to homescreen.Sunny Goyal2015-04-101-1/+1
| | | | | | | | | | | | When the managed profile is created, a "Work" folder is created and added to the homescreen. All work profile apps are added to this folder and icons for subsequent installs (withing a fixed time frame) are automatically added to this folder. If this folder get deleted or the time-frame expires, icon for any new install is placed on the homescreen. Bug: 17410319 Change-Id: I49f4e437707d5eabe4eec85320765bf6ba7fde97
* WidgetTray revamp workHyunyoung Song2015-04-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | - RecyclerView is rendering - Animation is connected - Drag and drop is now handled - UI tweaking: background, margins, more to come. - Flicker and preview not loading issue: fixed height for the horizontal scroll view. - Shortcuts are added - Widget Preview loading should support shortPress for drop - UI tweaks left: overlay of arrow when there are more items to scroll - icons are added in the section header - Sorting of widget sections and widget horizontal list - Adding all the padding constants to dimen.xml file - RecyclerView should only support one view type For items to be addressed in follow up patches OR CLs, TODO is added to the comment. b/19897708 Change-Id: Ibfc4da1696a23d20bada93db46e126706eb13cdc
* Removing ContentObserver from LauncherModel, and calling reloadSunny Goyal2015-04-011-21/+6
| | | | | | whereever necessary Change-Id: Ia4a8abdfe2be9703f3217a60527d3a1220b33bdc
* Rewrite: Widget preview loader logicSunny Goyal2015-03-201-15/+6
| | | | | | | | | > Widget previews are saved in data dir instead of cache dir > Expiring widget previews similar to IconCache > Removed support for setting thread priorities Bug: 19865031 Change-Id: Ib6033c2b1ff8ae61bba8762ca994ccd8217d3c75
* Merge "Removing unnecessary intent-filter construction" into ↵Sunny Goyal2015-03-201-6/+2
|\ | | | | | | ub-launcher3-burnaby
| * Removing unnecessary intent-filter constructionSunny Goyal2015-03-191-6/+2
| | | | | | | | Change-Id: I1f831ef48ed69381ad260f7d541f39a049c498a5
* | Reducing method count by eliminating synthetic accessorsAdam Cohen2015-03-201-1/+2
|/ | | | | | | | | | | Elimates 304 methods based on dex analysis The java compiler generates sythetic accessor methods for all private fields, methods and contructors accessed from inner classes. By marking them package-private and @Thunk instead, sythentic accessor methods are no longer needeed. These annotated elements should be treated as private. Change-Id: Id0dc2c92733474250d8ff12fa793d3a8adeb1f26
* Enabling accessible drag and dropAdam Cohen2015-03-091-2/+2
| | | | | | | | | | | | | | | | | | | | | | -> Using the context menu, and a new two stage system, this allows users to curate icons and widgets on the workspace -> Move icons / widgets to any empty cell on any existing screen, or create a new screen (appended to the right, as with regular drag and drop) -> Move icons into existing folders -> Create folders by moving an icon onto another icon -> Also added confirmations for these and some existing accessibility actions Limitations: -> Currently, no support for drag and drop in folders -> Considering moving the drag view so it doesn't occlude any content (in particular, when user changes pages) -> In this mode, accessibility framework seems to have problems with the next / prev operations Bug: 18482913 Change-Id: I19b0be9dc8bfa766d430408c8ad9303c716b89b2
* Removed disableAllApps flagSunny Goyal2015-02-261-9/+0
| | | | Change-Id: I50ba511b8493bca2506ab6010f141c093bfa7499
* Adding accessibility controlsSunny Goyal2015-01-161-0/+10
| | | | | | | | | | | > Adding 'Remove' option to workspace items > Adding 'Add to workspace' to all apps and widget list items, which adds the item to the first available space, giving preference to the current workspace screen > Adding 'App info' and 'Uninstall' options to appropriate items Bug: 18482913 Change-Id: Ifab7423af2d9ba502b5a2771b37bb5436b3df937
* Don't try to create an app state instance during restore.Chris Wren2014-11-241-5/+12
| | | | | | | Added a static utility function to get the DeviceProfile instead. Bug: 18504164 Change-Id: Ia510a84f1c195e58acf3bf4d1f6a42c739fdd413
* Adding shortcuts corresponding to ManagedUsers automatically.Sunny Goyal2014-11-121-8/+7
| | | | | Bug: 16188104 Change-Id: Ic07578dd187263f59f3c431cbb78dea90d0c24f4
* Removing some duplicate methodsSunny Goyal2014-11-111-3/+4
| | | | Change-Id: I8a1295ab74890984e8d8508aaa18fd79ac2a032d
* Updating backup restore logicSunny Goyal2014-10-281-7/+25
| | | | | | | | | | | | | | | > Adding DeviceProfile information in the backup > Removing SharedPreference backup > Adding helper methods to abort backup in the middle > Comparing keys against the backup journal during restore to avoid restoring corrupt/lost entries > Old backups are still compatible, but lost keys verification will be ignored in that case. Bug: 17937935 Bug: 17951775 Bug: 17260941 Change-Id: Iad48646cfdd69abaff5c163b2055f3b8a9b39b19
* Merge "Updating ItemInfo objects in the worker thread" into ub-now-queensSunny Goyal2014-10-211-0/+2
|\
| * Updating ItemInfo objects in the worker threadSunny Goyal2014-10-141-0/+2
| | | | | | | | | | | | | | | | | | | | | | > Launcher was making non-trivial updates to ItemInfo objects on UI thread. These updates were getting skipped when the Activity gets destroyed (possibly due to onConfigurationChange) > Unregistering SessionCallback on application onTerminate, rather than activity onDestroy Bug: 17941096 Change-Id: Iad4a50871fe09470f26139b44a2e9886833032f1
* | Add more Launcher files to delete on Clear Launcher DataHelena Josol2014-10-161-2/+1
|/ | | | | Bug: 12753154 Change-Id: I00679bdc6eff70a1398122aaa955c08eabd556b1
* Updating promise icon's bitmap and label when onBadgingChanged is receivedSunny Goyal2014-09-191-0/+7
| | | | | Bug: 17583799 Change-Id: I68b4f9d4086c43bd949ad8b46b574ec78edb32db
* Turn off debugging for launch.Chris Wren2014-09-121-1/+1
| | | | Bug: 17483474 Change-Id: I8dd24ba08ffe0773f4d68739b30b829021d69902
* Handling label and icon from SessionInfo.Sunny Goyal2014-09-041-1/+1
| | | | | | | | | > The ShortcutInfo stores state as bit flags and not as ints > Intents of auto-install shortcut are automatically updated upon installation > Icons/titles for active sessions are cached in IconCache Change-Id: I2047849f67d4a8aaf2bc346b58110325bb4807d4
* Implementing a package install progress listener for LSunny Goyal2014-08-011-4/+9
| | | | | | issue: 15835307 Change-Id: I71aaea087963f2e0e1206447190cbe23c174057d
* Revert "Revert Cls stopping now-master running on googlefood"Kenny Guy2014-06-301-2/+2
| | | | | | | | | This reverts commit 7bc272a11b701a32d2ed91277341c382cbd84aeb. Conflicts: src/com/android/launcher3/BubbleTextView.java Change-Id: Id1fb2e1249e72658ce5477165c9bcacba9de2b04
* Revert Cls stopping now-master running on googlefoodKenny Guy2014-06-241-2/+2
| | | | | | | | | | This reverts commits 01453e855fa87ee19f61223b2b1a6965071ee95a. and 242bbe1b72e4978dde8a662d164cd186305e14a7. "Add content description to bagded icons." "Remove reflection now we are building against L" Bug: 15833449 Change-Id: I81a5316f5619a9cd3b6ab9fd03b2ba96657b7f68
* Remove reflection now we are building against LKenny Guy2014-06-231-2/+2
| | | | | | | Remove reflection and update changed renamed L APIs now that branch has L sdk. Change-Id: I223c6528487110eb328e2e229bbcbefb701e0c20
* Fix bug with user of shortcut not being remembered over restart.Kenny Guy2014-05-081-1/+3
| | | | | | | | | | | Intent extra was being set as int rather than long so being missed. Also use LauncherApps if neccessary in case where launching without launch animation. Unregister for package notifications when terminating. Bug: 14636181 Change-Id: I1575f6eed806446782092dffe8c01afe7b6507fe
* Launcher3 multi-profile supportKenny Guy2014-04-301-8/+5
| | | | | | | | | | | | | | | | | | | | | Use LauncherApps API and badging APIs instead of PackageManager. With compatability layer that uses PackageManager pre L. Adds support to show apps from current user and any managed profiles. Background: Managed profiles are user sandboxes that are visible from the primary user and can be launched as if they are a part of this user. A launcher should now be capable of listing apps from this user as well as related profiles of this user. Launching of activities is now via the LauncherApps interface, to allow for cross-profile app launching. Only activities with category LAUNCHER can be added as a shortcut on the workspace for a managed profile. Widgets and non-application shortcuts are only supported for the current profile. Widgets from the managed profile are not available. Change-Id: I5f396b1bf7f91ad91a5710ea4a0fd14573972eb9
* additional debug logs to track welcome back behavior.Chris Wren2014-04-161-1/+1
| | | | | Bug: 13568891 Change-Id: I359202ce59b3444e46331485ea22f542ae908e36
* turn off LauncherAppState.DEBUGChris Wren2014-04-151-1/+1
| | | | Change-Id: Ia6d54235c353c27c8716d7fd9270a7f2ee7bc93f
* update promise icon statusChris Wren2014-03-111-0/+7
| | | | | | | also fix a crash in LauncherModel.DEBUG_LOADERS Bug: 10778992 Change-Id: Iafc28c1e0c2f2a1283783a7ce27e181634b62993
* Merge "Fix NPE in Workspace.onDropCompleted" into jb-ub-now-kermitJorim Jaggi2014-01-141-0/+4
|\
| * Fix NPE in Workspace.onDropCompletedJorim Jaggi2014-01-141-0/+4
| | | | | | | | | | Bug: 11627757 Change-Id: I9dc86856d4bc00253d6350d157be541a8c46888d
* | Merge "Recover when widget preview database is deleted" into jb-ub-now-kermitMichael Jurka2014-01-141-1/+8
|\ \ | |/ |/|
| * Recover when widget preview database is deletedMichael Jurka2014-01-091-1/+8
| | | | | | | | | | | | Bug: 12109621 Change-Id: I8d59700d31d6856d6151b965786c87585801317b
* | Allow DISABLE_ALL_APPS to be set using a system property.Nilesh Agrawal2014-01-091-1/+9
|/ | | | | | | | | - Moving the property to LauncherAppState - The property is only read on dogfood builds. The property can be set using setprop or /data/local.prop Change-Id: I14c7354efb12edb93f97e81687a6f920cc634e9a
* Clean up importsMichael Jurka2013-12-131-2/+0
|
* Update suggested wallpaper dimensions in onResumeMichael Jurka2013-12-031-0/+11
| | | | | | | If another launcher runs in between, it might change the suggested dimensions. This fixes that case. Bug: 11667475
* Adding method to get the search bar bounds.Winson Chung2013-11-141-1/+1
| | | | Change-Id: Iec2fe0992cc666432ba6b9eac7ee8bf63e49b146
* Initial changes to support smaller landscape layouts.Winson Chung2013-10-281-3/+8
| | | | Change-Id: If0abe2b82eb08bae4f1ce65b805362d548acb876
* Altering the workspace padding to account for default widget padding (Bug ↵Winson Chung2013-10-101-1/+2
| | | | 11116452)
* check the state of launcher before running a backup.Chris Wren2013-10-041-0/+4
| | | | | Bug: 11066273 Change-Id: Ie27a7cce4060f0bafedb06dbdb33fddf50a9cc48
* Add a better app filtering mechanism and filter widgetsBjorn Bringert2013-10-031-1/+8
| | | | | | | | | | | The old one didn't use the app filter when packages were added or updated, only in the initial load. The app filter is now also used for appwidget providers. Bug: 10895858 Bug: 10898990 Change-Id: Id29bbc3cf7bdb0c360edd92f768b86684bd338ed
* Clean up unused codeMichael Jurka2013-08-281-3/+0
| | | Change-Id: Ie1e927aa0b5304f62cfffaab449abb3133870f80
* Fixing folders to always show in view, removing old assets and references to ↵Winson Chung2013-08-231-7/+8
| | | | LauncherModel count.
* Initial implementation of new wallpaper picker.Michael Jurka2013-08-211-1/+7
| | | Change-Id: Ib4c5ac4989b4959fa62465d9cde3cac662e24949