History log of /packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
2fd020860533e18c64a93d14d11cb2d34bc9cbaf 07-Oct-2016 Tony <twickham@google.com> Use Launcher.getLauncher(Context) instead of type-casting.

Bug: 32010039
Change-Id: Icb80d3e547a706740b84df2cb80f99e4a7f81c43
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
7695e603bf1f4369115ba64c24e8b09c213b4e9c 05-Aug-2016 Tony Wickham <twickham@google.com> Remove shortcuts that no longer exist or are no longer pinned.

(This change is in the onShortcutsChanged() callback.)

- Remove all workspace icons that correspond to shortcuts that
are now unpinned
- Remove all workspace icons that have the same package and
user handle as passed in onShortcutsChanged(), if they aren't
included in the list of shortcuts that is also passed.

These cases will happen for static and dynamic shortcuts,
respectively, when an app's data is cleared.

Bug: 30316501
Change-Id: I50db6567cb318d087012ab5d8208e765b81c6f99
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
765ff3d7c9f52a6383ae72887b54ae79de118173 30-Aug-2016 Tony Wickham <twickham@google.com> Merge "Use promisedIntent instead of intent when deep shortcuts are restored." into ub-launcher3-calgary-polish
fc02c1b446ee54561ac7351fb6ff0f8294785f0e 30-Aug-2016 Tony Wickham <twickham@google.com> Use promisedIntent instead of intent when deep shortcuts are restored.

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
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
b05a00a441d7e608fd709fae62bde1c661936e2a 29-Aug-2016 Sunny Goyal <sunnygoyal@google.com> Adding a debug flag to prevent broken downlodas from getting removed during
restore

After setting this flag apps do not need to have an active settion during restore
which would simplyfy debugging backup-restore bugs.

Change-Id: I89f2d3ec677281887f8bab8559ace991709caadc
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
cbfe71dba38af1d1cd2d2372b649537d7d94610b 23-Aug-2016 Sunny Goyal <sunnygoyal@google.com> Checking for duplicate intent with proper source bounds.

Since we are doing a equality check on the intent, items which already have
the bounds attached to the intent will not get matched, causing duplicate
icons

Bug: 27176189
Change-Id: Ia9ed9120b04e9c234304995aed13777a5773119e
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
86df138d9f5b32d947f3497314694a2a7adac70c 11-Aug-2016 Sunny Goyal <sunnygoyal@google.com> Adding support for pending widgets in AutoInstall layout

> Pending widgets whill show a loading progress while the app
is being installed.
> Extra bind options can be defined using the tub tags
<extra key="key-name" value="key-value" />
These are sent as widget options when the widget is bound.
> If the widget has any config activity, it is not shown
> Required attributes:
className, packageName, x, y, spanY, spanY & screen

Bug: 30279609
Change-Id: I1338618bfa5d86967339dffb68c12b1add6eb5d7
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
95f3d6ba2ca02a9841487777cfff43fb9df65ec7 11-Aug-2016 Sunny Goyal <sunnygoyal@google.com> Reloading workspace when the shortcuts permission changes

> Check for permission on every onResume
> If the permission is different than last known permission,
reload and rebind workspace.

Bug: 30789422
Change-Id: Idfa445815e29e2336505779545507d106b33a253
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
5f06401807ef408a4b56a127bef1f0b55b0adcf6 08-Aug-2016 Sunny Goyal <sunnygoyal@google.com> Fixing potential ConcurrentModificationException

mBgDeepShortcutMap is only accessed on the background thread. But
the same instance of list of values was getting passed to the UI
thread, instead of being cloned.

Change-Id: Ie7d0442d895304489ce9323ea872b9091d668ae5
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
50941fb8a6ba4e1b6fca6cbf35e1a5efca7156f3 04-Aug-2016 Sunny Goyal <sunnygoyal@google.com> Adding support for updating the pinned shortcuts without updating
the ID map

Bug: 30654182
Change-Id: I30082bd87466a29b7bafe1e8cbf1446e1d1e4f3e
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
49f4f03dc8ed3925e80d379634e43eb24eea25b9 02-Aug-2016 Sunny Goyal <sunnygoyal@google.com> Handling IllegalStateException which can be thrown by the system when the user is locked

Bug: 30411561
Change-Id: I0d7fc0aaecba01b1aaac95b98654f6e3ee090ce8
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
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/LauncherModel.java
ca258b36be07f4835c9cc5fbc3e84e9851647dce 28-Jul-2016 Tony Wickham <twickham@google.com> Only add shortcuts to the deep shortcut map if they are dynamic/manifest.

Bug: 30475465
Change-Id: I93aff6330b86a3bfa3e6b5741ab759d835618f0b
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
55f5bd730cace56d224de33461f575f41bdd480f 28-Jul-2016 Sunny Goyal <sunnygoyal@google.com> Merge "Showing the shortcuts in the disabled state and removing ti from the menu when its disabled" into ub-launcher3-calgary
70a7c9b70003ae87e2b2968bc6ceded0fe0f0e8b 28-Jul-2016 Sunny Goyal <sunnygoyal@google.com> Showing the shortcuts in the disabled state and removing ti from the menu
when its disabled

Bug: 30315906
Change-Id: Ice747e7be955d8bb2dd65191f7613e2afd4abc1c
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
e34dd33156ec0e6651dda3aa73fe4e6a1df9d5ae 28-Jul-2016 Sunny Goyal <sunnygoyal@google.com> Merge "Fading in the first screen, when launcher loads for the first time" into ub-launcher3-calgary
672d07f3f0bee663ad8447fbbb2890760c1a18ce 28-Jul-2016 Tony Wickham <twickham@google.com> Check package name and user handle in onShortcutsChanged().

Otherwise shortcuts with the same id would be updated,
even if they were in different packages.

Bug: 28980830

Change-Id: Ideefe3aaac83af38c03a38d821bac192ae55fe67
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
b5b9ad68b707154fcc2c3b04b1b6c0b17127e415 02-Apr-2016 Sunny Goyal <sunnygoyal@google.com> Fading in the first screen, when launcher loads for the first time

Bug: 29007436
Bug: 27705838
Change-Id: I95891d0bad19a67985b689bb96d6068dcd85004a
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
10923b30a22b4ec8d10cf8536bddf3f176e6c26f 21-Jul-2016 Sunny Goyal <sunnygoyal@google.com> Removing shadow and badging from the icon which is shown in the menu
These are added as soon as the icon is added to the workspace

Bug: 28980830
Change-Id: I725d2ee8994324f09d9ecf7bbbb0090a7ceb5769
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
860538df1d72b3840811b7a39940a224f3326066 20-Jul-2016 Sunny Goyal <sunnygoyal@google.com> Fixing missing user check when updating shortcuts for an app

Change-Id: I889c555d3402fd71098af29b78eb6d959a071080
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
d82a39da1c61b19d2749725f9c70c3baf2dab6bf 02-Jul-2016 Tony Wickham <twickham@google.com> Add status to DeepShortcutManager api calls.

This way we can handle SecurityExceptions differently. For instance,
if a SecurityException causes us to fail to get details for pinned
shortcuts, we keep the pinned shortcuts in the database so that they
will be loaded next time launcher has the correct permissions.

Change-Id: I1102fce612ade10ad7f577b44a99c8cf087d5ccd
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
a5c8a9eb666da16bc4c9ea4412868e22ace8d1f0 08-Jul-2016 Sunny Goyal <sunnygoyal@google.com> Adding logic to pull in workspace data from another Launcher3 based
provider. This allows OEMs to keep the user's homescreen intact while
changing the default home app package.

Bug: 28536314
Change-Id: Ibebfd7dd33aa2cbd9ca28d2d611dd0a4a5971444
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
80f5787b1c12be2a5ce3d11e01ff9435bae71bdf 30-Jun-2016 Tony Wickham <twickham@google.com> Call bindDeepShortcuts() from runBindSynchronousPage().

Otherwise Launcher's copy of the deep shortcut map is cleared when Launcher
is re-created, such as on rotation, so the UI won't show shortcuts.

Change-Id: I3bb6a904762dc4661cc2b5da28485e4bf778c9e7
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
acd86ff4865323d3cf411b219b88ed084fb6fce3 27-Jun-2016 Tony <twickham@google.com> Surround shortcut API calls with try-catch.

Bug: 29732661
Change-Id: Iba96eedab67e7715f34139c64f96b1a81ba30ea5
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
9994b2b171ab78d1d93e8a25086d6853f766e80f 23-Jun-2016 Sunny Goyal <sunnygoyal@google.com> Making some shortcut manager calls protected by MR1 version check

Change-Id: Ifdfa95a58aa18a825c1838c61055928dbe0ea3be
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.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/LauncherModel.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/LauncherModel.java
bb011dad4e69bec027be1e00d573a3095b318b43 16-Jun-2016 Sunny Goyal <sunnygoyal@google.com> Adding a flag (enabled by default) to remove the all-apps button.

All apps can still be opened by clicking the caret.

Bug: 29398447
Change-Id: I61f1b05cea83a0a49d7cc16c518c5419618ba779
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
a9e2f5abb3c21d9721939c625ffb0caabb34e8d9 10-Jun-2016 Sunny Goyal <sunnygoyal@google.com> Adding a DB update path to handle the QSB position change

> Renamed the id of 1st screen to 0 and making space for the QSB
by running the grid migration task.
> Added a feature flag to easily disable the QSB-in-workspace behavior

Change-Id: Ie3369f0d4433d916e9d6215d414770d4333f3e26
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.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/LauncherModel.java
ff4ba2d99593ed84963b3f71c555b529dd905835 02-Apr-2016 Sunny Goyal <sunnygoyal@google.com> Refactoring out grid occupancy management in a separate class

Change-Id: I37a830c0f2eb0a0dd4f5fc78fa29127cb18cb3c2
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
ded0fdba52d94f8c841598a14dbece36a2f1849c 24-May-2016 Sunny Goyal <sunnygoyal@google.com> Removing logic for workspace migration from Launcher2

Change-Id: I8a121d74862f665c58406f8d5c7eb1263e7ccff3
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
1acb9e9e29bb06b6266781284ae60e9fd4d0962f 16-May-2016 Sunny Goyal <sunnygoyal@google.com> Rearranging the provider checks to avoid packagemanager lookups
whenever launcher starts

Bug: 28737985
Change-Id: I3ce3e2741b3224fa5419d7ceca496e1bb91f065c
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
aaf7d1d13bd88bdeac5c56a9ab1d293fdaea3c11 17-May-2016 Sunny Goyal <sunnygoyal@google.com> instead of unbinding items from the loader, unregistering listeners
in activity.onDestroy()

Bug: 28740269
Change-Id: I6bf2ad6aca43970fd10cfbcc113e609c227e07bf
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
eb4b79935e9f75dda72e4953f45e616e252d7b03 21-Apr-2016 Sunny Goyal <sunnygoyal@google.com> Removing icon_type column
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
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.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/LauncherModel.java
d09c37052ef9a70d4dde53ece6619f04de5f97cb 07-Apr-2016 Sunny Goyal <sunnygoyal@google.com> Removing dependency on getApplicationInfo method added in N

This method is goiing away. We don't need this method anyway
since LauncherActivityInfo already has the information

Change-Id: Ic6afa1df14958b894925d730e01a2e2d2a6fb98c
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
c52ba710053e4c6927937dd1a26d1abe06b6fa99 06-Apr-2016 Sunny Goyal <sunnygoyal@google.com> Fixing folder icon not getting redrawn when the contents change

> Removing parent from ItemOperator as inconsistant values were
being passed in workspace and folderPagedView
> Fixing itemChanged causing multiple redraws, by passing a
'animate' parameter to explicitely request animation

Bug:27740161
Bug:28015426

Change-Id: Ide7b266bde9aad5f450a3f808a59182fe01a5110
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
e1f1c34c098b80d45934701f9ee7d499ee7bfcc2 06-Apr-2016 Sunny Goyal <sunnygoyal@google.com> Merge "Fixing bug where folders on the first screen and hotseat are not registered by the Launcher if there are folders on other screens" into ub-launcher3-calgary
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/LauncherModel.java
44c06437e2e0476e24b61891d1a4aca9828f5327 02-Apr-2016 Sunny Goyal <sunnygoyal@google.com> Fixing bug where folders on the first screen and hotseat are not
registered by the Launcher if there are folders on other screens

