History log of /packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
f4b457709f330c5e3478a9ffa407d09bf97f8820 18-Oct-2016 Sunny Goyal <sunnygoyal@google.com> Removing the logic around closeSystemDialog on ACTION_CLOSE_SYSTEM_DIALOGS
Launcher does not use any panels which need closing & system sends an
onActivityResult(RESULT_CANCELLED), we do not need special handling for
waitingForResult

Bug: 32127718
Change-Id: Iff5161444bc909442f6acbe52cb3fb5a2d9ae4da
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
0fed55bf031087474a3833a3e28f4263c8dc7959 12-Oct-2016 Tony Wickham <twickham@google.com> Add feature flag to disable light status bar

Bug: 32085545
Change-Id: I4860145b00893c20f7e37817e9659ccd90409966
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
f0fc3c467407c00d71162af931456fd66dfdf1ec 29-Sep-2016 Tony Wickham <twickham@google.com> Merge "Some minor fixes for extracted status bar." into ub-launcher3-calgary-polish
345bff3ce671c62094a8afb5958a361db645f3cf 29-Sep-2016 Tony Wickham <twickham@google.com> Some minor fixes for extracted status bar.

- setLightStatusBar() is now updateStatusBar(), with a forceLight
parameter. We set the status bar to be light if forceLight or
shouldBeLightStatusBar() (based on wallpaper).
- Force status bar to be light if all apps is open.
- Default to dark status bar, not light (light == dark icons)

Bug: 29452834
Change-Id: I7b102ceff2f1ef2ab8defd4a46c698df4feaf2a5
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
7bb7ead9f71d2fbee5f1373b84ebfde7f01acbe3 29-Sep-2016 Sunny Goyal <sunnygoyal@google.com> Merge "Fixing the newIntent logic to check the state before it has been reset." into ub-launcher3-calgary-polish
9311387a227d7bd894d880b897fb80ca34b39405 15-Sep-2016 Tony Wickham <twickham@google.com> Enable light status bar when top of wallpaper is light.

(Light status bar = dark icons)

Bug: 29452834
Change-Id: I9f61a05d80158827761c8b62ab40fc50971e27a6
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
85313735fa6fa1daede64f42151380a318d1170f 28-Sep-2016 Sunny Goyal <sunnygoyal@google.com> Fixing the newIntent logic to check the state before it has been reset.

When home button is pressed, we reset all active state (close all-apps,
folder, shortcuts menu). But we do not go to the default screen if the
active state was non-zero (any of the containers were open).

Change-Id: Ia9a06729d65767124471c5b793323a55d822210a
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
6e74e899d314663415f54895227bb79a51fd734b 19-Sep-2016 Tony Wickham <twickham@google.com> Refactor shortcuts drag and drop.

- Instead of creating our own drag view within the container, and
handling logic to determine when to start a real drag, we start
the drag immediately and just defer onDragStart().
- To determine when the deferred drag should start, we add a
DeferDragCondition to DragOptions. The default DeferDragCondition
never defers a drag, but is overridden for apps with shortcuts
to defer until the icon is dragged a given distance.
- Because the drag is handled in DragController, including checking
when to start the deferred drag, DeepShortcutsContainer no longer
needs to handle touch events and ShortcutsContainerListener has
been removed.

This change has several immediate benefits:
- The code is much cleaner, because it allows touch handling to be
done by the DragController through the normal drag flow, without
recreating logic in ShortcutsContainerListener/DeepShortcutContainer.
- The janky second haptic feedback has been removed (now it vibrates
when you long press, like everywhere else, but not again when the
shortcuts close after dragging a distance).
- Drops are animated, instead of just popping the icon back into place.

Bug: 30769920
Bug: 30465972
Bug: 31533078
Change-Id: I679b412b72fbf6c3895d76963311eb5010c8e8db
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
ea045e7532edc8571456d3a4c61c89a0a2ab88ff 22-Sep-2016 Hyunyoung Song <hyunyoungs@google.com> Fixing two critical bugs in all apps transition controller
am: 0a9c092c89

Change-Id: I115b7bc6d165dc9d5e73e1878b96d194bfc62da7
0a9c092c89f4be3c5d59eef26aaffd2025e3e387 21-Sep-2016 Hyunyoung Song <hyunyoungs@google.com> Fixing two critical bugs in all apps transition controller

bug#1: if long press from page indicator region, you can pull up all apps
even though the workspace is in overview state.

bug#2: all apps should not intercept touch not only in overview mode
but also in any modal state.

Change-Id: I91c0a181f037f6c2465a983825da3a2da7e2920f
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
6f28e71e94aed69c71415ac5a5334fd0bb6c9ce5 13-Sep-2016 Sunny Goyal <sunnygoyal@google.com> Simplifying the startSearch call in launcher callbacks

Change-Id: I722e110903cced237f05667c4d711468d7cd3daa
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
acd0c4204bf4fda0f3fc9c7735631d9133bec94d 10-Sep-2016 Sunny Goyal <sunnygoyal@google.com> Merge "Preventing a shortcut which requires permissions from being added to homescreen" into ub-launcher3-calgary-polish
915d56abc7de0c2e13f4507cd2ef4fde44cfc94e 10-Sep-2016 Hyunyoung Song <hyunyoungs@google.com> Merge "Show IME when search query != null after rotation" into ub-launcher3-calgary-polish
c2fe1147f9802d581d1e0c1da4dcaaf8ebdfa939 10-Sep-2016 Hyunyoung Song <hyunyoungs@google.com> Show IME when search query != null after rotation

Change-Id: Ia35fba140a5addc21bf347cd63b72dc4e357421e
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
fb5096d07bb3bb59fd4b5db6b68613030169b4bd 08-Sep-2016 Sunny Goyal <sunnygoyal@google.com> Preventing a shortcut which requires permissions from being added to
homescreen

A shortcut can be added by any app as INSTALL_SHORTCUT is a normal
level permission. But the intent is actually launched by the launcher
app which can have other permission as well.

> When adding a shortcut from the broadcast, verify that the intent does
not require any permission
> When adding a shortcut using the two-step drop process, verify that
the source app also has the permission to create such a shortcut

Bug: 30778130
Change-Id: I710a490d69019dc25709db5a97020c20d9325007
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
add78abb98391ccd74b96e1e4d312e3c89fe0eba 08-Sep-2016 Sunny Goyal <sunnygoyal@google.com> Merge "Launcher restore state fixes:" into ub-launcher3-calgary-polish
2100c78bd903456a11a0ed03602419b21f6a2766 23-Aug-2016 Sunny Goyal <sunnygoyal@google.com> Launcher restore state fixes:

> Creating PendingRequestArgs to store generic request info across
activity instances
> Storing the CALL_PHONE request in PendingRequestArgs

> Handling onActivityResult only after the workspace has loaded.
onActivityResult sometimes modifies launcher db when removing empty
screens, and any add action is also deferred until bindComplete.
This simplifies this logic.

> Always binding the restored page irrespective of pending result.
Before starting a request activity (bind widget permission, or
widget config activity or shortcut picker), workspace commits the
pending screen id to the DB. Hence the restore page is valid when
restore is called (onResume loads with currentPage instead of
restored page)

Bug: 28573143
Change-Id: I34be603cbeb2145f5caf0d18e016f50029e07df8
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
52851aa3fd2dd9957e190d779f904f6abaf53fed 02-Sep-2016 Sunny Goyal <sunnygoyal@google.com> Fixing topView not being considered in all places when calculating accessible
and focusable views

Bug: 30563273
Change-Id: I6253ce33ee5c328efdde2ea733029975b31e5eb8
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
94b510cc683a6436ae82c6d323cbd8b429561b06 17-Aug-2016 Sunny Goyal <sunnygoyal@google.com> Some drag and drop code refactor:

1) Adding DragOptions to easily extend drap functionality
2) Changing onDragStarted signature to send more information
3) Updating states for dropTargetButton based on drag event directly
4) Removing folder item based on onDragStarted and not startDrag

Change-Id: I65b684e092ddc081d086bfe2c8c1973ed170eaeb
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
c8b997a21ca1fb7c951cfb1cbb22477f874b6f03 31-Aug-2016 Hyunyoung Song <hyunyoungs@google.com> Merge "ComponentName null check MUST proceed before creating ComponentKey." into ub-launcher3-calgary-polish
def6e474dad311224b97ae66f62c3313c6542955 30-Aug-2016 Tony Wickham <twickham@google.com> Use promisedIntent instead of intent when deep shortcuts are restored.

This ensures that the intent has the package corresponding to the
shortcut publisher, rather than a market intent. It also ensures that
the intent has the EXTRA_SHORTCUT_ID attached.

Bug: 31123204

Change-Id: I05d56396b629880322e915f52bfc0605b921b0b1
(cherry picked from commit fc02c1b446ee54561ac7351fb6ff0f8294785f0e)
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
fc02c1b446ee54561ac7351fb6ff0f8294785f0e 30-Aug-2016 Tony Wickham <twickham@google.com> Use promisedIntent instead of intent when deep shortcuts are restored.

This ensures that the intent has the package corresponding to the
shortcut publisher, rather than a market intent. It also ensures that
the intent has the EXTRA_SHORTCUT_ID attached.

Bug: 31123204

Change-Id: I05d56396b629880322e915f52bfc0605b921b0b1
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
d3bf9803f51efa88d966f60b890a5f8193c75d43 29-Aug-2016 Hyunyoung Song <hyunyoungs@google.com> ComponentName null check MUST proceed before creating ComponentKey.

Change-Id: I2460561b62d77d3f2f17dc2a7db765785b46a8c6
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
2fb1356be6c339f14cc60c6449012d8f77ea919f 26-Aug-2016 Sunny Goyal <sunnygoyal@google.com> Merge "Moving the scrim to draglayer" into ub-launcher3-calgary-polish
f3a09f97570315592db558c8825450dcf7c4e407 25-Aug-2016 Sunny Goyal <sunnygoyal@google.com> Starting the settings activity with same animation as wallpaper (and widgets tray)

Change-Id: I7744d50c9762200eb2ffea37d8435c9bc221c526
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
65ceb5aa55403482e92e1e86105c1ef5510688ad 19-Aug-2016 Sunny Goyal <sunnygoyal@google.com> Moving the scrim to draglayer

> This causes the scrim to animate with the content on first launch
> Also removing the logic to disable scrim based on state. That
logic was only executing onResume which could lead to an invalid state

Bug: 30972956
Bug: 30576826

Change-Id: Ia8386b303ce260f69e3b3b93041226f409301a01
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
112ce42926c2b7d9c8a0e9ef4fee869ab7f72cc7 23-Aug-2016 Sunny Goyal <sunnygoyal@google.com> Adding a resource pointer to the app name so that derived projects can
easily modify app name

Change-Id: I3f301e1b2ba38d0a45d220bb628dcfdf3906246c
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
e2b2fb79fc5c4842e1cef21ecc21623cf1acf569 18-Aug-2016 Sunny Goyal <sunnygoyal@google.com> Merge "Adding support for pending widgets in AutoInstall layout" into ub-launcher3-calgary-polish
86df138d9f5b32d947f3497314694a2a7adac70c 11-Aug-2016 Sunny Goyal <sunnygoyal@google.com> Adding support for pending widgets in AutoInstall layout

> Pending widgets whill show a loading progress while the app
is being installed.
> Extra bind options can be defined using the tub tags
<extra key="key-name" value="key-value" />
These are sent as widget options when the widget is bound.
> If the widget has any config activity, it is not shown
> Required attributes:
className, packageName, x, y, spanY, spanY & screen

Bug: 30279609
Change-Id: I1338618bfa5d86967339dffb68c12b1add6eb5d7
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
06e21a25877db7207b5393ab163028bb4116df4f 12-Aug-2016 Sunny Goyal <sunnygoyal@google.com> Moving the state changes during drag-n-drop from startDrag to onDragStart

This will allow drag controller to optinally defer drag, based on some
threshold, by simply deferring the callback onDragStart

Change-Id: I17c06a15e2092b9797c7e57529b12a53d2acae6e
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
95f3d6ba2ca02a9841487777cfff43fb9df65ec7 11-Aug-2016 Sunny Goyal <sunnygoyal@google.com> Reloading workspace when the shortcuts permission changes

> Check for permission on every onResume
> If the permission is different than last known permission,
reload and rebind workspace.

Bug: 30789422
Change-Id: Idfa445815e29e2336505779545507d106b33a253
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
4efffc5ba69fdf44be1bf2b540e24cd2bd85d18c 05-Aug-2016 Tony Wickham <twickham@google.com> Use shortcut disabled message if available.

Bug: 30681210
Change-Id: Ibb5fd58e5fc9557b63730bc1e3c3977133769466
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
f8d2a70e0fc00559266aaab078aaefde8e34f3a7 02-Aug-2016 Sunny Goyal <sunnygoyal@google.com> Merge "Adding quiet mode support for shortcuts" into ub-launcher3-calgary
d3b87ef1963fb96177ca85bcd6a25879e27e419c 28-Jul-2016 Sunny Goyal <sunnygoyal@google.com> Adding quiet mode support for shortcuts

> LauncherApps returns empty list when the user is locked. Not relying on
LauncherApps in this case
> When the user is locked, removing all dynamic shortcuts
> Loading shortcuts from DB when the user is locked
> Verifying the shortcuts again when the user is available

Bug: 30411561
Change-Id: Ib6eb372c5b009cadb86a8f6e781f3f3cbf787ceb
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
72dc60c5760166699effee7be17528de7f29fa67 29-Jul-2016 Hyunyoung Song <hyunyoungs@google.com> Merge "Cancel exit spring loaded runnable when launcher state is set to APPS or WIDGETS b/29645452" into ub-launcher3-calgary
06ca7568c63a972832db43563020f5b4a1ae1112 29-Jul-2016 Hyunyoung Song <hyunyoungs@google.com> Cancel exit spring loaded runnable when launcher state is set to APPS or WIDGETS
b/29645452

By cancelling the runnable, we are enabling transition:
state1 -> state3 instead of state1-> state2-> state3.
Transition state1->state3 is a viable transition that is
supported by our model.

Launcher Workspace
--------------------------------------------
state1 APPS_SPRING_LOADED SPRING_LOADED
state2 WORKSPACE NORMAL
state3 APPS NORMAL_HIDDEN


Change-Id: If27905567efe439324494e0091a4b42fcbf01448
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
c42087e5c011dbf912c0f8b8d27d15ec5a97dca1 29-Jul-2016 Winson Chung <winsonc@google.com> Merge changes I33da0d7f,I36c31609 into ub-launcher3-calgary

* changes:
Working around incorrect wallpaper offsets being calculated in RTL.
Fixing RTL wallpaper scrolling.
c7d2e83c15e85b2695e016213549d08e63c923b3 28-Jul-2016 Winson <winsonc@google.com> Working around incorrect wallpaper offsets being calculated in RTL.

- When launcher starts up, onCreate() triggers the launcher model loader
to start, which calls bindScreens() to add the workspace pages.
However, layout does not happen until the device is unlocked, which
means that even though the default screen index and children are there
the page scrolls are calculated incorrectly, and even in RTL, the
page scroll for the 0th screen is zero (it should be at the right
most edge of the workspace). This CL works around this by deferring
until the first layout after bindScreens() to unlock the wallpaper
offset from its default bounds. The workaround is only applied when
the launcher activity is first created.

Bug: 28795125
Change-Id: I33da0d7f934f5337d26e69f068f579a32897a837
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
55f5bd730cace56d224de33461f575f41bdd480f 28-Jul-2016 Sunny Goyal <sunnygoyal@google.com> Merge "Showing the shortcuts in the disabled state and removing ti from the menu when its disabled" into ub-launcher3-calgary
70a7c9b70003ae87e2b2968bc6ceded0fe0f0e8b 28-Jul-2016 Sunny Goyal <sunnygoyal@google.com> Showing the shortcuts in the disabled state and removing ti from the menu
when its disabled

Bug: 30315906
Change-Id: Ice747e7be955d8bb2dd65191f7613e2afd4abc1c
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
b5b9ad68b707154fcc2c3b04b1b6c0b17127e415 02-Apr-2016 Sunny Goyal <sunnygoyal@google.com> Fading in the first screen, when launcher loads for the first time

Bug: 29007436
Bug: 27705838
Change-Id: I95891d0bad19a67985b689bb96d6068dcd85004a
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
a2454ad2d8dcffa94f670853eb464726c73597f1 22-Jul-2016 Sunny Goyal <sunnygoyal@google.com> Launcher shortcuts animations update.

> The shortcut container closes with an animation
> When opening/closing the animation only the icon scales
and not the title and drag handle
> When dragging the icon, it starts from the original icon position and
moves under the user finger. The container grows to follow the drag view.

Bug: 28980830
Change-Id: Ic0353c30b682d1f018cbf4d62e8a6e8e7d7d4664
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
71538da6e2e70af15684cc270a6e67c9b5a010dc 28-Jul-2016 Tony Wickham <twickham@google.com> Merge "Cleanup deferred drag when closing deep shortcuts container." into ub-launcher3-calgary
dd60ce41b31028a309448df17dcd5b7796af6fef 28-Jul-2016 Hyunyoung Song <hyunyoungs@google.com> Remove two redundant layout pass in AllAppsTransitionController.

Change-Id: I48d043820db962c58e97a09d7888303c1d5bf4ad
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
b9da46275bd3e7bcca7e9197d5e3486f0fe00f19 28-Jul-2016 Tony Wickham <twickham@google.com> Cleanup deferred drag when closing deep shortcuts container.

This fixes those states where a drag view dangles on the screen
forever until launcher restarts. For instance, long press
Settings and press home before letting go.

Bug: 30291280

Change-Id: Ib8c403a02a17f35ba170c21f78f41bdc3b48d096
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
9dcf0a3ef7595f58aedec7773e7bc3b9075fb3ca 27-Jul-2016 Hyunyoung Song <hyunyoungs@google.com> AllAppsTransitionController always use LauncherStateTransitionAnimation
b/30375760

Change-Id: Iee2f8060e4d272d276ddd5d40b4bc6053e8c7778
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
68f98ac102a2719203883d87add6483797b516da 22-Jul-2016 Hyunyoung Song <hyunyoungs@google.com> Long press on the caret should start search on all apps container

Change-Id: I87e6b8a9b43bf8a84bcf4d39302bc5c6f6a5f3fd
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
58368b15152052fb479891f0d3aba30ab3794fba 22-Jul-2016 Sunny Goyal <sunnygoyal@google.com> Merge "Increasing the size of the drag icon when a shortcut is dragged" into ub-launcher3-calgary
c001cf562017d08cd48b67de8f377ca08881e70e 22-Jul-2016 Hyunyoung Song <hyunyoungs@google.com> Animate discovery bounce for all apps pull up interaction
b/30221381

> Will not support landscape case. If the user knows how to enable
rotation, it's very unlikely they don't know how to bring up apps drawer
> If unlocked using finger unlock immediately after screen is turned
off, bounce is not shown due to delay in ACTION_SCREEN_OFF broadcast

Change-Id: Ia8b7e572eaa4aeab8b1add1e5660fee3a63ba21c
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
157793dda450b69da388b859d1c1a7a1083c4ec9 20-Jul-2016 Sunny Goyal <sunnygoyal@google.com> Increasing the size of the drag icon when a shortcut is dragged

Change-Id: I7d768657300d3229e05d1eb18aec3720a9098ffc
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
1ce0e30451f28e6e5c42c068d520e16abeb257dd 21-Jul-2016 Hyunyoung Song <hyunyoungs@google.com> Fix NPE on clicking the all apps caret.

Change-Id: I2623e7470ffe711bce375699b9579803ded6c02f
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
4a44b6e59fc662568a92da36725e940e1dd844db 21-Jul-2016 Sunny Goyal <sunnygoyal@google.com> Merge "Optimizing open shortcuts container lookep" into ub-launcher3-calgary
5aa2714959405043639cb2d0b8d9ab8c6eef0bd2 21-Jul-2016 Hyunyoung Song <hyunyoungs@google.com> Add user event log for deep shortcuts and all apps opening interaction.
b/30114798

Change-Id: I11ad99d0bc1983294d6a5329b98917cb87250823
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
71b3d1c38e028d7c1f625543a30993af1193b321 21-Jul-2016 Sunny Goyal <sunnygoyal@google.com> Optimizing open shortcuts container lookep

findviewById does a DFS, inseat only looking at the first level children

Change-Id: Idc028a56648ca026c6022425e3a6e7453fa91986
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
cb6287aedcae9b100663b1c31766aa1d293a7011 20-Jul-2016 Sunny Goyal <sunnygoyal@google.com> Merge "Using the same clip animation for wallpaper button as using for app icons" into ub-launcher3-calgary
0eca4e2b95d44fce9262617517eccf255d7d15e2 20-Jul-2016 Sunny Goyal <sunnygoyal@google.com> Using the same clip animation for wallpaper button as using for app icons

Bug: 30222414
Change-Id: I12ea7be255abe572c29102b6e93c4d2cdfce0aff
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
1f06427266c0cb5de4561fc7c620ff542f625300 19-Jul-2016 Winson <winsonc@google.com> Initial changes to tweak layout.

- Adding DeviceProfile callback for when the launcher layout changes due
to insets. This is necessary since there are now different layouts
depending on which side the navigation bar is on
- Consolidating hotseat and other layout into the device profile
launcher layout logic
- Making the all apps icons match the workspace icon height
- Tweaking caret drawable to draw to the bounds specified to simplify
layout in each orientation
- Fixing minor issue with page indicator shifting in landscape
- Centering overview buttons to the workspace page

Bug: 30021487
Change-Id: I1866bce00b2948f3edd06168c0f88d81207e3f13
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
fcb81b978db08ab4c4a1f69eea6a76e57a50ff6f 14-Jul-2016 Sunny Goyal <sunnygoyal@google.com> Merge "Moving the QSB out of the cell layout to the Drag layer" into ub-launcher3-calgary
6178f13e2d1f0c1a89cea74538b51993ef3439e3 12-Jul-2016 Sunny Goyal <sunnygoyal@google.com> Moving the QSB out of the cell layout to the Drag layer

This allows better edge matching for the QSB. The QSB position
is kept synchronized with the page scroll and all-apps transition.
But its not visible in spring loaded and overview mode

Change-Id: I4e6723607ea966ee672273a9ca67c792fd6b5661
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
49c8d29fddd341aa04459371aa5e869da2f52768 01-Jul-2016 Tony Wickham <twickham@google.com> Close the shortcuts container in various places.

- Mostly everywhere folders are closed
- Implements DragListener so we can close the container when dragging
the original icon or shortcuts from the container. We actually just
hide the container in onDragStart() and really remove it in
onDragEnd(). This avoids interfering with touch events and thus
allows us to remove the hack of explicitly setting the DragLayer's
controller when dragging shortcuts (since it will do it on intercept).

Bug: 30080537

Change-Id: Iccc2afba2a990a613bc588d57c4d8c1b7c65224b
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
2ee27b12e9fd642f0f2f9ebcbfdfd50039e21819 07-Jul-2016 Sunny Goyal <sunnygoyal@google.com> Merge "Calling start/stop listening in onStart/onStop" into ub-launcher3-calgary
b900f1cbaf464ac5515a6216578f2e17ee3f6802 01-Jul-2016 Andrew Sapperstein <asapperstein@google.com> Merge "Delete all* references to launcher clings." into ub-launcher3-calgary
932eb8313cbd5334be7fdcd4df766493101c2a9b 01-Jul-2016 Andrew Sapperstein <asapperstein@google.com> Delete all* references to launcher clings.

Launcher clings are dead. Delete all the code and resources associated with
them.

* Did not delete the actual code the marks the cling as dismissed since it's
used in db upgrade and backup/restore paths. Figured we probably want to keep
that.

Change-Id: I28841b4a430187b62b239afeb64bee81a798e259
Fixes: 29461092
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
8a4bb334726a1e065ccd5168494bfa41f68d88ff 01-Jul-2016 Andrew Sapperstein <asapperstein@google.com> Merge "Stop showing first run launcher cling." into ub-launcher3-calgary
310a9889937677091868ae7759c90d033ca08bb6 30-Jun-2016 Peter Schiller <peterschiller@google.com> Updating all apps to match spec

Change-Id: Ie351fdea2e3b05ca911e6533f0c5d00c17e0847c
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
8b9cb08b02d71e2d6b8734a294f3411c81022b5d 01-Jul-2016 Andrew Sapperstein <asapperstein@google.com> Stop showing first run launcher cling.

Followup CL will delete the dead code.

Bug: 29461092
Change-Id: Iaf96184219b7b052b7a8d97f403afec236d28437
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
1bce7fd342875be8f7c1f82c8cf21d0199c8d544 29-Apr-2016 Tony Wickham <twickham@google.com> Long-press on an app to reveal its shortcuts.

- Add ShortcutsContainerListener to icons on workspace, folders, and
all apps. This handles long-press and forwards following touches to
the DeepShortcutsContainer that is created.
- Drag over shortcut before lifting finger to launch it.
- Shortcuts are rendered in pill-shaped DeepShortcutViews,
which are inside DeepShortcutContainer on DragLayer.
- The shortcut container orients above or below the icon, and left or
right-aligns with it. Biases for above + left-align.
- Long press a DeepShortcutPill to drag and pin it to the workspace.

Bug: 28980830
Change-Id: I08658d13ae51fe53064644e8d8f7b42f150fdd7d
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
5da78f452c94809804adebcdbc0a193fcedfb5ef 17-Jun-2016 Sunny Goyal <sunnygoyal@google.com> Calling start/stop listening in onStart/onStop

AppWidgetHost in N-MR1 was changed to make start/stop lisenting calls
light weight, which allows launcher to avoid getting unnecessary
updates when its not visible

Bug: 23892701
Change-Id: I1f40a1ddc51a9eee304e17e72106bc75afe6c1bc
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
9994b2b171ab78d1d93e8a25086d6853f766e80f 23-Jun-2016 Sunny Goyal <sunnygoyal@google.com> Making some shortcut manager calls protected by MR1 version check

Change-Id: Ifdfa95a58aa18a825c1838c61055928dbe0ea3be
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
2e0840973234b7025727163205e3e0af63c48edb 22-Jun-2016 Sunny Goyal <sunnygoyal@google.com> Build fix

Change-Id: Ieaf5c91b85c56a3e042bffaad0fdaba090a891cf
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
653bfcc7433b10ea2d5dc8cde612d6143af766b8 22-Jun-2016 Sunny Goyal <sunnygoyal@google.com> Merge "Accessibility fixes and updates" into ub-launcher3-calgary
d0a6ae7f645e6ba564aebb50316c53fa2e119459 16-Jun-2016 Sunny Goyal <sunnygoyal@google.com> Accessibility fixes and updates

> Adding custom actions on the page indicator to go to overview mode
> Disabling custom actions on the first page
> Disabling 'move page left' on the second page

Change-Id: Ib8154f70cb3f93e663a881357c6c46c33253887f
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
ec1b1c542ca0648747b3b0bc3fd45922caa8ddaa 22-Jun-2016 Tony Wickham <twickham@google.com> Merge "Add support for launcher shortcuts." into ub-launcher3-calgary
8e6a8004808fbbf782812a6cd75324a7008cc610 22-Jun-2016 Sunny Goyal <sunnygoyal@google.com> Merge "Fixing potantial context leak code path" into ub-launcher3-calgary
bfbf7f9f4a0b300613f0ff27a4eb592d88c08325 19-May-2016 Tony Wickham <twickham@google.com> Add support for launcher shortcuts.

- This CL has no UI but provides the necessary backing for one.
- Adds new item type: ITEM_TYPE_DEEP_SHORTCUT, to distinguish from
ITEM_TYPE_SHORTCUT. We can reconsider these names.
- Adds ShortcutCache, using LruCache for up to 30 dynamic shortcuts
(pinned shortcuts are always cached in a HashMap).
- DeepShortcutManager queries for shortcuts and other things like
pin them. In a future CL it will use the cache, but for now it
simply makes an RPC for all queries.
- LauncherModel maintains counts for pinned shortcuts, pinning and
unpinning when counts reach 1 or 0, respectively.
- LauncherModel maintains a map of components to lists of shortcut ids,
which Launcher gets a copy of after it is changed in the background.
This will allow us to know how many shortcuts an app has immediately,
and query for details as the UI is animating.

Change-Id: Ic526f374dd10d72a261bae67f07f098fca8d8bca
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
e26d1008eb587303db25797ca02cc32464e45656 20-Jun-2016 Sunny Goyal <sunnygoyal@google.com> Adding some tracing sections around launcher startup

Bug: 29007436
Change-Id: I53afd9130a2dc70a2223f1623e862faf44370f26
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
64976d5a5667f52ed3fe4346ea5ab910dcc2dc2d 20-Jun-2016 Sunny Goyal <sunnygoyal@google.com> Fixing potantial context leak code path

The javadoc in createUserEventDispatcher suggested that it can be used
as a singleton. But it was being constructed as an inner class which
would cause context leak when used as singleton

Change-Id: I706018d4ab26b506ac936fe1a7304d9b530b820c
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
91f3b1c0b8dbe2bf3f50e6913eb870e40486cbe6 20-Jun-2016 Hyunyoung Song <hyunyoungs@google.com> Merge "Fixing a crash on APPS->WORKSPACE transition when animation is automated without dragging. b/29424335" into ub-launcher3-calgary
a0c5647f521384e4c4edf4e15516a1b4afbde80b 20-Jun-2016 Hyunyoung Song <hyunyoungs@google.com> Fixing a crash on APPS->WORKSPACE transition when animation is automated without dragging.
b/29424335

Change-Id: I2b109423b5a4cfc94fcda75fdea936785373968f
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
abef55a1c1f1fda4f42e4b4223534dd21f3dc19f 19-Jun-2016 Andrew Sapperstein <asapperstein@google.com> Update Launcher to use theme colors.

Instead of using hard-coded variants of colors, use the theme color
that corresponds (colorAccent, colorPrimary, etc).

Updated:
- "Search for more apps" text
- App info drop target hover color
- PageIndicatorDots
- All apps & widget scroll bar & scroll popup colors
- All apps section text color
- widget picker background color

TODO:
- widget picker header color

BUG: 28625102
Change-Id: I74b543ff71b8caef8cd950c8183ac84c759cb4d5
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
ae50284e0a838139c67caf0064a0977c871497fa 17-Jun-2016 Sunny Goyal <sunnygoyal@google.com> Moving LauncherAccessibilityDelegate to Launcher to associate it with
activity lifecycle.

Change-Id: Ib815505677fa7ed74bdcfe7141b1d9bea5d7143a
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
bb011dad4e69bec027be1e00d573a3095b318b43 16-Jun-2016 Sunny Goyal <sunnygoyal@google.com> Adding a flag (enabled by default) to remove the all-apps button.

All apps can still be opened by clicking the caret.

Bug: 29398447
Change-Id: I61f1b05cea83a0a49d7cc16c518c5419618ba779
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
0af8af3a6090bc0309cb126a1ccfb2a66e058783 16-Jun-2016 Sunny Goyal <sunnygoyal@google.com> Merge "Adding a DB update path to handle the QSB position change" into ub-launcher3-calgary
a9a8a4221709cc3fda48fd80d4213d25183b8bf7 16-Jun-2016 Hyunyoung Song <hyunyoungs@google.com> UI fixes to All apps pull up work

b/28917826
- nav bar change to light when top of the all apps container
passes y mid point of the status bar
- apps search edit box change when top of the all apps passes
the bottom of nav bar
- Restrict pull up to work only if the ACTION_DOWN event started
from the hotseat.
- Landscape: reverted old padding and margin. Only the interaction
is different.
- Tuning of the motion spec
- Animation duration respects fling speed more agressively.
- and many more small bugs...

Change-Id: Icde4093c41eeab8c9c6d9dc8b7d57adc3b171349
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
7d2fc8120e549eaa9542b0985aab67d172cbd682 15-Jun-2016 Hyunyoung Song <hyunyoungs@google.com> Add caret shaped all app pull up handle to page indicator.
b/28917826

> PageIndicator is also added in landscape
> Touch delegate allows the active touch area to be 36dp

Change-Id: If00f45fc88a13cd5a6759d771313439eb58561e3
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
a9e2f5abb3c21d9721939c625ffb0caabb34e8d9 10-Jun-2016 Sunny Goyal <sunnygoyal@google.com> Adding a DB update path to handle the QSB position change

> Renamed the id of 1st screen to 0 and making space for the QSB
by running the grid migration task.
> Added a feature flag to easily disable the QSB-in-workspace behavior

Change-Id: Ie3369f0d4433d916e9d6215d414770d4333f3e26
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
a7ce166b2e06c834ac7d90ba0f4db16a84d10171 01-Jun-2016 Sunny Goyal <sunnygoyal@google.com> Making the security checks and policy changes only when launching custom
shortcuts. This prevents launcher specific intents to unknowingly leak data.

Change-Id: I01343a9cee1f2a9a37a20aaf24e933e2771ecdbc
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
3333b0ced8e6743c41909f6f6b916f1f9ec5a004 10-May-2016 Sunny Goyal <sunnygoyal@google.com> Unifying focus indicator handling for workspace and all-apps

Adding an abstract FocusIndicatorHelper based on FocusIndicatorView
which draws the background instead of using a dummy view.

Change-Id: Id560195323d2ddad8fcd77ba675cf3f4fd4a94ab
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
47328fd53f43fd0c2ed14ad925dd04483f9229a0 26-May-2016 Sunny Goyal <sunnygoyal@google.com> Removing the SearchDropTarget bar as it no longer contains the QSB

