History log of /packages/apps/Launcher3/src/com/android/launcher3/LauncherBackupHelper.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
3a30cfeb7c805bf99dba9002ac8b22ae66d84378 17-Jul-2015 Sunny Goyal <sunnygoyal@google.com> Adding minSpanX and minSpanY for all the launcher widgets

Bug: 22353460
Change-Id: Id4450dee42a83e4603dcd56e1c4dec2b0e405858
/packages/apps/Launcher3/src/com/android/launcher3/LauncherBackupHelper.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/LauncherBackupHelper.java
9637364c447cd8df12dd70d3c769d101b7565df7 05-Jun-2015 Sunny Goyal <sunnygoyal@google.com> Fixing crash in restore

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

Bug: 21275736
Change-Id: Ifdb3f9913fa2ee63a7e1566d0c5cfc6f72b4f41e
/packages/apps/Launcher3/src/com/android/launcher3/LauncherBackupHelper.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/LauncherBackupHelper.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/LauncherBackupHelper.java
73a22a58ceb53411d48df7bbbeb966168b92850c 29-Apr-2015 Sunny Goyal <sunnygoyal@google.com> Using utility method for serializing bitmap

Change-Id: I066f40cf867326b0a116351f00b19350b4c26912
/packages/apps/Launcher3/src/com/android/launcher3/LauncherBackupHelper.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/LauncherBackupHelper.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/LauncherBackupHelper.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/LauncherBackupHelper.java
4cad7538c9615303d291f5b52e960aaf0985828f 18-Mar-2015 Sunny Goyal <sunnygoyal@google.com> Cleaning up widget preview loader

> Removing unnecessary canvas cache
> Removing unnecessary new bitmap creation

Change-Id: Ic9f45c5a204ea4d32dbf93c21a6a7fd6baea4b51
/packages/apps/Launcher3/src/com/android/launcher3/LauncherBackupHelper.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/LauncherBackupHelper.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/LauncherBackupHelper.java
c0ee675f69c9c71c5cb51dd2b47bef3d709ea3cd 16-Jan-2015 Sunny Goyal <sunnygoyal@google.com> Avoiding writing the Metadata in the backup if nothing was changed in the backup

Change-Id: I4608ab5511b01f0d0018596d68e4341635649f73
/packages/apps/Launcher3/src/com/android/launcher3/LauncherBackupHelper.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/LauncherBackupHelper.java
30914ad14d16cfdc731b044ecd6d881fb0d44fd5 06-Dec-2014 Adam Cohen <adamcohen@google.com> Merge "Supporting custom widgets provided by launcher" into ub-now-master
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/LauncherBackupHelper.java
b02e611d15bd6fbb05814adaa804dd68181c556c 24-Nov-2014 Chris Wren <cwren@android.com> Don't try to create an app state instance during restore.

Added a static utility function to get the DeviceProfile instead.

Bug: 18504164
Change-Id: Ia510a84f1c195e58acf3bf4d1f6a42c739fdd413
/packages/apps/Launcher3/src/com/android/launcher3/LauncherBackupHelper.java
5fd733dbaeff3f07fff98f24947b2e1ab89eff7d 29-Oct-2014 Sunny Goyal <sunnygoyal@google.com> Failing restore, if we have an item outside screen bounds

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

> Adding DeviceProfile information in the backup
> Removing SharedPreference backup
> Adding helper methods to abort backup in the middle
> Comparing keys against the backup journal during restore
to avoid restoring corrupt/lost entries
> Old backups are still compatible, but lost keys verification
will be ignored in that case.

Bug: 17937935
Bug: 17951775
Bug: 17260941
Change-Id: Iad48646cfdd69abaff5c163b2055f3b8a9b39b19
/packages/apps/Launcher3/src/com/android/launcher3/LauncherBackupHelper.java
ef728d42927f127fe8d1fc075aef312892388901 22-Oct-2014 Sunny Goyal <sunnygoyal@google.com> Refactoring LauncherBackupHelper.java

> Moving a bunch of variables to Global level to make it easier
to maintain state.

Change-Id: I9ded313bd4f673f45c61556b8c66607dc78a5ae9
/packages/apps/Launcher3/src/com/android/launcher3/LauncherBackupHelper.java
42de82ff8d2aa182594709e63e608bbcd4610cfa 27-Sep-2014 Sunny Goyal <sunnygoyal@google.com> Resetting launcherProvider data if restore set was empty

Bug: 17332300
Change-Id: I6d2187cd1b1fa7a53e49b96eb109263f6b74b258
/packages/apps/Launcher3/src/com/android/launcher3/LauncherBackupHelper.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/LauncherBackupHelper.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/LauncherBackupHelper.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/LauncherBackupHelper.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/LauncherBackupHelper.java
58852b393bbfa0e2efd73186316cc3fa9592233a 23-May-2014 Chris Wren <cwren@android.com> Log the component name for restored icons.

Bug: 15192063
Change-Id: I7d8aa05600a2278c18f3ac34f87b87b3867bcd0c
/packages/apps/Launcher3/src/com/android/launcher3/LauncherBackupHelper.java
f8b1dfd293430f32ace939d2fa78f3059cb7bb2f 13-May-2014 Kenny Guy <kennyguy@google.com> Reset profile ids when backing up / restoring favorites.

Clear the profile id when packing an intent for backup.
Set the profile id to the current user when restoring
a favorite from a backup.

Change-Id: I9d976fbe16773b34a74e57d080ff797ba51f9b04
/packages/apps/Launcher3/src/com/android/launcher3/LauncherBackupHelper.java
43ea7ac8ade3d6b6b354fc2f4623c14ac4e69020 09-May-2014 Kenny Guy <kennyguy@google.com> Fix missing space in select statement in backup helper.

