summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/Program.java
diff options
context:
space:
mode:
authorWinson Chung <winsonc@google.com>2016-12-07 15:00:47 -0800
committerWinson Chung <winsonc@google.com>2016-12-07 15:21:50 -0800
commitb5c41b786862618b22e532849ddcca48bdc40025 (patch)
treebecafd3b6557cdba9c682ebe153e906e9a721ddd /rs/java/android/renderscript/Program.java
parente630804797b4be77ee7aa6b8f5d82efe0c5f09a4 (diff)
Adding ability for an app to request auto-enter picture-in-picture.
- If an activity requests that it can auto-enter PIP, then we will trigger it to enter PIP when the task is effectively being occluded. This does not affect the activity when the screen is locking, or if it starts new activities within its own task, or if it finishes itself, or if there is already a PIP activity. - Changed setPictureInPictureAspectRatio to also specify the aspect ratio to use when auto-entering PIP. If the activity is not PIP'ed and has not requested auto-enter, then the call continues to fail. Test: android.server.cts.ActivityManagerPinnedStackTests Test: #testAutoEnterPictureInPicture Test: #testAutoEnterPictureInPictureLaunchActivity Test: #testAutoEnterPictureInPictureFinish Test: #testAutoEnterPictureInPictureAspectRatio Test: #testAutoEnterPictureInPictureOverPip Change-Id: I6477b6d1f160cf0219d935123bbb505f57ee7a56
Diffstat (limited to 'rs/java/android/renderscript/Program.java')
0 files changed, 0 insertions, 0 deletions