summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/LauncherAppState.java
Commit message (Collapse)AuthorAgeFilesLines
* Removing user locked change in LauncherAppStateSunny Goyal2019-06-031-3/+0
| | | | | | | | The process will crash anyway when loading sharedPreference. So we do not need any extra check to cause the same crash. Bug: 134094839 Change-Id: Icfd4406ff601d6b9a75bd95ddcecb9869f7e7fa2
* Fix icon shape refresh for widgets list / legacy shortcut black bg issueHyunyoung Song2019-04-021-0/+1
| | | | | Bug: 118085499 Change-Id: Ifc3c711815567f40f109e95bcb76c01f23b4a3a2
* Make TouchInteractionService direct boot awareTony2019-02-281-0/+5
| | | | | | | | | | | | | | | | | | | - Add directBootAware="true" to TouchInteractionService manifest component - Add DeviceLockedInputConsumer which just sends a home intent on touch down Test: - Reboot - Swipe up anywhere to get to bouncer (pin/password/pattern) - Click "Emergency" to launch dialer while still in direct boot - Swipe up from the nav bar to exit/bring up bouncer Test: - Lock screen - Double press power to launch camera - Swipe up from nav bar to exit/bring up bouncer Bug: 125364936 Change-Id: I7a4cd2dc3a635daf4bb9a643a1e5251ca4e91e33
* Refresh icon cache when icon shape path has changedHyunyoung Song2019-01-041-2/+4
| | | | | | | | | | | Bug: 120505990 $ adb shell cmd overlay enable --user 0 com.android.theme.icon.roundedrect $ adb shell cmd overlay disable --user 0 com.android.theme.icon.roundedrect $ adb shell cmd overlay enable --user 0 com.android.theme.icon.teardrop $ adb shell cmd overlay disable --user 0 com.android.theme.icon.teardrop Change-Id: I06663b9727f7434aae737d39977f1e6cf09bffbf
* Rename "badges" to "dots" where appropriateTony Wickham2018-12-041-11/+11
| | | | | | | | This will reduce confusion with the other "badging" concept we use for, e.g. work profiles. It is also consistent with the external name "notification dots". Change-Id: I2a2c9d96dc0d6284eb0c48adc78a856271caad4d
* Handling configuration changes at runtime instead of killing the processSunny Goyal2018-10-191-0/+16
| | | | Change-Id: I0c7f7e58ddb690f371c257b6142a4e918e9acb7f
* Using a common class for observing secure settingsSunny Goyal2018-10-171-14/+14
| | | | | Bug: 117519297 Change-Id: Ie9d948130aea50bf10c9fc625fdb16f4cfc4712e
* 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
* Lazy loading LauncherAppStateSunny Goyal2018-07-031-29/+9
| | | | | | | Separating InvarantDeviceProfile out of LauncherAppState and creating LauncherAppState only when it is actually used Change-Id: I2ee55f53cae01f11203f94675bb5f70c65ad2b9d
* No more waiting around for resumeSunny Goyal2017-12-191-0/+7
| | | | | | | | Apply model updates as son as they arrive instead of waiting for onResume. Various workspace items do not use any configuration dependent resources. For Widgets, we wait until the host starts lietening before inflating the actual view. Change-Id: Icb2f5e5940c1ce6c27062ccd34eff87e80af5ab1
* Deleting sample code demonstrating how to extend Launcher3Sunny Goyal2017-10-301-6/+0
| | | | | | | | Launcher already includes Launcher3Go build flavour and we will be adding another build flavour for RecentsUI. There is no need to maintain another build which is not used anywhere. Change-Id: I9287f62691d57750460ccc9d6859c7fa11c99956
* Merge "Removing extraction service and palette api dependency" into ↵TreeHugger Robot2017-10-031-8/+0
|\ | | | | | | ub-launcher3-master
| * Removing extraction service and palette api dependencySunny Goyal2017-09-291-8/+0
| | | | | | | | Change-Id: I30ad1a1462a97b6bc03f8e386ae3058c7fe022e5
* | Adding a utility method to simplify method tracingSunny Goyal2017-10-021-2/+0
|/ | | | Change-Id: I79ef0aa5d65b933f4b7f0520fc8bac26e366da2d
* Unbind notification listener when badging is disabledTony2017-08-031-1/+26
| | | | | | | | | | | - Added SettingsObserver as wrapper around ContentObserver to observe Secure or System setting changes. - NotificationListener and LauncherAppState observe changes to the notification dots setting and unbind and rebind the NotificationListener service, respectively. Bug: 36815147 Change-Id: I2cc04ac816a8974969ad0ec759c5402e181fde24
* Moving LoaderTask staticSunny Goyal2017-06-021-3/+1
| | | | | | | | | | | Will move it to a separate file in a followup cl. This simplifies dependencies between LauncherModel and LoaderTask which and making it easier to start the loader before Launcher activity is created (as the Callbacks in LauncherModel can change while loader is running). Bug: 34112546 Bug: 37616877 Change-Id: Ie9619c6b0de0e3eb60657c04ae1b58d946c829e9
* resolve merge conflicts of 40dfa3bf6 to ub-launcher3-masterSunny Goyal2017-03-271-3/+0
|\ | | | | | | | | Test: I solemnly swear I tested this conflict resolution. Change-Id: Iee500631827ebc48c63c203fdcd0de888adcb135
| * Revert "Adding some logging around launcher grid when device profile changes"Sunny Goyal2017-03-201-3/+0
| | | | | | | | | | | | | | Bug: 35425060 This reverts commit c29de857807680bf72ebd386cbec716b33d64780. Change-Id: I4320be3473f914289f88c8cbb376a68af006d7de
* | Separating the config and flags in different directories so thatSunny Goyal2017-03-071-2/+2
|/ | | | | | | it is easier to override one or the other Bug: 36001650 Change-Id: I713f4f5dbcf902614ce9f6c7a73bdace7bdf1ea0
* Simplifying Model data load state managementSunny Goyal2017-02-221-9/+0
| | | | | | | | | | | Instead of maintaining 3 different states, each tied to a subset of data, maintaing a single state that represents all the data. Individual subset data is invalidated in rare cases and these invalidates are tightly tied to the UI. This also allows us to add new data to the model, without worring about classifying the data into a subset. Bug: 34112546 Change-Id: Id9cb273de35b79e84a2ef8d6556fcf1e72fb4b75
* Adding some logging around launcher grid when device profile changesSunny Goyal2017-02-151-0/+3
| | | | | Bug: 35349518 Change-Id: Ia71504cd37749f8eaa5e038ac2867bcd9749a4bb
* Initializing LauncherAppState only on the main threadSunny Goyal2017-02-131-45/+54
| | | | | Bug: 33032833 Change-Id: I7992a5358142dde80aeaf8c6b7a6c7bfef2c8a00
* Removing static Context access using LauncherAppStateSunny Goyal2017-01-111-1/+8
| | | | | | | | > This ensures that LauncherAppState is only accessed in the presence of a valid context Bug: 33032833 Change-Id: I955e5cb022f8bd6374681ae6c0720a2666d5b750
* Removing all compatibility code below LollipopSunny Goyal2016-12-161-18/+0
| | | | | Bug: 32745285 Change-Id: I62971908e3e4402941fab627bbdfd47be64473a3
* Adding a generic method to initiate overridable objectsSunny Goyal2016-12-121-3/+2
| | | | Change-Id: Ia433427c65ad38804f2eed9c6bc209df232758c0
* Changing DeepShortcutManager to have a singleton contructor insteadSunny Goyal2016-11-211-9/+1
| | | | | | | | | | 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
* Updating version check method namesSunny Goyal2016-11-021-1/+1
| | | | Change-Id: If98851677545a9bbb9de308c23ff5c155a61a8bf
* Code sanitizationHyunyoung Song2016-10-061-2/+2
| | | | | | - Removed bad method/class name typos Change-Id: Ie6900e9e3d9ce9b550d2a2442a5dac3f7050a573
* Adding quiet mode support for shortcutsSunny Goyal2016-07-291-4/+5
| | | | | | | | | | | > 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 "Add support for launcher shortcuts." into ub-launcher3-calgaryTony Wickham2016-06-221-1/+9
|\
| * Add support for launcher shortcuts.Tony Wickham2016-06-211-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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
* | Adding some tracing sections around launcher startupSunny Goyal2016-06-201-0/+3
|/ | | | | Bug: 29007436 Change-Id: I53afd9130a2dc70a2223f1623e862faf44370f26
* Moving LauncherAccessibilityDelegate to Launcher to associate it withSunny Goyal2016-06-171-11/+1
| | | | | | activity lifecycle. Change-Id: Ib815505677fa7ed74bdcfe7141b1d9bea5d7143a
* Moving the QSB to the workspace grid.Sunny Goyal2016-05-271-1/+0
| | | | | | | | | | | | The QSB will only be resent on the first screen of the workspace covering the full width of the first row. If will not be movable. The first screen of the workspace will not be movable. The searchDropTargetBar no longer contains the QSB (it can be renamed in aseparate cl). Refactoring all QSB related logic by moving it to a custom view inflated only using xml. Change-Id: Icb4fd6eb855df1af15f685961c38351bf4fd4f4a
* Removing some obsolete flagsSunny Goyal2016-05-091-5/+0
| | | | Change-Id: Id33e28ddd7341d2b494c4b2a294663091afdb157
* Adding a utility class for persistant logging.Sunny Goyal2016-05-091-0/+2
| | | | | | | The logs are kept for at max 48 hours. It uses two log files and switches between the two based on the day of the year. Change-Id: I9a99499b3445a62f29f62a5cd13db20b1783bcd3
* Listen on new broadcasts for profile changes.Rubin Xu2016-04-041-1/+2
| | | | | | | The change is due to API review comments on the platform side. Bug: 27532254 Change-Id: I44133fbb5c3ee13d0523a72b25d2e1c5d1eba6a0
* Added ColorExtractionService and ExtractedColors.Tony Wickham2016-04-011-0/+8
| | | | | | | | | | | | | | | - Launcher has an instance of ExtractedColors, which is loaded from LauncherProvider in onCreate() and whenever the wallpaper changes. - When the wallpaper changes, the ColorExtractionService is started in the :wallpaper-chooser process. - ColorExtractionService builds an ExtractedColors instance and saves it as a String in LauncherProvider. - When the results are saved, Launcher gets a callback through LauncherProviderChangeListener and reloads the ExtractedColors. - Whenever Launcher loads Extractecolors, it also re-colors items (currently a no-op). Change-Id: I319e2cfe0a86abcbc6bb39ef6b9fbbcad54ad743
* Respond to managed profile availabilty Intents.Kenny Guy2016-01-251-0/+1
| | | | | | | Grey out applications when managed profile is not available. Change-Id: I9bb9442cd0b3d0d207062716bfd6b179e3ba8489
* resolve merge conflicts of b56090af35 to ub-launcher3-master.Sunny Goyal2016-01-191-0/+5
|\ | | | | | | Change-Id: I2ef9a25b70815efe37109004517a7c3077ffa22e
| * Removing some obsolete filesSunny Goyal2016-01-191-4/+2
| | | | | | | | Change-Id: I45cc23afcecb67163da99a9b81ace0021f723c9b
* | resolve merge conflicts of a50a419b82 to ub-launcher3-master.Sunny Goyal2015-12-111-1/+2
|\| | | | | | | Change-Id: Ie0e233e22284b8ddd2dbb86204e042651b6dfae2
| * Restarting launcher when on font scale changeSunny Goyal2015-12-111-0/+2
| | | | | | | | | | | | | | | | | | Chaning the font scale affects the static device profile and may affect various background threads and static constants. Killing the process ensures that these states get invalidated properly. Bug: 26131935 Change-Id: Idc262ee5d158019e7a2505f8fb9a6413c06bfdeb
* | Moving DB creation to background threadSunny Goyal2015-12-081-8/+10
| | | | | | | | Change-Id: I5404edd8df7160108c230d245f34bf8e24173619
* | Making all provider calls using content resolver.Sunny Goyal2015-10-201-5/+1
| | | | | | | | | | | | This will allow us to easily move db creation out of onCreate Change-Id: Idd949624b0a9c95e4451e48db7764b7b7922c40a
* | resolve merge conflicts of fe3db428ab to ub-launcher3-master.Sunny Goyal2015-10-201-4/+0
|\| | | | | | | Change-Id: Icc60a61f621fefe9db67b178921e62f7d72d7e5a
| * Refactoring getPreferenceKey methodSunny Goyal2015-10-201-5/+1
| | | | | | | | | | | | This method was returnning a constant and getting inlined by proguard. Change-Id: I87348e25b21483adc1b27d16f99dec4b73205701
| * Moving a few testing classes to a separate packageSunny Goyal2015-10-071-2/+3
| | | | | | | | Change-Id: Ied1c063de3e938695493e4937f554686e0719dad
* | Moving a few testing classes to a separate packageSunny Goyal2015-08-191-2/+3
| | | | | | | | Change-Id: Ied1c063de3e938695493e4937f554686e0719dad
* | Updating logic for setting wallpaper desired sizeSunny Goyal2015-08-191-5/+12
| | | | | | | | | | | | | | | | | | > Only setting desired size on wallpaper change for pre kitkat > Removing wallpaper change receiver from manifest > Removing multi-process wallpaper shared prefs for kitkat+ Bug: 23353784 Change-Id: Iba72d32871ee50b75807e2284a73a691bcddc472