Commit Graph

78507 Commits

Author SHA1 Message Date
Adam Cohen 0284c102bc Add proto flag "javanano_use_deprecated_package" to avoid build breakage
Change-Id: Iea8a7bc2bb385e066b3f972105224fee3eb7c894
(cherry picked from commit cb7674118c)
2015-07-31 18:45:21 +00:00
Adam Cohen cb7674118c Add proto flag "javanano_use_deprecated_package" to avoid build breakage
Change-Id: Iea8a7bc2bb385e066b3f972105224fee3eb7c894
2015-07-31 11:15:49 -07:00
Winson Chung 452d6ba3bd 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.
2015-07-31 04:10:14 +00:00
Winson Chung e940248d6b 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.
2015-07-31 04:10:12 +00:00
Hyunyoung Song 47ced24711 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.
2015-07-31 04:10:11 +00:00
Winson Chung 3ea54fdb49 Merge "Fixing issue with accessibility falsely reporting app count when there are no search results." into ub-launcher3-burnaby 2015-07-30 23:57:08 +00:00
Winson Chung 1014e7de0e Merge "Prevent crash when flattening ComponentKey to string with invalid user." into ub-launcher3-burnaby 2015-07-30 23:46:11 +00:00
Hyunyoung Song 176196c0ac Merge "Prevent from widget cell preview image from being cut off." into ub-launcher3-burnaby 2015-07-30 22:19:49 +00:00
Hyunyoung Song b9f932e089 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
2015-07-30 15:04:59 -07:00
Vadim Tryshev d6c8e7eeb1 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
2015-07-30 13:06:25 -07:00
Adam Cohen 0ff535eabb Remove references to FloatMath, deprecated in M
-> Allows us to build against M SDK

issue 22822360

Change-Id: I1178eb6bafc348699c5be8c29858eb3dff093e11
2015-07-30 13:04:54 -07:00
Winson Chung deaf4d169b Fixing issue with accessibility falsely reporting app count when there are no search results.
Bug: 22672783
Change-Id: Ie40acc592e59699eac2a4ff2045a7f8ba029d33a
2015-07-30 12:54:27 -07:00
Winson Chung 70d5a07c5d Prevent crash when flattening ComponentKey to string with invalid user.
Bug: 22658306
Change-Id: I213d44e0bb22ac0617d46c80ab8cfec8f750a2cc
2015-07-30 12:05:41 -07:00
Sunny Goyal 168a3d1360 am fd69e0b5: Merge "Adding rank column in backup" into ub-launcher3-burnaby
* commit 'fd69e0b527b7b6c0646072325fa232313e46bbc5':
  Adding rank column in backup
2015-07-30 18:05:08 +00:00
Sunny Goyal fd69e0b527 Merge "Adding rank column in backup" into ub-launcher3-burnaby 2015-07-30 18:01:49 +00:00
Winson Chung 687ae8483d am 946609f0: Merge "Fixing overview mode scale calculations." into ub-launcher3-burnaby
* commit '946609f0ea70e1361dbe979af0e054d4c18b929b':
  Fixing overview mode scale calculations.
2015-07-28 22:54:51 +00:00
Winson Chung 946609f0ea Merge "Fixing overview mode scale calculations." into ub-launcher3-burnaby 2015-07-28 22:38:14 +00:00
Jun Mukai 40e89c1a43 Merge "Specifies descendantFocusability to Folder view." into ub-launcher3-master 2015-07-28 21:39:45 +00:00
Adam Cohen 6e9081f26e am 1584da52: am edd51ad3: am c0d915de: am e40f5ce4: am 5845d3db: Make Launcher3 a privileged module so it gets the BIND_APPWIDGET permission
* commit '1584da525219fc4327f2ad0ed3fa3ce1471c1e6a':
  Make Launcher3 a privileged module so it gets the BIND_APPWIDGET permission
