History log of /packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
d3b87ef1963fb96177ca85bcd6a25879e27e419c 28-Jul-2016 Sunny Goyal <sunnygoyal@google.com> Adding quiet mode support for shortcuts

> 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
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
ec1b1c542ca0648747b3b0bc3fd45922caa8ddaa 22-Jun-2016 Tony Wickham <twickham@google.com> Merge "Add support for launcher shortcuts." into ub-launcher3-calgary
bfbf7f9f4a0b300613f0ff27a4eb592d88c08325 19-May-2016 Tony Wickham <twickham@google.com> Add support for launcher shortcuts.

- 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
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
e26d1008eb587303db25797ca02cc32464e45656 20-Jun-2016 Sunny Goyal <sunnygoyal@google.com> Adding some tracing sections around launcher startup

Bug: 29007436
Change-Id: I53afd9130a2dc70a2223f1623e862faf44370f26
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
ae50284e0a838139c67caf0064a0977c871497fa 17-Jun-2016 Sunny Goyal <sunnygoyal@google.com> Moving LauncherAccessibilityDelegate to Launcher to associate it with
activity lifecycle.

Change-Id: Ib815505677fa7ed74bdcfe7141b1d9bea5d7143a
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
da4fe1a6244457f144e0a331cada3ada17157809 27-May-2016 Sunny Goyal <sunnygoyal@google.com> Moving the QSB to the workspace grid.

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
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
a26e2d3d930aeee1cc48f9d965d8e0dbca8e3e5c 06-May-2016 Sunny Goyal <sunnygoyal@google.com> Removing some obsolete flags

Change-Id: Id33e28ddd7341d2b494c4b2a294663091afdb157
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
713edfce264db7edc409216d5c083f8dd6a7083f 06-May-2016 Sunny Goyal <sunnygoyal@google.com> Adding a utility class for persistant logging.

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
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
ac6e5d7956124ed807ace9aa92aae0b13d61bafd 04-Apr-2016 Rubin Xu <rubinxu@google.com> Listen on new broadcasts for profile changes.

The change is due to API review comments on the platform side.

Bug: 27532254
Change-Id: I44133fbb5c3ee13d0523a72b25d2e1c5d1eba6a0
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
827cef203f386cb548b98a7fa9888b75478c8e20 17-Mar-2016 Tony Wickham <twickham@google.com> Added ColorExtractionService and ExtractedColors.

- 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
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
ff05f4375dd47242d7e4864287e0d5af8ac8ba8f 22-Jan-2016 Kenny Guy <kennyguy@google.com> Respond to managed profile availabilty Intents.

Grey out applications when managed profile is
not available.

Change-Id: I9bb9442cd0b3d0d207062716bfd6b179e3ba8489
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
5743d870bd1c8281d90d424bdcd51792413592ae 19-Jan-2016 Sunny Goyal <sunnygoyal@google.com> resolve merge conflicts of b56090af35 to ub-launcher3-master.

Change-Id: I2ef9a25b70815efe37109004517a7c3077ffa22e
2080603ca79b617799979f3a98093082d6423928 07-Jan-2016 Sunny Goyal <sunnygoyal@google.com> Removing some obsolete files

Change-Id: I45cc23afcecb67163da99a9b81ace0021f723c9b
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
38e7f28d3faa04fa0bc0f15e78f59a2b1ed123a3 11-Dec-2015 Sunny Goyal <sunnygoyal@google.com> resolve merge conflicts of a50a419b82 to ub-launcher3-master.

Change-Id: Ie0e233e22284b8ddd2dbb86204e042651b6dfae2
a50a419b824c10f11d12097215982c978f740e00 11-Dec-2015 Sunny Goyal <sunnygoyal@google.com> Restarting launcher when on font scale change

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
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
d3849d191bc0bd2d561cf03018ad90b896b13c56 29-Oct-2015 Sunny Goyal <sunnygoyal@google.com> Moving DB creation to background thread