> Renaming it to simply DropTargetBar
> Moving AppInfo to the top bar as well
> The workspace pages will extend to the top edge (minus some padding).
Since the QSB is no longer displayed on top of every page, there is
no reason to reserve the space.
> In spring-loaded mode, the workspace cell layout will scale enough
to make room for the drop target bar at the top

Change-Id: I2baf607310335dd576c9d9fcbb75ab708f47ac03
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
645764e3e5fa34d9adcddfc722d726b76f048306 06-Jun-2016 Hyunyoung Song <hyunyoungs@google.com> Pull up all apps interaction
First phase implementation: dragging and animation interaction is implemented
namely in two classes. ScrollGestureDetector and AllAppsTransitionController.

FeatureFlag.LAUNCHER#_ALL_APPS_PULL_UP will be true for only AOSP and
not in the extending builds. This way, we can safely iterate without
turning it on the shipped ready version.
b/28917826

Change-Id: I0501309c0121880ffe0555f82d6ac5a145581bb1
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
85fc55a976a1f1605ad22deff74f5ceb080913e6 31-May-2016 Sunny Goyal <sunnygoyal@google.com> Disabling stricty mode checks when launching an activity.

The default strict mode policy in NYC cause death penalty when
when sharing file URI in intent. This causes launcher to crash
for users who have shortcuts of images and documents on their
homescreen.

Bug: 28853579
Change-Id: If84cd5ff732713aaff5d3164edf428c8b4233ea2
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
da4fe1a6244457f144e0a331cada3ada17157809 27-May-2016 Sunny Goyal <sunnygoyal@google.com> Moving the QSB to the workspace grid.

The QSB will only be resent on the first screen of the workspace
covering the full width of the first row. If will not be movable.
The first screen of the workspace will not be movable.
The searchDropTargetBar no longer contains the QSB (it can be
renamed in aseparate cl).

Refactoring all QSB related logic by moving it to a custom view
inflated only using xml.
Change-Id: Icb4fd6eb855df1af15f685961c38351bf4fd4f4a
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
d478c83fd6abebe6ce3f066d392a28f8ba9be100 01-Apr-2016 Sunny Goyal <sunnygoyal@google.com> Showing a permission dialog when a restored widget is not yet bound, and launcher
does not has the permission to bind the widget

Change-Id: I51d32b9958f82671b928d559105129261fb8f268
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
ded0fdba52d94f8c841598a14dbece36a2f1849c 24-May-2016 Sunny Goyal <sunnygoyal@google.com> Removing logic for workspace migration from Launcher2

Change-Id: I8a121d74862f665c58406f8d5c7eb1263e7ccff3
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
40902b3cb040eb9ed35c174e41bca9feefe41b73 20-May-2016 Sunny Goyal <sunnygoyal@google.com> Merge "Preventing unnecessary options update to QSB provider by checking if the options have changed before calling update" into ub-launcher3-calgary
770217c697a92b441b66fac6d3441db1c0a84a3a 19-May-2016 Tony Wickham <twickham@google.com> Add null check to page indicator to prevent crashes in landscape.

Change-Id: I9676c19bcdd9129a8519e96febc779f019bc8a13
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
3f732190cc6c8feef53383d369b66dcf38f06e44 13-May-2016 Sunny Goyal <sunnygoyal@google.com> Preventing unnecessary options update to QSB provider
by checking if the options have changed before calling update

Bug: 28586377
Change-Id: Idf263b7a32ca85f23f728fa29b9c8ac84289052e
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
7267adf68eb582ff20e2ce1bfb2068caecc4e3f5 18-May-2016 Sunny Goyal <sunnygoyal@google.com> Fixing build breakage

Change-Id: Ib649bff709f4b6e4f173006d267aafa069c2a8b4
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
1acb9e9e29bb06b6266781284ae60e9fd4d0962f 16-May-2016 Sunny Goyal <sunnygoyal@google.com> Rearranging the provider checks to avoid packagemanager lookups
whenever launcher starts

Bug: 28737985
Change-Id: I3ce3e2741b3224fa5419d7ceca496e1bb91f065c
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
ae007814289a465be3df1ddca276e30f73460a97 18-May-2016 Tony Wickham <twickham@google.com> Merge "Add PageIndicator interface and custom PageIndicatorLine view." into ub-launcher3-calgary
f549dab31d0fa3e4d0cf8d6025b20e49aafb2d59 16-May-2016 Tony Wickham <twickham@google.com> Add PageIndicator interface and custom PageIndicatorLine view.

- The current PageIndicator has been renamed to PageIndicatorDots
and PageIndicatorMarker has been renamed to PageIndicatorDot.
- PageIndicatorDots and PageIndicatorLine implement PageIndicator.
- PageIndicatorLine uses scroll progress and number of pages to
draw a line of the correct size and position.
- All of these page indicator files are now in a pageindicators package.

Bug: 27227498

Change-Id: I9230d2e0600ce583989bd31d0b0e252b148d15c2
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
aaf7d1d13bd88bdeac5c56a9ab1d293fdaea3c11 17-May-2016 Sunny Goyal <sunnygoyal@google.com> instead of unbinding items from the loader, unregistering listeners
in activity.onDestroy()

Bug: 28740269
Change-Id: I6bf2ad6aca43970fd10cfbcc113e609c227e07bf
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
04cc3a7beabf03c2e09c3b3e99601fe983a3d897 17-May-2016 Sunny Goyal <sunnygoyal@google.com> Opening the system default wallpaper picker on clicking the wallpaper tile

Bug: 28790378
Change-Id: If283b60a0b9563ab8e80d49b0ffa195fc3ffda8a
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
87af0fded6d91b85c7a4bbf066f93d58c241b146 16-May-2016 Sunny Goyal <sunnygoyal@google.com> Removing reference of hostView from LauncherAppWidgetInfo

LauncherAppWidgetInfo is a model item and does not need to reference
a view. Removing this dependency will allow cleaning up the
item unbinding logic

Bug: 28740269
Change-Id: I11fc2e2500b8fe29d157eefe74c70b1decdfd08d
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
adb8eb5a34ea3a31e4ac062e18aebb939e1f7567 10-May-2016 Hyunyoung Song <hyunyoungs@google.com> Merge "Widgets tray should preserve scroll position during screen rotation" into ub-launcher3-calgary
bc5d623845e8e6e50254064c054c344a7246330b 10-May-2016 Hyunyoung Song <hyunyoungs@google.com> Widgets tray should preserve scroll position during screen rotation

> This used to work, but when I got rid of preloading which was
handled by linear manager to increase scrolling speed, the save
and restore instance that was being handled by the linear layout
manager created using Launcher context also went away. Hence,
bringing back custom LinearLayoutManager.

Change-Id: Ibccdf80533a5ace06cc6c6932b257c223cbac0ff
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
462b5cca7bb1d5e24fb8277b0cfe238cc2e1e980 02-Apr-2016 Tony Wickham <twickham@google.com> Extract color for the hotseat.

- Only considers the bottom fourth of the wallpaper
- Is translucent black or white depending on how dark/light
the wallpaper is
- Hotseat extends behind the nav bar

Bug: 27230217
Change-Id: Id4ea6ee91b4dd221b4c277d22d5041cab178801d
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
713edfce264db7edc409216d5c083f8dd6a7083f 06-May-2016 Sunny Goyal <sunnygoyal@google.com> Adding a utility class for persistant logging.

The logs are kept for at max 48 hours. It uses two log files and switches
between the two based on the day of the year.

Change-Id: I9a99499b3445a62f29f62a5cd13db20b1783bcd3
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
745bad9da1ef2fca2ab7bfeb5ea885a2b50c49c3 02-May-2016 Sunny Goyal <sunnygoyal@google.com> Chaning the behavior of settings activity.

> Making all twoState prefs backed by content provider
> Using the stadard intent defined in N for settings
> Using SharedPrefsListener instead of LauncherProvider

Change-Id: I8272f54aa780bc0436e3d0aa89096a4bd2a9194f
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
f8a2ba27078badc61b7122a6781214a4148a686f 29-Apr-2016 Sunny Goyal <sunnygoyal@google.com> Merge "Revert "Calling start/stop listening in onStart/onStop"" into ub-launcher3-calgary
7e5d5fc3c6ea5065d8906e9b88b01da2abdeddd3 29-Apr-2016 Sunny Goyal <sunnygoyal@google.com> Revert "Calling start/stop listening in onStart/onStop"

This reverts commit 23ac9cb3e1bed8de0155f1a117739a582cb8abae.

Bug: 28421447
Change-Id: Id04e7b7827d8b897b7c7992705d36f9d83a13320
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
79d90c558f8509be546a2053c87a3827db93047c 22-Apr-2016 Adam Cohen <adamcohen@google.com> Define a set of methods on Launcher which can be safely called externally

-> The methods are defined by an interface, LauncherExterns, which Launcher
implements

Change-Id: I61362761f5d90fbc3011ce000944768d5ab29d43
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
1ed6c4adde9c2ce597deb3e57600c664684eb639 22-Apr-2016 Sunny Goyal <sunnygoyal@google.com> Showing a toast when changing wallaper is disabled

Bug: 27940102
Change-Id: I373093d9b85dca356aaa8798931d5315981fd74c
(cherry picked from commit 2afb636180fbc6832274aab1f8ac6e5407ae191a)
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
aa953654279d7cca29682d85111e398ea1f20390 20-Apr-2016 Hyunyoung Song <hyunyoungs@google.com> Refactor UserEventDispatcher (1/2)
b/28269657

Change-Id: I1083e6f73f42ac1986428a39c6b532050e595ac6
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
46ab2276f97518e9ba71e4bf3109b8ebd924cbab 15-Apr-2016 Sunny Goyal <sunnygoyal@google.com> Removing Launcher broadcast support from Launcher3

Change-Id: Ibaf5fe1465d3858b060fc2958194cf60f22a11db
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
534058492ff7d9a8a75b0fe709bddb6c3f6dcd79 14-Apr-2016 Sunny Goyal <sunnygoyal@google.com> Removing some deprecated callbacks

Change-Id: I3361383fe19faa64d862bbf879edb8c09937dc6f
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
53b7ce18f4dcbc52d84829103b87917363cbaf05 14-Apr-2016 Sunny Goyal <sunnygoyal@google.com> Removing first launcher broadcast

Change-Id: I225205a219cf2e0f27bb3c78cbdad1a3429d466f
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
ddec1c739ef37c3a042982b8943fe42e04b65f4c 13-Apr-2016 Hyunyoung Song <hyunyoungs@google.com> Refactor UserEventLogging, Add predictedRank, replace Bundle with Proto

b/26494415
- Removed bundle object that became redundant now that we have LauncherEvent proto
- Combined Stats and UserEventLogger as they are effectively doing same thing
- Removed parent field inside Target
- added predictedRank target inside Target

b/27967359
- make com.android.launcher3.action.LAUNCH broadcast explicit
Later CL: finish packageName/intent/componentHash/predictedRank fields

Change-Id: I441fb46c834f73e58a4d2324e8da7971e8713ec8
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
30a716157b748258e5461fe783298ba7c740835f 13-Apr-2016 Sunny Goyal <sunnygoyal@google.com> Removing WallpaperPicker from Launcher3

Launcher3 will no longer include a wallpaper picker.
Eventually it will just point to the system wallpaper settings where
user can choose from all the installed pickers

Change-Id: Ib5832fa7e451610acd4b2d34ee48fe36e3699d26
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
37b2a496ebd6a985c210abaa6ca745a860f5f9d2 07-Apr-2016 Adam Cohen <adamcohen@google.com> Remove special code path for not animating folder open in power save mode

-> framework takes care of this
-> stripped unused code

Change-Id: If1941447df5c3145db715971440b80bd754f0bb1
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
23ac9cb3e1bed8de0155f1a117739a582cb8abae 07-Apr-2016 Sunny Goyal <sunnygoyal@google.com> Calling start/stop listening in onStart/onStop

AppWidgetHost in N was changed to make start/stop lisenting calls
light weight, which allows launcher to avoid getting unnecessary
updates when its not visible

Bug: 23892701
Change-Id: I0ca6e02400992bc4e0359e45a3d66b9252751402
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
c52ba710053e4c6927937dd1a26d1abe06b6fa99 06-Apr-2016 Sunny Goyal <sunnygoyal@google.com> Fixing folder icon not getting redrawn when the contents change

> Removing parent from ItemOperator as inconsistant values were
being passed in workspace and folderPagedView
> Fixing itemChanged causing multiple redraws, by passing a
'animate' parameter to explicitely request animation

Bug:27740161
Bug:28015426

Change-Id: Ide7b266bde9aad5f450a3f808a59182fe01a5110
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
e316a7fa4bf55209712c49d92f98f65ff378dc4a 06-Apr-2016 Tony Wickham <twickham@google.com> Merge "Disable pinch gesture when accessibility is enabled." into ub-launcher3-calgary
e22172537b9235a5ba41b3054677dd7ed6d89f02 23-Mar-2016 Tony Wickham <twickham@google.com> Disable pinch gesture when accessibility is enabled.

Bug: 27676309
Change-Id: Iba0f04693c494f258ef21d740ee933f9c32a7674
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
44c06437e2e0476e24b61891d1a4aca9828f5327 02-Apr-2016 Sunny Goyal <sunnygoyal@google.com> Fixing bug where folders on the first screen and hotseat are not
registered by the Launcher if there are folders on other screens

Instead of maintaing a static map of folder items, searching it
in the workspace during item removal.

Change-Id: I8aa93b3aa1d0bd812204471e3103f4bd29d1cd3d
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
19c5c5765d38656b298465f33256fd5c5b0978b5 02-Apr-2016 Sunny Goyal <sunnygoyal@google.com> Fixing white background under hotseat

Change-Id: I8b39bc9104dc16981e5642124cfd819da7a2f172
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
6ed21eebb41eb118770750c9dba94145fb7228aa 02-Apr-2016 Tony Wickham <twickham@google.com> Merge "Added ColorExtractionService and ExtractedColors." into ub-launcher3-calgary
827cef203f386cb548b98a7fa9888b75478c8e20 17-Mar-2016 Tony Wickham <twickham@google.com> Added ColorExtractionService and ExtractedColors.

- Launcher has an instance of ExtractedColors, which is loaded from
LauncherProvider in onCreate() and whenever the wallpaper changes.
- When the wallpaper changes, the ColorExtractionService is started
in the :wallpaper-chooser process.
- ColorExtractionService builds an ExtractedColors instance and saves
it as a String in LauncherProvider.
- When the results are saved, Launcher gets a callback through
LauncherProviderChangeListener and reloads the ExtractedColors.
- Whenever Launcher loads Extractecolors, it also re-colors items
(currently a no-op).

Change-Id: I319e2cfe0a86abcbc6bb39ef6b9fbbcad54ad743
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
93f878c1686f0438f399353b6fa61ac256f89e6d 31-Mar-2016 Sunny Goyal <sunnygoyal@google.com> Fixing the loader to bind the first screen as well as the hotseat together

When the loader ran for the first time (or when called due to force-reload),
it was binding with page = -1 (invalid pageId is -1001). This was causing loader
to assume the workspace to be on a valid screen, and causing the loader to
only bind the hotseat first.

Bug: 27705838
Change-Id: Ia8eb2543d8cee1268256b2d6bccf33828937c54a
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
784f9c39962721511f19bd3ef929abd7e91fa411 24-Mar-2016 Sunny Goyal <sunnygoyal@google.com> Setting stable layout flags on the launcher, so that the instets do not
change for launcher when going in/out of another app

Bug: 27600678
Change-Id: Ic873faba99c539025769d911bc7b0a4fed629cd7
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
d5bd67dfa9ee5fda2384a75231b7a68ceb8e9bd5 11-Mar-2016 Sunny Goyal <sunnygoyal@google.com> Adding support for result callback when starting uninstall-application activity

Change-Id: Ieaca4fbd0ae0156f24c8863ccbef61d4d6d30ba1
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
ef0ac88e0b1ea3601308d5ee7afc1c6d99365e5c 21-Mar-2016 Sunny Goyal <sunnygoyal@google.com> Merge "Removing dependency on wallpaper size settings from launcher" into ub-launcher3-calgary
3bbbabc54ac73a4451b0a862a3faac6426b1b7b4 15-Mar-2016 Sunny Goyal <sunnygoyal@google.com> Fixing model being updated on UI thread

> When package gets unavailable or suspended, the disabled flag was getting
updated on the UI thread. This could lead to inconsistent model if launcher
activity didn't exist.
> Fixing: When unsuspending one work profile apps, all work profile apps get
unsuspended

Bug: 27673573,27673373,27403236
Change-Id: I7fde3f79c36204e73ca66ccf8431fa0f0cce3d08
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
6f866095c0177a794050e578f148b640f4e0a0ab 18-Mar-2016 Sunny Goyal <sunnygoyal@google.com> Removing dependency on wallpaper size settings from launcher

> Moving wallpaper desired width calculation to xml

Bug: 14470153
Change-Id: I8803af158861507a40e5d55e9aa6d515be47eefa
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
05c8c57fa72a81f34058036f6dc30c084ca6742b 17-Mar-2016 Sunny Goyal <sunnygoyal@google.com> Removing dependency on LauncherCallbacks for getting the search bounds

> Instead of handling insets in BaseContainerView, directly applying
them to margins, as that scpace can't be used for scroll handling
> Appliying the top and bottom padding in xml
> The left & right padding is defied in xml which is reused for scroll
handling

Bug: 27108154
Change-Id: Ia32e6d5e8fd1bfafb1d77d1244ce2268e4da9df9
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
16466f1bbb935d56c01b10551ead416feb7fc943 10-Mar-2016 Sunny Goyal <sunnygoyal@google.com> Adding UI tests for various bind widget flows

Change-Id: I634302051886baee6b6424f69bc95db860b4823e
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
44d0b5355d2dd39f6d1b0349bc3685ec4573a04a 14-Mar-2016 Sunny Goyal <sunnygoyal@google.com> Closing folder in onSaveInstanceState

folderInfo.isOpened is part of static model, where is the open folder
state is part of the UI. This resets the static model, when the
UI is about to be reset
This also causes the folders to get closed when launcher gets hidden

Partial revert of: Ie1318b82b497957b99603b11ec338dd50d51b962

Bug: 27596291, 24900496, 27624924
Change-Id: I30c2bb99a19fdd95a1b997d07066f80be812e2c0
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
d856074d90b31390f1a70d09fde374cae925bf20 10-Mar-2016 Sunny Goyal <sunnygoyal@google.com> Merge "Changing the widget loading strategy" into ub-launcher3-calgary
2e1efb480a9b77a97cb623d4f5faf6802a417422 04-Mar-2016 Sunny Goyal <sunnygoyal@google.com> Changing the widget loading strategy

Widget is loaded only when the user enters the overview mode and we keep
the list updated as long as the user is in the overview mode. Once the user
leaves the overview mode, we stop responding to widget updates

Bug: 26077457
Change-Id: I9e4904b8f1300bfe0d77e2bc5f59aa6963fad8d1
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
8fd5e938d34ee84d076b5c5d2575cc6c46c254ce 09-Mar-2016 Hyunyoung Song <hyunyoungs@google.com> Add getUserEventLogger to LauncherCallbacks
b/26494415

Change-Id: I8abaaf1269c12435a523e31bf769991018ea5c02
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
dadb304b4682998c43b9c07bef45b9a9380f3287 24-Feb-2016 Tony Wickham <twickham@google.com> Pinch to zoom out into overview mode.

There are 3 classes coordinating the gesture: PinchToOverviewListener,
PinchThresholdManager, and PinchAnimationManager.
- PTOL listens for the pinch gesture on DragLayer.
- When a pinch is detected, the PTOL keeps track of the interpolated
progress and passes it along to both the PTM and PAM.
- The PTM uses the progress to determine whether a new threshold has
been passed, and tells the PAM to animate it if so.
- The PAM uses the progress to animate things like workspace scale
throughout the pinch.
- If the pinch ends early, the PTOL uses the last passed threshold to
determine whether to animate to workspace or overview, and tells
PAM to perform the animation at the same velocity as the pinch.

Bug: 24414635
Change-Id: I9e53706c705f8b2982409bf7c223d8d0e9618bf0
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
efca0279eb927faebffc38c8382818df67fcd159 25-Feb-2016 Adam Cohen <adamcohen@google.com> Switch all folder preview rendering to be programmatic (ie. no assets)

-> Refactored the preview background rendering to be much more self-contained.
This cleans up a lot of code in the CellLayout, and keeps the logic in the
right place.
-> We switch to software rendering for performance and compatibility reasons.
-> Removed all assets.
-> FolderIcon accept animation includes animation of the clipped region.
-> 1:1 hand-off of drawing of the FolderIcon background between the FolderIcon
and the CellLayout. Unfortunately, CellLayout rendering is still required
to work around clipping issues (due to use of software layer). We also
need this to support folder creation feedback.

Change-Id: Ib8f7fa6359dfedff8145f38dd50ba03849ca0d51
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
6646016ff5d3126ca508ed7d59e4c547e47609b3 26-Feb-2016 Sunny Goyal <sunnygoyal@google.com> Merge "Adding overlay interaction support" into ub-launcher3-calgary
38138ddcca4e5c6909ca8f7a4bb24621c063a3a6 25-Feb-2016 Sunny Goyal <sunnygoyal@google.com> Merge "Removign optimations in onDestroy" into ub-launcher3-calgary
c86df470ab360a6e3f7edfd4b9cadcc5c31734f8 25-Feb-2016 Sunny Goyal <sunnygoyal@google.com> Adding overlay interaction support

> Sending unboundX to the overlay which is the total untranslated X and not just deltaX from last frame
> Handling overlay callback and translating workspace accordingly

Change-Id: I3bd8d9efac738e9ce131758f0e5ff1b9c1d6a8fc
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
bc545eefc59101554df73c3d1ed470e95025292e 25-Feb-2016 Sunny Goyal <sunnygoyal@google.com> Merge "Preserving the homescreen rotation setting on a tablet, when the display is scaled" into ub-launcher3-calgary
4f8071b759fd54bc6d271ea450af00fe0730baea 14-Feb-2016 Adam Cohen <adamcohen@google.com> Cleaning up folder icon drawing

-> Tracking individual drawing parms for each item
-> This enables animation of the preview items as the preview changes

Change-Id: I1b8f650cb28dc09cfb921bbdc93f2a3db61178fd
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
8f3819bc51bba9e1c9a338827474a9b6e6dd07db 23-Feb-2016 Sunny Goyal <sunnygoyal@google.com> Preserving the homescreen rotation setting on a tablet, when the display is scaled

Bug: 27040652
Change-Id: I07f5e02443379ac5b877f72d33cedf4f2feca926
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
32554d1c6169df944f651846c64096f8bb57fb31 04-Dec-2015 Sunny Goyal <sunnygoyal@google.com> Cleaning up the overlay interface

Removing some unnecessary and unused methods

Bug: 25993953
Change-Id: I4d715cdee04eb7b0ebef673d885a4258c521ff1f
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
261194387beebaa7927ec4e310274218b651494d 18-Feb-2016 Sunny Goyal <sunnygoyal@google.com> Revert "Reverting refactoring of Folder and FolderIcon to avoid dependencies breakage"

This reverts commit fc956e5a2a818c06ed3424e15b0aa20a3f604658.

Change-Id: Ib3b5156b8fc3cad35c4634d61d5390c848ce1f93
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
fbf19cccd293ca23cbed38eaa25abc6ea72be83e 19-Feb-2016 Hyunyoung Song <hyunyoungs@google.com> <UserEventLogging> Log app launches
b/26494415

1) Current Logger can capture taps from
- homescreen
- folder inside homescreen
- apps prediction
- all apps a-z
- tap from hotseat
2) Deprecate LauncherCallback methods that is no longer needed

Future CL.
3) Stats and Logger will be merged. Bundle used for Stats can be
replaced with LauncherLogProto
4) Logging anything else other than app launches

Change-Id: Id52eb615f66142017b5c490a220ce6654d325681
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
b347535cb09c5a7bebf0c928d9842236e43cd4b5 19-Feb-2016 Sunny Goyal <sunnygoyal@google.com> Merge "Deleting the WallpaperPicker code inside launcher. Instead linking it to the packages/apps/WallpaperPicker project" into ub-launcher3-calgary
4759760bc997a00166f06b124f8e09181566a834 19-Feb-2016 Sunny Goyal <sunnygoyal@google.com> Removing LauncherCallbacks control over app search
am: c42ac0a5a6

* commit 'c42ac0a5a6f0a4e41a9fc1b694f841204ae1989c':
Removing LauncherCallbacks control over app search
c42ac0a5a6f0a4e41a9fc1b694f841204ae1989c 19-Feb-2016 Sunny Goyal <sunnygoyal@google.com> Removing LauncherCallbacks control over app search

Change-Id: Icb199607dea3f169055e44946272aa9f1e758d1d
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
bd822508e57fd379556ea318b16959c7e48a335b 19-Feb-2016 Sunny Goyal <sunnygoyal@google.com> Deleting the WallpaperPicker code inside launcher.
Instead linking it to the packages/apps/WallpaperPicker project

Change-Id: Ib6830b180a22c22afece01e0a4f6e94e89d6452b
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
ecd365293fedf8b78cf1e8df0b9d93968c9910ba 18-Feb-2016 Sunny Goyal <sunnygoyal@google.com> resolve merge conflicts of 2953833bcb to ub-launcher3-calgary

Change-Id: Ia7fc406d1e287974e87979af9a4b1f5f1e4e23d9
2953833bcba6c4aba3c5211bfb41434321ce255f 18-Feb-2016 Sunny Goyal <sunnygoyal@google.com> Adding a utility method to iterate over folder contents

Change-Id: I9f17ade7dc06819587290387b811d828da57b2fb
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
f63c46bf5e304c36fc15fa4f15af9cb98fde762d 18-Feb-2016 Sunny Goyal <sunnygoyal@google.com> Merge "Revert "Temporarily disabling custom search controller"" into ub-launcher3-calgary
f51084c29643929849d6ee903be9f9071e77f4b6 18-Feb-2016 Sunny Goyal <sunnygoyal@google.com> Revert "Temporarily disabling custom search controller"

This reverts commit 954b7d36b96190b5b81e1784aaa5bb40057a8bca.

Change-Id: If304fa164e50f68aac168ede0f4bc0ff97659a8a
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
fc956e5a2a818c06ed3424e15b0aa20a3f604658 17-Feb-2016 Sunny Goyal <sunnygoyal@google.com> Reverting refactoring of Folder and FolderIcon to avoid dependencies breakage

Change-Id: Ifd0d717d70aff4c83c9eb5cba397d04500b2c869
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
f9c184a619e4e4b82cf9e0bf318ca6d8deaaaee7 16-Jan-2016 Adam Cohen <adamcohen@google.com> Refactor FolderIcon to separate the preview effect into it's own class

-> Created com.android.launcher3.folder package to house most folder-related files
(aside from the FolderInfo) which is more related to the model than the UI.

Change-Id: I767063e1e4c775c01a799a3bede30cd94ac48ade
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
d365ed6952fea7bbf23ff8005170efd8844c11ff 12-Feb-2016 Sunny Goyal <sunnygoyal@google.com> Removign optimations in onDestroy

> Workspace is still being held at
Launcher > DragLayer > DragController > DragListeners
> The activity is not GCed immediately whith/without this optimization
> No momory/GPU change with/without this optimization

Change-Id: I9466ed47adbac717954d1998951937b04bc4cfd5
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
e759e4de5fb05081cc532deef93457866d85de8b 11-Feb-2016 Sunny Goyal <sunnygoyal@google.com> Merge "Separating out Launcher3 resources from Wallpaper resources" into ub-launcher3-calgary
954b7d36b96190b5b81e1784aaa5bb40057a8bca 11-Feb-2016 Sunny Goyal <sunnygoyal@google.com> Temporarily disabling custom search controller

Change-Id: I7920425a63e64cd619349895e8e7e1c8448305f5
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
5abb9f88efc42ce7c5b34f21944bc119ecb57cec 10-Feb-2016 Sunny Goyal <sunnygoyal@google.com> Separating out Launcher3 resources from Wallpaper resources

Change-Id: I7e33c83df8b16e8552fe588cadbcf3bf7881cb95
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
7c50b31f57e3e3ec1f433d243afe05554dcaf977 10-Feb-2016 Sunny Goyal <sunnygoyal@google.com> resolve merge conflicts of 3826bab27e to ub-launcher3-calgary.

Change-Id: I14ff2d67de4ba97628bdf651602724f9f4989173
3826bab27ef3e7608aba112bd0f5ce2e7c3eac5b 10-Feb-2016 Sunny Goyal <sunnygoyal@google.com> Merge "Merging search bar with all apps" into ub-launcher3-burnaby-polish
0ac7ede56afebe4401c0636196f5844be573ad68 29-Jan-2016 Sunny Goyal <sunnygoyal@google.com> Merging search bar with all apps

Change-Id: I78577124cd3c05d52669c3e52b0294d6eb1d194d
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
f87b8e3b6b51f0c35185e154bb6301adae024ece 08-Feb-2016 Tony Wickham <twickham@google.com> Merge "Tweak spring-loaded workspace." into ub-launcher3-calgary
e0c332365604976d999eb25d4bdcc49ec75b7a1c 08-Feb-2016 Tony Wickham <twickham@google.com> Tweak spring-loaded workspace.

- No page indicators in spring-loaded mode
- Don’t move workspace up as high
- Scale workspace at 90% instead of 80% on phones
- Increase speed of workspace -> spring-loaded -> workspace
- Widgets were being scaled down twice when dragging from widget picker
- Don't scale up icons when dragging (scaling other stuff down is enough)
- Make scrim less dark and panels more transparent
- Thin white border around page instead of highlight when hovering

Change-Id: I963e91c20d4c0340480d165e0f3b8064783c0cb2
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
a27d7a5a194846a3c98fa69495e627db2343f6db 04-Feb-2016 Hyunyoung Song <hyunyoungs@google.com> Add more debugging info when Launcher deletes widget from homescreen.
b/26219491

Change-Id: I5899cafa8d78e5e64a4ec1495ebf62ebc55ea8f5
(cherry picked from commit 70264a971797116dcb16e18551d5c35bb011ed0f)
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
70264a971797116dcb16e18551d5c35bb011ed0f 04-Feb-2016 Hyunyoung Song <hyunyoungs@google.com> Add more debugging info when Launcher deletes widget from homescreen.
b/26219491

Change-Id: I5899cafa8d78e5e64a4ec1495ebf62ebc55ea8f5
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
ff05f4375dd47242d7e4864287e0d5af8ac8ba8f 22-Jan-2016 Kenny Guy <kennyguy@google.com> Respond to managed profile availabilty Intents.

Grey out applications when managed profile is
not available.

Change-Id: I9bb9442cd0b3d0d207062716bfd6b179e3ba8489
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
44cba696386b44f9115cad13ec9ecf67a0ac9119 21-Jan-2016 Kenny Guy <kennyguy@google.com> Grey out suspended applications.

Grey out application shortcuts and all apps entries
for packages that are suspended.

Bug: 22776761
Change-Id: I1b63da1816aca1de52b9f9bee62d1b162d0cdf4d
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
d7d5bd878ac95632f9a97325358238a0acc10845 19-Dec-2015 Sunny Goyal <sunnygoyal@google.com> resolve merge conflicts of ffa1237698 to ub-launcher3-master.

Change-Id: I65beecb5bbbfe9c4b33d6ca639118cb615c4120a
ffa123769807675869819037676717585d3fe647 18-Dec-2015 Sunny Goyal <sunnygoyal@google.com> Merge "Using SharedPrefenrece.apply instead of commit to prevent disk IO on main thread" into ub-launcher3-burnaby-polish
13f682f74ec46bd07358d51a52e064fd6221f0fb 18-Dec-2015 Sunny Goyal <sunnygoyal@google.com> Fixing some invalid checks and cleaning some redundant conditions
am: b740f59c7d

* commit 'b740f59c7d572d54402e3a74fb2a23c0f1b1af48':
Fixing some invalid checks and cleaning some redundant conditions
b740f59c7d572d54402e3a74fb2a23c0f1b1af48 18-Dec-2015 Sunny Goyal <sunnygoyal@google.com> Fixing some invalid checks and cleaning some redundant conditions

Change-Id: I770ce2cc2eccbee105958634e81bbc9bc2e4cc48
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
d80439875557e8c94052e5b0f0327b656370b5fd 18-Dec-2015 Sunny Goyal <sunnygoyal@google.com> Using SharedPrefenrece.apply instead of commit to prevent disk IO on main thread

Bug: 25903149
Change-Id: Ib1ee3fd27cca14f147f704aec768a330c4f03b33
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
08442b84a25a22f3f21aad89ed5a6adccaa2166d 22-Oct-2015 Sunny Goyal <sunnygoyal@google.com> Preserving the open folder state across rotation

Bug: 24900496
Change-Id: Ie1318b82b497957b99603b11ec338dd50d51b962
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
5ad0cd5e89f9edcdd0d9f695d5633eccdfb30d74 08-Dec-2015 Sunny Goyal <sunnygoyal@google.com> Recreating QSB when the widget host gets reset
am: 655daaed3e

* commit '655daaed3ef8a68deaae5f72acbc1fc444cc54d6':
Recreating QSB when the widget host gets reset
655daaed3ef8a68deaae5f72acbc1fc444cc54d6 08-Dec-2015 Sunny Goyal <sunnygoyal@google.com> Recreating QSB when the widget host gets reset

Bug: 25073414
Change-Id: Ibdaa2b330ef7989cb7c93d64a05c8f6e5b26594a
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
0f97b7874fe29f36e7a40d2fe4b45d1e0e24fe1b 03-Dec-2015 Tony Wickham <twickham@google.com> Added config_springLoadWorkspace to enable/disable spring-loaded workspace.

