History log of /packages/apps/Launcher3/src/com/android/launcher3/CellLayout.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
f1eae802b5ba93fc6da537f6f4eca804c4de4f4b 04-Oct-2017 Jon Miranda <jonmiranda@google.com> Fix bug where labels were visible in hotseat / invisible in workspace.

Bug: 67364623
Change-Id: Ib66a5cdaca767fd8546f4ffd02d590981bb8135a
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.java
0b754e564b6a5fef535815467464a6abaa84d434 07-Aug-2017 Sunny Goyal <sunnygoyal@google.com> Making some methods accessible

Bug: 63996463
Change-Id: I3cd2e21b8aa6744fc8003a131178ce1671e024dd
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.java
28032006970703240f4abd34429608abd2358645 14-Jul-2017 Jon Miranda <jonmiranda@google.com> Set edgeMarginPx back to 8dp.

With the new grid changes, it was set to 16dp but this caused an issue
where the workspace page spacing was too large. To "restore" the original
page spacing we set it back to 8dp. This caused an issue where the
pages began to overlap.

This CL changes the edgeMarginPx back to 8dp, and then adds the additional
8dp to the padding of the CellLayout.

Bug: 63590728
Change-Id: Ie968d8bd81de19c726f73581d6609e3bc486c5ca
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.java
7308cde2cac46dec0dfd09144feb4475ad6d4893 28-Jun-2017 Tony <twickham@google.com> Don't fade in text if icon is in hotseat

Bug: 63011217
Change-Id: Ie914fcdfd0bf36b0cf12cc54f4e93206aa1074bd
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.java
b28c4fcf351dc9f44f69253b227880758f6b460c 20-Jun-2017 Jon Miranda <jonmiranda@google.com> Landscape grid changes for Workspace/All Apps.

This is the just first CL to get eyes on the changes.
Next CL will update the All Apps to be full width.

Bug: 37015359
Change-Id: I2d7ec6851fdc13b8fa654e7e2be3152330243ccc
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.java
a0233f72bedd7d91cf2b6febec49fadf89a60c1f 23-Jun-2017 Jon Miranda <jonmiranda@google.com> Move PreviewBackground into its own class file.

This is done in preparation for new PreviewBackground animation
where we will be animating in the first page preview items when
closing the Folder from a non-first page.

Bug: 36022592
Bug: 35064148
Change-Id: Id4d54da16ddfa852ca639a2dc8d328307d4d443a
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.java
9962dbe671ab04f8f5429e34f60c12113b4ddb4f 12-Jun-2017 Rajeev Kumar <rajekumar@google.com> 1. Replace use of java.util.HashMap with android.util.ArrayMap in
CellLayout class
2. Get rid of explicit type arguments that can be inferred
3. Make instance variables final
Bug: 62466540

Change-Id: I9acbde25704d62883d174f5573383a2d8b0e1e6e
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.java
54ba601a99cd8cecc2750e305275c40ac2bfba8b 08-Jun-2017 Mario Bertschler <bmario@google.com> Dark text support for caret, drop target text and cell layout drop outline

Change-Id: I1bcad657b6e49be6fa93cafe9d8ae304604be34d
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.java
368ae772018c12349d7bf1b27d8817e7644b08c2 24-May-2017 Sunny Goyal <sunnygoyal@google.com> Defining a dark theme for launcher

> Removing the code for LIGHT_STATUS_BAR as that will be controlled by the theme
> Updating icon cache to always use transparent background for low-res, as the
theme can change the bg color

Change-Id: Iab64ec29cab629ee515af22ec15b95d3f40a9df5
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.java
4eaacc7485b85ec964c0ff384dda781f7f17ec74 13-Mar-2017 Sunny Goyal <sunnygoyal@google.com> Merge "Defining HomeScreenElementTheme for elements which appear on top of wallpaper" into ub-launcher3-master
3d706ad70365052e3224fc4f4b0e7d1f5e8abf22 07-Mar-2017 Sunny Goyal <sunnygoyal@google.com> Separating the config and flags in different directories so that
it is easier to override one or the other

Bug: 36001650
Change-Id: I713f4f5dbcf902614ce9f6c7a73bdace7bdf1ea0
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.java
19b93b7988c12a25d9a88ca808d871916263ef9f 20-Feb-2017 Sunny Goyal <sunnygoyal@google.com> Updating FolderIcon drawing to avoid dependency on software layer.

Instead of cliping using clipPath, using PorterDuffXfermode to clear
area outside the bounds. This provides much better support for antialiasing.
Software layer was also being used for drawing shadow. But since the paint
color was set to transparent, no shadow was being drawn in O. Instead drawing
the shadow using radial gradient.

Bug: 35680116
Bug: 35428783
Change-Id: I0431664400628d5d01675fe72fe7ade01b64d611
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.java
9b29ca5add472b6bdebfa7936142b3aad6cbe3c5 17-Feb-2017 Sunny Goyal <sunnygoyal@google.com> Defining HomeScreenElementTheme for elements which appear on top of
wallpaper

> Using HomeScreenElementTheme for workspace items
> Fixing view inflation where wrong layout inflater was being used