Instead of maintaing a static map of folder items, searching it
in the workspace during item removal.

Change-Id: I8aa93b3aa1d0bd812204471e3103f4bd29d1cd3d
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
8ab8fe9441a37c5fd5b15fc76d417d038fed18cf 02-Apr-2016 Sunny Goyal <sunnygoyal@google.com> Merge "No need to differentiate package event into app or updated based on a package is being updated or not" into ub-launcher3-calgary
6ed21eebb41eb118770750c9dba94145fb7228aa 02-Apr-2016 Tony Wickham <twickham@google.com> Merge "Added ColorExtractionService and ExtractedColors." into ub-launcher3-calgary
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/LauncherModel.java
93f878c1686f0438f399353b6fa61ac256f89e6d 31-Mar-2016 Sunny Goyal <sunnygoyal@google.com> Fixing the loader to bind the first screen as well as the hotseat together

When the loader ran for the first time (or when called due to force-reload),
it was binding with page = -1 (invalid pageId is -1001). This was causing loader
to assume the workspace to be on a valid screen, and causing the loader to
only bind the hotseat first.

Bug: 27705838
Change-Id: Ia8eb2543d8cee1268256b2d6bccf33828937c54a
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
144154d435ac535b28c947cd765c02590a683d3a 31-Mar-2016 Sunny Goyal <sunnygoyal@google.com> No need to differentiate package event into app or updated based on
a package is being updated or not

Package update handling is a super set of package add handling which
also updates the all-apps and package disabled state.
This also prevents addtion of a home screen icon when a managed profile
app on SD card become available.

Bug: 27877926
Change-Id: I9264e422fd30b94ce6ebb2e5adea820b3cda3063
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
17763cb1d2060fb95873a8920196720c862f0e14 24-Mar-2016 Sunny Goyal <sunnygoyal@google.com> Fixing debug log

Change-Id: I85c1f7707a3ea9cae2701aa781b74d758602f643
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
da891c1a22210e7e75f85796dea528bf8bf12b45 19-Mar-2016 Sunny Goyal <sunnygoyal@google.com> Instead of reloading the launcher, updating items dynamically when
Quiet mode changes

Bug: 27632028,27763316
Change-Id: I55f018e855448df0abcbf4fd0fcb39344594980c
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
3bbbabc54ac73a4451b0a862a3faac6426b1b7b4 15-Mar-2016 Sunny Goyal <sunnygoyal@google.com> Fixing model being updated on UI thread

> When package gets unavailable or suspended, the disabled flag was getting
updated on the UI thread. This could lead to inconsistent model if launcher
activity didn't exist.
> Fixing: When unsuspending one work profile apps, all work profile apps get
unsuspended

Bug: 27673573,27673373,27403236
Change-Id: I7fde3f79c36204e73ca66ccf8431fa0f0cce3d08
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
2e1efb480a9b77a97cb623d4f5faf6802a417422 04-Mar-2016 Sunny Goyal <sunnygoyal@google.com> Changing the widget loading strategy

Widget is loaded only when the user enters the overview mode and we keep
the list updated as long as the user is in the overview mode. Once the user
leaves the overview mode, we stop responding to widget updates

Bug: 26077457
Change-Id: I9e4904b8f1300bfe0d77e2bc5f59aa6963fad8d1
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
261194387beebaa7927ec4e310274218b651494d 18-Feb-2016 Sunny Goyal <sunnygoyal@google.com> Revert "Reverting refactoring of Folder and FolderIcon to avoid dependencies breakage"

This reverts commit fc956e5a2a818c06ed3424e15b0aa20a3f604658.

Change-Id: Ib3b5156b8fc3cad35c4634d61d5390c848ce1f93
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
fc956e5a2a818c06ed3424e15b0aa20a3f604658 17-Feb-2016 Sunny Goyal <sunnygoyal@google.com> Reverting refactoring of Folder and FolderIcon to avoid dependencies breakage

Change-Id: Ifd0d717d70aff4c83c9eb5cba397d04500b2c869
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
f9c184a619e4e4b82cf9e0bf318ca6d8deaaaee7 16-Jan-2016 Adam Cohen <adamcohen@google.com> Refactor FolderIcon to separate the preview effect into it's own class

-> 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
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
747a5bc486a7c8335fc4a481cab1567369570c24 08-Feb-2016 Hyunyoung Song <hyunyoungs@google.com> WidgetsModel clone method should be called in worker thread

b/24582368

Change-Id: I7b1d2ccfa7d7ac8235e4aeccc2b6b1a8eeea6461
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.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/LauncherModel.java
44cba696386b44f9115cad13ec9ecf67a0ac9119 21-Jan-2016 Kenny Guy <kennyguy@google.com> Grey out suspended applications.

Grey out application shortcuts and all apps entries
for packages that are suspended.

Bug: 22776761
Change-Id: I1b63da1816aca1de52b9f9bee62d1b162d0cdf4d
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
f076eae0cab10f035f7b187c72a680cd220acf1b 11-Jan-2016 Sunny Goyal <sunnygoyal@google.com> Adding support for migrating the grid between any two valid screens sizes.

The grid is migrated in steps where each step consists of at max one column change and at max one row change.
Adding some unit tests for GridMigrationLogic

Bug: 25958224
Change-Id: Ie54e872ea0925cc4c463edbba0a7201d62b373a0
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
f862a26347b583bd84be22a8ceff4bc13158ec7e 14-Dec-2015 Sunny Goyal <sunnygoyal@google.com> Extending the grid migration logic to handle density changes

For hotseat migratino, we simply drop the items with least weight
If the workspace row/column decreases by 2 or more, we clear the whole workspace

Bug: 25958224
Change-Id: I7131b955023d185ed10955f593184b9238546dc8
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
13f682f74ec46bd07358d51a52e064fd6221f0fb 18-Dec-2015 Sunny Goyal <sunnygoyal@google.com> Fixing some invalid checks and cleaning some redundant conditions
am: b740f59c7d

* commit 'b740f59c7d572d54402e3a74fb2a23c0f1b1af48':
Fixing some invalid checks and cleaning some redundant conditions
b740f59c7d572d54402e3a74fb2a23c0f1b1af48 18-Dec-2015 Sunny Goyal <sunnygoyal@google.com> Fixing some invalid checks and cleaning some redundant conditions

Change-Id: I770ce2cc2eccbee105958634e81bbc9bc2e4cc48
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
c3642d45098eed97ee278f7db370335d7fd407fc 30-Oct-2015 Sunny Goyal <sunnygoyal@google.com> Build fix

Change-Id: I0bf4241aa48f25f2b5774726d1d75dfb5a20a2e5
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
4f63c76bfec06949af2391e5babd4be73ae3eb38 30-Oct-2015 Sunny Goyal <sunnygoyal@google.com> Merge "Refactoring WallpaperOffsetInterpolator to a new file Removing some us unused methods" into ub-launcher3-master
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/LauncherModel.java
9eba1fd75e9fa6b0dc5cad9a4e817b3b167d2461 16-Oct-2015 Sunny Goyal <sunnygoyal@google.com> Refactoring WallpaperOffsetInterpolator to a new file
Removing some us unused methods

Change-Id: Ife790e5ca6848fa13dc3fab1bba1e6220bf83743
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
722e85678aa4aabd5e92f492544dbb3015fbd352 07-Oct-2015 Winson <winsonc@google.com> resolved conflicts for 1845049c to ub-launcher3-master

Change-Id: I25a01a0735be754f4c8daef5a4a04eaec651b95c
a13654529cb557abd946da4d4637593565917ecd 02-Oct-2015 Sunny Goyal <sunnygoyal@google.com> Adding some information in bug reports

> Dumping workspace items
> Dumping loader logs for crashes and data deletion
> Removing unnecessary log dumps

Change-Id: Ia320988c2e3665e4d605d6e88bca77738e749273
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
12fb9fc3c3133c3a748deef7a0265e6a11a24cd6 02-Oct-2015 Winson <winsonc@google.com> Replace Long.compare() with implementation.

- Long.compare() was added in API level 19.

Change-Id: Ic7020c941403c10daa6feacdc737c6a82676ada0
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
e993c4b2757209b1e2e0408eaa2e850fe95e7b63 30-Sep-2015 Winson <winsonc@google.com> resolved conflicts for 850de64c to ub-launcher3-master

Change-Id: Ica4893082f03afe76abd42dca44016eb9e436c35
46a06da01cded4ba355381be41455f85f85369fa 30-Sep-2015 Winson <winsonc@google.com> Fixing other missing cases of truncated sorts.

Bug: 24505761
Change-Id: I9b9358e8b134f0c4aac32ac536d9c8a1f0629957
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
8660cf5d1b9d10eb969c8bbc908994e6affe33f6 26-Sep-2015 Winson <winsonc@google.com> am 17e2d495: Use Long.compare() instead of truncating values for comparison.

* commit '17e2d49547eb8d068b1ba816c6226cf5ef77369d':
Use Long.compare() instead of truncating values for comparison.
17e2d49547eb8d068b1ba816c6226cf5ef77369d 26-Sep-2015 Winson <winsonc@google.com> Use Long.compare() instead of truncating values for comparison.

Bug: 24116808
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
46a07220ad1beb8f59b27ebe5ab13d2a27a299c1 18-Sep-2015 Sunny Goyal <sunnygoyal@google.com> Merge "Build fix" into ub-launcher3-master
877f92893a758bbac389614ddce8e687bf62cfd2 18-Sep-2015 Sunny Goyal <sunnygoyal@google.com> Build fix

Change-Id: Ic9c8872dbabbd52b902a5890e7213b7e450bbcfb
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
b3cf2d789e0de5d1f70b3f4ffea9cb6926b43d75 18-Sep-2015 Sunny Goyal <sunnygoyal@google.com> Merge "Refactoring deferred bind logic" into ub-launcher3-master
9b75b5f8dce13b8c55080ae9564330b8ea6ee181 18-Sep-2015 Sunny Goyal <sunnygoyal@google.com> am 31860581: Catching RemoteExceptions when calling packagemanager to get list of shortcuts

* commit '31860581536b3fee0221456a2dcc5d6d6f2b7e15':
Catching RemoteExceptions when calling packagemanager to get list of shortcuts
8c2fdd4c44279ed90a8adcf9180e9f0f711a7c2a 18-Sep-2015 Sunny Goyal <sunnygoyal@google.com> am 31860581: Catching RemoteExceptions when calling packagemanager to get list of shortcuts

* commit '31860581536b3fee0221456a2dcc5d6d6f2b7e15':
Catching RemoteExceptions when calling packagemanager to get list of shortcuts
31860581536b3fee0221456a2dcc5d6d6f2b7e15 18-Sep-2015 Sunny Goyal <sunnygoyal@google.com> Catching RemoteExceptions when calling packagemanager to get list of shortcuts

Bug: 23796963
Change-Id: I5486c2916e981e7135edd5df360536a362bc2795
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
1daf7f792a8ffee5851ad60314d0c87b60e902b0 18-Sep-2015 Sunny Goyal <sunnygoyal@google.com> Merge "Build fix" into ub-launcher3-master
05247be8aa0aa9b9369ac7f86392933dd8bd8dd1 18-Sep-2015 Sunny Goyal <sunnygoyal@google.com> am 0f196e69: Merge "Null check when getting list of widget receivers" into ub-launcher3-burnaby

* commit '0f196e6939ee9f23ea24d046e74fd1d1d3fc953f':
Null check when getting list of widget receivers
a0a311ec21d30a51206623b0063fc2bb1bbb6d56 18-Sep-2015 Sunny Goyal <sunnygoyal@google.com> am 0f196e69: Merge "Null check when getting list of widget receivers" into ub-launcher3-burnaby