Change-Id: I5404edd8df7160108c230d245f34bf8e24173619
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
d249748abf357925b326d57ab68eb6c2b23c4ef6 23-Sep-2015 Sunny Goyal <sunnygoyal@google.com> Making all provider calls using content resolver.

This will allow us to easily move db creation out of onCreate

Change-Id: Idd949624b0a9c95e4451e48db7764b7b7922c40a
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
f912beb2ee4b75af1fe8c710d6948b9737fed531 20-Oct-2015 Sunny Goyal <sunnygoyal@google.com> resolve merge conflicts of fe3db428ab to ub-launcher3-master.

Change-Id: Icc60a61f621fefe9db67b178921e62f7d72d7e5a
f725824fa2091cab44cf1bcbfe5b5b8d06475560 20-Oct-2015 Sunny Goyal <sunnygoyal@google.com> Refactoring getPreferenceKey method

This method was returnning a constant and getting inlined by proguard.

Change-Id: I87348e25b21483adc1b27d16f99dec4b73205701
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
d306055f2d7750df08d9dfb9f630517e0b43f6eb 26-Jun-2015 Sunny Goyal <sunnygoyal@google.com> Moving a few testing classes to a separate package

Change-Id: Ied1c063de3e938695493e4937f554686e0719dad
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
322d55622031985c75f7e5db07964b7730a97dac 26-Jun-2015 Sunny Goyal <sunnygoyal@google.com> Moving a few testing classes to a separate package

Change-Id: Ied1c063de3e938695493e4937f554686e0719dad
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
4b17147c28488c20b01aea18297fd6a327bad213 19-Aug-2015 Sunny Goyal <sunnygoyal@google.com> Updating logic for setting wallpaper desired size
> 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
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
c268148f06f5c6c30deb1678e74530ef5aa85a67 17-Aug-2015 Sunny Goyal <sunnygoyal@google.com> resolved conflicts for merge of 9fc953b9 to ub-launcher3-master

Change-Id: Ia3e845a2e336c846cceefdc2d1e8c6786753f1b1
9fc953b94dbc6b99e6de08c9dcc80a0cb8e3e319 17-Aug-2015 Sunny Goyal <sunnygoyal@google.com> Version code cleanup

> Renaming Lmp to Lollipop
> Lollipop_MR1 instead of directly using 22
> Using M APIs directly instead of reflection

Change-Id: I10a307f46e3be15b3299f549a2fd7e0e215a6a1b
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
42e28092b336bf89bee94c61e2cd327e1d8ec882 17-Aug-2015 Sunny Goyal <sunnygoyal@google.com> Removing some eclipse warnings

Change-Id: I160feaee81b262be02446885fae643c0be71b7af
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
f85602b00ea8e6431d59582964f85d5c2779473c 07-Aug-2015 Sunny Goyal <sunnygoyal@google.com> am 7ca3250a: Merge "Creating a cache of users to avoid multiple calls to UserManager" into ub-launcher3-burnaby

* commit '7ca3250a10d608c06a733a92cd61a2feadb9007f':
Creating a cache of users to avoid multiple calls to UserManager
823fd5090209017a029460e7dbd8ab9d51d013dd 04-Aug-2015 Sunny Goyal <sunnygoyal@google.com> Creating a cache of users to avoid multiple calls to UserManager

Bug: 22805101
Change-Id: I9cd270efd74fdd34a7eb738fc25797e6f1bf2487
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
790b7ad28e9c047fc555bedc0709eb73d7c2fcf0 04-Aug-2015 Winson Chung <winsonc@google.com> am 153b02a5: Merge "Remove handler for searchables changed broadcast." into ub-launcher3-burnaby

* commit '153b02a5e69c99b1154eea107da6b2fba4c6f3a3':
Remove handler for searchables changed broadcast.
153b02a5e69c99b1154eea107da6b2fba4c6f3a3 04-Aug-2015 Winson Chung <winsonc@google.com> Merge "Remove handler for searchables changed broadcast." into ub-launcher3-burnaby
88fa741e50760f9da78cba4a766172f23773bb87 03-Aug-2015 Winson Chung <winsonc@google.com> Remove handler for searchables changed broadcast.