Change-Id: I92e278dbfb609ad7af9c2f47351f23f03cf12049
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.java
93bc3c1e41b45d0a331db2589fd4c6a731cb591d 16-Feb-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Separating methods for updating the model to a sepatate class." into ub-launcher3-master
43bf11d9c95f76c2dfeb625b23cb458df81252b3 02-Feb-2017 Sunny Goyal <sunnygoyal@google.com> Separating methods for updating the model to a sepatate class.

Removing static access to model update methods, to allow for better
access control and testing

Change-Id: I9afe004dbf1b2fe50df422fd28bceea9230a4704
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.java
9e76f682f3e52afa1f11172564b883c7dfda5063 13-Feb-2017 Sunny Goyal <sunnygoyal@google.com> Removing wrapper around ViewPropertyAnimator, and using ObjectAnimator
instead

Bug: 35218222
Change-Id: Ic714cf7d20989cb45f07712e8a6f6659d0e3f30d
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.java
cda3bfb2e1d89ad872558dd0a82ae79ca6fe41ea 07-Feb-2017 Jon Miranda <jonmiranda@google.com> Remove unused View parameter from ofFloat method.

Change-Id: I5fabd5c78de52ba68b67e0b1bd7208f4d1f7cbea
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.java
72dbd91a56b02a4e8ce23741c2b906963dd3d054 04-Jan-2017 Jon Miranda <jonmiranda@google.com> Reset initial animation values before completing reorder animation.

In some reorder cases, the icons would stop in a transient position.

Change-Id: I9d358e74ab403989929dee87542d3dde78c2f229
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.java
bf8a265deb093e147a5289e0958cc9b1bc50a6e3 30-Dec-2016 Jonathan Miranda <jonmiranda@google.com> Merge "Fix widget reorder animations in multi-window mode." into ub-launcher3-master
2126691ce23b4c62e6d17cb9643faf4c2b3886da 19-Dec-2016 Jon Miranda <jonmiranda@google.com> Fix widget reorder animations in multi-window mode.

The original animation assumed that the views are not
translated and not scaled. In multi-window mode this
assumption is no longer valid, because app widgets are
scaled and translated to fit center within their cells.

Bug: 32176631
Change-Id: Id60c793730d982277c9d91860e9fb0e6a0df7d38
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.java
a52ecb0390c85afb385371bb844bb496c59ddf87 17-Dec-2016 Sunny Goyal <sunnygoyal@google.com> Removing all compatibility code below Lollipop

Bug: 32745285
Change-Id: I62971908e3e4402941fab627bbdfd47be64473a3
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.java
99d814e54b28efc8c8d8d6dec4bb036a380c3c3f 15-Dec-2016 Jonathan Miranda <jonmiranda@google.com> Merge "Restore original scaleRectAboutCenter method." into ub-launcher3-master
6f6a06ac470df4f58a6eea902b79a8813c44c8f7 15-Dec-2016 Jon Miranda <jonmiranda@google.com> Restore original scaleRectAboutCenter method.

Change-Id: Ibb49c56aab29d1223a0ab36476a32d565566eb25
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.java
f5440cbd6c0525769d24b890e16313a728831e04 15-Dec-2016 Sunny Goyal <sunnygoyal@google.com> Removing FeatureFlag.LAUNCHER3_LEGACY_WORKSPACE_DND and corresponding logic

Change-Id: Ie10c087b4f72ee27be5bf12e2c81be5b7a3a6176
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.java
e96798e885e3ac97b6de0a1c598eb09cf62349af 07-Dec-2016 Jon Miranda <jonmiranda@google.com> Smooth animation when dropping a widget in multi-window mode.

Factored in app widget scaling in methods related to estimating
widget size and positions.
ie. Dropping a widget that needs to be resized to fit in the
workspace.

Bug: 32176631
Change-Id: I106fe12041565a090047f146a07d4bc80a074b4a
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.java
776ca257cefcf2a94e06bf89df6267c945708afe 12-Dec-2016 Sunny Goyal <sunnygoyal@google.com> Merge "Defining various modes for CellLayout: Workspace, Hotseat & Folder" into ub-launcher3-master
f7ff3fe58a5daea94cbb641aa09a0eb4a5d2f8c3 05-Dec-2016 Jon Miranda <jonmiranda@google.com> Scale widgets when dragging and dropping in multi-window mode.

This change mimics the non-MW mode behavior when dragging and
dropping widgets by taking the app widget scale into consideration.
This ensures a consistant drag and drop experience between
MW mode and non-MW mode.

* Uses cell data (cell height/width, spanX/Y) to get the expected
widget sizes.
* Scales sizes when necessary.

Bug: 32176631
Change-Id: Icdaf73ecd89a30e57fe7f405292d793f2d6a3ee8
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.java
7ae64ffbe11a629e54ced0c5c99cd47228b28821 22-Nov-2016 Jon Miranda <jonmiranda@google.com> Scale widgets in multi-window mode.

To keep this CL small and focused, I'm going to create
a separate CL that handles the scaling for the widget in
drag and drop mode.

Bug: 32176631
Change-Id: Id6557d070edb664aa1f4851de7abf494cf8a0677
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.java
c13403c612748bfdf06436510600230c4c4b55ec 19-Nov-2016 Sunny Goyal <sunnygoyal@google.com> Defining various modes for CellLayout: Workspace, Hotseat & Folder