* commit '0f196e6939ee9f23ea24d046e74fd1d1d3fc953f':
Null check when getting list of widget receivers
3a6205f820bc2cca7d669342f191216d654be0a3 18-Sep-2015 Sunny Goyal <sunnygoyal@google.com> Build fix

Change-Id: I42941ccd7a104a85b0314806b6d34e734f47aa5d
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
0f196e6939ee9f23ea24d046e74fd1d1d3fc953f 17-Sep-2015 Sunny Goyal <sunnygoyal@google.com> Merge "Null check when getting list of widget receivers" into ub-launcher3-burnaby
ace3aa210b0d291eddf3ea58262d938f8d6a0678 17-Sep-2015 Sunny Goyal <sunnygoyal@google.com> am 79afe010: Throwing system api call exceptions in case of dogfood builds

* commit '79afe010d55af6b1753430a334bf6e24448e9375':
Throwing system api call exceptions in case of dogfood builds
a3c657750a1a3abae424e467f651e6431a6e19c2 17-Sep-2015 Sunny Goyal <sunnygoyal@google.com> am 79afe010: Throwing system api call exceptions in case of dogfood builds

* commit '79afe010d55af6b1753430a334bf6e24448e9375':
Throwing system api call exceptions in case of dogfood builds
7b221efa5366da64c0396891944ead52fb21db3a 17-Sep-2015 Sunny Goyal <sunnygoyal@google.com> Null check when getting list of widget receivers

Bug: 23897605
Change-Id: Ib23b394828b0e5ec50bf7452b2ec2c905f4a6fbc
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
79afe010d55af6b1753430a334bf6e24448e9375 17-Sep-2015 Sunny Goyal <sunnygoyal@google.com> Throwing system api call exceptions in case of dogfood builds

Change-Id: I28bad663712a22360ceed095ceb54ce71b1449d5
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
93cf2638eb1317520f1156bd2f5c257fb8a2a9db 15-Sep-2015 Sunny Goyal <sunnygoyal@google.com> am 3dc7beea: Catching DeadObjectException and TransactionTooLarge

* commit '3dc7beea3c7f9a60070e767aa43f5877a467d3ed':
Catching DeadObjectException and TransactionTooLarge
f33b78b8500212bf0ecf3ff5dafaa5aefbae8913 15-Sep-2015 Sunny Goyal <sunnygoyal@google.com> am 3dc7beea: Catching DeadObjectException and TransactionTooLarge

* commit '3dc7beea3c7f9a60070e767aa43f5877a467d3ed':
Catching DeadObjectException and TransactionTooLarge
3dc7beea3c7f9a60070e767aa43f5877a467d3ed 15-Sep-2015 Sunny Goyal <sunnygoyal@google.com> Catching DeadObjectException and TransactionTooLarge

Bug: 23796965
Bug: 23796963
Change-Id: I4c6ed217b9925b2e6014adc374b8b21f1ba559bc
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
527c7d3460345953e6b3427a74b1dacaddcb1111 29-Aug-2015 Sunny Goyal <sunnygoyal@google.com> Refactoring deferred bind logic

> Using ViewTreeObserver to listen for onDraw instead of overriding onDraw in workspace
> Loader passes the list of deferrerd runnables to launcher

Change-Id: Ie4877f746c96e9497396de8089f00f70bf867e17
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
7089a4e197bb14b01f4c485304f205dcb730ad21 11-Sep-2015 Winson <winsonc@google.com> am c0b52fef: Refactoring to ensure item deletion always removes from the DB.

* commit 'c0b52fefbc11531d560359c093484099f9d1298e':
Refactoring to ensure item deletion always removes from the DB.
c0b52fefbc11531d560359c093484099f9d1298e 10-Sep-2015 Winson <winsonc@google.com> Refactoring to ensure item deletion always removes from the DB.

- Routing the various places where we call through to delete from
LauncherModel through Launcher, which will delegate the removal
of the icon from the workspace, and properly handle the removal
of all items and their contents from the db.

Bug: 23944119

Change-Id: I022fe2b3e79da16b5af87505c4362490b8422686
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
ac7a174402f9346c15277c618c1e70308e1f4767 09-Sep-2015 Sunny Goyal <sunnygoyal@google.com> am 4abaf133: Merge "Removing items which are on invalid screen" into ub-launcher3-burnaby

* commit '4abaf133546b0c950edc82594985e9da50d9c1dd':
Removing items which are on invalid screen
41cdc8d20a9ffc35eb5cde29a187a09d62cca8a1 04-Sep-2015 Sunny Goyal <sunnygoyal@google.com> Removing items which are on invalid screen

Bug: 23804751
Change-Id: If26a6b201aa6127cfd2a08fc4b408a27d6329bad
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
8f531dd9883443265afba8b94db62e78ce02ca57 26-Aug-2015 Sunny Goyal <sunnygoyal@google.com> resolved conflicts for merge of 20884fdc to ub-launcher3-master

Change-Id: I31b49ed83bf6fa966ad68b587e6fa472e87bc0e3
639e906a0fc205b48512951feec0cbb47513e246 20-Aug-2015 Sunny Goyal <sunnygoyal@google.com> Fixing work folder addition logic
> Showing animation when folder is added
> Not showing animation while cling is visible
> Checking is loader completed from UI thread
> Running bind complete runnables when bind is completed

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

Change-Id: I160feaee81b262be02446885fae643c0be71b7af
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
e3e05563b755d3f94da6867049c1a81891545c88 14-Aug-2015 Sunny Goyal <sunnygoyal@google.com> am d21f9404: Merge "Disabling auto restore of widgets. > Always show "Setup" button for a widget which has a config activity." into ub-launcher3-burnaby

* commit 'd21f9404da5c8cdc959b483a40876b02ced35e43':
Disabling auto restore of widgets. > Always show "Setup" button for a widget which has a config activity.
d21f9404da5c8cdc959b483a40876b02ced35e43 14-Aug-2015 Sunny Goyal <sunnygoyal@google.com> Merge "Disabling auto restore of widgets. > Always show "Setup" button for a widget which has a config activity." into ub-launcher3-burnaby
84b4adc3fb2301466468828ccbd742209619e597 13-Aug-2015 Sunny Goyal <sunnygoyal@google.com> Disabling auto restore of widgets.
> Always show "Setup" button for a widget which has a config activity.

Bug: 23155863
Change-Id: I60683889e76be830a76ac1245e079574aaf0ad10
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
01d6688ed499d2f81ffced29eb6855f94d34e22e 13-Aug-2015 Sunny Goyal <sunnygoyal@google.com> am 81056da1: Merge "Refreshing widget list when a package containing a widget changes" into ub-launcher3-burnaby

* commit '81056da1def5d872d26b6f8a4e4163f9d94871a3':
Refreshing widget list when a package containing a widget changes
81056da1def5d872d26b6f8a4e4163f9d94871a3 13-Aug-2015 Sunny Goyal <sunnygoyal@google.com> Merge "Refreshing widget list when a package containing a widget changes" into ub-launcher3-burnaby
2d648b057fa2d6410b1472c1b9dd5b65cd9c9414 11-Aug-2015 Sunny Goyal <sunnygoyal@google.com> Refreshing widget list when a package containing a widget changes

Bug: 20698931
Change-Id: I50bafac1fc0a855edb1ace633a8a6f87a5c3040e
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
a410e992050d10bc3478eafa19dd76b0a1768254 11-Aug-2015 Sunny Goyal <sunnygoyal@google.com> am 6579e1ee: Disabling home screen migration logic

* commit '6579e1eee8a6fce44f020d40c3bbdbf245d6c12c':
Disabling home screen migration logic
6579e1eee8a6fce44f020d40c3bbdbf245d6c12c 11-Aug-2015 Sunny Goyal <sunnygoyal@google.com> Disabling home screen migration logic

Change-Id: I506948852945bfb8ebd7a95fc951880ffe9a3e17
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.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/LauncherModel.java
f9ada46270abcf23997eb1e0675b4d44e5c97673 04-Aug-2015 Sunny Goyal <sunnygoyal@google.com> am 317698bd: Loading high resolution icons for first 3 items in a folder

* commit '317698bd012c1930b83bb4e2e47ac9e363fa6c6a':
Loading high resolution icons for first 3 items in a folder
317698bd012c1930b83bb4e2e47ac9e363fa6c6a 29-Jul-2015 Sunny Goyal <sunnygoyal@google.com> Loading high resolution icons for first 3 items in a folder

> Sometimes a folder gets rearranged, without updating the model,
like when an app in uninstalled. In that case, we need to update
the icons for folder items, which were previously hidden

Bug: 22813360
Change-Id: I99754911c969bf2153efb2948c226c1c69219b88
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.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/LauncherModel.java
7808e273637340344a28c1552fa7ca825409cf53 01-Aug-2015 Sunny Goyal <sunnygoyal@google.com> am 8f375d1e: Merge "Enabling logging for migration task" into ub-launcher3-burnaby

* commit '8f375d1e68cdc67ce693a7693a2175ef5cb3b4eb':
Enabling logging for migration task
e745f451a57bf0b1d2dfe4f08f965b07fab12815 01-Aug-2015 Sunny Goyal <sunnygoyal@google.com> Merge "Removing boot receiver." into ub-launcher3-master
d934e0b0b7b60c9457fd0eb615355c16bac1a285 31-Jul-2015 Sunny Goyal <sunnygoyal@google.com> Enabling logging for migration task

Bug: 22353460
Change-Id: I8a9a8ea0d5523acb6d2376920535a9f4f519525d
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.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/LauncherModel.java
5e758cae9a9f4348ab519082e3b54fd3ff70de3c 28-Jul-2015 Sunny Goyal <sunnygoyal@google.com> Merge "Changing the dogfood check to a static boolean to better handle proguard optimizations" into ub-launcher3-master
27defa5dd68b8afa199e2f6c9d66e6046cd263db 21-Jul-2015 Sunny Goyal <sunnygoyal@google.com> am 3ba922aa: Merge "Fixing widget restore" into ub-launcher3-burnaby

* commit '3ba922aa62b70bc0a3307e43980c4ff189486694':
Fixing widget restore
53f9672b30b8a36bfae9f6492f732ccfb87723a4 14-Jul-2015 Sunny Goyal <sunnygoyal@google.com> Fixing widget restore

> Widget restore active flag was not cleared when the app was downloaded
> Icon from session info was not getting cached

Bug: 22413379
Change-Id: Ie096b929252200675a76dadd8c25cc3aa433671b
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
25aba0aea58b2ecbc0fd350c378fa9e45edb81c3 17-Jul-2015 Sunny Goyal <sunnygoyal@google.com> Removing boot receiver.

> Registering the receiver at runtime, only when it is required
> Using system property sys.boot_completed to check if boot completion
> This prevents unnecessary process startup during system bootup

Change-Id: I68f99ecf2e1ffd2ca7b6d15a99a282451bf67aec
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.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/LauncherModel.java
14031ebb81e21d6de216d39194f5bf5ff6c784ea 16-Jul-2015 Sunny Goyal <sunnygoyal@google.com> am 36db8567: Merge "Fixing AppWidgetInfo not initialized with proper user" into ub-launcher3-burnaby

* commit '36db85679d492888f03654fa04f6c291e74168e7':
Fixing AppWidgetInfo not initialized with proper user
ab7a4fe206b4ca1c18457738d5068df473a01ea5 16-Jul-2015 Sunny Goyal <sunnygoyal@google.com> Fixing AppWidgetInfo not initialized with proper user

Bug: 21673750
Change-Id: I1e03c3cb10a87e394e963cc2001c9c1c293eb2ca
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
2f824acaabf158d389f1ed5561bfc0f90a49dfa5 14-Jul-2015 Sunny Goyal <sunnygoyal@google.com> am 2a1be7a6: Merge "Fixing shortcuts not getting migrated to app icons" into ub-launcher3-burnaby

* commit '2a1be7a6165b49d21396bcb228a468bc79dd4d3e':
Fixing shortcuts not getting migrated to app icons
c22841bfd1961781a84cfccb98d1c2937a9adee4 14-Jul-2015 Sunny Goyal <sunnygoyal@google.com> Fixing shortcuts not getting migrated to app icons

