Home
last modified time | relevance | path

Searched refs:right (Results 1 – 25 of 880) sorted by relevance

12345678910>>...36

/aosp14/frameworks/base/graphics/java/android/graphics/
H A DRectF.java59 this.right = right; in RectF()
76 right = r.right; in RectF()
87 right = r.right; in RectF()
206 this.right = right; in set()
219 this.right = src.right; in set()
232 this.right = src.right; in set()
359 if (this.right > right) { in intersect()
360 this.right = right; in intersect()
402 right = Math.min(a.right, b.right); in setIntersect()
486 this.right = right; in union()
[all …]
H A DRect.java87 this.right = right; in Rect()
104 right = r.right; in Rect()
118 right = r.right; in Rect()
369 this.right = right; in set()
439 right -= insets.right; in inset()
451 right -= insets.right; in inset()
466 this.right -= right; in inset()
544 if (this.right > right) this.right = right; in intersect()
576 right = Math.min(right, other.right); in intersectUnchecked()
597 right = Math.min(a.right, b.right); in setIntersect()
[all …]
H A DInsets.java37 public final int right; field in Insets
43 this.right = right; in Insets()
83 return new Rect(left, top, right, bottom); in toRect()
94 return Insets.of(a.left + b.left, a.top + b.top, a.right + b.right, a.bottom + b.bottom); in add()
105 return Insets.of(a.left - b.left, a.top - b.top, a.right - b.right, a.bottom - b.bottom); in subtract()
117 Math.max(a.right, b.right), Math.max(a.bottom, b.bottom)); in max()
129 Math.min(a.right, b.right), Math.min(a.bottom, b.bottom)); in min()
149 if (right != insets.right) return false; in equals()
159 result = 31 * result + right; in hashCode()
169 ", right=" + right + in toString()
[all …]
H A DOutline.java174 public void setRect(int left, int top, int right, int bottom) { in setRect() argument
175 setRoundRect(left, top, right, bottom, 0.0f); in setRect()
182 setRect(rect.left, rect.top, rect.right, rect.bottom); in setRect()
191 if (left >= right || top >= bottom) { in setRoundRect()
201 mRect.set(left, top, right, bottom); in setRoundRect()
243 public void setOval(int left, int top, int right, int bottom) { in setOval() argument
244 if (left >= right || top >= bottom) { in setOval()
249 if ((bottom - top) == (right - left)) { in setOval()
251 setRoundRect(left, top, right, bottom, (bottom - top) / 2.0f); in setOval()
262 mPath.addOval(left, top, right, bottom, Path.Direction.CW); in setOval()
[all …]
H A DPath.java546 addRect(rect.left, rect.top, rect.right, rect.bottom, dir); in addRect()
559 nAddRect(mNativePath, left, top, right, bottom, dir.nativeInt); in addRect()
569 addOval(oval.left, oval.top, oval.right, oval.bottom, dir); in addOval()
578 nAddOval(mNativePath, left, top, right, bottom, dir.nativeInt); in addOval()
612 nAddArc(mNativePath, left, top, right, bottom, startAngle, sweepAngle); in addArc()
652 addRoundRect(rect.left, rect.top, rect.right, rect.bottom, radii, dir); in addRoundRect()
663 public void addRoundRect(float left, float top, float right, float bottom, in addRoundRect() argument
858 float right, float bottom, int dir); in nAddRect() argument
860 float right, float bottom, int dir); in nAddOval() argument
865 float right, float bottom, float rx, float ry, int dir); in nAddRoundRect() argument
[all …]
H A DRegion.java76 nativeSetRect(mNativeRegion, r.left, r.top, r.right, r.bottom); in Region()
81 public Region(int left, int top, int right, int bottom) { in Region() argument
83 nativeSetRect(mNativeRegion, left, top, right, bottom); in Region()
107 public boolean set(int left, int top, int right, int bottom) { in set() argument
108 return nativeSetRect(mNativeRegion, left, top, right, bottom); in set()
189 return quickContains(r.left, r.top, r.right, r.bottom); in quickContains()
198 public native boolean quickContains(int left, int top, int right, in quickContains() argument
207 return quickReject(r.left, r.top, r.right, r.bottom); in quickReject()
267 return nativeOp(mNativeRegion, r.left, r.top, r.right, r.bottom, in op()
276 return nativeOp(mNativeRegion, left, top, right, bottom, in op()
[all …]
H A DCanvas.java552 return nSaveLayer(mNativeCanvasWrapper, left, top, right, bottom, in saveLayer()
561 return saveLayer(left, top, right, bottom, paint, ALL_SAVE_FLAG); in saveLayer()
978 return nClipRect(mNativeCanvasWrapper, left, top, right, bottom, in clipRect()
993 return nClipRect(mNativeCanvasWrapper, left, top, right, bottom, in clipOutRect()
1010 public boolean clipRect(int left, int top, int right, int bottom) { in clipRect() argument
1165 rect.left, rect.top, rect.right, rect.bottom); in quickReject()
1180 rect.left, rect.top, rect.right, rect.bottom); in quickReject()
1461 float right, float bottom);
1821 super.drawOval(left, top, right, bottom, paint);
1974 super.drawRect(left, top, right, bottom, paint);
[all …]
/aosp14/frameworks/base/libs/hwui/
H A DRect.h44 float right; variable
56 : left(left), top(top), right(right), bottom(bottom) {} in Rect()
77 a.right == b.right &&
95 this->right = right; in set()
127 right = std::min(right, r); in doIntersect()
144 if (right < r.right) right = r.right; in unionWith()
150 right = r.right; in unionWith()
218 right = floorf(right + 0.5f); in snapToPixelBoundaries()
225 right = ceilf(right); in roundOut()
236 right = std::max(right, other.right); in expandToCover()
[all …]
/aosp14/frameworks/base/core/java/com/android/internal/util/
H A DQuickSelect.java35 if (left == right) { in selectImpl()
38 final int pivotIndex = partition(list, left, right, (left + right) >> 1, comparator); in selectImpl()
51 if (left == right) { in selectImpl()
54 final int pivotIndex = partition(array, left, right, (left + right) >> 1); in selectImpl()
67 if (left == right) { in selectImpl()
70 final int pivotIndex = partition(array, left, right, (left + right) >> 1); in selectImpl()
84 if (left == right) { in selectImpl()
159 list.set(right, tmp); in swap()
165 array[right] = tmp; in swap()
171 array[right] = tmp; in swap()
[all …]
/aosp14/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
H A DTaskPositionerTests.java209 assertEquals(r.right, mPositioner.getWindowDragBounds().right); in testFreeWindowResizingTestAllEdges()
218 assertEquals(r.right, mPositioner.getWindowDragBounds().right); in testFreeWindowResizingTestAllEdges()
227 assertNotEquals(r.right, mPositioner.getWindowDragBounds().right); in testFreeWindowResizingTestAllEdges()
236 assertNotEquals(r.right, mPositioner.getWindowDragBounds().right); in testFreeWindowResizingTestAllEdges()
245 assertNotEquals(r.right, mPositioner.getWindowDragBounds().right); in testFreeWindowResizingTestAllEdges()
254 assertEquals(r.right, mPositioner.getWindowDragBounds().right); in testFreeWindowResizingTestAllEdges()
263 assertEquals(r.right, mPositioner.getWindowDragBounds().right); in testFreeWindowResizingTestAllEdges()
272 assertEquals(r.right, mPositioner.getWindowDragBounds().right); in testFreeWindowResizingTestAllEdges()
342 assertBoundsEquals(new Rect(r.right - w, r.top, r.right, r.top + h), in testLandscapePreservedWindowResizingDragLeft()
422 new Rect(r.right - w, r.bottom - h, r.right, r.bottom), in testPortraitPreservedWindowResizingDragTopLeft()
[all …]
/aosp14/frameworks/base/tools/aapt2/compile/
H A DImage.h78 inline bool operator==(const Range& left, const Range& right) {
79 return left.start == right.start && left.end == right.end;
91 int32_t right = 0; member
96 : left(l), top(t), right(r), bottom(b) {} in Bounds()
102 return left != 0 || top != 0 || right != 0 || bottom != 0; in nonZero()
105 inline bool operator==(const Bounds& left, const Bounds& right) {
106 return left.left == right.left && left.top == right.top &&
107 left.right == right.right && left.bottom == right.bottom;
/aosp14/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/windowdecor/
H A DDragPositioningCallbackUtilityTest.kt91 val newX = STARTING_BOUNDS.right.toFloat() - 5
101 assertThat(repositionTaskBounds.right).isEqualTo(STARTING_BOUNDS.right - 5)
111 val newX = STARTING_BOUNDS.right.toFloat() - 95
121 assertThat(repositionTaskBounds.right).isEqualTo(STARTING_BOUNDS.right)
131 val newX = STARTING_BOUNDS.right.toFloat() - 5
141 assertThat(repositionTaskBounds.right).isEqualTo(STARTING_BOUNDS.right - 5)
160 assertThat(repositionTaskBounds.right).isEqualTo(STARTING_BOUNDS.right - 80)
179 assertThat(repositionTaskBounds.right).isEqualTo(STARTING_BOUNDS.right)
206 assertThat(repositionTaskBounds.right).isEqualTo(STARTING_BOUNDS.right + 20)
223 DISPLAY_BOUNDS.right,
[all …]
H A DFluidResizeTaskPositionerTest.kt166 rectAfterMove.right += 10
255 STARTING_BOUNDS.right.toFloat(),
285 STARTING_BOUNDS.right.toFloat(),
304 STARTING_BOUNDS.right &&
315 STARTING_BOUNDS.right.toFloat(),
488 STARTING_BOUNDS.right + 10,
491 newBounds.right.toFloat(),
500 newBounds.right + 10,
504 newBounds2.right.toFloat(),
665 DISPLAY_BOUNDS.right,
[all …]
/aosp14/frameworks/base/core/java/android/view/
H A DGravity.java224 outRect.right = outRect.left + w; in apply()
230 if (outRect.right > container.right) { in apply()
231 outRect.right = container.right; in apply()
240 if (outRect.right > container.right) { in apply()
241 outRect.right = container.right; in apply()
246 outRect.right = container.right - xAdj; in apply()
257 outRect.right = container.right + xAdj; in apply()
371 if (inoutObj.right > display.right) inoutObj.right = display.right; in applyDisplay()
375 else if (inoutObj.right > display.right) off = display.right-inoutObj.right; in applyDisplay()
379 inoutObj.right = display.right; in applyDisplay()
[all …]
/aosp14/frameworks/base/core/java/android/app/usage/
H A DEventStats.java131 public void add(EventStats right) { in add() argument
132 if (mEventType != right.mEventType) { in add()
134 + mEventType + " with EventStats for event #" + right.mEventType); in add()
139 if (right.mBeginTimeStamp > mBeginTimeStamp) { in add()
140 mLastEventTime = Math.max(mLastEventTime, right.mLastEventTime); in add()
142 mBeginTimeStamp = Math.min(mBeginTimeStamp, right.mBeginTimeStamp); in add()
143 mEndTimeStamp = Math.max(mEndTimeStamp, right.mEndTimeStamp); in add()
144 mTotalTime += right.mTotalTime; in add()
145 mCount += right.mCount; in add()
H A DUsageStats.java317 final int size = right.size(); in mergeEventMap()
319 final int instanceId = right.keyAt(i); in mergeEventMap()
320 final int event = right.valueAt(i); in mergeEventMap()
331 final int size = right.size(); in mergeEventMap()
333 final String className = right.keyAt(i); in mergeEventMap()
334 final Integer event = right.valueAt(i); in mergeEventMap()
350 public void add(UsageStats right) { in add() argument
374 mLaunchCount += right.mLaunchCount; in add()
375 mAppLaunchCount += right.mAppLaunchCount; in add()
377 mChooserCounts = right.mChooserCounts; in add()
[all …]
/aosp14/frameworks/base/services/core/java/com/android/server/notification/
H A DNotificationComparator.java57 public int compare(NotificationRecord left, NotificationRecord right) { in compare() argument
59 final int rightImportance = right.getImportance(); in compare()
70 if (left.getRankingScore() != right.getRankingScore()) { in compare()
76 boolean rightImportantColorized = isImportantColorized(right); in compare()
84 boolean rightImportantOngoing = isImportantOngoing(right); in compare()
92 boolean rightMessaging = isImportantMessaging(right); in compare()
99 boolean rightPeople = isImportantPeople(right); in compare()
114 boolean rightSystemMax = isSystemMax(right); in compare()
131 final int rightPackagePriority = right.getPackagePriority(); in compare()
138 final int rightPriority = right.getSbn().getNotification().priority; in compare()
[all …]
/aosp14/frameworks/base/core/tests/coretests/src/android/view/
H A DWindowLayoutTests.java123 .setFrame(mDisplayCutoutSafe.right, 0, DISPLAY_WIDTH, DISPLAY_HEIGHT); in addDisplayCutout()
132 private static void assertInsetBy(int left, int top, int right, int bottom, Rect actual) { in assertInsetBy() argument
133 assertRect(left, top, DISPLAY_WIDTH - right, DISPLAY_HEIGHT - bottom, actual); in assertInsetBy()
136 private static void assertRect(int left, int top, int right, int bottom, Rect actual) { in assertRect() argument
137 assertEquals(new Rect(left, top, right, bottom), actual); in assertRect()
308 assertInsetBy(WATERFALL_INSETS.left, DISPLAY_CUTOUT_HEIGHT, WATERFALL_INSETS.right, 0, in fitDisplayCutout()
310 assertInsetBy(WATERFALL_INSETS.left, DISPLAY_CUTOUT_HEIGHT, WATERFALL_INSETS.right, 0, in fitDisplayCutout()
312 assertInsetBy(WATERFALL_INSETS.left, DISPLAY_CUTOUT_HEIGHT, WATERFALL_INSETS.right, 0, in fitDisplayCutout()
323 assertInsetBy(WATERFALL_INSETS.left, DISPLAY_CUTOUT_HEIGHT, WATERFALL_INSETS.right, 0, in layoutInDisplayCutoutModeDefault()
341 assertInsetBy(WATERFALL_INSETS.left, 0, WATERFALL_INSETS.right, 0, mFrames.frame); in layoutInDisplayCutoutModeDefaultWithLayoutInScreenAndLayoutInsetDecor()
[all …]
/aosp14/frameworks/base/core/java/android/animation/
H A DRectEvaluator.java75 int right = startValue.right + (int) ((endValue.right - startValue.right) * fraction); in evaluate() local
78 return new Rect(left, top, right, bottom); in evaluate()
80 mRect.set(left, top, right, bottom); in evaluate()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/navigationbar/buttons/
H A DNearestTouchFrameTest.java82 View right = mockViewAt(20, 0, 10, 10); in testNoActionOnLargeDevices() local
85 mNearestTouchFrame.addView(right); in testNoActionOnLargeDevices()
98 View right = mockViewAt(20, 0, 10, 10); in testInvisibleViews() local
102 mNearestTouchFrame.addView(right); in testInvisibleViews()
118 View right = mockViewAt(20, 0, 10, 10); in testNearestView_DetachedViewsExcluded() local
121 mNearestTouchFrame.addView(right); in testNearestView_DetachedViewsExcluded()
128 verify(right).onTouchEvent(eq(ev)); in testNearestView_DetachedViewsExcluded()
138 mNearestTouchFrame.addView(right); in testHorizontalSelection_Left()
154 mNearestTouchFrame.addView(right); in testHorizontalSelection_Right()
160 verify(right).onTouchEvent(eq(ev)); in testHorizontalSelection_Right()
[all …]
/aosp14/frameworks/base/services/core/java/com/android/server/wm/utils/
H A DInsetUtils.java46 r.set(r.top, r.right, r.bottom, r.left); in rotateInsets()
49 r.set(r.right, r.bottom, r.left, r.top); in rotateInsets()
52 r.set(r.bottom, r.left, r.top, r.right); in rotateInsets()
65 inOutInsets.right += insetsToAdd.right; in addInsets()
91 Math.min(w, Math.max(0, outerFrame.right - innerFrame.right)), in insetsBetweenFrames()
/aosp14/system/core/libutils/include/utils/
H A DList.h118 inline bool operator==(const _Iter& right) const {
119 return mpNode == right.mpNode; }
121 inline bool operator!=(const _Iter& right) const {
122 return mpNode != right.mpNode; }
129 return mpNode == right.mpNode; }
133 return mpNode != right.mpNode; }
180 List<T>& operator=(const List<T>& right);
315 List<T>& List<T>::operator=(const List<T>& right)
317 if (this == &right)
321 const_iterator firstSrc = right.begin();
[all …]
/aosp14/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/
H A DFaceSquareFilter.java88 int right = (tempRect.right+WIDTH_OFFSET)*dims[0]/FACE_X_RANGE; in drawBoxes() local
105 if (right > dims[0]) { in drawBoxes()
106 right = dims[0]; in drawBoxes()
107 } else if (right < 0) { in drawBoxes()
108 right = 0; in drawBoxes()
123 if (right > 0 && top > 0) { in drawBoxes()
124 pixels[ImageConstants.PIX_CHANNELS * (dims[0] * (top + j) + right) + in drawBoxes()
126 pixels[ImageConstants.PIX_CHANNELS * (dims[0] * (top + j) + right) + in drawBoxes()
128 pixels[ImageConstants.PIX_CHANNELS * (dims[0] * (top + j) + right) + in drawBoxes()
133 for (int k = 0; k < (right - left); k++) { in drawBoxes()
/aosp14/frameworks/base/tests/FlickerTests/src/com/android/server/wm/flicker/helpers/
H A DLetterboxAppHelper.kt64 fun repositionHorizontally(displayBounds: Rect, right: Boolean) {
65 val x = if (right) displayBounds.right - BOUNDS_OFFSET else BOUNDS_OFFSET
82 right: Boolean
90 return@add if (right)
91 appRegionBounds.left == displayBounds.right - appWidth &&
92 appRegionBounds.right == displayBounds.right
95 appRegionBounds.right == displayBounds.left + appWidth
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
H A DExpandableOutlineView.java71 int right = getWidth() + Math.min(translation, 0);
73 outline.setRect(left, top, right, bottom);
101 int right; in getClipPath() local
113 right = getWidth() + halfExtraWidth + Math.min(translation, 0); in getClipPath()
121 right = mOutlineRect.right; in getClipPath()
138 getRoundedRectPath(left, top, right, bottom, topRadius, bottomRadius, mTmpPath); in getClipPath()
149 int right, in getRoundedRectPath() argument
294 setOutlineRect(rect.left, rect.top, rect.right, rect.bottom); in setOutlineRect()
349 protected void setOutlineRect(float left, float top, float right, float bottom) { in setOutlineRect() argument
352 mOutlineRect.set((int) left, (int) top, (int) right, (int) bottom); in setOutlineRect()
[all …]

12345678910>>...36