/frameworks/base/test-runner/src/junit/runner/ |
H A D | Sorter.java | 13 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 D | GlobalSortKeyComparator.java | 25 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 D | NotificationComparator.java | 27 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 D | RectF.java | 27 * 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 D | Insets.java | 33 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 D | Rect.java | 29 * 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). 37 public int right; field in class:Rect 62 * checking is performed, so the caller must ensure that left <= right and 67 * @param right The X coordinate of the right side of the rectangle 70 public Rect(int left, int top, int right, int bottom) { argument 73 this.right = right; 86 left = top = right 260 set(int left, int top, int right, int bottom) argument 352 contains(int left, int top, int right, int bottom) argument 394 intersect(int left, int top, int right, int bottom) argument 459 intersects(int left, int top, int right, int bottom) argument 487 union(int left, int top, int right, int bottom) argument [all...] |
H A D | Outline.java | 143 public void setRect(int left, int top, int right, int bottom) { argument 144 setRoundRect(left, top, right, bottom, 0.0f); 151 setRect(rect.left, rect.top, rect.right, rect.bottom); 159 public void setRoundRect(int left, int top, int right, int bottom, float radius) { argument 160 if (left >= right || top >= bottom) { 166 mRect.set(left, top, right, bottom); 175 setRoundRect(rect.left, rect.top, rect.right, rect.bottom, radius); 181 public void setOval(int left, int top, int right, int bottom) { argument 182 if (left >= right || top >= bottom) { 187 if ((bottom - top) == (right [all...] |
/frameworks/av/media/libeffects/lvm/lib/Common/src/ |
H A D | From2iToMS_16x16.c | 33 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 D | FloatRect.h | 29 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 D | Rect.h | 33 (r).left, (r).top, (r).right, (r).bottom 35 (r).left(), (r).top(), (r).right(), (r).bottom() 45 float right; member in class:android::uirenderer::Rect 57 right(0), 61 inline Rect(float left, float top, float right, float bottom): argument 64 right(right), 71 right(width), 78 right(rect.fRight), 91 left = top = right 104 set(float left, float top, float right, float bottom) argument [all...] |
/frameworks/base/core/java/android/animation/ |
H A D | RectEvaluator.java | 59 * (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/native/libs/ui/ |
H A D | Rect.cpp | 35 right = -1; 49 if (right < rhs.right) { 59 right -= left - x; 69 right += x; 75 const Rect result(left + rhs.x, top + rhs.y, right + rhs.x, bottom + rhs.y); 80 const Rect result(left - rhs.x, top - rhs.y, right - rhs.x, bottom - rhs.y); 87 result->right = min(right, with.right); 105 int right = height - result.top; local [all...] |
/frameworks/base/core/java/android/view/ |
H A D | WindowInsets.java | 138 * 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 D | Gravity.java | 34 /** 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 D | TreeBase.h | 23 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/core/java/android/app/usage/ |
H A D | UsageStats.java | 156 * Add the statistics from the right {@link UsageStats} to the left. The package name for 158 * @param right The {@link UsageStats} object to merge into this one. 162 public void add(UsageStats right) { argument 163 if (!mPackageName.equals(right.mPackageName)) { 165 mPackageName + "' with UsageStats for package '" + right.mPackageName + "'."); 168 if (right.mEndTimeStamp > mEndTimeStamp) { 169 mLastEvent = right.mLastEvent; 170 mEndTimeStamp = right.mEndTimeStamp; 171 mLastTimeUsed = right.mLastTimeUsed; 172 mBeginIdleTime = right [all...] |
/frameworks/base/core/java/android/view/animation/ |
H A D | ClipRectLRAnimation.java | 22 * Special case of ClipRectAnimation that animates only the left/right 46 mFromRect.right + (int) ((mToRect.right - mFromRect.right) * it),
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
H A D | SystemViewInfo.java | 30 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 D | rect.h | 33 int32_t right; member in struct:ARect
|
/frameworks/support/design/base/android/support/design/widget/ |
H A D | ShadowViewDelegate.java | 23 void setShadowPadding(int left, int top, int right, int bottom); argument
|
/frameworks/data-binding/extensions/baseAdapters/src/main/java/android/databinding/adapters/ |
H A D | CardViewBindingAdapter.java | 39 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/native/include/ui/ |
H A D | Rect.h | 40 left = right = top = bottom = 0; 45 right = w; 61 right = w; 68 right = r; 75 right = rb.x; 82 left = top = right = bottom = 0; 97 return right - left; 106 return Rect(right - left, bottom - top); 115 right = rb.x; 124 return Point(right, botto [all...] |
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | BackgroundFallback.java | 52 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/support/v7/gridlayout/tests/src/android/support/v7/widget/test/ |
H A D | GridLayoutTest.java | 53 int right = getActivity().findViewById(R.id.rightView).getWidth(); 56 assertTrue("right item should get some width", right > 0); 58 assertTrue("left view should be almost two times right view " + left + " vs " + right, 59 Math.abs(right * 2 - left) < 2); 66 int right = getActivity().findViewById(R.id.rightView).getWidth(); 69 assertTrue("right item should get some width", right > 0); 71 assertTrue("left view should be almost two times right vie [all...] |
/frameworks/base/services/core/java/com/android/server/policy/ |
H A D | RecentApplicationsBackground.java | 60 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...] |