Bug: 22515084
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
c1729a4d154f28c32175823e0cb9448a9c58a4e4 31-Jul-2015 Sunny Goyal <sunnygoyal@google.com> resolved conflicts for merge of e5bb705f to ub-launcher3-master

Change-Id: Id7ec170a3c4b1415b18ad46a18d7ea69595a8992
e5bb705fb79f18df8680958dcf2c5460e16c90b6 27-Jul-2015 Sunny Goyal <sunnygoyal@google.com> Homescreen migration from a larger grid to a smaller grid.

Adding support for restoring from a larger device, if the grid size
difference is not more that 1.
During restore add all the items in the DB, and run a one-time migration
the next time launcher starts.

The migration strategy is defined in ShrinkWorkspaceTask.java which involves
resizing, moving and removing some items.

Change-Id: I6ee411f6db5bf0152b527e16146a88c56dec2d97
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
6c56c68555dcb3d99b05d5faecd582a1f683cc92 16-Jul-2015 Sunny Goyal <sunnygoyal@google.com> Changing the dogfood check to a static boolean to better handle proguard optimizations

Change-Id: I892b88ce1a007fafc23a73ad4193c5c4aa411d1b
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
b1777447d9b9700b48f8060f8b318f2363c43e8d 16-Jun-2015 Winson Chung <winsonc@google.com> Refactoring fast scroller.

- Fixing issue with fast scroller not fitting name width.
- Refactoring fast scrolling/scroll bar code out of base recycler view
- Adding animations to fast scroller to match design
- Smooth scrolling when jumping between app rows
- Fixing issue with fast scroller jumping when you first pick it up
- Fixing issue with wrong background paddings being used

Bug: 21874346
Bug: 22031923
Change-Id: I9f011b1f375751f437604b900e95a2942d3f4601
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
2003c75ac43ecd66ee8a89142b7969feb993abe7 18-Jun-2015 Sunny Goyal <sunnygoyal@google.com> Cancelling launcher reload on mcc change

Bug: 21022833
Change-Id: Iccd477e7b1638d162e1a500cdb7a52b8d359c657
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
383c507c47a5abf3258fc04220f37c366f983a97 13-Jun-2015 Sunny Goyal <sunnygoyal@google.com> Removing ContentObserver in launcher

> Using callback insted of using a content observer
> Setting the listener in LauncherAppState to prevent resource leak

Change-Id: Id23a4d5c8812e86178997e536226e09ec3740f84
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
7779d62308b87ca26e3be47df836893f6f7693ec 12-Jun-2015 Sunny Goyal <sunnygoyal@google.com> Using content provider to update launcher settings

> Removing cross process preference file
> Removed broadcast listener management for settings changes
> Defining content provider method to get/set laucnehr preferences

Change-Id: Ida36eac0ab17c1d48fedc9404817a53a89b36c4f
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
553a8f6f44bbf0289f957815d6a0323a620147a8 10-Jun-2015 Sunny Goyal <sunnygoyal@google.com> Merge "Fixing crash in restore" into ub-launcher3-burnaby
9637364c447cd8df12dd70d3c769d101b7565df7 05-Jun-2015 Sunny Goyal <sunnygoyal@google.com> Fixing crash in restore

> LauncherAppState cannot be initialized during restore, as it is not
called from a looper thread.

Bug: 21275736
Change-Id: Ifdb3f9913fa2ee63a7e1566d0c5cfc6f72b4f41e
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
7501adf4b71bb17d0785a5939efbcac4b39125c3 02-Jun-2015 Winson Chung <winsonc@google.com> Ensure that we use the system long press duration when dragging from AllApps.

- Removing some old code out of LauncherAppState

Bug: 21559400
Change-Id: I3c586094efb7ad8a17d2169bc8aaccf6b0df40a2
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
4f3e9383eb422c87e2689548653b89f34f5516a5 05-Jun-2015 Sunny Goyal <sunnygoyal@google.com> Code cleanup

