Commit Graph

104 Commits

Author SHA1 Message Date
Adam Cohen c2d6e897db First pass of the Launcher Overlay interface / impl
-> Added simple reference launcher extension
-> Make launcher able to handle a null qsb

Change-Id: Ib1575243cac800a335e95bbf00cdc394bb4741c3
2014-10-22 17:40:39 -07:00
Kenny Guy d794a3f465 Update calls now we have an L API version.
Bug: 17543647
Change-Id: I92c652a4ced5a5e783b24e42f9da4d9dfe1118ba
2014-09-18 13:07:49 +01:00
Sunny Goyal 9b8da88eba Fixing install shortcut receiver in launcher3
Change-Id: If22da17630be71fb22277b7a911aae57322b2ecc
2014-09-05 04:42:18 -07:00
Sunny Goyal 0fc1be164e 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
2014-08-12 16:00:03 -07:00
Sunny Goyal 0fe505bf82 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
2014-08-12 14:13:18 -07:00
Adam Cohen a388a14634 Make com.android.launcher3.action.FIRST_LOAD_COMPLETE protectable on both sides
Change-Id: I7ed482e3f6a85c9d58bfcc999b90e0ecda8db217
(cherry picked from commit b531b6d4965576d36547152f7858ec2ac389f6eb)
2014-08-08 04:30:13 +00:00
Adam Cohen 3ed316a71d Adding broadcast to indicate first launcher load
-> fixing small thing from previous CL

issue 16191557

Change-Id: I015859f6028066e7c8664436f291ed226a539e29
2014-07-23 20:40:09 -07:00
Sunny Goyal 651077bdd6 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
2014-07-21 10:34:21 -07:00
Sander Alewijnse e8a30577f7 Merge "Revert "Add uses feature managed profiles to Launcher3 manifest."" into ub-now-master 2014-07-17 00:10:10 +00:00
Sunny Goyal f599ccfe96 Showing icons for apps on sdcard which are not available during system boot.
issue 15852084

Change-Id: I1e6f59a413581ae3af4219ab32cb5af3d726d382
2014-07-16 18:59:50 +00:00
Sander Alewijnse 97c492ce4d Revert "Add uses feature managed profiles to Launcher3 manifest."
This reverts commit 4224758a54.

Change-Id: I65ddcc2cac41120e0feb0020c4709cdc5a862f10
2014-07-16 16:39:10 +00:00
Sander Alewijnse 4224758a54 Add uses feature managed profiles to Launcher3 manifest.
Change-Id: If2143424f0d89cc1ed4e504d37106ea52e067e1f
2014-07-15 10:24:29 +01:00
Selim Cinek ffed65886e Changed behaviour of the wallpaper picker.
When opening the picker, the currently chosen wallpaper is
shown in the background.
In this change also the nullpointer was fixed when deleting
the currently selected wallpaper and setting it, because we
revert to the old wallpaper in that case.
When going into the same live wallpaper than the currently
selected we are going back to home if the user sets it or
goes back now, in order for the user not to loose state.
The real fix for this will be done later when the following
bug will be fixed: b/13241760

Bug: 12063773
Bug: 13219612
Change-Id: I7c6abb25755eca99c3255278e0884d1ff4749b55
2014-03-03 18:09:06 +01:00
Winson Chung c66109caf6 Updating Read/Write settings permission protectionLevels. (Bug 11372484) 2014-02-26 11:50:46 -08:00
Dan Sandler d502404a44 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
2014-01-10 15:49:51 -05:00
Michael Jurka 7ad868b86e Create separate project for Wallpaper Picker
Change-Id: Id9e855780b9fb68c63eb6e9f6c19bcbce28a6fd5
2013-12-13 12:50:32 +01:00
Michael Jurka a6a0547fa6 Update suggested wallpaper dimensions in onResume
If another launcher runs in between, it might
change the suggested dimensions. This fixes that
case.

Bug: 11667475
2013-12-03 15:33:12 -08:00
Winson Chung 94d6768c65 Restoring INSTALL_SHORTCUT receiver (Bug. 10343529)
Change-Id: Icd6a97c1d7877241aa9c71bd80dfdbe6e44ca7ee
2013-09-25 17:59:45 -07:00
John Spurlock 2c38e70acd Fix launcher3 standalone build.
Change-Id: Ibfe14c5960211916222fc49389b8776be6bf768b
2013-09-18 10:51:31 -04:00
Michael Jurka adc574ccb1 Update to using new crop intent
Also, unify WallpaperCropActivity so it's
identical to the system default version (mainly
removing Launcher dependencies)