- Added side hints back
- Only scale down icons if spring-loaded
- Only show App Info drop target if spring-loaded

Change-Id: I4b0dddccbe0e80b7ceb6b7266fc527f757744148
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
11c45f114165330ea9c895ca6fdf83fdaa2e5fad 04-Dec-2015 Tony Wickham <twickham@google.com> Merge "Add appropriate (tiny) offset to widget drops so they land correctly." into ub-launcher3-burnaby-polish
am: 8db5d7ca60

* commit '8db5d7ca60e79f007bfce7952c15c74d0ee44bc0':
Add appropriate (tiny) offset to widget drops so they land correctly.
a501d49a6a8b684bc83aa6b536f43247d75bacdf 04-Nov-2015 Tony Wickham <twickham@google.com> Add appropriate (tiny) offset to widget drops so they land correctly.

Also removed some unused parameters I found on the way.

Bug: 25191623
Change-Id: Ib9a30db106467c114cc8b54a5b13ed3e88162d56
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
b23bb416d0ad2d21eab495afb3dc0237c8d81d45 25-Nov-2015 Sunny Goyal <sunnygoyal@google.com> Merge "Allowing widgets to be focusable" into ub-launcher3-burnaby-polish
am: d007d0722c

* commit 'd007d0722c782266f494806e750c24208d6d3ca5':
Allowing widgets to be focusable
d007d0722c782266f494806e750c24208d6d3ca5 25-Nov-2015 Sunny Goyal <sunnygoyal@google.com> Merge "Allowing widgets to be focusable" into ub-launcher3-burnaby-polish
2ef6abc0919581ab66b3ca08321c8c7886ff3bc9 25-Nov-2015 Tony Wickham <twickham@google.com> Merge "Skip to the end of the folder open animation in battery saver mode." into ub-launcher3-burnaby-polish
am: 6e83dc4031

* commit '6e83dc4031b78ac6e65102b2d936e9e769686fec':
Skip to the end of the folder open animation in battery saver mode.
6e83dc4031b78ac6e65102b2d936e9e769686fec 25-Nov-2015 Tony Wickham <twickham@google.com> Merge "Skip to the end of the folder open animation in battery saver mode." into ub-launcher3-burnaby-polish
0c34443406cd441566dd1d51d05a431a974f8edd 24-Nov-2015 Sunny Goyal <sunnygoyal@google.com> resolve merge conflicts of 7bce5f7988 to ub-launcher3-master.

Change-Id: Id352ce219bed7701956bb462ea2dd0a5aebe7317
7bce5f7988d63e6f64db4b8482f781cc63820246 24-Nov-2015 Sunny Goyal <sunnygoyal@google.com> Tying LauncherAppState lifecycle with LauncherProvider

The content provider is the first component started with the main process,
which makes it ideal for initiating LauncherAppState

Change-Id: I03db82a8949ad1376af53a0033592f421dbf0b15
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
ed3563a279ea270ae70d3be115b676e0363eb052 23-Nov-2015 Sunny Goyal <sunnygoyal@google.com> Merge "Setting statusbar and nav bar colors in theme instead of code" into ub-launcher3-burnaby-polish
am: 4ee66259eb

* commit '4ee66259eb7835bfcf3747596e068319e1e3c677':
Setting statusbar and nav bar colors in theme instead of code
4ee66259eb7835bfcf3747596e068319e1e3c677 23-Nov-2015 Sunny Goyal <sunnygoyal@google.com> Merge "Setting statusbar and nav bar colors in theme instead of code" into ub-launcher3-burnaby-polish
667e4a6ad2a06c5a21d0a38671476329c1c4c2d1 19-Nov-2015 Tony Wickham <twickham@google.com> Merge "Stop requesting focus on folder if it was closed without animating." into ub-launcher3-burnaby-polish
am: 55bd16bfdc

* commit '55bd16bfdce57772691519fb894b95c7f088846e':
Stop requesting focus on folder if it was closed without animating.
30bdd6eb6994b89c99f3adaebd1de131d68d0545 18-Nov-2015 Tony Wickham <twickham@google.com> Stop requesting focus on folder if it was closed without animating.

Bug: 25092436
Change-Id: Ia6b72ec8c9fa02fc159457b81fef12f6fd394769
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
112ac95571c9b81921a912d67b9c369fb523a235 12-Nov-2015 Tony Wickham <twickham@google.com> Skip to the end of the folder open animation in battery saver mode.

Bug: 25666809
Change-Id: I867d56a34fc5e0ad6aaabd8b6df47be05ec31966
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
c1ff24c0779d40ac5dcadc05ce51b7056a4286bb 30-Oct-2015 Tony Wickham <twickham@google.com> resolve merge conflicts of a3c74d10a7 to ub-launcher3-master.

Change-Id: Ibeb2499ac278e4094a2922501cfffad2489e58ed
25c2e3ef07bda7df1e591cf9cdf9f6512ee2dbf7 29-Oct-2015 Sunny Goyal <sunnygoyal@google.com> Allowing widgets to be focusable

> Pressing 'enter' enters the focus inside the widget.
> If the widget has only one focusable, it directly performs click
> Pressing 'esc' brings the focus back to the parent host.

Bug: 25199581
Change-Id: Ia7fd5d929f5945d61173abd349660a5efbe74afc
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
a3c74d10a7d6e2ae8520e73176f939011e726ccf 23-Oct-2015 Tony Wickham <twickham@google.com> Setting correct height for search bar widget options bundle.

- Seperate search bar height from its top and bottom paddings
- Report this height plus 8dps top and bottom for the widget options
- Use a separate bottom padding to adjust spacing between QSB and
the workspace
- Add tests to verify the height of the search bar in both normal and
tall modes (ran on Nexus 6, 7, and 10)
Change-Id: Ia7557785d1b38194eee869d0460456e8f33447d5
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
097db343a47df5e70692f485a034e179f9a32fe7 28-Oct-2015 Sunny Goyal <sunnygoyal@google.com> Setting statusbar and nav bar colors in theme instead of code

Change-Id: I4da50809d14f5fa4e47df47fcfd99df7b713950d
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
653fa678882895eea227602f0115d8a5fda82d63 27-Oct-2015 Tony Wickham <twickham@google.com> Merge "Add null check in Launcher onNewIntent() before moveToDefaultScreen()." into ub-launcher3-burnaby-polish
am: c3d76582b6

* commit 'c3d76582b656fdabc92a470ebe0d986b58c44751':
Add null check in Launcher onNewIntent() before moveToDefaultScreen().
c3d76582b656fdabc92a470ebe0d986b58c44751 27-Oct-2015 Tony Wickham <twickham@google.com> Merge "Add null check in Launcher onNewIntent() before moveToDefaultScreen()." into ub-launcher3-burnaby-polish
c1739096b44770cd9a3894970f9e86b29043ead9 26-Oct-2015 Tony <twickham@google.com> Add null check in Launcher onNewIntent() before moveToDefaultScreen().

There is a race condition that occurs primarily (maybe entirely) with
Android Auto, it seems because they hijack the Home intent or something
similar. I'm not exactly sure how Android Auto works, but if I pair my
phone with the Desktop Head Unit (car dashboard emulator), I can repro
the NPE fairly easily by simply force closing Android Auto and then
disconnecting my phone from the DHU. If I don't force close Android
Auto, then pressing home launches Android Auto or other apps that I
assume handle some custom intent, such as Car Home Ultra, instead of
normal Home intents such as Launcher3/Google Now Launcher. So I think
what's happening is that, when the phone is disconnected from the car,
Android Auto restores and launches the real home intent (Launcher 3)
around the same time that it destroys the previous home intent
(Android Auto, Car Home Ultra, etc.). This could cause the NPE if both
intents are actually Launcher 3, as is the case when Android Auto is
already closed, because mWorkspace is set to null in
Launcher#onDestroy() (something like onNewIntent() --> post() called
--> onDestroy() --> post() runs). This is consistent with the fact
that I can guarantee a repro if I use postDelayed() instead of post().

Long-winded explanation aside, I think this fix is safe, especially
since we already have a null check for mWorkspace in onNewIntent(),
just not inside the post().

Bug: 24610231

Change-Id: I42f75b83946f375d947be1961a1f2a03a3707a84
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
c1763b24fc7ea6d23087197d6091c56916a51e17 23-Oct-2015 Tony Wickham <twickham@google.com> resolve merge conflicts of 52040c2d51 to ub-launcher3-master.

Change-Id: Ie3cf72ef11b43e2c681d6d614c668062c7e7b74c
52040c2d51d9c4d1bfaeda8e067deb7655099840 23-Oct-2015 Tony Wickham <twickham@google.com> Merge "Set search bar height before setting up views in Launcher." into ub-launcher3-burnaby-polish
6f0f35806f860b9e4a4513ac219e2c5cd1ee56cd 21-Oct-2015 Sunny Goyal <sunnygoyal@google.com> Do not animate folder when it is closed while changing activity state
am: 935fca1857

* commit '935fca185741e51ab634e5df63c6369d2d55dba5':
Do not animate folder when it is closed while changing activity state
935fca185741e51ab634e5df63c6369d2d55dba5 13-Oct-2015 Sunny Goyal <sunnygoyal@google.com> Do not animate folder when it is closed while changing activity state

Bug: 21733536
Change-Id: I36aa3041b9300c917e320b511e00a1721e44f854
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
eef443248a86bdb2dc5c21e81d3eeaef67a695bc 20-Oct-2015 Tony Wickham <twickham@google.com> Set search bar height before setting up views in Launcher.

This ensures that the QSB widget options are set correctly the first
time they are used.

Bug: 24704753
Change-Id: I2bb13ff012b6f13ca076deed61f0b08a7037e2fa
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
f912beb2ee4b75af1fe8c710d6948b9737fed531 20-Oct-2015 Sunny Goyal <sunnygoyal@google.com> resolve merge conflicts of fe3db428ab to ub-launcher3-master.

Change-Id: Icc60a61f621fefe9db67b178921e62f7d72d7e5a
f725824fa2091cab44cf1bcbfe5b5b8d06475560 20-Oct-2015 Sunny Goyal <sunnygoyal@google.com> Refactoring getPreferenceKey method

This method was returnning a constant and getting inlined by proguard.

Change-Id: I87348e25b21483adc1b27d16f99dec4b73205701
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
8385e7188d66f632ac471ce3750bae3c199740bc 16-Oct-2015 Tony Wickham <twickham@google.com> Add LauncherCallbacks method to add additional search widget options. am: 775455c4a8
am: f79d347a61

* commit 'f79d347a615023d9db721e6483d08033aaabd575':
Add LauncherCallbacks method to add additional search widget options.
f79d347a615023d9db721e6483d08033aaabd575 16-Oct-2015 Tony Wickham <twickham@google.com> Add LauncherCallbacks method to add additional search widget options.
am: 775455c4a8

* commit '775455c4a8266655bf43b943e969d42ac32609ec':
Add LauncherCallbacks method to add additional search widget options.
775455c4a8266655bf43b943e969d42ac32609ec 16-Oct-2015 Tony Wickham <twickham@google.com> Add LauncherCallbacks method to add additional search widget options.

Bug: 25000458
Change-Id: I5e8d48617568569bc6e4f284749c3ed9fb20a68f
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
9ccb94b6e4613ee717550416db2b456d9f17702e 15-Oct-2015 Tony Wickham <twickham@google.com> resolved conflicts for a8709ddb to ub-launcher3-master

Change-Id: I172395e6e172914627b6dec721070a66520557b1
a8709ddbbf6338d71625ee1eef96e42bee042b31 15-Oct-2015 Tony Wickham <twickham@google.com> Merge "Fix "The specified child already has a parent" IllegalStateException." into ub-launcher3-burnaby-polish
a0628cc521614835933db74ba5a2536a936629c5 15-Oct-2015 Tony Wickham <twickham@google.com> Fix "The specified child already has a parent" IllegalStateException.

The problem was due to a race condition between removing a prebound
widget view from the drag layer and adding the same view to the
workspace upon dropping it; if you let go of the widget immediately
after picking it up, the latter happened before the former.

Specifically, the flow was: long-click a widget --> drop --> remove
the view from the drag layer if it's not null (it is, so nothing
happens) --> the view is finally bound/inflated and added to the drag
layer --> add the view to the workspace --> already has a parent.

There are actually 2 problems here: one is that the bind/inflate is
asynchronous, and can therefore happen after dropping the widget view
being inflated, and the other is that the view is added to the
workspace even though the transition has barely started (we usually
ignore drops if the transition is less than half complete). It turns
out that this second problem was also due to a race condition, this
time between dropping a widget or app onto the workspace and calling
LauncherStateTransitionAnimation.dispatchOnLauncherTransitionStart().
If the drop happened before the dispatch, as in the case of the
crash, then the drop was accepted because the transition progress was
still 1.0 from the previous transition.

I fixed the first problem by removing the drag layer widget view
in Launcher where it is potentially used instead of Workspace. And I
fixed the second problem by setting mTransitionProgress to 0 in
Workspace.onLauncherTransitionPrepare().

I also added some debugging logs.

Bug: 23896857
Change-Id: I66944e6d3f23b70dea15f7fb01af0763a1bfcbda
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
9a9765924fcc1171b447f2bb689db5cd888df7e3 14-Oct-2015 Sunny Goyal <sunnygoyal@google.com> am 44b48f77: am 28c6b963: Showing a permission prompt for direct call shortcuts

* commit '44b48f77027c386885ed459de501f9d822abac9c':
Showing a permission prompt for direct call shortcuts
44b48f77027c386885ed459de501f9d822abac9c 14-Oct-2015 Sunny Goyal <sunnygoyal@google.com> am 28c6b963: Showing a permission prompt for direct call shortcuts

* commit '28c6b963d4ccac73ab857c839420513dd560945c':
Showing a permission prompt for direct call shortcuts
6e6a9b4b54ecf4b5645aedf89ff02241ec49ad1f 14-Oct-2015 Winson <winsonc@google.com> resolved conflicts for e9f27273 to ub-launcher3-master

Change-Id: I96b062c3309eadf4d41a5f00ea74740bab78b358
e9f27273855d50b54b654ef3a3056136e3f2668b 13-Oct-2015 Winson <winsonc@google.com> Fixing issue with overview panel buttons.

Bug: 22699895
Change-Id: I8a2f05a6008343327e34cbd3169e4056729e0b75
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
1636cddbb48d0ad45028efa8756f205e78936261 12-Oct-2015 Tony Wickham <twickham@google.com> resolved conflicts for f685c7e5 to ub-launcher3-master

Change-Id: Iddf78c166f9ab89ffae2ddc819c9ba5cf5e988be
28c6b963d4ccac73ab857c839420513dd560945c 12-Oct-2015 Sunny Goyal <sunnygoyal@google.com> Showing a permission prompt for direct call shortcuts

Bug: 24580949
Change-Id: Idc92f9f5979a730f43b4905af2bc47b6834dc7a7
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
f685c7e5f7750ddb1ca3d5f52343b92cb99fc130 10-Oct-2015 Tony Wickham <twickham@google.com> Merge "Actually call LauncherTransitionable.onLauncherTransitionStep()." into ub-launcher3-burnaby-polish
a72f49cfc466c5b57032405cb0e42e7140764323 09-Oct-2015 Tony Wickham <twickham@google.com> resolved conflicts for fa3c369c to ub-launcher3-master

Change-Id: I6bfc3d3b731a414060d86d4f1dfc5480c279edc9
fa3c369cc30345e23b2b90415a3348490dd2a0b2 09-Oct-2015 Tony Wickham <twickham@google.com> am 37860923: Merge "Added launcher callback to specify search bar height." into ub-launcher3-burnaby

* commit '37860923619b1e467975a74764dff03ab657bdc7':
Added launcher callback to specify search bar height.
55616cd363202eccf7a9f9a5af00d12997c24b19 23-Sep-2015 Tony Wickham <twickham@google.com> Added launcher callback to specify search bar height.

The search bar can now be be normal or tall. When it is set to tall,
the hotseat and page indicators move down so that the workspace isn't
compressed quite as much.

Change-Id: Id92a946eab3a93524999f92efd847a501a95f002
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
e2722996e87bd2a469b257e1927b12c4c793b0c0 08-Oct-2015 Sunny Goyal <sunnygoyal@google.com> am 56c73604: Verify that the widget id is valid, before binding the widget

* commit '56c7360497823ed83d4eb04ef32c117e9c5608d6':
Verify that the widget id is valid, before binding the widget
56c7360497823ed83d4eb04ef32c117e9c5608d6 25-Sep-2015 Sunny Goyal <sunnygoyal@google.com> Verify that the widget id is valid, before binding the widget

Bug: 23820213
Bug: 24054205
Bug: 24582322
Change-Id: I25a09b0a2a706812a7d82729b5dc554ffba84a2a
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
439bc06dc0f96ea8677a897285f81e6b3ee3da47 07-Oct-2015 Tony Wickham <twickham@google.com> am d47807d7: am 3a3517fb: Add widget size options for QSB.

* commit 'd47807d7a97d4ab555b2f9be882591c08955d699':
Add widget size options for QSB.
8bc1a13e1bcd603af0ef1860b14fff0bcecb5172 07-Oct-2015 Sunny Goyal <sunnygoyal@google.com> am 95bae9a4: am c84e6e19: Disabling widget debug

* commit '95bae9a43d5192c4f8c3282c56647c6446aa3f72':
Disabling widget debug
cfd9bef6ee9e662cb799d776528ce2d33a40c9cd 07-Oct-2015 Winson <winsonc@google.com> am 44818e07: Fixing regression in removing widgets via accessibility.

* commit '44818e07af5312fac0c97360929c62e599cfd164':
Fixing regression in removing widgets via accessibility.
ccc9a52e4501e7ad99d8ee75356191e135906ed6 07-Oct-2015 Sunny Goyal <sunnygoyal@google.com> am 935eedad: Merge "Do not reinflate/rebind widgets if we are going the rebind the full workspace anyway." into ub-launcher3-burnaby-polish

* commit '935eedad971d6d27521a16501768f06ebd9eb6a6':
Do not reinflate/rebind widgets if we are going the rebind the full workspace anyway.
d306055f2d7750df08d9dfb9f630517e0b43f6eb 26-Jun-2015 Sunny Goyal <sunnygoyal@google.com> Moving a few testing classes to a separate package

Change-Id: Ied1c063de3e938695493e4937f554686e0719dad
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
d47807d7a97d4ab555b2f9be882591c08955d699 06-Oct-2015 Tony Wickham <twickham@google.com> am 3a3517fb: Add widget size options for QSB.

* commit '3a3517fb6c17120c6d11e5c95a0de4e81205d0ae':
Add widget size options for QSB.
3a3517fb6c17120c6d11e5c95a0de4e81205d0ae 06-Oct-2015 Tony Wickham <twickham@google.com> Add widget size options for QSB.

Bug: 24704753
Change-Id: I3e16c1f67a67b08b3843f7f38312447bdfa6a91e
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
0bb211a9d5cd4eabcbf46385bbfb9895e5cd7325 03-Oct-2015 Tony Wickham <twickham@google.com> Actually call LauncherTransitionable.onLauncherTransitionStep().

Previously, it was only called at the start and end of the transition;
now it is called as the animation interpolates. Specifically, a dummy
ValueAnimator is played alongside the transition animation and calls
dispatchOnLauncherTransitionStep() as it goes.

One place where this is important is in Workspace, where
mTransitionProgress is used to determine things like whether the
workspace should accept a drop - hence the bug that caused apps dragged
from All Apps to vanish when dropped before the transition ended.

Bug: 24215358
Change-Id: I32cd633c53557305caf84e87c9a4d4f07eef2223
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
fd4264b2b52e294ccb1326784bdf1df2cd7fe14c 05-Oct-2015 Sunny Goyal <sunnygoyal@google.com> Merge "Jailing the saved instance state of all the dynamically generated views" into ub-launcher3-burnaby-polish
d1a0e8b5c8494945fe48c19fe0e13b6b161b90a7 28-Aug-2015 Sunny Goyal <sunnygoyal@google.com> Jailing the saved instance state of all the dynamically generated views

Using itemId instead of generating a new id for each item. This is because
if the process gets killed, View.generateId will get reset but we will still
receive the generated item id map in onRestoreInstance. This will cause
conflicts with newly generated item ids.

We wrap all the generated homescreen views inside a single sparse array. This
ensures that we do not cause any conflict with dynamically generated views in
other parts of the UI.

Bug: 16840760
Change-Id: I6fe69c2e1dd463402f51222715fae31b9d4dd240
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
95bae9a43d5192c4f8c3282c56647c6446aa3f72 02-Oct-2015 Sunny Goyal <sunnygoyal@google.com> am c84e6e19: Disabling widget debug

* commit 'c84e6e19363c590bbfbac17e9ab7cc61a04d552a':
Disabling widget debug
c84e6e19363c590bbfbac17e9ab7cc61a04d552a 02-Oct-2015 Sunny Goyal <sunnygoyal@google.com> Disabling widget debug

Change-Id: I876a904358ce455c97a7a25a34c66af5e9316469
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
44818e07af5312fac0c97360929c62e599cfd164 02-Oct-2015 Winson <winsonc@google.com> Fixing regression in removing widgets via accessibility.

- Regression was introduced in ag/765323, but not visible in normal
drag and drop because the view is already removed from the parent.
However, when accessibility is enabled, it was only removing it from
the db, but not from the parents.

Change-Id: I37483d0cd6306d270441b11e6f05247d58b88521
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
6bec75fe70d700e4c8e9b0ddfacb132d49b8cc19 02-Oct-2015 Sunny Goyal <sunnygoyal@google.com> Do not reinflate/rebind widgets if we are going the rebind the full
workspace anyway.

Bug: 23820213
Bug: 24582781
Change-Id: I2cb4927916fed64a69100beb41ee14653ea1d70a
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
a13654529cb557abd946da4d4637593565917ecd 02-Oct-2015 Sunny Goyal <sunnygoyal@google.com> Adding some information in bug reports

> Dumping workspace items
> Dumping loader logs for crashes and data deletion
> Removing unnecessary log dumps

Change-Id: Ia320988c2e3665e4d605d6e88bca77738e749273
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
81d5a2227bd0aaf359e72c45a54c5f3d9c9bda27 01-Oct-2015 Winson Chung <winsonc@google.com> am 2c4d2ccd: Merge "Don’t create dummy app info." into ub-launcher3-burnaby-polish

* commit '2c4d2ccd90e60541efffb980b70270d0bfe4e585':
Don’t create dummy app info.
5fbe0746dd0bc8b8ef187c616084e75e0d7c8468 01-Oct-2015 Winson <winsonc@google.com> Don’t create dummy app info.

Bug: 24539514
Change-Id: I5d14a4d9993e072451f8e7ed9a4cea219ae5d246
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
0b90814f8617d4078fc7f7219317a0fc3ac0f0f3 29-Sep-2015 Winson <winsonc@google.com> am c0880491: Highlighting sectioned apps on fast-scroll.

* commit 'c088049113c261331b5685e64050d14a31cd72df':
Highlighting sectioned apps on fast-scroll.
c088049113c261331b5685e64050d14a31cd72df 21-Aug-2015 Winson <winsonc@google.com> Highlighting sectioned apps on fast-scroll.

- This CL fixes an old assumption we had about the height
of rows in AllApps, and ensures that we account for the
difference in height between the predictive icons and the
normal icons.
- In addition, we refactor FastBitmapDrawable to have multiple
states, which it manages in drawing itself, including the
press state and fast scroll focus states. And we also refactor
some of the fast scroll logic in the all apps recycler view
out to its own class.

Change-Id: I1988159b2767df733bbbfc7dc601859cde6c9943
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
aab143fd6543773798ee23c435b83405a2f21f63 26-Sep-2015 Winson <winsonc@google.com> am f768d934: Fixing regression in L3 with search bar transition.

* commit 'f768d934682ba80da89d454543928e629a44103d':
Fixing regression in L3 with search bar transition.
f768d934682ba80da89d454543928e629a44103d 26-Sep-2015 Winson <winsonc@google.com> Fixing regression in L3 with search bar transition.

Change-Id: Ia4155a653012c5d23df21167233fe766e5479347
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
1f832f85d59600fc4c212dec51a5112a6b7427d5 24-Sep-2015 Winson <winsonc@google.com> am 2949fb5b: Fixing talk-back folder icon removal regression.

* commit '2949fb5b16a07259e221c5c04470e90c8afb4ea8':
Fixing talk-back folder icon removal regression.
2949fb5b16a07259e221c5c04470e90c8afb4ea8 24-Sep-2015 Winson <winsonc@google.com> Fixing talk-back folder icon removal regression.

Change-Id: I0b7fff645828d5198500973f1c9ea74f406a1a43
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
1bf14ff6b734032d703c21c60255dacc13c06ec0 24-Sep-2015 Sunny Goyal <sunnygoyal@google.com> am f27cb0e6: resolved conflicts for 8ac727b2 to ub-launcher3-burnaby-polish

* commit 'f27cb0e6b1edb2a53de64fdd12d25f400a3acdd9':
Using custom threadpool executor instead of the one defined in AsyncTask
f27cb0e6b1edb2a53de64fdd12d25f400a3acdd9 24-Sep-2015 Sunny Goyal <sunnygoyal@google.com> resolved conflicts for 8ac727b2 to ub-launcher3-burnaby-polish

Change-Id: I34e679bae7faae3c7ca725263fe6cc7c5611e63a
4362ba6913fe2ec0c3b8a8256b0dc98b178c799c 24-Sep-2015 Winson Chung <winsonc@google.com> am 5a7a1ce0: Merge "Fixing workspace state issue with option menu." into ub-launcher3-burnaby-polish

* commit '5a7a1ce0a7affdff02029793ac24b2581075acee':
Fixing workspace state issue with option menu.
8ac727b2c6627028960a1efe18ab9c72442eef48 24-Sep-2015 Sunny Goyal <sunnygoyal@google.com> Using custom threadpool executor instead of the one defined in AsyncTask

Change-Id: I8fe95d932c5de14c74f0576bfc3d1f641d12b448
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
4616347537efec8b039477e8a1660575a0923c90 23-Sep-2015 Winson <winsonc@google.com> Fixing workspace state issue with option menu.

- Hitting a ctrl key combo will actually call onPrepareOptionsMenu(), which
will change the state of the workspace incorrectly. Instead, listen for
the menu button, and only allow the user to enter overview mode if they
are currently not dragging or in an overlay state (like all apps or
widgets).
- Also making the overview buttons focusable so that they are focused when
you go into overview mode.

Bug: 22483367
Change-Id: Ie6e9febd8a5a4e7ad25d745639d42d1c7b9801b4
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
e04febbf8ec8326edb095d023e494911381cee66 21-Sep-2015 Sunny Goyal <sunnygoyal@google.com> Merge "Moving a few testing classes to a separate package" into ub-launcher3-master
3c9c7263dcd06cba449597104db039a4019e15ff 21-Sep-2015 Adam Cohen <adamcohen@google.com> am 9ae42fff: am b3fff9d9: Merge "Cleanup some incorrect / noisey calls to CustomContentCallbacks#onShow / onHide" into ub-launcher3-burnaby

* commit '9ae42fff6f481ea2a06f171da43f630ded313b69':
Cleanup some incorrect / noisey calls to CustomContentCallbacks#onShow / onHide
9ae42fff6f481ea2a06f171da43f630ded313b69 21-Sep-2015 Adam Cohen <adamcohen@google.com> am b3fff9d9: Merge "Cleanup some incorrect / noisey calls to CustomContentCallbacks#onShow / onHide" into ub-launcher3-burnaby

* commit 'b3fff9d98a3e3c886d4efa912d7ad6753dd7ec9c':
Cleanup some incorrect / noisey calls to CustomContentCallbacks#onShow / onHide
b3fff9d98a3e3c886d4efa912d7ad6753dd7ec9c 21-Sep-2015 Adam Cohen <adamcohen@google.com> Merge "Cleanup some incorrect / noisey calls to CustomContentCallbacks#onShow / onHide" into ub-launcher3-burnaby
4b66bf3cff049ba39da74c0fb0f9edbced410f7c 18-Sep-2015 Adam Cohen <adamcohen@google.com> Cleanup some incorrect / noisey calls to CustomContentCallbacks#onShow / onHide

-> In some instances, onResume would incorrectly call onShow
-> When pressing Home from CustomContent, we'd get a sequence of onHide,
onShow, and then onHide due to some deferred actions in onNewIntent.
Got rid of the onShow.

issue 17629011

Change-Id: I9b4f2ef682f5a7060e68210866fa05452076e428
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
20bd2c10c1d5ead86f472a7397f060159693e4f4 18-Sep-2015 Tony Wickham <twickham@google.com> am 6ed058cb: Wallpaper preview parallax matches the actual wallpaper\'s.

* commit '6ed058cb6bfbb5756721e0d7f4a80a1c08ee665c':
Wallpaper preview parallax matches the actual wallpaper's.
6ed058cb6bfbb5756721e0d7f4a80a1c08ee665c 10-Sep-2015 Tony Wickham <twickham@google.com> Wallpaper preview parallax matches the actual wallpaper's.

Cherry picking the following changes from ub-launcher3-master:
Change-Id: I41c5bbbfdabfeb4e20d77e9b5804842a03211edf
Change-Id: I69afa3f8cc59c77e9c4c25e29e8db8c4beb87462
Change-Id: I82b7ba506d51ee4b3812af5fbdf95d3303b37aef
Change-Id: Id7c2b5483c5535d59be2f8a459ce7788e3c8318a

Bug: 23568800
Change-Id: I343169b9fdc5ceaab3d4b39044627d78b7267868
(cherry picked from commit 3e776a87dc5178ab7d2c31a8db06fe5657db4e4a)
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
fcd19dfcd3afb5f047444e86843d583b8bd53966 18-Sep-2015 Tony Wickham <twickham@google.com> Merge "Ensure that setting a wallpaper snaps to a page." into ub-launcher3-master
e30544196043bec0cd9b33a89594497f94a6f91f 09-Sep-2015 Tony Wickham <twickham@google.com> Ensure that setting a wallpaper snaps to a page.

Previously it was possible to end in a sort of limbo state between pages if the
user free scrolled in the overview before entering the wallpaper picker.

Bug: 23829077

Change-Id: I2837fb46f092efac3b3274043378431963e6eabc
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
26bfdd9d5a0cc590d78a849d3401b52c02494a2c 18-Sep-2015 Winson Chung <winsonc@google.com> am a3c9fb12: Merge "Requiring key chord to delete icons and folders on the workspace" into ub-launcher3-burnaby-polish

* commit 'a3c9fb125c7449df5add990e91e0e3471e3cc776':
Requiring key chord to delete icons and folders on the workspace
a3c9fb125c7449df5add990e91e0e3471e3cc776 18-Sep-2015 Winson Chung <winsonc@google.com> Merge "Requiring key chord to delete icons and folders on the workspace" into ub-launcher3-burnaby-polish
b3cf2d789e0de5d1f70b3f4ffea9cb6926b43d75 18-Sep-2015 Sunny Goyal <sunnygoyal@google.com> Merge "Refactoring deferred bind logic" into ub-launcher3-master
34d2c915c4762a073b60bb676a9e905392e9679c 11-Sep-2015 Tony Wickham <twickham@google.com> Added AppInfoDropTargetBar to spring loaded workspace.

Change-Id: Ieedc68eba9a5934ab30d6d546d8a837274491064
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
527c7d3460345953e6b3427a74b1dacaddcb1111 29-Aug-2015 Sunny Goyal <sunnygoyal@google.com> Refactoring deferred bind logic

> Using ViewTreeObserver to listen for onDraw instead of overriding onDraw in workspace
> Loader passes the list of deferrerd runnables to launcher

Change-Id: Ie4877f746c96e9497396de8089f00f70bf867e17
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
e33c09f1bef2a1452e5126909f472b8f124b4682 15-Sep-2015 Tony Wickham <twickham@google.com> Merge "Initial spring loaded workspace." into ub-launcher3-master
94e0d37f53e699364ebff732cf75ab81a577fb91 11-Sep-2015 Tony Wickham <twickham@google.com> Initial spring loaded workspace.

It is a bit clunky and doesn't have the App Info drag bar at the
bottom yet, but it is a start.

Also removed page hints because they are no longer used.

Change-Id: I1f8f82d33e6694cab1f1c762e78852ac0d40ab33
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
fa56b3f2f1271d6045594eed294b22841c79c783 14-Sep-2015 Winson <winsonc@google.com> Requiring key chord to delete icons and folders on the workspace

- Also fixing case where the all apps button to search for more apps
was not focusable

Bug: 20639227
Change-Id: Ie4d9092e654d3cafc0eb346b3bb744ec3e295e92
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
8a511b9123d9219498a8560b1b19e382ebf8cf61 14-Sep-2015 Tony Wickham <twickham@google.com> Merge "Wallpaper preview parallax matches the actual wallpaper's." into ub-launcher3-burnaby-polish
7089a4e197bb14b01f4c485304f205dcb730ad21 11-Sep-2015 Winson <winsonc@google.com> am c0b52fef: Refactoring to ensure item deletion always removes from the DB.

* commit 'c0b52fefbc11531d560359c093484099f9d1298e':
Refactoring to ensure item deletion always removes from the DB.
c0b52fefbc11531d560359c093484099f9d1298e 10-Sep-2015 Winson <winsonc@google.com> Refactoring to ensure item deletion always removes from the DB.

- Routing the various places where we call through to delete from
LauncherModel through Launcher, which will delegate the removal
of the icon from the workspace, and properly handle the removal
of all items and their contents from the db.

Bug: 23944119

Change-Id: I022fe2b3e79da16b5af87505c4362490b8422686
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
3e776a87dc5178ab7d2c31a8db06fe5657db4e4a 10-Sep-2015 Tony Wickham <twickham@google.com> Wallpaper preview parallax matches the actual wallpaper's.

