OSDN Git Service

android-x86/packages-apps-Launcher3.git
9 years agoam 7573123c: Merge "Fixing invisible search bar" into ub-launcher3-burnaby
Winson Chung [Fri, 7 Aug 2015 18:00:52 +0000 (18:00 +0000)]
am 7573123c: Merge "Fixing invisible search bar" into ub-launcher3-burnaby

* commit '7573123c0518f338895d59ada6ec4a8e170f5bf5':
  Fixing invisible search bar

9 years agoam a2a039b6: Using a reverse hashmap instead of indexOfValue in userManager
Sunny Goyal [Fri, 7 Aug 2015 18:00:51 +0000 (18:00 +0000)]
am a2a039b6: Using a reverse hashmap instead of indexOfValue in userManager

* commit 'a2a039b66f05a1164f954387b1c12a8fb4063e92':
  Using a reverse hashmap instead of indexOfValue in userManager

9 years agoam d1ea63f2: Removing some synthetic method creation
Sunny Goyal [Fri, 7 Aug 2015 18:00:50 +0000 (18:00 +0000)]
am d1ea63f2: Removing some synthetic method creation

* commit 'd1ea63f24a751521e6c35cc06be0e548e0b04f23':
  Removing some synthetic method creation

9 years agoam 7ca3250a: Merge "Creating a cache of users to avoid multiple calls to UserManager...
Sunny Goyal [Fri, 7 Aug 2015 18:00:50 +0000 (18:00 +0000)]
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

9 years agoresolved conflicts for merge of 0ad33066 to ub-launcher3-master
Winson [Fri, 7 Aug 2015 17:37:21 +0000 (10:37 -0700)]
resolved conflicts for merge of 0ad33066 to ub-launcher3-master

Change-Id: I5dbbaaf9fb03ed3003174154ea7d7dbae9048a70

9 years agoMerge "Preventing FolderEditText from stealing drag events." into ub-launcher3-master
Vadim Tryshev [Thu, 6 Aug 2015 20:40:12 +0000 (20:40 +0000)]
Merge "Preventing FolderEditText from stealing drag events." into ub-launcher3-master

9 years agoPreventing FolderEditText from stealing drag events.
Vadim Tryshev [Thu, 6 Aug 2015 20:11:31 +0000 (13:11 -0700)]
Preventing FolderEditText from stealing drag events.

Bug: 22028725
Change-Id: I3efe98f3d58e49322f867b8bab111c0b36d82699

9 years agoAdd KeyEvent handler to LauncherClings.
Jun Mukai [Thu, 6 Aug 2015 00:25:29 +0000 (17:25 -0700)]
Add KeyEvent handler to LauncherClings.

When the longpress clings such like welcome message appears,
the key events should be limited as follows:
- normal keys (generates printable glyphs) should be prevented,
  otherwise they come to the underlying searchbox.
- it should be dismissed on Menu keys, which goes to the overview
  mode.

Bug: 22982955
Change-Id: I7272b0809bfaa3c08ba77b01383cf54f19390d95

9 years agoMerge "Fixing invisible search bar" into ub-launcher3-burnaby
Winson Chung [Wed, 5 Aug 2015 21:19:04 +0000 (21:19 +0000)]
Merge "Fixing invisible search bar" into ub-launcher3-burnaby

9 years agoFixing invisible search bar
Winson [Wed, 5 Aug 2015 21:00:45 +0000 (14:00 -0700)]
Fixing invisible search bar

- We used to rely on the state transition to inflate the search
  widget after the permission to bind widgets was granted, which
  is fragile.  Now we try and inflate the search widget after
  user grants the permission if necessary.

Bug: 22515084
Bug: 22980143
Change-Id: Id111d263bc8a864e0fa652cfd0e07e66ec690fe7

9 years agoUsing a reverse hashmap instead of indexOfValue in userManager
Sunny Goyal [Wed, 5 Aug 2015 20:22:21 +0000 (13:22 -0700)]
Using a reverse hashmap instead of indexOfValue in userManager

Bug: 22980139
Change-Id: I87b633d194ff4e1529dd679dc02da573ed374207

9 years agoRemoving some synthetic method creation
Sunny Goyal [Wed, 5 Aug 2015 19:32:47 +0000 (12:32 -0700)]
Removing some synthetic method creation

Change-Id: Icb6b38f78aa56ad2c11e2ccc8005994ac4b86a91

9 years agoMerge "Creating a cache of users to avoid multiple calls to UserManager" into ub...
Sunny Goyal [Wed, 5 Aug 2015 19:22:56 +0000 (19:22 +0000)]
Merge "Creating a cache of users to avoid multiple calls to UserManager" into ub-launcher3-burnaby