> Removing obsolete logging
> Removing unused methods
> Removing resource leak warning due to non-static handler class in launcher

Change-Id: Ic38cc8aea82899b0b5ee3235f04e5964e49245fb
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
c6205603efe1f2987caf96504c87d720a25b5a94 22-May-2015 Sunny Goyal <sunnygoyal@google.com> Creating landscape and portrait device profiles at app initialization

Change-Id: Ide9d007adc36b348e19b05cdf49e87f8b02db60e
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
2e6da1539bc7286336b3c24d96ab76434939ce4d 06-May-2015 Adam Cohen <adamcohen@google.com> Refactoring DeviceProfile

-> 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
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
83a8f042adda926489494dff217c15ab696139b4 19-May-2015 Sunny Goyal <sunnygoyal@google.com> Moving LauncherAccessibilityDelegate to accessibility package

Change-Id: I510204a5a12abf2da2757f3e3f8b0e8869a6b04a
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
2bba4c37c6402dfdc965d0c412c840c57993c7dd 19-May-2015 Sunny Goyal <sunnygoyal@google.com> Removing some thread priority management logic

> Not saving folder id in onSaveInstance as it is not used.

Change-Id: I176beb77cafe27ec4b7500d65dc86287d2f2e0cb
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
957c13f032fc4088b3273cec08603c67c069e2c6 01-May-2015 Sunny Goyal <sunnygoyal@google.com> Handling managed profile creation in the model as the activity
can get killed in the background.

Change-Id: I95f62cf268fe642c9a2bb4975eb92bf8e12d23a9
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
756adbc3e41ee1edb53c580b8c679f343924fab5 17-Apr-2015 Sunny Goyal <sunnygoyal@google.com> Fixing missing updates in package install sessions

> 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
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
18bf8e2ffde3444d53aaa9654da02cdedd0b7cd1 09-Apr-2015 Sunny Goyal <sunnygoyal@google.com> Automatically adding managed profile shortcuts to homescreen.

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
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
3f471440a8b6b71d4c15501a96befd3b715c9e8f 09-Apr-2015 Hyunyoung Song <hyunyoungs@google.com> WidgetTray revamp work
- 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
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
1d4a2df091e2b5928406ea503321563a0ec8a01e 30-Mar-2015 Sunny Goyal <sunnygoyal@google.com> Removing ContentObserver from LauncherModel, and calling reload
whereever necessary

Change-Id: Ia4a8abdfe2be9703f3217a60527d3a1220b33bdc
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
5b0e669169ea2c951bf2f6f71faf793b24db3c23 19-Mar-2015 Sunny Goyal <sunnygoyal@google.com> Rewrite: Widget preview loader logic

> 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
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
71c3baf5ebc520d5146946e0d7907a5dc12366db 20-Mar-2015 Sunny Goyal <sunnygoyal@google.com> Merge "Removing unnecessary intent-filter construction" into ub-launcher3-burnaby
091440a9cb9d4f42406631004aa484cbb79214ca 18-Mar-2015 Adam Cohen <adamcohen@google.com> Reducing method count by eliminating synthetic accessors

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
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
27595796b3c0373d1a1d56af9a30392bc7016624 19-Mar-2015 Sunny Goyal <sunnygoyal@google.com> Removing unnecessary intent-filter construction

Change-Id: I1f831ef48ed69381ad260f7d541f39a049c498a5
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
c9735cff2e558aa3f3810e49c15ef13049b9429c 24-Jan-2015 Adam Cohen <adamcohen@google.com> Enabling accessible drag and drop

-> 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
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
c9acdd51c40c1b397adae6ba62c4acd01914b473 26-Feb-2015 Sunny Goyal <sunnygoyal@google.com> Removed disableAllApps flag

