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

1234567

/frameworks/base/test-runner/src/junit/runner/
H A DSorter.java15 public void swap(Vector values, int left, int right); argument
18 public static void sortStrings(Vector values , int left, int right, Swapper swapper) { argument
20 int oright= right;
21 String mid= (String)values.elementAt((left + right) / 2);
25 while (mid.compareTo((String)(values.elementAt(right))) < 0)
26 right--;
27 if (left <= right) {
28 swapper.swap(values, left, right);
30 right--;
32 } while (left <= right);
[all...]
/frameworks/base/graphics/java/android/graphics/
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
49 * checking is performed, so the caller must ensure that left <= right and
54 * @param right The X coordinate of the right side of the rectagle
57 public Rect(int left, int top, int right, int bottom) { argument
60 this.right = right;
74 right
235 set(int left, int top, int right, int bottom) argument
327 contains(int left, int top, int right, int bottom) argument
369 intersect(int left, int top, int right, int bottom) argument
442 intersects(int left, int top, int right, int bottom) argument
472 union(int left, int top, int right, int bottom) argument
[all...]
H A DRectF.java26 * 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).
34 public float right; field in class:RectF
44 * checking is performed, so the caller must ensure that left <= right and
49 * @param right The X coordinate of the right side of the rectagle
52 public RectF(float left, float top, float right, float bottom) { argument
55 this.right = right;
69 right
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 DRegion.java56 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, int top, int right, 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...]
H A DLargeBitmap.java64 if (rect.left < 0 || rect.top < 0 || rect.right > getWidth() || rect.bottom > getHeight())
67 rect.right - rect.left, rect.bottom - rect.top, options);
/frameworks/base/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/base/native/include/android/
H A Drect.h28 int32_t right; member in struct:ARect
/frameworks/base/libs/ui/
H A DRect.cpp32 right = -1;
47 if (right<rhs.right) {
58 right -= left - x;
69 right+= x;
76 const Rect result(left+rhs.x, top+rhs.y, right+rhs.x, bottom+rhs.y);
82 const Rect result(left-rhs.x, top-rhs.y, right-rhs.x, bottom-rhs.y);
90 result->right = min(right, with.right);
[all...]
H A DRegion.cpp250 bounds.right = INT_MIN;
266 bounds.right = 0;
272 // rect.left, rect.top, rect.right, rect.bottom);
276 } else if (cur->right == rect.left) {
277 cur->right = rect.right;
297 if ((p->left != q->left) || (p->right != q->right)) {
314 bounds.right = max(span.top().right, bound
[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. */
138 * pushes it to the right; if gravity is RIGHT it pushes it to
140 * right or left; otherwise it is ignored.
153 + ((container.right - container.left - w)/2) + xAdj;
154 outRect.right = outRect.left + w;
160 if (outRect.right > container.right) {
161 outRect.right
[all...]
H A DFocusFinder.java75 // make up a rect at top left or bottom right of root
153 * @param direction the direction (up, down, left, right)
251 return (srcRect.right > destRect.right || srcRect.left >= destRect.right)
254 return (srcRect.left < destRect.left || srcRect.right <= destRect.left)
255 && srcRect.right < destRect.right;
270 * @param direction the direction (up, down, left, right)
282 return (rect2.right >
[all...]
/frameworks/base/policy/src/com/android/internal/policy/impl/
H A DRecentApplicationsBackground.java61 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;
104 right = chld.right + bkg.right;
108 right = getRight();
110 background.setBounds(left, top, right, bottom);
140 r.bottom = r.right
[all...]
/frameworks/base/include/ui/
H A DRect.h38 left = top = 0; right = w; bottom = h;
41 left = l; top = t; right = r; bottom = b;
44 left = lt.x; top = lt.y; right = rb.x; bottom = rb.y;
50 left = top = right = bottom = 0;
69 return right-left;
83 right = rb.x;
92 return Point(right, bottom);
95 return Point(right, top);
104 (right == rhs.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
/frameworks/base/include/utils/
H A DList.h116 inline bool operator==(const _Iter& right) const {
117 return mpNode == right.mpNode; }
119 inline bool operator!=(const _Iter& right) const {
120 return mpNode != right.mpNode; }
126 inline bool operator==(const OTHER& right) const {
127 return mpNode == right.mpNode; }
130 inline bool operator!=(const OTHER& right) const {
131 return mpNode != right.mpNode; }
178 List<T>& operator=(const List<T>& right);
313 List<T>& List<T>::operator=(const List<T>& right) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DExpandedView.java49 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument
50 super.onLayout(changed, left, top, right, bottom);
H A DTrackingView.java40 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/java/android/text/method/
H A DTouch.java45 int right = 0;
50 right = (int) Math.max(right, layout.getLineRight(i));
61 if (right - left < width - padding) {
63 diff = (width - padding - (right - left)) / 2;
65 diff = width - padding - (right - left);
69 x = Math.min(x, right - (width - padding) - diff);
84 int right = 0;
87 right = (int) Math.max(right, layou
[all...]
H A DScrollingMovementMethod.java61 * Scrolls the text to the right if possible.
63 protected boolean right(TextView widget, Spannable buffer) { method in class:ScrollingMovementMethod
75 int right = 0;
78 right = (int) Math.max(right, layout.getLineRight(i));
82 if (scr < right - (widget.getWidth() - padding)) {
83 int s = Math.min(scr + em, right - (widget.getWidth() - padding));
159 handled |= right(widget, buffer);
/frameworks/base/include/private/ui/
H A DRegionHelper.h81 TYPE left, right; local
82 int inside = spannerInner.next(current.left, current.right);
84 if (current.left < current.right &&
225 SpannerBase::lhs_tail = lhs.rects->right + lhs.dx;
232 SpannerBase::rhs_tail = rhs.rects->right + rhs.dx;
235 SpannerBase::lhs_tail = lhs.rects->right + lhs.dx;
237 SpannerBase::rhs_tail = rhs.rects->right + 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, TYPE& right) { argument
[all...]
/frameworks/base/media/libstagefright/codecs/aacenc/src/
H A Dms_stereo.c107 Word32 left, right; local
109 right = (mdctSpectrumRight[j] >> 1);
110 mdctSpectrumLeft[j] = left + right;
111 mdctSpectrumRight[j] = left - right;
/frameworks/base/core/java/android/widget/
H A DCheckedTextView.java143 public void setPadding(int left, int top, int right, int bottom) { argument
144 super.setPadding(left, top, right, bottom);
168 int right = getWidth();
170 right - mCheckMarkWidth - mBasePaddingRight,
172 right - mBasePaddingRight,
H A DHorizontalScrollView.java573 final int right = getScrollRange();
574 if (mScroller.springBack(mScrollX, mScrollY, 0, right, 0, 0)) {
668 * if leftFocus is true, or at the right of the bounds if leftFocus
703 * if leftFocus is true, or at the right of the bounds if
707 * @param right the right offset of the bounds in which a focusable must
712 private View findFocusableViewInBounds(boolean leftFocus, int left, int right) { argument
719 * left, and its right is above the bound's right. A partially
732 if (left < viewRight && viewLeft < right) {
858 scrollAndFocus(int direction, int left, int right) argument
[all...]
/frameworks/base/media/libstagefright/codecs/avc/dec/include/
H A Dpvavcdecoder.h39 virtual void GetVideoDimensions(int32 *width, int32 *height, int32 *top, int32 *left, int32 *bottom, int32 *right);
H A Dpvavcdecoderinterface.h41 virtual void GetVideoDimensions(int32 *width, int32 *height, int32 *top, int32 *left, int32 *bottom, int32 *right) = 0;

Completed in 382 milliseconds

1234567