9 years agoMerge "Refactoring search bar animations." into ub-launcher3-burnaby
Winson Chung [Wed, 5 Aug 2015 19:21:03 +0000 (19:21 +0000)]
Merge "Refactoring search bar animations." into ub-launcher3-burnaby

9 years agoRefactoring search bar animations.
Winson Chung [Mon, 3 Aug 2015 21:40:11 +0000 (14:40 -0700)]
Refactoring search bar animations.

- This refactoring ensures that LauncherStateTransition does not
  do its own animation on the QSB, and that all animations to the
  SearchDropTargetBar go through its own animators.

Bug: 22515084

Change-Id: Ia7d13c44d861eac7517076b52a9651a90911ed0a

9 years agoSuppress focusability of normal launcher descendants when a popup opens.
Jun Mukai [Wed, 5 Aug 2015 01:34:30 +0000 (18:34 -0700)]
Suppress focusability of normal launcher descendants when a popup opens.

Bug: 22563223
Change-Id: Iebee7c0c858a4d48524b3d5415e4f6d39861c49a

9 years agoam dc352761: Merge "Removing account manager calls" into ub-launcher3-burnaby
Sunny Goyal [Tue, 4 Aug 2015 23:29:01 +0000 (23:29 +0000)]
am dc352761: Merge "Removing account manager calls" into ub-launcher3-burnaby

* commit 'dc352761ae542087825227d773ec0b039f0aaaf0':
  Removing account manager calls

9 years agoam fb0f1095: Updating the default layouts for launcher3
Sunny Goyal [Tue, 4 Aug 2015 23:29:00 +0000 (23:29 +0000)]
am fb0f1095: Updating the default layouts for launcher3

* commit 'fb0f1095390d19d2cd6be127eb1aa3a83259b012':
  Updating the default layouts for launcher3

9 years agoMerge "Removing account manager calls" into ub-launcher3-burnaby
Sunny Goyal [Tue, 4 Aug 2015 23:24:43 +0000 (23:24 +0000)]
Merge "Removing account manager calls" into ub-launcher3-burnaby

9 years agoUpdating the default layouts for launcher3
Sunny Goyal [Tue, 4 Aug 2015 23:02:52 +0000 (16:02 -0700)]
Updating the default layouts for launcher3

Change-Id: I088c7195ae1985788e845900463d22973a0f61d4

9 years agoRemoving account manager calls
Sunny Goyal [Tue, 4 Aug 2015 22:09:58 +0000 (15:09 -0700)]
Removing account manager calls

Change-Id: Ic88139f6ef34046eb3b551d8a75d5f97e1fe3d52

9 years agoMerge "Enabling framework DND in N+." into ub-launcher3-master
Vadim Tryshev [Tue, 4 Aug 2015 21:30:42 +0000 (21:30 +0000)]
Merge "Enabling framework DND in N+." into ub-launcher3-master

9 years agoEnabling framework DND in N+.
Vadim Tryshev [Tue, 4 Aug 2015 01:37:17 +0000 (18:37 -0700)]
Enabling framework DND in N+.

Also, making the drag shadow opaque.

Bug: 22028725
Change-Id: I2aa61d3906cb9e9c33003bc6e485b9ff1980b9f4

9 years agoCreating a cache of users to avoid multiple calls to UserManager
Sunny Goyal [Tue, 4 Aug 2015 18:40:13 +0000 (11:40 -0700)]
Creating a cache of users to avoid multiple calls to UserManager

Bug: 22805101
Change-Id: I9cd270efd74fdd34a7eb738fc25797e6f1bf2487

9 years agoam 317698bd: Loading high resolution icons for first 3 items in a folder
Sunny Goyal [Tue, 4 Aug 2015 18:09:20 +0000 (18:09 +0000)]
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

9 years agoLoading high resolution icons for first 3 items in a folder
Sunny Goyal [Wed, 29 Jul 2015 18:45:41 +0000 (11:45 -0700)]
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

9 years agoresolved conflicts for merge of 3f7550c1 to ub-launcher3-master
Sunny Goyal [Tue, 4 Aug 2015 17:33:30 +0000 (10:33 -0700)]
resolved conflicts for merge of 3f7550c1 to ub-launcher3-master

Change-Id: I3bb155473d48832e496a8983f84c20e6e935fa41

9 years agoMerge "Calculating widget minSpans and spans statically/independent of orientation...
Sunny Goyal [Tue, 4 Aug 2015 17:27:48 +0000 (17:27 +0000)]
Merge "Calculating widget minSpans and spans statically/independent of orientation  > Filtering the widget list and excluding widgets which dont fit the grid  > setting minSpans for the widget item when binding." into ub-launcher3-burnaby

