History log of /packages/apps/Launcher3/src/com/android/launcher3/IconCache.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
09d70195d7398f467f7efc5e0ed320b066865c76 15-Jul-2015 Sunny Goyal <sunnygoyal@google.com> Using highres icons for backup

Bug: 22410445
Change-Id: I0fbc2d1217127556af806f12dbb5960712627ab7
/packages/apps/Launcher3/src/com/android/launcher3/IconCache.java
360bc25ab6ae22869b867350b87ee7e82f06389a 01-Jul-2015 Sunny Goyal <sunnygoyal@google.com> Using RGB_565 for low-res icons

> Using a non-transparent image with flat background for low-res icons
> Changing the scale factor from 8 to 5
> The overall size change is 1/50 instead of 1/64

Bug: 22204941
Change-Id: I6cda4b4b3450c23a7bb8218ebd2de2b09af9c414
/packages/apps/Launcher3/src/com/android/launcher3/IconCache.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/IconCache.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/IconCache.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/IconCache.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/IconCache.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/IconCache.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/IconCache.java
0b06875971fffd232ce2dea78cd29145edc5bab4 29-May-2015 Winson Chung <winsonc@google.com> Merge "Ensuring that each CacheEntry has a default title and content description." into ub-launcher3-burnaby
cdefc631f8b4b3e56ea3bd238d46d0bc9e28eabe 28-May-2015 Winson Chung <winsonc@google.com> Ensuring that each CacheEntry has a default title and content description.

- Also defer adding entry to cache until we know that it has correctly loaded

Bug: 21446070

Change-Id: Ia7aae65ecdc5d9d7741f75d3fb6e7b85daeafeff
/packages/apps/Launcher3/src/com/android/launcher3/IconCache.java
f0e1fd9938b26fa2fa7484613f6160e99c157a9d 26-May-2015 Sunny Goyal <sunnygoyal@google.com> Removing file IO used for checking configuration change

> This check was used for flushing the cache, but since the cache
is backed by a DB, this has no effect as same icons are loaded again

Change-Id: Ib7d8a8598c5d225d922e095c899dc11ad06f2b7a
/packages/apps/Launcher3/src/com/android/launcher3/IconCache.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/IconCache.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
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/IconCache.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/IconCache.java
9ff980833d392244586ead8c27bbbba114e11ebb 16-May-2015 Sunny Goyal <sunnygoyal@google.com> Avoiding blocking worker thread when adding icons to DB

Bug: 20945600
Change-Id: If12b21ac62c55c769838ce17d5421f147c396256
/packages/apps/Launcher3/src/com/android/launcher3/IconCache.java
0e08f166fafd5e2a0d32e27ea510516e3f762221 12-May-2015 Sunny Goyal <sunnygoyal@google.com> Using BubbleTextView for widget section headers

> Loading highres icons on the worker thread.

Change-Id: I5b68a86820aa4c132c156339e497354cf57f0fca
/packages/apps/Launcher3/src/com/android/launcher3/IconCache.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/IconCache.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/IconCache.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/IconCache.java
ece6c8b20b7bcfa0734c2fd4cd3fc93bc227699f 13-Apr-2015 Sunny Goyal <sunnygoyal@google.com> Wrong icon getting set for an app on secondary user during updates

Bug: 20163841
Change-Id: Ief91db56f7831f89e34c4540981a9d2db96b8bed
/packages/apps/Launcher3/src/com/android/launcher3/IconCache.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/IconCache.java
d405693ca222d3e7ccb8d40c690824cab7575cdd 06-Apr-2015 Sunny Goyal <sunnygoyal@google.com> Merge "Adding support for loading package icon in iconCache" into ub-launcher3-burnaby
d180cf7e16d8dbd7d33980078baac7d09709b6cd 06-Apr-2015 Sunny Goyal <sunnygoyal@google.com> Adding support for loading package icon in iconCache

> package icons need to be retrieved from IconCache for the new widget tray

Bug: 19897708
Change-Id: Iaafc5e16477aaa4e9a7c46b5abf8146cd1101ffd
/packages/apps/Launcher3/src/com/android/launcher3/IconCache.java
0c9a354c9732585620569bafaec0973977baf614 02-Apr-2015 Sunny Goyal <sunnygoyal@google.com> Adding a system status column in icon cache & invalidating items based on it