> Moving the definition of modes to xml
> Defining attributes in xml

Change-Id: I7a569fdbeb833d569eeeef2f2cbc8214e608ad11
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.java
aa8a871e337fe42e9339b96833eaf37bf2b64b2f 20-Nov-2016 Sunny Goyal <sunnygoyal@google.com> Removing widgetGap and heightGap from cellLayout

This values are always set to 0

Change-Id: Ic317efdc65baa22e915f4766c60c67c116bb94a8
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.java
93e1f04fa915fc22ecccc7e40794472914f3d446 11-Nov-2016 Jon Miranda <jonmiranda@google.com> Hide workspace text in multi-window mode.

* Vertically centers workspace icons.
* New iconDisplay value so shortcut text is not overriden.

Bug: 32176631

Change-Id: I86753bab5b24aafc417e0f77d8c471fc4c0dc7f0
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.java
35fe7be54e4c9b47598130f5234ea96c4dc16229 26-Oct-2016 Sunny Goyal <sunnygoyal@google.com> Removing some deprecated code around page layers

1) setChildrenDrawnWithCacheEnabled: deprecated
2) Removing custom logic based on isHardwareAccelerated. This check was not being
used consistantly everywhere

Bug: 29761236
Change-Id: Ic4a9c764f154497e376e37de2351fe04d1b48500
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.java
1da143940c7bed541aef0f840d295427f9397ca3 19-Oct-2016 Tony Wickham <twickham@google.com> Merge "Mark cells as unoccupied in onDragStart instead of startDrag." into ub-launcher3-master
4e47b5b0d678f9b23bee211a7808c73c51a1d7d1 18-Oct-2016 Tony Wickham <twickham@google.com> Mark cells as unoccupied in onDragStart instead of startDrag.

Also move cleanup (resetting variables to null) to onDragEnd
instead of onDropCompleted. These changes are necessary because
pre-drags (for apps with shortcuts) don't call onDragStart
or onDropCompleted.

Bug: 32246571
Change-Id: Ib18fac64555e9158b776f9c12afc2cb807b3c355
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.java
6982de2485ae516f02758bffd0cb0fdc4b127fef 12-Oct-2016 Tony Wickham <twickham@google.com> resolve merge conflicts of 2fd0208 to ub-launcher3-master

Change-Id: I20ad6eaace81786be080e28d6eb551908add6d90
2fd020860533e18c64a93d14d11cb2d34bc9cbaf 07-Oct-2016 Tony <twickham@google.com> Use Launcher.getLauncher(Context) instead of type-casting.

Bug: 32010039
Change-Id: Icb80d3e547a706740b84df2cb80f99e4a7f81c43
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.java
0de011705b132eacdd10f7bfb5cdc4bd79a147e8 06-Oct-2016 Hyunyoung Song <hyunyoungs@google.com> Code sanitization

- Removed bad method/class name typos

Change-Id: Ie6900e9e3d9ce9b550d2a2442a5dac3f7050a573
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.java
f28e6afafdc8b5afbdf99910668a38f9252bfb47 01-Sep-2016 Sunny Goyal <sunnygoyal@google.com> Some optimizations in blur outline generator

1) Using ALPHA_8 as the start and end bitmap. This removes one extra
bitmap generation step
2) Using ByteBuffer on ALPHA_8 bitmap for clipAlpha. This allows us
to use byteArray instead of intArray for representing pixels

Change-Id: I1b654c439fd491b6b91180ddc562bb97fad857aa
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.java
8f90dcff37f13bbbc3f875f1c9521cbc9745c673 19-Aug-2016 Sunny Goyal <sunnygoyal@google.com> Removing wrong dead code around direction matching

Change-Id: Ic8349fcac4bfe6222b1cbf26e8cbb1810dc32298
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.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/CellLayout.java
be9798b6a2ef7c2c827a612203d81c67b3ec81ac 20-Jul-2016 Winson <winsonc@google.com> Fixing issue with shadow drawing over search bar.

- Adding notion of clip-against view for click shadow alignment.

Bug: 30255227
Change-Id: Id5716a3484051a55690025d61f709e3d96cbe024
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.java
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/CellLayout.java
7c786f75d131addf849551a8cbc084c7c4ed0730 01-Jun-2016 Sunny Goyal <sunnygoyal@google.com> Allowing the first screen to expand to the screen edge

This allows the QSB to extend all the way to the edge
Change-Id: I43c6e21e44fef7fffe6fb12b7afb95549b68679f
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.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/CellLayout.java
ff4ba2d99593ed84963b3f71c555b529dd905835 02-Apr-2016 Sunny Goyal <sunnygoyal@google.com> Refactoring out grid occupancy management in a separate class

Change-Id: I37a830c0f2eb0a0dd4f5fc78fa29127cb18cb3c2
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.java
6dc98b9dc01f8e5cf5729b958f348af37e0117c6 04-Apr-2016 Sunny Goyal <sunnygoyal@google.com> Simplifying view cluster by using a single int flag instead of 4 booleans

