Home
last modified time | relevance | path

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

12345678910>>...32

/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.java50 public int right; field in Rect
83 public Rect(int left, int top, int right, int bottom) { in Rect() argument
86 this.right = right; in Rect()
99 left = top = right = bottom = 0; in Rect()
103 right = r.right; in Rect()
113 left = top = right = bottom = 0; in Rect()
117 right = r.right; in Rect()
138 return left == r.left && top == r.top && right == r.right && bottom == r.bottom; in equals()
145 result = 31 * result + right; in hashCode()
154 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.java175 public void setRect(int left, int top, int right, int bottom) { in setRect() argument
176 setRoundRect(left, top, right, bottom, 0.0f); in setRect()
183 setRect(rect.left, rect.top, rect.right, rect.bottom); in setRect()
191 public void setRoundRect(int left, int top, int right, int bottom, float radius) { in setRoundRect() argument
192 if (left >= right || top >= bottom) { in setRoundRect()
202 mRect.set(left, top, right, bottom); in setRoundRect()
210 setRoundRect(rect.left, rect.top, rect.right, rect.bottom, radius); in setRoundRect()
244 public void setOval(int left, int top, int right, int bottom) { in setOval() argument
245 if (left >= right || top >= bottom) { in setOval()
250 if ((bottom - top) == (right - left)) { in setOval()
[all …]
DPath.java471 arcTo(oval.left, oval.top, oval.right, oval.bottom, startAngle, sweepAngle, forceMoveTo); in arcTo()
486 arcTo(oval.left, oval.top, oval.right, oval.bottom, startAngle, sweepAngle, false); in arcTo()
501 public void arcTo(float left, float top, float right, float bottom, float startAngle, in arcTo() argument
504 nArcTo(mNativePath, left, top, right, bottom, startAngle, sweepAngle, forceMoveTo); in arcTo()
532 private void detectSimplePath(float left, float top, float right, float bottom, Direction dir) { in detectSimplePath() argument
540 rects.op((int) left, (int) top, (int) right, (int) bottom, Region.Op.UNION); in detectSimplePath()
551 addRect(rect.left, rect.top, rect.right, rect.bottom, dir); in addRect()
563 public void addRect(float left, float top, float right, float bottom, @NonNull Direction dir) { in addRect() argument
564 detectSimplePath(left, top, right, bottom, dir); in addRect()
565 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/base/services/tests/wmtests/src/com/android/server/wm/
DTaskPositionerTests.java130 assertBoundsEquals(new Rect(MOUSE_DELTA_X, MOUSE_DELTA_Y, r.right, r.bottom), in testBasicFreeWindowResizing()
135 assertBoundsEquals(new Rect(400 + MOUSE_DELTA_X, MOUSE_DELTA_Y, r.right, r.bottom), in testBasicFreeWindowResizing()
141 new Rect(r.right - mMinVisibleWidth, r.top + MOUSE_DELTA_Y, r.right, r.bottom), in testBasicFreeWindowResizing()
147 new Rect(r.left + MOUSE_DELTA_X, r.bottom - mMinVisibleHeight, r.right, r.bottom), in testBasicFreeWindowResizing()
156 assertBoundsEquals(new Rect(MOUSE_DELTA_X, r.top, r.right, r.bottom), in testBasicFreeWindowResizing()
161 assertBoundsEquals(new Rect(200 + MOUSE_DELTA_X, r.top, r.right, r.bottom), in testBasicFreeWindowResizing()
166 assertBoundsEquals(new Rect(r.left + MOUSE_DELTA_X, r.top, r.right, r.bottom), in testBasicFreeWindowResizing()
171 assertBoundsEquals(new Rect(r.left + MOUSE_DELTA_X, r.top, r.right, r.bottom), in testBasicFreeWindowResizing()
181 final int midX = (r.left + r.right) / 2; in testFreeWindowResizingTestAllEdges()
190 assertEquals(r.right, mPositioner.getWindowDragBounds().right); in testFreeWindowResizingTestAllEdges()
[all …]
/frameworks/native/libs/ui/
DRect.cpp36 right = -1; in makeInvalid()
50 if (right < rhs.right) { in operator <()
60 right -= left - x; in offsetTo()
70 right += x; in offsetBy()
78 this->right -= _right; in inset()
84 const Rect result(left + rhs.x, top + rhs.y, right + rhs.x, bottom + rhs.y); in operator +()
89 const Rect result(left - rhs.x, top - rhs.y, right - rhs.x, bottom - rhs.y); in operator -()
96 result->right = min(right, with.right); in intersect()
104 result = Rect(width - result.right, result.top, width - result.left, in transform()
108 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.add(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.add(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/core/java/android/view/
DGravity.java191 + ((container.right - container.left - w)/2) + xAdj; in apply()
192 outRect.right = outRect.left + w; in apply()
198 if (outRect.right > container.right) { in apply()
199 outRect.right = container.right; in apply()
205 outRect.right = outRect.left + w; in apply()
208 if (outRect.right > container.right) { in apply()
209 outRect.right = container.right; in apply()
214 outRect.right = container.right - xAdj; in apply()
215 outRect.left = outRect.right - w; in apply()
225 outRect.right = container.right + xAdj; in apply()
[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/native/libs/ui/include_vndk/ui/
DFloatRect.h25 : left(_left), top(_top), right(_right), bottom(_bottom) {} in FloatRect()
27 float getWidth() const { return right - left; } in getWidth()
36 (right < other.right) ? right : other.right, in intersect()
47 float right = 0.0f; variable
52 return a.left == b.left && a.top == b.top && a.right == b.right && a.bottom == b.bottom;
DRect.h55 right = static_cast<int32_t>(w); in Rect()
62 right = r; in Rect()
69 right = rb.x; in Rect()
78 right = static_cast<int32_t>(floatRect.right + 0.5f); in Rect()
85 right = size.width; in Rect()
92 left = top = right = bottom = 0; in clear()
108 return right - left; in getWidth()
121 return Rect(right - left, bottom - top); in getBounds()
130 right = rb.x; in setRightBottom()
139 return Point(right, bottom); in rightBottom()
[all …]
/frameworks/native/libs/ui/include/ui/
DFloatRect.h25 : left(_left), top(_top), right(_right), bottom(_bottom) {} in FloatRect()
27 float getWidth() const { return right - left; } in getWidth()
36 (right < other.right) ? right : other.right, in intersect()
47 float right = 0.0f; variable
52 return a.left == b.left && a.top == b.top && a.right == b.right && a.bottom == b.bottom;
DRect.h55 right = static_cast<int32_t>(w); in Rect()
62 right = r; in Rect()
69 right = rb.x; in Rect()
78 right = static_cast<int32_t>(floatRect.right + 0.5f); in Rect()
85 right = size.width; in Rect()
92 left = top = right = bottom = 0; in clear()
108 return right - left; in getWidth()
121 return Rect(right - left, bottom - top); in getBounds()
130 right = rb.x; in setRightBottom()
139 return Point(right, bottom); in rightBottom()
[all …]
/frameworks/libs/net/common/framework/android/net/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/av/media/libeffects/lvm/lib/Common/src/
DFrom2iToMS_16x16.cpp33 LVM_INT32 temp1,left,right; in From2iToMS_16x16() local
40 right = (LVM_INT32)*src; in From2iToMS_16x16()
44 temp1 = (left+right)>>1; in From2iToMS_16x16()
49 temp1 = (left-right)>>1; in From2iToMS_16x16()
61 LVM_FLOAT temp1,left,right; in From2iToMS_Float() local
68 right = (LVM_FLOAT)*src; in From2iToMS_Float()
72 temp1 = (left + right) / 2.0f; in From2iToMS_Float()
77 temp1 = (left - right) / 2.0f; in From2iToMS_Float()
/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/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DExpandableOutlineView.java90 int right = getWidth() + Math.min(translation, 0);
92 outline.setRect(left, top, right, bottom);
108 int right; in getClipPath() local
119 right = getWidth() + halfExtraWidth + Math.min(translation, 0); in getClipPath()
127 right = mOutlineRect.right; in getClipPath()
143 getRoundedRectPath(left, top, right, bottom, topRoundness, in getClipPath()
148 public static void getRoundedRectPath(int left, int top, int right, int bottom, in getRoundedRectPath() argument
151 int width = right - left; in getRoundedRectPath()
159 outPath.lineTo(right - topRoundnessX, top); in getRoundedRectPath()
160 outPath.quadTo(right, top, right, top + topRoundness); in getRoundedRectPath()
[all …]
/frameworks/base/core/java/android/app/usage/
DUsageStats.java260 private void mergeEventMap(SparseIntArray left, SparseIntArray right) { in mergeEventMap() argument
261 final int size = right.size(); in mergeEventMap()
263 final int instanceId = right.keyAt(i); in mergeEventMap()
264 final int event = right.valueAt(i); in mergeEventMap()
274 private void mergeEventMap(ArrayMap<String, Integer> left, ArrayMap<String, Integer> right) { in mergeEventMap() argument
275 final int size = right.size(); in mergeEventMap()
277 final String className = right.keyAt(i); in mergeEventMap()
278 final Integer event = right.valueAt(i); in mergeEventMap()
294 public void add(UsageStats right) { in add() argument
295 if (!mPackageName.equals(right.mPackageName)) { in add()
[all …]
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/tests/net/common/java/android/net/
DDhcpInfoTest.java86 private boolean dhcpInfoEquals(@Nullable DhcpInfo left, @Nullable DhcpInfo right) { in dhcpInfoEquals() argument
87 if (left == null && right == null) return true; in dhcpInfoEquals()
89 if (left == null || right == null) return false; in dhcpInfoEquals()
91 return left.ipAddress == right.ipAddress in dhcpInfoEquals()
92 && left.gateway == right.gateway in dhcpInfoEquals()
93 && left.netmask == right.netmask in dhcpInfoEquals()
94 && left.dns1 == right.dns1 in dhcpInfoEquals()
95 && left.dns2 == right.dns2 in dhcpInfoEquals()
96 && left.serverAddress == right.serverAddress in dhcpInfoEquals()
97 && left.leaseDuration == right.leaseDuration; in dhcpInfoEquals()
/frameworks/minikin/include/minikin/
DRange.h72 inline static bool intersects(const Range& left, const Range& right) { in intersects() argument
73 return left.isValid() && right.isValid() && left.mStart < right.mEnd && in intersects()
74 right.mStart < left.mEnd; in intersects()
76 inline static Range intersection(const Range& left, const Range& right) { in intersection() argument
77 return Range(std::max(left.mStart, right.mStart), std::min(left.mEnd, right.mEnd)); in intersection()
82 static Range merge(const Range& left, const Range& right) { in merge() argument
83 return Range({std::min(left.mStart, right.mStart), std::max(left.mEnd, right.mEnd)}); in merge()
/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 boolean rightImportantColorized = isImportantColorized(right); in compare()
72 boolean rightImportantOngoing = isImportantOngoing(right); in compare()
80 boolean rightMessaging = isImportantMessaging(right); in compare()
87 boolean rightPeople = isImportantPeople(right); in compare()
89 Float.compare(left.getContactAffinity(), right.getContactAffinity()); in compare()
113 final int rightPackagePriority = right.getPackagePriority(); in compare()
120 final int rightPriority = right.sbn.getNotification().priority; in compare()
127 final boolean rightInterruptive = right.isInterruptive(); in compare()
[all …]

12345678910>>...32