Change-Id: I1ebc390bce23de62d76daced6f8cb44d57e4ac0c
2013-09-13 18:16:54 +02:00
Michael Jurka f56914b2e5 Support new crop wallpaper intent 2013-09-09 16:23:55 +02:00
Michael Jurka 2d8de5845b Create a separate wallpaper crop activity
Change-Id: Ifb0a7dcb5a6e9ddd4f4bbccc793d9b4db1256cf2
2013-09-05 20:37:56 +02:00
Daniel Sandler 8b0405888f Remove obsolete widget adder shortcut.
Bug: 10441366
Change-Id: Ie9d70010ecdee3332595be6296fef604e3d676a8
2013-08-23 00:53:59 -04:00
Daniel Sandler 826420b194 Remove memory-debug-related launcher icons & functionality.
Bug: 10441366
Change-Id: I3ddb95839bcd5c07db7e76ce1a28323b499ea30d
2013-08-23 00:53:59 -04:00
Michael Jurka c8f83f46b6 Oops, fix build breakage caused by missing files.
Also, remove preview images for wallpaper pickers.
2013-08-21 13:50:43 +02:00
Daniel Sandler 6241609bd6 Remove built-in wallpaper picker.
Note that we don't yet have a solution for the user's
initial wallpaper. Bother!