Also fixing the bug where dirty flgas were never being set to false

Change-Id: Idbb16d07bef5a157502e1652bd1beb33ff39faaa
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.java
5b9a6e3f399e645bfcd7e5a1cd74753309fad1c8 07-Apr-2016 Tony Wickham <twickham@google.com> Merge "Stop animating highlighted page border in spring-loaded mode." into ub-launcher3-calgary
33326074b18cbcea8a6cc282659817845776a06d 05-Apr-2016 Tony Wickham <twickham@google.com> Stop animating highlighted page border in spring-loaded mode.

It looked weird, because the scrim cutout happens immediately
and the border flickered into place shortly after.

Bug: 27135377
Change-Id: Iff861db73c438c7dabccd6ed7c4ee38dbeb77ea1
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.java
f172b747c24f28e29baaaf58f08bab48847b7a40 31-Mar-2016 Adam Cohen <adamcohen@google.com> Fix a couple polish bugs with new folder previews

-> Don't reuse the same background object for the folder create preview
since this can cause interruptions in the animations for previous
creation previews.
-> When drawing the background to preview creation, don't draw the stroke
above the icon since the icon is not yet contained by the folder.

Change-Id: Ib666dc2453df465b342c02f3bd109b553a769dcc
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.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/CellLayout.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/CellLayout.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/CellLayout.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/CellLayout.java
8ddb3909142b3f215573a891f159005acd85cfb8 11-Feb-2016 Sunny Goyal <sunnygoyal@google.com> Merge "Making some view properties exported. These will be visible in hierarchy viewer" into ub-launcher3-calgary
4ffec48dec5da7bcf719ac0c37ee5e58f9ea2c1a 09-Feb-2016 Sunny Goyal <sunnygoyal@google.com> Making some view properties exported.
These will be visible in hierarchy viewer

Change-Id: I940724a7f61d67b8502d77be203a94875bc92668
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.java
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/CellLayout.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/CellLayout.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/CellLayout.java
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.
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/CellLayout.java
a71391a5b1c5d19528e0fdf36d515530c1bbbf44 11-Nov-2015 Tony Wickham <twickham@google.com> Don\'t add offset to CellLayout\'s fullscreen children.
am: 26b0142543

* commit '26b01425436277447fe24d01ad50d9e64f82109e':
Don't add offset to CellLayout's fullscreen children.
26b01425436277447fe24d01ad50d9e64f82109e 10-Nov-2015 Tony Wickham <twickham@google.com> Don't add offset to CellLayout's fullscreen children.

Bug: 25411084
Change-Id: Ifbcd0a53cf04a7fc29386f4f09aaf7f972e7354a
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.java
4f63c76bfec06949af2391e5babd4be73ae3eb38 30-Oct-2015 Sunny Goyal <sunnygoyal@google.com> Merge "Refactoring WallpaperOffsetInterpolator to a new file Removing some us unused methods" into ub-launcher3-master
9eba1fd75e9fa6b0dc5cad9a4e817b3b167d2461 16-Oct-2015 Sunny Goyal <sunnygoyal@google.com> Refactoring WallpaperOffsetInterpolator to a new file
Removing some us unused methods

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

Change-Id: I172395e6e172914627b6dec721070a66520557b1
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/CellLayout.java
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/CellLayout.java
9d4380856ff41ecb26c0d5aee1747b6060d2ef0e 25-Sep-2015 Sunny Goyal <sunnygoyal@google.com> resolved conflicts for e78e3d73 to ub-launcher3-master

Change-Id: Idc119a57e21cf6016ee0fd91866839301db072d6
e78e3d734b577c1ab6dc0738a83600374908ea52 24-Sep-2015 Sunny Goyal <sunnygoyal@google.com> Accessibility fixes

1) Use a different content description for temporary new page
2) Use different accessibility description for add widget toast
3) Announce when an item is deleted
4) Announce when hovering over a drop target
5) Announce state during drag-n-drop and widget resize (similar to seekbar)

Bug: 23573321, 24057944
Change-Id: Icabb317625e70c78e11c0b4f99b9339172d93594
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.java
0c29decbfdf0da941251fdb2e61279abe4ae6737 17-Sep-2015 Tony Wickham <twickham@google.com> am 1cdb6d06: onDropChild() always marks the cell as occupied.

* commit '1cdb6d066123cb9b2f9ea2c66246b29bf1dd9cf2':
onDropChild() always marks the cell as occupied.
1cdb6d066123cb9b2f9ea2c66246b29bf1dd9cf2 17-Sep-2015 Tony Wickham <twickham@google.com> onDropChild() always marks the cell as occupied.

Bug: 24164487
Change-Id: I11ef638a56b638ee82c3cd748340995970fc7e32
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.java
869306140d3bb8782040ed65d3ae0ba498c2de6c 09-Sep-2015 Tony Wickham <twickham@google.com> When placing a widget, go to a page with enough space.

The search for this page starts at the current one and
continues to the right (on LTR) until a page is found that
can accomodate the widget, taking possible resizing and
reordering into account.

Bug: 11338870
Change-Id: I2e9a310eb8f74024dca9150f55a525e1309c2f07
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.java
489fc56df80293f107fe706b19456edab10b9872 02-Sep-2015 Tony Wickham <twickham@google.com> Don't repeat ReorderPreviewAnimation for folders/widgets in power save mode.

