am 0ec1328f: Calculate outset hint when adding window.
* commit '0ec1328f85a08a610868856c688ebb8196c79c17': Calculate outset hint when adding window.
This commit is contained in:
@@ -40,7 +40,7 @@ interface IWindowSession {
|
||||
out InputChannel outInputChannel);
|
||||
int addToDisplay(IWindow window, int seq, in WindowManager.LayoutParams attrs,
|
||||
in int viewVisibility, in int layerStackId, out Rect outContentInsets,
|
||||
out Rect outStableInsets, out InputChannel outInputChannel);
|
||||
out Rect outStableInsets, out Rect outOutsets, out InputChannel outInputChannel);
|
||||
int addWithoutInputChannel(IWindow window, int seq, in WindowManager.LayoutParams attrs,
|
||||
in int viewVisibility, out Rect outContentInsets, out Rect outStableInsets);
|
||||
int addToDisplayWithoutInputChannel(IWindow window, int seq, in WindowManager.LayoutParams attrs,
|
||||
|
||||
@@ -526,7 +526,8 @@ public final class ViewRootImpl implements ViewParent,
|
||||
collectViewAttributes();
|
||||
res = mWindowSession.addToDisplay(mWindow, mSeq, mWindowAttributes,
|
||||
getHostVisibility(), mDisplay.getDisplayId(),
|
||||
mAttachInfo.mContentInsets, mAttachInfo.mStableInsets, mInputChannel);
|
||||
mAttachInfo.mContentInsets, mAttachInfo.mStableInsets,
|
||||
mAttachInfo.mOutsets, mInputChannel);
|
||||
} catch (RemoteException e) {
|
||||
mAdded = false;
|
||||
mView = null;
|
||||
@@ -1538,6 +1539,7 @@ public final class ViewRootImpl implements ViewParent,
|
||||
+ " content=" + mPendingContentInsets.toShortString()
|
||||
+ " visible=" + mPendingVisibleInsets.toShortString()
|
||||
+ " visible=" + mPendingStableInsets.toShortString()
|
||||
+ " outsets=" + mPendingOutsets.toShortString()
|
||||
+ " surface=" + mSurface);
|
||||
|
||||
if (mPendingConfiguration.seq != 0) {
|
||||
|
||||
@@ -877,13 +877,15 @@ public interface WindowManagerPolicy {
|
||||
* be correct.
|
||||
*
|
||||
* @param attrs The LayoutParams of the window.
|
||||
* @param rotation Rotation of the display.
|
||||
* @param outContentInsets The areas covered by system windows, expressed as positive insets.
|
||||
* @param outStableInsets The areas covered by stable system windows irrespective of their
|
||||
* current visibility. Expressed as positive insets.
|
||||
* @param outOutsets The areas that are not real display, but we would like to treat as such.
|
||||
*
|
||||
*/
|
||||
public void getInsetHintLw(WindowManager.LayoutParams attrs, Rect outContentInsets,
|
||||
Rect outStableInsets);
|
||||
public void getInsetHintLw(WindowManager.LayoutParams attrs, int rotation,
|
||||
Rect outContentInsets, Rect outStableInsets, Rect outOutsets);
|
||||
|
||||
/**
|
||||
* Called when layout of the windows is finished. After this function has
|
||||
|
||||
Reference in New Issue
Block a user