2015-07-28 20:18:42 +00:00
Hyunyoung Song 052d774271 am bc4ddd02: am 378529d1: am 5bd11fd6: am 0e3c5e87: am 13ef17a3: (-s ours) merged ub-launcher3-burnaby, and resolved conflicts
* commit 'bc4ddd02f2eedb2cc12db9ea04d3853d76278d28':
2015-07-28 20:18:41 +00:00
Hyunyoung Song 96f2023405 am 102c95db: am cc619e2e: am 6ce4ac13: am e6127759: resolved conflicts for merge of 13ef17a3 to mnc-dr-dev b/22609402 Change-Id: I140cf972d57e14737a6f91c0b4a8ec6c7ff1af2b
* commit '102c95dbff6d166292903e40dad7b364e59ef1c9':
  resolved conflicts for merge of 13ef17a3 to mnc-dr-dev b/22609402 Change-Id: I140cf972d57e14737a6f91c0b4a8ec6c7ff1af2b
2015-07-28 20:18:39 +00:00
Hyunyoung Song db124b5d61 am 3335d505: am 94867800: am 680c92fe: resolved conflicts for merge of 13ef17a3 to cw-e-dev b/22609402 Change-Id: I3753db1f922923a6b462fa75a5c0d826e0413f95
* commit '3335d50582e7f36396bf0299f88742c801aebe2c':
2015-07-28 20:18:38 +00:00
Hyunyoung Song d598ec32d2 am 147d1e85: am 0c0d5463: resolved conflicts for merge of 13ef17a3 to mnc-ub-dev b/22609402
* commit '147d1e85d3f62fbaa04c0250ab4318660f020aca':
2015-07-28 20:18:38 +00:00
Adam Cohen 1584da5252 am edd51ad3: am c0d915de: am e40f5ce4: am 5845d3db: Make Launcher3 a privileged module so it gets the BIND_APPWIDGET permission
* commit 'edd51ad30741098e2110e3d0533085b02cbe752c':
  Make Launcher3 a privileged module so it gets the BIND_APPWIDGET permission
2015-07-28 19:58:42 +00:00
Hyunyoung Song bc4ddd02f2 am 378529d1: am 5bd11fd6: am 0e3c5e87: am 13ef17a3: (-s ours) merged ub-launcher3-burnaby, and resolved conflicts
* commit '378529d1149d24a640fd98581fdf06926b8a746b':
2015-07-28 19:58:41 +00:00
Hyunyoung Song 102c95dbff am cc619e2e: am 6ce4ac13: am e6127759: resolved conflicts for merge of 13ef17a3 to mnc-dr-dev b/22609402 Change-Id: I140cf972d57e14737a6f91c0b4a8ec6c7ff1af2b
* commit 'cc619e2eca624d293e0e7f65f82305a5d925dbf7':
  resolved conflicts for merge of 13ef17a3 to mnc-dr-dev b/22609402 Change-Id: I140cf972d57e14737a6f91c0b4a8ec6c7ff1af2b
2015-07-28 19:58:39 +00:00
Hyunyoung Song 3335d50582 am 94867800: am 680c92fe: resolved conflicts for merge of 13ef17a3 to cw-e-dev b/22609402 Change-Id: I3753db1f922923a6b462fa75a5c0d826e0413f95
* commit '9486780029868bc04e2bd2f2c2ed34283fa2d25d':
2015-07-28 19:58:37 +00:00
Adam Cohen edd51ad307 am c0d915de: am e40f5ce4: am 5845d3db: Make Launcher3 a privileged module so it gets the BIND_APPWIDGET permission
* commit 'c0d915deae318c4c30a55e001b01619203ad677d':
  Make Launcher3 a privileged module so it gets the BIND_APPWIDGET permission
2015-07-28 19:38:19 +00:00
Hyunyoung Song 378529d114 am 5bd11fd6: am 0e3c5e87: am 13ef17a3: (-s ours) merged ub-launcher3-burnaby, and resolved conflicts
* commit '5bd11fd60e06807a6709e1aaf16ce3c9d2448f97':
2015-07-28 19:38:18 +00:00
Hyunyoung Song cc619e2eca am 6ce4ac13: am e6127759: resolved conflicts for merge of 13ef17a3 to mnc-dr-dev b/22609402 Change-Id: I140cf972d57e14737a6f91c0b4a8ec6c7ff1af2b
* commit '6ce4ac13964e2ecb852dba5c2cf35c55929f8fc7':
  resolved conflicts for merge of 13ef17a3 to mnc-dr-dev b/22609402 Change-Id: I140cf972d57e14737a6f91c0b4a8ec6c7ff1af2b
