Home
last modified time | relevance | path

Searched refs:surfaceInsets (Results 1 – 12 of 12) sorted by relevance

/frameworks/base/graphics/java/android/view/
DPixelCopy.java269 final Rect surfaceInsets = root.mWindowAttributes.surfaceInsets; in request() local
271 srcRect = new Rect(surfaceInsets.left, surfaceInsets.top, in request()
272 root.mWidth + surfaceInsets.left, root.mHeight + surfaceInsets.top); in request()
274 srcRect.offset(surfaceInsets.left, surfaceInsets.top); in request()
/frameworks/base/core/java/android/view/
DThreadedRenderer.java403 Surface surface, Rect surfaceInsets) throws OutOfResourcesException { in initializeIfNeeded() argument
408 setup(width, height, attachInfo, surfaceInsets); in initializeIfNeeded()
471 void setup(int width, int height, AttachInfo attachInfo, Rect surfaceInsets) { in setup() argument
475 if (surfaceInsets != null && (surfaceInsets.left != 0 || surfaceInsets.right != 0 in setup()
476 || surfaceInsets.top != 0 || surfaceInsets.bottom != 0)) { in setup()
478 mInsetLeft = surfaceInsets.left; in setup()
479 mInsetTop = surfaceInsets.top; in setup()
480 mSurfaceWidth = width + mInsetLeft + surfaceInsets.right; in setup()
481 mSurfaceHeight = height + mInsetTop + surfaceInsets.bottom; in setup()
DWindowManager.java2173 public final Rect surfaceInsets = new Rect(); field in WindowManager.LayoutParams
2668 surfaceInsets.set(0, 0, 0, 0); in setSurfaceInsets()
2670 surfaceInsets.set( in setSurfaceInsets()
2671 Math.max(surfaceInset, surfaceInsets.left), in setSurfaceInsets()
2672 Math.max(surfaceInset, surfaceInsets.top), in setSurfaceInsets()
2673 Math.max(surfaceInset, surfaceInsets.right), in setSurfaceInsets()
2674 Math.max(surfaceInset, surfaceInsets.bottom)); in setSurfaceInsets()
2752 out.writeInt(surfaceInsets.left); in writeToParcel()
2753 out.writeInt(surfaceInsets.top); in writeToParcel()
2754 out.writeInt(surfaceInsets.right); in writeToParcel()
[all …]
DSurfaceView.java518 return root.mWindowAttributes.surfaceInsets; in getParentSurfaceInsets()
600 final Rect surfaceInsets = getParentSurfaceInsets(); in updateSurface() local
601 mScreenRect.offset(surfaceInsets.left, surfaceInsets.top); in updateSurface()
DViewRootImpl.java1162 final Rect insets = attrs.surfaceInsets; in enableHardwareAcceleration()
1217 final int oldInsetLeft = mWindowAttributes.surfaceInsets.left; in setLayoutParams()
1218 final int oldInsetTop = mWindowAttributes.surfaceInsets.top; in setLayoutParams()
1219 final int oldInsetRight = mWindowAttributes.surfaceInsets.right; in setLayoutParams()
1220 final int oldInsetBottom = mWindowAttributes.surfaceInsets.bottom; in setLayoutParams()
1259 mWindowAttributes.surfaceInsets.set( in setLayoutParams()
1262 } else if (mWindowAttributes.surfaceInsets.left != oldInsetLeft in setLayoutParams()
1263 || mWindowAttributes.surfaceInsets.top != oldInsetTop in setLayoutParams()
1264 || mWindowAttributes.surfaceInsets.right != oldInsetRight in setLayoutParams()
1265 || mWindowAttributes.surfaceInsets.bottom != oldInsetBottom) { in setLayoutParams()
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DWindowStateAnimator.java477 && attrs.surfaceInsets.left == 0 in createSurfaceLocked()
478 && attrs.surfaceInsets.top == 0 in createSurfaceLocked()
479 && attrs.surfaceInsets.right == 0 in createSurfaceLocked()
480 && attrs.surfaceInsets.bottom == 0 in createSurfaceLocked()
564 outSize.inset(-attrs.surfaceInsets.left, -attrs.surfaceInsets.top, in calculateSurfaceBounds()
565 -attrs.surfaceInsets.right, -attrs.surfaceInsets.bottom); in calculateSurfaceBounds()
694 tmpMatrix.postTranslate(mWin.mAttrs.surfaceInsets.left, in computeShownFrameLocked()
695 mWin.mAttrs.surfaceInsets.top); in computeShownFrameLocked()
804 clipRect.offset(w.mAttrs.surfaceInsets.left, w.mAttrs.surfaceInsets.top); in calculateCrop()
870 final Rect insets = attrs.surfaceInsets; in setSurfaceBoundariesLocked()
DAppTransition.java1225 @Nullable Rect surfaceInsets, @Nullable Rect stableInsets, boolean freeform, in createAspectScaledThumbnailEnterExitAnimationLocked() argument
1244 containingFrame, surfaceInsets, taskId); in createAspectScaledThumbnailEnterExitAnimationLocked()
1247 containingFrame, surfaceInsets, taskId); in createAspectScaledThumbnailEnterExitAnimationLocked()
1359 @Nullable Rect surfaceInsets, int taskId) { in createAspectScaledThumbnailEnterFreeformAnimationLocked() argument
1361 return createAspectScaledThumbnailFreeformAnimationLocked(mTmpRect, frame, surfaceInsets, in createAspectScaledThumbnailEnterFreeformAnimationLocked()
1366 @Nullable Rect surfaceInsets, int taskId) { in createAspectScaledThumbnailExitFreeformAnimationLocked() argument
1368 return createAspectScaledThumbnailFreeformAnimationLocked(frame, mTmpRect, surfaceInsets, in createAspectScaledThumbnailExitFreeformAnimationLocked()
1373 Rect destFrame, @Nullable Rect surfaceInsets, boolean enter) { in createAspectScaledThumbnailFreeformAnimationLocked() argument
1381 final int surfaceInsetsH = surfaceInsets == null in createAspectScaledThumbnailFreeformAnimationLocked()
1382 ? 0 : surfaceInsets.left + surfaceInsets.right; in createAspectScaledThumbnailFreeformAnimationLocked()
[all …]
DAppWindowToken.java2643 Rect surfaceInsets = null; in loadAnimation() local
2661 surfaceInsets = win.getAttrs().surfaceInsets; in loadAnimation()
2676 + " frame=" + frame + " insets=" + insets + " surfaceInsets=" + surfaceInsets); in loadAnimation()
2680 surfaceInsets, stableInsets, isVoiceInteraction, freeform, getTask().mTaskId); in loadAnimation()
DInputMonitor.java279 inputWindowHandle.surfaceInset = child.getAttrs().surfaceInsets.left; in populateInputWindowHandle()
DWindowManagerService.java2068 if (win.mAttrs.surfaceInsets.left != 0 in relayoutWindow()
2069 || win.mAttrs.surfaceInsets.top != 0 in relayoutWindow()
2070 || win.mAttrs.surfaceInsets.right != 0 in relayoutWindow()
2071 || win.mAttrs.surfaceInsets.bottom != 0) { in relayoutWindow()
/frameworks/base/core/java/android/widget/
DMagnifier.java534 final Rect surfaceInsets = viewRootImpl.mWindowAttributes.surfaceInsets; in obtainSurfaces() local
536 viewRootImpl.getWidth() + surfaceInsets.left + surfaceInsets.right; in obtainSurfaces()
538 viewRootImpl.getHeight() + surfaceInsets.top + surfaceInsets.bottom; in obtainSurfaces()
541 surfaceWidth, surfaceHeight, surfaceInsets, true); in obtainSurfaces()
599 final Rect surfaceInsets = mView.getViewRootImpl().mWindowAttributes.surfaceInsets; in obtainContentCoordinates() local
600 viewVisibleRegion.offset(surfaceInsets.left, surfaceInsets.top); in obtainContentCoordinates()
/frameworks/base/core/java/android/service/wallpaper/
DWallpaperService.java841 mLayout.surfaceInsets.set(mIWallpaperEngine.mDisplayPadding); in updateSurface()
842 mLayout.surfaceInsets.left += mOutsets.left; in updateSurface()
843 mLayout.surfaceInsets.top += mOutsets.top; in updateSurface()
844 mLayout.surfaceInsets.right += mOutsets.right; in updateSurface()
845 mLayout.surfaceInsets.bottom += mOutsets.bottom; in updateSurface()
847 mLayout.surfaceInsets.set(0, 0, 0, 0); in updateSurface()