Also check when backing up favourites that they are
for current user.

Change-Id: Ic9d496c30612ee531fa84a22f852b3012df00b4f
/packages/apps/Launcher3/src/com/android/launcher3/LauncherBackupHelper.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/LauncherBackupHelper.java
5160e96698bec4ecd630c81f66e32eb0afb1eaef 13-Mar-2014 Chris Wren <cwren@android.com> also backup icon assets for shortcuts.

Bug: 13449249
Change-Id: I8c5a9e907f668e105c2786b80f0c8e62bd5f8344
/packages/apps/Launcher3/src/com/android/launcher3/LauncherBackupHelper.java
7114426665c21a11464147a8bb5e094b7949db42 27-Feb-2014 Chris Wren <cwren@android.com> skip backup if launcher is in a bad state

Bug: 13153542
Change-Id: I4312ebd200e8e652ef841f54301981c2a486b726
/packages/apps/Launcher3/src/com/android/launcher3/LauncherBackupHelper.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/LauncherBackupHelper.java
22dc65e741139936343bc792900b2e2e25378793 05-Feb-2014 Mac Duy Hai <haim@google.com> Fix deprecated EMPTY_ARRAY usage (nanoprotos).

Newer nanoproto compiler discourages the use of this.

Change-Id: Ic27a6d15f2892bb49df3100147c086a2bce20fd4
/packages/apps/Launcher3/src/com/android/launcher3/LauncherBackupHelper.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/LauncherBackupHelper.java
50c8f42568145b87b489e1ab65838f5fc434e5e6 15-Jan-2014 Chris Wren <cwren@android.com> rationalize launcher backup logging

enough data to debug dogfood issues
easy switch to move to quieter production mode
common switch across all three classes

Bug: 12545310
Change-Id: Icb4ad7174f20884c6993140149db590d66f6e006
/packages/apps/Launcher3/src/com/android/launcher3/LauncherBackupHelper.java
44f834133e106550a67ecf246e8bc9d4e1644c56 15-Jan-2014 Dan Sandler <dsandler@android.com> Merge "restore app favorites and screens" into jb-ub-now-kermit
65b6a603fa972a1bd62298558016eb4712e8c727 10-Jan-2014 Chris Wren <cwren@android.com> search for a valid journal

there are too many bytes, so we need to find the valid subset,
without stepping past the end!

Bug: 12489602
Change-Id: Ic9d7c804c199740ff50d0864f99632ae68619369
/packages/apps/Launcher3/src/com/android/launcher3/LauncherBackupHelper.java
5dee7aff5fa8774d37977d12df7ce8986752321d 20-Dec-2013 Chris Wren <cwren@android.com> restore app favorites and screens

version 0: restore assuming apps are already installed.

Bug: 10779035
Change-Id: I7f9aa418a7d3d5460a79a229c0fbc80305b5eb5c
/packages/apps/Launcher3/src/com/android/launcher3/LauncherBackupHelper.java
1ae293c647fa44f458625774e2ea119a61814e63 14-Jan-2014 Chris Wren <cwren@android.com> Merge "backup keys that might have slipped past" into jb-ub-now-kermit
4b171361ca4ef2d88cd9493c6d92bb390df45289 13-Jan-2014 Chris Wren <cwren@android.com> hide launcher restore behind a flag.

enable with 'adb shell settings put secure launcher_restore_enabled 1'
before signing into wiped device

Bug: 12532845
Change-Id: I1471c39dac2e6e1412f7720b1ba8edf46273c593
/packages/apps/Launcher3/src/com/android/launcher3/LauncherBackupHelper.java
5743aa9a86b7f559d9beb09c223dad8e3913c5c6 11-Jan-2014 Chris Wren <cwren@android.com> backup keys that might have slipped past

seems a little paranoid, but can't hurt.

Bug: 12455866
Change-Id: If9da4cc021ee4fac32c822a91fabda69bf3ff8aa
/packages/apps/Launcher3/src/com/android/launcher3/LauncherBackupHelper.java
33f4c2df28228f93d96e9b1d1bfad52d715d917b 09-Jan-2014 Chris Wren <cwren@android.com> first backup should save things from the beginning of time

Bug: 12455866
Change-Id: Ie9a97ed4110e7b1ded21f609179b5d6ee7f0ead5
/packages/apps/Launcher3/src/com/android/launcher3/LauncherBackupHelper.java
45297f851af715b2a0367459089a7a8f9c39b8fd 17-Oct-2013 Chris Wren <cwren@android.com> backup launcher preferences

Bug: 11267816
Change-Id: I12a32477164fe2205bc8cb02e0a23c561a7f9189
/packages/apps/Launcher3/src/com/android/launcher3/LauncherBackupHelper.java
4d89e2af1189ac0bbd37b4f7cf4f160603a2b6e4 09-Oct-2013 Chris Wren <cwren@android.com> clean up backup imports

Change-Id: Ic78e071eabb9931b2aaec34b57ab187bf3a1cfd6
/packages/apps/Launcher3/src/com/android/launcher3/LauncherBackupHelper.java
92aa423826b9e4e83d5d32e364930399785b3e84 04-Oct-2013 Chris Wren <cwren@android.com> move to backup helper architecture

add journals to DecoderRing, for backup debugging

Bug: 10778984
Change-Id: I38e93853c05f72468b3800c172b96effc70a63e0
/packages/apps/Launcher3/src/com/android/launcher3/LauncherBackupHelper.java