Searched refs:right (Results 1 - 25 of 496) sorted by relevance

1234567891011>>

/frameworks/base/test-runner/src/junit/runner/
H A DSorter.java13 public void swap(Vector values, int left, int right); argument
16 public static void sortStrings(Vector values , int left, int right, Swapper swapper) { argument
18 int oright= right;
19 String mid= (String)values.elementAt((left + right) / 2);
23 while (mid.compareTo((String)(values.elementAt(right))) < 0)
24 right--;
25 if (left <= right) {
26 swapper.swap(values, left, right);
28 right--;
30 } while (left <= right);
[all...]
/frameworks/base/services/core/java/com/android/server/notification/
H A DGlobalSortKeyComparator.java25 public int compare(NotificationRecord left, NotificationRecord right) { argument
29 if (right.getGlobalSortKey() == null) {
30 throw new IllegalStateException("Missing right global sort key: " + right);
32 return left.getGlobalSortKey().compareTo(right.getGlobalSortKey());
H A DNotificationComparator.java27 public int compare(NotificationRecord left, NotificationRecord right) { argument
29 final int rightPackagePriority = right.getPackagePriority();
36 final int rightScore = right.sbn.getScore();
43 final float rightPeople = right.getContactAffinity();
50 return -1 * Long.compare(left.getRankingTimeMs(), right.getRankingTimeMs());
/frameworks/base/graphics/java/android/graphics/
H A DRectF.java28 * represented by the coordinates of its 4 edges (left, top, right bottom).
31 * the coordinates are sorted correctly (i.e. left <= right and top <= bottom).
36 public float right; field in class:RectF
46 * checking is performed, so the caller must ensure that left <= right and
51 * @param right The X coordinate of the right side of the rectangle
54 public RectF(float left, float top, float right, float bottom) { argument
57 this.right = right;
70 left = top = right
198 set(float left, float top, float right, float bottom) argument
303 contains(float left, float top, float right, float bottom) argument
345 intersect(float left, float top, float right, float bottom) argument
418 intersects(float left, float top, float right, float bottom) argument
467 union(float left, float top, float right, float bottom) argument
[all...]
H A DInsets.java33 public final int right; field in class:Insets
36 private Insets(int left, int top, int right, int bottom) { argument
39 this.right = right;
50 * @param right the right inset
55 public static Insets of(int left, int top, int right, int bottom) { argument
56 if (left == 0 && top == 0 && right == 0 && bottom == 0) {
59 return new Insets(left, top, right, bottom);
70 return (r == null) ? NONE : of(r.left, r.top, r.right,
[all...]
H A DRect.java28 * represented by the coordinates of its 4 edges (left, top, right bottom).
31 * the coordinates are sorted correctly (i.e. left <= right and top <= bottom).
36 public int right; field in class:Rect
61 * checking is performed, so the caller must ensure that left <= right and
66 * @param right The X coordinate of the right side of the rectangle
69 public Rect(int left, int top, int right, int bottom) { argument
72 this.right = right;
85 left = top = right
259 set(int left, int top, int right, int bottom) argument
351 contains(int left, int top, int right, int bottom) argument
392 intersect(int left, int top, int right, int bottom) argument
455 intersects(int left, int top, int right, int bottom) argument
483 union(int left, int top, int right, int bottom) argument
[all...]
H A DOutline.java142 public void setRect(int left, int top, int right, int bottom) { argument
143 setRoundRect(left, top, right, bottom, 0.0f);
150 setRect(rect.left, rect.top, rect.right, rect.bottom);
158 public void setRoundRect(int left, int top, int right, int bottom, float radius) { argument
159 if (left >= right || top >= bottom) {
165 mRect.set(left, top, right, bottom);
174 setRoundRect(rect.left, rect.top, rect.right, rect.bottom, radius);
180 public void setOval(int left, int top, int right, int bottom) { argument
181 if (left >= right || top >= bottom) {
186 if ((bottom - top) == (right
[all...]
/frameworks/av/media/libeffects/lvm/lib/Common/src/
H A DFrom2iToMS_16x16.c33 LVM_INT32 temp1,left,right; local
40 right = (LVM_INT32)*src;
44 temp1 = (left+right)>>1;
49 temp1 = (left-right)>>1;
/frameworks/native/services/surfaceflinger/DisplayHardware/
H A DFloatRect.h29 float right; member in class:android::FloatRect
34 : left(other.left), top(other.top), right(other.right), bottom(other.bottom) { }
36 inline float getWidth() const { return right - left; }
/frameworks/base/libs/hwui/
H A DRect.h32 (r).left, (r).top, (r).right, (r).bottom
34 (r).left(), (r).top(), (r).right(), (r).bottom()
44 float right; member in class:android::uirenderer::Rect
56 right(0),
60 inline Rect(float left, float top, float right, float bottom): argument
63 right(right),
70 right(width),
77 right(rect.fRight),
90 left = top = right
103 set(float left, float top, float right, float bottom) argument
[all...]
/frameworks/base/core/java/android/animation/
H A DRectEvaluator.java59 * (left, top, right, and bottom).
75 int right = startValue.right + (int) ((endValue.right - startValue.right) * fraction);
78 return new Rect(left, top, right, bottom);
80 mRect.set(left, top, right, bottom);
/frameworks/base/core/java/android/app/usage/
H A DUsageStats.java120 * Add the statistics from the right {@link UsageStats} to the left. The package name for
122 * @param right The {@link UsageStats} object to merge into this one.
126 public void add(UsageStats right) { argument
127 if (!mPackageName.equals(right.mPackageName)) {
129 mPackageName + "' with UsageStats for package '" + right.mPackageName + "'.");
132 if (right.mEndTimeStamp > mEndTimeStamp) {
133 mLastEvent = right.mLastEvent;
134 mEndTimeStamp = right.mEndTimeStamp;
135 mLastTimeUsed = right.mLastTimeUsed;
137 mBeginTimeStamp = Math.min(mBeginTimeStamp, right
[all...]
/frameworks/native/libs/ui/
H A DRect.cpp33 right = -1;
47 if (right < rhs.right) {
57 right -= left - x;
67 right += x;
73 const Rect result(left + rhs.x, top + rhs.y, right + rhs.x, bottom + rhs.y);
78 const Rect result(left - rhs.x, top - rhs.y, right - rhs.x, bottom - rhs.y);
85 result->right = min(right, with.right);
103 int right = height - result.top; local
[all...]
/frameworks/base/core/java/android/view/
H A DWindowInsets.java138 * Returns the right system window inset in pixels.
144 * @return The right system window inset
147 return mSystemWindowInsets.right;
192 * Returns the right window decor inset in pixels.
198 * @return The right window decor inset
202 return mWindowDecorInsets.right;
230 mSystemWindowInsets.right != 0 || mSystemWindowInsets.bottom != 0;
245 mWindowDecorInsets.right != 0 || mWindowDecorInsets.bottom != 0;
277 * <p>A round window's left, top, right and bottom edges reach all the way to the
305 * @param right tru
310 consumeSystemWindowInsets(boolean left, boolean top, boolean right, boolean bottom) argument
334 replaceSystemWindowInsets(int left, int top, int right, int bottom) argument
368 consumeWindowDecorInsets(boolean left, boolean top, boolean right, boolean bottom) argument
384 replaceWindowDecorInsets(int left, int top, int right, int bottom) argument
[all...]
H A DGravity.java34 /** Raw bit controlling how the right/bottom edge is placed. */
36 /** Raw bit controlling whether the right/bottom edge is clipped to its
51 /** Push object to the right of its container, not changing its size. */
176 * pushes it to the right; if gravity is RIGHT it pushes it to
178 * right or left; otherwise it is ignored.
191 + ((container.right - container.left - w)/2) + xAdj;
192 outRect.right = outRect.left + w;
198 if (outRect.right > container.right) {
199 outRect.right
[all...]
/frameworks/compile/mclinker/include/mcld/ADT/
H A DTreeBase.h23 NodeBase *right; member in class:mcld::NodeBase
27 : left(0), right(0)
64 { return (m_pNode->right == m_pNode); }
67 { return ((m_pNode->right) != (m_pNode->right->right)); }
70 { return ((m_pNode->left) != (m_pNode->left->right)); }
88 this->m_pNode = this->m_pNode->right;
100 this->m_pNode->right = pOther;
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
H A DSystemViewInfo.java30 int right, int bottom) {
31 super(name, cookie, left, top, right, bottom);
35 int right, int bottom, Object viewObject, Object layoutParamsObject) {
36 super(name, cookie, left, top, right, bottom, viewObject,
29 SystemViewInfo(String name, Object cookie, int left, int top, int right, int bottom) argument
34 SystemViewInfo(String name, Object cookie, int left, int top, int right, int bottom, Object viewObject, Object layoutParamsObject) argument
/frameworks/native/include/android/
H A Drect.h33 int32_t right; member in struct:ARect
/frameworks/base/core/java/com/android/internal/widget/
H A DBackgroundFallback.java52 int right = 0;
75 right = Math.max(right, child.getRight());
79 if (left >= right || top >= bottom) {
92 if (right < width) {
93 mBackgroundFallback.setBounds(right, top, width, height);
97 mBackgroundFallback.setBounds(left, bottom, right, height);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DExpandableOutlineView.java66 setOutlineRect(rect.left, rect.top, rect.right, rect.bottom);
73 protected void setOutlineRect(float left, float top, float right, float bottom) { argument
76 mOutlineRect.set((int) left, (int) top, (int) right, (int) bottom);
80 mOutlineRect.right = (int) Math.max(left, mOutlineRect.right);
/frameworks/base/core/java/android/view/animation/
H A DClipRectAnimation.java50 int r = mFromRect.right + (int) ((mToRect.right - mFromRect.right) * it);
/frameworks/base/policy/src/com/android/internal/policy/impl/
H A DRecentApplicationsBackground.java60 protected boolean setFrame(int left, int top, int right, int bottom) { argument
62 if (mLeft != left || mRight != right || mTop != top || mBottom != bottom) {
65 return super.setFrame(left, top, right, bottom);
105 int left, right;
109 right = chld.right + bkg.right;
113 right = getRight();
115 background.setBounds(left, top, right, bottom);
145 r.bottom = r.right
[all...]
/frameworks/native/include/ui/
H A DRect.h41 right = w;
48 right = r;
55 right = rb.x;
62 left = top = right = bottom = 0;
77 return right - left;
86 return Rect(right - left, bottom - top);
95 right = rb.x;
104 return Point(right, bottom);
107 return Point(right, top);
116 (right
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
H A DAnimateableViewBounds.java61 mSourceView.getWidth() - Math.max(mClipRect.right, mOutlineClipRect.right),
103 /** Animates the right clip. */
104 void animateClipRight(int right, int duration) { argument
109 mClipRightAnimator = ObjectAnimator.ofInt(this, "clipRight", right);
115 /** Sets the right clip. */
116 public void setClipRight(int right) { argument
117 if (right != mClipRect.right) {
118 mClipRect.right
[all...]
/frameworks/base/core/java/android/text/style/
H A DLineBackgroundSpan.java26 int left, int right,
25 drawBackground(Canvas c, Paint p, int left, int right, int top, int baseline, int bottom, CharSequence text, int start, int end, int lnum) argument

Completed in 3201 milliseconds

1234567891011>>