Bug: 20034430
Change-Id: Icd6c6426fc7ed26cd104bf22a9d2b0263cb0fa67
/packages/apps/Launcher3/src/com/android/launcher3/IconCache.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/IconCache.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/IconCache.java
8758ea050a9202e9733520898dda5d290644839e 18-Mar-2015 Sunny Goyal <sunnygoyal@google.com> Using MainThreadExecuter instead of View.post

Change-Id: Ie7ba88bd3bb412d998ecb51095cbaa74b3b39c10
/packages/apps/Launcher3/src/com/android/launcher3/IconCache.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/IconCache.java
b4cd42a1df69ec887d0c66e8fe6fe1f27ebbf9bc 16-Mar-2015 Sunny Goyal <sunnygoyal@google.com> Extracting out CacheKey to a separate class

Change-Id: Ifdd7cc79668b34298e3f788ee684080cecb86c3e
/packages/apps/Launcher3/src/com/android/launcher3/IconCache.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/IconCache.java
736f5af04cfb6f168c1f643874a7d3f82b5f51cc 16-Oct-2014 Sunny Goyal <sunnygoyal@google.com> Fixing some IconCache methods not thread safe

Bug: 17981568
Change-Id: I0d49604c2e38bc9017cba527d87e24e8b086f1da
/packages/apps/Launcher3/src/com/android/launcher3/IconCache.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/IconCache.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/IconCache.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/IconCache.java
876d11e31a0e146f29775063ce1f36a1b075fb93 15-Sep-2014 Sunny Goyal <sunnygoyal@google.com> Null check in flushInvalidIcons

> Icons in a CacheEntry can be null, for a restored app. No
need to flush such entries on DeviceProfileChange

Bug: 17489687
Change-Id: If6e76206ae5bd8201c9928257706224f2f34c232
/packages/apps/Launcher3/src/com/android/launcher3/IconCache.java
bbef77dbdf469c17f3be0817d0d09983a81b6123 10-Sep-2014 Sunny Goyal <sunnygoyal@google.com> Disabling debug logs

issue: 17327468
Change-Id: If0cd46e1309f58eed52e773ef15e3259df10c905
/packages/apps/Launcher3/src/com/android/launcher3/IconCache.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/IconCache.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/IconCache.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/IconCache.java
d6fe52636dcaa96ec1e10ce2daebe98b820c9739 21-Jul-2014 Kenny Guy <kennyguy@google.com> Change getBadgedLabelForUser to use CharSequence

Bug: 16401636
Change-Id: I7b72a6dd53fec1c0afe6ea33803af9e3c54e597e
/packages/apps/Launcher3/src/com/android/launcher3/IconCache.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/IconCache.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/IconCache.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/IconCache.java
efaf8a3dcde8158f50e5db36a7e81207b9978863 14-May-2014 Chris Wren <cwren@android.com> remove work around for bug 14891460.
Bug: 14895464

Change-Id: I1e923e4fca194cde19195d156e33e99fc9fe86b6
/packages/apps/Launcher3/src/com/android/launcher3/IconCache.java
075f9f5b66e5cee368750b87686f0f3156352c7f 13-May-2014 Chris Wren <cwren@android.com> work around bug in LauncherAppsCompat to find restored icons

Bug: 14895464
Change-Id: Iff4f1a9a2e8edf789231be7a1c20e277e18eb05c
/packages/apps/Launcher3/src/com/android/launcher3/IconCache.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/IconCache.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/IconCache.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/IconCache.java
6e1c0d34bb31cacc24c57c89ab01deaa8985814f 26-Oct-2013 Winson Chung <winsonc@google.com> Initial changes to support smaller landscape layouts.

Change-Id: If0abe2b82eb08bae4f1ce65b805362d548acb876
/packages/apps/Launcher3/src/com/android/launcher3/IconCache.java
b6d33df9092cacfda1768ffdb96a0770c861566d 15-Oct-2013 Adam Cohen <adamcohen@google.com> Fix concurrent modifcation exception (issue 11234805)

Change-Id: I21a7e968c249b0d8876fbffa68954ddc229b16df
/packages/apps/Launcher3/src/com/android/launcher3/IconCache.java
e5467dccdd26ff912afb43d626346e4506c9c062 15-Oct-2013 Winson Chung <winsonc@google.com> Flushing icons of the wrong size. (Bug 11203738)

Change-Id: I9468d2e798fcf9890970270041d341e7653432f1
/packages/apps/Launcher3/src/com/android/launcher3/IconCache.java
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/IconCache.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/IconCache.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/IconCache.java