Since power save mode (introduced in Lollipop, also known as battery saver)
disables animations, the ReorderPreviewAnimation looks bad - instead of
displaced folders subtly and smoothly moving up and down, they violently jump
between up and down positions in rapid succession. Setting the animation to not
repeat in this case avoids this issue.

Bug: 23675090
Change-Id: I8149610af75e7023dca28a942b3447228083cd33
(cherry picked from commit 9e0702f4af33db569c9ed79bdf311204abe40dd5)
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.java
9e0702f4af33db569c9ed79bdf311204abe40dd5 02-Sep-2015 Tony Wickham <twickham@google.com> Don't repeat ReorderPreviewAnimation for folders/widgets in power save mode.

Since power save mode (introduced in Lollipop, also known as battery saver)
disables animations, the ReorderPreviewAnimation looks bad - instead of
displaced folders subtly and smoothly moving up and down, they violently jump
between up and down positions in rapid succession. Setting the animation to not
repeat in this case avoids this issue.

Bug: 23675090
Change-Id: I8149610af75e7023dca28a942b3447228083cd33
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.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/CellLayout.java
bb83520a620919a8f19472ba4426585d007d1aba 16-Jul-2015 Mady Mellor <madym@google.com> Refactor StylusEventHelper to provide onButtonPress/Release methods

This will enable an easier migration to the new M APIs for identifying
button presses from stylus / other tools.

Bug: 20430722
Change-Id: I41cfa6eff8d76bb83cf1bdaf6623ec1092ed554c
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.java
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/CellLayout.java
106bf64f4a5b4b7772c971f62b6207b5a73529a2 16-Jul-2015 Sunny Goyal <sunnygoyal@google.com> Some cleanup around drag and drop

> Instead of resizing the rect for dragoutline in onDrow, store the resized rect itself
> Remove unnecessary inverse matrix calculation

Change-Id: If13c3c5aaecba5a1d3a4f5d39199ed82e9662c62
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.java
3c938a7e0dfa6289bba557164f629873a230bd5c 04-Aug-2015 Sunny Goyal <sunnygoyal@google.com> resolved conflicts for merge of 3f7550c1 to ub-launcher3-master

Change-Id: I3bb155473d48832e496a8983f84c20e6e935fa41
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/CellLayout.java
4ac89e24447ec1306c38a99e9ae32476da83b9be 03-Aug-2015 Sunny Goyal <sunnygoyal@google.com> Merge "Several animation calls cleanup" into ub-launcher3-master
2285b30003cad0c3062fc2831b215b764bed44f7 31-Jul-2015 Winson Chung <winsonc@google.com> am ec70312d: Merge "Fixing issue with flash during overview transition." into ub-launcher3-burnaby

* commit 'ec70312dea4083416d2d132ea8853455b0dec616':
Fixing issue with flash during overview transition.
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/CellLayout.java
e8f1d047b1b788bc9884be2417e7aa0cec7e8ae8 31-Jul-2015 Winson Chung <winsonc@google.com> Fixing issue with flash during overview transition.

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

Bug: 22414257
Change-Id: Id481303d0c99a20c1d16396c024ab50303f45576
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.java
5e758cae9a9f4348ab519082e3b54fd3ff70de3c 28-Jul-2015 Sunny Goyal <sunnygoyal@google.com> Merge "Changing the dogfood check to a static boolean to better handle proguard optimizations" into ub-launcher3-master
05be6b7649d606b9a6deae7f9daf99cc33ab570d 17-Jul-2015 Sunny Goyal <sunnygoyal@google.com> am b04136b4: Merge "Adding minSpanX and minSpanY for all the launcher widgets" into ub-launcher3-burnaby

* commit 'b04136b4714a0d9afddab6a70045f4f4f7fa1ee4':
Adding minSpanX and minSpanY for all the launcher widgets
3a30cfeb7c805bf99dba9002ac8b22ae66d84378 17-Jul-2015 Sunny Goyal <sunnygoyal@google.com> Adding minSpanX and minSpanY for all the launcher widgets

Bug: 22353460
Change-Id: Id4450dee42a83e4603dcd56e1c4dec2b0e405858
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.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/CellLayout.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/CellLayout.java
4d113a5ff44ff1a7f19263bde21581fbf9a54212 27-May-2015 Sunny Goyal <sunnygoyal@google.com> Using material style overscroll effect for workspace and folders

Bug: 21335369
Change-Id: I53cc6edfa87334b9326f1dedd90c3e2222beade5
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.java
19b1bad23904a899bd9dc56bf9e2e827619164b1 03-Jun-2015 Mady Mellor <madym@google.com> Merge "Stylus support: creating and setting listeners for stylus button press" into ub-launcher3-burnaby
ef044dd380ac3abf354027750efdc16d5d48ac70 03-Jun-2015 Mady Mellor <madym@google.com> Stylus support: creating and setting listeners for stylus button press

This updates almost(*) all locations that use a long press listener to
also set a custom touch listener that recognizes the stylus button press
action.