Change-Id: I50ba511b8493bca2506ab6010f141c093bfa7499
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
71b5c0b988a64b3a0613ded5403749bc537ee8a5 09-Jan-2015 Sunny Goyal <sunnygoyal@google.com> Adding accessibility controls

> 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
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
b02e611d15bd6fbb05814adaa804dd68181c556c 24-Nov-2014 Chris Wren <cwren@android.com> Don't try to create an app state instance during restore.

Added a static utility function to get the DeviceProfile instead.

Bug: 18504164
Change-Id: Ia510a84f1c195e58acf3bf4d1f6a42c739fdd413
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
e0f58d73646871497596fb8f7321d407e7565c28 11-Nov-2014 Sunny Goyal <sunnygoyal@google.com> Adding shortcuts corresponding to ManagedUsers automatically.

Bug: 16188104
Change-Id: Ic07578dd187263f59f3c431cbb78dea90d0c24f4
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
4bbf419bf98c00decc74b429320258c2a16faeec 11-Nov-2014 Sunny Goyal <sunnygoyal@google.com> Removing some duplicate methods

Change-Id: I8a1295ab74890984e8d8508aaa18fd79ac2a032d
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
33d443897658e6ad8b76bd2e58e3598161fd3ead 16-Oct-2014 Sunny Goyal <sunnygoyal@google.com> Updating backup restore logic

> 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
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
1231c0743cce0b6b70951d1df3e4b0876c444598 21-Oct-2014 Sunny Goyal <sunnygoyal@google.com> Merge "Updating ItemInfo objects in the worker thread" into ub-now-queens
28db280b7af14614f2b168ea8c5d496cda650321 09-Oct-2014 Helena Josol <helenajosol@google.com> Add more Launcher files to delete on Clear Launcher Data

Bug: 12753154
Change-Id: I00679bdc6eff70a1398122aaa955c08eabd556b1
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
4390acea35aefae52bd3fe38f5fdbb7ea322afb0 13-Oct-2014 Sunny Goyal <sunnygoyal@google.com> Updating ItemInfo objects in the worker thread

> 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
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
a22666f68151269853e7ab6ab696ee6361bac793 18-Sep-2014 Sunny Goyal <sunnygoyal@google.com> Updating promise icon's bitmap and label when onBadgingChanged is received

Bug: 17583799
Change-Id: I68b4f9d4086c43bd949ad8b46b574ec78edb32db
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
ee52336a9ed0c98f78831a0e44b21f5a8d8c17d1 09-Sep-2014 Chris Wren <cwren@android.com> Turn off debugging for launch.

Bug: 17483474
Change-Id: I8dd24ba08ffe0773f4d68739b30b829021d69902
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
349426234e8c5a0e5bcf2c8d94dbb9844b5f724a 30-Aug-2014 Sunny Goyal <sunnygoyal@google.com> Handling label and icon from SessionInfo.

> 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
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
e755d469d40b95e763a9dcb67d0e4f511d1948dd 22-Jul-2014 Sunny Goyal <sunnygoyal@google.com> Implementing a package install progress listener for L

issue: 15835307

Change-Id: I71aaea087963f2e0e1206447190cbe23c174057d
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
c2bd8101b8e26b9ebb2c079ae6867229dad3f196 30-Jun-2014 Kenny Guy <kennyguy@google.com> Revert "Revert Cls stopping now-master running on googlefood"

This reverts commit 7bc272a11b701a32d2ed91277341c382cbd84aeb.

Conflicts:
src/com/android/launcher3/BubbleTextView.java

Change-Id: Id1fb2e1249e72658ce5477165c9bcacba9de2b04
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
7bc272a11b701a32d2ed91277341c382cbd84aeb 24-Jun-2014 Kenny Guy <kennyguy@google.com> Revert Cls stopping now-master running on googlefood

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
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
242bbe1b72e4978dde8a662d164cd186305e14a7 12-Jun-2014 Kenny Guy <kennyguy@google.com> Remove reflection now we are building against L

Remove reflection and update changed renamed L APIs
now that branch has L sdk.

