History log of /packages/apps/Launcher3/src/com/android/launcher3/DeviceProfile.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
68f240eb54891c264031c644a5e5aa4e4fd0c060 07-Oct-2016 Sunny Goyal <sunnygoyal@google.com> Updating the folder cell dimensions to be closer to a square

Bug: 31813976
Change-Id: I05d7520daee28a310ff122deaf265951e454d21e
/packages/apps/Launcher3/src/com/android/launcher3/DeviceProfile.java
baec6ffae2c260180dbdf2c6b2ca2f38e1df8f1a 14-Sep-2016 Sunny Goyal <sunnygoyal@google.com> Updating the paddings in folder cell

> Updating overall padding for the cell and adding drawable padding
> Ensuring that the folder cell is always rendered properly based
on available vertical space

Bug: 30605958
Change-Id: I8ceb9fea5a25052b0d7461f52edca0e6a33fa085
/packages/apps/Launcher3/src/com/android/launcher3/DeviceProfile.java
016eaeea99e163f0b5385cf660297e6c21ff21e5 07-Sep-2016 Hyunyoung Song <hyunyoungs@google.com> Change all apps caret target bounding box
b/30400751

1) This also fixes the issue of apps drawer sliding up when page is swiped
horizontally immediately above the hotseat area.

2) Disclaimer: this should be cp'ed to calgary.
Hence, I tried to keep the diff small. Ideally, CaretDrawable animation
handling should move to AllAppsHandleImageView via refactoring in
follow up CL.

Change-Id: I4d808ee2eeca53b40c0b4e4e0e364fef056e26c3
/packages/apps/Launcher3/src/com/android/launcher3/DeviceProfile.java
9d96fd579039d07a6a36887ae699907631014c8d 23-Aug-2016 Hyunyoung Song <hyunyoungs@google.com> Landscape container padding update.
b/30021487

Change-Id: I179825eba09f3c4c57175e8f6da49708dae1931c
/packages/apps/Launcher3/src/com/android/launcher3/DeviceProfile.java
fadbe8ffbd90eb36c782a76a8b1a76a26dba288e 23-Jul-2016 Winson <winsonc@google.com> Fixing regression in folder positioning.

- When we had the search bar, the workspace padding always
accounted for the search bar (and therefor drop target bar) height
when the folder opened. Now that there is no padding on the top, we
should offset the bar whenever possible to ensure that the drop target
bar is visible.

Bug: 30110595
Change-Id: Ia9a8581981c777f2507b6bd880994a3dcfd52c39
/packages/apps/Launcher3/src/com/android/launcher3/DeviceProfile.java
6231ede10c16db8399b1d42b9b1829c95de83629 21-Jul-2016 Winson <winsonc@google.com> Matching hotseat to spec.

- Fixing regression in hottest folder background getting clipped
- Ensuring that the padding is correctly applied in vertical bar layout
to match workspace

Bug: 30021487
Change-Id: I09bce21829867f4bd4e50646e565959421e4984c
/packages/apps/Launcher3/src/com/android/launcher3/DeviceProfile.java
11439c58546be37a309e99983ed40917408a2de2 20-Jul-2016 Winson <winsonc@google.com> Fixing small regressions from layout tweaks

- Ensure that the caret is the right height
- Ensure that the workspace page spacing matches the workspace padding,
but just offscreen

Bug: 30021487
Change-Id: Iaf4b33db0f6456b74986638fb6b6af78fc6e1859
/packages/apps/Launcher3/src/com/android/launcher3/DeviceProfile.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/DeviceProfile.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/DeviceProfile.java
6c2975e7e3fc5dc7cb80f1a2b3e5ffd10e49c2be 06-Jul-2016 Sunny Goyal <sunnygoyal@google.com> Adding support for non-zero left insets

Bug: 29613069
Change-Id: Ifdf9bcce7ecdedc510f3be8a4dc10eb8da7c4bf1
/packages/apps/Launcher3/src/com/android/launcher3/DeviceProfile.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/DeviceProfile.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/DeviceProfile.java
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/DeviceProfile.java
e27815e33f6b5764872c09f3ce7bb5c5630536ba 05-Apr-2016 Sunny Goyal <sunnygoyal@google.com> Fixing wrong method name