Cherry picking the following changes from ub-launcher3-master:
Change-Id: I41c5bbbfdabfeb4e20d77e9b5804842a03211edf
Change-Id: I69afa3f8cc59c77e9c4c25e29e8db8c4beb87462
Change-Id: I82b7ba506d51ee4b3812af5fbdf95d3303b37aef
Change-Id: Id7c2b5483c5535d59be2f8a459ce7788e3c8318a

Bug: 23568800
Change-Id: I343169b9fdc5ceaab3d4b39044627d78b7267868
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
10612a7146c6d216e86fcc7db87a8e2e53d3b7d7 10-Sep-2015 Winson <winsonc@google.com> Merge commit '5c6bdbbc27525acc8c49cea6a1de36723a13fac7' into manual_merge_5c6bdbbc

Change-Id: I508bce36edca28ed565338e5173b64eba14e89d4
6b7653d37fb276ff74278efcb9977423f771bbee 03-Sep-2015 Tony Wickham <twickham@google.com> Long-clicking workspace overlay buttons does the same thing as clicking them.

Bug: 15000525
Change-Id: I4123863de888989ad6171cb43001c3ad86c19edb
(cherry picked from commit c75917f12956734fbe93615f5ee27ecad1a46c63)
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
f96b1ad27f1a27bd8ab0cedd35aff2dbf2495a33 04-Sep-2015 Ivan Lee <ivanylee@google.com> am 667d6888: Revert workaround for move to default screen on home intent.

* commit '667d6888f4a7f1a6267c1968f22fdb8ff3af8d34':
Revert workaround for move to default screen on home intent.
5c6bdbbc27525acc8c49cea6a1de36723a13fac7 03-Sep-2015 Winson <winsonc@google.com> Fixing regression, reset AllApps when the screen turns off.

- Now that we are debouncing the workspace state, we were no longer resetting
the all apps view when the screen turns off when the user is already on the
workspace.

Bug: 23759455
Change-Id: I996b595945de96ae6ff2344349027d4722921984
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
6398b88e897e83e2d396a1a0ea5b097fdf570339 03-Sep-2015 Ivan Lee <ivanylee@google.com> am 667d6888: Revert workaround for move to default screen on home intent.

* commit '667d6888f4a7f1a6267c1968f22fdb8ff3af8d34':
Revert workaround for move to default screen on home intent.
667d6888f4a7f1a6267c1968f22fdb8ff3af8d34 03-Sep-2015 Ivan Lee <ivanylee@google.com> Revert workaround for move to default screen on home intent.

BUG=23556755

Change-Id: Ia268a58389b90fd0503e474f02f33a312c051c0e
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
c75917f12956734fbe93615f5ee27ecad1a46c63 03-Sep-2015 Tony Wickham <twickham@google.com> Long-clicking workspace overlay buttons does the same thing as clicking them.

Bug: 15000525
Change-Id: I4123863de888989ad6171cb43001c3ad86c19edb
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
785f7a59d347b199d544d9c9c38f6f3eb26b0085 01-Sep-2015 Tony Wickham <twickham@google.com> Previews in the wallpaper picker are offset to match the homescreen parallax.

When "Wallpapers" is selected from the overlay, the current wallpaper parallax
offset is sent to the WallpaperPickerActivity as an Intent extra. The CropView
then uses that offset when previewing new wallpapers to ensure the preview looks
exactly the same as the actual wallpaper will when set.

Note that this fix doesn't seem to work for DefaultWallpaperInfo - that will
come in a future CL.

Bug: 23568800
Change-Id: I41c5bbbfdabfeb4e20d77e9b5804842a03211edf
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
cc818d0ad597acbe16d020ca71e8bb8fea8278d5 31-Aug-2015 Sunny Goyal <sunnygoyal@google.com> Merge "Jailing the saved instance state of all the dynamically generated views" into ub-launcher3-master
e2824c4ea78631e41c7c82def8bd894684ac3e5f 31-Aug-2015 Winson Chung <winsonc@google.com> am 1b247d9f: Merge "Adding workaround for regression caused by ag/752175" into ub-launcher3-burnaby

* commit '1b247d9f37cd1e9ca9e8c690c137858b66314b79':
Adding workaround for regression caused by ag/752175
1b247d9f37cd1e9ca9e8c690c137858b66314b79 31-Aug-2015 Winson Chung <winsonc@google.com> Merge "Adding workaround for regression caused by ag/752175" into ub-launcher3-burnaby
16615f29f60b180476b3dbdf73936de418e46f10 31-Aug-2015 Winson <winsonc@google.com> Adding workaround for regression caused by ag/752175

Change-Id: I92617c88f17a5827454e147f93d822975587d5b4
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
e2fd14b9f61d58297ff962e8c31f49439e0309a9 28-Aug-2015 Sunny Goyal <sunnygoyal@google.com> Jailing the saved instance state of all the dynamically generated views

Using itemId instead of generating a new id for each item. This is because
if the process gets killed, View.generateId will get reset but we will still
receive the generated item id map in onRestoreInstance. This will cause
conflicts with newly generated item ids.

We wrap all the generated homescreen views inside a single sparse array. This
ensures that we do not cause any conflict with dynamically generated views in
other parts of the UI.

Change-Id: I6fe69c2e1dd463402f51222715fae31b9d4dd240
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
fafd4c276e1a1db8449d1feb46800351adbc3ad6 28-Aug-2015 Sunny Goyal <sunnygoyal@google.com> resolved conflicts for merge of ebfae6e2 to ub-launcher3-master

Change-Id: I1e0d5f1140e910b68322c4f5061d0a3c383899f0
ebfae6e266590d04702441ed630704c5eb4ccaaa 28-Aug-2015 Sunny Goyal <sunnygoyal@google.com> Revert "Adding viewId for the QSB"

Using QSB widget id from xml

This reverts commit 995685913955f33b05fdc0b473df901f2b0652c0.

Change-Id: I33c48cf074f2dc1cf509c2d9f1f19b40b91f6a22
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
bcd2874ab9d2b83172a2ea771dea7a285f72a068 27-Aug-2015 Sunny Goyal <sunnygoyal@google.com> am 195a2983: Merge "Adding viewId for the QSB" into ub-launcher3-burnaby

* commit '195a29834f866806a592bae42c8f16f71b6f64aa':
Adding viewId for the QSB
995685913955f33b05fdc0b473df901f2b0652c0 27-Aug-2015 Sunny Goyal <sunnygoyal@google.com> Adding viewId for the QSB

Change-Id: I4ad6bc8c0d94e60a4d354dfc29f456ca561fc500
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
862ee52bc3ca1b7eebf7c95fdf991a87bd89eefd 27-Aug-2015 Sunny Goyal <sunnygoyal@google.com> am 22aa3813: Pending bind callbacks should be cleared before starting the loader, similar to startBinding

* commit '22aa3813f818e46a096fef6490db2a60f2617eb7':
Pending bind callbacks should be cleared before starting the loader, similar to startBinding
22aa3813f818e46a096fef6490db2a60f2617eb7 20-Aug-2015 Sunny Goyal <sunnygoyal@google.com> Pending bind callbacks should be cleared before starting the loader,
similar to startBinding

Bug: 23310446
Bug: 19422965
Bug: 23304651
Change-Id: I4821b4c0c7796c33ad9691b6735235a220fa635a
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
8f531dd9883443265afba8b94db62e78ce02ca57 26-Aug-2015 Sunny Goyal <sunnygoyal@google.com> resolved conflicts for merge of 20884fdc to ub-launcher3-master

Change-Id: I31b49ed83bf6fa966ad68b587e6fa472e87bc0e3
21bf5314993fdcf972362d14749e63b4ce054807 21-Aug-2015 Sunny Goyal <sunnygoyal@google.com> Removing multi_process access to shared preferences

Change-Id: If802245632c30d4f383013203fb2e0349ebc14fe
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
756cd26592dee6b956becdc24d60995c64de9153 20-Aug-2015 Sunny Goyal <sunnygoyal@google.com> General code refactoring
> Removing utility method for isAttachedToWindow
> Moving logic to calculate cell size from workspace to DeviceProfile
> Replacing some constants with xml resource variables
> Saving the item info using content values for better compatibility with other methods

Change-Id: Idd612633d97a6241cb31148df9466031374bd5a0
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
639e906a0fc205b48512951feec0cbb47513e246 20-Aug-2015 Sunny Goyal <sunnygoyal@google.com> Fixing work folder addition logic
> Showing animation when folder is added
> Not showing animation while cling is visible
> Checking is loader completed from UI thread
> Running bind complete runnables when bind is completed

Bug: 21772992
Bug: 23181585
Change-Id: I50742850da8294a877478ce02b107a026f68b563
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
04540ca9e6ebf859dcff439e30ba4dbefc7bf068 20-Aug-2015 Vadim Tryshev <vadimt@google.com> Merge "Moving drag-drop related code into a separate package." into ub-launcher3-master
fedca43d396d6fd7c46fbb2f37dfa7cfe3b31834 20-Aug-2015 Vadim Tryshev <vadimt@google.com> Moving drag-drop related code into a separate package.

This is per an earlier CR comment "we should probably move all this code to its own package (launcher3.dragndrop) in a separate cl".

I'm not moving DragSource because it's referred from gsa code.

Bug: 22609426
Change-Id: Ia7204dab99c0c395c66b77143a2d60411153f5f3
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
322d55622031985c75f7e5db07964b7730a97dac 26-Jun-2015 Sunny Goyal <sunnygoyal@google.com> Moving a few testing classes to a separate package

Change-Id: Ied1c063de3e938695493e4937f554686e0719dad
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
bf4c1d402eae7408f46e4fe42087e207797d48a8 19-Aug-2015 Winson Chung <winsonc@google.com> am 1cd32a21: Merge "Deferring the move to the default screen until after we callback to the callbacks." into ub-launcher3-burnaby

* commit '1cd32a2144dc1a620e6a22e5a05b489ec86abb18':
Deferring the move to the default screen until after we callback to the callbacks.
1cd32a2144dc1a620e6a22e5a05b489ec86abb18 19-Aug-2015 Winson Chung <winsonc@google.com> Merge "Deferring the move to the default screen until after we callback to the callbacks." into ub-launcher3-burnaby
15f8b17adb36e7345e39cc1c431f8c1abd84f832 19-Aug-2015 Winson <winsonc@google.com> Deferring the move to the default screen until after we callback to the callbacks.

- Since move to default screen starts the scroller immediately, any delays in
handling onNewIntent and onHomeIntent in the callbacks will cause the scroller
to skip frames the next time it updates. This change will defer updating the
page to the default screen until after onNewIntent is called back (and all its
posted runnables).

Bug: 22929080
Change-Id: Ibab6106938721702d4da23faaca99039861e10dc
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
c268148f06f5c6c30deb1678e74530ef5aa85a67 17-Aug-2015 Sunny Goyal <sunnygoyal@google.com> resolved conflicts for merge of 9fc953b9 to ub-launcher3-master

Change-Id: Ia3e845a2e336c846cceefdc2d1e8c6786753f1b1
9fc953b94dbc6b99e6de08c9dcc80a0cb8e3e319 17-Aug-2015 Sunny Goyal <sunnygoyal@google.com> Version code cleanup

> Renaming Lmp to Lollipop
> Lollipop_MR1 instead of directly using 22
> Using M APIs directly instead of reflection

Change-Id: I10a307f46e3be15b3299f549a2fd7e0e215a6a1b
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
e3e05563b755d3f94da6867049c1a81891545c88 14-Aug-2015 Sunny Goyal <sunnygoyal@google.com> am d21f9404: Merge "Disabling auto restore of widgets. > Always show "Setup" button for a widget which has a config activity." into ub-launcher3-burnaby

* commit 'd21f9404da5c8cdc959b483a40876b02ced35e43':
Disabling auto restore of widgets. > Always show "Setup" button for a widget which has a config activity.
84b4adc3fb2301466468828ccbd742209619e597 13-Aug-2015 Sunny Goyal <sunnygoyal@google.com> Disabling auto restore of widgets.
> Always show "Setup" button for a widget which has a config activity.

Bug: 23155863
Change-Id: I60683889e76be830a76ac1245e079574aaf0ad10
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
0396828d05a9f25791a4b9324ee5a23b7481b2e2 11-Aug-2015 Winson Chung <winsonc@google.com> am a1ee659e: Merge "Adding market search." into ub-launcher3-burnaby

* commit 'a1ee659e748b02ed74d8cafd3796a5c8ce5f1c44':
Adding market search.
a1ee659e748b02ed74d8cafd3796a5c8ce5f1c44 11-Aug-2015 Winson Chung <winsonc@google.com> Merge "Adding market search." into ub-launcher3-burnaby
eb2b1c634a8ad4b9211cabeefce0267e4124e89b 07-Aug-2015 Winson Chung <winsonc@google.com> am 7573123c: Merge "Fixing invisible search bar" into ub-launcher3-burnaby

* commit '7573123c0518f338895d59ada6ec4a8e170f5bf5':
Fixing invisible search bar
2a87fe8c41338e746c6959d992edfeb9cb00bcc1 07-Aug-2015 Winson <winsonc@google.com> resolved conflicts for merge of 0ad33066 to ub-launcher3-master

Change-Id: I5dbbaaf9fb03ed3003174154ea7d7dbae9048a70
bedf9232eb67a420f0372d3ca135ca13194e603b 10-Jul-2015 Winson Chung <winsonc@google.com> Adding market search.

Change-Id: Id41615653cd4fa76213add4595418ad0cc6e7852
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
a1f79d3e16362d16c06b18fd5a06d93be9bbf1fd 05-Aug-2015 Winson <winsonc@google.com> 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
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
0ad330668462b9385900a7b1a163d536bbabc1a4 05-Aug-2015 Winson Chung <winsonc@google.com> Merge "Refactoring search bar animations." into ub-launcher3-burnaby
006ee269ba2e9946a83b42f96d4a0296254cba4a 03-Aug-2015 Winson Chung <winsonc@google.com> 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
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
f0033da0dd659e822f17e306b268420deae2ef2b 05-Aug-2015 Jun Mukai <mukai@google.com> Suppress focusability of normal launcher descendants when a popup opens.

Bug: 22563223
Change-Id: Iebee7c0c858a4d48524b3d5415e4f6d39861c49a
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
f9ada46270abcf23997eb1e0675b4d44e5c97673 04-Aug-2015 Sunny Goyal <sunnygoyal@google.com> 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
317698bd012c1930b83bb4e2e47ac9e363fa6c6a 29-Jul-2015 Sunny Goyal <sunnygoyal@google.com> 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
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
3c938a7e0dfa6289bba557164f629873a230bd5c 04-Aug-2015 Sunny Goyal <sunnygoyal@google.com> resolved conflicts for merge of 3f7550c1 to ub-launcher3-master

Change-Id: I3bb155473d48832e496a8983f84c20e6e935fa41
3f7550c1edb2a8db85e2c2db4333c9cd458e259b 04-Aug-2015 Sunny Goyal <sunnygoyal@google.com> 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
233ee964a9ecf419a3e8330a67456d422879132d 03-Aug-2015 Sunny Goyal <sunnygoyal@google.com> 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
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
790b7ad28e9c047fc555bedc0709eb73d7c2fcf0 04-Aug-2015 Winson Chung <winsonc@google.com> am 153b02a5: Merge "Remove handler for searchables changed broadcast." into ub-launcher3-burnaby

* commit '153b02a5e69c99b1154eea107da6b2fba4c6f3a3':
Remove handler for searchables changed broadcast.
88fa741e50760f9da78cba4a766172f23773bb87 03-Aug-2015 Winson Chung <winsonc@google.com> Remove handler for searchables changed broadcast.

Bug: 22515084
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
5d2fc32e6da66f877dfba4fe513fbabdcdae5f99 07-Jul-2015 Sunny Goyal <sunnygoyal@google.com> 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
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
6c56c68555dcb3d99b05d5faecd582a1f683cc92 16-Jul-2015 Sunny Goyal <sunnygoyal@google.com> Changing the dogfood check to a static boolean to better handle proguard optimizations

Change-Id: I892b88ce1a007fafc23a73ad4193c5c4aa411d1b
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
b4a367459a6e99f4740eea5816dac70967384803 13-Jul-2015 Hyunyoung Song <hyunyoungs@google.com> resolved conflicts for merge of 98ff38aa to ub-launcher3-master

Change-Id: Ie43d7215e604758936c558b79d191f1b26bb31f8
98ff38aa48b4c9d3e33c128fae2d5c851e49a3eb 11-Jul-2015 Hyunyoung Song <hyunyoungs@google.com> Animation should start and finish on widgets button when opening/closing widget tray.

b/21301759

Change-Id: Ib0b9132d8709426598d95fc9f60d37752e05b711
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
aad90582a101e0964afcedaa8246dfd76b10c7a0 09-Jul-2015 Sunny Goyal <sunnygoyal@google.com> Handle custom shortcuts only when requestCode is REQUEST_CREATE_SHORTCUT,
otherwise it would conflict with results coming from a different request

Change-Id: I395cc970acef54d289d6c0a37cdfa35fc4dbb9ab
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
3f99a1440ed32acdcbc088ceff93d80f98df15c1 11-Jul-2015 Sunny Goyal <sunnygoyal@google.com> Merge "Fixing screen jump when going to spring_loaded mode in rtl" into ub-launcher3-master
19795603fe10ba20008bf01e059725562eb78b83 11-Jul-2015 Winson Chung <winsonc@google.com> am 76648c58: Making long-press of AllApps to jump directly to search.

* commit '76648c58d5fe8e5c0695f865243d3f421c53a84d':
Making long-press of AllApps to jump directly to search.
76648c58d5fe8e5c0695f865243d3f421c53a84d 10-Jul-2015 Winson Chung <winsonc@google.com> Making long-press of AllApps to jump directly to search.

Bug: 22210146
Change-Id: Iacf28416d6e31233a68e3b41576a8860b4b72b88
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
ce5a7e5ee4c880081faef3a508f68725d0317ee9 09-Jul-2015 Sunny Goyal <sunnygoyal@google.com> Fixing screen jump when going to spring_loaded mode in rtl

> Removing call to snapToScreen when changing state
> Marking adjacent pages visible in overview and spring_loaded mode, so that they get drawn atleast once.

Change-Id: If305e0d4cfa63bac03f301d69017da55f89155bd
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
882a52eacf9e3bba09aa693f4982c2b8c41d25bb 08-Jul-2015 Winson Chung <winsonc@google.com> Fixing minor issue with spatially sorting workspace items for binding.

Change-Id: I10e05b3ae34a8101a48b625899888c7e8de1fe71
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
518a39ba2e778f4ae3e7393b977e6a9b231356d5 08-Jul-2015 Adam Cohen <adamcohen@google.com> am d98fff30: Merge "Adding custom slide up activity transition for L MR1" into ub-launcher3-burnaby

* commit 'd98fff30552e7e8cff1205926001cbac7d7e9a35':
Adding custom slide up activity transition for L MR1
d98fff30552e7e8cff1205926001cbac7d7e9a35 08-Jul-2015 Adam Cohen <adamcohen@google.com> Merge "Adding custom slide up activity transition for L MR1" into ub-launcher3-burnaby
947e02b638c7947c6c97943041d7153edb7b562e 23-May-2015 Adam Cohen <adamcohen@google.com> Adding custom slide up activity transition for L MR1

issue 21402755

Change-Id: Id2542c0a3c38bd71aa407a3b0fe00fdee24e2f69
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
3b2e43210482aee6aa97666fae4b840c1357a775 07-Jul-2015 Sunny Goyal <sunnygoyal@google.com> am dd2e6dfc: Updating onRequestPermissionsResult signature to public

* commit 'dd2e6dfc16b7c6ae65123e4df545d42124b76cb0':
Updating onRequestPermissionsResult signature to public
dd2e6dfc16b7c6ae65123e4df545d42124b76cb0 07-Jul-2015 Sunny Goyal <sunnygoyal@google.com> Updating onRequestPermissionsResult signature to public

Change-Id: Ie08caa55a195e9062006d13e86238cca827ef249
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
3a56edb0eaed7424dba1541908c6c351ae40ca58 07-Jul-2015 Sunny Goyal <sunnygoyal@google.com> Merge "Refactoring ItemInfo" into ub-launcher3-master
8d59509f1abdbc0400b840b69bb36136a538cef9 06-Jul-2015 Sunny Goyal <sunnygoyal@google.com> Using an empty error view for QSB

Bug: 21731323
Change-Id: I837b7bf9bac443cd2062ab2d4c24e081eb01732d
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
aa8ef119f18864f4ab41c12f9c2ad6d7f643a0a9 13-Jun-2015 Sunny Goyal <sunnygoyal@google.com> Refactoring ItemInfo

> Changing dragObject to ItemInfo
> Removing dropPos which is always null
> Removing requiresDbUpdate which is only used in CellLayout

Change-Id: I753ddaae0880c8a9bfee5a1266095ff34610284a
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
cb5f619770df68e6cd323c85602bb64c4acea8cc 29-Jun-2015 Dave Hawkey <dhawkey@google.com> am 79f25bed: Merge "Add LauncherCallbacks for requesting permissions on MNC" into ub-launcher3-almonte

* commit '79f25bedd2ed13613323b085b46b9b42aee21696':
Add LauncherCallbacks for requesting permissions on MNC
a1d1bf3119f7b1aab1d394af6cb21c2c4100d458 26-Jun-2015 Sunny Goyal <sunnygoyal@google.com> Allowing UserHandle to be passed in the intent when creating AppInfo

> Removing createShortcut with userHandle, as shortcuts can only be
for the primary user.

Bug: 22070517
Change-Id: Ifc58a76d0f1e0ab8f1943b46588cc19dd88bdda1
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
3a43ed61cba0dd45cf085f41c1632cfbc82a8adc 26-Jun-2015 Dave Hawkey <dhawkey@google.com> Add LauncherCallbacks for requesting permissions on MNC

Change-Id: Ia8f704590e03e16db04c2f7acee1e79ce7334749
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
1a8a6e0baabf636f9b429280cba536450d594089 26-Jun-2015 Hyunyoung Song <hyunyoungs@google.com> Merge "Announce content desc of workspace immediately after unlocking the lock screen. b/22051420" into ub-launcher3-burnaby
166e6488e60f0d19cfc70e10a0fb95c9462894a6 26-Jun-2015 Hyunyoung Song <hyunyoungs@google.com> Announce content desc of workspace immediately after unlocking the lock screen.
b/22051420

Change-Id: I41ab93782383c04e0074d87632ebe8d884a8e208
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
ca0f7d7728c76c3fb1f657c09d9e9fac9b1c2066 25-Jun-2015 Winson Chung <winsonc@google.com> Merge "Exposing drag methods with user info." into ub-launcher3-burnaby
5ffd51db0c6d7686352f84fd52b4963bd528cd36 25-Jun-2015 Winson Chung <winsonc@google.com> Exposing drag methods with user info.

Change-Id: I974b67d23d3d29795c1c1d24e1ecf212b52e3912
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
91c05954435b10f52dfff1bc9025c4ea8ba4652b 25-Jun-2015 Winson Chung <winsonc@google.com> Ensuring that we always update the predicted apps set.

Change-Id: Ieecf019442dcf4af42463ed6cbc4cdcd19468dec
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
b1777447d9b9700b48f8060f8b318f2363c43e8d 16-Jun-2015 Winson Chung <winsonc@google.com> Refactoring fast scroller.

- Fixing issue with fast scroller not fitting name width.
- Refactoring fast scrolling/scroll bar code out of base recycler view
- Adding animations to fast scroller to match design
- Smooth scrolling when jumping between app rows
- Fixing issue with fast scroller jumping when you first pick it up
- Fixing issue with wrong background paddings being used

Bug: 21874346
Bug: 22031923
Change-Id: I9f011b1f375751f437604b900e95a2942d3f4601
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
d3800208aa8c4f5926502ccb8e49e13501b441c9 18-Jun-2015 Winson Chung <winsonc@google.com> Merge "Moving predicted apps callbacks to use ComponentKey." into ub-launcher3-burnaby
6b1c73f50a99a215c923aa0caca8e63c593a4eb2 18-Jun-2015 Winson Chung <winsonc@google.com> Moving predicted apps callbacks to use ComponentKey.

Bug: 21270185

Change-Id: If2d9dd77235e7a96de96a1a5441a589ef8a72a7f
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
e9819e6d5df372323582cf9ae7567062ffc6fca8 17-Jun-2015 Jun Mukai <mukai@google.com> Add null-check for workspace/hotseat.

I assumed that they are non-null, but reportedly it was wrong.
This method can be invoked before the views are fully initialized.
Also hotseat can be null as far as I see setupViews(), therefore
null-check and 'importance stored' flag check should be done
separately.

Bug: 21779078
Change-Id: I3f17226f887c38adf2b1fb7ee2a016e00ffc0eb4
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
383c507c47a5abf3258fc04220f37c366f983a97 13-Jun-2015 Sunny Goyal <sunnygoyal@google.com> Removing ContentObserver in launcher

> Using callback insted of using a content observer
> Setting the listener in LauncherAppState to prevent resource leak

Change-Id: Id23a4d5c8812e86178997e536226e09ec3740f84
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
c332934e27527107c7f9c50ba6b7af93979b8126 16-Jun-2015 Winson Chung <winsonc@google.com> Merge "Refactoring all apps search to support external search bar." into ub-launcher3-burnaby
ef7f874a889b609bd34e692b9c9a1f8cefd1ea95 05-Jun-2015 Winson Chung <winsonc@google.com> Refactoring all apps search to support external search bar.

- Adding support for an external search bar that can be used
to search a container view. This adds a new interface
AllAppsSearchController which manages the external search
bar. Each controller will have its own search implementation
which means that we no longer need a common AppSearchManager
interface.
- Removing elevation controller as we no longer have a builtin
search bar in all apps
- Refactoring container view insets so that they behave
the same in all containers.
- Refactoring apps view to ensure that we only update the number
of columns with the available width
- Cleaning up LauncherCallbacks interface

Bug: 20127840
Bug: 21494973

Change-Id: I710b8e18196961d77d8a29f0c345531d480936fe
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
e863fed1400d00fab11a61c5b4b989d86ca55386 15-Jun-2015 Rahul Chaturvedi <rkc@google.com> Read rotation setting correctly from the wallpaper picker.

If reading the rotation setting without the multi-process flag, the
WallpaperPickerActivity usually picks up a cached value. Specifying the
multi-process flag during the read fixes this and the wallpaper picker
always has the correct rotation setting.

Change-Id: Ic3639f8cd694674e92c8940b753c6bc30486076d
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
51cd50d7f1649f4bdea42483503810735555868e 12-Jun-2015 Sunny Goyal <sunnygoyal@google.com> Merge "Using content provider to update launcher settings" into ub-launcher3-burnaby
7779d62308b87ca26e3be47df836893f6f7693ec 12-Jun-2015 Sunny Goyal <sunnygoyal@google.com> Using content provider to update launcher settings

> Removing cross process preference file
> Removed broadcast listener management for settings changes
> Defining content provider method to get/set laucnehr preferences

Change-Id: Ida36eac0ab17c1d48fedc9404817a53a89b36c4f
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
45478022977de9025dfc887cc1507d90d15febf8 09-Jun-2015 Sunny Goyal <sunnygoyal@google.com> Tying accessibility drag lifecycle to that of dragController

Bug: 20865291
Change-Id: I1e0aceb20efcf4c32d76a656c499a1a4a5a32a65
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
208aba2dfd13afefc65afe66d8f9cf233a017365 09-Jun-2015 Sunny Goyal <sunnygoyal@google.com> Merge "Removing LauncherApplication to enable us to easily catch LauncherAppState errors" into ub-launcher3-burnaby
be68dcebbbe56a5063922068334565d07be6d936 09-Jun-2015 Sunny Goyal <sunnygoyal@google.com> Merge "Fixing preloaded widget not getting used for animation" into ub-launcher3-burnaby
4f3e9383eb422c87e2689548653b89f34f5516a5 05-Jun-2015 Sunny Goyal <sunnygoyal@google.com> Code cleanup

> Removing obsolete logging
> Removing unused methods
> Removing resource leak warning due to non-static handler class in launcher

Change-Id: Ic38cc8aea82899b0b5ee3235f04e5964e49245fb
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
12e13e467e6eadf8efe84525e9266b1f7df91733 05-Jun-2015 Sunny Goyal <sunnygoyal@google.com> Removing LauncherApplication to enable us to easily catch LauncherAppState errors

Change-Id: I56e956067692e5b9c4719c5e08b8f558e6011a60
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
799aa04f2f961742a2f99bc0dc5a19f6bbbe2f56 02-Jun-2015 Rahul Chaturvedi <rkc@google.com> Use a broadcast receiver instead of a settings observer.

Settings observer doesn't work if a setting is modified in another
process, hence we instead register a receiver which listens for a signal
from the settings process that the rotation preference has changed.

Change-Id: I570e3c67bb64a32347e84ca00a8ac31d9010eac3
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.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/Launcher.java
8f1eff7b6cc8621888ee46605c32e601f80a890b 29-May-2015 Winson Chung <winsonc@google.com> Adding context for app launches.

Bug: 21492784
Change-Id: I1b28ac8f44498e1d9770e770b074f19c721c3f10
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
5b9ebcab3c6c55dcb7575fdbcb77020a5ad274d4 02-Jun-2015 Sunny Goyal <sunnygoyal@google.com> Fixing preloaded widget not getting used for animation

> The preloaded widget was being set in a different instance of
PendingAddWidgetInfo and was never getting used for animation.

bug: 20699153
Change-Id: Iaec13640e49c66993b4695e4a52dc3a3a2133fb2
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.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/Launcher.java
5683f871722254e4e357cf3fb77cd28156278e51 29-May-2015 Sunny Goyal <sunnygoyal@google.com> Adding an asynchronous search interface for apps search

Change-Id: Ib09df0a3d587dc60ed888ddbd0edf058e4a1cc3e
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
e4ca4a9ca16d3007f44e3ef30dbeacd20815b402 01-Jun-2015 Rahul Chaturvedi <rkc@google.com> Merge "Add the Allow Rotation setting to Launcher3." into ub-launcher3-burnaby
7fc77cad3d06bd3647e550f7419e89116471240a 20-May-2015 Rahul Chaturvedi <rkc@google.com> Add the Allow Rotation setting to Launcher3.

This CL adds a Settings activity along with the code needed to provide
a "Allow Rotation" setting to all phones and tablets. This setting is
set to false for phones and true for tablets. On changing the setting
from unlocked to locked, the launcher (and the Settings activity)
will get locked to the orientation the user was in when he disabled
"Allow Rotation". This is consistent with how the natural rotation
feature of Android works.

Change-Id: I8a1c59d1fa0bb9262530cad96e0a9bdbab0d9344
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
5cc7af12f10c4bd97bd732305398c7ad6a7fa4ca 28-May-2015 Sunny Goyal <sunnygoyal@google.com> Merge "Removing file IO used for checking configuration change" into ub-launcher3-burnaby
5a1f53b306a4fcf56aad577987386ea1b2dfe6b9 27-May-2015 Sunny Goyal <sunnygoyal@google.com> Removing SmoothPagedView as all its methods are disabled

Change-Id: I83c99bb3d3546693200d64e2233957b4c679e7e6
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
bbcf5ac7aa73a3ce07215d77a0b496cf7fb00f29 27-May-2015 Jun Mukai <mukai@google.com> Merge "Introduce LauncherSearchCallback to handle search overlay status." into ub-launcher3-burnaby
d70ad0d09519975927697604ba38d50883a4d3bf 27-May-2015 Sunny Goyal <sunnygoyal@google.com> Fixing workspace scrim not being drawn

Change-Id: Iabafe159a577909396d1602a7eda9c508e95cb71
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.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/Launcher.java
c3d4553d462521bc77b719109ea8cf5b5812d471 22-May-2015 Adam Cohen <adamcohen@google.com> [DO NOT MERGE] Use custom slide-up animation on LMP MR1 instead of system default

issue 21402755

Change-Id: I87ddef08e7b3134c791f769fc279e62d520cd18c
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
5f4e0fdd2e4edeb9211e2dcd1c99497f175731f8 22-May-2015 Winson Chung <winsonc@google.com> Moving all apps code into sub package.

- Renaming resources, dimens, etc to be more consistent
- Removing old AppsCustomize resources and other unused code

Change-Id: I15ce35e7cb7a9b9344fc7103963e4e4c9e45d89a
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
c6205603efe1f2987caf96504c87d720a25b5a94 22-May-2015 Sunny Goyal <sunnygoyal@google.com> Creating landscape and portrait device profiles at app initialization

Change-Id: Ide9d007adc36b348e19b05cdf49e87f8b02db60e
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.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/Launcher.java
c57bb9b113aff1315ea4e871f09e94406cfe56e8 22-May-2015 Sunny Goyal <sunnygoyal@google.com> Merge "Icons are not updated to TYPE_APPLICATION during restore" into ub-launcher3-burnaby
aa78b3dea3427ca65d0c0a316a72f769feecdac1 21-May-2015 Sunny Goyal <sunnygoyal@google.com> Merge "Preventing overdraw. Drawing background directly at the window, instead of the rootview." into ub-launcher3-burnaby
5c97f51fd9443e461a360ff7852aa223c05d667f 20-May-2015 Sunny Goyal <sunnygoyal@google.com> Icons are not updated to TYPE_APPLICATION during restore

> Use low res only for app shortcuts
> Running icon migration after restore
> Running icon migration again for all users
> Deduping shortcuts added from widget tray

