History log of /frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/grid/TaskGridLayoutAlgorithm.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
cdef591e52e691a6f57e367caa5670fdc4ee1a8a 03-Apr-2017 Jorim Jaggi <jjaggi@google.com> Improve caching behavior of thumbnails

Remove the retrieval cache on system_server. It's not needed at
this point.

Instead, we cache the low-res thumbnails on SystemUI side that
will be visible when recents launches. For that, we introduce
a strong thumbnail cache, which gets filled up whenever the task
stack changes.

Also fix a couple of issues like that the visibility report was
pretty wrong as well as some tasks got unloaded because tasks were
bound before layout happend.

Also fix a merge issue where we didn't load the reduced resolution
thumbnail :/

Test: TaskSnapshotCacheTest
Test: Open a couple of apps, open recents, make sure all
thumbnails are already loaded.

Fixes: 36374895
Change-Id: Idbf1acd4ceab6a7c4656e9791e245a8b102017f2
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/grid/TaskGridLayoutAlgorithm.java
776f6bacd67d27e033598f8c8c079bab9d0dd183 27-Jan-2017 Manu Cornet <manucornet@google.com> 2D recents: fix layout to show 3 tasks on a single line

Make the computation easier to read.

Bug: 34750498
Tested: Checked layout for n tasks for n between 0 and 8
Change-Id: I6d801f9f7d3839ed4a985233c82d93ab0823d6b0
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/grid/TaskGridLayoutAlgorithm.java
90f4f5290b971aefcf7cab306b3e95168ed53585 10-Jan-2017 Jiaquan He <hejq@google.com> 2D Recents: round task thumbnails properly.

Test: Checked that on local sw600dp devices, task views are rounded with
8dp. Also checked that Recents works properly on phones.
Bug: 32101881

Change-Id: I6f7a09a12c3e3f1f7270bed1ae25b291fadfb8f2
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/grid/TaskGridLayoutAlgorithm.java
c0e181394431fb13420f7bd0415231075cb1b469 11-Jan-2017 Jiaquan He <hejq@google.com> Add arrow key navigation support to Grid-based Recents.

Test: Checked that arrow key navigation works in Recents on local
sw600dp devices. Also checked that Recents works properly on phones.
Bug: 32101881

Change-Id: I8ece3fc4c9ae82916efcbbde72d40805e43cc70d
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/grid/TaskGridLayoutAlgorithm.java
2a147464f62d7cbe7e550c0b17ddcc9a82393891 18-Jan-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add keyboard support to Grid-based Recents." into nyc-mr2-dev
a88749fb5169018ecb1e7551e8598771d1ca3f13 18-Jan-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "2D Recents: Fix issue with undocking only one task" into nyc-mr2-dev
21f495f07b1b9ace99986a110d01a763847687b1 05-Jan-2017 Jiaquan He <hejq@google.com> Add keyboard support to Grid-based Recents.

Test: Checked that pressing tab, shift + tab, alt + tab, alt + shift +
tab work for task navigation in Recents on local sw600dp device. Also
checked that Recents on phones work properly.
Bug: 32101881
Change-Id: I3e4cd212d2900523ece30a85cae7fb73a9594efb
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/grid/TaskGridLayoutAlgorithm.java
244bac6c8bb8c7ef621786b42cf26dafaa417829 17-Jan-2017 Jiaquan He <hejq@google.com> 2D Recents: Fix issue with undocking only one task

While there's only one task and we undock it, it's not in the Recents
task list. In this change, we just reset the transform and return it.

Test: Checked that Recents works properly while docking and undocking a
task and it's the only task running.
Bug: 32101881

Change-Id: I1207b546ff2864018c8d9bf2520f4690762b2d27
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/grid/TaskGridLayoutAlgorithm.java
c0432c63de3def1f00f93aedee8050c30c2dc291 13-Jan-2017 Manu Cornet <manucornet@google.com> 2D Recents: Always use grid layout even in split view

Simplify the logic a bit, and polish the algorithm to accommodate the
various layout possibilities.

Bug: 32101881
Test: Checked layout in all orientations, with and without split view
Change-Id: I4a6dd3f7f34664908294ddaf5ea516d8e258edbf
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/grid/TaskGridLayoutAlgorithm.java
5c4c5e1682a349ecc5b0ff716c69108636194afd 12-Jan-2017 Jiaquan He <hejq@google.com> Merge "2D Recents: Show shadows behind task views." into nyc-mr2-dev
15fa3246d8091e6ab3956fd0a833fdd8daa9d6fb 05-Jan-2017 Jiaquan He <hejq@google.com> 2D Recents: Show shadows behind task views.

Test: Checked that there's a shadow behind each task view in Grid-based
Recents on local sw600dp device.
Bug: 32101881
Change-Id: I2cb2c0f73cbe23c4dcce5a4839965fdff13a0df5
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/grid/TaskGridLayoutAlgorithm.java
883887eac908b4b0145f06c52de00f76e8c833df 06-Jan-2017 Jiaquan He <hejq@google.com> Force Grid-based Recents to show at most 8 tasks.

Bug: 32101881
Bug: 33975969

Change-Id: Icbadaa3ca12f53e57e06dd19d7809a23e0efa88c
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/grid/TaskGridLayoutAlgorithm.java
8f34df423d9f65c692d9bcf59d224e0f938f78ac 28-Dec-2016 Jiaquan He <hejq@google.com> Cut the Grid-based Recents title if it's too long.

Bug: 33847657
Bug: 32101881
Change-Id: I040dafcb37c9259dded8fa2cd896e4e4a59aeae5
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/grid/TaskGridLayoutAlgorithm.java
0a5e2d6b93af0638f9dccb3bad43266b8fc261ad 27-Dec-2016 Jiaquan He <hejq@google.com> Resue TaskView information.

In this commit we calculate all the TaskView information we need
during initialization, so that we don't need to calculate again
unless any configuration is changed.

Bug: 32101881
Change-Id: I433688d0a05c69064d0da5268b61340cecdbfe74
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/grid/TaskGridLayoutAlgorithm.java
bf8e290376b8ee6d04c330b22f5275e82103def3 20-Dec-2016 Manu Cornet <manucornet@google.com> DO NOT MERGE - Port 2D recents implementation from master to nyc-mr2

Bug: 32101881
Test: Checked Recents layout/behavior on local sw600dp device
Change-Id: I40be7dbaf8bc017b4c7c449f9bca657817107ceb
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/grid/TaskGridLayoutAlgorithm.java