The stylus button press action is: when a stylus touches a view while the
primary stylus button is pressed which may occur on a DOWN or MOVE event.

*The location this is *not* enabled for is: Longpress to enter "overview"
mode -- this isn't really a selection or drag n drop action; it is also
easy to accidentally do this while using the stylus gesture to drag n drop
items which is not an ideal interaction. Also not set for the "cling" that
demonstrates this.

Bug: 20430722
Change-Id: I9343f143261a7b4fada9afca28b8a11a60dbecca
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.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/CellLayout.java
58376925f9596c23f5c9ffa6c99630dfddcfce9c 27-May-2015 Sunny Goyal <sunnygoyal@google.com> Fixing page background not displayed when dragging from all apps

> Adding empty page synchronously, instead of waiting for a frame
> Changing launcher state from widgets screen in the same frame, similar to all apps
> Removing DragEnforcer, and moving that logic in side the workspace, disabled by a flag
> Using first page to get page bounds in drag layer, as last page may not have been measured

Change-Id: I172ba4e5ce44648ac55402d49994542c6e10f101
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.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/CellLayout.java
2805e639cdea6ae0051155611d122ed27556e658 21-May-2015 Sunny Goyal <sunnygoyal@google.com> Animating workspace active background change

> Removing workspace_overscroll_drawable_padding which is always 0

Change-Id: I89900738371458a6eb7cbfee215d98b267d6a0b0
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.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/CellLayout.java
20812e96402900d3ac0e007b5b63faaf1b06e5f9 21-May-2015 Sunny Goyal <sunnygoyal@google.com> Merge "Removing some unused functionalities" into ub-launcher3-burnaby
f3a21c8ca2d100e779958ba6fd600c28e399d956 20-May-2015 Sunny Goyal <sunnygoyal@google.com> Merge "Moving LauncherAccessibilityDelegate to accessibility package" into ub-launcher3-burnaby
057397714327b42c55804624cc06c7761d999f84 20-May-2015 Sunny Goyal <sunnygoyal@google.com> Removing some unused functionalities

> Removing obsolete progrard rules
> Removing BackgroundAlphaMultiplier from CellLayout, which is always 1
> Removign otiline animation from workspace. This animation never runs,
as it is called during startReordeing which always happens when
overview mode (workspaceInModalState() is true)

Change-Id: I43219e41ea188771bc818988c1bcbd523f28cba6
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.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/CellLayout.java
4b6eb269502d05edabf883535a7099da5862de42 15-May-2015 Sunny Goyal <sunnygoyal@google.com> Adding drop shadow effect in allapps

Change-Id: Ic7a9b6e23d925d27a8dcbd418d2609e43917ac45
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.java
4fe5a37dda8eb1869f9328d94236eb2c23f8109c 15-May-2015 Sunny Goyal <sunnygoyal@google.com> Optimizing shadow generation by reusing bitmap.

> Not creating unnecessary bitmaps
> Final bitmap is generated as ALPHA_8 instead of ARGB_8888
> The shadow drawing is done directly in the view

Change-Id: I504fa2ea3abdc1a3c3fb9ad57d6e28880d2584a1
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.java
9ca9c1316da8382c1f663973072731033b5e533a 29-Apr-2015 Sunny Goyal <sunnygoyal@google.com> Adding accessibility widget resize

Change-Id: I954f01733474450cbeedba2406e1d6d373bb87a3
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.java
9aaef938c3f0db6c78555459eb84be25ab87f98e 30-Apr-2015 Sunny Goyal <sunnygoyal@google.com> Removing debug log

Change-Id: Ifb6adc0826d744f2bbc654c37c2470754f364a2b
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.java
65d076b2ffe7ca96f014a95bd362c7d1ce004b97 30-Apr-2015 Sunny Goyal <sunnygoyal@google.com> Merge "Enabling accessibility drag and drop in folder" into ub-launcher3-burnaby
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/CellLayout.java
e9b651eef1b9f3647eba94f833bff3fc52f5956b 24-Apr-2015 Sunny Goyal <sunnygoyal@google.com> Enabling accessibility drag and drop in folder

> Moving DragAndDropAccessibilityDelegate to a separate class
> Using getFocusedVirtualView() instead of using DownX and downY
> Updating various accessibility strings

Bug: 19776741

Change-Id: I85c2551d4d6172c30702e68f41b114bb999655b6
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.java
f7a29e83f06909b378dba39c83a522375682710a 25-Apr-2015 Sunny Goyal <sunnygoyal@google.com> Removing some unused method params from CellLayout

> Replacing various distance calculations with Math.hypot
> Moving findVacantCell to Utilities

Change-Id: I0cb194b603e52b3bb2b29a095bb4da2bb408ab13
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.java
1a70cef9884270f2f0a760f079a10fdfb1544c98 22-Apr-2015 Sunny Goyal <sunnygoyal@google.com> Accessibility fixes

> Enabling top bar buttons in accessibility drag-drop
> Unifying logic to show delete/uninstall/app-info targets
> Announcing cell loction as 1-index instead of 0-index

