Searched refs:right (Results 1 - 25 of 664) 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 rightImportance = right.getImportance();
37 final int rightPackagePriority = right.getPackagePriority();
44 final int rightPriority = right.sbn.getNotification().priority;
51 final float rightPeople = right.getContactAffinity();
58 return -1 * Long.compare(left.getRankingTimeMs(), right.getRankingTimeMs());
/frameworks/base/graphics/java/android/graphics/
H A DRectF.java27 * represented by the coordinates of its 4 edges (left, top, right bottom).
30 * the coordinates are sorted correctly (i.e. left <= right and top <= bottom).
35 public float right; field in class:RectF
45 * checking is performed, so the caller must ensure that left <= right and
50 * @param right The X coordinate of the right side of the rectangle
53 public RectF(float left, float top, float right, float bottom) { argument
56 this.right = right;
69 left = top = right
197 set(float left, float top, float right, float bottom) argument
302 contains(float left, float top, float right, float bottom) argument
344 intersect(float left, float top, float right, float bottom) argument
417 intersects(float left, float top, float right, float bottom) argument
466 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.java29 * represented by the coordinates of its 4 edges (left, top, right bottom).
32 * the coordinates are sorted correctly (i.e. left <= right and top <= bottom).
34 * Note that the right and bottom coordinates are exclusive. This means a Rect
37 * those of its bottom and right.
42 public int right; field in class:Rect
67 * checking is performed, so the caller must ensure that left <= right and
72 * @param right The X coordinate of the right side of the rectangle
75 public Rect(int left, int top, int right, int bottom) { argument
78 this.right
265 set(int left, int top, int right, int bottom) argument
350 inset(int left, int top, int right, int bottom) argument
385 contains(int left, int top, int right, int bottom) argument
427 intersect(int left, int top, int right, int bottom) argument
492 intersects(int left, int top, int right, int bottom) argument
520 union(int left, int top, int right, int bottom) argument
[all...]
H A DOutline.java161 public void setRect(int left, int top, int right, int bottom) { argument
162 setRoundRect(left, top, right, bottom, 0.0f);
169 setRect(rect.left, rect.top, rect.right, rect.bottom);
177 public void setRoundRect(int left, int top, int right, int bottom, float radius) { argument
178 if (left >= right || top >= bottom) {
184 mRect.set(left, top, right, bottom);
193 setRoundRect(rect.left, rect.top, rect.right, rect.bottom, radius);
227 public void setOval(int left, int top, int right, int bottom) { argument
228 if (left >= right || top >= bottom) {
233 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.h30 float right; member in class:android::FloatRect
34 : left(0), top(0), right(0), bottom(0) { }
36 : left(other.left), top(other.top), right(other.right), bottom(other.bottom) { }
38 inline float getWidth() const { return right - left; }
/frameworks/base/libs/hwui/
H A DRect.h34 (r).left, (r).top, (r).right, (r).bottom
36 (r).left(), (r).top(), (r).right(), (r).bottom()
46 float right; member in class:android::uirenderer::Rect
58 right(0),
62 inline Rect(float left, float top, float right, float bottom): argument
65 right(right),
72 right(width),
79 right(rect.fRight),
92 left = top = right
105 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/packages/SystemUI/src/com/android/systemui/recents/misc/
H A DRectFEvaluator.java33 * (left, top, right, and bottom).
47 float right = startValue.right + ((endValue.right - startValue.right) * fraction);
49 mRect.set(left, top, right, bottom);
/frameworks/native/libs/ui/
H A DRect.cpp36 right = -1;
50 if (right < rhs.right) {
60 right -= left - x;
70 right += x;
76 const Rect result(left + rhs.x, top + rhs.y, right + rhs.x, bottom + rhs.y);
81 const Rect result(left - rhs.x, top - rhs.y, right - rhs.x, bottom - rhs.y);
88 result->right = min(right, with.right);
106 int right = height - result.top; local
[all...]
/frameworks/compile/mclinker/include/mcld/ADT/
H A DTreeBase.h23 NodeBase* right; member in class:mcld::NodeBase
26 NodeBase() : left(NULL), right(NULL) {}
57 bool isRoot() const { return (m_pNode->right == m_pNode); }
60 return ((m_pNode->right) != (m_pNode->right->right));
64 return ((m_pNode->left) != (m_pNode->left->right));
83 this->m_pNode = this->m_pNode->right;
95 this->m_pNode->right = pOther;
/frameworks/base/services/core/java/com/android/server/wm/animation/
H A DClipRectLRAnimation.java24 * Special case of ClipRectAnimation that animates only the left/right
48 mFromRect.right + (int) ((mToRect.right - mFromRect.right) * it),
/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.h51 int32_t right; member in struct:ARect
/frameworks/support/design/base/android/support/design/widget/
H A DShadowViewDelegate.java23 void setShadowPadding(int left, int top, int right, int bottom); argument
/frameworks/data-binding/extensions/baseAdapters/src/main/java/android/databinding/adapters/
H A DCardViewBindingAdapter.java39 int right = view.getContentPaddingRight();
41 view.setContentPadding(left, top, right, bottom);
47 int right = view.getContentPaddingRight();
49 view.setContentPadding(left, top, right, bottom);
53 public static void setContentPaddingRight(CardView view, int right) { argument
57 view.setContentPadding(left, top, right, bottom);
64 int right = view.getContentPaddingRight();
65 view.setContentPadding(left, top, right, bottom);
/frameworks/base/core/java/android/app/usage/
H A DUsageStats.java121 * Add the statistics from the right {@link UsageStats} to the left. The package name for
123 * @param right The {@link UsageStats} object to merge into this one.
127 public void add(UsageStats right) { argument
128 if (!mPackageName.equals(right.mPackageName)) {
130 mPackageName + "' with UsageStats for package '" + right.mPackageName + "'.");
133 if (right.mBeginTimeStamp > mBeginTimeStamp) {
138 mLastEvent = right.mLastEvent;
139 mLastTimeUsed = right.mLastTimeUsed;
141 mBeginTimeStamp = Math.min(mBeginTimeStamp, right.mBeginTimeStamp);
142 mEndTimeStamp = Math.max(mEndTimeStamp, right
[all...]
/frameworks/base/core/java/android/view/
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/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/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
H A DCameraUtils.java60 long right = widthB * (long) heightB;
61 if (left == right) {
63 right = widthB;
65 return (left < right) ? -1 : (left > right ? 1 : 0);
/frameworks/base/services/core/java/com/android/server/policy/
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.h55 right = static_cast<int32_t>(w);
62 right = r;
69 right = rb.x;
76 left = top = right = bottom = 0;
91 return right - left;
100 return Rect(right - left, bottom - top);
109 right = rb.x;
118 return Point(right, bottom);
121 return Point(right, top);
130 (right
[all...]

Completed in 1856 milliseconds

1234567891011>>