Bug: 9626042
Change-Id: I07ab09a3d10434e444dc27051034d387e692e469
2013-08-21 13:36:18 +02:00
Michael Jurka 104c456776 Initial implementation of new wallpaper picker.
Change-Id: Ib4c5ac4989b4959fa62465d9cde3cac662e24949
2013-08-21 13:18:29 +02:00
Daniel Sandler ff02d49e46 Initial implementation: Broadcasts on app launch.
Look for com.android.launcher3.action.LAUNCH to be sent when
an icon is clicked in Launcher. (Restricted to
com.android.launcher3.permission.RECEIVE_LAUNCH_BROADCASTS
which is a signature permission right now.

This is specifically tracking apps launched via shortcut
icon; any other method of launching apps (notifications,
recents, internal navigation, etc.) is outside of Launcher's
purview and hence not broadcast.

The broadcast currently includes, in the "intent" extra, the
Uri flattening of the specific shortcut clicked.

The file /data/data/<pkg>/files/launches.log contains a
binary log of all such launches, including additional info
like screen# that should probably be in the broadcast too.

This info is summarized in .../stats.log, which encodes a
simple histogram of app launches since basically forever.
This should probably be done over a sliding window, which
will require more processing on startup.

Bug: 10031590
Change-Id: Ifc5921d5dc20701c67678cbfdc89b03cacd62028
2013-08-06 00:18:38 -04:00
Adam Cohen 39a0604255 Adding switch to toggle Memory Overlay
-> The overlay causes performance regressions so it's hard to evaluate
   performance with it on.
-> Also, the WeightWatcher is still running regardless, so you can
   always check it
-> Saved as a shared pref

Change-Id: Iad5ccbeca2c2b4e0ec86294879f3eb09caa594e9
2013-07-19 14:32:09 -07:00
Daniel Sandler 8540bb8d72 Include all processes in hprof dumps.
The emailed file is now a zipfile containing one .ahprof
file for each process known to MemoryTracker.

Change-Id: If4a73df9afd38756cc01ff37b2d249346e5f7e9f
2013-06-26 14:30:19 -04:00
Daniel Sandler b9eb2865af Memory tracking is now handled by a service.
Multiple processes may be tracked and viewed simultaneously.

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

Change-Id: I20eebaa8cc8faf78b46af2a35d71ee538207f02b
2013-06-21 01:16:27 -04:00
Daniel Sandler a127b7ad15 New icon to dump heap information and share it.
Alternatively,
  $ adb shell am start -n <pkg>/com.android.launcher3.MemoryDumpActivity

Change-Id: I8c615ec3abffaf6ad693c93bdf569550d8f97298
2013-06-17 15:29:22 -04:00
Adam Cohen e25af79564 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
2013-06-06 23:09:26 -07:00
Adam Cohen b5fe60c8a5 Add a dummy activity which we can catch on-click in launcher to open allapps/widgets
Change-Id: Idc718a9e03e7358f972c59fcfc3bf2eaf75e56ee
2013-06-06 22:04:27 -07:00
Daniel Sandler 325dc23624 Launcher2 is now Launcher3.
Changes include
  - moving from com.android.launcher{,2} to
    com.android.launcher3
  - removing wallpapers
  - new temporary icon

Change-Id: I1eabd06059e94a8f3bdf6b620777bd1d2b7c212b
2013-06-05 23:30:20 -04:00
Michael Jurka 05713af127 Cache widget previews in a DB
- Smoother All Apps scroll performance

Change-Id: Id2d31a45e71c63d05a46f580667ad94403730616
2013-02-04 20:32:49 +01:00
Michael Jurka 9df38dff2d Updating wallpaper picker icon to higher res
Bug: 7400295
Change-Id: I2c7625ee1ce09ded57d884c229f155ebcf39be07
2012-11-13 15:55:50 -08:00
Scott Main 4cd7f28105 remove old fashioned dream, no longer supported
Change-Id: I87370e8dc7f3159182dac9f650223ce010d6286b
2012-10-18 12:10:03 -07:00
Dianne Hackborn db5dd02ad9 Fix issue #7255954: API Review: rename Dream to DreamService
Change-Id: I4a8fcea6856ea021b22d6e1f317c43d081c7b923
2012-09-28 17:58:10 -07:00
Fabrice Di Meglio e19bbca93e Merge "7225161 Launcher needs to add android:supportsRtl="true" in his AndroidManifest" into jb-mr1-dev 2012-09-25 13:47:37 -07:00
Fabrice Di Meglio 369dd0c3e6 7225161 Launcher needs to add android:supportsRtl="true" in his AndroidManifest
- add basic RTL support in the AndroidManifest so that Widgets will be able
to support RTL too
- force LTR layout direction to AppsCustomizeTabHost so that we dont have to
deal with layout mirroring yet

(do not need to force also LTR layout direction to Wallpaper activity and fragment
as another CL is removing the ActionBar on them)

Change-Id: I66623a3fcec0d7adef62b0ab8c8b2170e09f1b1b
2012-09-25 12:55:37 -07:00
Michael Jurka aee3a0ef78 Remove action bar from wallpaper picker
Bug: 5295678

Change-Id: I50bb4bee3d9d54f28ef4a46ed9754701045d38c7
2012-09-25 11:36:39 -07:00
Dianne Hackborn 804503c75a Add user initialing receiver to select a unique wallpaper.
Change-Id: I14652d8108c2e19db821ab5526b6e630db8fe998
2012-09-16 00:00:27 -07:00
Nick Kralevich 33650301a2 Set permission [UN]INSTALL_SHORTCUT protectionLevel to 'dangerous'
Bug: 5543177
Change-Id: I8b4f1899bc898ae95f9bca004e6fa959ee078903
2012-08-07 10:21:13 -07:00
Nick Kralevich ebe6559794 Explicitly export content providers
In a future version of Android, the default value for
<provider android:exported> will change from true to false.
Explicitly set android:exported="true"

Bug: 3306452
Change-Id: I8fcce3af6949eb245ea97b6e64c191f465f0ae5f
2012-07-28 16:11:07 -07:00
Michael Jurka 14c5a2cdb0 Removing unnecessary config parameter for hw accel
Change-Id: Ibbbca9fb93319400332ba27f9cae62b1c0cc4313
2012-06-28 13:45:33 -07:00
Jeff Brown fa31ac2102 Merge "Revert "Lock launcher to portrait on devices less than sw720dp"" into jb-dev 2012-06-05 19:11:27 -07:00
Jeff Brown a60166386d Revert "Lock launcher to portrait on devices less than sw720dp"
This reverts commit 51726adc25
Bug: 6580571
2012-06-04 14:15:42 -07:00
Michael Jurka a4fe21285b Merge "Skip custom Play cling if no accounts are set up" into jb-dev 2012-05-22 23:39:29 -07:00
Michael Jurka 51726adc25 Lock launcher to portrait on devices less than sw720dp
Bug: 6523269
Change-Id: Ic75040257442a7c8486030702961634b54694f44
2012-05-22 22:13:29 -07:00