Change-Id: Ibc7801f77e938b2646f0655462cbe9b7f781818b
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.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/CellLayout.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/CellLayout.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/CellLayout.java
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/CellLayout.java
1587d5362f5a66e005aa36fdfc7082c34b8ea3b7 29-Jan-2015 Sunny Goyal <sunnygoyal@google.com> Refactoring common methods

Change-Id: Id6d3072dd3a6d7f54e9591abbeffd9bd51c7403d
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.java
ee3e6a7b777e58552a26ab8a10641886588e9196 20-Feb-2015 Hyunyoung Song <hyunyoungs@google.com> [key event focus handling] Cleanup/Refactor/Feature
1) Focus navigation handling is refactored to Focus utility class.
New 2 step dpad navigation algorithm is inside Focus class
2) Introduced a map (or matrix) that indicates where sparse icons are located inside a grid.
This enables getting rid of the icon sorting logic which was costly.
3) Unified all the dpad handling logic inside the handleXXKeyEvent methods
4) DOWN/UP key will allow navigation between workspace icons and the hotseat
5) Folder icons allow DOWN/UP to navigate to the title

b/19381790

Change-Id: Id45b3f215ef7c1ca5f99b08e3d721e219298627a
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.java
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/CellLayout.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/CellLayout.java
02b508110484906118c277368d570a707604ec9c 11-Sep-2014 Sunny Goyal <sunnygoyal@google.com> Fixing wrong views being made visible when opening all apps

issue: 17422327
Change-Id: I18175ecba154dff3ff5d7e1b16696ca46c7aeae8
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.java
22308ce1b858aa9a4e9068ea4fb1d47e62fc6e67 20-Aug-2014 Sunny Goyal <sunnygoyal@google.com> Merge "Updating the icon click feedback" into ub-now-porkchop
c50438c802355dff714b04f42a32e518cb9e91d8 20-Aug-2014 Adam Cohen <adamcohen@google.com> Unify next / prev page hints for drag and drop across devices

-> Eliminate the white bgs on tablets during drag (issue 15880213)
-> Add stateful (active and rest) next / prev page hints (issue 15937059)
-> Fix recent regression which allowed overscroll in custom content area

Change-Id: I1198dc88ca8570cb9e1afd3ca939be06a8dea92e
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.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/CellLayout.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/CellLayout.java
1e4359c54e82910e3c8bfba3d520ed27c91367b9 18-Aug-2014 Adam Cohen <adamcohen@google.com> Adding dampened snap back overscroll to Workspace and AppsCustomizePagedView

issue 15475254

Change-Id: I5eb9fc480167faf4be16bd17bf18e2d103f40f47
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.java
33a152fa4958b5c0b8c4b2f3857d62809862d15f 22-Jul-2014 Sunny Goyal <sunnygoyal@google.com> Merging motorola's patch to prevent crashes on view id mess up

issue: 15517526
Change-Id: Ib15b3dc2f5ed4e488f5d172ed02ccb72741d5980
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.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/CellLayout.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/CellLayout.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/CellLayout.java
5f7099af8573c2229427318acd551b92efae02a3 03-Jan-2014 Nilesh Agrawal <nileshagrawal@google.com> Allow scrolling folders in when all apps is disabled.

Allows for more items to be added into a folder.
Allows for scrolling by letting the content area inside the scroll view to be taller.
The height of content area was capped in https://googleplex-android-review.git.corp.google.com/#/c/387583/

Change-Id: I8d7950ac9c155e26c5a299c17ae6a2bbf829dce6
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.java
34c2e6cf7af328aba25c98158161dbad15ae986d 13-Dec-2013 Michael Jurka <mikejurka@google.com> Clean up imports
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.java
b6147f85786c78b3608eabf2286cd9e61c28878d 12-Dec-2013 Winson Chung <winsonc@google.com> Merge "Adjusting grid for tablets and fixing incorrect resources for large tablets." into jb-ub-now-kermit
fe69287b97d16c8941ab9463e4868fca45ad8152 11-Dec-2013 Adam Cohen <adamcohen@google.com> Fix new NPE relating to reorder hints

Change-Id: I80ff327ee549caef5802eb7194d48b1e8424ce47
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.java
59a488ac03aa122b75e9a358db74acf7bb4d2508 10-Dec-2013 Winson Chung <winsonc@google.com> Adjusting grid for tablets and fixing incorrect resources for large tablets.

Change-Id: I4c2a058da934bef14f5be3c53ebda940aeb990ca
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.java
fa3c58f647e603760c0bd929166c0edee25675a9 07-Dec-2013 Adam Cohen <adamcohen@google.com> Adding reorder hinting, hopefully will help with (issue 10654628)

-> Adds instant feedback that reorder _will_ happen, so hopefully will
improve perceived disambiguation

Change-Id: Icd99e7beeb87e79627a6b9fc78a9132781410379
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.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/CellLayout.java
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/CellLayout.java
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/CellLayout.java
558f1c2ac73c3a0c3c0c316222b6b7f9c76e2501 10-Oct-2013 Adam Cohen <adamcohen@google.com> Fix NPE in CellLayout (issue 11113502)