Bug: 22410445
Change-Id: I939c59270529daf51638aa30b30763c18a2ce6a5
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
882a52eacf9e3bba09aa693f4982c2b8c41d25bb 08-Jul-2015 Winson Chung <winsonc@google.com> Fixing minor issue with spatially sorting workspace items for binding.

Change-Id: I10e05b3ae34a8101a48b625899888c7e8de1fe71
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
aa8ef119f18864f4ab41c12f9c2ad6d7f643a0a9 13-Jun-2015 Sunny Goyal <sunnygoyal@google.com> Refactoring ItemInfo

> Changing dragObject to ItemInfo
> Removing dropPos which is always null
> Removing requiresDbUpdate which is only used in CellLayout

Change-Id: I753ddaae0880c8a9bfee5a1266095ff34610284a
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
4e5cc64eaf1f63d866d51ce0a6bbafb3d4085c21 26-Jun-2015 Sunny Goyal <sunnygoyal@google.com> Fixing backup restore

> Not deleting icons from cache, which have not been restored yet
> Not checking if activity exists during DB migration. Missing
components are removed during loader anyway
> Backing up and restoring bitmaps even when iconType is resource.
This allows us to show a proper bitmap icon, until the correct
resource is available.
> Loading proper shortcutResource icon for promiseIcons
> Checking against promise intent when verifying duplicates
> A launcher App intent can contain EXTRA_PROFILE

Bug: 22094970
Change-Id: I982971338846733833ec133119393af0bea0eb08
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.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/LauncherModel.java
c1d53ef81c2f1923fde9a35d44e8d267443a9ff9 18-Jun-2015 Hyunyoung Song <hyunyoungs@google.com> Merge "Widgets model should respect AppFilter." into ub-launcher3-burnaby
eaf291b9feba4e332d258b6d53ff119c88dc0d39 18-Jun-2015 Hyunyoung Song <hyunyoungs@google.com> Widgets model should respect AppFilter.

> This pattern is already used in AllAppsList
> mBgWidgetsModel variable cleanup inside LauncherModel.

b/21739736

Change-Id: I03a05064ce3c3e5effb09055af9f4d4de2811c95
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
b1622cc30f2fd9b579cb918083e063685950df92 11-Jun-2015 Sunny Goyal <sunnygoyal@google.com> Deleting empty folders based on DB state

> Previously folders were getting deleted based on in-memory
loader state. If for some reason, an item failed to load, we would
delete the folder from DB as well.

Bug: 21354058
Change-Id: I5318ee8a99afa9cafd93ed2b9ef0e155f502a41b
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
3abd5488cca5b06c97251db453a5a6ed61e33ce8 09-Jun-2015 Hyunyoung Song <hyunyoungs@google.com> Catch TransactionTooLargeException when loading widget provider list
b/19904873

Change-Id: Ic0d13ee7513731706bc0f9fde8502acba0899cb3
Note: fix for almonte will be separate due to diff btw the branches..
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.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/LauncherModel.java
091f0ffd929f7a0a9a6af7d202eae13c48c07daa 05-Jun-2015 Sunny Goyal <sunnygoyal@google.com> Updating widget list when iconCache updates

> Fixing bug where items were not getting removed from the memcache
> Fixing bug where package entries were not getting removing because
of component mismatch.

Bug: 21612532
Change-Id: Ie56f3272f7fb7e1a37c5ff9bfa523d814edc1a02
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
53d7ee4285842732517edcccbdcaa92dccb1e107 22-May-2015 Sunny Goyal <sunnygoyal@google.com> Fixing different bitmap sizes in different orientations

> Using a single bitmap icon size
> Picking up appropriate density for satisfy the required icon size
> Fixing some icon size assumptions during icon animations

Bug: 19514688
Change-Id: Ia7a1d0d2c03a9d39ccc241fa4ae3eb8a0f374585
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
316490e636aad788fcfbfc2e04dd4f0e145bdd00 02-Jun-2015 Sunny Goyal <sunnygoyal@google.com> Removing some synthetic method creation

> Make package-private and @Thunk all private methods and constructors accessed from inner classes.

Change-Id: Ie5913860a0c33e48e9bf68f9b5b1699f64c2f174
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
8f10dc21a08b486a07f4805adcce71b2d77d968c 22-May-2015 Hyunyoung Song <hyunyoungs@google.com> Merge "Fix widget tray crash on screen rotation introduced by ag/694693" into ub-launcher3-burnaby
9110d485fa12c03df3061278717efb342f1142cf 22-May-2015 Hyunyoung Song <hyunyoungs@google.com> Fix widget tray crash on screen rotation introduced by
ag/694693

b/21402209

Change-Id: Idae97fca971d90f5fbba658411491147cb023c8d
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.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/LauncherModel.java
5c97f51fd9443e461a360ff7852aa223c05d667f 20-May-2015 Sunny Goyal <sunnygoyal@google.com> Icons are not updated to TYPE_APPLICATION during restore

> Use low res only for app shortcuts
> Running icon migration after restore
> Running icon migration again for all users
> Deduping shortcuts added from widget tray

Bug: 20945600
Change-Id: I3bb47545fdd9832510069026fbae8966d2311cc1
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
324d78358c88d30eac587f4e1d679f9b5bf8d2f3 21-May-2015 Sunny Goyal <sunnygoyal@google.com> Merge "Breaking icon update task so that it doesn't block worker thread" into ub-launcher3-burnaby
edc9c0564454ed38dd3006c9ae4b82a449f447a4 21-May-2015 Hyunyoung Song <hyunyoungs@google.com> Merge "Load PackageItemInfo in background thread to prevent ANR" into ub-launcher3-burnaby
2bd3d7d1cb5e4d8d826982d11b456739fed6b817 21-May-2015 Hyunyoung Song <hyunyoungs@google.com> Load PackageItemInfo in background thread to prevent ANR

- Decoupled widget model from widget view, and placed the
creation to LauncherModel.
- As a result packagemanager operation, iconcache retrieval is all done inside
LauncherModel on background thread
b/21311085
b/21325319

Change-Id: I294698527db58b89f3da558090a367530c058776
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
a508e4f804c2bddf9e2cdfa3d0bd4a8202ff2151 21-May-2015 Sunny Goyal <sunnygoyal@google.com> Do not trim folder title

Bug: 21297281
Change-Id: I633780f8207aabc8362f016e6b5a6e720cee1b86
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
75b0f552ae653a4afc64c5fb6782a481fdb89b4d 21-May-2015 Sunny Goyal <sunnygoyal@google.com> Breaking icon update task so that it doesn't block worker thread

Bug: 20945600
Change-Id: Iaf516577898b51ad6e8a813d7f018ecad969c100
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
f3a21c8ca2d100e779958ba6fd600c28e399d956 20-May-2015 Sunny Goyal <sunnygoyal@google.com> Merge "Moving LauncherAccessibilityDelegate to accessibility package" into ub-launcher3-burnaby
0b493c86c5d0803f11095b71396ffac0097d26ef 19-May-2015 Hyunyoung Song <hyunyoungs@google.com> Unify sorting between all apps and widget tray

- selected locale names are shown before latin
- case independent sorting
- main app > enterprise app

Future possible refactoring:
- Move all the *ItemInfo data structures to model package
- Rename the comparator based on NOT what data structure it supports
but what functionality it supports (locale? case independent?
main app > enterprise app?)

b/21271658
b/20339403

Change-Id: I8a776467392e21d5014e85cd3f51931a3ef89724
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.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/LauncherModel.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/LauncherModel.java
f5cd998c25b025e46c56f4e862f4f5573a807745 19-May-2015 Sunny Goyal <sunnygoyal@google.com> Starting the loader if the previous loader is not complete, instead of binding page synchronously

Bug: 21107637
Change-Id: If04952c7d5c8a38a739ce5536ecac394011ab61a
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
a214a63bfe365a0e81bc3082d56896c6df24d0b4 06-May-2015 Sunny Goyal <sunnygoyal@google.com> Preventing homscreen getting filled with secondary user apps, when launcher
starts for the first time

> Sorting the apps in the work folder by install time

Change-Id: Ia475b4ff3197d90e6dffe070c12c0aa16be9e292
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
1936ec048ca612f4651d6b2f18390bae8c4ac936 12-May-2015 Sunny Goyal <sunnygoyal@google.com> Removing empty folders in loader

Bug: 21050720
Change-Id: Id174bb1e18b070e32273d66649f0e286e3546f89
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
82b016cb56540fe26213e817dd0dd668099c8e20 09-May-2015 Winson Chung <winsonc@google.com> Trim all whitespace from titles and labels.

Bug: 20953160

Change-Id: I1610df5e445a4139522226f68fa6439926bc70c6
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
219d048711a2c26b7b00f3a0b1d66703d135519a 07-May-2015 Hyunyoung Song <hyunyoungs@google.com> Widgets should also be bound when binding all apps.
b/20915830

Change-Id: I772156f8a8d361f485fb4d7edc447c2cee2edf23
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
8a8f03d10a0a55e602c5cbf3c2c7035d2270ab47 07-May-2015 Sunny Goyal <sunnygoyal@google.com> Merge "Skipping package update tasks if loader has not yet run." into ub-launcher3-burnaby
c905efc89cd8a391ae73f36d356c907b4aaf1bf0 06-May-2015 Sunny Goyal <sunnygoyal@google.com> Skipping package update tasks if loader has not yet run.

Bug: 20754508
Change-Id: Id2ddcff42cd41e4f9875ad6ef95f648365502b75
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
77919b93b98f5afa1b39546861197d6065847224 07-May-2015 Sunny Goyal <sunnygoyal@google.com> Updating the icon cache after all apps has been bound.

> Updating the cache DB version to reset existing cache.

Bug: 20834835
Change-Id: I298ca9ddcc4dd270b25b767447ecde01ef41a916
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
deb189fd105a5367d965538fd2ebc4a132346ee4 06-May-2015 Sunny Goyal <sunnygoyal@google.com> Merge "Adding workprofile shortcuts after the loader has completed" into ub-launcher3-burnaby
9892e5874061233dec57107d1d3d7d5d8e1f5d93 05-May-2015 Hyunyoung Song <hyunyoungs@google.com> Use valid context inside LauncherModel when calling loadAndBindXXX

b/20851075

Change-Id: Ie3feb387a142d4e11a0a18bbcc4fd4932cfe4439
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
227239e7c05d26c4098980b991d3472077c01ccb 05-May-2015 Hyunyoung Song <hyunyoungs@google.com> update widgets model when package is updated

Fixing a bug where onProviderChanged is called before Package update.
And icon loaded on the widget tray is the default icon.

Change-Id: I4ffea846d057920fd894537432ac5881642bc570
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
80068f518c858babf75cb6f5bf076875dc0cc481 05-May-2015 Hyunyoung Song <hyunyoungs@google.com> Merge "WidgetTray performance improvement (less sorting): Part 1" into ub-launcher3-burnaby
8821ca9a6a5bf34308f9b70c2cabf9da17330497 05-May-2015 Hyunyoung Song <hyunyoungs@google.com> WidgetTray performance improvement (less sorting): Part 1

- No longer return sorted list from the package manager since, the only
time the widget list requires to be sorted is when recycler view renders
them.
- Made getWidgetsAndShortcuts private to guarantee that widgets are
being loaded in the worker thread.

Change-Id: I2c35973c1226e831514380dd38fc2f88b1b91d02
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
756a28aeece3b00f40415f1fccae6f7d57104bfb 24-Apr-2015 Sunny Goyal <sunnygoyal@google.com> Adding workprofile shortcuts after the loader has completed

Change-Id: Id466d8e164feeac427d969d6bc0ed3ca7a218ac4
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.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/LauncherModel.java
dfde999ccd0db397c7e4610444bb3fb69f7aa183 01-May-2015 Sunny Goyal <sunnygoyal@google.com> Various managed profile fixes

> When matching existing shortcut, match the uri as intent doesn't implement equals
> Fixing user matching when searching for apps in all-apps

