/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/taskview/ |
D | TaskView.java | 73 private final Rect mTmpRect = new Rect(); field in TaskView 152 getBoundsOnScreen(mTmpRect); in getCurrentBoundsOnScreen() 153 return mTmpRect; in getCurrentBoundsOnScreen() 216 getBoundsOnScreen(mTmpRect); in onLocationChanged() 217 mTaskViewTaskController.setWindowBounds(mTmpRect); in onLocationChanged() 248 getBoundsOnScreen(mTmpRect); in surfaceChanged() 249 mTaskViewTaskController.setWindowBounds(mTmpRect); in surfaceChanged() 272 mTmpRect.set(mTmpLocation[0], mTmpLocation[1], in onComputeInternalInsets() 275 mTmpRect.inset(mCaptionInsets); in onComputeInternalInsets() 283 inoutInfo.touchableRegion.op(mTmpRect, Region.Op.DIFFERENCE); in onComputeInternalInsets()
|
/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/services/core/java/com/android/server/wm/ |
D | TaskPositioner.java | 80 private Rect mTmpRect = new Rect(); field in TaskPositioner 143 mTask.getDimBounds(mTmpRect); in onInputEvent() 145 if (!mTmpRect.equals(mWindowDragBounds)) { in onInputEvent() 176 mTask.getDimBounds(mTmpRect); in onInputEvent() 178 if (wasResizing && !mTmpRect.equals(mWindowDragBounds)) { in onInputEvent() 247 final Rect displayBounds = mTmpRect; in register() 318 final Rect startBounds = mTmpRect; 389 mDisplayContent.getStableRect(mTmpRect); 391 mTmpRect.intersect(mTask.getRootTask().getParent().getBounds()); 395 if (!mTmpRect.contains(nX, nY)) { [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 | 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 | InsetsSourceProvider.java | 75 private final Rect mTmpRect = new Rect(); field in InsetsSourceProvider 230 mTmpRect.set(mWindowContainer.getBounds()); in updateSourceFrame() 233 mWindowContainer, mTmpRect); in updateSourceFrame() local 236 mTmpRect.setEmpty(); in updateSourceFrame() 238 mSource.setFrame(mTmpRect); in updateSourceFrame() 283 mTmpRect.set(frame); in updateSourceFrame() 284 mTmpRect.inset(win.mGivenVisibleInsets); in updateSourceFrame() 285 mSource.setVisibleFrame(mTmpRect); in updateSourceFrame() 329 mTmpRect.set(frame); in createSimulatedSource() 331 mFrameProvider.apply(displayFrames, mWindowContainer, mTmpRect); in createSimulatedSource() [all …]
|
D | InputConsumerImpl.java | 49 private final Rect mTmpRect = new Rect(); field in InputConsumerImpl 110 mTmpRect.set(0, 0, dw, dh); in layout() 111 layout(t, mTmpRect); in layout()
|
D | RecentsAnimationController.java | 137 private final Rect mTmpRect = new Rect(); field in RecentsAnimationController 562 mService.getStableInsets(mDisplayId, mTmpRect); in startAnimation() 563 contentInsets = mTmpRect; in startAnimation() 1073 targetAppMainWindow.getBounds(mTmpRect); 1074 inputWindowHandle.touchableRegion.set(mTmpRect); 1314 mTmpRect.set(mLocalBounds); 1315 mTmpRect.offsetTo(0, 0); 1316 t.setWindowCrop(animationLeash, mTmpRect);
|
D | WindowState.java | 666 private final Rect mTmpRect = new Rect(); field in WindowState 1300 mTmpRect.set(windowFrames.mParentFrame); in setFrames() 1332 || !mTmpRect.equals(windowFrames.mParentFrame)) { in setFrames() 1721 mTmpRect.setEmpty(); in getVisibleBounds() 1725 rootTask.getDimBounds(mTmpRect); in getVisibleBounds() 1735 bounds.intersect(mTmpRect); in getVisibleBounds() 2696 getDisplayContent().getBounds(mTmpRect); in getSurfaceTouchableRegion() 2697 final int dw = mTmpRect.width(); in getSurfaceTouchableRegion() 2698 final int dh = mTmpRect.height(); in getSurfaceTouchableRegion() 2757 mActivityRecord.getLetterboxInnerBounds(mTmpRect); in updateRegionForModalActivityWindow() [all …]
|
D | ConfigurationContainer.java | 109 private final Rect mTmpRect = new Rect(); field in ConfigurationContainer 495 mTmpRect.set(left, top, right, bottom); in setBounds() 496 return setBounds(mTmpRect); in setBounds()
|
/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); 401 computeBoundsRectAndAddToRegion(newPath, region, mTmpRect); 409 Log.d(TAG, "spec = \"" + spec + "\" rect = " + mTmpRect + " newPath = " + newPath); 412 if (mTmpRect.isEmpty()) { 417 mIsTouchShortEdgeStart = mTmpRect.top <= 0; 418 mIsTouchShortEdgeEnd = mTmpRect.bottom >= mPhysicalDisplayHeight; [all …]
|
D | SurfaceView.java | 211 final Rect mTmpRect = new Rect(); field in SurfaceView 638 mTmpRect.set(mClipBounds); in setClipBounds() 640 mTmpRect.set(0, 0, mSurfaceWidth, mSurfaceHeight); in setClipBounds() 643 transaction.setWindowCrop(mSurfaceControl, mTmpRect); in setClipBounds() 658 canvas.getClipBounds(mTmpRect); in clearSurfaceViewPort() 660 mTmpRect.intersect(mClipBounds); in clearSurfaceViewPort() 663 mTmpRect.left, in clearSurfaceViewPort() 664 mTmpRect.top, in clearSurfaceViewPort() 665 mTmpRect.right, in clearSurfaceViewPort() 666 mTmpRect.bottom, in clearSurfaceViewPort() [all …]
|
/frameworks/base/core/java/com/android/internal/policy/ |
D | TransitionAnimation.java | 125 private final Rect mTmpRect = new Rect(); field in TransitionAnimation 480 setupDefaultNextAppTransitionStartRect(startRect, mTmpRect); in createClipRevealAnimationLockedCompat() 484 t = (float) mTmpRect.top / displayFrame.height(); in createClipRevealAnimationLockedCompat() 489 int centerX = mTmpRect.centerX(); in createClipRevealAnimationLockedCompat() 490 int centerY = mTmpRect.centerY(); in createClipRevealAnimationLockedCompat() 491 int halfWidth = mTmpRect.width() / 2; in createClipRevealAnimationLockedCompat() 492 int halfHeight = mTmpRect.height() / 2; in createClipRevealAnimationLockedCompat() 513 clipStartX = appWidth - mTmpRect.width(); in createClipRevealAnimationLockedCompat() 521 clipStartX, clipStartX + mTmpRect.width(), 0, appWidth); in createClipRevealAnimationLockedCompat() 531 clipStartY, clipStartY + mTmpRect.height(), in createClipRevealAnimationLockedCompat() [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/statusbar/notification/row/wrapper/ |
D | NotificationViewWrapper.java | 57 private final Rect mTmpRect = new Rect(); field in NotificationViewWrapper 381 searchView.getHitRect(mTmpRect); in isOnView() 382 x -= mTmpRect.left; in isOnView() 383 y -= mTmpRect.top; in isOnView() 386 view.getHitRect(mTmpRect); in isOnView() 387 return mTmpRect.contains((int) x,(int) y); in isOnView()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/ |
D | WindowMagnificationController.java | 139 private final Rect mTmpRect = new Rect(); field in WindowMagnificationController 367 mTmpRect.set(0, 0, mMagnificationFrame.width(), in WindowMagnificationController() 369 mTransaction.setGeometry(mMirrorSurface, mSourceBounds, mTmpRect, in WindowMagnificationController() 1054 mTmpRect.set(0, 0, mMagnificationFrame.width(), mMagnificationFrame.height()); in updateMirrorSurfaceGeometry() 1055 mTransaction.setGeometry(mMirrorSurface, mSourceBounds, mTmpRect, Surface.ROTATION_0); in updateMirrorSurfaceGeometry() 1199 final Rect oldSourceBounds = mTmpRect; in calculateSourceBounds() 1275 mTmpRect.set(mMagnificationFrame); in updateMagnificationFramePosition() 1276 mTmpRect.offset(xOffset, yOffset); in updateMagnificationFramePosition() 1278 if (mTmpRect.left < mMagnificationFrameBoundary.left) { in updateMagnificationFramePosition() 1279 mTmpRect.offsetTo(mMagnificationFrameBoundary.left, mTmpRect.top); in updateMagnificationFramePosition() [all …]
|
/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/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/core/java/com/android/internal/widget/remotecompose/player/platform/ |
D | AndroidPaintContext.java | 49 Rect mTmpRect = new Rect(); // use in calculation of bounds field in AndroidPaintContext 190 mPaint.getTextBounds(str, start, end, mTmpRect); in getTextBounds() 192 bounds[0] = mTmpRect.left; in getTextBounds() 193 bounds[1] = mTmpRect.top; in getTextBounds() 194 bounds[2] = monospace ? (mPaint.measureText(str, start, end) - mTmpRect.left) in getTextBounds() 195 : mTmpRect.right; in getTextBounds() 196 bounds[3] = mTmpRect.bottom; in getTextBounds()
|
/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/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/ |
D | DragResizeInputListener.java | 282 private final Rect mTmpRect = new Rect(); field in DragResizeInputListener.TaskResizeInputEventReceiver 484 mTmpRect.set(taskBounds); in updateInputSinkRegionForDrag() 490 mTmpRect.offsetTo(0, 0); in updateInputSinkRegionForDrag() 491 dragTouchRegion.op(mTmpRect, Region.Op.DIFFERENCE); in updateInputSinkRegionForDrag()
|
/frameworks/base/core/java/android/window/ |
D | SplashScreenView.java | 97 private final Rect mTmpRect = new Rect(); field in SplashScreenView 585 mBrandingImageView.getDrawingRect(mTmpRect); in onLayout() 586 final int brandingHeight = mTmpRect.height(); in onLayout() 597 mIconView.getDrawingRect(mTmpRect); in onLayout() 598 final int iconHeight = mTmpRect.height(); in onLayout()
|
/frameworks/base/core/java/com/android/internal/widget/helper/ |
D | ItemTouchHelper.java | 413 private Rect mTmpRect; field in ItemTouchHelper 711 if (mTmpRect == null) { in scrollIfNecessary() 712 mTmpRect = new Rect(); in scrollIfNecessary() 716 lm.calculateItemDecorationsForChild(mSelected.itemView, mTmpRect); in scrollIfNecessary() 719 final int leftDiff = curX - mTmpRect.left - mRecyclerView.getPaddingLeft(); in scrollIfNecessary() 724 curX + mSelected.itemView.getWidth() + mTmpRect.right in scrollIfNecessary() 733 final int topDiff = curY - mTmpRect.top - mRecyclerView.getPaddingTop(); in scrollIfNecessary() 737 final int bottomDiff = curY + mSelected.itemView.getHeight() + mTmpRect.bottom in scrollIfNecessary()
|