Home
last modified time | relevance | path

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

12345678910>>...45

/frameworks/base/graphics/java/android/graphics/
DRectF.java38 public float right; field in RectF
56 public RectF(float left, float top, float right, float bottom) { in RectF() argument
59 this.right = right; in RectF()
72 left = top = right = bottom = 0.0f; in RectF()
76 right = r.right; in RectF()
83 left = top = right = bottom = 0.0f; in RectF()
87 right = r.right; in RectF()
98 return left == r.left && top == r.top && right == r.right && bottom == r.bottom; in equals()
105 result = 31 * result + (right != +0.0f ? Float.floatToIntBits(right) : 0); in hashCode()
113 + right + ", " + bottom + ")"; in toString()
[all …]
DRect.java51 public int right; field in Rect
84 public Rect(int left, int top, int right, int bottom) { in Rect() argument
87 this.right = right; in Rect()
100 left = top = right = bottom = 0; in Rect()
104 right = r.right; in Rect()
114 left = top = right = bottom = 0; in Rect()
118 right = r.right; in Rect()
139 return left == r.left && top == r.top && right == r.right && bottom == r.bottom; in equals()
146 result = 31 * result + right; in hashCode()
155 sb.append(top); sb.append(" - "); sb.append(right); in toString()
[all …]
DInsets.java37 public final int right; field in Insets
40 private Insets(int left, int top, int right, int bottom) { in Insets() argument
43 this.right = right; 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 …]
DPath.java478 arcTo(oval.left, oval.top, oval.right, oval.bottom, startAngle, sweepAngle, forceMoveTo); in arcTo()
493 arcTo(oval.left, oval.top, oval.right, oval.bottom, startAngle, sweepAngle, false); in arcTo()
508 public void arcTo(float left, float top, float right, float bottom, float startAngle, in arcTo() argument
511 nArcTo(mNativePath, left, top, right, bottom, startAngle, sweepAngle, forceMoveTo); in arcTo()
539 private void detectSimplePath(float left, float top, float right, float bottom, Direction dir) { in detectSimplePath() argument
547 rects.op((int) left, (int) top, (int) right, (int) bottom, Region.Op.UNION); in detectSimplePath()
558 addRect(rect.left, rect.top, rect.right, rect.bottom, dir); in addRect()
570 public void addRect(float left, float top, float right, float bottom, @NonNull Direction dir) { in addRect() argument
571 detectSimplePath(left, top, right, bottom, dir); in addRect()
572 nAddRect(mNativePath, left, top, right, bottom, dir.nativeInt); in addRect()
[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()
44 float right; variable
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()
64 , right(rect.fRight) in Rect()
71 , right(rect.fRight) in Rect()
78 inline void clear() { left = top = right = bottom = 0.0f; } in clear()
[all …]
/frameworks/native/libs/ui/
DRect.cpp37 right = -1; in makeInvalid()
51 if (right < rhs.right) { in operator <()
61 right -= left - x; in offsetTo()
71 right += x; in offsetBy()
79 this->right -= _right; 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 -()
97 result->right = min(right, with.right); in intersect()
105 result = Rect(width - result.right, result.top, width - result.left, in transform()
109 result = Rect(result.left, height - result.bottom, result.right, in transform()
[all …]
DRegion.cpp139 int right = current->right; in reverseRectsResolvingJunctions() local
148 if (prev.right <= left) break; in reverseRectsResolvingJunctions()
150 if (prev.right > left && prev.right < right) { in reverseRectsResolvingJunctions()
151 dst.push_back(Rect(prev.right, top, right, bottom)); in reverseRectsResolvingJunctions()
152 right = prev.right; in reverseRectsResolvingJunctions()
155 if (prev.left > left && prev.left < right) { in reverseRectsResolvingJunctions()
156 dst.push_back(Rect(prev.left, top, right, bottom)); in reverseRectsResolvingJunctions()
157 right = prev.left; in reverseRectsResolvingJunctions()
162 if (prev.left >= right) { in reverseRectsResolvingJunctions()
167 if (prev.left >= right) break; in reverseRectsResolvingJunctions()
[all …]
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DTaskPositionerTests.java149 assertBoundsEquals(new Rect(MOUSE_DELTA_X, MOUSE_DELTA_Y, r.right, r.bottom), in testBasicFreeWindowResizing()
154 assertBoundsEquals(new Rect(400 + MOUSE_DELTA_X, MOUSE_DELTA_Y, r.right, r.bottom), in testBasicFreeWindowResizing()
160 new Rect(r.right - mMinVisibleWidth, r.top + MOUSE_DELTA_Y, r.right, r.bottom), in testBasicFreeWindowResizing()
166 new Rect(r.left + MOUSE_DELTA_X, r.bottom - mMinVisibleHeight, r.right, r.bottom), in testBasicFreeWindowResizing()
175 assertBoundsEquals(new Rect(MOUSE_DELTA_X, r.top, r.right, r.bottom), in testBasicFreeWindowResizing()
180 assertBoundsEquals(new Rect(200 + MOUSE_DELTA_X, r.top, r.right, r.bottom), in testBasicFreeWindowResizing()
185 assertBoundsEquals(new Rect(r.left + MOUSE_DELTA_X, r.top, r.right, r.bottom), in testBasicFreeWindowResizing()
190 assertBoundsEquals(new Rect(r.left + MOUSE_DELTA_X, r.top, r.right, r.bottom), in testBasicFreeWindowResizing()
200 final int midX = (r.left + r.right) / 2; in testFreeWindowResizingTestAllEdges()
209 assertEquals(r.right, mPositioner.getWindowDragBounds().right); in testFreeWindowResizingTestAllEdges()
[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()
39 (right < other.right) ? right : other.right, in intersect()
50 float right = 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.h58 right = static_cast<int32_t>(w); in Rect()
65 right = r; in Rect()
72 right = rb.x; in Rect()
81 right = static_cast<int32_t>(floatRect.right + 0.5f); in Rect()
88 right = size.width; 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()
133 right = rb.x; in setRightBottom()
142 return Point(right, bottom); in rightBottom()
[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()
39 (right < other.right) ? right : other.right, in intersect()
50 float right = 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.h58 right = static_cast<int32_t>(w); in Rect()
65 right = r; in Rect()
72 right = rb.x; in Rect()
81 right = static_cast<int32_t>(floatRect.right + 0.5f); in Rect()
88 right = size.width; 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()
133 right = rb.x; in setRightBottom()
142 return Point(right, bottom); in rightBottom()
[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()
39 (right < other.right) ? right : other.right, in intersect()
50 float right = 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.h58 right = static_cast<int32_t>(w); in Rect()
65 right = r; in Rect()
72 right = rb.x; in Rect()
81 right = static_cast<int32_t>(floatRect.right + 0.5f); in Rect()
88 right = size.width; 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()
133 right = rb.x; in setRightBottom()
142 return Point(right, bottom); in rightBottom()
[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;
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;
/frameworks/av/media/libaaudio/src/flowgraph/resampler/
DPolyphaseResamplerStereo.cpp38 const float right = frame[1]; in writeFrame() local
41 dest[1] = right; in writeFrame()
43 dest[1 + offset] = right; in writeFrame()
49 float right = 0.0; in readFrame() local
59 right += *xFrame++ * coefficient; in readFrame()
63 right += *xFrame++ * coefficient; in readFrame()
67 right += *xFrame++ * coefficient; in readFrame()
71 right += *xFrame++ * coefficient; in readFrame()
78 frame[1] = right; in readFrame()
/frameworks/base/core/java/android/view/
DGravity.java223 + ((container.right - container.left - w)/2) + xAdj; in apply()
224 outRect.right = outRect.left + w; in apply()
230 if (outRect.right > container.right) { in apply()
231 outRect.right = container.right; in apply()
237 outRect.right = outRect.left + w; 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()
247 outRect.left = outRect.right - w; in apply()
257 outRect.right = container.right + xAdj; in apply()
[all …]
/frameworks/libs/net/common/framework/com/android/net/module/util/
DLinkPropertiesUtils.java137 @Nullable LinkProperties left, @Nullable LinkProperties right) { in compareAddresses() argument
146 right != null ? right.getLinkAddresses() : null); in compareAddresses()
157 @NonNull LinkProperties right) { in isIdenticalAddresses() argument
159 final Collection<InetAddress> rightAddresses = right.getAddresses(); in isIdenticalAddresses()
172 @NonNull LinkProperties right) { in isIdenticalDnses() argument
174 final Collection<InetAddress> rightDnses = right.getDnsServers(); in isIdenticalDnses()
177 final String rightDomains = right.getDomains(); in isIdenticalDnses()
195 @NonNull LinkProperties right) { in isIdenticalHttpProxy() argument
196 return Objects.equals(left.getHttpProxy(), right.getHttpProxy()); in isIdenticalHttpProxy()
207 @NonNull LinkProperties right) { in isIdenticalInterfaceName() argument
[all …]
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/
DStyledCornersBitmapDrawable.java251 float right = bounds.right - mBorderWidth / 2; in draw() local
263 flapCornerRectF.offsetTo(right - mCornerFlapSide, top); in draw()
268 flapCornerRectF.offsetTo(right - mCornerFlapSide, bottom - mCornerFlapSide); in draw()
306 float right = bounds.right; in drawFakeCornersForCompatibilityMode() local
322 fakeCornerRectF.offsetTo(right - fakeCornerRectF.width(), top); in drawFakeCornersForCompatibilityMode()
324 mCompatibilityModePath.moveTo(right, top); in drawFakeCornersForCompatibilityMode()
325 mCompatibilityModePath.lineTo(right, top + mCornerRoundRadius); in drawFakeCornersForCompatibilityMode()
332 .offsetTo(right - fakeCornerRectF.width(), bottom - fakeCornerRectF.height()); in drawFakeCornersForCompatibilityMode()
334 mCompatibilityModePath.moveTo(right, bottom); in drawFakeCornersForCompatibilityMode()
335 mCompatibilityModePath.lineTo(right - mCornerRoundRadius, bottom); in drawFakeCornersForCompatibilityMode()
[all …]
/frameworks/base/core/java/android/app/usage/
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()
/frameworks/compile/mclinker/include/mcld/ADT/
DTreeBase.h23 NodeBase* right; variable
26 NodeBase() : left(NULL), right(NULL) {} in NodeBase()
57 bool isRoot() const { return (m_pNode->right == m_pNode); } in isRoot()
60 return ((m_pNode->right) != (m_pNode->right->right)); in hasRightChild()
64 return ((m_pNode->left) != (m_pNode->left->right)); in hasLeftChild()
83 this->m_pNode = this->m_pNode->right;
95 this->m_pNode->right = pOther;
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationComparator.java51 public int compare(NotificationRecord left, NotificationRecord right) { in compare() argument
53 final int rightImportance = right.getImportance(); in compare()
64 if (left.getRankingScore() != right.getRankingScore()) { in compare()
65 return -1 * Float.compare(left.getRankingScore(), right.getRankingScore()); in compare()
70 boolean rightImportantColorized = isImportantColorized(right); in compare()
78 boolean rightImportantOngoing = isImportantOngoing(right); in compare()
86 boolean rightMessaging = isImportantMessaging(right); in compare()
93 boolean rightPeople = isImportantPeople(right); in compare()
95 Float.compare(left.getContactAffinity(), right.getContactAffinity()); in compare()
108 boolean rightSystemMax = isSystemMax(right); in compare()
[all …]
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/windowdecor/
DTaskPositionerTest.kt154 rectAfterMove.right += 10 in <lambda>()
214 val newX = STARTING_BOUNDS.right.toFloat() + 10 in <lambda>()
243 STARTING_BOUNDS.right.toFloat(), in <lambda>()
248 val newX = STARTING_BOUNDS.right.toFloat() - 5 in <lambda>()
273 STARTING_BOUNDS.right.toFloat(), in <lambda>()
278 val newX = STARTING_BOUNDS.right.toFloat() - 95 in <lambda>()
291 != 0) && change.configuration.windowConfiguration.bounds.right == in <lambda>()
292 STARTING_BOUNDS.right && in <lambda>()
303 STARTING_BOUNDS.right.toFloat(), in <lambda>()
308 val newX = STARTING_BOUNDS.right.toFloat() - 5 in <lambda>()
[all …]
/frameworks/base/core/java/android/animation/
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()

12345678910>>...45