Bug: 20749743
Change-Id: I14f3e2134e774727176e865d74108ef79de874d6
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
a911672f45900fc0ed746e0d84c43c6e5ad89b6a 29-Apr-2015 Sunny Goyal <sunnygoyal@google.com> Simplifying add to workspace by not going through the worker thread

Change-Id: I3260786bee257aea93ade49e6fa18008232addbe
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
f7a29e83f06909b378dba39c83a522375682710a 25-Apr-2015 Sunny Goyal <sunnygoyal@google.com> Removing some unused method params from CellLayout

> Replacing various distance calculations with Math.hypot
> Moving findVacantCell to Utilities

Change-Id: I0cb194b603e52b3bb2b29a095bb4da2bb408ab13
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
e2df0620c13b9dc7e63224153b98fdbb48546f9b 24-Apr-2015 Sunny Goyal <sunnygoyal@google.com> Adding LongArrayMap as a replacement for HashMap<Long, E>

Change-Id: I4710e6db69abcdbd897a8401fc8b980c09e2ffef
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
d33860f2cc027b91dd09cc38ddd0e37878ba6c69 24-Apr-2015 Sunny Goyal <sunnygoyal@google.com> Clearing all pending runnables when Launcher is destroyed.

Change-Id: I00596c11116b5579c1f013b268b6c0b5239f0aa7
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.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/LauncherModel.java
7372fc659ed16c2e14a64a3d78a2c63554005844 22-Apr-2015 Sunny Goyal <sunnygoyal@google.com> Merge "Using a different userManager class as getUserForSerialNumber gives a valid userHandle for deleted user." into ub-launcher3-burnaby
d4af1484447129d489203130e0d654f81a10437d 21-Apr-2015 Hyunyoung Song <hyunyoungs@google.com> Remove duplicate calls to getSortedWidgetsAndShortcuts

Note: this is a manual CP of the CL that was submitted to ub-launcher3-almonte

b/19904873

Change-Id: I2e56bc0c7524caa2ef3c5fb00f35cb032cd1860b
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
7f834d2b3084f012b935e6e95f038f2eb4a0acfa 21-Apr-2015 Sunny Goyal <sunnygoyal@google.com> Using a different userManager class as getUserForSerialNumber gives
a valid userHandle for deleted user.

> Also chaching the user handles during loader to avoid multiple
calls for UserManager

Bug: 19389411
Change-Id: I95af3b41b2c9d2ea41d9a75b1020656f57f5e4c9
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
fa401a10e7e9341daf6f3c5949bf9331902c26d0 10-Apr-2015 Sunny Goyal <sunnygoyal@google.com> Updating drop button targets

> Splitting DeleteDropTarget into delete and uninstall
> Showing UninstallDropTarget for app shortcuts on workspace
> Showing InfoDropTarget only when developer options is enabled

Change-Id: I4396571d2199d1581bb9c733aef88ab9b0ebd79d
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.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/LauncherModel.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/LauncherModel.java
c517f4ce65cfbb3c52231262cf24847820213d29 06-Apr-2015 Winson Chung <winsonc@google.com> Ensuring that work-profile applications are mixed in with other apps.

Bug: 20046158
Change-Id: I833c1a1467889db07f9ec33ca77641322901958e
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.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/LauncherModel.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/LauncherModel.java
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/LauncherModel.java
26ace12135a662ad864678c9fede9817e5c02b67 16-Mar-2015 Robin Lee <rgl@google.com> Don't clobber widgets with the same component.

By not storing them in a HashMap keyed against ComponentName (which is
almost guaranteed to conflict with other widgets when managed profiles
are in play).

Bug: 19444068
Change-Id: I6ffce78e8aaf265196239670404cbdaff9fa09be
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
34b6527cefd36fbd5da78464ce9771e379158552 12-Mar-2015 Sunny Goyal <sunnygoyal@google.com> Lazy loading high res icons

> Loading low-res icons for icons which are not visible on
the homescreen.

Change-Id: I8ac7bf09f6030ed554cb60a4cd402f3f36ffe12b
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
5d85c44fd873c740dc191b28424c2ee367d730a2 10-Mar-2015 Sunny Goyal <sunnygoyal@google.com> Adding sort switch in FolderPagedView

> Adding options column in DB to store generation purpose flags
> Storing isSorted flag in FolderInfo
> Adding a switch for A-Z sorting (only visible if pageCount > 1)
> When in sorted mode, spring-load snaps to the target location for 1.5 seconds

Change-Id: I8c7c778d2cc3ccbd35a2890a1a705e1c1a7e9a66
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
70a48befe48af0a318e88745f480d2ed42936bb5 12-Mar-2015 Hyunyoung Song <hyunyoungs@google.com> Fix widget refresh issue on package install/uninstall

Culprit CL: https://googleplex-android-review.git.corp.google.com/#/c/592303/3/src/com/android/launcher3/LauncherModel.java

b/19658229

Change-Id: I02b0b2a0ed9bc3200bbe1edcb251cf0efe939e53
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
b745afbdd75157c73d581b345118cdaff99e912d 02-Mar-2015 Winson Chung <winsonc@google.com> Initial changes to break out AllApps into its own view.

- Moves launcher state-transition code into its own class
- Moves all-apps related code into a separate view/set of classes
- Implements a basic list view for all apps

Change-Id: I68f174aa9e1bf82c4e46ce9549c78a8dc4623f46
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
5b437d8957c21b5fab42d3540db39da09378cfd7 02-Mar-2015 Sunny Goyal <sunnygoyal@google.com> Merge "Removed disableAllApps flag" into ub-launcher3-burnaby
c9acdd51c40c1b397adae6ba62c4acd01914b473 26-Feb-2015 Sunny Goyal <sunnygoyal@google.com> Removed disableAllApps flag

Change-Id: I50ba511b8493bca2506ab6010f141c093bfa7499
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
4fbc3828c5ae1e8c5789ede974447fa365f3c5a1 19-Feb-2015 Sunny Goyal <sunnygoyal@google.com> Updating IconCache to maintain a persistent of icons

> IconDB maintains a DB of icons keyed on ComponentName + User
> During loader, icons & labels are loaded first from the DB, and
if the entry doesn't exist, loaded using packageManager
> After the loader completes, IconDB updates any entry which might have
changed, while the launcher was dead.

Change-Id: I7a6021cb6d1ca1e66fa5a0bdd21e1543e0cf66fc
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
66cfdc2549b973496f2d5555defc22b7a15b5620 02-Feb-2015 Sunny Goyal <sunnygoyal@google.com> Removing code for the unused 'upgrade path'

Change-Id: Ib9eca92284b0eabbe36ffaaf26c62a6ce3cfd3e9
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
158da0802d701a27a7981137381621fc004ec73f 30-Jan-2015 Adam Cohen <adamcohen@google.com> am b76c165a: Fix ClassCastException due to typo

* commit 'b76c165aadb4deb144ec3b1267aa1faf304638e9':
Fix ClassCastException due to typo
b76c165aadb4deb144ec3b1267aa1faf304638e9 30-Jan-2015 Adam Cohen <adamcohen@google.com> Fix ClassCastException due to typo

issue 19159790

Change-Id: I5f9fa0e3672c10a460606dcb13b158bd4e614813
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
bb3b02f562bef4de063099c085d3199a77d06cfd 15-Jan-2015 Sunny Goyal <sunnygoyal@google.com> Replacing hotseat icon to an appropriate system app

> During backupi, store the hotseat target app type, based on some predefined
common system apps
> During restore, save this app type in the restore flag, if it is a hotseat app
> During first launcher load, if an app is not being restored, try to replace it
with an appropriate replacement for that type, otherwise delete it.

Bug: 18764649
Change-Id: Ic49e40bd707bd8d7de18bbab8b1e58a0a36426a2
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
c1b7c2ecbdcf6b16e36fd8ad843d017f0eaac594 17-Jan-2015 Sunny Goyal <sunnygoyal@google.com> Simplifying loadScreenDB to load the screen IDs in sorted order

Change-Id: I5551b5c12cdc2b0e304a06d2e8edbe81e124a55c
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.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/LauncherModel.java
08f7261d11a53ae4b330ad4fa897b8519de3d750 05-Jan-2015 Sunny Goyal <sunnygoyal@google.com> Adding a rank column for itemInfo

> Rank is used to determine position of an item
in a folder.

Bug: 18590192
Change-Id: I2826a7c570b4cc58e719d685f17a24ec6133804f
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
5940042d39b576553c2499bcf3d0641281e6ad52 06-Mar-2014 Adam Cohen <adamcohen@google.com> Supporting custom widgets provided by launcher

-> This change provides integration for widgets provided by
the launcher package which can run arbitrary code.

Change-Id: I6052da5c4afed7ee72e3b44d045b9c46f2d84c42
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
2a66bbf3f01c2be20ecbf9df4dd9e98d50ed119f 21-Nov-2014 Sunny Goyal <sunnygoyal@google.com> Disabling auto addition of managed profile shortcuts

Bug: 16188104
Change-Id: Ib6464c22140df6d60112eb35f5983718b3db6288
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.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/LauncherModel.java
24e0fc122186641adf862327d9266da774f3c25f 23-Oct-2014 Sunny Goyal <sunnygoyal@google.com> Merge "Deleting workspace items from db which have an invalid placement" into ub-now-queens
1231c0743cce0b6b70951d1df3e4b0876c444598 21-Oct-2014 Sunny Goyal <sunnygoyal@google.com> Merge "Updating ItemInfo objects in the worker thread" into ub-now-queens
fc0fe6b9be040122bc6047ef7f91b20fc8ead9cc 16-Oct-2014 Sunny Goyal <sunnygoyal@google.com> Deleting workspace items from db which have an invalid placement

Change-Id: I1d616e8cd533acd6ecd334d85e6468163f31f6a4
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
9b4b0812fec41c40d81d507cfdb528ba87663f5f 08-Oct-2014 Sunny Goyal <sunnygoyal@google.com> Showing widgets in a disabled state, when running in safe mode

Bug: 15172107

Change-Id: I7209836ca4ffacde7b7b232e230e9b9f1a0e54bb
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
2350bc97851eea1662eee43d61290eb7a8382021 15-Oct-2014 Sunny Goyal <sunnygoyal@google.com> Adding NPE check in InstallShortcutReceiver

> Removing some unused methods

Bug: 17971165
Change-Id: I1bc5c764fd65b44c950a58371b60d2b53c221995
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.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/LauncherModel.java
1a745e8f18e54aff152ff51743ae7595adde6927 03-Oct-2014 Sunny Goyal <sunnygoyal@google.com> Keeping icons in disabled state when SD-card is unmounted

> changing shortcutInfo.isDisabled to be a flag based variable
> on received OnPackageUnavailable, icons are disabled from desktop
instead of being removed. Icons in all apps are removed

Bug: 15852084
Bug: 16238283
Change-Id: I126d23c709682a917d4bbb84de71032593dce8f9
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
b50cc8c5d6125715b139d978887830a5341971aa 07-Oct-2014 Sunny Goyal <sunnygoyal@google.com> Updating icons for sortcuts when the target app updates.

Bug: 17398260
Change-Id: I055abb971d1f72245e8616ac2ce07bcdf37cdd52
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
2fce90c38a79d318e96a28107dea287e42509861 07-Oct-2014 Sunny Goyal <sunnygoyal@google.com> Cleaning up icon resizing code

> For resizing icons, scaling them down instead of cropping them
> Removing duplicate methods and variables

Bug: 17663119
Change-Id: I0f270860c0edaaa939495e63e05da841a603f6e9
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
1a85c5839c91942b3c7dd0da5992db4d98defdc3 30-Sep-2014 Adam Cohen <adamcohen@google.com> Don't let old Launcher activity interfere with new one

-> Launcher uses a static instance of it's loader (across
multiple activities) since activities can come and go
(configuration change, eg.) but the data model and loading
is static.
-> Currently, this is not robust to a sequence of events that
looks like onCreate(instance A), onCreate(instance B),
onDestroy(instance B) -- depending on the timing of those
calls.
-> This CL addresses a symptom of the above scenario by not
allowing an older Launcher Activity cancel the loader /
clear the callbacks for a newer Activity.

Bug 17679693