Bug: 20945600
Change-Id: I3bb47545fdd9832510069026fbae8966d2311cc1
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
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/Launcher.java
4a6c6f31050a81068cff13fe0cc274f9be826d90 19-May-2015 Sunny Goyal <sunnygoyal@google.com> Preventing overdraw. Drawing background directly at the window, instead of
the rootview.

Change-Id: Ie974752e739d9acd1fbd765809c671f82f462644
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
83a8f042adda926489494dff217c15ab696139b4 19-May-2015 Sunny Goyal <sunnygoyal@google.com> Moving LauncherAccessibilityDelegate to accessibility package

Change-Id: I510204a5a12abf2da2757f3e3f8b0e8869a6b04a
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
2bba4c37c6402dfdc965d0c412c840c57993c7dd 19-May-2015 Sunny Goyal <sunnygoyal@google.com> Removing some thread priority management logic

> Not saving folder id in onSaveInstance as it is not used.

Change-Id: I176beb77cafe27ec4b7500d65dc86287d2f2e0cb
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
b790083b8f757e6d73b92460e6447acbf5490654 16-May-2015 Hyunyoung Song <hyunyoungs@google.com> Transition from back to showing widget tray if shortcut/Widget configure activity
was cancelled.

Recent refactoring of the State inside Launcher introduced a check
of which state can show widget tray (only workspace) that was too agressive.

b/21201908

Change-Id: Iaccb44d23485aa101d7720b29335645a74f4dcdc
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
7066003b2032a49ae5e59dab9b706259bdeb7e6e 14-May-2015 Sunny Goyal <sunnygoyal@google.com> Various lint error fixes.

> Fixing some RTL errors by specifying both marginStart and marginLeft
> Moving all layout direction checks to Utilities
> Explicitely adding @TargetApi before every method

Change-Id: Ibe9c52b93b5a6adeadb27ace2b312770fd732ea0
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
a6095969bb5938ad95ee9f858970d5eb54eb124d 12-May-2015 Sunny Goyal <sunnygoyal@google.com> Preventing NullPointerException when cancelling a shortcut addition

Bug: 21024018
Change-Id: Iac09d9e4f1411aa9fe1ec89fbfe749b009c7d457
(cherry picked from commit f044bb1edd8670fbc2cf9eeb1a51c31b91f0889c)
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
8af0cd808e62973889cd43e2c989220f27d70dd4 12-May-2015 Jun Mukai <mukai@google.com> Introduce LauncherSearchCallback to handle search overlay status.

Bug: 20011047
Change-Id: I93cab4e0614b9658b4b657dd98dca68d42580e63
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
f044bb1edd8670fbc2cf9eeb1a51c31b91f0889c 12-May-2015 Sunny Goyal <sunnygoyal@google.com> Preventing NullPointerException when cancelling a shortcut addition

Bug: 21024018
Change-Id: Iac09d9e4f1411aa9fe1ec89fbfe749b009c7d457
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
13eb527b5ae7f564e3ace6137a8d466636d87188 12-May-2015 Winson Chung <winsonc@google.com> Exploring dense all apps layout.

- Disabling section headers in all apps on tablet layouts
- Fixing issue with predictions not showing on rotation
- Fixing issue with over-aggressive dismissing of keyboard & filtered app state
- Fixing issue where the container bounds were running straight up to the nav bar

Change-Id: I5a5a56afa75b50be96af4894bf785ffbb1b15fb3
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
57ebefb5891255a23472473d5ec90b5247a334fc 12-May-2015 Sunny Goyal <sunnygoyal@google.com> Merge "Various icon size changes" into ub-launcher3-burnaby
dfaccf64bd59343de483b12eee6db61c960aedce 12-May-2015 Sunny Goyal <sunnygoyal@google.com> Various icon size changes

1) Setting different icon and text size for workspace and all apps
2) Setting padding during BubbleTextView inflation

Change-Id: I59da6986b0d98e8e2aa6065743bb799a6bf06a37
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
4ac30068732c7216288999d255a823adb7ca7c12 09-May-2015 Winson Chung <winsonc@google.com> Initial changes to support predicted apps.

Change-Id: I80117d51074fe3dbdbb8d81cae886b1dffdfb86a
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
9480415d9baf00ecfaac8ab3f608b16a1faa6518 08-May-2015 Winson Chung <winsonc@google.com> Make common base class to update container bounds and to handle scroll logic.

Bug: 20763871

Change-Id: I8c2f45cfb10964e4be7e9c07c89dd336585c9989
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
067e5e0177a4429e8833b2fd96725eb92e48ab8a 07-May-2015 Sunny Goyal <sunnygoyal@google.com> Merge "Removing some dead code in paged view" into ub-launcher3-burnaby
83f59abc9c566da5deb98afe7ea35cfb061f2920 06-May-2015 Winson Chung <winsonc@google.com> Explorations in dense grids for all apps.

- Adds sticky section headers
- Removing AppsListAdapter
- Adding search bar field
- Subtitle filtering

Bug: 20222023

Change-Id: I1eaef701b5d68f475615f09d86561eacc91c937f
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
8e2133b2c2bde86f913d817942bafdcf6818470b 06-May-2015 Sunny Goyal <sunnygoyal@google.com> Removing some dead code in paged view

> Removing fling to delete pages
> Removing delete drop target for pages
> Removing syncpages support (was used by paged all apps)

Change-Id: I0a35ae30da8c48a27aac341bbee9fb5623665902
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
bb785c6eb38f9c4b1f71920cb6e57ca8f11d4908 05-May-2015 Winson Chung <winsonc@google.com> Ensuring we wait until resume before binding all apps.

Bug: 20759810
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
2a53cb7a5e86920fdc9063ddf3966af5d5472c56 05-May-2015 Winson Chung <winsonc@google.com> Merge "Launcher-side changes to support prediction bar." into ub-launcher3-burnaby
80068f518c858babf75cb6f5bf076875dc0cc481 05-May-2015 Hyunyoung Song <hyunyoungs@google.com> Merge "WidgetTray performance improvement (less sorting): Part 1" into ub-launcher3-burnaby
8821ca9a6a5bf34308f9b70c2cabf9da17330497 05-May-2015 Hyunyoung Song <hyunyoungs@google.com> WidgetTray performance improvement (less sorting): Part 1

- No longer return sorted list from the package manager since, the only
time the widget list requires to be sorted is when recycler view renders
them.
- Made getWidgetsAndShortcuts private to guarantee that widgets are
being loaded in the worker thread.

Change-Id: I2c35973c1226e831514380dd38fc2f88b1b91d02
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
cd99cd3ed6a84b9dcd8f4c60b0941760f85a64ce 29-Apr-2015 Winson Chung <winsonc@google.com> Launcher-side changes to support prediction bar.

Change-Id: Ib9974ad8888ad87137c774f9f531fae9d56b899a
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
957c13f032fc4088b3273cec08603c67c069e2c6 01-May-2015 Sunny Goyal <sunnygoyal@google.com> Handling managed profile creation in the model as the activity
can get killed in the background.

Change-Id: I95f62cf268fe642c9a2bb4975eb92bf8e12d23a9
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
a911672f45900fc0ed746e0d84c43c6e5ad89b6a 29-Apr-2015 Sunny Goyal <sunnygoyal@google.com> Simplifying add to workspace by not going through the worker thread

Change-Id: I3260786bee257aea93ade49e6fa18008232addbe
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
c525d80dcd06b70910de0ea9ef063a032c0c8fad 29-Apr-2015 Sunny Goyal <sunnygoyal@google.com> Removing obsolete resources

Change-Id: I9a8d3d23e772a3ffc161ac97a5f08808aab79d5b
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
f196394dee696752e9d5da32621caee374e52f8b 24-Apr-2015 Hyunyoung Song <hyunyoungs@google.com> Merge "Add drop animation / Toast to widgettray" into ub-launcher3-burnaby
e2df0620c13b9dc7e63224153b98fdbb48546f9b 24-Apr-2015 Sunny Goyal <sunnygoyal@google.com> Adding LongArrayMap as a replacement for HashMap<Long, E>

Change-Id: I4710e6db69abcdbd897a8401fc8b980c09e2ffef
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
d33860f2cc027b91dd09cc38ddd0e37878ba6c69 24-Apr-2015 Sunny Goyal <sunnygoyal@google.com> Clearing all pending runnables when Launcher is destroyed.

Change-Id: I00596c11116b5579c1f013b268b6c0b5239f0aa7
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
b99ff3e83270e113f6182e337c4f7b0223bad92b 24-Apr-2015 Hyunyoung Song <hyunyoungs@google.com> Add drop animation / Toast to widgettray

- show instruction toast on clicking the widget
- Add animation when widget drops on the workspace.
Added WidgetHostViewLoader to handle short press and assign widget
host view to enable animation

b/19897708

Change-Id: Iec36d72cb21bf09343d0beeb31a09bf8b0cb5e0d
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.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/Launcher.java
dc61c4d41468a8beced2863de1b863b340cf49ba 21-Apr-2015 Winson Chung <winsonc@google.com> Refactoring to single path for overview mode.

Change-Id: I590a813c6f031342d75c3a6c3e9c9afda1808f2e
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
2826a401edb12e53cd19e76af3551c34fef05755 18-Apr-2015 Winson Chung <winsonc@google.com> Fixing build.
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
fb9ca2392894a3dea83570267f9597ac0750b9fd 17-Apr-2015 Sunny Goyal <sunnygoyal@google.com> Merge "Fixing drag-n-drop for folders in hotseat." into ub-launcher3-burnaby
7e8ba7cfb9a96d25bb8e99d083d5b974b1719bc0 16-Apr-2015 Winson Chung <winsonc@google.com> Merge "Fixing regression in AllApps being aggressively dismissed after returning to Launcher." into ub-launcher3-burnaby
f406615354a92367481a60966b6b873cae37fe4c 15-Apr-2015 Sunny Goyal <sunnygoyal@google.com> Fixing drag-n-drop for folders in hotseat.

The current drag-n-drop model assums that when a folder is open
it completely covers the folderIcon and its not possible to drop
anything on the icon. But its not true when a folder is in the
hotseat.

> When DnD finishes revert folder to the normal state
> Ensure that only one folder is open at a time
> Prevent folder icon from moving when the folder is open

Bug: 13646281,14680549
Change-Id: I016a4c3f0d9b57c388eaa28f40df9e7b7bbab5fc
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
4e8fb91cf19b7d621de8cbed2bde2c8dac734121 12-Apr-2015 Hyunyoung Song <hyunyoungs@google.com> WidgetTray improvement

UI
- Fixing the issue of widget row not rendering
- Moved the resetting of previous bitmap to the start of onBind
instead of the onDetachedWindow.

Performance
- WidgetModel do not have to keep packageName list around.

Will com in immediate follow up CLs
- use lowRes widgets bitmap before fully loading the fullRes one.
- application icons are fully loaded in background thread.

b/19897708

Change-Id: I5b3b43a5c543a5135c395f90df32e66d57dc86e0
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
75cc825f3f1c266ccc654ee89d2dcffb7c65890a 10-Apr-2015 Winson Chung <winsonc@google.com> Fixing regression in AllApps being aggressively dismissed after returning to Launcher.

- Adding workaround to prevent the built-in search box from being focused when AllApps is shown again

Bug: 20143148
Change-Id: Id546d3e5fedc724d95e067d26115ee716ac1d626
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
0f785720667ab8afe4b4620a6c333d382d8659ed 08-Apr-2015 Winson Chung <winsonc@google.com> Initial changes to support a fixed all-apps layout.

- Dynamically update padding and background depending on fixed bounds and searchbar
- Fixes issue with drag layer bg getting clobbered when rotating launcher
- Tapping outside the bounds of all apps should close all apps
- Fixing typo causing widgets to not show in sw720dp devices

Bug: 20127840

Change-Id: I29c3f905bdee940f938ffe054f58434887073092
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.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/Launcher.java
2e52c90b3ff0a04bd734aa19c54c39cef186b653 06-Apr-2015 Adam Cohen <adamcohen@google.com> resolved conflicts for merge of 68fdeaad to ub-launcher3-burnaby

Change-Id: I29aa5b37968b1ced81cdeb68a021db9310047252
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
22235bcb40071af464fc9accf0fbf082056182f7 03-Apr-2015 Sunny Goyal <sunnygoyal@google.com> Reinflating QBS on resume, if the widget orientation is not same as launcher orientation

Bug: 20044969
Change-Id: I5c285ddb09fc8b5d8444795eda64cd28486ab81d
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
68fdeaadc621b7a9200f5c75790eb756a1983d02 02-Apr-2015 Adam Cohen <adamcohen@google.com> Stop using custom activity transition, rely on system default in these cases

-> workaround for platform issue related to this resource, but also
a decent code cleanup

issue 20006693

Change-Id: Iea3a2fb14be5ed78d882ddf9d970b12d177f4249
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.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/Launcher.java
7db312f37b37998e411e76d9646c04ea7478022e 31-Mar-2015 Robert Kozikowski <robertkoz@google.com> am 67c30861: Adding Launcher3 callbacks for trimming memory.

* commit '67c3086163593db47e57b8cf4fcb034334374000':
Adding Launcher3 callbacks for trimming memory.
67c3086163593db47e57b8cf4fcb034334374000 31-Mar-2015 Robert Kozikowski <robertkoz@google.com> Adding Launcher3 callbacks for trimming memory.

It will help reduce memory footprint of Launcher, when in background.
It is required to help deallocate images, when Google Now Launcher
goes into the background. See cl/83222937/ .

Plan after this CL:
- Generate drop CL with launcher3_drop.sh. Add empty metods to
make code compile.
- Sync the cl/83222937 and hide the code behind the feature flag.

It was previously submitted in ag/628070 and reverted in ag/630423
due to GSA release schedule.

Change-Id: I56eee618b86d518d0afc362b6cf44c3bbec1f19c
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
b272ca83f0904ed7256de42e3ec8cfb7738a9372 28-Mar-2015 Adam Cohen <adamcohen@google.com> am b823ae4f: Avoid casting AppWidgetProviderInfo to LauncherAppWidgetProviderInfo upon unparcel

* commit 'b823ae4fca345e051831732ff2760023ef6ec2c4':
Avoid casting AppWidgetProviderInfo to LauncherAppWidgetProviderInfo upon unparcel
b823ae4fca345e051831732ff2760023ef6ec2c4 28-Mar-2015 Adam Cohen <adamcohen@google.com> Avoid casting AppWidgetProviderInfo to LauncherAppWidgetProviderInfo upon unparcel

issue 19904413

Change-Id: Ie1b4a2b1331f6a707f8590cd0396138a20946658
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
5f2a098ef3eecdc1af602582aaf8ff95b280ec28 28-Mar-2015 Adam Cohen <adamcohen@google.com> am 173f711e: Ensure that we capture all paths for starting activity for result

* commit '173f711e03dfce70d76c3b45f764a4f6b682a3b3':
Ensure that we capture all paths for starting activity for result
173f711e03dfce70d76c3b45f764a4f6b682a3b3 27-Mar-2015 Adam Cohen <adamcohen@google.com> Ensure that we capture all paths for starting activity for result

-> AppWidgetManagerCompatVL uses an IntentSender to launch the widget
config activity (to handle the case of cross profile config activities)
-> Launcher was not overriding this method, and so not capturing the fact
that we are waiting for a result.

issue 19723510

Change-Id: If5751e6d23d31c9f7b3b85f9464a93f935487cec
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
3d9490ab9520ffe3798539ed1626463a7eb6c9e1 25-Mar-2015 Winson Chung <winsonc@google.com> Removing more code with API 21 dependencies.

Change-Id: I16c914334ce0694b84626269ae4bb5e83082c739
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
6a1e95a3dfb5eb65cc2c682c5ede9e22cc7ff7d9 21-Mar-2015 Sunny Goyal <sunnygoyal@google.com> Removing all dependencies of launcher code on wallpaper-picker

> WallpaperPicker can still depend on launcher code, but not the
other way round.

Change-Id: I93a07f985c3955c638a68a5fad9c09b184a879b9
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.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/Launcher.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/Launcher.java
2dd9f018ff32a1f34023826b64422622f6610daf 16-Mar-2015 Robin Lee <rgl@google.com> Don't clobber widgets with the same component - DO NOT MERGE

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/Launcher.java
b0df1b0e1ac865818942851b6a0d1fdca4843834 19-Mar-2015 Adam Cohen <adamcohen@google.com> Make sure we set the QSB bar on the SearchDropTargetBar

Change-Id: If106bae15b3d628d6385711bcb8059acd17d6147
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
fe1dcbf0c5a1767e077a051ef5f7b72540d55f62 12-Mar-2015 Hyunyoung Song <hyunyoungs@google.com> Fix widget refresh issue on package install/uninstall

Culprit CL: https://googleplex-android-review.git.corp.google.com/#/c/592303/3/src/com/android/launcher3/LauncherModel.java

b/19658229

Change-Id: I02b0b2a0ed9bc3200bbe1edcb251cf0efe939e53
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
70a48befe48af0a318e88745f480d2ed42936bb5 12-Mar-2015 Hyunyoung Song <hyunyoungs@google.com> Fix widget refresh issue on package install/uninstall

Culprit CL: https://googleplex-android-review.git.corp.google.com/#/c/592303/3/src/com/android/launcher3/LauncherModel.java

b/19658229

Change-Id: I02b0b2a0ed9bc3200bbe1edcb251cf0efe939e53
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
b745afbdd75157c73d581b345118cdaff99e912d 02-Mar-2015 Winson Chung <winsonc@google.com> Initial changes to break out AllApps into its own view.

- Moves launcher state-transition code into its own class
- Moves all-apps related code into a separate view/set of classes
- Implements a basic list view for all apps

Change-Id: I68f174aa9e1bf82c4e46ce9549c78a8dc4623f46
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
434e667b5b488d6212e8c77c8ad3b02c4af37117 10-Mar-2015 Sunny Goyal <sunnygoyal@google.com> Merge "Ensuring setQsbSearchBar is called whenever the QSB is created" into ub-launcher3-burnaby
ec3682b5647630d72f9533d11f2deaad5b620cc0 09-Mar-2015 Adam Cohen <adamcohen@google.com> Merge "Enabling accessible drag and drop" into ub-launcher3-burnaby
c9735cff2e558aa3f3810e49c15ef13049b9429c 24-Jan-2015 Adam Cohen <adamcohen@google.com> Enabling accessible drag and drop

-> Using the context menu, and a new two stage system, this allows
users to curate icons and widgets on the workspace
-> Move icons / widgets to any empty cell on any existing screen, or
create a new screen (appended to the right, as with regular drag
and drop)
-> Move icons into existing folders
-> Create folders by moving an icon onto another icon
-> Also added confirmations for these and some existing accessibility actions

Limitations:
-> Currently, no support for drag and drop in folders
-> Considering moving the drag view so it doesn't occlude any
content (in particular, when user changes pages)
-> In this mode, accessibility framework seems to have
problems with the next / prev operations

Bug: 18482913

Change-Id: I19b0be9dc8bfa766d430408c8ad9303c716b89b2
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
64b3fcc9f7bd951530bf9b78339882d7b104b50e 04-Mar-2015 Sunny Goyal <sunnygoyal@google.com> Ensuring setQsbSearchBar is called whenever the QSB is created

> On launcher3 when the QSB is created for the first time after a
widget drop, it is not set in searchDropTarget and as a result
the "Remove" and "App Info" drop targets are not visible until
Launcher3 restarts and rebinds QSB

Change-Id: I599a9a18cc5d46af790b3145dae2eb385b32b20e
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
9282059e44604330763340e6c37ffb653b8ef187 02-Mar-2015 Sunny Goyal <sunnygoyal@google.com> Fixing wrong check to determine the drag source

> target it the drop target, i.e., the InfoDropTarget or DeleteDropTarget

Change-Id: If4a9f8eb72ee6afb4d80c7df6f0f2ada4bc35b22
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
5b437d8957c21b5fab42d3540db39da09378cfd7 02-Mar-2015 Sunny Goyal <sunnygoyal@google.com> Merge "Removed disableAllApps flag" into ub-launcher3-burnaby
c9acdd51c40c1b397adae6ba62c4acd01914b473 26-Feb-2015 Sunny Goyal <sunnygoyal@google.com> Removed disableAllApps flag

Change-Id: I50ba511b8493bca2506ab6010f141c093bfa7499
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.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/Launcher.java
7470c817e46f241bf37a7874fa7cf7493fc7cf94 10-Feb-2015 Sunny Goyal <sunnygoyal@google.com> Using SCREEN_ORIENTATION_LOCKED for locking to current orientation.

Bug: 17298128
Change-Id: If64b6957a594bcc48f6454689d11cd63d31b9239
(cherry picked from commit 3c1865ad5050f594d1684fe8962bfbc8ffcbe4bb)
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
c018c4db08da28047d6b9da4eb1088d65de85b65 20-Feb-2015 Adam Cohen <adamcohen@google.com> Merge "Revert "Mark WIDGET_CATEGORY_HOME and WIDGET_CATEGORY_SEARCHBOX on the search widget"" into ub-launcher3-master
eb8e282a77279c7657f49a7391c41270d4997379 20-Feb-2015 Adam Cohen <adamcohen@google.com> Revert "Mark WIDGET_CATEGORY_HOME and WIDGET_CATEGORY_SEARCHBOX on the search widget"

This reverts commit 87cf88393cedb66633bbcf51c283d525ef88932f.

Change-Id: Ie15c71f76c71dfb6b85aefcc10cd66eb49bea6dc
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
ae52d72ccc32d68bb0b41011c9c00cd707fdc60f 19-Feb-2015 Adam Cohen <adamcohen@google.com> Merge "Mark WIDGET_CATEGORY_HOME and WIDGET_CATEGORY_SEARCHBOX on the search widget" into ub-launcher3-master
87cf88393cedb66633bbcf51c283d525ef88932f 19-Feb-2015 Adam Cohen <adamcohen@google.com> Mark WIDGET_CATEGORY_HOME and WIDGET_CATEGORY_SEARCHBOX on the search widget

Bug 17334589

Change-Id: I0e14381cfc19822451e68eb7f070d94525e126c3
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
a8f996d03982d76f59b2694fe9446d2a30eae97a 17-Feb-2015 Chet Haase <chet@google.com> Add clip-reveal animation to Launcher

ClipReveal animation was recently added to the platform. This
makes that animation the default launch animation when running on
that version of the platform.

Issue #19362772 Better material launch animations

Change-Id: I077659c14dc426be465d163bea6ba0fa93a637c5
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
97079bc7d55e031f5f804a86c6cc7ff929395838 14-Feb-2015 Adam Cohen <adamcohen@google.com> am 80e6beb4: Ensure that layers are properly removed after animation

* commit '80e6beb48ca71a321f667e79fe35a7ab2fb4c2bf':
Ensure that layers are properly removed after animation
80e6beb48ca71a321f667e79fe35a7ab2fb4c2bf 14-Feb-2015 Adam Cohen <adamcohen@google.com> Ensure that layers are properly removed after animation

Bug 19243980

Change-Id: Ic1d54f92051f7d937878898cae210ec18ecbaff8
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
14334bda039b0f70980e8782e379c5df059a5d6e 12-Feb-2015 Sunny Goyal <sunnygoyal@google.com> Merge "Removing code for the unused 'upgrade path'" into ub-launcher3-master
66cfdc2549b973496f2d5555defc22b7a15b5620 02-Feb-2015 Sunny Goyal <sunnygoyal@google.com> Removing code for the unused 'upgrade path'

Change-Id: Ib9eca92284b0eabbe36ffaaf26c62a6ce3cfd3e9
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
3c1865ad5050f594d1684fe8962bfbc8ffcbe4bb 10-Feb-2015 Sunny Goyal <sunnygoyal@google.com> Using SCREEN_ORIENTATION_LOCKED for locking to current orientation.

Bug: 17298128
Change-Id: If64b6957a594bcc48f6454689d11cd63d31b9239
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
8f9a787945c3326791c61b001e786b96e9fc4341 17-Jan-2015 Sunny Goyal <sunnygoyal@google.com> Launcher crashes on widget bind permission prompt

Change-Id: If09feb357e1604e5ee1a66305b022674f466833e
(cherry picked from commit e6b63a3d7335fed5b7bbcc6d2c6230ae28facd3e)
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
762d08eeada0f81c38591661bb4b9091f6926ff3 07-Feb-2015 Adam Cohen <adamcohen@google.com> am bd4a7893: Merge "Revert "Adding Launcher3 callbacks for trimming memory."" into ub-launcher3-almonte

* commit 'bd4a78937ffe2f37386dae4ae8817e33422c1267':
Revert "Adding Launcher3 callbacks for trimming memory."
e2d4ee1b21014e0f644134bd7c56291078b1ed60 07-Feb-2015 Adam Cohen <adamcohen@google.com> Revert "Adding Launcher3 callbacks for trimming memory."

This reverts commit 42f3b9e0283c30c40c286f9958ce0f8b02f85c52.

Change-Id: I65a7c893576c0901b231bab9abe6937f99415f1e
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
9d083a1c2a3d82c631e00e275be99e18ff0209c3 04-Feb-2015 Robert Kozikowski <robertkoz@google.com> am acbe9f65: Merge "Adding Launcher3 callbacks for trimming memory." into ub-launcher3-almonte

* commit 'acbe9f6546455672b2edf51928d4fee4b6e246ba':
Adding Launcher3 callbacks for trimming memory.
42f3b9e0283c30c40c286f9958ce0f8b02f85c52 04-Feb-2015 Robert Kozikowski <robertkoz@google.com> Adding Launcher3 callbacks for trimming memory.

It will help reduce memory footprint of Launcher, when in background.
It is required to help deallocate images, when Google Now Launcher
goes into the background. See cl/83222937/ .

Change-Id: I6d3d4d1f0457c67abcad3ba4516c87abcf666b05
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
d0091012322d5d3a37b6605cdf61ab85431e56a8 21-Jan-2015 Sunny Goyal <sunnygoyal@google.com> Removing usage of reflection.

> Updated launcher.java with the new APIs
> Removed unused method in BitmapUtils

Change-Id: I24804d2cd7d9fc45040532e8324672f5ea6fc110
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
808ba3dd1b0b2cae7e54e8eee5228cd3b2b6de56 20-Jan-2015 Sunny Goyal <sunnygoyal@google.com> Merge "Adding accessibility controls" into ub-launcher3-almonte
automerge: 54cdef7

* commit '54cdef77dbb958a853387957c303e1b872489b00':
Adding accessibility controls
71b5c0b988a64b3a0613ded5403749bc537ee8a5 09-Jan-2015 Sunny Goyal <sunnygoyal@google.com> Adding accessibility controls

> Adding 'Remove' option to workspace items
> Adding 'Add to workspace' to all apps and widget list items, which
adds the item to the first available space, giving preference to
the current workspace screen
> Adding 'App info' and 'Uninstall' options to appropriate items

Bug: 18482913
Change-Id: Ifab7423af2d9ba502b5a2771b37bb5436b3df937
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
e6b63a3d7335fed5b7bbcc6d2c6230ae28facd3e 17-Jan-2015 Sunny Goyal <sunnygoyal@google.com> Launcher crashes on widget bind permission prompt

Change-Id: If09feb357e1604e5ee1a66305b022674f466833e
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
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/Launcher.java
c8f4e1bc88401cad3cc5e439cd08450974d99d81 20-Nov-2014 Adam Cohen <adamcohen@google.com> Fix a couple regressions from resetting AppsCustomizeTabHost

Bug 18409435
Bug 18358080

Change-Id: I07a071342b5c5e062ab2bb562b672d93ba0d5c2e
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
c7cd2cb28f0d08dd47c79007794fc37036210b6a 18-Nov-2014 Adam Cohen <adamcohen@google.com> Add callback which got missed in refactor

Bug 18418855

Change-Id: Ia3a1cec76721bbbc118dd7389b5e960802a64b88
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
416541cc0e03ccd919d5669f0d06ef42a3b7ff21 14-Nov-2014 Sunny Goyal <sunnygoyal@google.com> Adding a few null checks.
1) During migration, if launcher2 has deleted user data,
migration oes not happen
2) If Launcher3 does not has bind widget permission,
QSB would be null.

Bug: 18388507
Change-Id: Ief81f6f77ce154e7b3ecd4b77caf24239401e738
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
b155bbb375c6bfed14f79def122d69c7659434f7 12-Nov-2014 Sunny Goyal <sunnygoyal@google.com> Merge "Using the default search widget in Launcher3" into ub-now-queens
4bbf419bf98c00decc74b429320258c2a16faeec 11-Nov-2014 Sunny Goyal <sunnygoyal@google.com> Removing some duplicate methods

Change-Id: I8a1295ab74890984e8d8508aaa18fd79ac2a032d
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
594d76dc66cb5666830b62594909fed187987d42 06-Nov-2014 Sunny Goyal <sunnygoyal@google.com> Using the default search widget in Launcher3

> Removing all logic related to search and voice overlays
from Launcher3
> Using the widget provided by global search provider on the
homescreen
> Removing VoiceButtonProxy, as it is not being used anymore

Change-Id: Ie8b09b44f7213c8fa11bce685914442e4884295d
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
fafca5299e13e0f44d1d2332d7669d55ad38fdb5 03-Nov-2014 Sunny Goyal <sunnygoyal@google.com> Using a proxy call for isAttachedToWindow for pre 19 devices

Bug: 17423114
Change-Id: I6f0cc306b7fcc8087b4e4fc92bb8796d51a989d6
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
c3e12c733ea1bac942454237b897d5a321c01072 01-Nov-2014 Adam Cohen <adamcohen@google.com> Overlay shouldn't show up above Intro screen

bug: 18173340
Change-Id: Icf738a55398023ab6bad5cced05b25e053dec0a2
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
3f9c971e761222dc9fb4e5866f81c5f7a3348992 31-Oct-2014 Adam Cohen <adamcohen@google.com> Adding a couple memory optimizations to Launcher

-> Always dispose of widget page views when leaving the activity.
These pages hold onto many bitmaps.
-> Clear database cache when leaving the activity.

Bug: 17967108
Change-Id: I10ebaaed14e7cd86f09a9afcabd73043705f21b8
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.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/Launcher.java
0fb5ce20d7ae49f63628f88a1a238d6e2247dfe9 24-Oct-2014 Adam Cohen <adamcohen@google.com> Tweaking close AllApps / Widgets on KK and below

Bug: 17956862

Change-Id: I83b8973b7e98c1c3660221ac65dcb9ca8b4c84fd
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
a6d0492e5f0dd4e1b43d4034a770241dc65f8f8c 24-Oct-2014 Adam Cohen <adamcohen@google.com> Allow LauncherOverlay to access and manage insets

Change-Id: Ib9faf37eb22ad2a0b18c076978ec9f2fd8864c0c
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
24e18aea81ad0c411ce5adb13773595005f8565f 23-Oct-2014 Adam Cohen <adamcohen@google.com> Merge "First pass of the Launcher Overlay interface / impl" into ub-now-queens
c2d6e897dbcb96b7b629e42002966368fbda2f95 16-Oct-2014 Adam Cohen <adamcohen@google.com> First pass of the Launcher Overlay interface / impl

-> Added simple reference launcher extension
-> Make launcher able to handle a null qsb

Change-Id: Ib1575243cac800a335e95bbf00cdc394bb4741c3
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
1231c0743cce0b6b70951d1df3e4b0876c444598 21-Oct-2014 Sunny Goyal <sunnygoyal@google.com> Merge "Updating ItemInfo objects in the worker thread" into ub-now-queens
2fb6609c318f1ba8ee75194c5cbc6de982a0a5a7 20-Oct-2014 Sunny Goyal <sunnygoyal@google.com> Merge "Showing widgets in a disabled state, when running in safe mode" into ub-now-queens
e0987c5c40cb65954a77d72555033d9d5b959254 17-Oct-2014 Sunny Goyal <sunnygoyal@google.com> Using LinearLayout for overview panel

> Using equal weight to ensure that all items are of same width
> The total width of the panel is set in DeviceProfile#layout

Bug: 17456856
Change-Id: Ic98f5c4f7befd4d32d1b52dfe8c9f5b6c58b020a
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
9b4b0812fec41c40d81d507cfdb528ba87663f5f 08-Oct-2014 Sunny Goyal <sunnygoyal@google.com> Showing widgets in a disabled state, when running in safe mode

Bug: 15172107

Change-Id: I7209836ca4ffacde7b7b232e230e9b9f1a0e54bb
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
d37a1f5abec5a442508d850a0e26c96ece225f91 16-Oct-2014 Helena Josol <helenajosol@google.com> Merge "Add more Launcher files to delete on Clear Launcher Data" into ub-now-queens
28db280b7af14614f2b168ea8c5d496cda650321 09-Oct-2014 Helena Josol <helenajosol@google.com> Add more Launcher files to delete on Clear Launcher Data

Bug: 12753154
Change-Id: I00679bdc6eff70a1398122aaa955c08eabd556b1
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
34899b9c1a65827ab510d6c6c2e3dd84a824b472 15-Oct-2014 Adam Cohen <adamcohen@google.com> Merge "Use LauncherCallbacks model instead of method overrides" into ub-now-queens
9211d42f139eeaeeaef1fe4e59df2349e6d1237a 08-Oct-2014 Adam Cohen <adamcohen@google.com> Use LauncherCallbacks model instead of method overrides

-> When extending the Launcher Activity, instead of overriding
public and protected methods, create a proper interface
-> This helps define the interface when extending Launcher
more formally and more clearly

Change-Id: Ib38e8a376b2242d4078bf6856bb145f5b5f0da80
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
2350bc97851eea1662eee43d61290eb7a8382021 15-Oct-2014 Sunny Goyal <sunnygoyal@google.com> Adding NPE check in InstallShortcutReceiver