9 years agoresolved conflicts for merge of c451da70 to ub-launcher3-master
Sunny Goyal [Tue, 4 Aug 2015 17:26:12 +0000 (10:26 -0700)]
resolved conflicts for merge of c451da70 to ub-launcher3-master

Change-Id: I738fa16f82b3f3f1f6c63c5d1ce81347ade6467a

9 years agoMerge "Replacing exception with a log, when uninstalling an app leads to an illegal...
Sunny Goyal [Tue, 4 Aug 2015 02:32:57 +0000 (02:32 +0000)]
Merge "Replacing exception with a log, when uninstalling an app leads to an illegal state" into ub-launcher3-burnaby

9 years agoReplacing exception with a log, when uninstalling an app leads to an illegal state
Sunny Goyal [Tue, 4 Aug 2015 02:09:55 +0000 (19:09 -0700)]
Replacing exception with a log, when uninstalling an app leads to an illegal state

Bug: 22491055
Change-Id: Iaf5fe20b717102bdb0a5442dcc33efea30c50d47

9 years agoam 209a859d: Fix issue where scroll container shadow didn\'t fade out
Adam Cohen [Tue, 4 Aug 2015 02:22:42 +0000 (02:22 +0000)]
am 209a859d: Fix issue where scroll container shadow didn\'t fade out

* commit '209a859dedba0e8314ee102a760aad78a814ea94':
  Fix issue where scroll container shadow didn't fade out

9 years agoFix issue where scroll container shadow didn't fade out
Adam Cohen [Mon, 3 Aug 2015 23:59:10 +0000 (16:59 -0700)]
Fix issue where scroll container shadow didn't fade out

Change-Id: I3b0104dea04009819db0375c381b8ff445b76baa

9 years agoCalculating widget minSpans and spans statically/independent of orientation
Sunny Goyal [Mon, 3 Aug 2015 20:05:01 +0000 (13:05 -0700)]
Calculating widget minSpans and spans statically/independent of orientation
 > Filtering the widget list and excluding widgets which dont fit the grid
 > setting minSpans for the widget item when binding.

Bug: 22541314
Bug: 22559137
Change-Id: Ieda48b56c95bee0c7ec71dd691af7e23e2d43db6

9 years agoam 153b02a5: Merge "Remove handler for searchables changed broadcast." into ub-launch...
Winson Chung [Mon, 3 Aug 2015 22:20:10 +0000 (22:20 +0000)]
am 153b02a5: Merge "Remove handler for searchables changed broadcast." into ub-launcher3-burnaby

* commit '153b02a5e69c99b1154eea107da6b2fba4c6f3a3':
  Remove handler for searchables changed broadcast.

9 years agoMerge "Remove handler for searchables changed broadcast." into ub-launcher3-burnaby
Winson Chung [Mon, 3 Aug 2015 22:14:53 +0000 (22:14 +0000)]
Merge "Remove handler for searchables changed broadcast." into ub-launcher3-burnaby

9 years agoRemove handler for searchables changed broadcast.
Winson Chung [Mon, 3 Aug 2015 21:25:28 +0000 (14:25 -0700)]
Remove handler for searchables changed broadcast.

Bug: 22515084

9 years agoMerge "Several animation calls cleanup" into ub-launcher3-master
Sunny Goyal [Mon, 3 Aug 2015 19:23:16 +0000 (19:23 +0000)]
Merge "Several animation calls cleanup" into ub-launcher3-master

9 years agoMerge "Code to enable dragging to System UI shelf." into ub-launcher3-master
Vadim Tryshev [Mon, 3 Aug 2015 17:54:12 +0000 (17:54 +0000)]
Merge "Code to enable dragging to System UI shelf." into ub-launcher3-master

9 years agoam 6eeab68f: Fixing drag outline positions for folder over hotseat
Sunny Goyal [Mon, 3 Aug 2015 17:29:02 +0000 (17:29 +0000)]
am 6eeab68f: Fixing drag outline positions for folder over hotseat

* commit '6eeab68fd4a5ba51e32717b18c40e9bea8b38e97':
  Fixing drag outline positions for folder over hotseat

9 years agoFixing drag outline positions for folder over hotseat
Sunny Goyal [Thu, 16 Jul 2015 19:21:00 +0000 (12:21 -0700)]
Fixing drag outline positions for folder over hotseat

Bug: 22506247
Change-Id: Ia2508307554089205fd678987454e81cb811a59b
(cherry picked from commit 92bce4316422c69ee26e6ece204fbf1499753086)