Change-Id: I8ece93e288464b0d578b9669c165b67132d997ed
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
c5fb59fb9a36180ce962f565d85aa92f9991da1a 26-Sep-2014 Sunny Goyal <sunnygoyal@google.com> Fixing loadWorkspace being called multiple times
Using right intent when refreshing shortcut icons

Bug: 17662782
Bug: 17663766
Bug: 17569197
Change-Id: I8d698c5e2145b8412aff9978db4ec930d89f7f24
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
acefecbff3141b43dc55fe18146cf842d1d4a8ae 19-Sep-2014 Sunny Goyal <sunnygoyal@google.com> Merge "Updating promise icon's bitmap and label when onBadgingChanged is received" into ub-now-porkchop
9448536b113afa6ceefce26604a1b44618d1d4f2 19-Sep-2014 Sunny Goyal <sunnygoyal@google.com> Adding support to delete unrestored icons and widgets

Bug: 17584719
Change-Id: If8e76fc80ea885c9004c50b7b6a9353525a50105
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.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/LauncherModel.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/LauncherModel.java
938a53d8640ddec14b36b1e7ddc3e156824d9de0 05-Sep-2014 Sunny Goyal <sunnygoyal@google.com> Don't remove content URI shortcuts during restore

issue: 17373897
Change-Id: I2760f779d89be76cc1ace749b0c1893da80d07e1
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.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/LauncherModel.java
e7b8cd9e4f8d38d0445f3a032fafd44332f70878 27-Aug-2014 Sunny Goyal <sunnygoyal@google.com> Improving restored widget behavior

> Clicking a broken widget install shows a dialog similar
to an app icon
> Clicking remove on the dialog removed all components
for the corresponding package
> Widget pending view shows 'Setup' text instead of icon,
if there is enough space

Change-Id: I82ec0a1ee9542c1e3b860e6e00798a80450dce3c
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
ffe83f13319cdb833a25596d47cf1af098cc4c60 15-Aug-2014 Sunny Goyal <sunnygoyal@google.com> Adding support for managed profiles in widget

issue: 16892811

Change-Id: If8c81f2a5a3bc846b02a5d225c5a8f27b1382dab
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
0fc1be164e982433e619bcbb16aa67e28ff681ef 12-Aug-2014 Sunny Goyal <sunnygoyal@google.com> Updating the ui for widget restore flow

> Pending widget show a PreloadIconDrawable to indicate
installation progress
> Only the concerned widgets are reinflated on package
install and not the whole workspace.
> Adding support for storing default package icon in
IconCache

issue: 10779035
issue: 16737660

Change-Id: Id787ae4a5ef72d6e01aeb5a1bae5ab8840037679
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
0fe505bf82a265e51c556d7204976651cde7f55c 06-Aug-2014 Sunny Goyal <sunnygoyal@google.com> Autoinstalls loading xml

> Launcher checkes for an apk in the system image with a broadcast
receiver for action:
com.android.launcher3.action.LAUNCHER_CUSTOMIZATION
> Default layout is parsed from that apk, which can also contain
icons and string resources used in the layout config

Change-Id: I44fc9e7c3134f525f7b5db29f4e8bb56e17ce445
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
ff572277112ec3d6a6a8c1be274d6fa1019e3648 23-Jul-2014 Sunny Goyal <sunnygoyal@google.com> Adding support to restore widgets even for jelly beans.

> Show 'widget-not-ready' until the widget app is installed
> Once the app is installed, bind a new widget id (not required on L if
id-remap was received).
**Remove the widget if bind failed
> If the widget has no configuration screen, show the widget, otherwise
show 'setup-widget'.
> Clicking 'setup-widget' shows the config screen, and updates the
widget on RESULT_OK.

issue: 10779035

Change-Id: I2f8b06d09dd6acbc498cdd93edc59c26e5ce17af
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.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/LauncherModel.java
513edaebce9846c2d5eb4c0c013a9dcf6232c0e3 30-Jul-2014 Sameer Padala <sxp@google.com> Modify code so it compiles on google3

The diamond operator isn't supported on google3 Android projects.

Change-Id: Ie7298b051330bb2cd32426d4c537882faa2f8ebd
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
05e318d8f7d5ea615539d34b181ee44686f1f494 29-Jul-2014 Sunny Goyal <sunnygoyal@google.com> Fixing spell correcton

Change-Id: I29d980d8073680fafa8fcc01bc2ec81258919da2
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
87bee403ed919e31c50b4ae921acc4db1b2d96e4 22-Jul-2014 Sunny Goyal <sunnygoyal@google.com> Merge "Merging motorola's patch to fix ClassCastException" into ub-now-master
0c4a64451eb868d1f6abda45896dc2d2c4a9f2de 22-Jul-2014 Sunny Goyal <sunnygoyal@google.com> Merging motorola's patch to fix ClassCastException

issue: 15518616
Change-Id: I7d707f12cb20be9aa24d7ea86051f3712b3534af
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
651077bdd603bb182be039925fd17bdf0da15016 30-Jun-2014 Sunny Goyal <sunnygoyal@google.com> Adding app widget restore support in Launcher3 for android L

When the app is restored, it displays placeholders for all pending widgets.
These placeholders can be moved and removed similar to a widget (size is fixed
to what defined in backup). Once the system notifies the launcher of the new
widget ids, the place holders are replaced with actual widgets.

issue: 10779035

Change-Id: I68cbe4da01e9ca2978cb4471a7c645d2aa592055
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
c5c60ad3592f53549c9ffaa58e9a87b0480080e8 14-Jul-2014 Sunny Goyal <sunnygoyal@google.com> Merging Motorola's patch to disable apps when is safe mode.

issue: 16044192

Change-Id: I10069dcdf459ecc71361271e883eabb743d77822
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
3484638cad97e255a412b0489a63873fb3ca4218 09-Jul-2014 Sunny Goyal <sunnygoyal@google.com> Adding a circular progress bar for preloader icons

Change-Id: I1b5ba61c01a16a8cb5d3f9e31f827f8c99a1ffc9
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
f599ccfe96eae7e4854bddfedd3df945feb9b7f5 08-Jul-2014 Sunny Goyal <sunnygoyal@google.com> Showing icons for apps on sdcard which are not available during system boot.

issue 15852084

Change-Id: I1e6f59a413581ae3af4219ab32cb5af3d726d382
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.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/LauncherModel.java
40c5ed303909c4df71037be3429aa1423e59585f 25-Jun-2014 Chris Wren <cwren@android.com> Offer to delete broken promise icons.

Track state of promise in the info, not the view.
Fix bugs around moving promises to folders.
Fix bugs around filterign and removing promises.

Bug: 12764789
Change-Id: If5e8b6d315e463154b5bafe8aef7ef4f9889bb95
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
2a6cf09be968f71f23d520f1dc3f339feb61b269 27-Jun-2014 Sunny Goyal <sunnygoyal@google.com> Fix issue where sometimes duplicate icons are added on homescreen when
installing a package

Shortcuts placed by the user have no package in their intent.
Ensure that this is accounted for when searching for duplicates.

issue: 12888844

Change-Id: I2fb8b7c2b8f7cb74926904bf49a96aeb59a5a9f8
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.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/LauncherModel.java
01453e855fa87ee19f61223b2b1a6965071ee95a 20-Jun-2014 Kenny Guy <kennyguy@google.com> Add content description to bagded icons.

Enabled accesibility so that icons badged by the
managed profile have a content description
that is different to the non-bagdged version.

Bug: 15106236
Change-Id: Id483273173d9539916eebd59111d179087526be3
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.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/LauncherModel.java
a28b78e8385f0f590b144038157afc7d34cd48b7 21-May-2014 Adam Cohen <adamcohen@google.com> Fix issue where shortcuts were still being added even if corresponding app is uninstalled

issue 14410162

Change-Id: I7857aace069c4eb4c1ee504088f4526d61e1f30e
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
bbe1e24c5ff470a695510d23d67bcb6f2ad88d0e 16-May-2014 Jason Monk <jmonk@google.com> Fix issue where always trying to migrate

Rather than check if the ContentProviderClient is null (which fails
in when using the Redirector), check the PackageManager directly
for the authority we are looking for.

Bug: 14466459

Change-Id: I7420352a15dcea5037196670f18705e7a34f0672
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
71483f417bb19f524cda41081f5ccac6084dc103 15-May-2014 Adam Cohen <adamcohen@google.com> Removing antiquated migration path logic

-> also added some extra debugging for issue 14466459

Change-Id: I1ac9352c52c15d3e37f945cffabbca49343d2b8f
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
0e584b5802823091ef47dc165af5afbbe2c0ae42 12-May-2014 Chris Wren <cwren@android.com> check for long and short component names.

Bug: 14650346
Change-Id: Ic2195a4f60b63f8ec85c42284e0fd58d6f473a9f
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.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/LauncherModel.java
6cc806d678c8a44478308119c087ac9adde73b66 02-May-2014 Amith Yamasani <yamasani@google.com> Watch for profile events and reload

Reload the workspace and all-apps list when a managed profile
is added or removed.

Bug: 14484845
Change-Id: I69210c22e568f2a561266ef2846ddf8f6d659070
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.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/LauncherModel.java
050eaf2a87e5d78eb7500c2d84129f7a2fffa750 23-Apr-2014 Jason Monk <jmonk@google.com> Merge "Add synchronization to DeferredBindRunnables" into ub-now-nova
a0a7a7440e860c61c8261c5009dbe351869896b3 22-Apr-2014 Jason Monk <jmonk@google.com> Add synchronization to DeferredBindRunnables

Seems that on occasion the list is being iterated on while being
modified. To fix this added synchronization to all modifications
to the list as well as iterating on a copy of the list to cut
down on time holding the lock.

Bug: 12885709
Change-Id: I4287bdedbeb8e438b49c1f79b44819a752c28a69
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
a8171169ff18efc9e0bf5b865dbd35cee06d3fae 18-Apr-2014 Adam Cohen <adamcohen@google.com> am 76ac344c: Merge "Allow the old launcher content URI to be overrided" into ub-now-mister-ugly

* commit '76ac344cb61a74267c04249c9e9feec41a82c504':
Allow the old launcher content URI to be overrided
76ac344cb61a74267c04249c9e9feec41a82c504 17-Apr-2014 Adam Cohen <adamcohen@google.com> Merge "Allow the old launcher content URI to be overrided" into ub-now-mister-ugly
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/LauncherModel.java
0bfccebc9b276b857c992790232cc8477a8a3504 21-Mar-2014 Jason Monk <jmonk@google.com> Allow the old launcher content URI to be overrided

Move the URI used to import favorites from launcher2 to be loaded
from a string resource. This allows it to be overridden.

This will enable permissions fix for GoogleSearch.

Bug: 12058200
Change-Id: I31243fe89f545c9771d5cceffe1c9e7668a42bc5
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
8e19cf22a4ab86f982b08e7d10b86ea7be56accc 20-Mar-2014 Jason Monk <jmonk@google.com> Fix missing stack trace on checkItemInfoLocked call

Just put this change into Launcher2, now adding to Launcher3

The call to checkItemInfoLocked from addItemToDatabase was missing a stack
trace so that if the check failed, the stack trace did not contain what
triggered the add.

Change-Id: Ia2e2aae20b16d4adadfe1da53b49e93073fab55c
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.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/LauncherModel.java
eb23cb2a90a7f1fa794a375b9d7a111d7f630a02 06-Mar-2014 Winson Chung <winsonc@google.com> Properly releasing ContentProviderClient after LauncherModel check.

Change-Id: I0823ada46661b5ba0c36a0bb9f792969a1d04561
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
6d0dde01f307051ee1849481c989d9e87774b894 10-Feb-2014 Chris Wren <cwren@android.com> use restored icon for restored app shortcuts

Bug: 10778992
Change-Id: Ie430a6587d49dc0d78b87b81582c0cef7c281017
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
085c853a5702c45865e9b017d21fa15cf2b151b9 11-Feb-2014 Yura <yura@google.com> Do updateWorkspaceScreenOrder inside a single transaction.