2015-07-28 19:38:17 +00:00
Hyunyoung Song 9486780029 am 680c92fe: resolved conflicts for merge of 13ef17a3 to cw-e-dev b/22609402 Change-Id: I3753db1f922923a6b462fa75a5c0d826e0413f95
* commit '680c92febe88260b74f101838a9734b8e10a704c':
2015-07-28 19:38:17 +00:00
Sunny Goyal 5e758cae9a Merge "Changing the dogfood check to a static boolean to better handle proguard optimizations" into ub-launcher3-master 2015-07-28 19:37:00 +00:00
Adam Cohen c0d915deae am e40f5ce4: am 5845d3db: Make Launcher3 a privileged module so it gets the BIND_APPWIDGET permission
* commit 'e40f5ce4af3c743bd4dbc3abeba938559c31732c':
  Make Launcher3 a privileged module so it gets the BIND_APPWIDGET permission
2015-07-28 19:15:24 +00:00
Hyunyoung Song 5bd11fd60e am 0e3c5e87: am 13ef17a3: (-s ours) merged ub-launcher3-burnaby, and resolved conflicts
* commit '0e3c5e878c2da4f04c71b575bf20e7be41eee6cd':
2015-07-28 19:15:22 +00:00
Hyunyoung Song 6ce4ac1396 am e6127759: resolved conflicts for merge of 13ef17a3 to mnc-dr-dev b/22609402 Change-Id: I140cf972d57e14737a6f91c0b4a8ec6c7ff1af2b
* commit 'e612775922ec9f8cc4e5cb976bc62b3312a3de0e':
  resolved conflicts for merge of 13ef17a3 to mnc-dr-dev b/22609402 Change-Id: I140cf972d57e14737a6f91c0b4a8ec6c7ff1af2b
2015-07-28 19:15:11 +00:00
Adam Cohen 6961b365db am 5845d3db: Make Launcher3 a privileged module so it gets the BIND_APPWIDGET permission
* commit '5845d3dbea53d513466c98b301eb49e96fe5d6a3':
  Make Launcher3 a privileged module so it gets the BIND_APPWIDGET permission
2015-07-28 18:55:33 +00:00
Adam Cohen e40f5ce4af am 5845d3db: Make Launcher3 a privileged module so it gets the BIND_APPWIDGET permission
* commit '5845d3dbea53d513466c98b301eb49e96fe5d6a3':
  Make Launcher3 a privileged module so it gets the BIND_APPWIDGET permission
2015-07-28 18:54:25 +00:00
Hyunyoung Song 0e3c5e878c am 13ef17a3: (-s ours) merged ub-launcher3-burnaby, and resolved conflicts
* commit '13ef17a37e683b8ad5800e9f542b411180fbec2f': (500 commits)
  Adding minSpanX and minSpanY for all the launcher widgets
  [DO NOT MERGE] Adding minSpanX and minSpanY for all the launcher widgets
  Query the title and icon for app using correct user handle.
  Fix issue where corp app widget doesn't show correctly on drop targets.
  [DO NOT MERGE] fixing build break
  Fixing AppWidgetInfo not initialized with proper user
  [Do NOT MERGE] Fixing AppWidgetInfo not initialized with proper user
  Fix issue with UiThreadReveal on L devices
  Import translations. DO NOT MERGE
  Using highres icons for backup
  Import translations. DO NOT MERGE
  Widget row should not be cut off on the right, when there is an indent
  Fixing shortcuts not getting migrated to app icons
  Fixing regression in calculating workspace padding.
  Hide spammy WidgetModel log behind a DEBUG flag
  Import translations. DO NOT MERGE
  Animation should start and finish on widgets button when opening/closing widget tray.
  Making long-press of AllApps to jump directly to search.
  Computing the visible cell layout area without using the current scroll
  Fixing overscroll not drawn in rtl
  ...