Change-Id: I223c6528487110eb328e2e229bbcbefb701e0c20
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
1317e2dd4a2fb097d1e54759536d515fdeca2c3e 08-May-2014 Kenny Guy <kennyguy@google.com> Fix bug with user of shortcut not being remembered over restart.

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
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
ed13187a745866483139e2878037e1f8427ce567 30-Apr-2014 Kenny Guy <kennyguy@google.com> Launcher3 multi-profile support

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
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
b358f813c93ac0d6c4f31058947efd16b188cd1e 16-Apr-2014 Chris Wren <cwren@android.com> additional debug logs to track welcome back behavior.

Bug: 13568891
Change-Id: I359202ce59b3444e46331485ea22f542ae908e36
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
1a1fdf4185637610b37953e901605c55ef8ba0a6 15-Apr-2014 Chris Wren <cwren@android.com> turn off LauncherAppState.DEBUG

Change-Id: Ia6d54235c353c27c8716d7fd9270a7f2ee7bc93f
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
aeff7ea43409d817490fbb8c22b8d4b9725bb54f 14-Feb-2014 Chris Wren <cwren@android.com> update promise icon status

also fix a crash in LauncherModel.DEBUG_LOADERS

Bug: 10778992
Change-Id: Iafc28c1e0c2f2a1283783a7ce27e181634b62993
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
00c3184fa6fae69123d160b92977799a1a47fa34 15-Jan-2014 Jorim Jaggi <jjaggi@google.com> Merge "Fix NPE in Workspace.onDropCompleted" into jb-ub-now-kermit
eedb00a674358bb88dce1e0d3a90bd6cb9e97cfc 13-Jan-2014 Jorim Jaggi <jjaggi@google.com> Fix NPE in Workspace.onDropCompleted

Bug: 11627757
Change-Id: I9dc86856d4bc00253d6350d157be541a8c46888d
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
574120cdca5bfd124a96d102c0c59814a1be076a 14-Jan-2014 Michael Jurka <mikejurka@google.com> Merge "Recover when widget preview database is deleted" into jb-ub-now-kermit
16f3ea870aac47292cd6cbe1a4b4343173097aa9 10-Jan-2014 Nilesh Agrawal <nileshagrawal@google.com> Allow DISABLE_ALL_APPS to be set using a system property.

- 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
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
6e27f642ae66dd1920b25b527fced7268943d11a 10-Dec-2013 Michael Jurka <mikejurka@google.com> Recover when widget preview database is deleted

Bug: 12109621

Change-Id: I8d59700d31d6856d6151b965786c87585801317b
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
34c2e6cf7af328aba25c98158161dbad15ae986d 13-Dec-2013 Michael Jurka <mikejurka@google.com> Clean up imports
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
a6a0547fa6df0769fcd107a2e5f7c7d527fa0700 13-Nov-2013 Michael Jurka <mikejurka@google.com> Update suggested wallpaper dimensions in onResume

If another launcher runs in between, it might
change the suggested dimensions. This fixes that
case.

Bug: 11667475
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
b38002419dcb456b51f5d320b224737f16a07088 24-Oct-2013 Winson Chung <winsonc@google.com> Adding method to get the search bar bounds.

Change-Id: Iec2fe0992cc666432ba6b9eac7ee8bf63e49b146
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
6e1c0d34bb31cacc24c57c89ab01deaa8985814f 26-Oct-2013 Winson Chung <winsonc@google.com> Initial changes to support smaller landscape layouts.

Change-Id: If0abe2b82eb08bae4f1ce65b805362d548acb876
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
f7d458543e64307b01de803d2ddfee2f21b0bd28 11-Oct-2013 Winson Chung <winsonc@google.com> Altering the workspace padding to account for default widget padding (Bug 11116452)
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
d8fe6de10d5ffc293f771b070bd1361a027757bb 04-Oct-2013 Chris Wren <cwren@android.com> check the state of launcher before running a backup.

