Home
last modified time | relevance | path

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

12345678910>>...53

/frameworks/base/core/tests/coretests/src/android/app/usage/
DUsageStatsTest.java52 private UsageStats left; field in UsageStatsTest
57 left = new UsageStats(); in setUp()
63 left.mPackageName = "com.test"; in testEarlierBeginTimeTakesPriorityOnAdd()
64 left.mBeginTimeStamp = 100000; in testEarlierBeginTimeTakesPriorityOnAdd()
68 left.add(right); in testEarlierBeginTimeTakesPriorityOnAdd()
70 assertEquals(left.getFirstTimeStamp(), 99999); in testEarlierBeginTimeTakesPriorityOnAdd()
75 left.mPackageName = "com.test"; in testLaterEndTimeTakesPriorityOnAdd()
76 left.mEndTimeStamp = 100000; in testLaterEndTimeTakesPriorityOnAdd()
80 left.add(right); in testLaterEndTimeTakesPriorityOnAdd()
82 assertEquals(left.getLastTimeStamp(), 100001); in testLaterEndTimeTakesPriorityOnAdd()
[all …]
/frameworks/base/graphics/java/android/graphics/
DRectF.java37 public float left; field in RectF
57 public RectF(float left, float top, float right, float bottom) { in RectF() argument
58 this.left = left; in RectF()
73 left = top = right = bottom = 0.0f; in RectF()
75 left = r.left; in RectF()
84 left = top = right = bottom = 0.0f; in RectF()
86 left = r.left; in RectF()
99 return left == r.left && top == r.top && right == r.right && bottom == r.bottom; in equals()
104 int result = (left != +0.0f ? Float.floatToIntBits(left) : 0); in hashCode()
113 return "RectF(" + left + ", " + top + ", " in toString()
[all …]
DRect.java50 public int left; field in Rect
85 public Rect(int left, int top, int right, int bottom) { in Rect() argument
86 this.left = left; in Rect()
101 left = top = right = bottom = 0; in Rect()
103 left = r.left; in Rect()
115 left = top = right = bottom = 0; in Rect()
117 left = r.left; in Rect()
140 return left == r.left && top == r.top && right == r.right && bottom == r.bottom; in equals()
145 int result = left; in hashCode()
155 sb.append("Rect("); sb.append(left); sb.append(", "); in toString()
[all …]
DInsets.java36 public final int left; field in Insets
41 private Insets(int left, int top, int right, int bottom) { in Insets() argument
42 this.left = left; in Insets()
60 public static @NonNull Insets of(int left, int top, int right, int bottom) { in of() argument
61 if (left == 0 && top == 0 && right == 0 && bottom == 0) { in of()
64 return new Insets(left, top, right, bottom); in of()
75 return (r == null) ? NONE : of(r.left, r.top, r.right, r.bottom); in of()
84 return new Rect(left, top, right, bottom); in toRect()
95 return Insets.of(a.left + b.left, a.top + b.top, a.right + b.right, a.bottom + b.bottom); in add()
106 return Insets.of(a.left - b.left, a.top - b.top, a.right - b.right, a.bottom - b.bottom); in subtract()
[all …]
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()
190 public void setRoundRect(int left, int top, int right, int bottom, float radius) { in setRoundRect() argument
191 if (left >= right || top >= bottom) { in setRoundRect()
201 mRect.set(left, top, right, bottom); in setRoundRect()
209 setRoundRect(rect.left, rect.top, rect.right, rect.bottom, radius); 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()
[all …]
/frameworks/base/libs/hwui/
DRect.h33 #define RECT_ARGS(r) (r).left, (r).top, (r).right, (r).bottom
34 #define SK_RECT_ARGS(r) (r).left(), (r).top(), (r).right(), (r).bottom()
42 float left;
53 inline Rect() : left(0), top(0), right(0), bottom(0) {} in Rect()
55 inline Rect(float left, float top, float right, float bottom) in Rect() argument
56 : left(left), top(top), right(right), bottom(bottom) {} in Rect()
58 inline Rect(float width, float height) : left(0.0f), top(0.0f), right(width), bottom(height) {} in Rect()
62 left(rect.fLeft) in Rect()
69 left(rect.fLeft) in Rect()
75 return a.left == b.left &&
[all …]
/frameworks/base/core/java/com/android/internal/util/
DQuickSelect.java33 private static <T> int selectImpl(@NonNull List<T> list, int left, int right, int k, in selectImpl() argument
36 if (left == right) { in selectImpl()
37 return left; in selectImpl()
39 final int pivotIndex = partition(list, left, right, (left + right) >> 1, comparator); in selectImpl()
45 left = pivotIndex + 1; in selectImpl()
50 private static int selectImpl(@NonNull int[] array, int left, int right, int k) { in selectImpl() argument
52 if (left == right) { in selectImpl()
53 return left; in selectImpl()
55 final int pivotIndex = partition(array, left, right, (left + right) >> 1); in selectImpl()
61 left = pivotIndex + 1; in selectImpl()
[all …]
/frameworks/base/core/java/android/hardware/camera2/params/
DReprocessFormatsMap.java77 int left = entry.length; in ReprocessFormatsMap() local
81 left--; in ReprocessFormatsMap()
84 if (left < 1) { in ReprocessFormatsMap()
90 left--; in ReprocessFormatsMap()
99 if (left < length) { in ReprocessFormatsMap()
103 "expected: %d)", inputFormat, left, length)); in ReprocessFormatsMap()
107 left -= length; in ReprocessFormatsMap()
132 int left = mEntry.length; in getInputs() local
136 left--; in getInputs()
139 if (left < 1) { in getInputs()
[all …]
/frameworks/native/services/surfaceflinger/Utils/
DOverlayUtils.h86 static void drawSegment(Segment segment, int left, SkColor color, SkCanvas& canvas) { in drawSegment() argument
90 return SkRect::MakeLTRB(left, 0, left + kDigitWidth, kDigitSpace); in drawSegment()
92 return SkRect::MakeLTRB(left, 0, left + kDigitSpace, kDigitHeight / 2.); in drawSegment()
94 return SkRect::MakeLTRB(left + kDigitWidth - kDigitSpace, 0, left + kDigitWidth, in drawSegment()
97 return SkRect::MakeLTRB(left, kDigitHeight / 2. - kDigitSpace / 2., in drawSegment()
98 left + kDigitWidth, in drawSegment()
101 return SkRect::MakeLTRB(left, kDigitHeight / 2., left + kDigitSpace, in drawSegment()
104 return SkRect::MakeLTRB(left + kDigitWidth - kDigitSpace, kDigitHeight / 2., in drawSegment()
105 left + kDigitWidth, kDigitHeight); in drawSegment()
107 return SkRect::MakeLTRB(left, kDigitHeight - kDigitSpace, left + kDigitWidth, in drawSegment()
[all …]
/frameworks/native/libs/ui/
DRect.cpp35 left = 0; in makeInvalid()
45 if (left < rhs.left) { in operator <()
47 } else if (left == rhs.left) { in operator <()
61 right -= left - x; in offsetTo()
63 left = x; in offsetTo()
69 left += x; in offsetBy()
77 this->left += _left; in inset()
85 const Rect result(left + rhs.x, top + rhs.y, right + rhs.x, bottom + rhs.y); in operator +()
90 const Rect result(left - rhs.x, top - rhs.y, right - rhs.x, bottom - rhs.y); in operator -()
95 result->left = max(left, with.left); in intersect()
[all …]
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DTaskPositionerTests.java115 final int left = displayBounds.centerX() - windowSize / 2; in testMoveWindow() local
117 final Rect r = new Rect(left, top, left + windowSize, top + windowSize); in testMoveWindow()
119 mPositioner.startDrag(false /* resizing */, false /* preserveOrientation */, left, top); in testMoveWindow()
122 mPositioner.notifyMoveLocked(left - MOUSE_DELTA_X, top - MOUSE_DELTA_Y); in testMoveWindow()
127 mPositioner.notifyMoveLocked(left, top); in testMoveWindow()
144 r.left - MOUSE_DELTA_X, r.top - MOUSE_DELTA_Y); in testBasicFreeWindowResizing()
164 mPositioner.resizeDrag(r.left, 2000.0f); in testBasicFreeWindowResizing()
166 new Rect(r.left + MOUSE_DELTA_X, r.bottom - mMinVisibleHeight, r.right, r.bottom), in testBasicFreeWindowResizing()
171 r.left - MOUSE_DELTA_X, midY); in testBasicFreeWindowResizing()
184 mPositioner.resizeDrag(r.left, 0.0f); in testBasicFreeWindowResizing()
[all …]
/frameworks/native/libs/ui/include_vndk/ui/
DFloatRect.h28 : left(_left), top(_top), right(_right), bottom(_bottom) {} in FloatRect()
30 float getWidth() const { return right - left; } in getWidth()
37 (left > other.left) ? left : other.left, in intersect()
48 float left = 0.0f; variable
53 constexpr bool isEmpty() const { return !(left < right && top < bottom); } in isEmpty()
57 return a.left == b.left && a.top == b.top && a.right == b.right && a.bottom == b.bottom;
61 *os << "FloatRect(" << rect.left << ", " << rect.top << ", " << rect.right << ", " in PrintTo()
72 return android::hashCombine(rect.left, rect.top, rect.right, rect.bottom);
DRect.h57 left = top = 0; in Rect()
63 left = l; in Rect()
70 left = lt.x; in Rect()
79 left = static_cast<int32_t>(floatRect.left + 0.5f); in Rect()
86 left = 0; in Rect()
95 left = top = right = bottom = 0; in clear()
111 return right - left; in getWidth()
124 return Rect(right - left, bottom - top); in getBounds()
128 left = lt.x; in setLeftTop()
139 return Point(left, top); in leftTop()
[all …]
/frameworks/native/libs/ui/include/ui/
DFloatRect.h28 : left(_left), top(_top), right(_right), bottom(_bottom) {} in FloatRect()
30 float getWidth() const { return right - left; } in getWidth()
37 (left > other.left) ? left : other.left, in intersect()
48 float left = 0.0f; variable
53 constexpr bool isEmpty() const { return !(left < right && top < bottom); } in isEmpty()
57 return a.left == b.left && a.top == b.top && a.right == b.right && a.bottom == b.bottom;
61 *os << "FloatRect(" << rect.left << ", " << rect.top << ", " << rect.right << ", " in PrintTo()
72 return android::hashCombine(rect.left, rect.top, rect.right, rect.bottom);
DRect.h57 left = top = 0; in Rect()
63 left = l; in Rect()
70 left = lt.x; in Rect()
79 left = static_cast<int32_t>(floatRect.left + 0.5f); in Rect()
86 left = 0; in Rect()
95 left = top = right = bottom = 0; in clear()
111 return right - left; in getWidth()
124 return Rect(right - left, bottom - top); in getBounds()
128 left = lt.x; in setLeftTop()
139 return Point(left, top); in leftTop()
[all …]
/frameworks/native/include/ui/
DFloatRect.h28 : left(_left), top(_top), right(_right), bottom(_bottom) {} in FloatRect()
30 float getWidth() const { return right - left; } in getWidth()
37 (left > other.left) ? left : other.left, in intersect()
48 float left = 0.0f; variable
53 constexpr bool isEmpty() const { return !(left < right && top < bottom); } in isEmpty()
57 return a.left == b.left && a.top == b.top && a.right == b.right && a.bottom == b.bottom;
61 *os << "FloatRect(" << rect.left << ", " << rect.top << ", " << rect.right << ", " in PrintTo()
72 return android::hashCombine(rect.left, rect.top, rect.right, rect.bottom);
DRect.h57 left = top = 0; in Rect()
63 left = l; in Rect()
70 left = lt.x; in Rect()
79 left = static_cast<int32_t>(floatRect.left + 0.5f); in Rect()
86 left = 0; in Rect()
95 left = top = right = bottom = 0; in clear()
111 return right - left; in getWidth()
124 return Rect(right - left, bottom - top); in getBounds()
128 left = lt.x; in setLeftTop()
139 return Point(left, top); in leftTop()
[all …]
/frameworks/base/libs/androidfw/include/androidfw/
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()
103 return left != 0 || top != 0 || right != 0 || bottom != 0; in nonZero()
106 inline bool operator==(const Bounds& left, const Bounds& right) {
107 return left.left == right.left && left.top == right.top && left.right == right.right &&
108 left.bottom == right.bottom;
/frameworks/base/core/java/android/view/
DGravity.java222 outRect.left = container.left in apply()
223 + ((container.right - container.left - w)/2) + xAdj; in apply()
224 outRect.right = outRect.left + w; 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()
237 outRect.right = outRect.left + w; in apply()
247 outRect.left = outRect.right - w; in apply()
250 if (outRect.left < container.left) { in apply()
251 outRect.left = container.left; in apply()
[all …]
/frameworks/av/media/libaaudio/src/flowgraph/resampler/
DPolyphaseResamplerStereo.cpp37 const float left = frame[0]; in writeFrame() local
40 dest[0] = left; in writeFrame()
42 dest[offset] = left; in writeFrame()
48 float left = 0.0; in readFrame() local
58 left += *xFrame++ * coefficient; in readFrame()
62 left += *xFrame++ * coefficient; in readFrame()
66 left += *xFrame++ * coefficient; in readFrame()
70 left += *xFrame++ * coefficient; in readFrame()
77 frame[0] = left; in readFrame()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/
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()
116 pixels[ImageConstants.PIX_CHANNELS * (dims[0] * (top + j) + left) + in drawBoxes()
118 pixels[ImageConstants.PIX_CHANNELS * (dims[0] * (top + j) + left) + in drawBoxes()
133 for (int k = 0; k < (right - left); k++) { in drawBoxes()
[all …]
/frameworks/native/services/surfaceflinger/
DRefreshRateOverlay.cpp74 int left = 0; in draw() local
76 drawDash(left, *canvas); in draw()
78 drawNumber(refreshRate, left, color, *canvas); in draw()
80 left += 3 * (kDigitWidth + kDigitSpace); in draw()
84 SegmentDrawer::drawSegment(SegmentDrawer::Segment::Upper, left, color, *canvas); in draw()
87 SegmentDrawer::drawSegment(SegmentDrawer::Segment::UpperRight, left, color, in draw()
91 SegmentDrawer::drawSegment(SegmentDrawer::Segment::LowerRight, left, color, in draw()
95 SegmentDrawer::drawSegment(SegmentDrawer::Segment::Bottom, left, color, in draw()
99 SegmentDrawer::drawSegment(SegmentDrawer::Segment::LowerLeft, left, color, in draw()
103 SegmentDrawer::drawSegment(SegmentDrawer::Segment::UpperLeft, left, color, in draw()
[all …]
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/tests/src/androidx/media/filterfw/samples/simplecamera/
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()
118 pixels[ImageConstants.PIX_CHANNELS * (bitmap.getWidth() * (top + j) + left) + in testFaceSquareFilter()
120 pixels[ImageConstants.PIX_CHANNELS * (bitmap.getWidth() * (top + j) + left) + in testFaceSquareFilter()
135 for (int k = 0; k < (right - left); k++) { in testFaceSquareFilter()
[all …]
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/
DStyledCornersBitmapDrawable.java249 float left = bounds.left + mBorderWidth / 2; in draw() local
258 flapCornerRectF.offsetTo(left, top); in draw()
273 flapCornerRectF.offsetTo(left, bottom - mCornerFlapSide); in draw()
304 float left = bounds.left; in drawFakeCornersForCompatibilityMode() local
313 fakeCornerRectF.offsetTo(left, top); in drawFakeCornersForCompatibilityMode()
315 mCompatibilityModePath.moveTo(left, top); in drawFakeCornersForCompatibilityMode()
316 mCompatibilityModePath.lineTo(left + mCornerRoundRadius, top); in drawFakeCornersForCompatibilityMode()
341 fakeCornerRectF.offsetTo(left, bottom - fakeCornerRectF.height()); in drawFakeCornersForCompatibilityMode()
343 mCompatibilityModePath.moveTo(left, bottom); in drawFakeCornersForCompatibilityMode()
344 mCompatibilityModePath.lineTo(left, bottom - mCornerRoundRadius); in drawFakeCornersForCompatibilityMode()
[all …]
/frameworks/base/services/core/java/com/android/server/display/
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()

12345678910>>...53