Change-Id: Idabe5d8ee41f31d30dcbe03aa626f7b39f713c14
/packages/apps/Launcher3/src/com/android/launcher3/DeviceProfile.java
13178ac822c2f378fe93b09c1c192523b4df06c0 05-Apr-2016 Sunny Goyal <sunnygoyal@google.com> Adding an upper bound to all-apps width on larger devices

Change-Id: I16a0d8fb7c5023045d0a6b9e8089e0ab6a476d6d
/packages/apps/Launcher3/src/com/android/launcher3/DeviceProfile.java
f37a21412afb16f61ca23b5aca2e90691b57e171 25-Mar-2016 Sunny Goyal <sunnygoyal@google.com> Defining separate layouts for horizontal and vertical drop target bars
instead of chaning the layouts in DeviceProfile

Bug: 27721989
Change-Id: I9a22c21e643f4fd0058c9be5e9d705aaf7649204
/packages/apps/Launcher3/src/com/android/launcher3/DeviceProfile.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/DeviceProfile.java
775d4c9ac0544c8ba95e9a7817bccc0c63508bcd 17-Feb-2016 Sunny Goyal <sunnygoyal@google.com> Merge "Setting content bounds in onMeasure as it uses measuredWidth, which might not be available during onCreate" into ub-launcher3-burnaby-polish
am: 5df98da8fd

* commit '5df98da8fd2c1997bd6c09a4772f018730345090':
Setting content bounds in onMeasure as it uses measuredWidth, which might not be available during onCreate
94f46d9e5fbc484314eea8d42b6c806e0fe8aab4 16-Feb-2016 Sunny Goyal <sunnygoyal@google.com> Setting content bounds in onMeasure as it uses measuredWidth, which might
not be available during onCreate

Also fixing the calculation of allApps column could, which was counting an
additional icon gap

Bug: 27173894
Change-Id: I8be8cccc76d7e7d945cf9383567a3026228b6c86
/packages/apps/Launcher3/src/com/android/launcher3/DeviceProfile.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/DeviceProfile.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/DeviceProfile.java
c32c63c46e933fb6c9038f6e18f24a2fef7eff9c 01-Feb-2016 Tony Wickham <twickham@google.com> resolve merge conflicts of b9759d399b to ub-launcher3-calgary.

Change-Id: I66230c15e5eaeef316d4e2f14b85c6ff1b6e977d
8a75806c1a22b79d6c343f0057f1cc55b2a62ed3 01-Feb-2016 Tony Wickham <twickham@google.com> Add extra space for the search bar.

Also fixed a broken test.

Change-Id: I1c270e69617528ea30f0e26a2101673e9b9fa63c
/packages/apps/Launcher3/src/com/android/launcher3/DeviceProfile.java
38e7f28d3faa04fa0bc0f15e78f59a2b1ed123a3 11-Dec-2015 Sunny Goyal <sunnygoyal@google.com> resolve merge conflicts of a50a419b82 to ub-launcher3-master.

Change-Id: Ie0e233e22284b8ddd2dbb86204e042651b6dfae2
a50a419b824c10f11d12097215982c978f740e00 11-Dec-2015 Sunny Goyal <sunnygoyal@google.com> Restarting launcher when on font scale change

Chaning the font scale affects the static device profile and may
affect various background threads and static constants. Killing
the process ensures that these states get invalidated properly.

Bug: 26131935
Change-Id: Idc262ee5d158019e7a2505f8fb9a6413c06bfdeb
/packages/apps/Launcher3/src/com/android/launcher3/DeviceProfile.java
258797318a99eb1ad4019f9863c69e34ef47a1ff 11-Dec-2015 Sunny Goyal <sunnygoyal@google.com> Merge "Fixing All apps not respecting scaled icon size" into ub-launcher3-burnaby-polish
am: 49750ce75e

* commit '49750ce75e7413ad3c4fe4be31a2e1d73312794b':
Fixing All apps not respecting scaled icon size
383e0a29ec44e8fed15f09c91fe39d58ca21e185 10-Dec-2015 Sunny Goyal <sunnygoyal@google.com> Fixing All apps not respecting scaled icon size

Change-Id: I3d05c713939fd69d04f5896cdc5db91480b0d4d1
/packages/apps/Launcher3/src/com/android/launcher3/DeviceProfile.java
ec73dd97f08e243dbd94b699a2303fd1c9fe7c05 13-Nov-2015 Tony Wickham <twickham@google.com> Revert "Revert "Reverting folder cell width on portrait phones.""
am: 6159c242bc

