OSDN Git Service

Don’t scale task thumbnails.
authorWinson <winsonc@google.com>
Fri, 25 Mar 2016 00:26:23 +0000 (17:26 -0700)
committerWinson <winsonc@google.com>
Fri, 25 Mar 2016 03:03:02 +0000 (20:03 -0700)
commit217009356efa2b854ab3981dff8d315a0d679c73
tree25dda0a457fb65b1b253cb4c1a5292d43bf1d508
parentd8f7431d0fe0f5449ca54a15392c3238aa645dea
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
20 files changed:
core/java/android/app/ActivityManager.java
core/res/res/values/dimens.xml
core/res/res/values/symbols.xml
packages/SystemUI/res/layout/recents_task_view_header.xml
packages/SystemUI/res/layout/recents_task_view_header_overlay.xml
packages/SystemUI/res/values/dimens.xml
packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java
packages/SystemUI/src/com/android/systemui/recents/RecentsImpl.java
packages/SystemUI/src/com/android/systemui/recents/misc/SystemServicesProxy.java
packages/SystemUI/src/com/android/systemui/recents/model/RecentsTaskLoadPlan.java
packages/SystemUI/src/com/android/systemui/recents/model/RecentsTaskLoader.java
packages/SystemUI/src/com/android/systemui/recents/model/Task.java
packages/SystemUI/src/com/android/systemui/recents/model/ThumbnailData.java [new file with mode: 0644]
packages/SystemUI/src/com/android/systemui/recents/views/TaskStackLayoutAlgorithm.java
packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
packages/SystemUI/src/com/android/systemui/recents/views/TaskViewHeader.java
packages/SystemUI/src/com/android/systemui/recents/views/TaskViewThumbnail.java
services/core/java/com/android/server/am/ActivityManagerService.java
services/core/java/com/android/server/am/ActivityStack.java
services/core/java/com/android/server/wm/AppTransition.java