Bug: 11066273
Change-Id: Ie27a7cce4060f0bafedb06dbdb33fddf50a9cc48
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
1307f63f8a93541bf6e2d29c11fab69778a25e42 03-Oct-2013 Bjorn Bringert <bringert@google.com> Add a better app filtering mechanism and filter widgets

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
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
414300a79d140f8c2c8760d9adab750f69ffeafd 27-Aug-2013 Michael Jurka <mikejurka@google.com> Clean up unused code

Change-Id: Ie1e927aa0b5304f62cfffaab449abb3133870f80
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
892c74d460ad98c6306420e1127c9aa3e505ba25 23-Aug-2013 Winson Chung <winsonc@google.com> Fixing folders to always show in view, removing old assets and references to LauncherModel count.
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
104c45677660586026a7e74ef8c47d396403d50e 09-Jul-2013 Michael Jurka <mikejurka@google.com> Initial implementation of new wallpaper picker.

Change-Id: Ib4c5ac4989b4959fa62465d9cde3cac662e24949
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
5f8afe6280eae34620067696173e71943e1a30a3 13-Aug-2013 Winson Chung <winsonc@google.com> Initial Changes for Dynamic Grid

Change-Id: I9e6f1e5167791cf8dc140778dfa447f86424e9bf
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
e060b0b3c72b93b47031f0f33bf18b121fb99333 28-Jun-2013 Daniel Sandler <dsandler@android.com> Fix crash when started via Instrumentation.

Change-Id: Iffe2c76e93e67d56a239228fd2d9e6928ab9f65e
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
e4f9891f01bdc10d8f96e4e2429e2f4d0558238b 25-Jun-2013 Daniel Sandler <dsandler@android.com> Lazily instantiate LauncherAppState.

The application context for LauncherAppState is supplied by
the application whenever it starts; don't ask for an
instance before that.

Change-Id: I1ca8ea04238a357a682f79250f08813ead7ae532
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
b9eb2865af05d9ade572e71934a9e6a50421aa7d 15-Jun-2013 Daniel Sandler <dsandler@android.com> Memory tracking is now handled by a service.

Multiple processes may be tracked and viewed simultaneously.

Also, some changes to the graph:
* show uss and pss together
* adjust opacity controls

Change-Id: I20eebaa8cc8faf78b46af2a35d71ee538207f02b
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
211667e4c2efc6b0b7c5037aca77eecd50bd823d 18-Jun-2013 Daniel Sandler <dsandler@android.com> Fix build.

Change-Id: I6afd45e603fd2480867dc692d59fd489ee2af63d
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
a127b7ad151dd1ae66d665a073e98984930c3d9d 17-Jun-2013 Daniel Sandler <dsandler@android.com> New icon to dump heap information and share it.

Alternatively,
$ adb shell am start -n <pkg>/com.android.launcher3.MemoryDumpActivity

Change-Id: I8c615ec3abffaf6ad693c93bdf569550d8f97298
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
c6e2f94fbace46b11d0ee57fed16c327d83262d4 12-Jun-2013 Bjorn Bringert <bringert@google.com> Rename mUpTime to mStartTime

This is a follow-up to change Id26e9dcf23017abaffed4015166d57e21e751e6c

Change-Id: I0abaaf2914fff121bdcefb84f1d29a42ebb5aebb
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
924b993c750e6de8537afb750c2d2b9932efbdac 12-Jun-2013 Daniel Sandler <dsandler@android.com> Memory debugging overlay for L3.

Change-Id: Id26e9dcf23017abaffed4015166d57e21e751e6c
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java
cc8befac3550c81d04ea206c170adae36c9a6c93 11-Jun-2013 Daniel Sandler <dsandler@android.com> Move LauncherApplication's state and code to LauncherAppState.

This removes Launcher's static data and other state out of
the Application object. Now LauncherApplication (extends
Application) exists only to instantiate LauncherAppState.

Change-Id: I4e323bd78b77536b92054105536a55c0c2c19ba8
/packages/apps/Launcher3/src/com/android/launcher3/LauncherAppState.java