* commit '6159c242bc610f13e4c7550ae8b15f25603f4b23':
Revert "Revert "Reverting folder cell width on portrait phones.""
6159c242bc610f13e4c7550ae8b15f25603f4b23 13-Nov-2015 Tony Wickham <twickham@google.com> Revert "Revert "Reverting folder cell width on portrait phones.""

This reverts commit 1974e98f5ec4713e50ba64ec32a7607c92ddce9b.

Change-Id: I7c5d86de187989c085f676933ce3f1cbd57ed8a7
/packages/apps/Launcher3/src/com/android/launcher3/DeviceProfile.java
0309fbc65ff99285e67cf3f6ec025a656977e86e 13-Nov-2015 Tony Wickham <twickham@google.com> Revert "Reverting folder cell width on portrait phones."
am: 1974e98f5e

* commit '1974e98f5ec4713e50ba64ec32a7607c92ddce9b':
Revert "Reverting folder cell width on portrait phones."
1974e98f5ec4713e50ba64ec32a7607c92ddce9b 13-Nov-2015 Tony Wickham <twickham@google.com> Revert "Reverting folder cell width on portrait phones."

This reverts commit b25e684a766362422f5693f7a2189910c1275584.

Change-Id: Ie86adc4b35c73ab7ef78d73225b437adc4751172
/packages/apps/Launcher3/src/com/android/launcher3/DeviceProfile.java
79b4194765c5cea13aae6064099735d147ad8efc 13-Nov-2015 Tony Wickham <twickham@google.com> Reverting folder cell width on portrait phones.
am: b25e684a76

* commit 'b25e684a766362422f5693f7a2189910c1275584':
Reverting folder cell width on portrait phones.
b25e684a766362422f5693f7a2189910c1275584 12-Nov-2015 Tony Wickham <twickham@google.com> Reverting folder cell width on portrait phones.

The extra folder cell space added in ag/790800 looks bad on phones in
portrait mode, so reverting it here. However, we keep the extra space
on tablets or phones in landscape mode, since it provides more room
for long app names (bug 22462641).

Bug: 25662215
Change-Id: I2a37b884458ee557c9b8cff0c3edef16bfc50efb
/packages/apps/Launcher3/src/com/android/launcher3/DeviceProfile.java
5ea422e39e4156fd8bfd5e6b142903d14a4c4a3e 30-Oct-2015 Tony Wickham <twickham@google.com> Added Gravity.CENTER_HORIZONTAL to drop target layout params.

I'm not sure if it is strictly necessary, but it is probably good to
be more explicit regardless.

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

Change-Id: Ibeb2499ac278e4094a2922501cfffad2489e58ed
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/DeviceProfile.java
c1763b24fc7ea6d23087197d6091c56916a51e17 23-Oct-2015 Tony Wickham <twickham@google.com> resolve merge conflicts of 52040c2d51 to ub-launcher3-master.

Change-Id: Ie3cf72ef11b43e2c681d6d614c668062c7e7b74c
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/DeviceProfile.java
be424b2c32a878608411bc0748bc88300046cc27 13-Oct-2015 Tony Wickham <twickham@google.com> am a295048a: Increase folder cell width slightly.

* commit 'a295048a69d35b5adc3f021c3d40c32700cc9629':
Increase folder cell width slightly.
a295048a69d35b5adc3f021c3d40c32700cc9629 13-Oct-2015 Tony Wickham <twickham@google.com> Increase folder cell width slightly.

The increased breathing room makes it more likely that long app names
will fit in the folder cells without being cut off.

Bug: 22462641
Change-Id: I110ede040f9e8fdddbf0c4e7a395ac71435559f3
/packages/apps/Launcher3/src/com/android/launcher3/DeviceProfile.java
a72f49cfc466c5b57032405cb0e42e7140764323 09-Oct-2015 Tony Wickham <twickham@google.com> resolved conflicts for fa3c369c to ub-launcher3-master

Change-Id: I6bfc3d3b731a414060d86d4f1dfc5480c279edc9
37860923619b1e467975a74764dff03ab657bdc7 09-Oct-2015 Tony Wickham <twickham@google.com> Merge "Added launcher callback to specify search bar height." into ub-launcher3-burnaby
72c689a7a27d0bddf804fdfd1eb69c9bc1a901f7 09-Oct-2015 Tony Wickham <twickham@google.com> resolved conflicts for d70a4b7b to ub-launcher3-master