The workspacescreens table is updated in LauncherModel.updateWorkspaceScreenOrder
and that the operation to remove all screens, then reinsert the new list of
screens in not inside a single transaction, so if the app is updating or
crashes between ContentResolver.delete and ContentResolver.bulkInsert then
the data will be lost. This CL makes it all happen inside 1 transaction.

Bug: 12523285
Change-Id: I409dbc9f48fa9c8bd4bf3b1453204a4daac1689a
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
b6d4c2827a1514432b5eda46ff7d484d6cf244ac 27-Jan-2014 Chris Wren <cwren@android.com> update placeholder on package install or restore

Bug: 10778992
Change-Id: I3293d8bab8ae0ef49fc5554531bba5bd6f70932c
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
c87c21a0cd168c65c70b59ad12502a2e1a00b9c4 05-Feb-2014 Adam Cohen <adamcohen@google.com> Merge "Small refactor to separate adding workspace / all apps items" into ub-now-lunchbox
76a47a1b2273c4d7dfab0beeadc1a8387e6a2840 05-Feb-2014 Adam Cohen <adamcohen@google.com> Small refactor to separate adding workspace / all apps items

Change-Id: I06b7bc7f7f0e01696cb9670b8385e5148593e3e0
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
f4d081107f5984bfb92cb1a627667fea5bf1498c 17-Jan-2014 Chris Wren <cwren@android.com> handle shortcut restore for missing packages

Bug: 10778992
Change-Id: I8766b8d4dd9c0269d52a7ec3da58dd408bc5f09f
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
556f6135f992dcd5bfbfffe0172627bfbf57d24e 16-Jan-2014 Adam Cohen <adamcohen@google.com> Don't migrate shortcuts for components that no longer exist

Bug 12570791

Change-Id: Ie4b55afcee0c4d1d16acf7b830d7885800943454
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
e43a1e788223ab5a4405c5eeb0133ff57efbc768 15-Jan-2014 Winson Chung <winsonc@google.com> Tightening migration conditions. (Bug 11973614)

Change-Id: I6d7417b705227472d035f428cbec933cc6dbf2ce
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
234b506f4625b23172d437a2ba0b47d63cc2e3dd 11-Jan-2014 Winson Chung <winsonc@google.com> Merge "Adding migration Clings. (Bug 11973614)" into jb-ub-now-kermit
a694524047fda0a51dede4eefb1201a598d2d3a7 08-Jan-2014 Winson Chung <winsonc@google.com> Adding migration Clings. (Bug 11973614)

- Refactoring Launcher cling code out to LauncherClings.

Change-Id: Iff4f84f5b8bfeb69b1be0b4802022c3eb20b6f2c
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
8b5b05b7f3c8c5d705116c425bd5dbff2b75d56a 10-Jan-2014 Adam Cohen <adamcohen@google.com> Merge "New launcher2 icon migration algorithm." into jb-ub-now-kermit
d502404a44fb7c4ea739622d7f8bdd2a764d97a1 09-Jan-2014 Dan Sandler <dsandler@android.com> New launcher2 icon migration algorithm.

The user will be able to request "icon migration", which is
not a direct mapping of the old workspace, but rather
follows this heuristic for bringing the user's favorite
icons (by dint of their existence on the workspace) into
Launcher3:

Workspace shortcuts are placed in lexicographic order on the workspace
starting at screen 0 (leaving the bottom row of screen 0 empty to make
sure there's room to move things around). Folders are preserved and
their contents sorted. Duplicate icons (that is, shortcuts
with the same intent, pursuant to some cleanups) are removed.

Hotseat icons are migrated in their original place, unless their new
location is not accommodated by the hotseat (i.e. the L3 hotseat is
too small on this device), in which case they're treated like any
other shortcut and tossed into the workspace.

To test, turn on Launcher.ENABLE_DEBUG_INTENTS and then:

$ adb shell am broadcast -a com.android.launcher3.action.DELETE_DATABASE
$ adb shell am broadcast -a com.android.launcher3.action.MIGRATE_DATABASE

Bug: 12416411
Change-Id: Ia5c56f36c11455867ea20a39f70210f595020a87
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
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/LauncherModel.java
3ee4a474f2a1a76682b1b1ec261d6c68f3b7349d 07-Jan-2014 Winson Chung <winsonc@google.com> Accounting for new Package event extras when updating forward-locked apps. (Bug 11855584)

Change-Id: I983c82a74690a9031d18d456ff43dc8750081871
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
34c2e6cf7af328aba25c98158161dbad15ae986d 13-Dec-2013 Michael Jurka <mikejurka@google.com> Clean up imports
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
ae4409dea97d03f0f0a9195ab648188efa2b5cc1 26-Nov-2013 Adam Cohen <adamcohen@google.com> Don't load items which exceed the grid bounds

-> Unified location where this is managed (with other placement verification)
-> For now, not deleting out of bounds items, but can turn it on in one line

Change-Id: I5e1a5cd357d80475ae40af7b89a0cd372d5c241b
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
a40916d534da1b3e05c905b5beb931e0140a353f 11-Dec-2013 Dan Sandler <dsandler@android.com> Merge "Size hotseat data structure appropriately." into jb-ub-now-kermit
295ae18d0fa7c102c50cf95a2ea09e7f2e9b1539 10-Dec-2013 Dan Sandler <dsandler@android.com> Size hotseat data structure appropriately.

Bug: 12070213
Change-Id: I4df2f4bcc71bb4077c62cae91ed844ea8c43d421
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
7aff399974c756930070d82d7b2df88f125dacd6 10-Dec-2013 Derek Prothro <dprothro@google.com> Bind the workspace synchronously if started on -1 screen.

Previously, LoaderTask would be run asynchronously to bind
the workspace when started on -1 which would cause the user's
wallpaper to briefly flash when rotating the device on -1.

Bug: 11802691
Change-Id: I3a1a7a32fa28a81e041a283a93d808d5a8884133
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
33231f587e1a6f716af68e6198df774d2847a8e5 10-Dec-2013 Winson Chung <winsonc@google.com> Fixing crash in empty folders. (Bug 11627191)

Change-Id: I7a0e23e16a7546a9612d3406257e15be758d4c52

Signed-off-by: Winson Chung <winsonc@google.com>
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
72b520c956a4bf11f6dbbac7eb5e18001b7a11cb 10-Dec-2013 Winson Chung <winsonc@google.com> Revert "Fixing crash in empty folders. (Bug 11627191)"

This reverts commit 68b667848ef7c6f69b24a40d780e4088a5f2a1fb.

Change-Id: I51da495d6f8ef98b268c23cce02cce5ef1c7ea00
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
68b667848ef7c6f69b24a40d780e4088a5f2a1fb 10-Dec-2013 Winson Chung <winsonc@google.com> Fixing crash in empty folders. (Bug 11627191)

Change-Id: I7a0e23e16a7546a9612d3406257e15be758d4c52
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
b0ee08109ec89959d9bbd526c6e5f7ab96c8c3ea 03-Dec-2013 Adam Cohen <adamcohen@google.com> Add guards for restoreInstanceState (issue 11982812)

Change-Id: Ic4c632a956130ab28843085490dc1badb39b0e8c
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
d8dbb46468e0a8860468661a6edfb7969bfdf0a7 27-Nov-2013 Adam Cohen <adamcohen@google.com> Fix binding problem with no screens (issue 11768766)

Change-Id: I0a296892d4964913f38bf6d7bd2c2b17e1e0e8e0
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
f0b8dacf1516e0d901c71109c906dc15ef855fc5 19-Nov-2013 Dan Sandler <dsandler@android.com> Disable importing workspaces from Launcher2.

Bug: 9832552
Bug: 11761032
Change-Id: I4dfd16046e9d6d0d1d864dff4340b0ed13cc8b8f
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
9b9fb967b2305413520dc676d6d3c472b2b6b25e 16-Nov-2013 Winson Chung <winsonc@google.com> Updating LauncherModel filtering to use screen ids. (Bug 11685286)

- Fixes the issue with the current page not synchronously binding

Change-Id: I3dfa45cc1777f846c77f3e86059dfb715553e1a3
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
603d19a333d53f537591107751b327cfc7b856fc 15-Nov-2013 Winson Chung <winsonc@google.com> Merge "Additional logs to track down missing workspace screen. (Bug 11683562)" into jb-ub-now-jolly-elf
9f9f00bca673ed491e623235314a5c4c22ff28c1 15-Nov-2013 Winson Chung <winsonc@google.com> Additional logs to track down missing workspace screen. (Bug 11683562)

Change-Id: I4f6b3c3ae07e2069bad01940dfce6bdc9cdb0ae0
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
28b690ab8e21d28ae5ebdea32475d3f1952203a5 15-Nov-2013 Winson Chung <winsonc@google.com> Merge "Adding logs to track down missing workspace screen. (Bug 11683562)" into jb-ub-now-jolly-elf
a90303bb6fdad59e4a55855edba68c9902192599 15-Nov-2013 Winson Chung <winsonc@google.com> Adding logs to track down missing workspace screen. (Bug 11683562)

Change-Id: I12ef3331ab81004c75229d33afa0a8dd0fa8521c
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
fe9d96a39651de99819208e95c7ec7d432a402e0 14-Nov-2013 Winson Chung <winsonc@google.com> Require valid arrays when adding and binding new Apps. (Bug 11627095)

Change-Id: I8f2a4dc70bf376d804885f433ab20064823ebaac
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
b9ada65af30c61c5b35da9b9efac75ffe6c56fd7 08-Nov-2013 Adam Cohen <adamcohen@google.com> Uncommenting throw when item not contained in sBgItemsIdMap

-> Improving logging for issue 11580149

Change-Id: I10ce7c4b54a6435302d33bbeba4e8600f69d4920
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
df95eb12a4d288ffa143a0c3db60e7e98f3e03b9 16-Oct-2013 Winson Chung <winsonc@google.com> Ensuring disabled packages remove all components on the workspace. (Bug 11172454)
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
5801ef048adea9ca1a2e31839b73655d3d258b21 16-Oct-2013 Winson Chung <winsonc@google.com> Lazy load default app icon in LauncherModel. (Bug 11203738)

Change-Id: I397b532f247309de9ae5636b51f125f639966696
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
e523e70f75ff90ca5d613fb8398d37208e6cd32d 09-Oct-2013 Chris Wren <cwren@android.com> move the provider authority to a config class

Bug: 10816034
Change-Id: I68364081f039f94205b805a1510eb04e6f0f40a2
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
8741298d3c6a17015dabc4aacc261fd8eb59992d 04-Oct-2013 Winson Chung <winsonc@google.com> Fixing issue with numerous empty screens showing when adding a shortcut to a clear workspace. (Bug 10785413)

Change-Id: Ib9b5f76dc23e609b1774147a6cf760f185d9154b
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.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/LauncherModel.java
0f84a604563037ea65883b99d30e7ff802d986c2 30-Sep-2013 Winson Chung <winsonc@google.com> Ensuring that we always update the container when modifying an item in the db. (Bug 11008354)

Change-Id: I82748565c878a212bdef1bffbf21f2a3fea09314
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
780fe59a7af8b12fbdcd7f6841edaa7f2c2e019d 26-Sep-2013 Winson Chung <winsonc@google.com> Integrating some aosp fixes, ensuring that we update the install queue before returning to Launcher.

- Fixing stuck page in All Apps (Bug 9347818)
- Fixing shortcuts to uninstalled apps from being installed (Bug 10726510)
- Consolidating vibration feedback
- Ensuring that we trim names during comparison in AllApps list

Change-Id: Ieaae4d85851ce771283b4684a8a60306da28cb3b
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
eb1bb920507fe7f27b2ecece5b67749dac7850f3 26-Sep-2013 Michael Jurka <mikejurka@google.com> Recover when reading corrupted widget previews

Bug: 10785722
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
94d6768c65929efa21bb893fdef7f269d65da3c3 26-Sep-2013 Winson Chung <winsonc@google.com> Restoring INSTALL_SHORTCUT receiver (Bug. 10343529)

Change-Id: Icd6a97c1d7877241aa9c71bd80dfdbe6e44ca7ee
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
a0b7e86299ed9baf278e0c1ed73f4a4f6a057322 06-Sep-2013 Winson Chung <winsonc@google.com> Removing any overlapping items with the hotseat.

Change-Id: I9634939e6b1e8905d232d5a30608e2c56071d7bc
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
ede4129e77f8347e32c0da9c615bcff2cbc06fd8 20-Sep-2013 Winson Chung <winsonc@google.com> Removing old debugging logs. (Bug 107442854)

Change-Id: I56d6838af3cca710eab300d3e71ca1be90866cdd
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
c3919c0e994309982efc8779af57e2bc78dcac43 18-Sep-2013 Chris Wren <cwren@android.com> fixup missing providers on load.

Bug: 10779026
Change-Id: I0a9fc43258623c233c7ba89a9e9f1dee97800967
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
11a1a53651924b544513f1f6971a735b18d67539 13-Sep-2013 Winson Chung <winsonc@google.com> Fixing issue with folders not showing up.

- Add long click on empty spaces in hotseat to show overview mode
- Limit the height of all apps to the workspace + hotseat size
- Fixing some comments

Change-Id: Ie5a97a8b04e449385e2b3f6230079aebf8e15d5a
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
85f418d0f5607c66efef1673075a6d3486e5af83 06-Sep-2013 Bjorn Bringert <bringert@google.com> Allow Launcher class to hide activities from All Apps

There are a few questions for the launcher team
embedded in comments.

Bug: 10645210
Bug: 10551568
Change-Id: I67ad10da0d0f0f0885f8b14d329231c37aa6779b
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
26acafbe67565a9cc6aeb7d6c43a1c6d1cb9b73c 05-Sep-2013 Michael Jurka <mikejurka@google.com> Fix crash when setting wallpaper

Also clean up some unused code

Change-Id: Ibef8d3d594cc859a993640fd6ee578e9eeb633d1
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
c58497ee619416c4949b16eb43486c11618b69e5 04-Sep-2013 Winson Chung <winsonc@google.com> Initial changes to restore AllApps.

- Removes unused all apps code due to dynamic grid/spacing
- Attempts to use CellLayout instead of PagedViewCellLayout

Change-Id: I3c49bca9fc35dfeaf250591fd63bc7f36119968f
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
761c89d9ac5d103d826b57c05c629ca6addc51d8 05-Sep-2013 Winson Chung <winsonc@google.com> Merge "Fixing issue where shortcuts to standard android intents were getting pruned." into jb-ub-gel-agar
eadbfc564d84aaf1d800da3d0d6edf6312f89648 04-Sep-2013 Michael Jurka <mikejurka@google.com> Move wallpapers to external activity

Also renaming Launcher's ApplicationInfo to
AppInfo since ApplicationInfo is already a
framework class

Change-Id: Ib3e91d2ba4ace458d790a26c0ce850870fd3f146
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
68fd3c33daf7a6d4de287f8691306a55fa54706c 31-Aug-2013 Winson Chung <winsonc@google.com> Fixing issue where shortcuts to standard android intents were getting pruned.

Change-Id: Ie5b83f0240a72813e33d528b62f74e69c3807d55
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
ba9c37f41c41121a38d5a52232953d4b103e9471 30-Aug-2013 Winson Chung <winsonc@google.com> Fixing missing workspace screens. (Bug 10512285)

- Also skipping apps that are disabled (Regression, Bug 10444606)

Change-Id: I175d0188615cbd378166e14ac2f7afb6295fe886
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
933bae6958b5333a61577edd6b57b1a7c00743a0 29-Aug-2013 Winson Chung <winsonc@google.com> Additional Logging.

Change-Id: I37bfa8e1812d2f08c62f1181514aece854a22f2b
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
4caf298a2c9d861d69f5a47b747ada911b125b6d 21-Aug-2013 Adam Cohen <adamcohen@google.com> Logging to disk for more reliable logging

-> Re-adding basic distinction btw apps and shortcuts
-> Adding functionality to e-mail dump file, but not using

Change-Id: I2b635004ab082af79445158ab61f20aac62d2e2f
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
414300a79d140f8c2c8760d9adab750f69ffeafd 27-Aug-2013 Michael Jurka <mikejurka@google.com> Clean up unused code

Change-Id: Ie1e927aa0b5304f62cfffaab449abb3133870f80
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
9e6a0a20d40675ef98c7fdb8892cf34b90152f7a 27-Aug-2013 Winson Chung <winsonc@google.com> Clearing workspace screen data structures along with pages.

Change-Id: Ib6c4522cd0c0c06dd6fd327be3621a6de0778f9c
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.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/LauncherModel.java
61c69869b3947f1d242b07384bb4e9cd5b266915 22-Aug-2013 Winson Chung <winsonc@google.com> Fixing issue loading old db rows without proper spans causing crash due to occupied-cells check.

Change-Id: Iac4d245c27aa7e6afe7792cc2308a163af11d11f
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
8707e0fa1ca2c79be862c29cb919b7372f0b6a50 16-Aug-2013 Daniel Sandler <dsandler@android.com> Don't use a More Apps folder.

Instead, "extra" icons (which were not previously workspace
shortcuts) will be strewn across your workspace.

Change-Id: Ie8a7b533bb3c94bec3aa8fc7c7c8d3bea7eef485
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
d64d1763c590b1c954b759156683abf39ff22945 20-Aug-2013 Winson Chung <winsonc@google.com> Removing workspace screens on load and ensuring we don't bind on new apps until returning to Launcher.

- Updating print_db to print workspace screens

Change-Id: Id477f5a5649c0d3b7ab0cce5ed99ca0a519d7706
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.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/LauncherModel.java
76828c87ddb50ee3b423ef26f36387a2f03fd562 20-Aug-2013 Winson Chung <winsonc@google.com> Ensuring that we don't clobber workspace screens map when new apps are added.

- Using Log warnings instead of debugs
- Ensuring we don't save negative screen id's

Change-Id: I13276d007193c120ee0830abcdc6eb203f22a9da
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
e34930346b5eb468ad001d3b44698c11ef50e13a 13-Aug-2013 Winson Chung <winsonc@google.com> More logging.

Change-Id: I559fae32d80b6d7151ce519d81c662737fb23404
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
45fa06ed1e1098eb40ce811e75fa556a82c0245d 13-Aug-2013 Winson Chung <winsonc@google.com> Adding additional logging.

Change-Id: Ic4db1a3abe8b735f07e51a2d35ca92273b5f76c8
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
8481e32e5ba318d11c31317072a8a23aacd3d0b9 10-Aug-2013 Winson Chung <winsonc@google.com> Adding additional debugging code to track screen id updates.

Change-Id: I1749ab998a4c213b32f1160d5d21f21b2f30e389
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
1323b4856a2a822af77293cadeda9910a5d1ba0e 05-Aug-2013 Winson Chung <winsonc@google.com> Fixing regression in initializing install time.

Change-Id: Iedeae0eed7cc929ee7cb2be99bd3bdc58822ce6e
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
695ff6b6fada4e1037592d7c4961321e12890b7d 05-Aug-2013 Michael Jurka <mikejurka@google.com> Fix build error
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
f795d7b2adaaf06d449e33e5308569a3114eae02 02-Aug-2013 Winson Chung <winsonc@google.com> Merge "Cross referencing all shortcuts on workspace with the PackageManager to ensure we don't have zombie icons." into jb-ub-gel-agar
3dba179949b4c1ce6d91c8eb847a91d9f2c56282 02-Aug-2013 Winson Chung <winsonc@google.com> Merge "Removing old new-app animation code, and refactoring InstallShortcutReceiver to use new add/bind logic." into jb-ub-gel-agar
63d7870ea23502f10b74e9c91de9bd8f0bfc0507 31-Jul-2013 Winson Chung <winsonc@google.com> Merge "Verifying that new applications are added and fixing issue with new items getting wrong ids." into jb-ub-gel-agar
ee055715cfe5085aa7c1ff1f8a14348bd0cef604 30-Jul-2013 Winson Chung <winsonc@google.com> Cross referencing all shortcuts on workspace with the PackageManager to ensure we don't have zombie icons.

Change-Id: If9e22bbf1e3e0228e6ce9c76044ae7e015ebf54f
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
997a92348a6d6e061737399321393449c16cd4d8 25-Jul-2013 Winson Chung <winsonc@google.com> Removing old new-app animation code, and refactoring InstallShortcutReceiver to use new add/bind logic.

Change-Id: Ide27dbcf1d1b1631fcd33a6c54a51b31e125c2f4
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
c763c4e4d28c256d1368be3fc1c4526c8b9bd232 19-Jul-2013 Winson Chung <winsonc@google.com> Verifying that new applications are added and fixing issue with new items getting wrong ids.

- Fixing issue where the LauncherModel would be out of sync on first migration, and subsequent crashes

Change-Id: I6f58b09b615b28958c7f941e58ff9ae0ee3ba939
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
47b5031c703dbee491af9f49e6e08865452d57ef 25-Jul-2013 Daniel Sandler <dsandler@android.com> Fix NPE on failed loader queries.

Bug: 9901236
Change-Id: I3139174dd03ac3e79960f03729b7a39528804d76
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
1e2f465f46ded990ea30516cdb7f0fcf3280411f 09-Jul-2013 Michael Jurka <mikejurka@google.com> Implement ability to uninstall shortcuts from workspace

Change-Id: I14ca94ea719825c4de19ab85d67537155098d50c
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
156ab5b22e45b36a1c5edbe5accccf6aefcb4907 12-Jul-2013 Winson Chung <winsonc@google.com> Fixing issue where migration all apps folder couldn't be picked up.

- Ensuring that we add items to the non-primary home page
- Fixing issue with drop-target touch handling on tablets

Change-Id: Iea5a383dc735a8f6044a00982f05789f8328ab63
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
64359a53dc827797917a8d9a0697a91996789801 09-Jul-2013 Winson Chung <winsonc@google.com> Ensuring that the db reflects all package added/removed/updated broadcasts.

- Also ensuring that newly added pages are added before the empty page

Change-Id: I97a01f791c438aa5c5b1fd770d3536b449a871bc
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.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/LauncherModel.java
c916834ad0da535f08325bcd902a60070f2f7e53 26-Jun-2013 Winson Chung <winsonc@google.com> Using package broadcasts to key adding of shortcuts on the workspace.

Change-Id: Id4f83cb0351d21e3f7c029c7fe39efdacd2d6f17
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
566da1026c33a68157bf9caf93d2071ad2870f46 26-Jun-2013 Daniel Sandler <dsandler@android.com> Fix DEBUG_LOADERS workspace layout ASCII art.

(Broken in change If73c7f7c.)

Change-Id: If20ccc85db3b16326051a208e5fb518fb135d9c0
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
dcd297f05a866e07090d6e2af8fb4b15f28cb555 18-Jun-2013 Adam Cohen <adamcohen@google.com> Initial implementation of Shrink-wrap

Change-Id: If73c7f7ca19ca62ff43134f515584354afef8507
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.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/LauncherModel.java
e25af795647a19f1a0d60bc4baea5a996d215fdf 07-Jun-2013 Adam Cohen <adamcohen@google.com> HACK: temporary upgrade path from com.android.launcher2

-> load old provider
-> permute pages
-> strip all duplicates from workspace
-> add [allapps minus workspaceapps] to apps folder

Change-Id: Id319d532c6bf1d78370ecc736e95a9475d831de8
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
f0f4eda31841f41d892bf18847c1acdc45d2cd64 07-Jun-2013 Adam Cohen <adamcohen@google.com> Making folders scrollable

Change-Id: Id6c9ec62acc6d86dc627d20abad3e2d92010f539
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java
325dc23624160689e59fbac708cf6f222b20d025 06-Jun-2013 Daniel Sandler <dsandler@android.com> Launcher2 is now Launcher3.

Changes include
- moving from com.android.launcher{,2} to
com.android.launcher3
- removing wallpapers
- new temporary icon

Change-Id: I1eabd06059e94a8f3bdf6b620777bd1d2b7c212b
/packages/apps/Launcher3/src/com/android/launcher3/LauncherModel.java