> Removing some unused methods

Bug: 17971165
Change-Id: I1bc5c764fd65b44c950a58371b60d2b53c221995
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
4390acea35aefae52bd3fe38f5fdbb7ea322afb0 13-Oct-2014 Sunny Goyal <sunnygoyal@google.com> Updating ItemInfo objects in the worker thread

> Launcher was making non-trivial updates to ItemInfo objects
on UI thread. These updates were getting skipped when the
Activity gets destroyed (possibly due to onConfigurationChange)
> Unregistering SessionCallback on application onTerminate,
rather than activity onDestroy

Bug: 17941096
Change-Id: Iad4a50871fe09470f26139b44a2e9886833032f1
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
0014ca20aa35f8937ff0df105e620fba02a538a3 10-Oct-2014 Adam Cohen <adamcohen@google.com> Removing some dead code

Change-Id: Idbd49302fc7123f72c7dad4c50612aaa662cca0d
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
05700ad38f07d859f28a8e5d0cf65137c7c85d23 08-Oct-2014 Sunny Goyal <sunnygoyal@google.com> Merge "Keeping icons in disabled state when SD-card is unmounted" into ub-now-queens
1a745e8f18e54aff152ff51743ae7595adde6927 03-Oct-2014 Sunny Goyal <sunnygoyal@google.com> Keeping icons in disabled state when SD-card is unmounted

> changing shortcutInfo.isDisabled to be a flag based variable
> on received OnPackageUnavailable, icons are disabled from desktop
instead of being removed. Icons in all apps are removed

Bug: 15852084
Bug: 16238283
Change-Id: I126d23c709682a917d4bbb84de71032593dce8f9
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
e03b81294f046474cf4057bec20dc560a2e053d4 08-Oct-2014 Sunny Goyal <sunnygoyal@google.com> Using DeviceDefault theme for Launcher and WallpaperPicker

Change-Id: I31bfeedd99d50683fba910f233b25bb3f364ce1f
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.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/Launcher.java
33de945451e1380eff2f4c6cd3aa5bb32c0ad368 06-Oct-2014 Ian Parkinson <ianp@google.com> am 0c2918f4: Use View.generateViewId if available

* commit '0c2918f4f4c4a9a6609b82cf23155ed51840f2c8':
Use View.generateViewId if available
4fbbb3e3e0e135bc5b304bc63637bbc8b54fb5d8 06-Oct-2014 Helena Josol <helenajosol@google.com> Create a central list of files the Launcher writes to the app directory

Replace hardcoded Launcher filenames with the defined constants.

Bug: 12753154
Change-Id: I072f202d9388a703b9e6851bde64ea7fafe4b10a
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
0c2918f4f4c4a9a6609b82cf23155ed51840f2c8 06-Oct-2014 Ian Parkinson <ianp@google.com> Use View.generateViewId if available

Bug: 17456181
Change-Id: Ib7e310ba38ed5e392c5c9b8734f197212f518389
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
1a85c5839c91942b3c7dd0da5992db4d98defdc3 30-Sep-2014 Adam Cohen <adamcohen@google.com> Don't let old Launcher activity interfere with new one

-> Launcher uses a static instance of it's loader (across
multiple activities) since activities can come and go
(configuration change, eg.) but the data model and loading
is static.
-> Currently, this is not robust to a sequence of events that
looks like onCreate(instance A), onCreate(instance B),
onDestroy(instance B) -- depending on the timing of those
calls.
-> This CL addresses a symptom of the above scenario by not
allowing an older Launcher Activity cancel the loader /
clear the callbacks for a newer Activity.

Bug 17679693

Change-Id: I8ece93e288464b0d578b9669c165b67132d997ed
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
f876301d0a460bec260a3c7a6ab260a06d5817ba 24-Sep-2014 Sunny Goyal <sunnygoyal@google.com> UI Fixes

> Adding a scrim to the longpress cling

Bug: 17573777

High level design asks (very low-risk)
> Changing the dialog to use device default theme
> Updating screenpanel assets

Change-Id: Ia0216b60fd8cd607d83a5e7c3d7e6c8255125eda
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
d8f6253e67d23dcdcf521b0558f193ae832743b2 20-Sep-2014 Adam Cohen <adamcohen@google.com> Merge "When ensuring screen exists, make sure it's actually referring to a screen, not a rank" into ub-now-porkchop
83079e43aed96d8b04358840399490d0c707b53d 20-Sep-2014 Adam Cohen <adamcohen@google.com> When ensuring screen exists, make sure it's actually referring to a screen, not a rank

Bug: 17496589
Change-Id: If60e22dd71fa32530db91e37057689de5fb25646
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
acefecbff3141b43dc55fe18146cf842d1d4a8ae 19-Sep-2014 Sunny Goyal <sunnygoyal@google.com> Merge "Updating promise icon's bitmap and label when onBadgingChanged is received" into ub-now-porkchop
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/Launcher.java
92e97dccab3d7016e0740648e1d467e37a42f3f8 19-Sep-2014 Sunny Goyal <sunnygoyal@google.com> Merge "Fix: First run cling shoud show 'Welcome' when there is no migration cling" into ub-now-porkchop
af0628f84e38037be735620c23da8cacc2e3447f 19-Sep-2014 Sunny Goyal <sunnygoyal@google.com> Fix: First run cling shoud show 'Welcome' when there is no migration cling

Bug: 17582926
Change-Id: I662e0ed9f12d237ee34a8f4540b339edee08c611
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
ddd5aaaf354beb5add6bcc2560c4f975d49a9f6a 18-Sep-2014 Adam Cohen <adamcohen@google.com> Merge "Perform null check in animation complete" into ub-now-porkchop
493f6bc142916da3fe50ae4884b941a4f18c100c 18-Sep-2014 Adam Cohen <adamcohen@google.com> Perform null check in animation complete

Bug 17561235

Change-Id: I280dca9e03eed3f4e1edd97f2f8efac0b5e4b29d
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
d794a3f46521b972fa02826d379d1efa112793d2 16-Sep-2014 Kenny Guy <kennyguy@google.com> Update calls now we have an L API version.

Bug: 17543647
Change-Id: I92c652a4ced5a5e783b24e42f9da4d9dfe1118ba
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
8e894faadfce1d779b94692d8c7eccf558e23727 08-Sep-2014 Adam Cohen <adamcohen@google.com> Fixing a couple issues with bad AllApps state

Bug 17388923

Change-Id: I8f8a0163c0172d6f286a55d89793b843b092a3ca
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
0f668f3c2be93ad9be221d868abb3d9a6e418f18 08-Sep-2014 Adam Cohen <adamcohen@google.com> Prevent GNL from crashing on JB

issue 17433546

Change-Id: Ie5071e516b26400a27473eaaa401023f1af1d840
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
88d60f14f2516b2d725ea1a1700905530932b1fd 08-Sep-2014 Sunny Goyal <sunnygoyal@google.com> Showing clings only after the intro has completed

issue: 17408736
Change-Id: Ife2261f717003e828e8032b17c51e34b1ec02ecf
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
a38dc90188a6bee465b72e8383b36b264e30a08a 07-Sep-2014 Adam Cohen <adamcohen@google.com> Ensure all apps button inintialized before performing all apps transition

-> Also removing text shadows in all apps and folders (bug 16955157)

Bug 17400227

Change-Id: I67d361a7a1cb548c9caca4214621607feaef963a
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
cd1452859d0a0d68a70388a3ae82d69d97041eb5 06-Sep-2014 Adam Cohen <adamcohen@google.com> Second half of workaround for all apps crash in restricted profile

Bug 17363836

Change-Id: If83cf3ef73ce2f992f69d42bad5d6f41cc3b9b9e
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
c761d3cf956c5d2e621fabe91dcf65924fe9cf0a 06-Sep-2014 Adam Cohen <adamcohen@google.com> Workaround for all apps crash in restricted profile

Bug 17363836

Change-Id: I1c12e0300cfb1046bc7f2f3159d018ebf0a2f57d
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
1c13ff569170bec075ab9961fbc0eb1ca395696b 05-Sep-2014 Sunny Goyal <sunnygoyal@google.com> Merge "Handling label and icon from SessionInfo." into ub-now-porkchop
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/Launcher.java
0d2adfbbb3b2f2990fc2265dfadca0252a5b4bb5 04-Sep-2014 Adam Cohen <adamcohen@google.com> Potential fix for a couple bugs

issue 17371274
issue 17368590

Change-Id: I717f9c37613efd9d61e401540ca82aff77058022
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
047036e2c171fd676e02319fefdced8a6b55a035 01-Sep-2014 Ian Parkinson <ianp@google.com> Give GEL a way to clear the typed text when it starts searching

...otherwise it'll be re-used every time the user starts a new
query. We take care not to change the way that typed text gets
cleared (in onWindowVisibilityChanged()) in other cases.

GEL will actually use this text in ag/537329. This CL will cause
the GEL build to break until that change is submitted, so
I'll be sure to submit them both close to each other.

Bug: 16953058
Change-Id: I7ed613e69eb7a38b1a5e6108715ca614b59fd24d
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
2854d256192a8260ddeb2f2e94bc1a2fc5f6ef71 28-Aug-2014 Adam Cohen <adamcohen@google.com> All apps transition work

-> Fix icons popping in
-> Fix issue 17259204
-> posting animation start and buildLayer to allow first
frame to be ready. This becomes necessary with RevealAnimator
on the render thread, since it can't use FirstFrameAnimatorHelper
any longer.
-> adding a bit better transition for K, issue 17252683
-> updating a few assets

Change-Id: I0b193b4b3b511492a2fad6230cd91e3f0de634f0
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
d5058a534e1ec5cdf15682a604832c18f572299c 28-Aug-2014 Sunny Goyal <sunnygoyal@google.com> Merge "Improving restored widget behavior" into ub-now-porkchop
e7b8cd9e4f8d38d0445f3a032fafd44332f70878 27-Aug-2014 Sunny Goyal <sunnygoyal@google.com> Improving restored widget behavior

> Clicking a broken widget install shows a dialog similar
to an app icon
> Clicking remove on the dialog removed all components
for the corresponding package
> Widget pending view shows 'Setup' text instead of icon,
if there is enough space

Change-Id: I82ec0a1ee9542c1e3b860e6e00798a80450dce3c
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
7661614383dc17d69a9b1fd819e4d610896d5205 26-Aug-2014 Sunny Goyal <sunnygoyal@google.com> Updating Clings UI

issue: 16127412

Change-Id: Ie5885cabbef086e3b08811da72af88d01c4405e7
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
424418bb50ccf5d9270650b70cc51f423da51a65 23-Aug-2014 Sunny Goyal <sunnygoyal@google.com> Updating clings, removing ununsed clings

issue: 16127412

Change-Id: I1d18515765100ff10d33439b3ac39ebfc5da35c7
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
94afab4f77a282eb5835bd04c5b5dab04d391f81 25-Aug-2014 Adam Cohen <adamcohen@google.com> Fix all apps transition for transposed tablet layouts

Change-Id: I33bf163bc74b3cf703cb88a5209d9a205d80dbfa
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.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/Launcher.java
508da15509224b46fcccabbe78f3e92fe69a67d8 14-Aug-2014 Sunny Goyal <sunnygoyal@google.com> Updating the icon click feedback

> Using BubbleTextView everywhere, removed PagedIconView
> There is a brightness feedback on touch and shadow
feedback on click, until app launches

issue: 16878374
Change-Id: I3dc1149a123c8a75feca6210948398bf2187f1f2
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
178879c72dad2b0dd85e77267281dee26907bfff 19-Aug-2014 Adam Cohen <adamcohen@google.com> Merge "Updating folder open transition for Material" into ub-now-porkchop
c4fe9ea11e82fe16d60525323464fd50cf391378 19-Aug-2014 Adam Cohen <adamcohen@google.com> Updating folder open transition for Material

Change-Id: I2babf24a923711adc3f4f70ad3e48140a0d99a76
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
4a0eda76baeba2d8af2cc57ec64dcead03384cde 18-Aug-2014 Sunny Goyal <sunnygoyal@google.com> Merge "Updating the UI for focused state of an icon/folder." into ub-now-porkchop
dcbcc86353e9ed52daac87f292aece667cd0ac71 13-Aug-2014 Sunny Goyal <sunnygoyal@google.com> Updating the UI for focused state of an icon/folder.

issue: 16352129

Change-Id: If2e154dba06a0648f933f9aea38898642db9fd85
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
a00673c7d9f3fcfc81a6e1c6aa7b831951331e84 14-Aug-2014 Adam Cohen <adamcohen@google.com> Fix issues with the new widget layout

-> use first layout instead of first measure to determine size
-> fix issue where we were doubly accounting for padding of
AppsCustomizePagedView
-> show page backgrounds by default, hide fake page by default
-> stripping some dead code related to the market button
and all apps cling

Change-Id: I787bdf1092c821b780670098fb219a8a68914bc8
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
63f1ec00fbbd109130d1e476371dbc9a87bb544d 12-Aug-2014 Adam Cohen <adamcohen@google.com> Further refinement of all apps / widgets transition

Change-Id: Id107a9aff74f014c07f8cbea6e74951a02dbddab
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.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/Launcher.java
6551b7ef07b4d73c096cbfb22002e080b498cbbb 11-Aug-2014 Adam Cohen <adamcohen@google.com> Merge "Updating the widget tray" into ub-now-porkchop
4e243a2dad3700868035256af1882d7a4fee2385 11-Aug-2014 Adam Cohen <adamcohen@google.com> Updating the widget tray

-> adding dark panel / associated visual updates
-> cleaning up the sizing / padding / to match all apps
-> fixing a couple things from previous CL
-> (removed Context#getDrawable() calls, L-only)

Change-Id: Ia65a6eb704b35f74e7305be9334c27971b22235a
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
9bfdb76aaf5c8679b8f2ee3a9a3df2becefb947a 22-Jul-2014 Adam Cohen <adamcohen@google.com> Polishing the AllApps transition

-> separating HW layers during animation to be siblings
instead of parent-child (was destroying parent layer
on each frame)
-> Unifying material transition with pre-L, everything
is the same, just missing the reveal.

Change-Id: I8f7d5e658c2d9298bea83ce8199cb35e6fc0d44e
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
5337aea1536c11e5bfef49a14297fd4649baa3a3 11-Aug-2014 Mark Brophy <mbrophy@google.com> Merge "Revert "Updating the widget tray"" into ub-now-porkchop
fd0f02ce428880e7dc59ebc94717c3e25d22cbb7 11-Aug-2014 Mark Brophy <mbrophy@google.com> Revert "Updating the widget tray"

This reverts commit b172c13dcced9226c935991ef9fe85cc920ce811.

Change-Id: I375fb105e3cf6fa2c1548306cf6a109d612077de
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
b172c13dcced9226c935991ef9fe85cc920ce811 11-Aug-2014 Adam Cohen <adamcohen@google.com> Updating the widget tray

-> adding dark panel / associated visual updates
-> cleaning up the sizing / padding / to match all apps
-> fixing a couple things from previous CL

Change-Id: I4f663af7022337d687124ef25a22bac03d9d6af9
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
d3ad9828d15f9c8fa435f2d59cd5a18e9ebee100 11-Aug-2014 Sunny Goyal <sunnygoyal@google.com> Merge "Adding support to restore widgets even for jelly beans." into ub-now-porkchop
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/Launcher.java
f07af7b77de0319355e228e8630824d924522d78 31-Jul-2014 Kenny Guy <kennyguy@google.com> Launch app details for correct profile.

Support showing app details for apps in other
profiles.

Bug: 16371359

Change-Id: I1cabcd9f74f2a6ea6c4202a7d58af3ff3b458fd2
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
e755d469d40b95e763a9dcb67d0e4f511d1948dd 22-Jul-2014 Sunny Goyal <sunnygoyal@google.com> Implementing a package install progress listener for L

issue: 15835307

Change-Id: I71aaea087963f2e0e1206447190cbe23c174057d
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
4da294de83f7557f3e479c56c35ce1491c1936dd 28-Jul-2014 Adam Cohen <adamcohen@google.com> Remove 300 ms start delay from app launch transition

-> tiny cleanup from isLmp crunch

issue 16309411

Change-Id: Ib2edff84b53ca471e7d2a2a458091db1fa2f6b42
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
260065cac2443d0dd5159ac1f8c74380c2f1af59 24-Jul-2014 Kenny Guy <kennyguy@google.com> Merge "Change getBadgedLabelForUser to use CharSequence" into ub-now-master
3ed316a71d5ec5be2e25ba0a993ebd71a260217c 24-Jul-2014 Adam Cohen <adamcohen@google.com> Adding broadcast to indicate first launcher load

-> fixing small thing from previous CL

issue 16191557

Change-Id: I015859f6028066e7c8664436f291ed226a539e29
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
300c1504488a35372cec8c431e4d833df886ec8e 22-Jul-2014 Nilesh Agrawal <nileshagrawal@google.com> Fix build

Change-Id: I4c19afe4da891ad1de125cbb65c494fdc0a9a165
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.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/Launcher.java
651077bdd603bb182be039925fd17bdf0da15016 30-Jun-2014 Sunny Goyal <sunnygoyal@google.com> 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
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
82cc3fe6c77322d93ff74b25354e4bca77ab4a83 21-Jul-2014 Adam Cohen <adamcohen@google.com> Merge "Preliminary work on Material Transitions" into ub-now-master
6c5891a9fce95eee3d87823d11d21889743e9c68 10-Jul-2014 Adam Cohen <adamcohen@google.com> Preliminary work on Material Transitions

-> Early exploration of AllApps Hero transition with
circular reveal
-> Stripping a bunch of dead code from AppsCustomizeTabHost
-> Moved background scrim to DragLayer
-> Removed "SMALL" state from workspace: replaced with
NORMAL_HIDDEN and OVERVIEW_HIDDEN. This is mainly to
reduce the overall usage of the z-space model between
allapps/widgets and workspace. There are vestigial
remains of this model, mainly due to the overview
mode, and a bit for spring-loaded.

Change-Id: If2302a24394f0ec66621f01ffa2fc4934aa10c3f
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
c5c60ad3592f53549c9ffaa58e9a87b0480080e8 14-Jul-2014 Sunny Goyal <sunnygoyal@google.com> Merging Motorola's patch to disable apps when is safe mode.

issue: 16044192

Change-Id: I10069dcdf459ecc71361271e883eabb743d77822
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
bb474f6df0d737dba4081e7cb1bd5b5d9b7f4f57 16-Jul-2014 Kenny Guy <kennyguy@google.com> Merge "Include user handle for uninstall intents." into ub-now-master
d31df54073fbd80a9db9d277dde8c0e7421ffa14 30-Jun-2014 Kenny Guy <kennyguy@google.com> Include user handle for uninstall intents.

Add support for uninstalling apps from other profiles.

Bug: 14127299

Change-Id: I1a3724a45c95cf93b958d23a57829efcedfc4291
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
2ff91c46fa6f1b84fb08b6f31499934d30d8a91d 11-Jul-2014 Jan-Willem Maarse <maarse@google.com> Allow custom content to lock the workspace

Change-Id: Ic337df1b2cd54b99d4ef02dcfaca955c90297df0
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
96bb79819ef9ddf2d1c0cb0b72c2c9f6db26b4fd 07-Jul-2014 Adam Cohen <adamcohen@google.com> Enabling quantum look and feel everywhere

-> _l assets become default, new folder icon look is default
-> Starting to unify folder look / feel with all apps
-> New page indicators

Change-Id: I50b2c647fbcbe6ed27705527d8e16bd89e123d0b
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
e10abafa50c01060f96d1464e81929bdec7f2c27 02-Jul-2014 Kenny Guy <kennyguy@google.com> Merge "Revert "Revert Cls stopping now-master running on googlefood"" into ub-now-master
803a4bec0fe4f291b5e131f0a4fcb6ca8ecd2ec3 01-Jul-2014 Chris Wren <cwren@android.com> Drop support for remove all dead promises.

Bug: 12764789
Change-Id: Id876b66cf8da4388cb3ed5670a0bbdcf73f2982d
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.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/Launcher.java
40c5ed303909c4df71037be3429aa1423e59585f 25-Jun-2014 Chris Wren <cwren@android.com> Offer to delete broken promise icons.

Track state of promise in the info, not the view.
Fix bugs around moving promises to folders.
Fix bugs around filterign and removing promises.

Bug: 12764789
Change-Id: If5e8b6d315e463154b5bafe8aef7ef4f9889bb95
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
dcc5e71b3fd0ae450241ad820a5797225973ce73 23-Jun-2014 Adam Cohen <adamcohen@google.com> Fix issue where focus was sometimes missing when going to all apps with keyboard

issue 15407977

Change-Id: I806c4f3d4c5951e4caa7eddaff366a68585f1cd9
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
db78dc8a0aeac2e18c995ed5b7e92b963fca18e5 19-Jun-2014 Adam Cohen <adamcohen@google.com> Fix problem where launcher doesn't draw after rotation w/ translucent activity above it

-> Removed some code which caused this. The code was intended to fix a certain issue:
"Fixing issue where we were reverting to the first page of the workspace after
launching an application from all apps, rotating, and returning home"
-> That bug doesn't seem to occur anymore, even with the revert
-> See https://googleplex-android-review.googlesource.com/#/c/209561/1

issue 11808251

Change-Id: I14ada19a294d2e5139a9e650d55f1cd985dd00d3
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
e25c5d1c94949044c4cd7416f60ea0dc12dadc8d 18-Jun-2014 Adam Cohen <adamcohen@google.com> Prevent discordant state between Workspace and Launcher (issue 15409018)

Change-Id: I13bb3e51da18998a5dade49c50e5fbf2266022d3
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
6ea3b116fc2eea7cc1a6892c548da45a4f581a1d 11-Jun-2014 Adam Cohen <adamcohen@google.com> Override app launch transition for LMP preview

issue 15544569 j)

Change-Id: I8aff85a154cb98d865a8834f37b13e30cd03de6c
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
71b0473f24a7d77263aae88139f13298a1d64b27 11-Jun-2014 Adam Cohen <adamcohen@google.com> Add new assets for LMP preview

issue 15544569 c), d), e)

Change-Id: Ib352ef1fa7c19c3695c82f3ea31936a4b41da5aa
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
a629f26824c1f1b82cd6ecb5eb88df56eab6cdfe 11-Jun-2014 Adam Cohen <adamcohen@google.com> Merge "Revert "Revert transparent bars for L in 3.5. DO NOT MERGE"" into ub-now-nova
0b395356087901c16af283b5d9ae821a630cb6ad 10-Jun-2014 Adam Cohen <adamcohen@google.com> Revert "Revert transparent bars for L in 3.5. DO NOT MERGE"

This reverts commit e1cdf5253d8c61218fe3b308803408c04f71ffa3.

Change-Id: If107c46fcc3062d990b0de9758045946c8017569
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
aa4c8c1fea577431e218a927ae8ba6c47e51bfdb 06-Jun-2014 Adam Cohen <adamcohen@google.com> Fix for regression which made issue 14491953 occur more easily

Change-Id: I27711aad8aae2824a54a043f686918d342ffc5bb
(cherry picked from commit 327acfea13d924293b88c7d204fde4a25748108d)
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
ea90f83e248086b91dbbc7969059f6887190b2a2 22-May-2014 Adam Cohen <adamcohen@google.com> Check before suggesting default wallpaper dimensions

issue 14470153

Change-Id: Id00e9cb4bd2b769818ed61de65be8c1c0119e07d
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
73859adf80c94a377508a1d9ea8b6fa45a19f80f 22-May-2014 Adam Cohen <adamcohen@google.com> Merge "Revert "Debugging wallpaper stuff on production device (to be reverted once built)"" into ub-now-nova
824fcb3a3e05166d7e1bd9c2cd821aeaebc994c5 22-May-2014 Adam Cohen <adamcohen@google.com> Revert "Debugging wallpaper stuff on production device (to be reverted once built)"

This reverts commit f8dc557cf84ad90186e94d1ebe15f850a6edf2a0.

Change-Id: I2a2ce9a067ec6df829eb23997661bb090daa64ff
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
00a019d9e5713a595e6528d985174e4dff454445 22-May-2014 Adam Cohen <adamcohen@google.com> Merge "Debugging wallpaper stuff on production device (to be reverted once built)" into ub-now-nova
f8dc557cf84ad90186e94d1ebe15f850a6edf2a0 22-May-2014 Adam Cohen <adamcohen@google.com> Debugging wallpaper stuff on production device (to be reverted once built)

issue 14470153

Change-Id: I6c93b11f639d79163da0c3ce4e4053e304e0081e
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
e1cdf5253d8c61218fe3b308803408c04f71ffa3 22-May-2014 Sandeep Siddhartha <sansid@google.com> Revert transparent bars for L in 3.5. DO NOT MERGE

Bug: 15082937
Change-Id: I7698744aae83e58902641cf1fcc6ab55c1fcb543
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
db364c3355a7f5212459c74bd7e837f12aca463b 20-May-2014 Adam Cohen <adamcohen@google.com> Fix crash when launcher dies while configuring a widget / shortcut

issue 15014018

Change-Id: I083fa40fb2fd0eb217852e5d088fa5e18e5f5697
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
5eed5d8c7b7ca78dd07bc6d441600cb97e0782a1 19-May-2014 Adam Cohen <adamcohen@google.com> Ensure that hotseat callout only occurs when appropriate

issue 13551957

Change-Id: I87bda7eef8047edbd41f066930ed156a17d042df
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
876b003901afe908f46b47feef72afec576387bf 19-May-2014 Sandeep Siddhartha <sansid@google.com> Remove unnecessary reflection

Change-Id: Ia8a31eaf8563c4a337040e794742275c7e044506
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
57884c7ee2835df52913a87ad90e83293c3157d3 17-May-2014 Adam Cohen <adamcohen@google.com> Merge "Disable the folder cling in two cases" into ub-now-nova
6268f2db4c129e33d8d77513cb9df0f4799c7520 17-May-2014 Adam Cohen <adamcohen@google.com> Disable the folder cling in two cases

-> When the user creates a new folder
-> When the user drags an existing folder
-> The folder cling gets cut off in certain instances
and until we make it more extensible (not worth
it right now), we're disabling it in the problematic
cases. Also, in the problematic cases, the user
is demonstrating some advanced knowledge, so
it's somewhat justifiable.

issue 14491765

Change-Id: Ib15d2f097c51a9b755f04b95ed6ef468d3bacc60
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
2efc7d928a3df57838f8abd8ed6fdb9eeb21b481 17-May-2014 Sandeep Siddhartha <sansid@google.com> Use transparent system bars on L

Change-Id: I1e8921fa0e8a5bdf34495f9d88ba9f3b1f1e9c89
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
b6cc40bc15ef97ba7d677295c9a3870f18eadbe2 13-May-2014 Kenny Guy <kennyguy@google.com> Don't clear flags in startActivity

Move setting flags for starting apps back to
AppInfo from Launcher.startActivity.

Bug: 14839470
Change-Id: I1dc928e9ebce9ce4d411678f94b5ca4284c1255f
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
e0aaa0d3de0eedf5501fee762e0d8279a9e3bc3c 12-May-2014 Adam Cohen <adamcohen@google.com> Remove antiquated way of determining CellInfo during long press

-> allows us to eliminate cast of getTag() to CellInfo to fix
issue 13587508

Change-Id: Id2277206765621f664b758cce800bf8423231b1e
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
689ff16ea27fb7c22c247aaf4f42ffe42fede253 09-May-2014 Adam Cohen <adamcohen@google.com> Cleanup pattern for removing the extra empty screen after drag operations

-> Fixes a couple bugs: issue 12179908, issue 12372657, issue 13287732

Change-Id: I24b5abe8e432ea331eeb77407120a8cec28f6376
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
1317e2dd4a2fb097d1e54759536d515fdeca2c3e 08-May-2014 Kenny Guy <kennyguy@google.com> Fix bug with user of shortcut not being remembered over restart.

Intent extra was being set as int rather than long so being
missed.
Also use LauncherApps if neccessary in case where launching
without launch animation.
Unregister for package notifications when terminating.

Bug: 14636181
Change-Id: I1575f6eed806446782092dffe8c01afe7b6507fe
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
627d9467d3f797d08c864cdf5a0785d0a57b8e61 06-May-2014 Anjali Koppal <akoppal@google.com> Merge "Add setters for mWorkspaceLoading and mWaitingForResult." into ub-now-nova
ff7ceff73c77819d4a8328b875c7c238340f2c0c 02-May-2014 Anjali Koppal <akoppal@google.com> Add setters for mWorkspaceLoading and mWaitingForResult.

Change-Id: Id542fa6467d13641127cec7150b8f50a9e088657
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
6cc806d678c8a44478308119c087ac9adde73b66 02-May-2014 Amith Yamasani <yamasani@google.com> Watch for profile events and reload

Reload the workspace and all-apps list when a managed profile
is added or removed.

Bug: 14484845
Change-Id: I69210c22e568f2a561266ef2846ddf8f6d659070
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.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/Launcher.java
babb53ef8fd0fcba32fcc8fc213663f0f27b8f5e 15-Apr-2014 Winson Chung <winsonc@google.com> Adding external path for drag/drops.

Change-Id: I3b315c4d14cadb9210f15d3c3e0b9545f4591be4
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
b90860a99630bbd24f90cc205d8990187b0ed12e 11-Apr-2014 Mathew Inwood <mathewi@google.com> Expose workspace.moveToDefaultScreen.

This is to allow derived launcher classes to move the workspace to the
default screen when a drag is started, in case the current screen is not
capable of acting as a drop target.

Bug: 13962574
Change-Id: I8a6e94ce08be825c344beb708d244d2def5f319f
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
646fdf70b45f330a02104106a65ab7a529e70c6e 09-Apr-2014 Adam Cohen <adamcohen@google.com> Upping activity start delay

Change-Id: I4b72ae9d719825e1be8f1feb3643f9311dde2534
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
8f006edba228622422088a358aafee069e1d9cfb 04-Apr-2014 Adam Cohen <adamcohen@google.com> Prevent exception in production when icons collide during bind

-> We only need to throw an exception for dogfooders so we can
track the issue
-> Worst case, an icon is ignored, does not warrant a crash.

issue 12106766

Change-Id: I054a849eb3d65762dc5e1bf699c76655f687c3e8
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
8440e7ce17a3d54254217c69982c2ec2937ba4ba 31-Mar-2014 Adam Cohen <adamcohen@google.com> Merge "Increase delay before dismissing intro screen (issue 13691305)" into ub-now-mister-ugly
2252adea262c1fd4275156a9ea0cf309c97d038f 28-Mar-2014 Adam Cohen <adamcohen@google.com> Increase delay before dismissing intro screen (issue 13691305)

Change-Id: I0b81d61b922278e0e72c3055086010612687c7d9
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
4a9423d6ddda9009f9489d5546a822f9222e78c4 28-Mar-2014 Adam Cohen <adamcohen@google.com> Add method to determine if first run activity has been shown (issue 13680732)

Change-Id: Ia0da4148fd0365c6ae9c3a5a4cff7118959f6382
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
432609a246819f3cf887a80c2ae56b61fc5ca25a 14-Mar-2014 Adam Cohen <adamcohen@google.com> Adding in-activity intro screen (issue 12905636)

Change-Id: Ifb016ca6e5052fd91535b98a39f78569200955a8
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
e769d1681e1177b9e37c0be9e12d1ede55d4e3a9 18-Mar-2014 Mohammadinamul Sheik <inamul@google.com> Merge "Add onClickPagedViewIcon to the Launcher." into ub-now-mister-ugly
3b1a54a2069cfe576dbb043ccf23d24371ffd3a5 18-Mar-2014 Mohammadinamul Sheik <inamul@google.com> Add onClickPagedViewIcon to the Launcher.

Change-Id: I34505ee5c9a6fe6ddd1a9f3134829fe0481e8bc0
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
ef3784cf698cd1455f762f66ad6eec32cc8f2fa3 18-Mar-2014 Anjali Koppal <akoppal@google.com> Merge "Add LauncherProviderChangeListener" into ub-now-mister-ugly
67e7cae5ad97ec5702bbd739c4272e3cfa17556d 13-Mar-2014 Anjali Koppal <akoppal@google.com> Add LauncherProviderChangeListener

Change-Id: I2333a157c488cd048a860982cc675ed9cec626ae
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
62d18edcc74ce96e2955048f5e0fc0ce3e4ec275 11-Mar-2014 Anjali Koppal <akoppal@google.com> Add Launcher.onDragStarted

Change-Id: Iac59685211905580460d0a0a16d9c7f00c61fac9
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
5ad4484df3e477f9d8819605629b6e75a42e31ed 11-Mar-2014 Anjali Koppal <akoppal@google.com> Add a setter/getter for Launcher.mAllAppsButton.

Also, handle clicks on the all apps button by using onClick() method in
Launcher instead of directly calling onClickAllAppsButton in Hotseat.java

Bug 12553852
Change-Id: I261c27d3e964bbb1f52c2ab610997defd99a59bd
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.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/Launcher.java
3a8a8f7c2355863006208fced945f63c9bdb40b4 16-Jan-2014 Selim Cinek <cinek@google.com> Disable wallpaper in -1 space in GEL and hack around window animations

Bug: 12978354

Change-Id: I8b5602ae434a9151b40d41defb891db1ad78ce81
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
7b168a1bb94044d9ae11004bae18beba9eed46fd 05-Mar-2014 Anjali Koppal <akoppal@google.com> Make classes that extend ItemInfo public.

Also follow up on changes in ag/418520, adding Views to those method
params.

Change-Id: I93e0a3b30d10b969d1903a2f227f6744d709e89a
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
6902916b07e5d2bb879746888deb2a567976b87a 03-Mar-2014 Adam Cohen <adamcohen@google.com> am 474a3573: Merge "Avoid stripping empty screens if the workspace is still loading (issue 12523285)" into ub-now-lunchbox