Change-Id: Ib04f80eeebf551fc026925830fc4739d1c620513
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/DeviceProfile.java
d6b4037b093445fefa7d036da339dd549fae7a9b 24-Sep-2015 Tony Wickham <twickham@google.com> Grid adjustments, specifically for Ryu.

> Less than 14% of the screen is used for left/right workspace padding.
(To be clear, this means 7% for the left and 7% for the right.)
> Hotseat icons are the same size as workspace icons.
> Far left and right hotseat edges line up with workspace edges.
> All Apps button is scaled down 8dp.

Bug: 24003478

Change-Id: Idb057ab0f6ba29e7fd93feac7573ca2e07c7e839
/packages/apps/Launcher3/src/com/android/launcher3/DeviceProfile.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.
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/DeviceProfile.java
ab946a19d41f245e27580281c3904e6c6636bcdd 17-Sep-2015 Tony Wickham <twickham@google.com> Flinging to the left deletes when in vertical bar layout mode.

This mode has the remove icon on the left side, so flinging to the
left makes more sense. But flinging up still works in either case.

Change-Id: I7ab40776b67659026f03f81efd43fae3375b5ba0
/packages/apps/Launcher3/src/com/android/launcher3/DeviceProfile.java
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/DeviceProfile.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/DeviceProfile.java
2a87fe8c41338e746c6959d992edfeb9cb00bcc1 07-Aug-2015 Winson <winsonc@google.com> resolved conflicts for merge of 0ad33066 to ub-launcher3-master

Change-Id: I5dbbaaf9fb03ed3003174154ea7d7dbae9048a70
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/DeviceProfile.java
687ae8483daad60dc60e884c031d2dd340ac7d4a 29-Jul-2015 Winson Chung <winsonc@google.com> am 946609f0: Merge "Fixing overview mode scale calculations." into ub-launcher3-burnaby

* commit '946609f0ea70e1361dbe979af0e054d4c18b929b':
Fixing overview mode scale calculations.
946609f0ea70e1361dbe979af0e054d4c18b929b 29-Jul-2015 Winson Chung <winsonc@google.com> Merge "Fixing overview mode scale calculations." into ub-launcher3-burnaby
4988ae8cda8b7f9c7dd30a5cc723c047e7f9deec 14-Jul-2015 Winson Chung <winsonc@google.com> am af263737: Merge "Fixing regression in calculating workspace padding." into ub-launcher3-burnaby

* commit 'af2637376f5fb37d1dfa598a8c95a623367501ce':
Fixing regression in calculating workspace padding.
4f3bfadbf472665ea8431cf2616d56a9445df466 13-Jul-2015 Winson Chung <winsonc@google.com> Fixing regression in calculating workspace padding.

Bug: 22340087
Change-Id: I28d599fbb8f136b8b5aa4aeffaa0fba5661ab73c
/packages/apps/Launcher3/src/com/android/launcher3/DeviceProfile.java
4f7eb4077e901a28b2b698060079292b56e991bd 11-Jul-2015 Winson Chung <winsonc@google.com> Fixing overview mode scale calculations.

- Making the overview scale apply just like the spring loaded scale factor
- Tweaking overview scale to make it not so small

Change-Id: If93bac08609b0cfd9c9d9f8f6057498957378b56
/packages/apps/Launcher3/src/com/android/launcher3/DeviceProfile.java
cf25b52763f3fa376aee7c4a63b5a064ca1c0e2a 09-Jul-2015 Sunny Goyal <sunnygoyal@google.com> Removing some unused PagedView attributes

Change-Id: I1c7312b46ec95286d8e49d3dee60b1bf4d98dc20
/packages/apps/Launcher3/src/com/android/launcher3/DeviceProfile.java
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/DeviceProfile.java
2c6e5ccbcd7c3f87e7e85029782440600dc0a3d8 01-Jun-2015 Winson Chung <winsonc@google.com> Ensuring that we use the screen width more optimally in AllApps.

- Fixing issue with prediction bar height being calculated incorrectly
- Fixing issue where the prediction bar divider was not drawn exactly
between the bar and the first row of apps
- Removing padding to allow scrollbars to reach full height

