6f9dbcb742ee930151444118dd61c2239efce09d |
|
17-Mar-2017 |
Jorim Jaggi <jjaggi@google.com> |
Implement new thumbnail loading strategy - By default, we load only the reduced resolution screenshots. - As soon as the user stops scrolling fast, we also start loading full resolution screenshots. - We prefetch reduced resolution screenshots when scrolling from back to front, as the other direction is automatically prefetched because the thumbnails aren't immediately visible. Test: Open many apps, adb restart, scroll fast and slow in recents Test: runtest systemui -c com.android.systemui.recents.model.HighResThumbnailLoaderTest Bug: 34829962 Change-Id: I7f7a9842eb28a09a18573426fa9677cee2877124
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/model/ThumbnailData.java
|
fb9d78afb77b1d304b24f470a637244d52a7e1df |
|
05-Jan-2017 |
Jorim Jaggi <jjaggi@google.com> |
Add a listener when task snapshots change Since we start recents before we take the snapshot, we need to add a mechanism to inform recents about task snapshots changes. We add a new method to TaskStackChangedListener, onTaskSnapshotChanged, which gets called whenever a task snapshot changes. Then, SystemUI registers such a listener and updates the task thumbnail view for the specific task. Test: Open app, press recents, make sure thumbnail is up-to-date Bug: 31339431 Change-Id: I01e81b9cd11886da734da671c68d5732aa51009f
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/model/ThumbnailData.java
|
e2c77f903504766102fe545af40c3e4ebcb3adc7 |
|
29-Dec-2016 |
Jorim Jaggi <jjaggi@google.com> |
Handle content insets for snapshots Pass information about content insets of a snapshotted task to SystemUI and use it there to correctly offset the snapshot when drawing. Test: Open app, go to recents, make sure app aligns before and after the animation. Bug: 31339431 Change-Id: I2ff9bd44534bd8f66b591385da1e1e3aec40b6c5
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/model/ThumbnailData.java
|
217009356efa2b854ab3981dff8d315a0d679c73 |
|
25-Mar-2016 |
Winson <winsonc@google.com> |
Don’t scale task thumbnails. - Changing task view thumbnail layout. In portrait, scale the thumbnail to width for portrait screenshots, and apply the same scale to landscape screenshots. In landscape, scale screenshots up to 1:1, and tweak the app transition to clip the sides instead of scaling. In both orientations, fill with the background color in the remaining space. - Moving some resources related to the title bar to be calculated programmatically so that we can have different header bar sizes which completely overlap the action bar in the screenshot in each orientation. - Constraining the task stack width in landscape to portrait Bug: 27504677 Change-Id: Ic9b6fdde6dd728d9f2d20a8b89c05b3a350edfbf
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/model/ThumbnailData.java
|