* commit '474a35735ae758757dfd161a5c045d027bb9e033':
Avoid stripping empty screens if the workspace is still loading (issue 12523285)
474a35735ae758757dfd161a5c045d027bb9e033 03-Mar-2014 Adam Cohen <adamcohen@google.com> Merge "Avoid stripping empty screens if the workspace is still loading (issue 12523285)" into ub-now-lunchbox
517a7f5fd03fb89bd6b465013b278c9f281d0b26 01-Mar-2014 Adam Cohen <adamcohen@google.com> Avoid stripping empty screens if the workspace is still loading (issue 12523285)

-> This appears to be what may be causing data loss in some users during update.
A certain (seemingly) rare combination of life-cycle events and package events
seems to be the culprit (potentially why it's seen at update time).

Change-Id: Iea4f8aef012ba80b7ba568e0df264edb9284efbe
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
feec09d731782ca2e8b0fe9d59192fbc43f56e6c 28-Feb-2014 Anjali Koppal <akoppal@google.com> Merge "Make launcher implement PageSwitchListener." into ub-now-mister-ugly
f5d29130b9f4c501502272d6a97e4c7fb20d95f4 28-Feb-2014 Anjali Koppal <akoppal@google.com> Make launcher implement PageSwitchListener.

Change-Id: Ief4b0cb4700aeace56a3c923a0a669a626c6506b
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
e69746dc88d250cda8aebe3ec6634cdde18176c0 28-Feb-2014 Jorim Jaggi <jjaggi@google.com> am 4f462f4a: Merge "Revert "Disabled the wallpaper when completely in -1 Now space."" into ub-now-lunchbox

* commit '4f462f4a8b9fc6897d9fab9ad31c06e0b8f79373':
Revert "Disabled the wallpaper when completely in -1 Now space."
b45b65e1e532e4fbe6b5d565bd18a292a2df978d 27-Feb-2014 Jorim Jaggi <jjaggi@google.com> Revert "Disabled the wallpaper when completely in -1 Now space."

This reverts commit f3a8e8c0bd8b0dbe3991e5ad9d315e6e253e92eb.

Bug: 12978354
Change-Id: I11f1eeaab4fad9a2e4acf835144f0b0dc6fac54b
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
92ecd2346b8b4c4be694eed710d8c0ddef4ca4fb 14-Feb-2014 Sandeep Siddhartha <sansid@google.com> Merge "Refactor clicks and remove dead code" into ub-now-mister-ugly
a942030eb65a57f19ef0ab62aeeb9287840d16e6 13-Feb-2014 Sandeep Siddhartha <sansid@google.com> Refactor clicks and remove dead code

Change-Id: Id92f43b4f6b31707a18035dace6ad14ab728d0bb
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
55bd9725d5c0373b89f7b9bbd9547550ea3bbc63 17-Jan-2014 Jorim Jaggi <jjaggi@google.com> Implement spring-loading of folders when dragging over.

Bug: 8912132
Change-Id: Id81889a133e56461df2e20599c4b40020818ba18
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
c87c21a0cd168c65c70b59ad12502a2e1a00b9c4 05-Feb-2014 Adam Cohen <adamcohen@google.com> Merge "Small refactor to separate adding workspace / all apps items" into ub-now-lunchbox
76a47a1b2273c4d7dfab0beeadc1a8387e6a2840 05-Feb-2014 Adam Cohen <adamcohen@google.com> Small refactor to separate adding workspace / all apps items

Change-Id: I06b7bc7f7f0e01696cb9670b8385e5148593e3e0
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
4f93ec63b13f660fab63745d7127308954d5a6bd 04-Feb-2014 Yura <yura@google.com> Do not show overview when menu pressed on CustomContent screen.

Bug: 12524591
Change-Id: I2bc0c4d206214d994c9a9e1bd13b42f2e53dba9f
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
93b92d0895f86fddf270b4861282b75c8e455ce3 30-Jan-2014 Derek Prothro <dprothro@google.com> Merge "Fix black flash during rotation of -1 screen with GEL." into ub-now-lunchbox
dadd984a891a574cebf3dfd38a454a0e6a4228b3 17-Jan-2014 Derek Prothro <dprothro@google.com> Fix black flash during rotation of -1 screen with GEL.

We need to make sure the custom content is adding synchronously
while the rest of the workspace is being created. If we wait
for it to be added in a separate run task, we see a black
flash during rotation.
Also rename a few methods and remove obsolete methods.

Bug: 11802691
Change-Id: I3f6500aa1fabe68cef59ad8c764877f954986a99
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
d805837a877bb503d7890c4f92cfd183dec8c5ee 28-Jan-2014 Sandeep Siddhartha <sansid@google.com> Add callback for "Widgets" button click in launcher

Bug: 12553852
Change-Id: I8befd046242b32e86dbc6c98e6d97f0307380dd0
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
4195da42b77e1f0bf69f2d36583cdd176ecc5288 22-Jan-2014 Ian Parkinson <ianp@google.com> am 94449158: Avoid NPE from delayed Runnable

* commit '944491587e8a8f77233a1916cc16cd07edd97f2e':
Avoid NPE from delayed Runnable
944491587e8a8f77233a1916cc16cd07edd97f2e 21-Jan-2014 Ian Parkinson <ianp@google.com> Avoid NPE from delayed Runnable

Naive fix to b/12656485. Other Runnables in Launcher similarly check
that mWorkspace hasn't become null between being posted and being
executed, so I think this is probably appropriate.

Bug: 12656485
Change-Id: Ib4f3d0e8686c6249fe838144b1e8120c85f66f01
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
c07347961e9c924aa042b9e1d3526e9b5e1c95ca 17-Jan-2014 Adam Cohen <adamcohen@google.com> am e6e0af03: Merge "Dismissing search and other overlays when the menu button is pressed. (Bug 12524591)" into jb-ub-now-kermit

* commit 'e6e0af03ee39b3e800c8f7e86eefffae432ee7c8':
Dismissing search and other overlays when the menu button is pressed. (Bug 12524591)
e6e0af03ee39b3e800c8f7e86eefffae432ee7c8 17-Jan-2014 Adam Cohen <adamcohen@google.com> Merge "Dismissing search and other overlays when the menu button is pressed. (Bug 12524591)" into jb-ub-now-kermit
e029874bcfd6e55cb93fb6609f3342f180b5995c 17-Jan-2014 Winson Chung <winsonc@google.com> Dismissing search and other overlays when the menu button is pressed. (Bug 12524591)
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
f3a8e8c0bd8b0dbe3991e5ad9d315e6e253e92eb 16-Jan-2014 Selim Cinek <cinek@google.com> Disabled the wallpaper when completely in -1 Now space.

Bug: 11186234
Change-Id: I6ffb66f12298bd9df7e228a8589d63780b70a396
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
cdd82ef1bbe32ba3d83810e5d2e95ed4e9002204 17-Jan-2014 Winson Chung <winsonc@google.com> am f8584042: Merge "Updating Tablet clings. (Bug 11973614)" into jb-ub-now-kermit

* commit 'f8584042713aad82f9d057ecaace8a9ad1aad0bc':
Updating Tablet clings. (Bug 11973614)
205cd7727f3bd8b65892c580e6f243464878fe6e 15-Jan-2014 Winson Chung <winsonc@google.com> Updating Tablet clings. (Bug 11973614)

Change-Id: I6cb10424a345691d50c4fac7969e0b97bbee4b3c
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
850f91320c3ae6eeb4b248757b8aa7e14f83ea7c 14-Jan-2014 Adrian Roos <roosa@google.com> Fix back button behavior for "App info" when launched by Launcher3.

Ensures the back stack is clean when opening the "App info" app from the launcher.

Bug: 10393223
Change-Id: Iad078ca37c4794a580f1b996f8324fef404e7462
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
e43a1e788223ab5a4405c5eeb0133ff57efbc768 15-Jan-2014 Winson Chung <winsonc@google.com> Tightening migration conditions. (Bug 11973614)

Change-Id: I6d7417b705227472d035f428cbec933cc6dbf2ce
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
c27a05132042149fdcc926aeebc1a284cece1aa4 15-Jan-2014 Jorim Jaggi <jjaggi@google.com> Merge "Remove settings in overview mode for Launcher3." into jb-ub-now-kermit
d017f882eb67b630adb082dd2227e20f5bc77b05 15-Jan-2014 Jorim Jaggi <jjaggi@google.com> Remove settings in overview mode for Launcher3.

The appereance of the settings button in overview mode is now dependent on
a overridable method, such that we can have it in GEL, but not in Launcher3.
This change also adjusts the logic of how wide the overview panel is, depending
on how many items we have.

Bug: 12441429
Change-Id: Ibf537c26602785f565292cbfa213eb123469ebcd
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
24ce0b3708b44e738d6ee52477aa4dd917b547e7 15-Jan-2014 Adam Cohen <adamcohen@google.com> Fixing drop targets in phone / small tablet landscape (issue 12192781)

Change-Id: I4dc8a82c8cd5ef279506e7868e33a455fba5a3be
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
13b563bcae015646d19fa9cf2baf7437d4711f8e 15-Jan-2014 Adam Cohen <adamcohen@google.com> Merge "Ensure that hasFirstRunActivity is only called when necessary" into jb-ub-now-kermit
bc4539df6fd8b0672fbf51a49cba630add5083a3 14-Jan-2014 Adam Cohen <adamcohen@google.com> Ensure that hasFirstRunActivity is only called when necessary

Change-Id: I834abcd82f46c6f096f5c92452b34c668a4a3d86
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
e26d09484575f9b1855e5bc42d4fa05a5342f054 13-Jan-2014 Dan Sandler <dsandler@android.com> Fix longpress crash.

The AllApps button doesn't usually accept longpresses, but
you can trick it into trying by holding one finger on it and
another on another icon in the hotseat. This patch defends
against that and bails out if the longpressed item has the
all apps rank (position in hotseat).

Bug: 11740833
Change-Id: I99785ccbc9e6dc6be2a9e56289b3cc0275fbb65c
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
234b506f4625b23172d437a2ba0b47d63cc2e3dd 11-Jan-2014 Winson Chung <winsonc@google.com> Merge "Adding migration Clings. (Bug 11973614)" into jb-ub-now-kermit
a694524047fda0a51dede4eefb1201a598d2d3a7 08-Jan-2014 Winson Chung <winsonc@google.com> Adding migration Clings. (Bug 11973614)

- Refactoring Launcher cling code out to LauncherClings.

Change-Id: Iff4f84f5b8bfeb69b1be0b4802022c3eb20b6f2c
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
8b5b05b7f3c8c5d705116c425bd5dbff2b75d56a 10-Jan-2014 Adam Cohen <adamcohen@google.com> Merge "New launcher2 icon migration algorithm." into jb-ub-now-kermit
d502404a44fb7c4ea739622d7f8bdd2a764d97a1 09-Jan-2014 Dan Sandler <dsandler@android.com> 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
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
24fa33f8c7949d5e7fff4831f5903d70e1017091 10-Jan-2014 Nilesh Agrawal <nileshagrawal@google.com> Merge "Allow DISABLE_ALL_APPS to be set using a system property." into jb-ub-now-kermit
16f3ea870aac47292cd6cbe1a4b4343173097aa9 10-Jan-2014 Nilesh Agrawal <nileshagrawal@google.com> Allow DISABLE_ALL_APPS to be set using a system property.

- Moving the property to LauncherAppState
- The property is only read on dogfood builds.

The property can be set using setprop or /data/local.prop

Change-Id: I14c7354efb12edb93f97e81687a6f920cc634e9a
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
b54a5989a21bef4e6bac304591ca4030bfbe709d 09-Jan-2014 Adam Cohen <adamcohen@google.com> Adding optional first run activity to Launcher

Change-Id: I146927d8a065f1cf5ef5cec41c8fb4f9ad09d25c
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
14c6a3f510528ea36529712a9be4f5c9b07655ac 07-Jan-2014 Dan Sandler <dsandler@android.com> KEYCODE_MENU: hide all apps when entering overview mode

Bug: 12165618
Change-Id: I7ee652012c7f7b8e6fab3d9d1f99cf22484f3182
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
d4d3d08741b2c183dbcba1fa25ca100783bfe1ee 27-Dec-2013 Sandeep Siddhartha <sansid@google.com> Allow changing search bar hint in the cling on-the-fly

- This allows GEL to initially supply an empty string if hotword isn't
active, and later on update the cling if and when the hotword becomes
active.
- This isn't expensive as it'll only be called if Launcher first calls
getFirstRunClingSearchBarHint, i.e. once every fresh install/clear
data

Bug: 11116105
Change-Id: Ia963bb62d7b331afd0c34adfa6c4b6bdbac48349
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
7ad868b86e45d6f58c186d2731ab2beb84643757 12-Dec-2013 Michael Jurka <mikejurka@google.com> Create separate project for Wallpaper Picker

Change-Id: Id9e855780b9fb68c63eb6e9f6c19bcbce28a6fd5
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
306c1cf200d4e334b19e09a5a5a2026d9f6d12b2 12-Dec-2013 Nilesh Agrawal <nileshagrawal@google.com> Show widgets when ALL_APPS is disabled.

Change-Id: I367448df69a63ffd3412fe4c99137a21426d285c
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
a40916d534da1b3e05c905b5beb931e0140a353f 11-Dec-2013 Dan Sandler <dsandler@android.com> Merge "Size hotseat data structure appropriately." into jb-ub-now-kermit
295ae18d0fa7c102c50cf95a2ea09e7f2e9b1539 10-Dec-2013 Dan Sandler <dsandler@android.com> Size hotseat data structure appropriately.

Bug: 12070213
Change-Id: I4df2f4bcc71bb4077c62cae91ed844ea8c43d421
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
7aff399974c756930070d82d7b2df88f125dacd6 10-Dec-2013 Derek Prothro <dprothro@google.com> Bind the workspace synchronously if started on -1 screen.

Previously, LoaderTask would be run asynchronously to bind
the workspace when started on -1 which would cause the user's
wallpaper to briefly flash when rotating the device on -1.

Bug: 11802691
Change-Id: I3a1a7a32fa28a81e041a283a93d808d5a8884133
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
e7e97e65524977ad361811b95e8ee4557841d36a 03-Dec-2013 Winson Chung <winsonc@google.com> Retain current AllApps page if we never leave Launcher. (Bug 11468582)

Change-Id: Id18b14f6fbb2598a8c1f4c714f79d1a4332a7868
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
3ed4a4dd3dc77295579e8eaece294c30cf6831ef 03-Dec-2013 Michael Jurka <mikejurka@google.com> am 10a8935e: Merge "Use AsyncTasks instead of creating new threads" into jb-ub-now-jolly-elf

* commit '10a8935ef1fc8f073e276fddc85bf66513050c81':
Use AsyncTasks instead of creating new threads
10a8935ef1fc8f073e276fddc85bf66513050c81 02-Dec-2013 Michael Jurka <mikejurka@google.com> Merge "Use AsyncTasks instead of creating new threads" into jb-ub-now-jolly-elf
60779458160eed2f214450c1c708c0ecafe6465a 02-Dec-2013 Mac Duy Hai <haim@google.com> am a50d3430: Merge "Add method to retrieve search box bounds." into jb-ub-now-jolly-elf

* commit 'a50d34306c5fe6748392b493b5fbd4c54bf5f39f':
Add method to retrieve search box bounds.
6def4f900c8b92f61256bf33a158aba16d9aceee 28-Nov-2013 Mac Duy Hai <haim@google.com> Add method to retrieve search box bounds.

Change-Id: I67893f00990053415453490034ea7066d9f0f3b6
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
52aa0636c6caef0bd2601fb1f4ec06a34d9ac7a2 26-Nov-2013 Adam Cohen <adamcohen@google.com> am d552dd90: Fix NPE in Launcher onDestroy

* commit 'd552dd90f1da32e1be2dd95ffed57c65d40cb651':
Fix NPE in Launcher onDestroy
d552dd90f1da32e1be2dd95ffed57c65d40cb651 26-Nov-2013 Adam Cohen <adamcohen@google.com> Fix NPE in Launcher onDestroy

Bug: 11765296
Change-Id: I83299656cc90b8a744afb0db4b5ea08675c8db82
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
9710ec9d85566ea1edf973f3d51dda24f64bdaaf 26-Nov-2013 Adam Cohen <adamcohen@google.com> am 060a4837: Merge "Fix NPE in case where workspace is null because Launcher has been destroyed " into jb-ub-now-jolly-elf

* commit '060a48378f21a6b5836990a23178d02c94fccc60':
Fix NPE in case where workspace is null because Launcher has been destroyed
37c717ffa626c6690ea45ba88e5dfc9bea39ed6e 26-Nov-2013 Adam Cohen <adamcohen@google.com> Fix NPE in case where workspace is null because Launcher has been destroyed

Bug: 11765964
Change-Id: Iacd4db712c09940c05ccd2a64b25e376b63c6aee
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
72fbec17e09a1120971621587d5005f683baafd1 19-Nov-2013 Mathew Inwood <mathewi@google.com> Add support for initiating a drag from an overlay.

This allows an overlay to create apps and shortcuts on the home screen.

Change-Id: I63ee4ef02db3f4bc89726c394fd55ad26f50452c
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
9b9fb967b2305413520dc676d6d3c472b2b6b25e 16-Nov-2013 Winson Chung <winsonc@google.com> Updating LauncherModel filtering to use screen ids. (Bug 11685286)

- Fixes the issue with the current page not synchronously binding

Change-Id: I3dfa45cc1777f846c77f3e86059dfb715553e1a3
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
28b690ab8e21d28ae5ebdea32475d3f1952203a5 15-Nov-2013 Winson Chung <winsonc@google.com> Merge "Adding logs to track down missing workspace screen. (Bug 11683562)" into jb-ub-now-jolly-elf
a90303bb6fdad59e4a55855edba68c9902192599 15-Nov-2013 Winson Chung <winsonc@google.com> Adding logs to track down missing workspace screen. (Bug 11683562)

Change-Id: I12ef3331ab81004c75229d33afa0a8dd0fa8521c
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
e9b198fd7414771db3df259ce696f0070ea9a153 14-Nov-2013 Adam Cohen <adamcohen@google.com> Merge "Change the way view ids are assigned (issue 11627801)" into jb-ub-now-jolly-elf
c76e1dda0875c13131462d80d0c1721a6149e08d 14-Nov-2013 Adam Cohen <adamcohen@google.com> Change the way view ids are assigned (issue 11627801)

Change-Id: I4d9c0542ea3ac581c4a9f4da68824f0b498ea337
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
3dc3ecda281c078de9511dcb6349db1df629220a 14-Nov-2013 Adam Copp <adamcopp@google.com> Merge "Hooks for subclasses to react to home presses." into jb-ub-now-jolly-elf
4346746ef37413168a5cbec46bb6db8f96b0123a 14-Nov-2013 Michael Jurka <mikejurka@google.com> Use AsyncTasks instead of creating new threads

Change-Id: If166869dfbeb84d4dee2203f5b98a22b9d20719d
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
a120b8e304f1541529f26ef5af13f8bb5ac655f6 12-Nov-2013 Adam Copp <adamcopp@google.com> Hooks for subclasses to react to home presses.

This provides the nessecary hooks for GEL so that it can prevent
scrolling to the home screen when a search is open, instead choosing to
dismiss the search.

Bug: 11128544
Change-Id: I3c1b67bc271c1342db4a0abac364f2923bdeba3a
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
8e15fdf60a103391839433ced3c0990d13ba5012 12-Nov-2013 Winson Chung <winsonc@google.com> Prevent launching Widgets when cycling between Overview/Shrink state and Home. (Bug 11439120)

Change-Id: I21173f114228ba43172af9074d2ac1fadeee9886
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
2777273a2a5c710f26726ada0fe4a8f33da57b52 11-Nov-2013 Adam Cohen <adamcohen@google.com> Add method to determine if Launcher is using vertical bars

Change-Id: I7e9096cf81b49d213025c6f98708186330448fc0
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
07e045c63775c944f00da037b5d9cfc31e6028dc 07-Nov-2013 Winson Chung <winsonc@google.com> Save and restore the correct content type when rotating while in AllApps.

Change-Id: I508832e46c8a2ab3bb53baf8f44b543c4c24aed2
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
b2af6076c70cd3d09e23a4999803b3108aa469f4 05-Nov-2013 Adam Cohen <adamcohen@google.com> Merge "Ensuring that widget ids are cleaned up" into jb-ub-now-jetsonic
4637b5ada9cccb5f698fcff73a96a7ce16148e5b 05-Nov-2013 Adam Cohen <adamcohen@google.com> Ensuring that widget ids are cleaned up

Change-Id: I89f7bd3fccdc730128189beb51680e3ee76e3524
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
c18e4a926530cf458bdc67abfdd60488ff62d758 05-Nov-2013 Adam Cohen <adamcohen@google.com> Merge "Fix bug where cancelling config activity leaves user stuck in bad state" into jb-ub-now-jetsonic
f0129b13d1edac399c02dbd93f574a7e3f873525 05-Nov-2013 Adam Cohen <adamcohen@google.com> Fix bug where cancelling config activity leaves user stuck in bad state

Change-Id: I774cc6e46006f623c97812c85023b228128430fe
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
c44a0c0728dcb2ff410a10b426136926789c20a1 01-Nov-2013 Winson Chung <winsonc@google.com> Merge "Tweaking cling text sizes for other languages. (Bug 11151675)" into jb-ub-now-jetsonic
13dbfe18a0e1c4a9a1e9a2a9f8d22c4f462a30e4 31-Oct-2013 Winson Chung <winsonc@google.com> Tweaking cling text sizes for other languages. (Bug 11151675)

Change-Id: Iae82064b1be7a33e5375c1e27fb7472216dc637a
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
917e38851cbc6caffe1f8dade4db452bace522ba 31-Oct-2013 Adam Cohen <adamcohen@google.com> Fix issue with adding widget with config activity to empty screen (issue 11381059)

Change-Id: Ic7eecb30422e7a6cf35ebe8470d9eba8752d406e
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
88400d521e9c46382d835f42c1d50235cf99b2eb 29-Oct-2013 Winson Chung <winsonc@google.com> Merge "Initial changes to support smaller landscape layouts." into jb-ub-now-jetsonic
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/Launcher.java
4fe4c932221cc6a7e7114eff84220150f76729b9 29-Oct-2013 Adam Cohen <adamcohen@google.com> A bit of code cleanup (issue 11026590)

Change-Id: I8b2ef52f59abdbe3ca286eac6e639f19a11f7970
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
ad4e15cae4b628677fc249628a9ff661e67add78 18-Oct-2013 Adam Cohen <adamcohen@google.com> Cleaning some page animations

-> Fix jump when last page gets delted (issue 10908427)
-> Fade out empty screen
-> If the final page is empty, and that is the current page when
spring loaded mode ends, animate back to the previous page
and then fade out the final page. Examples: cancel widget
or shortcut drop on the final page, scroll to final page and
drop an icon into a the hotseat, etc.

Change-Id: I13438fb0af6555b6f0b511b7aff51b3972431438
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
df95eb12a4d288ffa143a0c3db60e7e98f3e03b9 16-Oct-2013 Winson Chung <winsonc@google.com> Ensuring disabled packages remove all components on the workspace. (Bug 11172454)
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.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/Launcher.java
0007472e20e02589a6305e1aeaa70770963ebec7 12-Oct-2013 Adam Cohen <adamcohen@google.com> Fix issue with extra empty screen left over after widget add cancel (issue 10865959)

Change-Id: Iee72fe1b296e81a5f2d04f6edcbf9cac19aff992
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
d1e474a92e47171a985738144887e1f2e46c7768 10-Oct-2013 Winson Chung <winsonc@google.com> Merge "Initial changes for new clings. (Bug 11142616)" into jb-ub-now-indigo-rose
21cd002fef13ff0b6336f10f97e29738a2b0ecb9 10-Oct-2013 Adam Cohen <adamcohen@google.com> Fix issue where custom content would show up on boot (issue 10713745)

Change-Id: I1c03784970fe1a88e2561f1c5367979cda825973
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
82e5c98446e1f1765aabca1725cba181a56edcb4 09-Oct-2013 Winson Chung <winsonc@google.com> Update custom content hint after custom content is invalidated (Bug 11067230)

Change-Id: I5f98e2a0e4bc3439ff36688555990798c59efa58
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
f248abc12238e79432c07e8cbc435ed5ac8c1ce9 10-Oct-2013 Bjorn Bringert <bringert@android.com> Merge "Use translucent decor theme attributes in Launcher3." into jb-ub-now-indigo-rose
3a6e7f330e680ef718ca7c0921d842efb4d8bbae 10-Oct-2013 Winson Chung <winsonc@google.com> Initial changes for new clings. (Bug 11142616)

Change-Id: Id66ebceb99449941921d9e617dfe0cc05a2e3b65
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
3442bc94672a909606a8dd001df8b1b180ddbd80 10-Oct-2013 John Spurlock <jspurlock@google.com> Use translucent decor theme attributes in Launcher3.

And remove interim helper class.

Bug:10674960
Change-Id: I81d31563074deea058b9bbb4b806c6200f85230f
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
82963d530ac92ca770c5b674ee5a6c80eb6506d2 09-Oct-2013 Winson Chung <winsonc@google.com> Removing extraneous apps-customize page reset. (Bug 11027505)
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
04c0a5c9110eff549cb1120341797ec986d9943a 09-Oct-2013 Winson Chung <winsonc@google.com> Don't animate search bar when we are not animating the transition to workspace. (Bug 11105305)

Change-Id: If397ce78a15dafe98f951d185da26ca014c9ad1b
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
5376e7a86fd9e87681584871b62c66cf31b5c262 09-Oct-2013 Winson Chung <winsonc@google.com> Merge "Ensuring that the widget drag outline is padded by the default widget padding. (Bug 10881814)" into jb-ub-now-indigo-rose
ad7db6e8ddddae423d027163a1bdf7015210f7ce 08-Oct-2013 Winson Chung <winsonc@google.com> Ensuring that the widget drag outline is padded by the default widget padding. (Bug 10881814)

Change-Id: I8d613104d07e64e55f31f777d222a2ecaccb0adc
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
ed307df7446288f23a1ce34e5cdb6b55dd3df675 02-Oct-2013 Adam Cohen <adamcohen@google.com> Cleaning up home / back behaviour in overview mode (issue 10965421)

Change-Id: Ib85e8b3ca369582122298ca0a66109c8a363880c
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
cffa7175f8328cfbf6bc9ed1507f1900fe4bc85c 07-Oct-2013 Casey Burkhardt <caseyburkhardt@google.com> Merge "Disable clings when explore by touch is enabled. Bug: 11067870 Change-Id: If203f3a23de3bd3192ff748bbccc04d74b0a73fa" into jb-ub-now-indigo-rose
d4507eefa37245c012a68d148aa5f14d4638f96d 04-Oct-2013 John Spurlock <jspurlock@google.com> Migrate to new WM.LP.flags based translucent decor API.

Update/rename common helper class TranslucentDecor to handle both
apis so behavior is correct on old and new builds.

Bug:10674960
Change-Id: Id3b2d523026e9e4f2f71f0eab404792207c6d8c7
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
4b37887942cd546f15ac2d2a2fdee748213089dd 05-Oct-2013 Adam Cohen <adamcohen@google.com> Fix issue where TalkBack would announce Apps instead of Widgets (issue 11012666)

Change-Id: Ia25c370d706055bee4a5766cfdea20b637e936b4
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
53805218809cc1f93a0f1307b442df7c65a3068c 01-Oct-2013 Adam Cohen <adamcohen@google.com> First pass on accessibility

-> issue 10801717
-> issue 11012432
-> issue 11012764

Change-Id: I9a687a39a358441afd57c0c46b57399ecbf23c36
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
0d9cbae4dd6603870d1cd26c9a7b547b5eea6b0c 04-Oct-2013 Casey Burkhardt <caseyburkhardt@google.com> Disable clings when explore by touch is enabled.
Bug: 11067870
Change-Id: If203f3a23de3bd3192ff748bbccc04d74b0a73fa
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
8741298d3c6a17015dabc4aacc261fd8eb59992d 04-Oct-2013 Winson Chung <winsonc@google.com> Fixing issue with numerous empty screens showing when adding a shortcut to a clear workspace. (Bug 10785413)

Change-Id: Ib9b5f76dc23e609b1774147a6cf760f185d9154b
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
ed60ba1e24512bef0bb2b749b6297e8c7e5330cf 04-Oct-2013 Bjorn Bringert <bringert@google.com> Merge "Add a better app filtering mechanism and filter widgets" into jb-ub-now-indigo-rose
b232383fd5b0e8cb36990307d7392499729afa23 04-Oct-2013 Winson Chung <winsonc@google.com> Fixing issue where newly added shortcuts were not being animated in (Bug. 11023745)

Change-Id: I63d3a5fb3b41f5fc58ee44db9270772ce8458ee9
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
1307f63f8a93541bf6e2d29c11fab69778a25e42 03-Oct-2013 Bjorn Bringert <bringert@google.com> Add a better app filtering mechanism and filter widgets

The old one didn't use the app filter when packages
were added or updated, only in the initial load.

The app filter is now also used for appwidget providers.

Bug: 10895858
Bug: 10898990
Change-Id: Id29bbc3cf7bdb0c360edd92f768b86684bd338ed
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
6fecd410e8567af916b1bbd53198d9878c686177 03-Oct-2013 Adam Cohen <adamcohen@google.com> Trying to come up with a simpler approach for onShow/onHide.

-> In this approach, the shown/hidden state should be tracked
by the CustomContent provider and excess calls to onShow and onHide
should be debounced. That is, if onShow is called twice in a row,
without an intermediate onHide, the second should be discarded.
Viceversa for onHide.

Change-Id: I2fa48d15f28767775a9a9cb84c1d920867a12176
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
fdc4302bfa9b0ff65403006a89872f4a523fa825 02-Oct-2013 Allan Wojciechowski <allanwoj@google.com> Don't animate showWorkspaceAndExitOverviewMode

We shouldn't animate from here as this only gets called when
transitioning to the custom content screen and we shouldn't
animate exiting overview mode.

Bug: 10849624
Change-Id: I1309f2ed1f89a20a9e7b7a2fb5aec47b01f222ab
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
edaaa3023251eb2bd71e3da180df39334f77d4a8 02-Oct-2013 Adam Cohen <adamcohen@google.com> Ensuring launcher is always setting "interactionBegin/End" where appropriate (issue 11030735)

Change-Id: I16f4f6a19cdc92af6b817a658dc32e082f08660c
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
c6be6eec2800e4908ef9b5ff86b8c185dfa19030 02-Oct-2013 Dave Hawkey <dhawkey@google.com> Merge "Fix NPE if workspace is not created yet" into jb-ub-now-indigo-rose
7267fa58693549894999db17359ce26f8bc7b4a7 27-Sep-2013 Michael Jurka <mikejurka@google.com> Make some changes for transparent system bars

-Move transparent bars from just GEL to Launcher3
-When wallpaper strip animates, render it under the nav bar
-Disable rotation of wallpaper picker on phones

Bug: 10814785
Bug: 10852650
Bug: 10852554

Change-Id: I9efeccbc4ad1933689266a5dede201ccfd34acf4
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
f099eb0bf4c0fdee5c4708d48ce0134fbf0d1249 01-Oct-2013 Winson Chung <winsonc@google.com> Merge "Using state to update voice button proxy visibility instead of view flags. (Bug 10915381)" into jb-ub-now-indigo-rose
5841efa6121fb40dd7c1a6a432a899b894fa5c6d 01-Oct-2013 Winson Chung <winsonc@google.com> Using state to update voice button proxy visibility instead of view flags. (Bug 10915381)

Change-Id: I72feb506cbc1b03e2b99d36bc4a9d7bda27101be
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
61f560d92ab4b11a61beeb8df97b9952027e08e4 01-Oct-2013 Adam Cohen <adamcohen@google.com> Fixing AllApps pressed state (issue 10845969)

-> Adding haptic feedback to overview mode buttons (issue 10917359)

Change-Id: Iaf7ac31521ae08f4223aa0d0ffc2f6511b85567f
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
f9e8640fcc02a4f1e85ff371d3938a04b24564a4 01-Oct-2013 Winson Chung <winsonc@google.com> Merge "Disable update logic for market button." into jb-ub-now-indigo-rose
d64a66617b6b6aaa3d1d9f9220c33411acdca729 30-Sep-2013 Winson Chung <winsonc@google.com> Disable update logic for market button.

Change-Id: Ie05995b18252cc78c38b3cb0886407b0c5a13be0
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
3a733a77e32ea112516b4a7ef0b571d6bcc51315 30-Sep-2013 Dave Hawkey <dhawkey@google.com> Fix NPE if workspace is not created yet

Change-Id: I0c8976a8497e2059ec7b2cda3d56eb965a532765
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
82398369f3a925ce15a37a968d050a4de422c7fa 29-Sep-2013 Adam Cohen <adamcohen@google.com> Fixing NPE in onFinishBindingItems (issue 10975740)

-> See bug for explanation. Seems like the circumstances leading to this
NPE are understandable.

Change-Id: I89637a2da50be1081632e05cf79678c983a74d3a
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
8ad682ddda37ce6bc438895f3adb8617244d0e46 28-Sep-2013 Sandeep Siddhartha <sansid@google.com> Merge "Close open folders before moving to -1" into jb-ub-now-indigo-rose
f2b47f13cec19c8e06754fa1c3f46892349c217f 27-Sep-2013 Sandeep Siddhartha <sansid@google.com> Close open folders before moving to -1

Bug: 10955838
Change-Id: Ic6cbb67c4cf485fe1682c7cdd7de200a9227cff0
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
54e65135548818cb2fa8522b27df92c0aaa3e4a7 27-Sep-2013 Winson Chung <winsonc@google.com> Ensuring that Launcher always has a search bar. (Bug 10965514)

- Also disabling voice proxy when we are in now (Bug 10915381)

Change-Id: I4ad6392b5139d12b9b298110109b9363ba426cb4
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
a6125efb66dd7554f2a84804baf6cc02a1334f20 27-Sep-2013 Sandeep Siddhartha <sansid@google.com> Fix build break

Change-Id: I23f7c74eb088fbe77a24df9bc80f0d2fff647abb
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
fa54513308ef60ffcd7eec8e1ce92120a643b88e 27-Sep-2013 Winson Chung <winsonc@google.com> Tweaking folder cling to support large folders.

Change-Id: I3c500463fba8db71807ad4fc27c6923f3e1d0770
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
780fe59a7af8b12fbdcd7f6841edaa7f2c2e019d 26-Sep-2013 Winson Chung <winsonc@google.com> Integrating some aosp fixes, ensuring that we update the install queue before returning to Launcher.

- Fixing stuck page in All Apps (Bug 9347818)
- Fixing shortcuts to uninstalled apps from being installed (Bug 10726510)
- Consolidating vibration feedback
- Ensuring that we trim names during comparison in AllApps list

Change-Id: Ieaae4d85851ce771283b4684a8a60306da28cb3b
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
93c9756e7a64e782e6b78ec978d2f7a5802c277d 26-Sep-2013 Adam Cohen <adamcohen@google.com> Fixing some touch / interaction problems

-> Weird reorder/scroll mode hybrid (issue 10550801)
-> Entering overview mode when we shouldn't (issue 10855389)

Change-Id: Ic936ead8deb3a5d4e00f265d09329528a1517063
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
a2f665f4f7dc60aa0ea97e20027a79e796241356 26-Sep-2013 Anton Hansson <hansson@google.com> Broadcast app launches from all apps too.

Bug 10943415

Change-Id: I0e496a53fc253bd313d269a05674d7c5cdadee68
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
94d6768c65929efa21bb893fdef7f269d65da3c3 26-Sep-2013 Winson Chung <winsonc@google.com> Restoring INSTALL_SHORTCUT receiver (Bug. 10343529)

Change-Id: Icd6a97c1d7877241aa9c71bd80dfdbe6e44ca7ee
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
a0b7e86299ed9baf278e0c1ed73f4a4f6a057322 06-Sep-2013 Winson Chung <winsonc@google.com> Removing any overlapping items with the hotseat.

Change-Id: I9634939e6b1e8905d232d5a30608e2c56071d7bc
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
2b5e56c23bc8123064eb24b4060daba0fc948300 24-Sep-2013 Winson Chung <winsonc@google.com> Merge "Launcher changes to support custom cling hints." into jb-ub-now-indigo-rose
2d75f125f4e8bb5358dfdb63096d0493488ac2e5 24-Sep-2013 Winson Chung <winsonc@google.com> Tweaking styles for AllApps and widgets spaces. (Bug 10843502)

- Fixing various issues with Search bar showing when it shouldn't be.

Change-Id: I2a553ad93e3422666a883b90a1ff97625bf05831
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
e6eabffd39c85b4cdb022c5e803ed561d87bd88b 24-Sep-2013 Winson Chung <winsonc@google.com> Launcher changes to support custom cling hints.

Change-Id: Ic381f43b96fb15a7a485b139635795e89564cc3b
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
af40f205d7f0c5f73a92ff5d9b8e9602dbde58c0 19-Sep-2013 Winson Chung <winsonc@google.com> Initial changes to restore clings.

Change-Id: Ie23e6e9f39679e8d35955a4a7db804d03f8b4d3f
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
37cab1bc25b99e4ac2429f7d965342a534d441b4 20-Sep-2013 Winson Chung <winsonc@google.com> Merge "Tweaking page indicators to support add page icon, remembering widget picker page (Bug 10787439)" into jb-ub-now-indigo-rose
d7dc681290d52a00cf8dd6664a8105cb1374a681 20-Sep-2013 Mark Brophy <mbrophy@google.com> Fix scroll not sync with QSB in GEL.

Bug: 10835163

Change-Id: I6b8e09fa395fadb31fe6a0d5339e92ece9334b0c
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
ede4129e77f8347e32c0da9c615bcff2cbc06fd8 20-Sep-2013 Winson Chung <winsonc@google.com> Removing old debugging logs. (Bug 107442854)

Change-Id: I56d6838af3cca710eab300d3e71ca1be90866cdd
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
7819a56217fd4e216d3675905586b275799723bb 20-Sep-2013 Winson Chung <winsonc@google.com> Tweaking page indicators to support add page icon, remembering widget picker page (Bug 10787439)

Change-Id: Iab0b5676aa9c34a610b4b968940abc81c913c234
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
b94f3f804f3954666c73e0564391444ec77dc4d4 11-Sep-2013 Michael Jurka <mikejurka@google.com> Remove options menu

When options menu is clicked, go into overview
mode

Bug: 10704930
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
8c082818a8ee813318e32a667883f73d7b94126a 19-Sep-2013 Dave Hawkey <dhawkey@google.com> Merge "Support for dynamically adding/removing -1 screen" into jb-ub-now-indigo-rose
dbdff6bc7b225255207a46fad8f536b55a18efac 19-Sep-2013 Adam Cohen <adamcohen@google.com> Handful of small changes / bug fixes

-> Fixed fade in of overview panel on first animation
-> Fixed long press issue in page indicator region
-> Added background scrim to overview mode
-> Fading search bar in overview mode / disabling clickability
of search bar and mic

Change-Id: Ic9bf84f7cb9ff2991c5b4e93273d9e3f65556e5c
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
a888158880fea53479447d883391f552604e46b6 17-Sep-2013 Dave Hawkey <dhawkey@google.com> Support for dynamically adding/removing -1 screen

Change-Id: Ife68b64c04498e336192caf895edb9a090dcdc26
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
2c38e70acd92372669cf93c2049ad162650a43ba 18-Sep-2013 John Spurlock <jspurlock@google.com> Fix launcher3 standalone build.

Change-Id: Ibfe14c5960211916222fc49389b8776be6bf768b
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
1697b79a86c8244cf2758eec93e0ba299bc107d0 18-Sep-2013 Adam Cohen <adamcohen@google.com> Fixing up click / long click to enter / exit overview mode

Change-Id: I1ec7ab7f3e5c67add9ae64901e0ea377e265ed84
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
ab2d9d72ae0a37553a82fa845c412167c727a258 17-Sep-2013 Sandeep Siddhartha <sansid@google.com> Add settled/unsettled state information to launcher

Bug: 10789736
Bug: 10785435
Change-Id: I876707103d495f4a8e55909af63c75da210fefde
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
040a5d2f7a327bd777b5859edea32ed2f1d3593e 17-Sep-2013 Adam Cohen <adamcohen@google.com> Ensure we exit overview mode when screen turns off (issue 10750327)

Change-Id: I2bd31bf549e2bd88a2fbc958b94e5e1107994162
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
d3ecce919296594ceeed6619d32994360b65ae40 16-Sep-2013 Adam Cohen <adamcohen@google.com> Fix issue where you can't long press on empty screen to enter overiew mode

Change-Id: Ia7e3913187e5f38ce9db6f9da4bf9e8408ea977a
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
336fd4f65b8fa0f5188060eba351fa70bb5bfde0 12-Sep-2013 Michael Jurka <mikejurka@google.com> Exit overview mode after setting wallpaper

Also, create method to exit overview mode without
an animation
Bug: 10332065
Change-Id: Iaade5ccb07aefa7d19be5f07db821a69762cb1bb
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
af110e8603b2f372286d9155cbe8955a6a329e2d 12-Sep-2013 Allan Wojciechowski <allanwoj@google.com> WIP: Add moveToCustomContentScreen method

To allow as to move to the -1 screen from GEL. Also added a
showWorkspace method to handle intents when we are in All Apps.

Related GEL CL at ag/357408

Change-Id: I0a4d03df2bf035d342b74f6c3c9b3fe9105f1c59
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
0a1cc7da274dcf343b4fdc9c336d1f574b3f2133 14-Sep-2013 Adam Cohen <adamcohen@google.com> Merge "Shrink-wrapping model to spec (issue 10397399)" into jb-ub-now-indigo-rose
5084cbab0eb0c06bd2778e0a48efaf392717cd10 03-Sep-2013 Adam Cohen <adamcohen@google.com> Shrink-wrapping model to spec (issue 10397399)

Change-Id: I87e32e8bd93f3b0468bc840200faed8270922a03
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
11a1a53651924b544513f1f6971a735b18d67539 13-Sep-2013 Winson Chung <winsonc@google.com> Fixing issue with folders not showing up.

- Add long click on empty spaces in hotseat to show overview mode
- Limit the height of all apps to the workspace + hotseat size
- Fixing some comments

Change-Id: Ie5a97a8b04e449385e2b3f6230079aebf8e15d5a
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
77e1f47520958edd7ec04e203db65b932537bd1c 11-Sep-2013 John Spurlock <jspurlock@google.com> Add system window inset support to DragLayer and children.

Instead of fitting system windows as before, DragLayer now
lays out under the system windows.

DragLayer will simply add the system window insets to each
child's layout margins by default. e.g. for Hotseat, Page
Indicators, QSB, Search Overlay.

Children that want to use the full viewport can declare so
by implementing a new Insettable interface. System window
insets will be passed to Insettable#setInsets(insets) and
the child can do what it wants with them.

Currently, two of DragLayer's children implement Insettable:

1) Workspace (for the -1 screen).
Full screen pages are given the entire viewport, paged
view offsets modified to end up in the right place now
that the viewport is larger (the full screen height).
Non-full screen pages like the normal icon pages simply
apply the insets to end up in the same place they did
before.
NowClientCardsView uses the full viewport, applying the
insets as padding. Will want to better take advantage
of this new real estate in a future CL.