9 years agoam 8f375d1e: Merge "Enabling logging for migration task" into ub-launcher3-burnaby
Sunny Goyal [Fri, 31 Jul 2015 22:06:40 +0000 (22:06 +0000)]
am 8f375d1e: Merge "Enabling logging for migration task" into ub-launcher3-burnaby

* commit '8f375d1e68cdc67ce693a7693a2175ef5cb3b4eb':
  Enabling logging for migration task

9 years agoMerge "Enabling logging for migration task" into ub-launcher3-burnaby
Sunny Goyal [Fri, 31 Jul 2015 22:01:31 +0000 (22:01 +0000)]
Merge "Enabling logging for migration task" into ub-launcher3-burnaby

9 years agoMerge "Removing boot receiver." into ub-launcher3-master
Sunny Goyal [Fri, 31 Jul 2015 22:01:16 +0000 (22:01 +0000)]
Merge "Removing boot receiver." into ub-launcher3-master

9 years agoam 519a40f7: am a547c451: Revert "Add proto flag "javanano_use_deprecated_package...
Adam Cohen [Fri, 31 Jul 2015 21:13:34 +0000 (21:13 +0000)]
am 519a40f7: am a547c451: Revert "Add proto flag "javanano_use_deprecated_package" to avoid build breakage"

* commit '519a40f731b747f1248a7443d4b5ab152572975a':
  Revert "Add proto flag "javanano_use_deprecated_package" to avoid build breakage"

9 years agoam a547c451: Revert "Add proto flag "javanano_use_deprecated_package" to avoid build...
Adam Cohen [Fri, 31 Jul 2015 21:10:14 +0000 (21:10 +0000)]
am a547c451: Revert "Add proto flag "javanano_use_deprecated_package" to avoid build breakage"

* commit 'a547c4516c1a2dfd87f3466fccffd5ca6c5cab8c':
  Revert "Add proto flag "javanano_use_deprecated_package" to avoid build breakage"

9 years agoRevert "Add proto flag "javanano_use_deprecated_package" to avoid build breakage"
Adam Cohen [Fri, 31 Jul 2015 21:06:10 +0000 (21:06 +0000)]
Revert "Add proto flag "javanano_use_deprecated_package" to avoid build breakage"

This reverts commit cb7674118c6fa6849e657fb8fea25c8fd93477cc.

Change-Id: I831abe3746be49fd164046655e8c5e059bae074f

9 years agoam e990d495: Merge "Fixing minor memory leak with name comparator." into ub-launcher3...
Winson Chung [Fri, 31 Jul 2015 20:12:14 +0000 (20:12 +0000)]
am e990d495: Merge "Fixing minor memory leak with name comparator." into ub-launcher3-burnaby

* commit 'e990d49534bb61606bcf3e61fa3c26e088d1b854':
  Fixing minor memory leak with name comparator.

9 years agoam ec70312d: Merge "Fixing issue with flash during overview transition." into ub...
Winson Chung [Fri, 31 Jul 2015 20:09:03 +0000 (20:09 +0000)]
am ec70312d: Merge "Fixing issue with flash during overview transition." into ub-launcher3-burnaby

* commit 'ec70312dea4083416d2d132ea8853455b0dec616':
  Fixing issue with flash during overview transition.

9 years agoMerge "Fixing minor memory leak with name comparator." into ub-launcher3-burnaby
Winson Chung [Fri, 31 Jul 2015 20:08:57 +0000 (20:08 +0000)]
Merge "Fixing minor memory leak with name comparator." into ub-launcher3-burnaby

9 years agoSeveral animation calls cleanup
Sunny Goyal [Tue, 7 Jul 2015 05:52:49 +0000 (22:52 -0700)]
Several animation calls cleanup

> Using View property instead of strings to avoid extra reflection step
> Using ViewPropertyAnimator when several properties are being animated

Change-Id: I41625643b38b70bac11e2c81d18058ec878d73bd

9 years agoMerge "Fixing issue with flash during overview transition." into ub-launcher3-burnaby
Winson Chung [Fri, 31 Jul 2015 20:04:08 +0000 (20:04 +0000)]
Merge "Fixing issue with flash during overview transition." into ub-launcher3-burnaby

9 years agoEnabling logging for migration task
Sunny Goyal [Fri, 31 Jul 2015 19:40:57 +0000 (12:40 -0700)]
Enabling logging for migration task

Bug: 22353460
Change-Id: I8a9a8ea0d5523acb6d2376920535a9f4f519525d

9 years agoFixing issue with flash during overview transition.
Winson Chung [Fri, 31 Jul 2015 19:39:57 +0000 (12:39 -0700)]
Fixing issue with flash during overview transition.

- This is due to the TransitionDrawable which does not actually
  start an animation until it is first drawn.  This workaround
  will just immediately reset the transition if it is not currently
  visible instead of animating (which is actually deferred until
  the next animation into overview mode).

