/frameworks/base/services/core/java/com/android/server/wm/ |
D | TaskTapPointerEventListener.java | 43 private final Rect mTmpRect = new Rect(); field in TaskTapPointerEventListener 95 task.getDimBounds(mTmpRect); in onPointerEvent() 96 if (!mTmpRect.isEmpty() && !mTmpRect.contains(x, y)) { in onPointerEvent() 97 if (x < mTmpRect.left) { in onPointerEvent() 99 (y < mTmpRect.top) ? TYPE_TOP_LEFT_DIAGONAL_DOUBLE_ARROW : in onPointerEvent() 100 (y > mTmpRect.bottom) ? TYPE_TOP_RIGHT_DIAGONAL_DOUBLE_ARROW : in onPointerEvent() 102 } else if (x > mTmpRect.right) { in onPointerEvent() 104 (y < mTmpRect.top) ? TYPE_TOP_RIGHT_DIAGONAL_DOUBLE_ARROW : in onPointerEvent() 105 (y > mTmpRect.bottom) ? TYPE_TOP_LEFT_DIAGONAL_DOUBLE_ARROW : in onPointerEvent() 107 } else if (y < mTmpRect.top || y > mTmpRect.bottom) { in onPointerEvent()
|
D | TaskPositioner.java | 77 private Rect mTmpRect = new Rect(); field in TaskPositioner 140 mTask.getDimBounds(mTmpRect); in onInputEvent() 142 if (!mTmpRect.equals(mWindowDragBounds)) { in onInputEvent() 173 mTask.getDimBounds(mTmpRect); in onInputEvent() 175 if (wasResizing && !mTmpRect.equals(mWindowDragBounds)) { in onInputEvent() 240 final Rect displayBounds = mTmpRect; in register() 309 final Rect startBounds = mTmpRect; in startDrag() 380 mDisplayContent.getStableRect(mTmpRect); in notifyMoveLocked() 382 mTmpRect.intersect(mTask.getRootTask().getParent().getBounds()); in notifyMoveLocked() 386 if (!mTmpRect.contains(nX, nY)) { in notifyMoveLocked() [all …]
|
D | WindowChangeAnimationSpec.java | 51 private final Rect mTmpRect = new Rect(); field in WindowChangeAnimationSpec 158 mTmpRect.left = (int) (clipRect.left * tmp.mVecs[0] + 0.5f); in apply() 159 mTmpRect.right = (int) (clipRect.right * tmp.mVecs[0] + 0.5f); in apply() 160 mTmpRect.top = (int) (clipRect.top * tmp.mVecs[3] + 0.5f); in apply() 161 mTmpRect.bottom = (int) (clipRect.bottom * tmp.mVecs[3] + 0.5f); in apply() 162 t.setWindowCrop(leash, mTmpRect); in apply()
|
D | InsetsSourceProvider.java | 71 private final Rect mTmpRect = new Rect(); field in InsetsSourceProvider 215 mTmpRect.set(mWindowContainer.getBounds()); in updateSourceFrame() 218 mWindowContainer, mTmpRect); in updateSourceFrame() local 221 mTmpRect.setEmpty(); in updateSourceFrame() 223 mSource.setFrame(mTmpRect); in updateSourceFrame() 263 mTmpRect.set(frame); in updateSourceFrame() 264 mTmpRect.inset(win.mGivenVisibleInsets); in updateSourceFrame() 265 mSource.setVisibleFrame(mTmpRect); in updateSourceFrame() 288 mTmpRect.set(frame); in createSimulatedSource() 290 mFrameProvider.accept(displayFrames, mWindowContainer, mTmpRect); in createSimulatedSource() [all …]
|
D | WindowAnimationSpec.java | 53 private final Rect mTmpRect = new Rect(); field in WindowAnimationSpec 137 mTmpRect.set(mRootTaskBounds); in apply() 139 mTmpRect.intersect(tmp.transformation.getClipRect()); in apply() 141 accountForExtension(tmp.transformation, mTmpRect); in apply() 142 t.setWindowCrop(leash, mTmpRect); in apply()
|
D | InputConsumerImpl.java | 49 private final Rect mTmpRect = new Rect(); field in InputConsumerImpl 108 mTmpRect.set(0, 0, dw, dh); in layout() 109 layout(t, mTmpRect); in layout()
|
D | TaskSnapshotController.java | 121 private final Rect mTmpRect = new Rect(); field in TaskSnapshotController 449 task.getBounds(mTmpRect); 450 mTmpRect.offsetTo(0, 0); 478 task.getSurfaceControl(), mTmpRect, scaleFraction, 481 outTaskSize.x = mTmpRect.width(); 482 outTaskSize.y = mTmpRect.height();
|
D | RecentsAnimationController.java | 136 private final Rect mTmpRect = new Rect(); field in RecentsAnimationController 552 mService.getStableInsets(mDisplayId, mTmpRect); in startAnimation() 553 contentInsets = mTmpRect; in startAnimation() 1057 targetAppMainWindow.getBounds(mTmpRect); 1058 inputWindowHandle.touchableRegion.set(mTmpRect); 1298 mTmpRect.set(mLocalBounds); 1299 mTmpRect.offsetTo(0, 0); 1300 t.setWindowCrop(animationLeash, mTmpRect);
|
D | WindowState.java | 679 private final Rect mTmpRect = new Rect(); field in WindowState 1346 mTmpRect.set(windowFrames.mParentFrame); in setFrames() 1378 || !mTmpRect.equals(windowFrames.mParentFrame)) { in setFrames() 1812 mTmpRect.setEmpty(); in getVisibleBounds() 1816 rootTask.getDimBounds(mTmpRect); in getVisibleBounds() 1826 bounds.intersect(mTmpRect); in getVisibleBounds() 2888 getDisplayContent().getBounds(mTmpRect); in getSurfaceTouchableRegion() 2889 final int dw = mTmpRect.width(); in getSurfaceTouchableRegion() 2890 final int dh = mTmpRect.height(); in getSurfaceTouchableRegion() 2949 mActivityRecord.getLetterboxInnerBounds(mTmpRect); in updateRegionForModalActivityWindow() [all …]
|
/frameworks/base/core/java/com/android/internal/policy/ |
D | TransitionAnimation.java | 117 private final Rect mTmpRect = new Rect(); field in TransitionAnimation 446 setupDefaultNextAppTransitionStartRect(startRect, mTmpRect); in createClipRevealAnimationLockedCompat() 450 t = (float) mTmpRect.top / displayFrame.height(); in createClipRevealAnimationLockedCompat() 455 int centerX = mTmpRect.centerX(); in createClipRevealAnimationLockedCompat() 456 int centerY = mTmpRect.centerY(); in createClipRevealAnimationLockedCompat() 457 int halfWidth = mTmpRect.width() / 2; in createClipRevealAnimationLockedCompat() 458 int halfHeight = mTmpRect.height() / 2; in createClipRevealAnimationLockedCompat() 479 clipStartX = appWidth - mTmpRect.width(); in createClipRevealAnimationLockedCompat() 487 clipStartX, clipStartX + mTmpRect.width(), 0, appWidth); in createClipRevealAnimationLockedCompat() 497 clipStartY, clipStartY + mTmpRect.height(), in createClipRevealAnimationLockedCompat() [all …]
|
D | BackdropFrameRenderer.java | 75 private final Rect mTmpRect = new Rect(); field in BackdropFrameRenderer 371 DecorView.getNavigationBarRect(width, height, mSystemBarInsets, mTmpRect, 1f); in drawColorViews() 372 mNavigationBarColor.setBounds(mTmpRect); in drawColorViews()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | OrientationHelper.java | 45 final Rect mTmpRect = new Rect(); field in OrientationHelper 304 mLayoutManager.getTransformedBoundingBox(view, true, mTmpRect); in createHorizontalHelper() 305 return mTmpRect.right; in createHorizontalHelper() 310 mLayoutManager.getTransformedBoundingBox(view, true, mTmpRect); in createHorizontalHelper() 311 return mTmpRect.left; in createHorizontalHelper() 402 mLayoutManager.getTransformedBoundingBox(view, true, mTmpRect); 403 return mTmpRect.bottom; 408 mLayoutManager.getTransformedBoundingBox(view, true, mTmpRect); 409 return mTmpRect.top;
|
D | SlidingTab.java | 93 private final Rect mTmpRect; field in SlidingTab 460 mTmpRect = new Rect(); in SlidingTab() 528 leftHandle.getHitRect(mTmpRect); in onInterceptTouchEvent() 529 boolean leftHit = mTmpRect.contains((int) x, (int) y); in onInterceptTouchEvent() 532 rightHandle.getHitRect(mTmpRect); in onInterceptTouchEvent() 533 boolean rightHit = mTmpRect.contains((int)x, (int) y); in onInterceptTouchEvent()
|
/frameworks/base/core/java/android/view/ |
D | CutoutSpecification.java | 216 private final Rect mTmpRect = new Rect(); field in CutoutSpecification.Parser 373 mRightBound = onSetEdgeCutout(false, !mIsShortEdgeOnTop, mTmpRect); 375 mLeftBound = onSetEdgeCutout(true, !mIsShortEdgeOnTop, mTmpRect); 377 mBottomBound = onSetEdgeCutout(false, mIsShortEdgeOnTop, mTmpRect); 380 mTopBound = onSetEdgeCutout(true, mIsShortEdgeOnTop, mTmpRect); 402 computeBoundsRectAndAddToRegion(newPath, region, mTmpRect); 410 Log.d(TAG, "spec = \"" + spec + "\" rect = " + mTmpRect + " newPath = " + newPath); 413 if (mTmpRect.isEmpty()) { 418 mIsTouchShortEdgeStart = mTmpRect.top <= 0; 419 mIsTouchShortEdgeEnd = mTmpRect.bottom >= mPhysicalDisplayHeight; [all …]
|
D | SurfaceView.java | 144 final Rect mTmpRect = new Rect(); field in SurfaceView 528 mTmpRect.set(mClipBounds); in setClipBounds() 530 mTmpRect.set(0, 0, mSurfaceWidth, mSurfaceHeight); in setClipBounds() 533 transaction.setWindowCrop(mSurfaceControl, mTmpRect); in setClipBounds() 540 canvas.getClipBounds(mTmpRect); in clearSurfaceViewPort() 542 mTmpRect.intersect(mClipBounds); in clearSurfaceViewPort() 545 mTmpRect.left, in clearSurfaceViewPort() 546 mTmpRect.top, in clearSurfaceViewPort() 547 mTmpRect.right, in clearSurfaceViewPort() 548 mTmpRect.bottom, in clearSurfaceViewPort() [all …]
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/onehanded/ |
D | OneHandedAnimationController.java | 263 private final Rect mTmpRect = new Rect(displayBounds); in ofYOffset() 275 mTmpRect.set( in ofYOffset() 276 mTmpRect.left, in ofYOffset() 277 mTmpRect.top + Math.round(currentValue), in ofYOffset() 278 mTmpRect.right, in ofYOffset() 279 mTmpRect.bottom + Math.round(currentValue)); in ofYOffset() 282 .crop(tx, leash, mTmpRect) in ofYOffset() 291 .crop(tx, leash, mTmpRect) in ofYOffset()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/ |
D | WindowMagnificationController.java | 116 private final Rect mTmpRect = new Rect(); field in WindowMagnificationController 260 mTmpRect.set(0, 0, mMagnificationFrame.width(), in WindowMagnificationController() 262 mTransaction.setGeometry(mMirrorSurface, mSourceBounds, mTmpRect, in WindowMagnificationController() 754 final Rect oldSourceBounds = mTmpRect; in calculateSourceBounds() 829 mTmpRect.set(mMagnificationFrame); in updateMagnificationFramePosition() 830 mTmpRect.offset(xOffset, yOffset); in updateMagnificationFramePosition() 832 if (mTmpRect.left < mMagnificationFrameBoundary.left) { in updateMagnificationFramePosition() 833 mTmpRect.offsetTo(mMagnificationFrameBoundary.left, mTmpRect.top); in updateMagnificationFramePosition() 834 } else if (mTmpRect.right > mMagnificationFrameBoundary.right) { in updateMagnificationFramePosition() 836 mTmpRect.offsetTo(leftOffset, mTmpRect.top); in updateMagnificationFramePosition() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/wrapper/ |
D | NotificationViewWrapper.java | 57 private final Rect mTmpRect = new Rect(); field in NotificationViewWrapper 364 searchView.getHitRect(mTmpRect); in isOnView() 365 x -= mTmpRect.left; in isOnView() 366 y -= mTmpRect.top; in isOnView() 369 view.getHitRect(mTmpRect); in isOnView() 370 return mTmpRect.contains((int) x,(int) y); in isOnView()
|
/frameworks/base/tests/MirrorSurfaceTest/src/com/google/android/test/mirrorsurface/ |
D | MirrorSurfaceActivity.java | 69 private Rect mTmpRect = new Rect(); field in MirrorSurfaceActivity 237 mTmpRect.setEmpty(); in getDisplayFrame() 240 return mTmpRect; in getDisplayFrame() 244 mTmpRect.set(Integer.parseInt(frameVals[0]), Integer.parseInt(frameVals[1]), in getDisplayFrame() 247 mTmpRect.setEmpty(); in getDisplayFrame() 250 return mTmpRect; in getDisplayFrame()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/ |
D | TaskView.java | 96 private final Rect mTmpRect = new Rect(); field in TaskView 244 getBoundsOnScreen(mTmpRect); in updateWindowBounds() 245 wct.setBounds(mTaskToken, mTmpRect); in updateWindowBounds() 493 mTmpRect.set(mTmpLocation[0], mTmpLocation[1], in onComputeInternalInsets() 495 inoutInfo.touchableRegion.op(mTmpRect, Region.Op.DIFFERENCE); in onComputeInternalInsets()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
D | DataUsageGraph.java | 37 private final RectF mTmpRect = new RectF(); field in DataUsageGraph 69 final RectF r = mTmpRect; in onDraw()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | LockscreenWallpaper.java | 269 private final Rect mTmpRect = new Rect(); field in LockscreenWallpaper.WallpaperDrawable 326 mTmpRect.set( in onBoundsChange() 332 super.onBoundsChange(mTmpRect); in onBoundsChange()
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
D | ClipDrawable.java | 62 private final Rect mTmpRect = new Rect(); field in ClipDrawable 184 final Rect r = mTmpRect; in draw()
|
D | ScaleDrawable.java | 69 private final Rect mTmpRect = new Rect(); field in ScaleDrawable 226 final Rect r = mTmpRect; in onBoundsChange()
|
/frameworks/base/core/java/android/window/ |
D | SplashScreenView.java | 93 private final Rect mTmpRect = new Rect(); field in SplashScreenView 565 mBrandingImageView.getDrawingRect(mTmpRect); in onLayout() 566 final int brandingHeight = mTmpRect.height(); in onLayout() 577 mIconView.getDrawingRect(mTmpRect); in onLayout() 578 final int iconHeight = mTmpRect.height(); in onLayout()
|