Skip to content

Commit b8678d7

Browse files
author
Dianne Hackborn
committed
resolved conflicts for merge of 210c1a2 to master
Change-Id: Ic44193e62215086c22225f2def5eee3159d26ae8
2 parents c42067d + 210c1a2 commit b8678d7

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

policy/src/com/android/internal/policy/impl/PhoneWindowManager.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2285,13 +2285,21 @@ public void layoutWindowLw(WindowState win, WindowManager.LayoutParams attrs,
22852285
"Laying out navigation bar window: (%d,%d - %d,%d)",
22862286
pf.left, pf.top, pf.right, pf.bottom));
22872287
}
2288-
} else if (attrs.type == TYPE_SECURE_SYSTEM_OVERLAY
2288+
} else if ((attrs.type == TYPE_SECURE_SYSTEM_OVERLAY
2289+
|| attrs.type == TYPE_BOOT_PROGRESS)
22892290
&& ((fl & FLAG_FULLSCREEN) != 0)) {
22902291
// Fullscreen secure system overlays get what they ask for.
22912292
pf.left = df.left = mUnrestrictedScreenLeft;
22922293
pf.top = df.top = mUnrestrictedScreenTop;
22932294
pf.right = df.right = mUnrestrictedScreenLeft+mUnrestrictedScreenWidth;
22942295
pf.bottom = df.bottom = mUnrestrictedScreenTop+mUnrestrictedScreenHeight;
2296+
} else if (attrs.type == TYPE_BOOT_PROGRESS) {
2297+
// Boot progress screen always covers entire display.
2298+
pf.left = df.left = cf.left = mUnrestrictedScreenLeft;
2299+
pf.top = df.top = cf.top = mUnrestrictedScreenTop;
2300+
pf.right = df.right = cf.right = mUnrestrictedScreenLeft+mUnrestrictedScreenWidth;
2301+
pf.bottom = df.bottom = cf.bottom
2302+
= mUnrestrictedScreenTop+mUnrestrictedScreenHeight;
22952303
} else {
22962304
pf.left = df.left = cf.left = mRestrictedScreenLeft;
22972305
pf.top = df.top = cf.top = mRestrictedScreenTop;

services/java/com/android/server/wm/DimAnimator.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,9 @@ boolean updateSurface(boolean dimming, long currentTime, boolean displayFrozen)
180180

181181
public void printTo(String prefix, PrintWriter pw) {
182182
pw.print(prefix);
183-
pw.print("mDimSurface="); pw.println(mDimSurface);
183+
pw.print("mDimSurface="); pw.print(mDimSurface);
184+
pw.print(" "); pw.print(mLastDimWidth); pw.print(" x ");
185+
pw.println(mLastDimHeight);
184186
pw.print(prefix);
185187
pw.print("mDimShown="); pw.print(mDimShown);
186188
pw.print(" current="); pw.print(mDimCurrentAlpha);

services/java/com/android/server/wm/WindowManagerService.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8570,6 +8570,11 @@ private void handleNotObscuredLocked(final WindowState w, final long currentTime
85708570
if (mDimAnimator == null) {
85718571
mDimAnimator = new DimAnimator(mFxSession);
85728572
}
8573+
if (attrs.type == WindowManager.LayoutParams.TYPE_BOOT_PROGRESS) {
8574+
mDimAnimator.show(mCurDisplayWidth, mCurDisplayHeight);
8575+
} else {
8576+
mDimAnimator.show(innerDw, innerDh);
8577+
}
85738578
mDimAnimator.show(innerDw, innerDh);
85748579
mDimAnimator.updateParameters(mContext.getResources(),
85758580
w, currentTime);

0 commit comments

Comments
 (0)