Bug: 22414257
Change-Id: Id481303d0c99a20c1d16396c024ab50303f45576

9 years agoresolved conflicts for merge of e5bb705f to ub-launcher3-master
Sunny Goyal [Fri, 31 Jul 2015 19:53:08 +0000 (12:53 -0700)]
resolved conflicts for merge of e5bb705f to ub-launcher3-master

Change-Id: Id7ec170a3c4b1415b18ad46a18d7ea69595a8992

9 years agoHomescreen migration from a larger grid to a smaller grid.
Sunny Goyal [Mon, 27 Jul 2015 21:36:07 +0000 (14:36 -0700)]
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

9 years agoam e40e77b3: am cb767411: Add proto flag "javanano_use_deprecated_package" to avoid...
Adam Cohen [Fri, 31 Jul 2015 18:59:52 +0000 (18:59 +0000)]
am e40e77b3: am cb767411: Add proto flag "javanano_use_deprecated_package" to avoid build breakage

* commit 'e40e77b34f6521d3caaa8eb49b9e073258e91f56':
  Add proto flag "javanano_use_deprecated_package" to avoid build breakage

9 years agoam 42d88768: am 0ff535ea: (-s ours) Remove references to FloatMath, deprecated in M
Adam Cohen [Fri, 31 Jul 2015 18:59:51 +0000 (18:59 +0000)]
am 42d88768: am 0ff535ea: (-s ours) Remove references to FloatMath, deprecated in M

* commit '42d88768c528d0101b78426ba7bb82043576b15c':
  Remove references to FloatMath, deprecated in M

9 years agoam cb767411: Add proto flag "javanano_use_deprecated_package" to avoid build breakage
Adam Cohen [Fri, 31 Jul 2015 18:49:57 +0000 (18:49 +0000)]
am cb767411: Add proto flag "javanano_use_deprecated_package" to avoid build breakage

* commit 'cb7674118c6fa6849e657fb8fea25c8fd93477cc':
  Add proto flag "javanano_use_deprecated_package" to avoid build breakage

9 years agoam 0ff535ea: (-s ours) Remove references to FloatMath, deprecated in M
Adam Cohen [Fri, 31 Jul 2015 18:49:57 +0000 (18:49 +0000)]
am 0ff535ea: (-s ours) Remove references to FloatMath, deprecated in M

* commit '0ff535eabbdf27ec5a790adbc64f27f8c63e7399':
  Remove references to FloatMath, deprecated in M

9 years agoAdd proto flag "javanano_use_deprecated_package" to avoid build breakage
Adam Cohen [Fri, 31 Jul 2015 17:58:44 +0000 (10:58 -0700)]
Add proto flag "javanano_use_deprecated_package" to avoid build breakage

Change-Id: Iea8a7bc2bb385e066b3f972105224fee3eb7c894

9 years agoam 3ea54fdb: Merge "Fixing issue with accessibility falsely reporting app count when...
Winson Chung [Fri, 31 Jul 2015 04:10:14 +0000 (04:10 +0000)]
am 3ea54fdb: Merge "Fixing issue with accessibility falsely reporting app count when there are no search results." into ub-launcher3-burnaby

* commit '3ea54fdb490b973e2754cb438c7341e35df3b4cc':
  Fixing issue with accessibility falsely reporting app count when there are no search results.

9 years agoam 1014e7de: Merge "Prevent crash when flattening ComponentKey to string with invalid...
Winson Chung [Fri, 31 Jul 2015 04:10:12 +0000 (04:10 +0000)]
am 1014e7de: Merge "Prevent crash when flattening ComponentKey to string with invalid user." into ub-launcher3-burnaby

* commit '1014e7de0e6c62587b507342f8b477ea84fa635d':
  Prevent crash when flattening ComponentKey to string with invalid user.

9 years agoam 176196c0: Merge "Prevent from widget cell preview image from being cut off." into...
Hyunyoung Song [Fri, 31 Jul 2015 04:10:11 +0000 (04:10 +0000)]
am 176196c0: Merge "Prevent from widget cell preview image from being cut off." into ub-launcher3-burnaby

* commit '176196c0acae9872cf2d32446e558bd381a9bafa':
  Prevent from widget cell preview image from being cut off.

9 years agoMerge "Fixing issue with accessibility falsely reporting app count when there are...
Winson Chung [Thu, 30 Jul 2015 23:57:08 +0000 (23:57 +0000)]
Merge "Fixing issue with accessibility falsely reporting app count when there are no search results." into ub-launcher3-burnaby