2015-07-28 18:54:24 +00:00
Jun Mukai 878e8eefa5 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
2015-07-28 10:50:02 -07:00
Hyunyoung Song c7860f383b am d30e845d: Overlay support lib RV resources in Android.mk
* commit 'd30e845d89a069a8c1ee687791030e8e981170b3':
  Overlay support lib RV resources in Android.mk
2015-07-28 05:23:28 +00:00
Adam Cohen 5845d3dbea Make Launcher3 a privileged module so it gets the BIND_APPWIDGET permission
Change-Id: I23dc94fdc520229738dd3bb3b2580bd64774f4df
2015-07-27 20:05:35 -07:00
Winson Chung eea0225304 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
2015-07-27 18:35:28 -07:00
Hyunyoung Song d30e845d89 Overlay support lib RV resources in Android.mk
Note: after this change, ag/735298 can be reverted.

b/22719084

Change-Id: I83caf8832790b1df0a90a1339f6b24f481c51661
2015-07-27 18:24:45 -07:00
Hyunyoung Song cf235922c7 am a9095e07: Remove NPE inside WidgetsListAdapter during monkey actor test b/22518383
* commit 'a9095e07ddd2318ceb81a2794219e07dd112df72':
  Remove NPE inside WidgetsListAdapter during monkey actor test b/22518383
2015-07-27 22:35:02 +00:00
Hyunyoung Song a9095e07dd Remove NPE inside WidgetsListAdapter during monkey actor test
b/22518383

Change-Id: I1a683c49be93af150f7873390b723cee0d4ac5df
2015-07-27 13:35:33 -07:00
Adam Cohen a3e8963108 am e54fa58d: Merge "Don\'t obfuscate Launcher3" into ub-launcher3-burnaby
* commit 'e54fa58d10a3596a5ca683944a6b763f39171e46':
  Don't obfuscate Launcher3
2015-07-25 00:36:17 +00:00
Adam Cohen e54fa58d10 Merge "Don't obfuscate Launcher3" into ub-launcher3-burnaby 2015-07-25 00:26:34 +00:00
Adam Cohen ce77f36aff Don't obfuscate Launcher3
Change-Id: I86ac745602c0d3c09842ed9553f7589c232f5d23
2015-07-24 16:26:33 -07:00
Hyunyoung Song 299b70d9d4 resolved conflicts for merge of 13ef17a3 to master
b/22609402
Change-Id: I842cb344c98e75af9c39b52e39db478f2ae556c6
2015-07-23 23:28:47 -07:00
Hyunyoung Song 147d1e85d3 am 0c0d5463: resolved conflicts for merge of 13ef17a3 to mnc-ub-dev b/22609402
* commit '0c0d54637af7109ae22e21a117dba3efdaded4b5': (500 commits)
  Adding minSpanX and minSpanY for all the launcher widgets
  [DO NOT MERGE] Adding minSpanX and minSpanY for all the launcher widgets
  Query the title and icon for app using correct user handle.
  Fix issue where corp app widget doesn't show correctly on drop targets.
  [DO NOT MERGE] fixing build break
  Fixing AppWidgetInfo not initialized with proper user
  [Do NOT MERGE] Fixing AppWidgetInfo not initialized with proper user
  Fix issue with UiThreadReveal on L devices
  Import translations. DO NOT MERGE
  Using highres icons for backup
  Import translations. DO NOT MERGE
  Widget row should not be cut off on the right, when there is an indent
  Fixing shortcuts not getting migrated to app icons
  Fixing regression in calculating workspace padding.
  Hide spammy WidgetModel log behind a DEBUG flag
  Import translations. DO NOT MERGE
  Animation should start and finish on widgets button when opening/closing widget tray.
  Making long-press of AllApps to jump directly to search.
  Computing the visible cell layout area without using the current scroll
  Fixing overscroll not drawn in rtl
  ...
2015-07-24 04:47:23 +00:00