/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 17 int oleft= left; 19 String mid= (String)values.elementAt((left + right) / 2); 21 while (((String)(values.elementAt(left))).compareTo(mid) < 0) 22 left++; 25 if (left <= right) { 26 swapper.swap(values, left, right); 27 left++; 30 } while (left < [all...] |
/frameworks/base/services/core/java/com/android/server/notification/ |
H A D | GlobalSortKeyComparator.java | 25 public int compare(NotificationRecord left, NotificationRecord right) { argument 26 if (left.getGlobalSortKey() == null) { 27 throw new IllegalStateException("Missing left global sort key: " + left); 32 return left.getGlobalSortKey().compareTo(right.getGlobalSortKey());
|
H A D | NotificationComparator.java | 27 public int compare(NotificationRecord left, NotificationRecord right) { argument 28 final int leftPackagePriority = left.getPackagePriority(); 35 final int leftScore = left.sbn.getScore(); 42 final float leftPeople = left.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). 33 public float left; field in class:RectF 45 * checking is performed, so the caller must ensure that left <= right and 48 * @param left The X coordinate of the left side of the rectangle 53 public RectF(float left, float top, float right, float bottom) { argument 54 this.left = left; 62 * rectangle (which is left unmodifie 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 | 31 public final int left; field in class:Insets 36 private Insets(int left, int top, int right, int bottom) { argument 37 this.left = left; 48 * @param left the left 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, [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). 35 public int left; field in class:Rect 62 * checking is performed, so the caller must ensure that left <= right and 65 * @param left The X coordinate of the left side of the rectangle 70 public Rect(int left, int top, int right, int bottom) { argument 71 this.left = left; 79 * rectangle (which is left unmodifie 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 - left)) { [all...] |
/frameworks/av/media/libeffects/lvm/lib/Common/src/ |
H A D | From2iToMS_16x16.c | 33 LVM_INT32 temp1,left,right; local 37 left = (LVM_INT32)*src; 44 temp1 = (left+right)>>1; 49 temp1 = (left-right)>>1;
|
/frameworks/native/services/surfaceflinger/DisplayHardware/ |
H A D | FloatRect.h | 27 float left; 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/core/java/android/hardware/camera2/params/ |
H A D | ReprocessFormatsMap.java | 77 int left = entry.length; 81 left--; 84 if (left < 1) { 90 left--; 99 if (left < length) { 103 "expected: %d)", inputFormat, left, length)); 107 left -= length; 132 int left = mEntry.length; 136 left--; 139 if (left < [all...] |
/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() 43 float left; member in class:android::uirenderer::Rect 55 left(0), 61 inline Rect(float left, float top, float right, float bottom): argument 62 left(left), 69 left(0.0f), 76 left(rect.fLeft), 91 left 104 set(float left, float top, float right, float bottom) argument [all...] |
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/ |
H A D | SortingCursorWrapper.java | 177 int left = 0; 180 while (left < right) { 181 int mid = (left + right) >>> 1; 190 left = mid + 1; 194 int n = start - left; 197 position[left + 2] = position[left + 1]; 198 value[left + 2] = value[left + 1]; 200 position[left [all...] |
/frameworks/base/core/java/android/animation/ |
H A D | RectEvaluator.java | 59 * (left, top, right, and bottom). 73 int left = startValue.left + (int) ((endValue.left - startValue.left) * 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 | 33 left = 0; 43 if (left < rhs.left) { 45 } else if (left == rhs.left) { 59 right -= left - x; 61 left = x; 67 left += x; 75 const Rect result(left + rhs.x, top + rhs.y, right + rhs.x, bottom + rhs.y); 80 const Rect result(left 103 int left = height - result.bottom; local [all...] |
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/ |
H A D | h264bsd_intra_prediction.c | 162 static void Get4x4NeighbourPels(u8 *a, u8 *l, u8 *data, u8 *above, u8 *left, 165 static void Intra16x16HorizontalPrediction(u8 *data, u8 *left); 166 static void Intra16x16DcPrediction(u8 *data, u8 *above, u8 *left, 168 static void Intra16x16PlanePrediction(u8 *data, u8 *above, u8 *left); 169 static void IntraChromaDcPrediction(u8 *data, u8 *above, u8 *left, 171 static void IntraChromaHorizontalPrediction(u8 *data, u8 *left); 173 static void IntraChromaPlanePrediction(u8 *data, u8 *above, u8 *left); 176 static void Intra4x4HorizontalPrediction(u8 *data, u8 *left); 177 static void Intra4x4DcPrediction(u8 *data, u8 *above, u8 *left, u32 A, u32 B); 179 static void Intra4x4DiagonalDownRightPrediction(u8 *data, u8 *above, u8 *left); 540 h264bsdGetNeighbourPels(image_t *image, u8 *above, u8 *left, u32 mbNum) argument 622 h264bsdIntra16x16Prediction(mbStorage_t *pMb, u8 *data, i32 residual[][16], u8 *above, u8 *left, u32 constrainedIntraPred) argument 696 h264bsdIntra4x4Prediction(mbStorage_t *pMb, u8 *data, macroblockLayer_t *mbLayer, u8 *above, u8 *left, u32 constrainedIntraPred) argument 840 h264bsdIntraChromaPrediction(mbStorage_t *pMb, u8 *data, i32 residual[][16], u8 *above, u8 *left, u32 predMode, u32 constrainedIntraPred) argument 1026 Intra16x16HorizontalPrediction(u8 *data, u8 *left) argument 1057 Intra16x16DcPrediction(u8 *data, u8 *above, u8 *left, u32 availableA, u32 availableB) argument 1108 Intra16x16PlanePrediction(u8 *data, u8 *above, u8 *left) argument 1155 IntraChromaDcPrediction(u8 *data, u8 *above, u8 *left, u32 availableA, u32 availableB) argument 1253 IntraChromaHorizontalPrediction(u8 *data, u8 *left) argument 1323 IntraChromaPlanePrediction(u8 *data, u8 *above, u8 *left) argument 1383 Get4x4NeighbourPels(u8 *a, u8 *l, u8 *data, u8 *above, u8 *left, u32 blockNum) argument 1520 Intra4x4HorizontalPrediction(u8 *data, u8 *left) argument 1552 Intra4x4DcPrediction(u8 *data, u8 *above, u8 *left, u32 availableA, u32 availableB) argument 1645 Intra4x4DiagonalDownRightPrediction(u8 *data, u8 *above, u8 *left) argument 1683 Intra4x4VerticalRightPrediction(u8 *data, u8 *above, u8 *left) argument 1722 Intra4x4HorizontalDownPrediction(u8 *data, u8 *above, u8 *left) argument 1798 Intra4x4HorizontalUpPrediction(u8 *data, u8 *left) argument [all...] |
/frameworks/base/core/java/android/view/ |
H A D | WindowInsets.java | 112 * Returns the left system window inset in pixels. 118 * @return The left system window inset 121 return mSystemWindowInsets.left; 164 * Returns the left window decor inset in pixels. 170 * @return The left window decor inset 174 return mWindowDecorInsets.left; 229 return mSystemWindowInsets.left != 0 || mSystemWindowInsets.top != 0 || 244 return mWindowDecorInsets.left != 0 || mWindowDecorInsets.top != 0 || 277 * <p>A round window's left, top, right and bottom edges reach all the way to the 303 * @param left 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 | 32 /** Raw bit controlling how the left/top edge is placed. */ 49 /** Push object to the left of its container, not changing its size. */ 177 * the left; if gravity is CENTER_HORIZONTAL it pushes it to the 178 * right or left; otherwise it is ignored. 190 outRect.left = container.left 191 + ((container.right - container.left - w)/2) + xAdj; 192 outRect.right = outRect.left + w; 195 if (outRect.left < container.left) { [all...] |
/frameworks/base/core/java/android/view/animation/ |
H A D | ClipRectLRAnimation.java | 22 * Special case of ClipRectAnimation that animates only the left/right 44 tr.setClipRect(mFromRect.left + (int) ((mToRect.left - mFromRect.left) * it),
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
H A D | SystemViewInfo.java | 29 public SystemViewInfo(String name, Object cookie, int left, int top, argument 31 super(name, cookie, left, top, right, bottom); 34 public SystemViewInfo(String name, Object cookie, int left, int top, argument 36 super(name, cookie, left, top, right, bottom, viewObject,
|
/frameworks/native/include/android/ |
H A D | rect.h | 46 /** left position */ 47 int32_t left; member in struct:ARect 50 /** left position */
|
/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 | 37 public static void setContentPaddingLeft(CardView view, int left) { argument 41 view.setContentPadding(left, top, right, bottom); 46 int left = view.getContentPaddingLeft(); 49 view.setContentPadding(left, top, right, bottom); 54 int left = view.getContentPaddingLeft(); 57 view.setContentPadding(left, top, right, bottom); 62 int left = view.getContentPaddingLeft(); 65 view.setContentPadding(left, top, right, bottom);
|
/frameworks/native/include/ui/ |
H A D | Rect.h | 40 left = right = top = bottom = 0; 44 left = top = 0; 60 left = top = 0; 66 left = l; 73 left = lt.x; 82 left = top = right = bottom = 0; 97 return right - left; 106 return Rect(right - left, bottom - top); 110 left = lt.x; 121 return Point(left, to [all...] |
/frameworks/support/v7/gridlayout/tests/src/android/support/v7/widget/test/ |
H A D | GridLayoutTest.java | 52 int left = getActivity().findViewById(R.id.leftView).getWidth(); 55 assertTrue("left item should get some width", left > 0); 58 assertTrue("left view should be almost two times right view " + left + " vs " + right, 59 Math.abs(right * 2 - left) < 2); 65 int left = getActivity().findViewById(R.id.leftView).getWidth(); 68 assertTrue("left item should get some width", left > 0); 71 assertTrue("left vie [all...] |
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | BackgroundFallback.java | 50 int left = width; 73 left = Math.min(left, child.getLeft()); 79 if (left >= right || top >= bottom) { 88 if (left > 0) { 89 mBackgroundFallback.setBounds(0, top, left, height); 97 mBackgroundFallback.setBounds(left, bottom, right, height);
|