9 years agoMerge "Prevent crash when flattening ComponentKey to string with invalid user." into...
Winson Chung [Thu, 30 Jul 2015 23:46:11 +0000 (23:46 +0000)]
Merge "Prevent crash when flattening ComponentKey to string with invalid user." into ub-launcher3-burnaby

9 years agoMerge "Prevent from widget cell preview image from being cut off." into ub-launcher3...
Hyunyoung Song [Thu, 30 Jul 2015 22:19:49 +0000 (22:19 +0000)]
Merge "Prevent from widget cell preview image from being cut off." into ub-launcher3-burnaby

9 years agoPrevent from widget cell preview image from being cut off.
Hyunyoung Song [Thu, 30 Jul 2015 22:04:59 +0000 (15:04 -0700)]
Prevent from widget cell preview image from being cut off.

b/22541466

>TL;DR;; when introducing mProfileBadgeMargin to correctly place
> work profile badge. Drawing origin of the preview image resulted
> to the left of (0, 0).

Change-Id: Ic52fc2e17c55c76f4f57aa833451ffa19bbbeb09

9 years agoCode to enable dragging to System UI shelf.
Vadim Tryshev [Wed, 8 Jul 2015 20:40:14 +0000 (13:40 -0700)]
Code to enable dragging to System UI shelf.

This CL doesn’t let the new code run, it’s under a compile-time flag,
and the behavior should be same as before.

The change introduces a concept of a DragDriver, which encapsulates
behavior of the existing DND (InternalDragDriver) or the framework-
driven DND (SystemDragDriver).

An instance of DragDriver gets created by DragController for the time
while a DND operation is in progress, and it takes care of translating
DND events for DragController.

Also did some cleanups, like removing meaningless fields etc.

Plans for future: keep working in Burnaby, and:
* Perhaps, better separate DragDriver from DragController
* Detect fling gesture for system DND
* Look at accessibility
* Polish animations and appearance
* Fix dragging from folders
* Support cancelling DND

Then, it will become possible to enable new dragging (based on Android
version).

Bug: 22028725
Change-Id: I41b40e9d512d83937f5b101ac8e3e8e7e807c269

9 years agoRemove references to FloatMath, deprecated in M
Adam Cohen [Thu, 30 Jul 2015 20:03:56 +0000 (13:03 -0700)]
Remove references to FloatMath, deprecated in M

-> Allows us to build against M SDK

issue 22822360

Change-Id: I1178eb6bafc348699c5be8c29858eb3dff093e11

9 years agoFixing issue with accessibility falsely reporting app count when there are no search...
Winson Chung [Thu, 30 Jul 2015 19:53:33 +0000 (12:53 -0700)]
Fixing issue with accessibility falsely reporting app count when there are no search results.

Bug: 22672783
Change-Id: Ie40acc592e59699eac2a4ff2045a7f8ba029d33a

9 years agoPrevent crash when flattening ComponentKey to string with invalid user.
Winson Chung [Thu, 30 Jul 2015 19:03:28 +0000 (12:03 -0700)]
Prevent crash when flattening ComponentKey to string with invalid user.

Bug: 22658306
Change-Id: I213d44e0bb22ac0617d46c80ab8cfec8f750a2cc

9 years agoam fd69e0b5: Merge "Adding rank column in backup" into ub-launcher3-burnaby
Sunny Goyal [Thu, 30 Jul 2015 18:05:08 +0000 (18:05 +0000)]
am fd69e0b5: Merge "Adding rank column in backup" into ub-launcher3-burnaby

* commit 'fd69e0b527b7b6c0646072325fa232313e46bbc5':
  Adding rank column in backup

9 years agoMerge "Adding rank column in backup" into ub-launcher3-burnaby
Sunny Goyal [Thu, 30 Jul 2015 18:01:49 +0000 (18:01 +0000)]
Merge "Adding rank column in backup" into ub-launcher3-burnaby

9 years agoam 946609f0: Merge "Fixing overview mode scale calculations." into ub-launcher3-burnaby
Winson Chung [Tue, 28 Jul 2015 22:54:51 +0000 (22:54 +0000)]
am 946609f0: Merge "Fixing overview mode scale calculations." into ub-launcher3-burnaby

* commit '946609f0ea70e1361dbe979af0e054d4c18b929b':
  Fixing overview mode scale calculations.

9 years agoMerge "Fixing overview mode scale calculations." into ub-launcher3-burnaby
Winson Chung [Tue, 28 Jul 2015 22:38:14 +0000 (22:38 +0000)]
Merge "Fixing overview mode scale calculations." into ub-launcher3-burnaby

9 years agoMerge "Specifies descendantFocusability to Folder view." into ub-launcher3-master
Jun Mukai [Tue, 28 Jul 2015 21:39:45 +0000 (21:39 +0000)]
Merge "Specifies descendantFocusability to Folder view." into ub-launcher3-master