Change-Id: I8dafa79f68efdda5402e8b228ea3e81d77549a03
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.java
d706e0a8133a3a570013b7512c593845850a0f1f 09-Oct-2013 Adam Cohen <adamcohen@google.com> Merge "Getting rid of additive blending for overscroll (issue 11072246)" into jb-ub-now-indigo-rose
47ec25f380688fc8786bc900308ac28106ccda9a 09-Oct-2013 Adam Cohen <adamcohen@google.com> Getting rid of additive blending for overscroll (issue 11072246)

Change-Id: Id833f3488b2f25aa948d6cb7a9f04367be36c7b0
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.java
69737c3e49ff3edc42899609fdbc96e356f8638e 09-Oct-2013 Winson Chung <winsonc@google.com> Ensuring that we offset cell items by their destination cell padding. (Bug 10881814)

Change-Id: Idc16ae64b1a0e7f79b8a3ff5da6854fbab7867d2
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.java
82a9bd2c03645494cb0965abc03a9a18823e07e5 09-Oct-2013 Winson Chung <winsonc@google.com> Accounting for background padding when drawing the bg. (Bug 10881814)

Change-Id: I516786c54e1b4b66a601337bd69b8f198dcee2aa
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.java
38848ca3a9527e62eef1816770d25e7382cc4e4e 08-Oct-2013 Winson Chung <winsonc@google.com> Offsetting the CellLayout by the remainder space to center it. (Bug 11030678)

Change-Id: Ib83a982498159c21fef5dd8ecc40ac2287d31c60
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.java
01f2d7fa4b24b21543012060305d693899b4beaa 01-Oct-2013 Chris Craik <ccraik@google.com> Disable hardware layer on custom screen

Whereas standard ShortcutAndWidgetContainers are static during screen
transition, the custom screen may animate during its transition.
Disabling the hardware layer reduces the cost of this animation
significantly.

bug:10810505

Change-Id: I560d209f651951f54c224862a706e8a243dc71af
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.java
02dcfccb754ecfe1f3c9df78824f11923d7c5c2a 01-Oct-2013 Adam Cohen <adamcohen@google.com> Toning down overscroll overlay (issue 11023942)

Change-Id: Ic019ca7b6f076236ec0b85f96446ec555e7bde1f
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.java
fe411c8e31f44a5a977d76885e9b20dece57962d 27-Sep-2013 Winson Chung <winsonc@google.com> Fixing issue where incorrect min/max widths/heights were being reported to widgets. (Bug 10940505)
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.java
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/CellLayout.java
410f3cdfb4a8c2cf82749a3e73201fb7930540ae 22-Sep-2013 Adam Cohen <adamcohen@google.com> Getting the Overview Mode to look up to spec

-> New assets, text, fonts
-> New spacing of pages (translated upwards)
-> Updated outline color to white (the ones we're drawing)

Change-Id: Ie664ac0598ae18b86ae6d54d1d6b497c13d2ee95
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.java
5108bc0fd9f7e30c87c223fbb75f024e271b2103 21-Sep-2013 Adam Cohen <adamcohen@google.com> More folder cleanup

-> Eliminating out ring
-> Fixing the cursor color
-> Using "nolip" asset appropriately

Change-Id: Ie0e341e865298555dcb0fcb5644e1f3e6b5e39e6
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.java
89f9705077c054b541af7da52be832760e2ae2e8 20-Sep-2013 Winson Chung <winsonc@google.com> Fixing small regression in PageIndicators add page, fixing NPE (Bug 10779956)

Change-Id: I7ff711c6fc97987efc57bf023913e33e31ccf140
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.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/CellLayout.java
e5d43a421fd411c6e0e8b3c6c28917cfd952328a 12-Sep-2013 John Spurlock <jspurlock@google.com> Recompute cell size when inputs change.

Bug:10691425
Change-Id: I0bb8904bbae2c6d0939b15ff06d584b96ef6f8b2
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.java
414300a79d140f8c2c8760d9adab750f69ffeafd 27-Aug-2013 Michael Jurka <mikejurka@google.com> Clean up unused code

Change-Id: Ie1e927aa0b5304f62cfffaab449abb3133870f80
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.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/CellLayout.java
912d360cd7350d8fe959202c6b5d0a5aa97790aa 21-Aug-2013 Daniel Sandler <dsandler@android.com> Fix build.

Change-Id: I000059cd9f462dac5b21b6edcc65f9852a74cb51
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.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/CellLayout.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/CellLayout.java
ec40b2b90c649be3b513af2ba174db56b54b64f6 24-Jul-2013 Adam Cohen <adamcohen@google.com> Giving custom content full screen

Change-Id: Icd104fff8a1a315b795a60b812048a6218bf0e5a
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.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/CellLayout.java
dcd297f05a866e07090d6e2af8fb4b15f28cb555 18-Jun-2013 Adam Cohen <adamcohen@google.com> Initial implementation of Shrink-wrap

Change-Id: If73c7f7ca19ca62ff43134f515584354afef8507
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.java
f0f4eda31841f41d892bf18847c1acdc45d2cd64 07-Jun-2013 Adam Cohen <adamcohen@google.com> Making folders scrollable

Change-Id: Id6c9ec62acc6d86dc627d20abad3e2d92010f539
/packages/apps/Launcher3/src/com/android/launcher3/CellLayout.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/CellLayout.java