Home
last modified time | relevance | path

Searched refs:mTempRect (Results 1 – 25 of 51) sorted by relevance

123

/aosp14/frameworks/base/core/java/com/android/internal/app/
H A DChooserRecyclerViewAccessibilityDelegate.java29 private final Rect mTempRect = new Rect(); field in ChooserRecyclerViewAccessibilityDelegate
63 recyclerView.getBoundsOnScreen(mTempRect, true); in ensureViewOnScreenVisibility()
64 int recyclerOnScreenTop = mTempRect.top; in ensureViewOnScreenVisibility()
65 int recyclerOnScreenBottom = mTempRect.bottom; in ensureViewOnScreenVisibility()
66 child.getBoundsOnScreen(mTempRect); in ensureViewOnScreenVisibility()
71 if (mTempRect.top < recyclerOnScreenTop) { in ensureViewOnScreenVisibility()
73 dy = mTempRect.bottom - recyclerOnScreenBottom; in ensureViewOnScreenVisibility()
74 } else if (mTempRect.bottom > recyclerOnScreenBottom) { in ensureViewOnScreenVisibility()
76 dy = mTempRect.top - recyclerOnScreenTop; in ensureViewOnScreenVisibility()
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/split/
H A DSplitLayout.java750 t.setPosition(dividerLeash, mTempRect.left, mTempRect.top); in applySurfaceChanges()
755 t.setPosition(leash1, mTempRect.left, mTempRect.top) in applySurfaceChanges()
756 .setWindowCrop(leash1, mTempRect.width(), mTempRect.height()); in applySurfaceChanges()
758 t.setPosition(leash2, mTempRect.left, mTempRect.top) in applySurfaceChanges()
759 .setWindowCrop(leash2, mTempRect.width(), mTempRect.height()); in applySurfaceChanges()
802 mTempRect.set(bounds); in getSmallestWidthDp()
804 final int minWidth = Math.min(mTempRect.width(), mTempRect.height()); in getSmallestWidthDp()
1032 mTempRect.left + mParallaxOffset.x, mTempRect.top + mParallaxOffset.y);
1223 t.setPosition(dividerLeash, mTempRect.left, mTempRect.top);
1228 t.setPosition(leash1, mTempRect.left, mTempRect.top);
[all …]
H A DDividerView.java90 private final Rect mTempRect = new Rect(); field in DividerView
221 mSplitLayout.getDividerBounds(mTempRect); in onInsetsChanged()
232 mTempRect.inset(source.calculateVisibleInsets(mTempRect)); in onInsetsChanged()
237 if (!mTempRect.equals(mDividerBounds)) { in onInsetsChanged()
240 DIVIDER_HEIGHT_PROPERTY, mDividerBounds.height(), mTempRect.height()); in onInsetsChanged()
246 DIVIDER_HEIGHT_PROPERTY.set(this, mTempRect.height()); in onInsetsChanged()
249 mDividerBounds.set(mTempRect); in onInsetsChanged()
271 mTempRect.set(mHandle.getLeft(), mHandle.getTop(), mHandle.getRight(), in onLayout()
273 mSplitWindowManager.setTouchRegion(mTempRect); in onLayout()
H A DSplitDecorManager.java82 private final Rect mTempRect = new Rect(); field in SplitDecorManager
349 mTempRect.set(mOldBounds); in screenshotIfNeeded()
350 mTempRect.offsetTo(0, 0); in screenshotIfNeeded()
351 mScreenshot = ScreenshotUtils.takeScreenshot(t, mHostLeash, mTempRect, in screenshotIfNeeded()
/aosp14/frameworks/base/core/tests/coretests/src/android/widget/focus/
H A DScrollingThroughListOfFocusablesTest.java34 Rect mTempRect = new Rect(); field in ScrollingThroughListOfFocusablesTest
147 view.getRectForRow(mTempRect, mNumRowsPerItem - 1); in testNoFadingEdgeAtBottomOfLastItem()
148 mListView.offsetDescendantRectToMyCoords(view, mTempRect); in testNoFadingEdgeAtBottomOfLastItem()
152 mListView.getBottom() - mListView.getVerticalFadingEdgeLength() < mTempRect.bottom); in testNoFadingEdgeAtBottomOfLastItem()
196 view.getDrawingRect(mTempRect); in testNavigatingUpThroughInternalSelection()
197 mListView.offsetDescendantRectToMyCoords(view, mTempRect); in testNavigatingUpThroughInternalSelection()
223 internalFocused.getRectForRow(mTempRect, row); in assertInternallySelectedRowOnScreen()
224 mListView.offsetDescendantRectToMyCoords(internalFocused, mTempRect); in assertInternallySelectedRowOnScreen()
227 mTempRect.top >= 0); in assertInternallySelectedRowOnScreen()
229 mTempRect.bottom < mActivity.getScreenHeight()); in assertInternallySelectedRowOnScreen()
/aosp14/frameworks/base/core/java/com/android/internal/widget/
H A DLinearLayoutWithDefaultTouchRecepient.java38 private final Rect mTempRect = new Rect(); field in LinearLayoutWithDefaultTouchRecepient
64 mTempRect.set(0, 0, 0, 0); in dispatchTouchEvent()
65 offsetRectIntoDescendantCoords(mDefaultTouchRecepient, mTempRect); in dispatchTouchEvent()
66 ev.setLocation(ev.getX() + mTempRect.left, ev.getY() + mTempRect.top); in dispatchTouchEvent()
/aosp14/frameworks/base/core/tests/coretests/src/android/widget/scroll/arrowscroll/
H A DButtonsWithTallTextViewInBetweenTest.java52 private Rect mTempRect = new Rect(); field in ButtonsWithTallTextViewInBetweenTest
55 descendant.getDrawingRect(mTempRect); in getTopWithinScrollView()
56 mScrollView.offsetDescendantRectToMyCoords(descendant, mTempRect); in getTopWithinScrollView()
57 return mTempRect.top; in getTopWithinScrollView()
61 descendant.getDrawingRect(mTempRect); in getBottomWithinScrollView()
62 mScrollView.offsetDescendantRectToMyCoords(descendant, mTempRect); in getBottomWithinScrollView()
63 return mTempRect.bottom; in getBottomWithinScrollView()
H A DShortButtonsTest.java101 private Rect mTempRect = new Rect(); field in ShortButtonsTest
103 b.getDrawingRect(mTempRect); in isButtonOnScreen()
104 mScrollView.offsetDescendantRectToMyCoords(b, mTempRect); in isButtonOnScreen()
105 return mTempRect.bottom >= mScrollView.getScrollY() in isButtonOnScreen()
106 && mTempRect.top <= (mScrollView.getScrollY() + mScrollView.getHeight()); in isButtonOnScreen()
/aosp14/frameworks/base/core/tests/coretests/src/android/util/
H A DInternalSelectionView.java53 private Rect mTempRect = new Rect(); field in InternalSelectionView
154 mTempRect.set(rectLeft, rectTop, rectRight, rectTop + rowHeight); in onDraw()
155 canvas.drawRect(mTempRect, mPainter); in onDraw()
167 mTempRect.set(rectLeft + 2, rectTop + 2, in onDraw()
169 canvas.drawRect(mTempRect, mPainter); in onDraw()
204 getRectForRow(mTempRect, mSelectedRow); in ensureRectVisible()
205 requestRectangleOnScreen(mTempRect); in ensureRectVisible()
/aosp14/frameworks/base/core/java/android/widget/
H A DHorizontalScrollView.java90 private final Rect mTempRect = new Rect(); field in HorizontalScrollView
486 mTempRect.setEmpty(); in executeKeyEvent()
1172 if (mTempRect.left < 0) { in pageScroll()
1173 mTempRect.left = 0; in pageScroll()
1176 mTempRect.right = mTempRect.left + width; in pageScroll()
1178 return scrollAndFocus(direction, mTempRect.left, mTempRect.right); in pageScroll()
1197 mTempRect.left = 0; in fullScroll()
1198 mTempRect.right = width; in fullScroll()
1205 mTempRect.left = mTempRect.right - width; in fullScroll()
1209 return scrollAndFocus(direction, mTempRect.left, mTempRect.right); in fullScroll()
[all …]
H A DScrollView.java99 private final Rect mTempRect = new Rect(); field in ScrollView
517 mTempRect.setEmpty(); in executeKeyEvent()
1207 if (mTempRect.top < 0) { in pageScroll()
1208 mTempRect.top = 0; in pageScroll()
1211 mTempRect.bottom = mTempRect.top + height; in pageScroll()
1213 return scrollAndFocus(direction, mTempRect.top, mTempRect.bottom); in pageScroll()
1232 mTempRect.top = 0; in fullScroll()
1233 mTempRect.bottom = height; in fullScroll()
1240 mTempRect.top = mTempRect.bottom - height; in fullScroll()
1244 return scrollAndFocus(direction, mTempRect.top, mTempRect.bottom); in fullScroll()
[all …]
H A DAccessibilityIterators.java121 private final Rect mTempRect = new Rect(); field in AccessibilityIterators.PageTextSegmentIterator
144 if (!mView.getGlobalVisibleRect(mTempRect)) { in following()
152 final int pageHeight = mTempRect.height() - mView.getTotalPaddingTop() in following()
173 if (!mView.getGlobalVisibleRect(mTempRect)) { in preceding()
181 final int pageHeight = mTempRect.height() - mView.getTotalPaddingTop() in preceding()
H A DListPopupWindow.java113 private final Rect mTempRect = new Rect(); field in ListPopupWindow
537 popupBackground.getPadding(mTempRect); in setContentWidth()
538 mDropDownWidth = mTempRect.left + mTempRect.right + width; in setContentWidth()
1255 background.getPadding(mTempRect); in buildDropDown()
1256 padding = mTempRect.top + mTempRect.bottom; in buildDropDown()
1261 mDropDownVerticalOffset = -mTempRect.top; in buildDropDown()
1264 mTempRect.setEmpty(); in buildDropDown()
1282 - (mTempRect.left + mTempRect.right), in buildDropDown()
1288 - (mTempRect.left + mTempRect.right), in buildDropDown()
H A DSpinner.java93 private final Rect mTempRect = new Rect(); field in Spinner
897 background.getPadding(mTempRect); in measureContentWidth()
898 width += mTempRect.left + mTempRect.right; in measureContentWidth()
1246 background.getPadding(mTempRect); in computeContentWidth()
1247 hOffset = isLayoutRtl() ? mTempRect.right : -mTempRect.left; in computeContentWidth()
1249 mTempRect.left = mTempRect.right = 0; in computeContentWidth()
1260 .getDisplayMetrics().widthPixels - mTempRect.left - mTempRect.right; in computeContentWidth()
H A DCalendarViewLegacyDelegate.java1168 private final Rect mTempRect = new Rect(); field in CalendarViewLegacyDelegate.WeekView
1420 mTempRect.top = mWeekSeparatorLineWidth; in drawBackground()
1421 mTempRect.bottom = mHeight; in drawBackground()
1426 mTempRect.left = 0; in drawBackground()
1427 mTempRect.right = mSelectedLeft - 2; in drawBackground()
1430 mTempRect.right = mSelectedLeft - 2; in drawBackground()
1432 canvas.drawRect(mTempRect, mDrawPaint); in drawBackground()
1435 mTempRect.left = mSelectedRight + 3; in drawBackground()
1438 mTempRect.left = mSelectedRight + 3; in drawBackground()
1439 mTempRect.right = mWidth; in drawBackground()
[all …]
H A DSwitch.java189 private final Rect mTempRect = new Rect(); field in Switch
994 final Rect padding = mTempRect; in onMeasure()
1084 mThumbDrawable.getPadding(mTempRect); in hitThumb()
1088 mTempRect.left + mTempRect.right + mTouchSlop; in hitThumb()
1282 final Rect trackPadding = mTempRect; in onLayout()
1333 final Rect padding = mTempRect; in draw()
1399 final Rect padding = mTempRect; in onDraw()
1502 final Rect padding = mTempRect; in getThumbScrollRange()
H A DListView.java206 private final Rect mTempRect = new Rect(); field in ListView
2621 Rect focusedRect = mTempRect; in handleHorizontalFocusWithinListItem()
3206 newFocus.getDrawingRect(mTempRect);
3209 if (mTempRect.top < mListPadding.top) {
3217 if (mTempRect.bottom > listBottom) {
3236 descendant.getDrawingRect(mTempRect);
3239 if (mTempRect.bottom < mListPadding.top) {
3241 } else if (mTempRect.top > listBottom) {
3242 distance = mTempRect.top - listBottom;
3457 final Rect bounds = mTempRect;
[all …]
/aosp14/frameworks/base/packages/SystemUI/src/com/android/keyguard/
H A DKeyguardSecurityViewFlipper.java44 private Rect mTempRect = new Rect(); field in KeyguardSecurityViewFlipper
57 mTempRect.set(0, 0, 0, 0); in onTouchEvent()
61 offsetRectIntoDescendantCoords(child, mTempRect); in onTouchEvent()
62 ev.offsetLocation(mTempRect.left, mTempRect.top); in onTouchEvent()
64 ev.offsetLocation(-mTempRect.left, -mTempRect.top); in onTouchEvent()
H A DKeyguardPatternView.java63 private final Rect mTempRect = new Rect(); field in KeyguardPatternView
151 mTempRect.set(0, 0, 0, 0); in onTouchEvent()
152 offsetRectIntoDescendantCoords(mLockPatternView, mTempRect); in onTouchEvent()
153 ev.offsetLocation(mTempRect.left, mTempRect.top); in onTouchEvent()
155 ev.offsetLocation(-mTempRect.left, -mTempRect.top); in onTouchEvent()
/aosp14/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
H A DLetterboxTest.java121 final Rect mTempRect = new Rect(); field in LetterboxTest.LetterboxLayoutVerifier
157 mTempRect.set(mTop.left, mTop.top, mTop.right, mTop.bottom + 1); in verifyPositions()
158 assertEquals(mLetterbox.notIntersectsOrFullyContains(mTempRect), in verifyPositions()
160 mTempRect.set(mLeft.left, mLeft.top, mLeft.right + 1, mLeft.bottom); in verifyPositions()
161 assertEquals(mLetterbox.notIntersectsOrFullyContains(mTempRect), in verifyPositions()
163 mTempRect.set(mRight.left - 1, mRight.top, mRight.right, mRight.bottom); in verifyPositions()
164 assertEquals(mLetterbox.notIntersectsOrFullyContains(mTempRect), in verifyPositions()
166 mTempRect.set(mBottom.left, mBottom.top - 1, mBottom.right, mBottom.bottom); in verifyPositions()
167 assertEquals(mLetterbox.notIntersectsOrFullyContains(mTempRect), in verifyPositions()
/aosp14/frameworks/base/core/java/android/inputmethodservice/
H A DNavigationBarController.java156 private final Rect mTempRect = new Rect(); field in NavigationBarController.Impl
282 mTempRect.set(mTempPos[0], mTempPos[1], in updateTouchableInsets()
285 touchableRegion = new Region(mTempRect); in updateTouchableInsets()
291 mTempRect.set(mTempPos[0], originalInsets.contentTopInsets, in updateTouchableInsets()
294 touchableRegion = new Region(mTempRect); in updateTouchableInsets()
300 mTempRect.set(mTempPos[0], originalInsets.visibleTopInsets, in updateTouchableInsets()
303 touchableRegion = new Region(mTempRect); in updateTouchableInsets()
312 mTempRect.set(decor.getLeft(), decor.getBottom() - systemInsets.bottom, in updateTouchableInsets()
315 touchableRegion = new Region(mTempRect); in updateTouchableInsets()
317 touchableRegion.union(mTempRect); in updateTouchableInsets()
/aosp14/frameworks/base/core/java/com/android/internal/view/
H A DScrollCaptureViewSupport.java328 private final Rect mTempRect = new Rect(); field in ScrollCaptureViewSupport.ViewRenderer
381 transformToRoot(source, localSourceRect, mTempRect); in updateRootNode()
383 mCaptureRenderNode.setPosition(0, 0, mTempRect.width(), mTempRect.height()); in updateRootNode()
386 canvas.translate(-mTempRect.left, -mTempRect.top); in updateRootNode()
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/bar/
H A DBubbleBarLayerView.java71 private final Rect mTempRect = new Rect(); field in BubbleBarLayerView
277 mTempRect.setEmpty(); in getTouchableRegion()
279 getBoundsOnScreen(mTempRect); in getTouchableRegion()
280 outRegion.op(mTempRect, Region.Op.UNION); in getTouchableRegion()
/aosp14/frameworks/base/core/java/android/view/
H A DWindowLayout.java63 private final Rect mTempRect = new Rect(); field in WindowLayout
159 mTempRect.set(outParentFrame); in computeFrames()
161 frames.isParentFrameClippedByDisplayCutout = !mTempRect.equals(outParentFrame); in computeFrames()
270 mTempRect); in computeFrames()
/aosp14/frameworks/base/core/java/com/android/internal/transition/
H A DEpicenterTranslateClipReveal.java277 private final Rect mTempRect = new Rect(); field in EpicenterTranslateClipReveal.StateProperty
290 final Rect tempRect = mTempRect; in get()
309 final Rect tempRect = mTempRect; in set()

123