9 years agoMerge "Changing the dogfood check to a static boolean to better handle proguard optim...
Sunny Goyal [Tue, 28 Jul 2015 19:37:00 +0000 (19:37 +0000)]
Merge "Changing the dogfood check to a static boolean to better handle proguard optimizations" into ub-launcher3-master

9 years agoSpecifies descendantFocusability to Folder view.
Jun Mukai [Tue, 28 Jul 2015 17:46:11 +0000 (10:46 -0700)]
Specifies descendantFocusability to Folder view.

When a folder is opened by mouse or touch, the Folder view itself
obtains the focus rather than the views inside of the folder
which causes the reported bug.

Bug: 22562679
Change-Id: Ia4ccc59ca27e560e470122d1b2c6c1eccb4caf9a

9 years agoam d30e845d: Overlay support lib RV resources in Android.mk
Hyunyoung Song [Tue, 28 Jul 2015 05:23:28 +0000 (05:23 +0000)]
am d30e845d: Overlay support lib RV resources in Android.mk

* commit 'd30e845d89a069a8c1ee687791030e8e981170b3':
  Overlay support lib RV resources in Android.mk

9 years agoFixing minor memory leak with name comparator.
Winson Chung [Tue, 28 Jul 2015 00:50:13 +0000 (17:50 -0700)]
Fixing minor memory leak with name comparator.

- WidgetsAndShortcutNameComparator was using the actual widget and shortcut resolve
  infos as the key to the label cache.  Neither of these classes override hashCode()
  and we were retrieving a new set of widgets and shortcuts whenever packages changed
  so we would end up creating more and more entries in the cache.  This isn't a huge
  leak, but could lead to problems if Launcher is used for long periods without being
  killed.
- Now, we use a ComponentKey as the key, so that we don't keep a reference to the
  widget/shortcut infos and also ensures that they should hash to the same labels.

Change-Id: I91347ee72363adbc2b075b67dba331e35ab1fe34

9 years agoOverlay support lib RV resources in Android.mk
Hyunyoung Song [Tue, 28 Jul 2015 01:24:45 +0000 (18:24 -0700)]
Overlay support lib RV resources in Android.mk

Note: after this change, ag/735298 can be reverted.

b/22719084

Change-Id: I83caf8832790b1df0a90a1339f6b24f481c51661

9 years agoam a9095e07: Remove NPE inside WidgetsListAdapter during monkey actor test b/22518383
Hyunyoung Song [Mon, 27 Jul 2015 22:35:02 +0000 (22:35 +0000)]
am a9095e07: Remove NPE inside WidgetsListAdapter during monkey actor test b/22518383

* commit 'a9095e07ddd2318ceb81a2794219e07dd112df72':
  Remove NPE inside WidgetsListAdapter during monkey actor test b/22518383

9 years agoRemove NPE inside WidgetsListAdapter during monkey actor test
Hyunyoung Song [Mon, 27 Jul 2015 20:35:33 +0000 (13:35 -0700)]
Remove NPE inside WidgetsListAdapter during monkey actor test
b/22518383

Change-Id: I1a683c49be93af150f7873390b723cee0d4ac5df

9 years agoam e54fa58d: Merge "Don\'t obfuscate Launcher3" into ub-launcher3-burnaby
Adam Cohen [Sat, 25 Jul 2015 00:36:17 +0000 (00:36 +0000)]
am e54fa58d: Merge "Don\'t obfuscate Launcher3" into ub-launcher3-burnaby

* commit 'e54fa58d10a3596a5ca683944a6b763f39171e46':
  Don't obfuscate Launcher3

9 years agoMerge "Don't obfuscate Launcher3" into ub-launcher3-burnaby
Adam Cohen [Sat, 25 Jul 2015 00:26:34 +0000 (00:26 +0000)]
Merge "Don't obfuscate Launcher3" into ub-launcher3-burnaby

9 years agoDon't obfuscate Launcher3
Adam Cohen [Fri, 24 Jul 2015 22:56:33 +0000 (15:56 -0700)]
Don't obfuscate Launcher3

Change-Id: I86ac745602c0d3c09842ed9553f7589c232f5d23

9 years agoAdding rank column in backup
Sunny Goyal [Mon, 20 Jul 2015 19:59:39 +0000 (12:59 -0700)]
Adding rank column in backup

> targetType was only added for M builds, so it can also be considered
  as v4 change. V3 which introduced minSpanX and minSpanY didn't
  contain targetType

Bug: 22417713
Change-Id: I5c353674f7e0c2b5b4ab46e574fdb347d82028cd

