History log of /frameworks/base/packages/SystemUI/src/com/android/systemui/recents/model/TaskKeyLruCache.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/model/TaskKeyLruCache.java
6976f7bae901d81a354287088ae232ba7236f30e 03-May-2016 Winson <winsonc@google.com> Disabling movement of entire affiliated task set.

- This CL removes the dependency on the last-active-time of the task
record, since that is dependent on the current system time (which can
be changed by the user). Instead of working around the previous
behavior in ActivityManager which moves all affiliated tasks to the
top when one task is launched, we change the behavior in the AM
directly, and prevent re-sorting the list of recent tasks improperly
(aside from the stable sort which puts the freeform tasks first).

Bug: 27398177

Change-Id: I9fa9b3497d08082fe00aa724538255de87e746d6
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/model/TaskKeyLruCache.java
29a763b83c3a5cb65b2eb682e8404efc47e4dc19 20-Apr-2016 Winson <winsonc@google.com> Adding additional dump logging to track down bugs.

Bug: 28177001
Change-Id: I9832874d3b9b1fceb28cfac6e899739b6dba0896
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/model/TaskKeyLruCache.java
a1b96b5d58e3d0e938b8fc3a6d3e8bf8b115f568 15-Mar-2016 Winson <winsonc@google.com> Ensuring that we evict ActivityInfos from the cache.

- Once the data that we depend on the ActivityInfos for are evicted,
also remove them from the cache so that they are not stale the next
time we might want to use them.

Bug: 27495264
Change-Id: I615842df4f48deb12a051ef241991a51a10cf383
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/model/TaskKeyLruCache.java
680888123db816ad0c5f082d1e9b3f9b756bc7b6 13-Feb-2016 Winson <winsonc@google.com> Minor tweaks

- Initializing to focused state when going into Recents
- Dimming the front-most tasks to highlight the focused task
- Fixing wrong call to resize in the LruCache

Change-Id: I41833a9dc59a9bdf4a94b698e4800c1019bceb01
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/model/TaskKeyLruCache.java
eb1b65a976d143810acab199aecd17b987661973 02-Nov-2015 Winson <winsonc@google.com> Prevent and log invalid cache entries.

Bug: 25413518
Change-Id: Id0a7384eccd25ba766feb0c568b4c16db2b6f6c8
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/model/TaskKeyLruCache.java
e7f138c7f0a190c86cec10fb32fa106aacae4093 23-Oct-2015 Winson <winsonc@google.com> Cleaning up task loading code.

- Moving all references of SystemServicesProxy and RecentsTaskLoader to
a single static instance in Recents. This ensures that we only refer
to an instance that is created with the application context.
- Moving ActivityInfo cache into RecentsTaskLoader with the other caches
which allows us to invalidate it less frequently. This requires the
loader to handle package changes to invalidate the cached infos
accordingly.
- Cleaned up old code to handle case where the Recents component for
secondary users might not be initialized (fixed in ag/773159)
- Moving the package monitor to the background thread.
- Cleaning user interaction and visibility changes to events.
- Fixed issue with sending events from binder thread.

Change-Id: Ie785347055736f6dd7802f32454f77073e20b83e
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/model/TaskKeyLruCache.java