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

1234567891011>>

/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 DRectF.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 float right; field in class:RectF
46 * checking is performed, so the caller must ensure that left <= right and
51 * @param right The X coordinate of the right side of the rectangle
54 public RectF(float left, float top, float right, float bottom) { argument
57 this.right = right;
70 left = top = right
198 set(float left, float top, float right, float bottom) argument
303 contains(float left, float top, float right, float bottom) argument
345 intersect(float left, float top, float right, float bottom) argument
418 intersects(float left, float top, float right, float bottom) argument
467 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.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 rectangle
57 public Rect(int left, int top, int right, int bottom) { argument
60 this.right = right;
73 left = top = right
247 set(int left, int top, int right, int bottom) argument
339 contains(int left, int top, int right, int bottom) argument
380 intersect(int left, int top, int right, int bottom) argument
443 intersects(int left, int top, int right, int bottom) argument
471 union(int left, int top, int right, int bottom) argument
[all...]
H A DRegion.java64 nativeSetRect(mNativeRegion, r.left, r.top, r.right, r.bottom);
69 public Region(int left, int top, int right, int bottom) { argument
71 nativeSetRect(mNativeRegion, left, top, right, bottom);
89 return nativeSetRect(mNativeRegion, r.left, r.top, r.right, r.bottom);
94 public boolean set(int left, int top, int right, int bottom) { argument
95 return nativeSetRect(mNativeRegion, left, top, right, bottom);
174 return quickContains(r.left, r.top, r.right, r.bottom);
183 public native boolean quickContains(int left, int top, int right, argument
192 return quickReject(r.left, r.top, r.right, r.bottom);
200 public native boolean quickReject(int left, int top, int right, in argument
259 op(int left, int top, int right, int bottom, Op op) argument
371 nativeSetRect(int native_dst, int left, int top, int right, int bottom) argument
379 nativeOp(int native_dst, int left, int top, int right, int bottom, int op) argument
[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/compile/linkloader/tests/images/
H A Dsimple-test.c27 unsigned int right = 99; local
32 printf("Please input a number [%d-%d]:\n", left, right);
38 if (user < left || user > right) {
47 right = user;
/frameworks/base/libs/hwui/
H A DRect.h35 float right; member in class:android::uirenderer::Rect
47 right(0),
51 inline Rect(float left, float top, float right, float bottom): argument
54 right(right),
61 right(width),
74 left = top = right = bottom = 0.0f;
80 return !((left < right) && (top < bottom));
84 left = top = right = bottom = 0.0f;
87 inline void set(float left, float top, float right, floa argument
[all...]
H A DSnapshot.h86 bool clip(float left, float top, float right, float bottom,
99 void setClip(float left, float top, float right, float bottom);
110 void resetClip(float left, float top, float right, float bottom);
231 bool clipRegionOp(float left, float top, float right, float bottom, SkRegion::Op op);
H A DSnapshot.cpp87 clipRegion->setRect(clipRect->left, clipRect->top, clipRect->right, clipRect->bottom);
109 bool Snapshot::clipRegionOp(float left, float top, float right, float bottom, SkRegion::Op op) { argument
112 tmp.set(left, top, right, bottom);
121 bool Snapshot::clip(float left, float top, float right, float bottom, SkRegion::Op op) { argument
122 Rect r(left, top, right, bottom);
133 clipped = clipRegionOp(r.left, r.top, r.right, r.bottom, SkRegion::kIntersect_Op);
145 clipped = clipRegionOp(r.left, r.top, r.right, r.bottom, SkRegion::kUnion_Op);
152 setClip(r.left, r.top, r.right, r.bottom);
158 clipped = clipRegionOp(r.left, r.top, r.right, r.bottom, op);
170 void Snapshot::setClip(float left, float top, float right, floa argument
195 resetClip(float left, float top, float right, float bottom) argument
[all...]
/frameworks/native/libs/ui/
H A DRect.cpp33 right = -1;
48 if (right<rhs.right) {
59 right -= left - x;
70 right+= x;
77 const Rect result(left+rhs.x, top+rhs.y, right+rhs.x, bottom+rhs.y);
83 const Rect result(left-rhs.x, top-rhs.y, right-rhs.x, bottom-rhs.y);
91 result->right = min(right, with.right);
109 int right = height - result.top; local
[all...]
/frameworks/base/tests/TileBenchmark/src/com/test/tilebenchmark/
H A DRunData.java31 public int left, top, right, bottom; field in class:RunData.TileData
36 public TileData(int left, int top, int right, int bottom, argument
39 this.right = right;
49 + right + "," + bottom + ")"
/frameworks/compile/mclinker/include/mcld/ADT/
H A DTreeBase.h22 NodeBase *right; member in class:mcld::NodeBase
26 : left(0), right(0)
74 { return (m_pNode->right == m_pNode); }
77 { return ((m_pNode->right) != (m_pNode->right->right)); }
80 { return ((m_pNode->left) != (m_pNode->left->right)); }
97 { X = X->right; }
105 { X->right = const_cast<NodeBase*>(Y); }
H A DBinTree.h40 m_Stack.push(m_pNode->right);
50 m_pNode = m_pNode->right; // should be root
56 m_Stack.push(m_pNode->right);
75 m_Queue.push(m_pNode->right);
85 m_pNode = m_pNode->right; // should be root
91 m_Queue.push(m_pNode->right);
225 { return (m_pNode->right == m_pNode); }
291 node.left = node.right = &node;
307 if ((*data).right == &pClient.node)
308 (*data).right
[all...]
/frameworks/av/libvideoeditor/osal/inc/
H A DM4OSA_OptionID.h50 #define M4OSA_OPTION_ID_CREATE(right, coreID, errorID)\
51 (M4OSA_Int32)((((((M4OSA_UInt32)right)&0x03)<<30))+((((M4OSA_UInt32)coreID)&0x003FFF)<<16)+(((M4OSA_UInt32)errorID)&0x00FFFF))
55 #define M4OSA_OPTION_ID_SPLIT(optionID, right, coreID, errorID)\
56 { right=(M4OSA_UInt8)((optionID)>>30);\
/frameworks/native/include/android/
H A Drect.h33 int32_t right; member in struct:ARect
/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/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);
106 int left, right;
110 right = chld.right + bkg.right;
114 right = getRight();
116 background.setBounds(left, top, right, bottom);
146 r.bottom = r.right
[all...]
/frameworks/native/include/ui/
H A DRect.h39 left = top = 0; right = w; bottom = h;
42 left = l; top = t; right = r; bottom = b;
45 left = lt.x; top = lt.y; right = rb.x; bottom = rb.y;
51 left = top = right = bottom = 0;
70 return right-left;
79 return Rect(right-left, bottom-top);
91 right = rb.x;
100 return Point(right, bottom);
103 return Point(right, top);
112 (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/media/java/android/media/videoeditor/
H A DEffectKenBurns.java98 start.right = getStartRect().right;
102 end.right = getEndRect().right;
/frameworks/native/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/rs/scriptc/
H A Drs_math.rsh95 * @param right plane
103 float4 *left, float4 *right,
112 right->x = viewProj->m[3] - viewProj->m[0];
113 right->y = viewProj->m[7] - viewProj->m[4];
114 right->z = viewProj->m[11] - viewProj->m[8];
115 right->w = viewProj->m[15] - viewProj->m[12];
139 len = length(right->xyz);
140 *right /= len;
155 * @param right plane
163 float4 *left, float4 *right,
[all...]
/frameworks/support/renderscript/v8/rs_support/scriptc/
H A Drs_math.rsh95 * @param right plane
103 float4 *left, float4 *right,
112 right->x = viewProj->m[3] - viewProj->m[0];
113 right->y = viewProj->m[7] - viewProj->m[4];
114 right->z = viewProj->m[11] - viewProj->m[8];
115 right->w = viewProj->m[15] - viewProj->m[12];
139 len = length(right->xyz);
140 *right /= len;
155 * @param right plane
163 float4 *left, float4 *right,
[all...]
/frameworks/native/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 &&
235 SpannerBase::lhs_tail = lhs.rects->right + lhs.dx;
244 SpannerBase::rhs_tail = rhs.rects->right + rhs.dx;
249 SpannerBase::lhs_tail = lhs.rects->right + lhs.dx;
253 SpannerBase::rhs_tail = rhs.rects->right + rhs.dx;
263 inline int next(TYPE& left, TYPE& right) argument
267 int inside = SpannerBase::next(left, right, more_lhs, more_rhs);
279 void advance(region& reg, TYPE& left, TYPE& right) { argument
[all...]

Completed in 270 milliseconds

1234567891011>>