Bug: 20222023
Bug: 21335377
Change-Id: I2c0614a36e2294d0d6184a6bff4847876ffe971e
/packages/apps/Launcher3/src/com/android/launcher3/DeviceProfile.java
f8c6f885f032dad4e6b09e02ca97545783bccb70 03-Jun-2015 Winson Chung <winsonc@google.com> Fixing issue with hotseat being on the wrong side of the screen in RTL.

Bug: 21499466

Change-Id: I566cd89dfb855f89f4e68bf56e48bf99204b11ab
/packages/apps/Launcher3/src/com/android/launcher3/DeviceProfile.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/DeviceProfile.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/DeviceProfile.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/DeviceProfile.java
fb445cd97d828fa2d9fe3190b25524e39038cd0b 14-May-2015 Sunny Goyal <sunnygoyal@google.com> Merge "Various lint error fixes." into ub-launcher3-burnaby
c2af7f9175d6ae1cb1ec599a6b9361f4434fa531 14-May-2015 Winson Chung <winsonc@google.com> Limiting number of predictions on phones.
/packages/apps/Launcher3/src/com/android/launcher3/DeviceProfile.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/DeviceProfile.java
6b27614c548aa3192df9bb1df243a2fa38af95e3 14-May-2015 Winson Chung <winsonc@google.com> Fixing issue with touch scrolling the prediction bar.

Change-Id: Ie15ca96e5ea33a54508285aa76fb6aea81b2376d
/packages/apps/Launcher3/src/com/android/launcher3/DeviceProfile.java
208ed75cfdb02e571273d73d056d8ed7f6f756eb 13-May-2015 Winson Chung <winsonc@google.com> Pulling out predictions into another row view.

Change-Id: Iba0d74457a1314cf0c00a88f9b07df049334e542
/packages/apps/Launcher3/src/com/android/launcher3/DeviceProfile.java
a3499dc019a677efb008d926b2cd9a5ad0bc0ca0 12-May-2015 Winson Chung <winsonc@google.com> Tweaking section processing for different languages

- Ensuring that apps with non-letter/digit characters are ordered last in the misc bucket
- Removing duplicate latin-alphabet sections for Simplified Chinese
- Adding more appropriate misc bucket label for Japanese

Bug 21022854

Change-Id: I62c7b219820ef88787fcfa83f1bd4202f16f9c0c
/packages/apps/Launcher3/src/com/android/launcher3/DeviceProfile.java
bcae8f0272f4e1c7a8736de22d96924759cbc3c6 12-May-2015 Sunny Goyal <sunnygoyal@google.com> Merge "Updating folder grid sizes for various devices" into ub-launcher3-burnaby
4b69f2ca91d63a59dfa921ba965b92de7f604f5a 11-May-2015 Hyunyoung Song <hyunyoungs@google.com> Ensure that clipping widget size is 20~40% of its width on every devices

b/20338324
b/20763871

Change-Id: I69114cb6dfec95c473313a440a6db76a052e5601
/packages/apps/Launcher3/src/com/android/launcher3/DeviceProfile.java
fee35bbfac29a55382880f846fff86003e615ccb 11-May-2015 Sunny Goyal <sunnygoyal@google.com> Updating folder grid sizes for various devices

Change-Id: Ifd5930a4d6f54428500c0ef61ef21c0fc6a6f5cd
/packages/apps/Launcher3/src/com/android/launcher3/DeviceProfile.java
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/DeviceProfile.java
d23cfce087df09a81e7f06f29615b3b79e2e830c 28-Apr-2015 Sunny Goyal <sunnygoyal@google.com> Merge "Making QSB alingment match with that of recents" into ub-launcher3-burnaby
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/DeviceProfile.java
d9cc780fade7a078d127c7e5b8209d414a46f0a5 23-Apr-2015 Sunny Goyal <sunnygoyal@google.com> Making QSB alingment match with that of recents

Change-Id: I6be59c721cbd163641013ca6c5e1776cf2162a0d
/packages/apps/Launcher3/src/com/android/launcher3/DeviceProfile.java
ada50984dc149c1f4337f965fbb59bdeaac8d09f 10-Apr-2015 Hyunyoung Song <hyunyoungs@google.com> Focus handling - RTL support

