Home
last modified time | relevance | path

Searched refs:left (Results 1 – 25 of 885) sorted by relevance

12345678910>>...36

/aosp14/frameworks/base/core/tests/coretests/src/android/app/usage/
H A DUsageStatsTest.java52 private UsageStats left; field in UsageStatsTest
57 left = new UsageStats(); in setUp()
68 left.add(right); in testEarlierBeginTimeTakesPriorityOnAdd()
76 left.mEndTimeStamp = 100000; in testLaterEndTimeTakesPriorityOnAdd()
80 left.add(right); in testLaterEndTimeTakesPriorityOnAdd()
89 left.mLastTimeUsed = 200000; in testLastUsedTimeIsOverriddenByLaterStats()
94 left.add(right); in testLastUsedTimeIsOverriddenByLaterStats()
103 left.mLastTimeUsed = 200000; in testLastUsedTimeIsNotOverriddenByLaterStatsIfUseIsEarlier()
108 left.add(right); in testLastUsedTimeIsNotOverriddenByLaterStatsIfUseIsEarlier()
122 left.add(right); in testForegroundTimeIsSummed()
[all …]
/aosp14/frameworks/base/graphics/java/android/graphics/
H A DRectF.java57 this.left = left; in RectF()
74 left = r.left; in RectF()
85 left = r.left; in RectF()
204 this.left = left; in set()
217 this.left = src.left; in set()
230 this.left = src.left; in set()
353 if (this.left < left) { in intersect()
354 this.left = left; in intersect()
400 left = Math.max(a.left, b.left); in setIntersect()
484 this.left = left; in union()
[all …]
H A DRect.java85 this.left = left; in Rect()
102 left = r.left; in Rect()
116 left = r.left; in Rect()
367 this.left = left; in set()
437 left += insets.left; in inset()
449 left += insets.left; in inset()
464 this.left += left; in inset()
542 if (this.left < left) this.left = left; in intersect()
574 left = Math.max(left, other.left); in intersectUnchecked()
595 left = Math.max(a.left, b.left); in setIntersect()
[all …]
H A DInsets.java35 public final int left; field in Insets
41 this.left = left; 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()
116 return Insets.of(Math.max(a.left, b.left), Math.max(a.top, b.top), in max()
128 return Insets.of(Math.min(a.left, b.left), Math.min(a.top, b.top), in min()
148 if (left != insets.left) return false; in equals()
157 int result = left; in hashCode()
167 "left=" + left + 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
857 private static native void nAddRect(long nPath, float left, float top, in nAddRect() argument
859 private static native void nAddOval(long nPath, float left, float top, in nAddOval() argument
864 private static native void nAddRoundRect(long nPath, float left, float top, in nAddRoundRect() argument
[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()
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()
1316 translate(dst.left, dst.top); in drawPicture()
1329 translate(dst.left, dst.top); in drawPicture()
1556 super.drawBitmap(bitmap, left, top, paint);
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.h42 float left;
56 : left(left), top(top), right(right), bottom(bottom) {} in Rect()
75 return a.left == b.left &&
94 this->left = left; in set()
125 left = std::max(left, l); in doIntersect()
142 if (left > r.left) left = r.left; in unionWith()
148 left = r.left; in unionWith()
216 left = floorf(left + 0.5f); in snapToPixelBoundaries()
223 left = floorf(left); in roundOut()
234 left = std::min(left, other.left); in expandToCover()
[all …]
/aosp14/frameworks/base/core/java/com/android/internal/util/
H A DQuickSelect.java35 if (left == right) { in selectImpl()
36 return left; in selectImpl()
51 if (left == right) { in selectImpl()
52 return left; in selectImpl()
54 final int pivotIndex = partition(array, left, right, (left + right) >> 1); in selectImpl()
68 return left; in selectImpl()
70 final int pivotIndex = partition(array, left, right, (left + right) >> 1); in selectImpl()
85 return left; in selectImpl()
102 int storeIndex = left; in partition()
116 int storeIndex = left; in partition()
[all …]
/aosp14/frameworks/base/core/java/android/hardware/camera2/params/
H A DReprocessFormatsMap.java81 left--; in ReprocessFormatsMap()
84 if (left < 1) { in ReprocessFormatsMap()
90 left--; in ReprocessFormatsMap()
107 left -= length; in ReprocessFormatsMap()
136 left--; in getInputs()
139 if (left < 1) { in getInputs()
145 left--; in getInputs()
184 left--; in getOutputs()
187 if (left < 1) { in getOutputs()
193 left--; in getOutputs()
[all …]
/aosp14/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
H A DTaskPositionerTests.java117 final Rect r = new Rect(left, top, left + windowSize, top + windowSize); in testMoveWindow()
208 assertNotEquals(r.left, mPositioner.getWindowDragBounds().left); in testFreeWindowResizingTestAllEdges()
217 assertEquals(r.left, mPositioner.getWindowDragBounds().left); in testFreeWindowResizingTestAllEdges()
226 assertEquals(r.left, mPositioner.getWindowDragBounds().left); in testFreeWindowResizingTestAllEdges()
235 assertEquals(r.left, mPositioner.getWindowDragBounds().left); in testFreeWindowResizingTestAllEdges()
244 assertEquals(r.left, mPositioner.getWindowDragBounds().left); in testFreeWindowResizingTestAllEdges()
253 assertEquals(r.left, mPositioner.getWindowDragBounds().left); in testFreeWindowResizingTestAllEdges()
262 assertNotEquals(r.left, mPositioner.getWindowDragBounds().left); in testFreeWindowResizingTestAllEdges()
271 assertNotEquals(r.left, mPositioner.getWindowDragBounds().left); in testFreeWindowResizingTestAllEdges()
383 assertBoundsEquals(new Rect(r.left, MOUSE_DELTA_Y, r.left + w, r.bottom), in testLandscapePreservedWindowResizingDragTop()
[all …]
/aosp14/frameworks/base/core/java/android/view/
H A DGravity.java222 outRect.left = container.left in apply()
227 if (outRect.left < container.left) { in apply()
228 outRect.left = container.left; in apply()
236 outRect.left = container.left + xAdj; in apply()
250 if (outRect.left < container.left) { in apply()
251 outRect.left = container.left; in apply()
256 outRect.left = container.left + xAdj; in apply()
370 if (inoutObj.left < display.left) inoutObj.left = display.left; in applyDisplay()
374 if (inoutObj.left < display.left) off = display.left-inoutObj.left; in applyDisplay()
378 inoutObj.left = display.left; in applyDisplay()
[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;
89 int32_t left = 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/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/
H A DFaceSquareFilter.java87 int left = (tempRect.left+WIDTH_OFFSET)*dims[0]/FACE_X_RANGE; in drawBoxes() local
95 if (left < 0) { in drawBoxes()
96 left = 0; in drawBoxes()
97 } else if (left > dims[0]) { in drawBoxes()
98 left = dims[0]; in drawBoxes()
113 if (left > 0 && top > 0) { in drawBoxes()
114 pixels[ImageConstants.PIX_CHANNELS * (dims[0] * (top + j) + left) + in drawBoxes()
133 for (int k = 0; k < (right - left); k++) { in drawBoxes()
136 pixels[ImageConstants.PIX_CHANNELS * (dims[0] * top + left + k) + in drawBoxes()
138 pixels[ImageConstants.PIX_CHANNELS * (dims[0] * top + left + k) + in drawBoxes()
[all …]
/aosp14/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/tests/src/androidx/media/filterfw/samples/simplecamera/
H A DFaceSquareFilterTest.java89 int left = (faceRect.left+WIDTH_OFFSET)*bitmap.getWidth()/FACE_X_RANGE; in testFaceSquareFilter() local
97 if (left < 0) { in testFaceSquareFilter()
98 left = 0; in testFaceSquareFilter()
99 } else if (left > bitmap.getWidth()) { in testFaceSquareFilter()
100 left = bitmap.getWidth(); in testFaceSquareFilter()
115 if (left > 0 && top > 0) { in testFaceSquareFilter()
116 pixels[ImageConstants.PIX_CHANNELS * (bitmap.getWidth() * (top + j) + left) + in testFaceSquareFilter()
135 for (int k = 0; k < (right - left); k++) { in testFaceSquareFilter()
138 pixels[ImageConstants.PIX_CHANNELS * (bitmap.getWidth() * top + left + k) + in testFaceSquareFilter()
140 pixels[ImageConstants.PIX_CHANNELS * (bitmap.getWidth() * top + left + k) + in testFaceSquareFilter()
[all …]
/aosp14/frameworks/base/services/core/java/com/android/server/display/
H A DDensityMapping.java62 Entry left = Entry.ZEROES; in getDensityForResolution() local
67 left = entry; in getDensityForResolution()
75 if (left.squaredDiagonal == squaredDiagonal) { in getDensityForResolution()
76 return left.density; in getDensityForResolution()
82 right = left; // largest entry in the sorted array in getDensityForResolution()
83 left = Entry.ZEROES; in getDensityForResolution()
86 double leftDiagonal = Math.sqrt(left.squaredDiagonal); in getDensityForResolution()
90 return (int) Math.round((diagonal - leftDiagonal) * (right.density - left.density) in getDensityForResolution()
91 / (rightDiagonal - leftDiagonal) + left.density); in getDensityForResolution()
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/pip/
H A DPipSnapAlgorithm.java61 final float widthFraction = (float) (tmpBounds.left - movementBounds.left) in getSnapFraction()
67 } else if (tmpBounds.left == movementBounds.right) { in getSnapFraction()
90 int offset = movementBounds.left + (int) (snapFraction * movementBounds.width()); in applySnapFraction()
98 int offset = movementBounds.left + (int) ((1f - snapFraction) * movementBounds.width()); in applySnapFraction()
103 stackBounds.offsetTo(movementBounds.left, offset); in applySnapFraction()
118 ? stashOffset - stackBounds.width() + insetBounds.left in applySnapFraction()
131 int leftEdge = stackBounds.left; in snapRectToClosestEdge()
133 leftEdge = movementBounds.left; in snapRectToClosestEdge()
137 final int boundedLeft = Math.max(movementBounds.left, Math.min(movementBounds.right, in snapRectToClosestEdge()
144 final int fromLeft = Math.abs(leftEdge - movementBounds.left); in snapRectToClosestEdge()
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/navigationbar/buttons/
H A DNearestTouchFrameTest.java81 View left = mockViewAt(0, 0, 10, 10); in testNoActionOnLargeDevices() local
84 mNearestTouchFrame.addView(left); in testNoActionOnLargeDevices()
97 View left = mockViewAt(0, 0, 10, 10); in testInvisibleViews() local
101 mNearestTouchFrame.addView(left); in testInvisibleViews()
116 View left = mockViewAt(0, 0, 10, 10); in testNearestView_DetachedViewsExcluded() local
120 mNearestTouchFrame.addView(left); in testNearestView_DetachedViewsExcluded()
134 View left = mockViewAt(0, 0, 10, 10); in testHorizontalSelection_Left() local
137 mNearestTouchFrame.addView(left); in testHorizontalSelection_Left()
144 verify(left).onTouchEvent(eq(ev)); in testHorizontalSelection_Left()
153 mNearestTouchFrame.addView(left); in testHorizontalSelection_Right()
[all …]
/aosp14/frameworks/base/core/java/com/android/internal/widget/
H A DSimpleItemAnimator.java92 int oldLeft = preLayoutInfo.left; in animateDisappearance()
95 int newLeft = postLayoutInfo == null ? disappearingItemView.getLeft() : postLayoutInfo.left; in animateDisappearance()
116 if (preLayoutInfo != null && (preLayoutInfo.left != postLayoutInfo.left in animateAppearance()
122 return animateMove(viewHolder, preLayoutInfo.left, preLayoutInfo.top, in animateAppearance()
123 postLayoutInfo.left, postLayoutInfo.top); in animateAppearance()
135 if (preInfo.left != postInfo.left || preInfo.top != postInfo.top) { in animatePersistence()
141 preInfo.left, preInfo.top, postInfo.left, postInfo.top); in animatePersistence()
153 final int fromLeft = preInfo.left; in animateChange()
157 toLeft = preInfo.left; in animateChange()
160 toLeft = postInfo.left; in animateChange()
/aosp14/frameworks/base/services/core/java/com/android/server/notification/
H A DNotificationComparator.java57 public int compare(NotificationRecord left, NotificationRecord right) { in compare() argument
58 final int leftImportance = left.getImportance(); in compare()
70 if (left.getRankingScore() != right.getRankingScore()) { in compare()
75 boolean leftImportantColorized = isImportantColorized(left); in compare()
83 boolean leftImportantOngoing = isImportantOngoing(left); in compare()
91 boolean leftMessaging = isImportantMessaging(left); in compare()
98 boolean leftPeople = isImportantPeople(left); in compare()
113 boolean leftSystemMax = isSystemMax(left); in compare()
130 final int leftPackagePriority = left.getPackagePriority(); in compare()
137 final int leftPriority = left.getSbn().getNotification().priority; in compare()
[all …]
/aosp14/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/
H A DPipSnapAlgorithmTest.java63 assertEquals(MOVEMENT_BOUNDS.width() / 4, bounds.left); in testApplySnapFraction_topEdge()
74 assertEquals(MOVEMENT_BOUNDS.right, bounds.left); in testApplySnapFraction_rightEdge()
85 assertEquals((int) (MOVEMENT_BOUNDS.width() * 0.75f), bounds.left); in testApplySnapFraction_bottomEdge()
96 assertEquals(MOVEMENT_BOUNDS.left, bounds.left); in testApplySnapFraction_leftEdge()
109 assertEquals(MOVEMENT_BOUNDS.right, bounds.left); in testApplySnapFraction_notStashed_isNotOffBounds()
123 assertEquals(MOVEMENT_BOUNDS.left - offBoundsWidth, bounds.left); in testApplySnapFraction_stashedLeft()
136 assertEquals(DISPLAY_BOUNDS.right - DEFAULT_STASH_OFFSET, bounds.left); in testApplySnapFraction_stashedRight()
150 bounds.left); in testApplySnapFraction_stashedRight_withInset()
163 assertEquals(MOVEMENT_BOUNDS.right, bounds.left); in testSnapRectToClosestEdge_rightEdge()
175 assertEquals(MOVEMENT_BOUNDS.left, bounds.left); in testSnapRectToClosestEdge_leftEdge()
[all …]
/aosp14/frameworks/base/core/tests/coretests/src/android/view/
H A DWindowLayoutTests.java119 .setFrame(0, 0, mDisplayCutoutSafe.left, 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/libs/WindowManager/Shell/src/com/android/wm/shell/pip/tv/
H A DTvPipKeepClearAlgorithm.kt217 stashedBounds.left < unstashedDestBounds.left -> STASH_TYPE_LEFT
275 val dx = candidateBounds.left - pipAnchorBounds.left
378 if (screenBounds.right - bounds.right <= bounds.left - screenBounds.left) {
391 if (screenBounds.right - bounds.right >= bounds.left - screenBounds.left) {
394 val minLeft = areasOverlappingPipY.minByOrNull { it.left }!!.left
407 val dx = abs(it.left - bounds.left)
634 val tl = Point(r.left, r.top)
637 val bl = Point(r.left, r.bottom)
678 val tl = Point(r.left, r.top)
741 val horizontal = left || right
[all …]
/aosp14/frameworks/base/services/core/java/com/android/server/wm/
H A DLaunchParamsUtil.java62 final int left = inOutBounds.centerX() - width / 2; in centerBounds() local
64 inOutBounds.set(left, top, left + width, top + height); in centerBounds()
162 final int left = layoutDirection == View.LAYOUT_DIRECTION_RTL in adjustBoundsToFitInDisplayArea() local
164 : stableBounds.left; in adjustBoundsToFitInDisplayArea()
165 inOutBounds.set(left, stableBounds.top, left + adjustedWidth, in adjustBoundsToFitInDisplayArea()
169 inOutBounds.set(inOutBounds.left, inOutBounds.top, in adjustBoundsToFitInDisplayArea()
170 inOutBounds.left + adjustedWidth, inOutBounds.top + adjustedHeight); in adjustBoundsToFitInDisplayArea()
177 } else if (inOutBounds.left < stableBounds.left) { in adjustBoundsToFitInDisplayArea()
179 dx = stableBounds.left - inOutBounds.left; in adjustBoundsToFitInDisplayArea()
/aosp14/frameworks/base/core/java/android/animation/
H A DRectEvaluator.java73 int left = startValue.left + (int) ((endValue.left - startValue.left) * fraction); in evaluate() local
78 return new Rect(left, top, right, bottom); in evaluate()
80 mRect.set(left, top, right, bottom); in evaluate()

12345678910>>...36