2) All Apps (AppsCustomizeTabHost).
Applies the insets as layout margin one level down, so that
the bar area is opaque during the transition, but visually
the content lands in the same place.

(Also add db_files to .gitignore to ignore the output of the
db tool)

Bug:10687177
Bug:10652189
Change-Id: I80b25d63884d244fcf704b24dad9497ee0d8b453
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
85f418d0f5607c66efef1673075a6d3486e5af83 06-Sep-2013 Bjorn Bringert <bringert@google.com> Allow Launcher class to hide activities from All Apps

There are a few questions for the launcher team
embedded in comments.

Bug: 10645210
Bug: 10551568
Change-Id: I67ad10da0d0f0f0885f8b14d329231c37aa6779b
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
c58497ee619416c4949b16eb43486c11618b69e5 04-Sep-2013 Winson Chung <winsonc@google.com> Initial changes to restore AllApps.

- Removes unused all apps code due to dynamic grid/spacing
- Attempts to use CellLayout instead of PagedViewCellLayout

Change-Id: I3c49bca9fc35dfeaf250591fd63bc7f36119968f
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.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/Launcher.java
e92c8c8e3036e15ad629b5b17ddad18b55b13a5c 29-Aug-2013 Adam Cohen <adamcohen@google.com> Merge "Adding custom content scroll progress callback" into jb-ub-gel-agar
30bacb215893882688bf50479bcd4843f83a661b 29-Aug-2013 Adam Cohen <adamcohen@google.com> Added settings button to overview mode

Change-Id: Idcbfa49fe2710dec460155f34bd371321af6cf17
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
c36fa5ce395bd39d16f6a998372700ed53d5d9d6 29-Aug-2013 Adam Cohen <adamcohen@google.com> Adding custom content scroll progress callback

Change-Id: I23b007f6ac30809c03127f5d9030d8f367694310
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
4caf298a2c9d861d69f5a47b747ada911b125b6d 21-Aug-2013 Adam Cohen <adamcohen@google.com> Logging to disk for more reliable logging

-> Re-adding basic distinction btw apps and shortcuts
-> Adding functionality to e-mail dump file, but not using

Change-Id: I2b635004ab082af79445158ab61f20aac62d2e2f
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
9e6a0a20d40675ef98c7fdb8892cf34b90152f7a 27-Aug-2013 Winson Chung <winsonc@google.com> Clearing workspace screen data structures along with pages.

Change-Id: Ib6c4522cd0c0c06dd6fd327be3621a6de0778f9c
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
53fc06d5d6d4b57e824490300bf62dbed54d9ac7 27-Aug-2013 Winson Chung <winsonc@google.com> Merge "Fixing issue where dragging final items out of hot seat folder can causes inconsistency issue." into jb-ub-gel-agar
6c15a644cb72df32edb62489f272c4aefe711e8a 27-Aug-2013 Winson Chung <winsonc@google.com> Merge "Fixing folders to always show in view, removing old assets and references to LauncherModel count." into jb-ub-gel-agar
0e6a713fca3261021fcaca62c75dad8486c5e39f 23-Aug-2013 Winson Chung <winsonc@google.com> Fixing issue where dragging final items out of hot seat folder can causes inconsistency issue.

- Fixing restoring of workspace screens on rotation (and flash of custom content page indicator)
- Fixing NPE on long pressing on empty screen to go into overview mode
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
892c74d460ad98c6306420e1127c9aa3e505ba25 23-Aug-2013 Winson Chung <winsonc@google.com> Fixing folders to always show in view, removing old assets and references to LauncherModel count.
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
eed7aa422f64e1a62d6d4ef96bf378ef9392a48b 23-Aug-2013 Adam Copp <adamcopp@google.com> Merge "Get the view to be used as qsb bar from the launcher directly." into jb-ub-gel-agar
a805e1a297c0d1fa84d9fed51e0167aa32bd42bb 22-Aug-2013 Michael Jurka <mikejurka@google.com> Finish support for third-party wallpaper pickers

Clicking on the pickers didn't do anything before.

Change-Id: I103caafbe8d44d27d1797436ce479fb769c4c0f4
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
476493bcc3b2d6cf32db62bf78714aa0f2747108 07-Aug-2013 Cristina Stancu <crstn@google.com> Get the view to be used as qsb bar from the launcher directly.

This will allow more control over the qsb visuals and behaviour in GEL.
Depends on ag/339203

Future changes:
- revert ag/344333 since we won't need the normal qsb to support hotword
anymore
- Dragging icons over the Drop target bar (to remove/uninstall them or
get App info) doesn't currently work in GEL. There might be future
changes needed to fix that.

Change-Id: Ic498f0abee5ad99ef1644ff94f174b61f8e1f5f0
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
2b931429dbf29633657f060151e5451522b44f15 21-Aug-2013 Daniel Sandler <dsandler@android.com> Merge "Don't use a More Apps folder." into jb-ub-gel-agar
8707e0fa1ca2c79be862c29cb919b7372f0b6a50 16-Aug-2013 Daniel Sandler <dsandler@android.com> Don't use a More Apps folder.

Instead, "extra" icons (which were not previously workspace
shortcuts) will be strewn across your workspace.

Change-Id: Ie8a7b533bb3c94bec3aa8fc7c7c8d3bea7eef485
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
f3007589e346df224d357b389069adfeb266545e 21-Aug-2013 Michael Jurka <mikejurka@google.com> Add logging for Folder drag issues

Drags out of Folders are getting lost, adding
debug code to see if the uninstall logic is
causing that

Also, fixing one potential cause of the issue

Change-Id: I0b6a91268571c2a9394e0d6f19fb9d324b427b51
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
104c45677660586026a7e74ef8c47d396403d50e 09-Jul-2013 Michael Jurka <mikejurka@google.com> Initial implementation of new wallpaper picker.

Change-Id: Ib4c5ac4989b4959fa62465d9cde3cac662e24949
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
6670073de833cb56dabecb1eb751b6625a5aed78 21-Aug-2013 Winson Chung <winsonc@google.com> Fixing issue with widget sizes being misreported.

- Fixing NPE with getting page indicators in phone landscape

Change-Id: Id369596e38cbe7a161c0d1f62e62e4f4f3cc31b3
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
81d6f6ecca788e6c300dfbc7d732a3867859fbd8 21-Aug-2013 Winson Chung <winsonc@google.com> Merge "Removing workspace screens on load and ensuring we don't bind on new apps until returning to Launcher." into jb-ub-gel-agar
d64d1763c590b1c954b759156683abf39ff22945 20-Aug-2013 Winson Chung <winsonc@google.com> Removing workspace screens on load and ensuring we don't bind on new apps until returning to Launcher.

- Updating print_db to print workspace screens

Change-Id: Id477f5a5649c0d3b7ab0cce5ed99ca0a519d7706
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
89bddfaa6d1dbd1534c5f5c5f3163c10f627209e 20-Aug-2013 Adam Cohen <adamcohen@google.com> Stripping unused method param

Change-Id: Id71664a88908773c5e64c9394070ad231d2148a1
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
5f8afe6280eae34620067696173e71943e1a30a3 13-Aug-2013 Winson Chung <winsonc@google.com> Initial Changes for Dynamic Grid

Change-Id: I9e6f1e5167791cf8dc140778dfa447f86424e9bf
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
8a6870101c3d99257fc050d11bb69f50f5240622 20-Aug-2013 Winson Chung <winsonc@google.com> Merge "Ensuring that we don't clobber workspace screens map when new apps are added." into jb-ub-gel-agar
76828c87ddb50ee3b423ef26f36387a2f03fd562 20-Aug-2013 Winson Chung <winsonc@google.com> Ensuring that we don't clobber workspace screens map when new apps are added.

- Using Log warnings instead of debugs
- Ensuring we don't save negative screen id's

Change-Id: I13276d007193c120ee0830abcdc6eb203f22a9da
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
e341d30a13c37ef321aee841592d7d58fe3818d9 16-Aug-2013 Winson Chung <winsonc@google.com> Fixing issue where widgets could not be picked up after the bind-dialog shows. (Bug 10332119)
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
bbd6ba5446fde16470aa9a7c4e50f123d55de9ae 16-Aug-2013 Daniel Sandler <dsandler@android.com> Merge "Hide WeightWatcher by default." into jb-ub-gel-agar
6053b8007ed22fba6a62a9238aad6d0a42229fae 16-Aug-2013 Daniel Sandler <dsandler@android.com> Hide WeightWatcher by default.

Change-Id: I722b5f78311234860c4c0ac227cfb0115ffc8e01
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
1b7d423c65fa40008e6bb61ad6c75d74ac20be6a 14-Aug-2013 Adam Cohen <adamcohen@google.com> Merge "Adding overview mode for reordering, widget adding and wallpaper switching" into jb-ub-gel-agar
f358a4bbd6ce5b6ddadfae19e6b9c6872530d627 24-Jul-2013 Adam Cohen <adamcohen@google.com> Adding overview mode for reordering, widget adding and wallpaper switching

Change-Id: I082ba0b90ca4b3fbba32e8dfdec8ba79486d841c
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
8481e32e5ba318d11c31317072a8a23aacd3d0b9 10-Aug-2013 Winson Chung <winsonc@google.com> Adding additional debugging code to track screen id updates.

Change-Id: I1749ab998a4c213b32f1160d5d21f21b2f30e389
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
2594d7119342d19325a907867510825ba6da2a37 06-Aug-2013 Daniel Sandler <dsandler@android.com> Merge "Initial implementation: Broadcasts on app launch." into jb-ub-gel-agar
ff02d49e464c2fe92ba625a3046f31aa042e5d32 05-Aug-2013 Daniel Sandler <dsandler@android.com> 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
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
3dba179949b4c1ce6d91c8eb847a91d9f2c56282 02-Aug-2013 Winson Chung <winsonc@google.com> Merge "Removing old new-app animation code, and refactoring InstallShortcutReceiver to use new add/bind logic." into jb-ub-gel-agar
5455425c1b0355f5dd652cc8e7a2369c33dc9883 01-Aug-2013 Michael Jurka <mikejurka@google.com> Fix bugs with dragging items out of folders

A folder of one item wasn't converted to a single
item - this fixes that regression

It was also possible, in some rare cases, that the
Folder cleanup code never ran after uninstalling
an app

Change-Id: Iee2490ed95d4f4a243b6f93411397a397aef7ae1
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
707f650c5c9f569f1c4bfe98be00ea77cc24073d 31-Jul-2013 Winson Chung <winsonc@google.com> Merge "Adding hint for launcher to pre-create custom workspace screen." into jb-ub-gel-agar
98ca0f7203f66c491a5362c2f4db79547872bdfe 29-Jul-2013 Winson Chung <winsonc@google.com> Adding hint for launcher to pre-create custom workspace screen.

Change-Id: I150fb8b6ff13053bf4b0b49f2b510630ed50714a
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
63d7870ea23502f10b74e9c91de9bd8f0bfc0507 31-Jul-2013 Winson Chung <winsonc@google.com> Merge "Verifying that new applications are added and fixing issue with new items getting wrong ids." into jb-ub-gel-agar
997a92348a6d6e061737399321393449c16cd4d8 25-Jul-2013 Winson Chung <winsonc@google.com> Removing old new-app animation code, and refactoring InstallShortcutReceiver to use new add/bind logic.

Change-Id: Ide27dbcf1d1b1631fcd33a6c54a51b31e125c2f4
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
c763c4e4d28c256d1368be3fc1c4526c8b9bd232 19-Jul-2013 Winson Chung <winsonc@google.com> Verifying that new applications are added and fixing issue with new items getting wrong ids.

- Fixing issue where the LauncherModel would be out of sync on first migration, and subsequent crashes

Change-Id: I6f58b09b615b28958c7f941e58ff9ae0ee3ba939
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
8c87cd83e09cd361c68069c84940dbaf20e9860d 24-Jul-2013 Winson Chung <winsonc@google.com> Fixing issue where the page was reset to 0 on rotation.

- We needed to defer setting the restore page until the first onLayout

Change-Id: I6b7b4c0a6401ab6ab2caaea0dac0a7261ff831e8
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
bffe745b1e195deedc1dcc60f37950b3b0b4c652 23-Jul-2013 Adam Cohen <adamcohen@google.com> Adding contract for custom content screen

Change-Id: Ia4dae3c641730ab24a0a124fd94b871d248b7dda
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
ae6f6c67a3aa78d6ebde87321a0abd191aee94e1 19-Jul-2013 Adam Cohen <adamcohen@google.com> Merge "Adding switch to toggle Memory Overlay" into jb-ub-gel-agar
39a06042556a90c98f55a92bda5811e7d9492d13 19-Jul-2013 Adam Cohen <adamcohen@google.com> 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
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
1e2f465f46ded990ea30516cdb7f0fcf3280411f 09-Jul-2013 Michael Jurka <mikejurka@google.com> Implement ability to uninstall shortcuts from workspace

Change-Id: I14ca94ea719825c4de19ab85d67537155098d50c
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
edb4076e59861d0c343e7245f247e2bee6d48159 19-Jul-2013 Adam Cohen <adamcohen@google.com> More PagedView cleanup

-> Custom content screen is now full screen (with some padding inserted for now)
-> Hiding the hotseat and page indicators when scrolling to the
custom content screen
-> Adding background scrim fade in to custom content space.

Change-Id: I28921318a38af46f11fa836020a590c70d5d96ed
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
02b3a8ca1f9dac40677dcdee2fc88307b99cc15d 17-Jul-2013 Adam Cohen <adamcohen@google.com> Merge "Adding notion of fullscreen page to PagedView" into jb-ub-gel-agar
d2be381d36485059d0108ae89cfe57a30a7a8499 16-Jul-2013 Winson Chung <winsonc@google.com> Removing old scroll indicator and adding page indicator dots.

Change-Id: I44c5b4b532e8464010d45dd0a3dfeccb2d475216
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
96d30a165185dc59617e181314f4d22634e22952 17-Jul-2013 Adam Cohen <adamcohen@google.com> Adding notion of fullscreen page to PagedView

-> This will be used for appending custom content to the left of the workspace
-> Stripped out a bunch of dead code related to notion of layout scale in PagedView

Change-Id: If4dbe28431cb5fb60dc170f6ee6e55a649dac45e
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
156ab5b22e45b36a1c5edbe5accccf6aefcb4907 12-Jul-2013 Winson Chung <winsonc@google.com> Fixing issue where migration all apps folder couldn't be picked up.

- Ensuring that we add items to the non-primary home page
- Fixing issue with drop-target touch handling on tablets

Change-Id: Iea5a383dc735a8f6044a00982f05789f8328ab63
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
dedbd962dcfaf055a6835abf5b0000ce1564e51e 11-Jul-2013 Adam Cohen <adamcohen@google.com> Enabling reordering

-> Reordering is enabled and persists
-> Fixed persistence issue when adding items to empty screen

Change-Id: I7c797b2c81a2988c95d8d9383be46d6ef0b7532d
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
ce376639c8287747e462fd67a7d2d511ac80c344 12-Jul-2013 Winson Chung <winsonc@google.com> Fixing crash due to checking hotseat items for collisions incorrectly.

Change-Id: I6ad2a3bd46b975959077683331a4ff7b946cc488
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
64359a53dc827797917a8d9a0697a91996789801 09-Jul-2013 Winson Chung <winsonc@google.com> Ensuring that the db reflects all package added/removed/updated broadcasts.

- Also ensuring that newly added pages are added before the empty page

Change-Id: I97a01f791c438aa5c5b1fd770d3536b449a871bc
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
7d30a37007bac318db1c9af47a9af12d348042a5 02-Jul-2013 Adam Cohen <adamcohen@google.com> Porting PagedView from KG to gain simplified scaling model, reordering

-> We are no longer scaling individual Celllayouts, instead we are scaling
the entire Workspace (and the CellLayouts come along for the ride)
-> Due to the above change, many assumptions were broken. In particular,
our drag and drop / animation archiecture is fairly fragile due to the
frequent and complex mapping of points between different bits of the
hierarchy. This CL contains a number of fixes which address such
breakages.

Change-Id: I2e630eab17528729b764b61f587858f6499fd318
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
e060b0b3c72b93b47031f0f33bf18b121fb99333 28-Jun-2013 Daniel Sandler <dsandler@android.com> Fix crash when started via Instrumentation.

Change-Id: Iffe2c76e93e67d56a239228fd2d9e6928ab9f65e
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
d34ba129b16881b48ca9bbd6d0edb8aa1b2b3573 28-Jun-2013 Daniel Sandler <dsandler@android.com> Merge "Lazily instantiate LauncherAppState." into jb-ub-gel-agar
e4f9891f01bdc10d8f96e4e2429e2f4d0558238b 25-Jun-2013 Daniel Sandler <dsandler@android.com> Lazily instantiate LauncherAppState.

The application context for LauncherAppState is supplied by
the application whenever it starts; don't ask for an
instance before that.

Change-Id: I1ca8ea04238a357a682f79250f08813ead7ae532
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
06e6c8c50bf555e18bd62d356d4e60f3ac0d3037 27-Jun-2013 Daniel Sandler <dsandler@android.com> Merge "Turn off costly profiling." into jb-ub-gel-agar
f061f82461b8afe0c62eecb776e807c14bc0a4aa 27-Jun-2013 Daniel Sandler <dsandler@android.com> Turn off costly profiling.

Bug: 9603478
Change-Id: Ie903e8e5272794468ee6cf55ea0bf086d8c2f021
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
c916834ad0da535f08325bcd902a60070f2f7e53 26-Jun-2013 Winson Chung <winsonc@google.com> Using package broadcasts to key adding of shortcuts on the workspace.

Change-Id: Id4f83cb0351d21e3f7c029c7fe39efdacd2d6f17
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
f8577a39058fcc07a390c650cf7b8c68949450d9 26-Jun-2013 Daniel Sandler <dsandler@android.com> Start the memory dumper directly.

Launching it as an activity from within Launcher is
problematic, so we'll just treat it as a special shortcut
and run the dump when the user clicks that shortcut icon.

Change-Id: Ibe9f4adcaff674f5bafa9b0fc58b5a86cf5ceb00
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
5ccb418b0913a5ac6d0c5d601c01b1b01b0e7f3c 25-Jun-2013 Adam Cohen <adamcohen@google.com> Merge "Initial implementation of Shrink-wrap" into jb-ub-gel-agar
dcd297f05a866e07090d6e2af8fb4b15f28cb555 18-Jun-2013 Adam Cohen <adamcohen@google.com> Initial implementation of Shrink-wrap

Change-Id: If73c7f7ca19ca62ff43134f515584354afef8507
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
b9eb2865af05d9ade572e71934a9e6a50421aa7d 15-Jun-2013 Daniel Sandler <dsandler@android.com> 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
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
a127b7ad151dd1ae66d665a073e98984930c3d9d 17-Jun-2013 Daniel Sandler <dsandler@android.com> New icon to dump heap information and share it.

Alternatively,
$ adb shell am start -n <pkg>/com.android.launcher3.MemoryDumpActivity

Change-Id: I8c615ec3abffaf6ad693c93bdf569550d8f97298
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
7c4c5108295db764ba091cc0ffd7af335a166449 15-Jun-2013 Adam Cohen <adamcohen@google.com> HACK: Fixing major persistence regression associated with extra screen to the left

-> Also adding ability to delete shortcuts.

Change-Id: I263baf813eae9089f11288494d575a99f0e859c3
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
a0b5749433c66b6fed5c6026414ef438a938089b 15-Jun-2013 Adam Cohen <adamcohen@google.com> Easier way to handle shortcuts

Change-Id: I91c4a25e961774de0bed51ba986802a1834173f9
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
99894d9bb73fdc4bf9bba8423b5c5d5715a4f5d5 14-Jun-2013 Adam Cohen <adamcohen@google.com> Fixing up handling of shortcuts

Change-Id: I70dd044b608f4ef18a9c436964a11122168305d0
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
876a846edc6a9d9c6957ee0f63b01951763e3606 14-Jun-2013 Mathew Inwood <mathewi@google.com> Add a request code for derived activities to start from.

This allows derived activities to use their own activity request codes
that don't overlap with the ones used in Launcher.

Change-Id: I1337dde550c6bd748dad80e7c62ea6ce15c17374
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
1cbd1a0dec59483e27579d4ad7b7a1f7342d3898 12-Jun-2013 Bjorn Bringert <bringert@android.com> Merge changes Id26e9dcf,I4e323bd7 into jb-ub-gel-agar

* changes:
Memory debugging overlay for L3.
Move LauncherApplication's state and code to LauncherAppState.
924b993c750e6de8537afb750c2d2b9932efbdac 12-Jun-2013 Daniel Sandler <dsandler@android.com> Memory debugging overlay for L3.

Change-Id: Id26e9dcf23017abaffed4015166d57e21e751e6c
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.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/Launcher.java
e61a9a2cd4af5d1f345c6396d3013fea0aa1c767 12-Jun-2013 Adam Cohen <adamcohen@google.com> Fix issue with setting the current page immediately after a page is added

Change-Id: Ia9ddc42896b47b10bb98ed6bd6cece1b033207c1
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
efe354b8779211b34e274a6109406d4cd01cfcef 12-Jun-2013 Tom Stamm <stammt@google.com> Merge "Add API to launcher to insert a custom page to the left of workspace" into jb-ub-gel-agar
66a01fd24bde7c94ea892b007df7f79fbaa43d80 11-Jun-2013 Adam Cohen <adamcohen@google.com> Add API to launcher to insert a custom page to the left of workspace

Change-Id: I85a4e096aab9bfcb1de74f04075bcabcb7e3262f
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
69688aa359cdbffce4decf334f5d6f0143e3a694 11-Jun-2013 Bjorn Bringert <bringert@google.com> Add 'animated' argument to onWorkspaceShown; only call it on touch down

This lets subclasses decide whether to animate hiding of their own
overlays etc.

Change-Id: I0b34953c53cd0beb0fb33329d919f78f671b660a
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
ecf33e4819d0c4b019706edd456ed14a6a0f200c 11-Jun-2013 Bjorn Bringert <bringert@google.com> Move control of voice button proxy visibility to a public method

Change-Id: I9dea07801fa608bebf2026667e71d684fc4b05d3
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
c459e5241ea0c53dd53c16e73fd7a187701f537b 07-Jun-2013 Bjorn Bringert <bringert@google.com> Allow subclassing Launcher

Changes included:

- Make Launcher not final

- Add some new methods as hooks for subclasses

- Allow Launcher to intercept Workspace touch events

Change-Id: I9a2b628c853394a3b237a384336e1b9e5c2382ec
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
7564d98164c9fcba178e0ab0faf5066e33ad9a31 07-Jun-2013 Adam Cohen <adamcohen@google.com> Disable clings (they don't make sense with the current state)

Change-Id: I09c7424a74078738990db65e4a88bcdce93235f7
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
e25af795647a19f1a0d60bc4baea5a996d215fdf 07-Jun-2013 Adam Cohen <adamcohen@google.com> 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
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
b5fe60c8a502fb7e265e3183550478b2b2a49264 07-Jun-2013 Adam Cohen <adamcohen@google.com> Add a dummy activity which we can catch on-click in launcher to open allapps/widgets

Change-Id: Idc718a9e03e7358f972c59fcfc3bf2eaf75e56ee
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
e441bbc7d2baee03e96897b80f55db5ce2aa7e1f 06-Jun-2013 Bjorn Bringert <bringert@google.com> Use standard names for search / voice icon meta-data

These shouldn't be renamed to launcher3.*, since they are used
to get icons from external search / voice apps.

Change-Id: Iae10b9c19771133579a8f6f24ce9c0efbae82688
/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
32b12d2c792b74f193547e4b8375c97240079be1 06-Jun-2013 Bjorn Bringert <bringert@google.com> Get rid of dependency on android-common

It was only used for a single string constant that can be inlined

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