- Support LEFT and RIGHT keys to work across workspaces when in RTL mode.
- Folder icons navigate correctly on DPAD_LEFT/RIGHT events
- Folder navigation across pages also works correctly
- Deleted dead code inside FocusHelper

b/20120358

Change-Id: I7f851cb7ed31f666a91b2f856458d7966ea5f712
/packages/apps/Launcher3/src/com/android/launcher3/DeviceProfile.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/DeviceProfile.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/DeviceProfile.java
b471b0869bc4b0bbcc0dc3a15d3b12ab1b1c0a73 08-Apr-2015 Winson Chung <winsonc@google.com> Merge "Temporarily tweaking the all apps layout to fit the screen on tablets." into ub-launcher3-burnaby
bd808530dbfa765a33fa4fbfce46d1e0fcfcc5ca 08-Apr-2015 Winson Chung <winsonc@google.com> Temporarily tweaking the all apps layout to fit the screen on tablets.

Change-Id: I2f8fe8e39a39cd6a055f22696881c51be7624832
/packages/apps/Launcher3/src/com/android/launcher3/DeviceProfile.java
50062408bfa63fda4485807aa6a4f93ed1e0eac8 07-Apr-2015 Sunny Goyal <sunnygoyal@google.com> Merge "Revert "Setting hotseat padding to the container for symmetry"" into ub-launcher3-burnaby
e0bca386247024728b1e71e9ae530fac7e5b3171 06-Apr-2015 Sunny Goyal <sunnygoyal@google.com> Revert "Setting hotseat padding to the container for symmetry"

This reverts commit d81992b6e70e05a3c208e02d019e606b7cb8a0b7.

Bug:20087585
Change-Id: I4949ec9e0e27afa218597b943001e7240cfdc548
/packages/apps/Launcher3/src/com/android/launcher3/DeviceProfile.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/DeviceProfile.java
18bfaafd3da45dce7b5f73eaa1665f228353338c 17-Mar-2015 Hyunyoung Song <hyunyoungs@google.com> key event focus logic should support large tablets

TL;DR;; On smaller tablets, landscape = vertical hotseat bar, and
portrait = horizontal hotseat bar. However, in larger tablets, hotseat bar is
always horizontal. This is now correctly handled using DeviceProfile.isVerticalBar
method.

b/19732584

Change-Id: I1035c89b4685be12dbc863f8a1465047a5fec6a6
/packages/apps/Launcher3/src/com/android/launcher3/DeviceProfile.java
93f98eaf1800024cb2f28379bdd997f3debae63a 11-Mar-2015 Winson Chung <winsonc@google.com> Adding app grid layout with fastscroller.

- Adding filtering and using alphabetic index for app grouping.

Change-Id: I745b644fa8f90f5ff24a8642ac377ef1c65d8aff
/packages/apps/Launcher3/src/com/android/launcher3/DeviceProfile.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/DeviceProfile.java
d81992b6e70e05a3c208e02d019e606b7cb8a0b7 05-Mar-2015 Sunny Goyal <sunnygoyal@google.com> Setting hotseat padding to the container for symmetry

Change-Id: I953aa4e8d729db88dae29f51af28c6cf01891bd6
/packages/apps/Launcher3/src/com/android/launcher3/DeviceProfile.java
c9acdd51c40c1b397adae6ba62c4acd01914b473 26-Feb-2015 Sunny Goyal <sunnygoyal@google.com> Removed disableAllApps flag

Change-Id: I50ba511b8493bca2506ab6010f141c093bfa7499
/packages/apps/Launcher3/src/com/android/launcher3/DeviceProfile.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/DeviceProfile.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/DeviceProfile.java
8dfe2da6985d38f23fd3426101574c093f509907 25-Oct-2014 Sunny Goyal <sunnygoyal@google.com> Adding some spacing between overview panel items

Bug: 18293488
Change-Id: I8731c4d2ad34571a4a3a21b03a5fbae0ba66332f
/packages/apps/Launcher3/src/com/android/launcher3/DeviceProfile.java
cee8c66f9a688705f7880f2bffc9d2f95803eb81 16-Oct-2014 Adam Cohen <adamcohen@google.com> Adding ability to list folder items in separate file

-> remove all apps default layouts

Bug 17569015

