Merge "Open up #getAspectRatio and #getInsetBounds." into rvc-dev am: e064c531e2

Change-Id: I6c1edc4724d6fa309f7308e5640e9de9bc730945
This commit is contained in:
TreeHugger Robot
2020-04-28 23:19:58 +00:00
committed by Automerger Merge Worker

View File

@@ -126,6 +126,10 @@ public class PipBoundsHandler {
mCurrentMinSize = minEdgeSize;
}
protected float getAspectRatio() {
return mAspectRatio;
}
/**
* Sets both shelf visibility and its height if applicable.
* @return {@code true} if the internal shelf state is changed, {@code false} otherwise.
@@ -419,7 +423,7 @@ public class PipBoundsHandler {
/**
* Populates the bounds on the screen that the PIP can be visible in.
*/
private void getInsetBounds(Rect outRect) {
protected void getInsetBounds(Rect outRect) {
try {
mWindowManager.getStableInsets(mContext.getDisplayId(), mTmpInsets);
outRect.set(mTmpInsets.left + mScreenEdgeInsets.x,