Loading services/core/java/com/android/server/wm/DimLayer.java +1 −1 Original line number Diff line number Diff line Loading @@ -70,7 +70,7 @@ public class DimLayer { /** Returns the display info. of the dim layer user. */ DisplayInfo getDisplayInfo(); /** Gets the bounds of the dim layer user. */ void getBounds(Rect outBounds); void getDimBounds(Rect outBounds); String toShortString(); } /** The user of this dim layer. */ Loading services/core/java/com/android/server/wm/DimLayerController.java +7 −8 Original line number Diff line number Diff line Loading @@ -43,7 +43,7 @@ class DimLayerController { /** Updates the dim layer bounds, recreating it if needed. */ void updateDimLayer(DimLayer.DimLayerUser dimLayerUser) { DimLayerState state = getOrCreateDimLayerState(dimLayerUser, false); DimLayerState state = getOrCreateDimLayerState(dimLayerUser); final boolean previousFullscreen = state.dimLayer != null && state.dimLayer == mSharedFullScreenDimLayer; DimLayer newDimLayer; Loading @@ -63,7 +63,7 @@ class DimLayerController { // Create new full screen dim layer. newDimLayer = new DimLayer(mDisplayContent.mService, dimLayerUser, displayId); } dimLayerUser.getBounds(mTmpBounds); dimLayerUser.getDimBounds(mTmpBounds); newDimLayer.setBounds(mTmpBounds); mSharedFullScreenDimLayer = newDimLayer; } else if (state.dimLayer != null) { Loading @@ -73,14 +73,13 @@ class DimLayerController { newDimLayer = (state.dimLayer == null || previousFullscreen) ? new DimLayer(mDisplayContent.mService, dimLayerUser, displayId) : state.dimLayer; dimLayerUser.getBounds(mTmpBounds); dimLayerUser.getDimBounds(mTmpBounds); newDimLayer.setBounds(mTmpBounds); } state.dimLayer = newDimLayer; } private DimLayerState getOrCreateDimLayerState( DimLayer.DimLayerUser dimLayerUser, boolean aboveApp) { private DimLayerState getOrCreateDimLayerState(DimLayer.DimLayerUser dimLayerUser) { if (DEBUG_DIM_LAYER) Slog.v(TAG, "getOrCreateDimLayerState, dimLayerUser=" + dimLayerUser.toShortString()); DimLayerState state = mState.get(dimLayerUser); Loading @@ -88,7 +87,6 @@ class DimLayerController { state = new DimLayerState(); mState.put(dimLayerUser, state); } state.dimAbove = aboveApp; return state; } Loading Loading @@ -127,7 +125,8 @@ class DimLayerController { WindowStateAnimator newWinAnimator, boolean aboveApp) { // Only set dim params on the highest dimmed layer. // Don't turn on for an unshown surface, or for any layer but the highest dimmed layer. DimLayerState state = getOrCreateDimLayerState(dimLayerUser, aboveApp); DimLayerState state = getOrCreateDimLayerState(dimLayerUser); state.dimAbove = aboveApp; if (DEBUG_DIM_LAYER) Slog.v(TAG, "startDimmingIfNeeded," + " dimLayerUser=" + dimLayerUser.toShortString() + " newWinAnimator=" + newWinAnimator Loading Loading @@ -161,7 +160,7 @@ class DimLayerController { + " state.dimLayer.isDimming=" + state.dimLayer.isDimming()); if (!state.continueDimming && state.dimLayer.isDimming()) { state.animator = null; dimLayerUser.getBounds(mTmpBounds); dimLayerUser.getDimBounds(mTmpBounds); state.dimLayer.setBounds(mTmpBounds); } } Loading services/core/java/com/android/server/wm/DisplayContent.java +2 −2 Original line number Diff line number Diff line Loading @@ -297,7 +297,7 @@ class DisplayContent { // windows frames when the app window is the IME target. final WindowState win = task.getTopAppMainWindow(); if (win != null) { win.getVisibleBounds(mTmpRect, !BOUNDS_FOR_TOUCH); win.getVisibleBounds(mTmpRect); if (mTmpRect.contains(x, y)) { return task.mTaskId; } Loading Loading @@ -332,7 +332,7 @@ class DisplayContent { // start at (0,0) after it's adjusted for the status bar.) final WindowState win = task.getTopAppMainWindow(); if (win != null) { win.getVisibleBounds(mTmpRect, !BOUNDS_FOR_TOUCH); win.getVisibleBounds(mTmpRect); mTmpRect.inset(-delta, -delta); if (mTmpRect.contains(x, y)) { mTmpRect.inset(delta, delta); Loading services/core/java/com/android/server/wm/DockedStackDividerController.java +1 −1 Original line number Diff line number Diff line Loading @@ -87,7 +87,7 @@ public class DockedStackDividerController { frame.set(mLastRect); return; } else { stack.getBounds(mTmpRect); stack.getDimBounds(mTmpRect); } int side = stack.getDockSide(); switch (side) { Loading services/core/java/com/android/server/wm/DragState.java +1 −1 Original line number Diff line number Diff line Loading @@ -435,7 +435,7 @@ class DragState { continue; } child.getVisibleBounds(mTmpRect, !BOUNDS_FOR_TOUCH); child.getVisibleBounds(mTmpRect); if (!mTmpRect.contains(x, y)) { // outside of this window's activity stack == don't tell about drags continue; Loading Loading
services/core/java/com/android/server/wm/DimLayer.java +1 −1 Original line number Diff line number Diff line Loading @@ -70,7 +70,7 @@ public class DimLayer { /** Returns the display info. of the dim layer user. */ DisplayInfo getDisplayInfo(); /** Gets the bounds of the dim layer user. */ void getBounds(Rect outBounds); void getDimBounds(Rect outBounds); String toShortString(); } /** The user of this dim layer. */ Loading
services/core/java/com/android/server/wm/DimLayerController.java +7 −8 Original line number Diff line number Diff line Loading @@ -43,7 +43,7 @@ class DimLayerController { /** Updates the dim layer bounds, recreating it if needed. */ void updateDimLayer(DimLayer.DimLayerUser dimLayerUser) { DimLayerState state = getOrCreateDimLayerState(dimLayerUser, false); DimLayerState state = getOrCreateDimLayerState(dimLayerUser); final boolean previousFullscreen = state.dimLayer != null && state.dimLayer == mSharedFullScreenDimLayer; DimLayer newDimLayer; Loading @@ -63,7 +63,7 @@ class DimLayerController { // Create new full screen dim layer. newDimLayer = new DimLayer(mDisplayContent.mService, dimLayerUser, displayId); } dimLayerUser.getBounds(mTmpBounds); dimLayerUser.getDimBounds(mTmpBounds); newDimLayer.setBounds(mTmpBounds); mSharedFullScreenDimLayer = newDimLayer; } else if (state.dimLayer != null) { Loading @@ -73,14 +73,13 @@ class DimLayerController { newDimLayer = (state.dimLayer == null || previousFullscreen) ? new DimLayer(mDisplayContent.mService, dimLayerUser, displayId) : state.dimLayer; dimLayerUser.getBounds(mTmpBounds); dimLayerUser.getDimBounds(mTmpBounds); newDimLayer.setBounds(mTmpBounds); } state.dimLayer = newDimLayer; } private DimLayerState getOrCreateDimLayerState( DimLayer.DimLayerUser dimLayerUser, boolean aboveApp) { private DimLayerState getOrCreateDimLayerState(DimLayer.DimLayerUser dimLayerUser) { if (DEBUG_DIM_LAYER) Slog.v(TAG, "getOrCreateDimLayerState, dimLayerUser=" + dimLayerUser.toShortString()); DimLayerState state = mState.get(dimLayerUser); Loading @@ -88,7 +87,6 @@ class DimLayerController { state = new DimLayerState(); mState.put(dimLayerUser, state); } state.dimAbove = aboveApp; return state; } Loading Loading @@ -127,7 +125,8 @@ class DimLayerController { WindowStateAnimator newWinAnimator, boolean aboveApp) { // Only set dim params on the highest dimmed layer. // Don't turn on for an unshown surface, or for any layer but the highest dimmed layer. DimLayerState state = getOrCreateDimLayerState(dimLayerUser, aboveApp); DimLayerState state = getOrCreateDimLayerState(dimLayerUser); state.dimAbove = aboveApp; if (DEBUG_DIM_LAYER) Slog.v(TAG, "startDimmingIfNeeded," + " dimLayerUser=" + dimLayerUser.toShortString() + " newWinAnimator=" + newWinAnimator Loading Loading @@ -161,7 +160,7 @@ class DimLayerController { + " state.dimLayer.isDimming=" + state.dimLayer.isDimming()); if (!state.continueDimming && state.dimLayer.isDimming()) { state.animator = null; dimLayerUser.getBounds(mTmpBounds); dimLayerUser.getDimBounds(mTmpBounds); state.dimLayer.setBounds(mTmpBounds); } } Loading
services/core/java/com/android/server/wm/DisplayContent.java +2 −2 Original line number Diff line number Diff line Loading @@ -297,7 +297,7 @@ class DisplayContent { // windows frames when the app window is the IME target. final WindowState win = task.getTopAppMainWindow(); if (win != null) { win.getVisibleBounds(mTmpRect, !BOUNDS_FOR_TOUCH); win.getVisibleBounds(mTmpRect); if (mTmpRect.contains(x, y)) { return task.mTaskId; } Loading Loading @@ -332,7 +332,7 @@ class DisplayContent { // start at (0,0) after it's adjusted for the status bar.) final WindowState win = task.getTopAppMainWindow(); if (win != null) { win.getVisibleBounds(mTmpRect, !BOUNDS_FOR_TOUCH); win.getVisibleBounds(mTmpRect); mTmpRect.inset(-delta, -delta); if (mTmpRect.contains(x, y)) { mTmpRect.inset(delta, delta); Loading
services/core/java/com/android/server/wm/DockedStackDividerController.java +1 −1 Original line number Diff line number Diff line Loading @@ -87,7 +87,7 @@ public class DockedStackDividerController { frame.set(mLastRect); return; } else { stack.getBounds(mTmpRect); stack.getDimBounds(mTmpRect); } int side = stack.getDockSide(); switch (side) { Loading
services/core/java/com/android/server/wm/DragState.java +1 −1 Original line number Diff line number Diff line Loading @@ -435,7 +435,7 @@ class DragState { continue; } child.getVisibleBounds(mTmpRect, !BOUNDS_FOR_TOUCH); child.getVisibleBounds(mTmpRect); if (!mTmpRect.contains(x, y)) { // outside of this window's activity stack == don't tell about drags continue; Loading