Change-Id: I39b899b61d5b1cff2d7801d281dacfc804c403c5
/packages/apps/Launcher3/src/com/android/launcher3/DeviceProfile.java
4ae96ce92df7aad3c767c68b8795b80734e01829 30-Aug-2014 Adam Cohen <adamcohen@google.com> Add ability for Partner customization apk to override certain DeviceProfile params

-> Workspace row / col counts
-> All apps row / col counts
-> Workspace icon size

issue 17208277

Change-Id: I25cfafede4da783083593b9bfeff4e5ba7751d36
/packages/apps/Launcher3/src/com/android/launcher3/DeviceProfile.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/DeviceProfile.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/DeviceProfile.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/DeviceProfile.java
be87647e2ade2f442159e60da81d1c5a57eba8a9 14-May-2014 Winson Chung <winsonc@google.com> Adding support for dynamically resolved default layouts.

Change-Id: Id05c60b93423ce37dd06a126ecf33c74a0ba1d62
/packages/apps/Launcher3/src/com/android/launcher3/DeviceProfile.java
6033ceb438d2d8e6c8406e2b61ae515e6156965c 05-Feb-2014 Winson Chung <winsonc@google.com> Ensure we don't call getLayoutDirection() for devices not running JB MR1+. (Bug 12906355)

Change-Id: I25115b9529c21d3079f50bc26bad8f846a6fcd3e
/packages/apps/Launcher3/src/com/android/launcher3/DeviceProfile.java
efb31e399d335351a8db3de54ed66fabd30606ba 17-Jan-2014 Adam Cohen <adamcohen@google.com> Fix overlapping pages (issue 12551580)

Change-Id: I03c29c36828b6c4baadb33b13b0e852b07b2d40f
/packages/apps/Launcher3/src/com/android/launcher3/DeviceProfile.java
205cd7727f3bd8b65892c580e6f243464878fe6e 15-Jan-2014 Winson Chung <winsonc@google.com> Updating Tablet clings. (Bug 11973614)

Change-Id: I6cb10424a345691d50c4fac7969e0b97bbee4b3c
/packages/apps/Launcher3/src/com/android/launcher3/DeviceProfile.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/DeviceProfile.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/DeviceProfile.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/DeviceProfile.java
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/DeviceProfile.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/DeviceProfile.java
0ea74f1394f17aad700bee48b4d8d1bb4a095b4d 04-Dec-2013 Winson Chung <winsonc@google.com> Merge "Limit AllApps insets to certain device configurations. (Bug 11451335)" into jb-ub-now-kermit
495f44d5fcd877786ffa5e8eea055e18f28e3d85 04-Dec-2013 Winson Chung <winsonc@google.com> Limit AllApps insets to certain device configurations. (Bug 11451335)

Change-Id: I0b7172bb8c2e8cfb06ef4ff097bdc632d6be0548
/packages/apps/Launcher3/src/com/android/launcher3/DeviceProfile.java
42b3c06849331aa5ba1f07f8c58915190d386aac 04-Dec-2013 Winson Chung <winsonc@google.com> Restoring Hotseat to the left-aligned in RTL. (Bug 11451335)

Change-Id: I5451b1281e3f346f51677040775ae7bf76e303d1
/packages/apps/Launcher3/src/com/android/launcher3/DeviceProfile.java
2cb2471e7fbade9a785c523df5941f2855e99041 03-Dec-2013 Winson Chung <winsonc@google.com> Ensure we pass search bar bounds to GoogleSearch. (Bug 11968598)

Change-Id: I10027c2c10bbc5b2f2e63276dc91ceca0bf59a08
/packages/apps/Launcher3/src/com/android/launcher3/DeviceProfile.java
69e04ea5ab08ae923d5c8de079c7a36998e5e46a 02-Dec-2013 Winson Chung <winsonc@google.com> Modifying Workspace padding to account for Search Bar offsets. (Bug 11968598)

Change-Id: I26b8488afd6d75777e1d881f1105b5c1a89021d7
/packages/apps/Launcher3/src/com/android/launcher3/DeviceProfile.java
b38002419dcb456b51f5d320b224737f16a07088 24-Oct-2013 Winson Chung <winsonc@google.com> Adding method to get the search bar bounds.

Change-Id: Iec2fe0992cc666432ba6b9eac7ee8bf63e49b146
/packages/apps/Launcher3/src/com/android/launcher3/DeviceProfile.java