Merge "Ensure PiP test apis are marked as TestApi"

This commit is contained in:
Winson Chung
2018-06-29 03:13:25 +00:00
committed by Android (Google) Code Review
3 changed files with 10 additions and 3 deletions

View File

@@ -17,6 +17,7 @@
package android.app;
import android.annotation.Nullable;
import android.annotation.TestApi;
import android.graphics.Rect;
import android.os.Parcel;
import android.os.Parcelable;
@@ -181,6 +182,7 @@ public final class PictureInPictureParams implements Parcelable {
* @return the aspect ratio. If none is set, return 0.
* @hide
*/
@TestApi
public float getAspectRatio() {
if (mAspectRatio != null) {
return mAspectRatio.floatValue();
@@ -205,6 +207,7 @@ public final class PictureInPictureParams implements Parcelable {
* @return the set of user actions.
* @hide
*/
@TestApi
public List<RemoteAction> getActions() {
return mUserActions;
}
@@ -231,6 +234,7 @@ public final class PictureInPictureParams implements Parcelable {
* @return the source rect hint
* @hide
*/
@TestApi
public Rect getSourceRectHint() {
return mSourceRectHint;
}