/frameworks/base/test-runner/src/junit/runner/ |
H A D | Sorter.java | 15 public void swap(Vector values, int left, int right); argument 18 public static void sortStrings(Vector values , int left, int right, Swapper swapper) { argument 19 int oleft= left; 21 String mid= (String)values.elementAt((left + right) / 2); 23 while (((String)(values.elementAt(left))).compareTo(mid) < 0) 24 left++; 27 if (left <= right) { 28 swapper.swap(values, left, right); 29 left++; 32 } while (left < [all...] |
/frameworks/base/graphics/java/android/graphics/ |
H A D | Rect.java | 28 * 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). 34 public int left; field in class:Rect 49 * checking is performed, so the caller must ensure that left <= right and 52 * @param left The X coordinate of the left side of the rectagle 57 public Rect(int left, int top, int right, int bottom) { argument 58 this.left = left; 66 * rectangle (which is left unmodifie 233 set(int left, int top, int right, int bottom) argument 325 contains(int left, int top, int right, int bottom) argument 367 intersect(int left, int top, int right, int bottom) argument 440 intersects(int left, int top, int right, int bottom) argument 470 union(int left, int top, int right, int bottom) argument [all...] |
H A D | RectF.java | 26 * represented by the coordinates of its 4 edges (left, top, right bottom). 29 * the coordinates are sorted correctly (i.e. left <= right and top <= bottom). 32 public float left; field in class:RectF 44 * checking is performed, so the caller must ensure that left <= right and 47 * @param left The X coordinate of the left side of the rectagle 52 public RectF(float left, float top, float right, float bottom) { argument 53 this.left = left; 61 * rectangle (which is left unmodifie 141 set(float left, float top, float right, float bottom) argument 246 contains(float left, float top, float right, float bottom) argument 288 intersect(float left, float top, float right, float bottom) argument 361 intersects(float left, float top, float right, float bottom) argument 410 union(float left, float top, float right, float bottom) argument [all...] |
H A D | YuvImage.java | 28 * region by left, top, width and height. 139 int[] offsets = calculateOffsets(rectangle.left, rectangle.top); 182 int[] calculateOffsets(int left, int top) { argument 185 offsets = new int[] {top * mStrides[0] + left, 187 + left / 2 * 2 }; 192 offsets = new int[] {top * mStrides[0] + left / 2 * 4}; 218 // Make sure left, top, width and height are all even. 221 rect.left &= ~1; 223 rect.right = rect.left + width; 228 // Make sure left an [all...] |
H A D | Region.java | 56 nativeSetRect(mNativeRegion, r.left, r.top, r.right, r.bottom); 61 public Region(int left, int top, int right, int bottom) { argument 63 nativeSetRect(mNativeRegion, left, top, right, bottom); 81 return nativeSetRect(mNativeRegion, r.left, r.top, r.right, r.bottom); 86 public boolean set(int left, int top, int right, int bottom) { argument 87 return nativeSetRect(mNativeRegion, left, top, right, bottom); 166 return quickContains(r.left, r.top, r.right, r.bottom); 175 public native boolean quickContains(int left, int top, int right, argument 184 return quickReject(r.left, r.top, r.right, r.bottom); 192 public native boolean quickReject(int left, in argument 251 op(int left, int top, int right, int bottom, Op op) argument 353 nativeSetRect(int native_dst, int left, int top, int right, int bottom) argument 361 nativeOp(int native_dst, int left, int top, int right, int bottom, int op) argument [all...] |
/frameworks/base/awt/java/awt/ |
H A D | Insets.java | 31 * the right side, and the left side. The space can be filled with a border, a 50 * The left inset indicates the size of the space added to the left side of 53 public int left; field in class:Insets 68 * Instantiates a new Inset object with the specified top, left, bottom, 73 * @param left 74 * the left inset. 80 public Insets(int top, int left, int bottom, int right) { argument 81 setValues(top, left, bottom, right); 93 hashCode = HashCode.combine(hashCode, left); 157 set(int top, int left, int bottom, int right) argument 173 setValues(int top, int left, int bottom, int right) argument [all...] |
/frameworks/base/libs/ui/ |
H A D | Rect.cpp | 30 left = 0; 41 if (left < rhs.left) { 43 } else if (left == rhs.left) { 58 right -= left - x; 60 left = x; 67 left += x; 76 const Rect result(left+rhs.x, top+rhs.y, right+rhs.x, bottom+rhs.y); 82 const Rect result(left [all...] |
H A D | Region.cpp | 249 bounds.left = INT_MAX; 265 bounds.left = 0; 272 // rect.left, rect.top, rect.right, rect.bottom); 276 } else if (cur->right == rect.left) { 297 if ((p->left != q->left) || (p->right != q->right)) { 313 bounds.left = min(span.itemAt(0).left, bounds.left); 331 b.left [all...] |
/frameworks/base/core/java/android/view/ |
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. */ 139 * the left; if gravity is CENTER_HORIZONTAL it pushes it to the 140 * right or left; otherwise it is ignored. 152 outRect.left = container.left 153 + ((container.right - container.left - w)/2) + xAdj; 154 outRect.right = outRect.left + w; 157 if (outRect.left < container.left) { [all...] |
H A D | FocusFinder.java | 75 // make up a rect at top left or bottom right of root 153 * @param direction the direction (up, down, left, right) 210 // for example, for direction left, if rect1 is to the left of the source 242 * checks whether the dest is at least partially to the direction of (e.g left of) 251 return (srcRect.right > destRect.right || srcRect.left >= destRect.right) 252 && srcRect.left > destRect.left; 254 return (srcRect.left < destRect.left || srcRec [all...] |
/frameworks/base/include/ui/ |
H A D | Rect.h | 28 int left; member in class:android::Rect 41 : left(0), top(0), right(w), bottom(h) { 44 : left(l), top(t), right(r), bottom(b) { 47 : left(lt.x), top(lt.y), right(rb.x), bottom(rb.y) { 53 left = top = right = bottom = 0; 72 return right-left; 81 left = lt.x; 92 return Point(left, top); 101 return Point(left, bottom); 106 return (left [all...] |
/frameworks/policies/base/phone/com/android/internal/policy/impl/ |
H A D | RecentApplicationsBackground.java | 61 protected boolean setFrame(int left, int top, int right, int bottom) { argument 63 if (mLeft != left || mRight != right || mTop != top || mBottom != bottom) { 66 return super.setFrame(left, top, right, bottom); 100 int left, right; 103 left = chld.left - bkg.left; 107 left = 0; 110 background.setBounds(left, top, right, bottom); 139 r.left [all...] |
/frameworks/base/core/java/android/text/style/ |
H A D | LineBackgroundSpan.java | 26 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
|
/frameworks/base/services/java/com/android/server/status/ |
H A D | ExpandedView.java | 49 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument 50 super.onLayout(changed, left, top, right, bottom);
|
H A D | TrackingView.java | 40 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument 41 super.onLayout(changed, left, top, right, bottom);
|
/frameworks/base/core/tests/coretests/src/android/widget/focus/ |
H A D | FocusAfterRemoval.java | 38 final LinearLayout left = (LinearLayout) findViewById(R.id.leftLayout); 40 // top left makes parent layout GONE 45 left.setVisibility(View.GONE); 49 // bottom left makes parent layout INVISIBLE 50 // top left makes parent layout GONE 55 left.setVisibility(View.INVISIBLE);
|
/frameworks/base/core/java/android/text/method/ |
H A D | Touch.java | 45 int left = Integer.MAX_VALUE; 50 left = (int) Math.min(left, layout.getLineLeft(i)); 62 if (right - left < width - padding) { 64 diff = (width - padding - (right - left)) / 2; 66 diff = width - padding - (right - left); 71 x = Math.max(x, left - diff); 84 int left = Integer.MAX_VALUE; 87 left = (int) Math.min(left, layou [all...] |
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | Canvas.java | 312 public boolean clipRect(float left, float top, float right, float bottom, Op op) { argument 313 return clipRect(left, top, right, bottom); 320 public boolean clipRect(float left, float top, float right, float bottom) { argument 321 getGraphics2d().clipRect((int)left, (int)top, (int)(right-left), (int)(bottom-top)); 329 public boolean clipRect(int left, int top, int right, int bottom) { argument 330 getGraphics2d().clipRect(left, top, right-left, bottom-top); 339 return clipRect(rect.left, rect.top, rect.right, rect.bottom); 347 return clipRect(rect.left, rec 384 quickReject(float left, float top, float right, float bottom, EdgeType type) argument 390 quickReject(float left, float top, float right, float bottom, _Original_Canvas.EdgeType type) argument 496 drawBitmap(Bitmap bitmap, float left, float top, Paint paint) argument 793 drawRect(float left, float top, float right, float bottom, Paint paint) argument 805 doDrawRect(int left, int top, int width, int height, Paint paint) argument 1216 saveLayer(float left, float top, float right, float bottom, Paint paint, int saveFlags) argument 1235 saveLayerAlpha(float left, float top, float right, float bottom, int alpha, int saveFlags) argument [all...] |
/frameworks/base/include/private/ui/ |
H A D | RegionHelper.h | 81 TYPE left, right; local 82 int inside = spannerInner.next(current.left, current.right); 84 if (current.left < current.right && 224 SpannerBase::lhs_head = lhs.rects->left + lhs.dx; 231 SpannerBase::rhs_head = rhs.rects->left + rhs.dx; 234 SpannerBase::lhs_head = lhs.rects->left + lhs.dx; 236 SpannerBase::rhs_head = rhs.rects->left + rhs.dx; 246 inline int next(TYPE& left, TYPE& right) argument 250 int inside = SpannerBase::next(left, right, more_lhs, more_rhs); 262 void advance(region& reg, TYPE& left, TYP argument [all...] |
/frameworks/base/core/tests/coretests/src/android/view/ |
H A D | GlobalFocusChange.java | 35 findViewById(R.id.left).getViewTreeObserver().addOnGlobalFocusChangeListener(this);
|
/frameworks/base/media/libmedia/ |
H A D | Metadata.cpp | 147 size_t left = curr - mBegin; local 148 while (left > 0) { 151 if (size < kRecordHeaderSize || size > left) { 161 left -= size;
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/ |
H A D | LayoutResult.java | 85 public LayoutViewInfo(String name, Object key, int left, int top, int right, int bottom) { argument 88 mLeft = left;
|
H A D | NinePatchDrawable.java | 73 padding.left = padd[0]; 83 m9Patch.draw(canvas.getGraphics2d(), r.left, r.top, r.width(), r.height());
|
/frameworks/base/libs/audioflinger/ |
H A D | AudioResamplerCubic.cpp | 31 memset(&left, 0, sizeof(state)); 81 out[outputIndex++] += vl * interp(&left, x); 106 advance(&left, in[inputIndex*2]); 146 sample = interp(&left, x); 171 advance(&left, in[inputIndex]);
|
/frameworks/base/awt/java/awt/geom/ |
H A D | QuadCurve2D.java | 717 * curve's control point. The data of this curve is left unchanged. 719 * @param left 720 * the QuadCurve2D where the left (start) segment's data is 728 public void subdivide(QuadCurve2D left, QuadCurve2D right) { argument 729 subdivide(this, left, right); 735 * source curve's control point. The data of the source curve is left 740 * @param left 741 * the QuadCurve2D where the left (start) segment's data is 749 public static void subdivide(QuadCurve2D src, QuadCurve2D left, QuadCurve2D right) { argument 762 if (left ! 796 subdivide(double src[], int srcoff, double left[], int leftOff, double right[], int rightOff) argument [all...] |