9 years agoam 7e0a4037: Merge "Shifting hotseat icons to aling with all-apps icon, if the hotsea...
Sunny Goyal [Tue, 21 Jul 2015 02:00:20 +0000 (02:00 +0000)]
am 7e0a4037: Merge "Shifting hotseat icons to aling with all-apps icon, if the hotseat size is different from the source device" into ub-launcher3-burnaby

* commit '7e0a403759c401d3b94f4576bca3aa8fb94fe542':
  Shifting hotseat icons to aling with all-apps icon, if the hotseat size is different from the source device

9 years agoMerge "Shifting hotseat icons to aling with all-apps icon, if the hotseat size is...
Sunny Goyal [Tue, 21 Jul 2015 01:50:37 +0000 (01:50 +0000)]
Merge "Shifting hotseat icons to aling with all-apps icon, if the hotseat size is different from the source device" into ub-launcher3-burnaby

9 years agoam 3ba922aa: Merge "Fixing widget restore" into ub-launcher3-burnaby
Sunny Goyal [Tue, 21 Jul 2015 00:53:52 +0000 (00:53 +0000)]
am 3ba922aa: Merge "Fixing widget restore" into ub-launcher3-burnaby

* commit '3ba922aa62b70bc0a3307e43980c4ff189486694':
  Fixing widget restore

9 years agoam 1b21faef: Merge "Resizing the bitmap before caching it in the DB" into ub-launcher...
Sunny Goyal [Tue, 21 Jul 2015 00:53:50 +0000 (00:53 +0000)]
am 1b21faef: Merge "Resizing the bitmap before caching it in the DB" into ub-launcher3-burnaby

* commit '1b21faef02f173d7a8b80fe01d34f57b5e28a4b4':
  Resizing the bitmap before caching it in the DB

9 years agoMerge "Fixing widget restore" into ub-launcher3-burnaby
Sunny Goyal [Tue, 21 Jul 2015 00:42:41 +0000 (00:42 +0000)]
Merge "Fixing widget restore" into ub-launcher3-burnaby

9 years agoMerge "Resizing the bitmap before caching it in the DB" into ub-launcher3-burnaby
Sunny Goyal [Tue, 21 Jul 2015 00:41:38 +0000 (00:41 +0000)]
Merge "Resizing the bitmap before caching it in the DB" into ub-launcher3-burnaby

9 years agoam 86179020: Enable Launcher3 as default Home app
bohu [Mon, 20 Jul 2015 22:35:16 +0000 (22:35 +0000)]
am 86179020: Enable Launcher3 as default Home app

* commit '86179020cc1a273d7e753d278fd844b90df456b0':
  Enable Launcher3 as default Home app

9 years agoEnable Launcher3 as default Home app
bohu [Thu, 21 May 2015 15:20:38 +0000 (08:20 -0700)]
Enable Launcher3 as default Home app

The default Home app launcher2 is deprecated and cannot launch Nexus 6
or any other high resolution devices in emulator. This CL enables launcher3
as the default Home app, since it can handle Nexus 6 and is well maintained.

Bug: 22609402
Change-Id: Iaba545fec218f79e40e0f72de5236ddadfabaa14

9 years agoResizing the bitmap before caching it in the DB
Sunny Goyal [Mon, 20 Jul 2015 21:32:48 +0000 (14:32 -0700)]
Resizing the bitmap before caching it in the DB

> The icon size in the backup can be different that what is
  required by the device. We should resize the icon, before
  caching it.

Bug: 22413328
Change-Id: Id77c53edf8ea5e95a2d32dbe22be553120279ebd

9 years agoShifting hotseat icons to aling with all-apps icon, if the hotseat
Sunny Goyal [Mon, 20 Jul 2015 21:23:43 +0000 (14:23 -0700)]
Shifting hotseat icons to aling with all-apps icon, if the hotseat
size is different from the source device

Bug: 19074056
Change-Id: I8d8517971a3cde0dc38f653d151daeba90fa38a0

9 years agoFixing widget restore
Sunny Goyal [Tue, 14 Jul 2015 02:54:53 +0000 (19:54 -0700)]
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

9 years agoam e3fe3f89: (-s ours) am 249a510a: (-s ours) [DO NOT MERGE] Adding minSpanX and...
Sunny Goyal [Fri, 17 Jul 2015 19:43:17 +0000 (19:43 +0000)]
am e3fe3f89: (-s ours) am 249a510a: (-s ours) [DO NOT MERGE] Adding minSpanX and minSpanY for all the launcher widgets

* commit 'e3fe3f89ee956e8d7995c569948cb70765ec19b8':
  [DO NOT MERGE] Adding minSpanX and minSpanY for all the launcher widgets