Home
last modified time | relevance | path

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

12345678910>>...48

/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.java36 public float left; field in RectF
56 public RectF(float left, float top, float right, float bottom) { in RectF() argument
57 this.left = left; in RectF()
72 left = top = right = bottom = 0.0f; in RectF()
74 left = r.left; in RectF()
83 left = top = right = bottom = 0.0f; in RectF()
85 left = r.left; in RectF()
98 return left == r.left && top == r.top && right == r.right && bottom == r.bottom; in equals()
103 int result = (left != +0.0f ? Float.floatToIntBits(left) : 0); in hashCode()
112 return "RectF(" + left + ", " + top + ", " in toString()
[all …]
DRect.java49 public int left; field in Rect
84 public Rect(int left, int top, int right, int bottom) { in Rect() argument
85 this.left = left; in Rect()
100 left = top = right = bottom = 0; in Rect()
102 left = r.left; in Rect()
114 left = top = right = bottom = 0; in Rect()
116 left = r.left; in Rect()
139 return left == r.left && top == r.top && right == r.right && bottom == r.bottom; in equals()
144 int result = left; in hashCode()
154 sb.append("Rect("); sb.append(left); sb.append(", "); in toString()
[all …]
DInsets.java35 public final int left; field in Insets
40 private Insets(int left, int top, int right, int bottom) { in Insets() argument
41 this.left = left; in Insets()
59 public static @NonNull Insets of(int left, int top, int right, int bottom) { in of() argument
60 if (left == 0 && top == 0 && right == 0 && bottom == 0) { in of()
63 return new Insets(left, top, right, bottom); in of()
74 return (r == null) ? NONE : of(r.left, r.top, r.right, r.bottom); in of()
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()
[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.java32 private static <T> int selectImpl(@NonNull List<T> list, int left, int right, int k, in selectImpl() argument
35 if (left == right) { in selectImpl()
36 return left; in selectImpl()
38 final int pivotIndex = partition(list, left, right, (left + right) >> 1, comparator); in selectImpl()
44 left = pivotIndex + 1; in selectImpl()
49 private static int selectImpl(@NonNull int[] array, int left, int right, int k) { in selectImpl() argument
51 if (left == right) { in selectImpl()
52 return left; in selectImpl()
54 final int pivotIndex = partition(array, left, right, (left + right) >> 1); in selectImpl()
60 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/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/services/surfaceflinger/
DRefreshRateOverlay.cpp58 void RefreshRateOverlay::SevenSegmentDrawer::drawSegment(Segment segment, int left, SkColor color, in drawSegment() argument
63 return SkRect::MakeLTRB(left, 0, left + kDigitWidth, kDigitSpace); in drawSegment()
65 return SkRect::MakeLTRB(left, 0, left + kDigitSpace, kDigitHeight / 2); in drawSegment()
67 return SkRect::MakeLTRB(left + kDigitWidth - kDigitSpace, 0, left + kDigitWidth, in drawSegment()
70 return SkRect::MakeLTRB(left, kDigitHeight / 2 - kDigitSpace / 2, in drawSegment()
71 left + kDigitWidth, kDigitHeight / 2 + kDigitSpace / 2); in drawSegment()
73 return SkRect::MakeLTRB(left, kDigitHeight / 2, left + kDigitSpace, kDigitHeight); in drawSegment()
75 return SkRect::MakeLTRB(left + kDigitWidth - kDigitSpace, kDigitHeight / 2, in drawSegment()
76 left + kDigitWidth, kDigitHeight); in drawSegment()
78 return SkRect::MakeLTRB(left, kDigitHeight - kDigitSpace, left + kDigitWidth, in drawSegment()
[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/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/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/libs/net/common/testutils/devicetests/com/android/testutils/
DNetworkStatsUtils.kt41 val left = NetworkStats.Entry() in <lambda>() constant
45 leftTrimmedEmpty.getValues(i, left) in <lambda>()
46 val j: Int = rightTrimmedEmpty.findIndexHinted(left.iface, left.uid, left.set, left.tag, in <lambda>()
47 left.metered, left.roaming, left.defaultNetwork, i) in <lambda>()
50 if (left != right) return false in <lambda>()
/frameworks/libs/net/common/framework/com/android/net/module/util/
DLinkPropertiesUtils.java137 @Nullable LinkProperties left, @Nullable LinkProperties right) { in compareAddresses()
145 return new CompareResult<>(left != null ? left.getLinkAddresses() : null, in compareAddresses()
157 public static boolean isIdenticalAllLinkAddresses(@Nullable LinkProperties left, in isIdenticalAllLinkAddresses() argument
159 if (left == right) return true; in isIdenticalAllLinkAddresses()
160 if (left == null || right == null) return false; in isIdenticalAllLinkAddresses()
161 final List<LinkAddress> leftAddresses = left.getAllLinkAddresses(); in isIdenticalAllLinkAddresses()
174 public static boolean isIdenticalAddresses(@NonNull LinkProperties left, in isIdenticalAddresses() argument
176 final Collection<InetAddress> leftAddresses = left.getAddresses(); in isIdenticalAddresses()
189 public static boolean isIdenticalDnses(@NonNull LinkProperties left, in isIdenticalDnses() argument
191 final Collection<InetAddress> leftDnses = left.getDnsServers(); in isIdenticalDnses()
[all …]
/frameworks/base/tools/aapt2/compile/
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;
/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/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 …]

12345678910>>...48