Home
last modified time | relevance | path

Searched refs:left (Results 1 – 25 of 952) sorted by relevance

12345678910>>...39

/frameworks/base/graphics/java/android/graphics/
DRectF.java33 public float left; field in RectF
53 public RectF(float left, float top, float right, float bottom) { in RectF() argument
54 this.left = left; in RectF()
69 left = top = right = bottom = 0.0f; in RectF()
71 left = r.left; in RectF()
80 left = top = right = bottom = 0.0f; in RectF()
82 left = r.left; in RectF()
95 return left == r.left && top == r.top && right == r.right && bottom == r.bottom; in equals()
100 int result = (left != +0.0f ? Float.floatToIntBits(left) : 0); in hashCode()
108 return "RectF(" + left + ", " + top + ", " in toString()
[all …]
DRect.java35 public int left; field in Rect
70 public Rect(int left, int top, int right, int bottom) { in Rect() argument
71 this.left = left; in Rect()
86 left = top = right = bottom = 0; in Rect()
88 left = r.left; in Rect()
101 return left == r.left && top == r.top && right == r.right && bottom == r.bottom; in equals()
106 int result = left; in hashCode()
116 sb.append("Rect("); sb.append(left); sb.append(", "); in toString()
135 sb.append('['); sb.append(left); sb.append(','); in toShortString()
153 sb.append(left); in flattenToString()
[all …]
DInsets.java31 public final int left; field in Insets
36 private Insets(int left, int top, int right, int bottom) { in Insets() argument
37 this.left = left; in Insets()
55 public static Insets of(int left, int top, int right, int bottom) { in of() argument
56 if (left == 0 && top == 0 && right == 0 && bottom == 0) { in of()
59 return new Insets(left, top, right, bottom); in of()
70 return (r == null) ? NONE : of(r.left, r.top, r.right, r.bottom); in of()
89 if (left != insets.left) return false; in equals()
98 int result = left; in hashCode()
108 "left=" + left + in toString()
DOutline.java143 public void setRect(int left, int top, int right, int bottom) { in setRect() argument
144 setRoundRect(left, top, right, bottom, 0.0f); in setRect()
151 setRect(rect.left, rect.top, rect.right, rect.bottom); in setRect()
159 public void setRoundRect(int left, int top, int right, int bottom, float radius) { in setRoundRect() argument
160 if (left >= right || top >= bottom) { in setRoundRect()
166 mRect.set(left, top, right, bottom); in setRoundRect()
175 setRoundRect(rect.left, rect.top, rect.right, rect.bottom, radius); in setRoundRect()
181 public void setOval(int left, int top, int right, int bottom) { in setOval() argument
182 if (left >= right || top >= bottom) { in setOval()
187 if ((bottom - top) == (right - left)) { in setOval()
[all …]
DPath.java438 arcTo(oval.left, oval.top, oval.right, oval.bottom, startAngle, sweepAngle, forceMoveTo); in arcTo()
453 arcTo(oval.left, oval.top, oval.right, oval.bottom, startAngle, sweepAngle, false); in arcTo()
468 public void arcTo(float left, float top, float right, float bottom, float startAngle, in arcTo() argument
471 native_arcTo(mNativePath, left, top, right, bottom, startAngle, sweepAngle, forceMoveTo); in arcTo()
499 private void detectSimplePath(float left, float top, float right, float bottom, Direction dir) { in detectSimplePath() argument
507 rects.op((int) left, (int) top, (int) right, (int) bottom, Region.Op.UNION); in detectSimplePath()
518 addRect(rect.left, rect.top, rect.right, rect.bottom, dir); in addRect()
530 public void addRect(float left, float top, float right, float bottom, Direction dir) { in addRect() argument
531 detectSimplePath(left, top, right, bottom, dir); in addRect()
532 native_addRect(mNativePath, left, top, right, bottom, dir.nativeInt); in addRect()
[all …]
DCanvas.java447 return saveLayer(bounds.left, bounds.top, bounds.right, bounds.bottom, paint, saveFlags); in saveLayer()
460 public int saveLayer(float left, float top, float right, float bottom, @Nullable Paint paint, in saveLayer() argument
462 return native_saveLayer(mNativeCanvasWrapper, left, top, right, bottom, in saveLayer()
470 public int saveLayer(float left, float top, float right, float bottom, @Nullable Paint paint) { in saveLayer() argument
471 return saveLayer(left, top, right, bottom, paint, ALL_SAVE_FLAG); in saveLayer()
506 … return saveLayerAlpha(bounds.left, bounds.top, bounds.right, bounds.bottom, alpha, saveFlags); in saveLayerAlpha()
519 public int saveLayerAlpha(float left, float top, float right, float bottom, int alpha, in saveLayerAlpha() argument
522 return native_saveLayerAlpha(mNativeCanvasWrapper, left, top, right, bottom, in saveLayerAlpha()
529 public int saveLayerAlpha(float left, float top, float right, float bottom, int alpha) { in saveLayerAlpha() argument
530 return saveLayerAlpha(left, top, right, bottom, alpha, ALL_SAVE_FLAG); in saveLayerAlpha()
[all …]
DYuvImage.java139 int[] offsets = calculateOffsets(rectangle.left, rectangle.top); in compressToJpeg()
182 int[] calculateOffsets(int left, int top) { in calculateOffsets() argument
185 offsets = new int[] {top * mStrides[0] + left, in calculateOffsets()
187 + left / 2 * 2 }; in calculateOffsets()
192 offsets = new int[] {top * mStrides[0] + left / 2 * 4}; in calculateOffsets()
221 rect.left &= ~1; in adjustRectangle()
223 rect.right = rect.left + width; in adjustRectangle()
230 rect.left &= ~1; in adjustRectangle()
231 rect.right = rect.left + width; in adjustRectangle()
DRegion.java71 nativeSetRect(mNativeRegion, r.left, r.top, r.right, r.bottom); in Region()
76 public Region(int left, int top, int right, int bottom) { in Region() argument
78 nativeSetRect(mNativeRegion, left, top, right, bottom); in Region()
97 return nativeSetRect(mNativeRegion, r.left, r.top, r.right, r.bottom); in set()
102 public boolean set(int left, int top, int right, int bottom) { in set() argument
103 return nativeSetRect(mNativeRegion, left, top, right, bottom); in set()
182 return quickContains(r.left, r.top, r.right, r.bottom); in quickContains()
191 public native boolean quickContains(int left, int top, int right, in quickContains() argument
200 return quickReject(r.left, r.top, r.right, r.bottom); in quickReject()
208 public native boolean quickReject(int left, int top, int right, int bottom); in quickReject() argument
[all …]
/frameworks/base/libs/hwui/
DRect.h33 (r).left, (r).top, (r).right, (r).bottom
35 (r).left(), (r).top(), (r).right(), (r).bottom()
43 float left;
55 left(0), in Rect()
61 inline Rect(float left, float top, float right, float bottom): in Rect() argument
62 left(left), in Rect()
69 left(0.0f), in Rect()
76 left(rect.fLeft), in Rect()
91 left = top = right = bottom = 0.0f; in clear()
97 return !((left < right) && (top < bottom)); in isEmpty()
[all …]
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/
Dh264bsd_intra_prediction.c162 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);
[all …]
Dh264bsd_deblocking.c134 u32 left; member
1177 bS[0].left = bS[4].left = bS[8].left = bS[12].left = 4; in GetBoundaryStrengths()
1182 bS[0].left = EdgeBoundaryStrength(mb, mb->mbA, 0, 5); in GetBoundaryStrengths()
1183 bS[4].left = EdgeBoundaryStrength(mb, mb->mbA, 2, 7); in GetBoundaryStrengths()
1184 bS[8].left = EdgeBoundaryStrength(mb, mb->mbA, 8, 13); in GetBoundaryStrengths()
1185 bS[12].left = EdgeBoundaryStrength(mb, mb->mbA, 10, 15); in GetBoundaryStrengths()
1187 (bS[0].left || bS[4].left || bS[8].left || bS[12].left)) in GetBoundaryStrengths()
1193 bS[0].left = bS[4].left = bS[8].left = bS[12].left = 0; in GetBoundaryStrengths()
1203 bS[1].left = bS[2].left = bS[3].left = in GetBoundaryStrengths()
1204 bS[5].left = bS[6].left = bS[7].left = in GetBoundaryStrengths()
[all …]
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
DSortingCursorWrapper.java177 int left = 0; in binarySort() local
180 while (left < right) { in binarySort()
181 int mid = (left + right) >>> 1; in binarySort()
190 left = mid + 1; in binarySort()
194 int n = start - left; in binarySort()
197 position[left + 2] = position[left + 1]; in binarySort()
198 value[left + 2] = value[left + 1]; in binarySort()
200 position[left + 1] = position[left]; in binarySort()
201 value[left + 1] = value[left]; in binarySort()
204 System.arraycopy(position, left, position, left + 1, n); in binarySort()
[all …]
/frameworks/base/core/java/android/hardware/camera2/params/
DReprocessFormatsMap.java77 int left = entry.length; in ReprocessFormatsMap() local
81 left--; in ReprocessFormatsMap()
84 if (left < 1) { in ReprocessFormatsMap()
90 left--; in ReprocessFormatsMap()
99 if (left < length) { in ReprocessFormatsMap()
103 "expected: %d)", inputFormat, left, length)); in ReprocessFormatsMap()
107 left -= length; in ReprocessFormatsMap()
132 int left = mEntry.length; in getInputs() local
136 left--; in getInputs()
139 if (left < 1) { in getInputs()
[all …]
/frameworks/native/libs/ui/
DRect.cpp33 left = 0; in makeInvalid()
43 if (left < rhs.left) { in operator <()
45 } else if (left == rhs.left) { in operator <()
59 right -= left - x; in offsetTo()
61 left = x; in offsetTo()
67 left += x; in offsetBy()
75 const Rect result(left + rhs.x, top + rhs.y, right + rhs.x, bottom + rhs.y); in operator +()
80 const Rect result(left - rhs.x, top - rhs.y, right - rhs.x, bottom - rhs.y); in operator -()
85 result->left = max(left, with.left); in intersect()
95 result = Rect(width - result.right, result.top, width - result.left, in transform()
[all …]
DRegion.cpp128 int left = current->left; in reverseRectsResolvingJunctions() local
138 if (prev.right <= left) break; in reverseRectsResolvingJunctions()
140 if (prev.right > left && prev.right < right) { in reverseRectsResolvingJunctions()
145 if (prev.left > left && prev.left < right) { in reverseRectsResolvingJunctions()
146 dst.add(Rect(prev.left, top, right, bottom)); in reverseRectsResolvingJunctions()
147 right = prev.left; in reverseRectsResolvingJunctions()
152 if (prev.left >= right) { in reverseRectsResolvingJunctions()
157 if (prev.left >= right) break; in reverseRectsResolvingJunctions()
159 if (prev.left > left && prev.left < right) { in reverseRectsResolvingJunctions()
160 dst.add(Rect(left, top, prev.left, bottom)); in reverseRectsResolvingJunctions()
[all …]
/frameworks/base/test-runner/src/junit/runner/
DSorter.java13 public void swap(Vector values, int left, int right); in swap() argument
16 public static void sortStrings(Vector values , int left, int right, Swapper swapper) { in sortStrings() argument
17 int oleft= left; in sortStrings()
19 String mid= (String)values.elementAt((left + right) / 2); in sortStrings()
21 while (((String)(values.elementAt(left))).compareTo(mid) < 0) in sortStrings()
22 left++; in sortStrings()
25 if (left <= right) { in sortStrings()
26 swapper.swap(values, left, right); in sortStrings()
27 left++; in sortStrings()
30 } while (left <= right); in sortStrings()
[all …]
/frameworks/base/core/java/android/view/
DGravity.java190 outRect.left = container.left in apply()
191 + ((container.right - container.left - w)/2) + xAdj; in apply()
192 outRect.right = outRect.left + w; in apply()
195 if (outRect.left < container.left) { in apply()
196 outRect.left = container.left; in apply()
204 outRect.left = container.left + xAdj; in apply()
205 outRect.right = outRect.left + w; in apply()
215 outRect.left = outRect.right - w; in apply()
218 if (outRect.left < container.left) { in apply()
219 outRect.left = container.left; in apply()
[all …]
DWindowInsets.java121 return mSystemWindowInsets.left; in getSystemWindowInsetLeft()
174 return mWindowDecorInsets.left; in getWindowDecorInsetLeft()
229 return mSystemWindowInsets.left != 0 || mSystemWindowInsets.top != 0 || in hasSystemWindowInsets()
244 return mWindowDecorInsets.left != 0 || mWindowDecorInsets.top != 0 || in hasWindowDecorInsets()
310 public WindowInsets consumeSystemWindowInsets(boolean left, boolean top, in consumeSystemWindowInsets() argument
312 if (left || top || right || bottom) { in consumeSystemWindowInsets()
315 left ? 0 : mSystemWindowInsets.left, in consumeSystemWindowInsets()
334 public WindowInsets replaceSystemWindowInsets(int left, int top, in replaceSystemWindowInsets() argument
337 result.mSystemWindowInsets = new Rect(left, top, right, bottom); in replaceSystemWindowInsets()
368 public WindowInsets consumeWindowDecorInsets(boolean left, boolean top, in consumeWindowDecorInsets() argument
[all …]
/frameworks/support/v7/gridlayout/tests/src/android/support/v7/widget/test/
DGridLayoutTest.java52 int left = getActivity().findViewById(R.id.leftView).getWidth(); in testUseDefaultMargin() local
55 assertTrue("left item should get some width", left > 0); in testUseDefaultMargin()
58 assertTrue("left view should be almost two times right view " + left + " vs " + right, in testUseDefaultMargin()
59 Math.abs(right * 2 - left) < 2); in testUseDefaultMargin()
65 int left = getActivity().findViewById(R.id.leftView).getWidth(); in testImplicitFillHorizontal() local
68 assertTrue("left item should get some width", left > 0); in testImplicitFillHorizontal()
71 assertTrue("left view should be almost two times right view " + left + " vs " + right, in testImplicitFillHorizontal()
72 Math.abs(right * 2 - left) < 2); in testImplicitFillHorizontal()
78 int left = getActivity().findViewById(R.id.leftView).getWidth(); in testMakeViewGone() local
81 assertTrue("left item should get some width", left > 0); in testMakeViewGone()
[all …]
/frameworks/native/include/ui/
DRect.h40 left = right = top = bottom = 0; in Rect()
44 left = top = 0; in Rect()
60 left = top = 0; in Rect()
66 left = l; in Rect()
73 left = lt.x; in Rect()
82 left = top = right = bottom = 0; in clear()
97 return right - left; in getWidth()
106 return Rect(right - left, bottom - top); in getBounds()
110 left = lt.x; in setLeftTop()
121 return Point(left, top); in leftTop()
[all …]
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/
DFaceSquareFilter.java87 int left = (tempRect.left+WIDTH_OFFSET)*dims[0]/FACE_X_RANGE; in drawBoxes() local
95 if (left < 0) { in drawBoxes()
96 left = 0; in drawBoxes()
97 } else if (left > dims[0]) { in drawBoxes()
98 left = dims[0]; in drawBoxes()
113 if (left > 0 && top > 0) { in drawBoxes()
114 pixels[ImageConstants.PIX_CHANNELS * (dims[0] * (top + j) + left) + in drawBoxes()
116 pixels[ImageConstants.PIX_CHANNELS * (dims[0] * (top + j) + left) + in drawBoxes()
118 pixels[ImageConstants.PIX_CHANNELS * (dims[0] * (top + j) + left) + in drawBoxes()
133 for (int k = 0; k < (right - left); k++) { in drawBoxes()
[all …]
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/
DStyledCornersBitmapDrawable.java249 float left = bounds.left + mBorderWidth / 2; in draw() local
258 flapCornerRectF.offsetTo(left, top); in draw()
273 flapCornerRectF.offsetTo(left, bottom - mCornerFlapSide); in draw()
304 float left = bounds.left; in drawFakeCornersForCompatibilityMode() local
313 fakeCornerRectF.offsetTo(left, top); in drawFakeCornersForCompatibilityMode()
315 mCompatibilityModePath.moveTo(left, top); in drawFakeCornersForCompatibilityMode()
316 mCompatibilityModePath.lineTo(left + mCornerRoundRadius, top); in drawFakeCornersForCompatibilityMode()
341 fakeCornerRectF.offsetTo(left, bottom - fakeCornerRectF.height()); in drawFakeCornersForCompatibilityMode()
343 mCompatibilityModePath.moveTo(left, bottom); in drawFakeCornersForCompatibilityMode()
344 mCompatibilityModePath.lineTo(left, bottom - mCornerRoundRadius); in drawFakeCornersForCompatibilityMode()
[all …]
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/tests/src/androidx/media/filterfw/samples/simplecamera/
DFaceSquareFilterTest.java89 int left = (faceRect.left+WIDTH_OFFSET)*bitmap.getWidth()/FACE_X_RANGE; in testFaceSquareFilter() local
97 if (left < 0) { in testFaceSquareFilter()
98 left = 0; in testFaceSquareFilter()
99 } else if (left > bitmap.getWidth()) { in testFaceSquareFilter()
100 left = bitmap.getWidth(); in testFaceSquareFilter()
115 if (left > 0 && top > 0) { in testFaceSquareFilter()
116 pixels[ImageConstants.PIX_CHANNELS * (bitmap.getWidth() * (top + j) + left) + in testFaceSquareFilter()
118 pixels[ImageConstants.PIX_CHANNELS * (bitmap.getWidth() * (top + j) + left) + in testFaceSquareFilter()
120 pixels[ImageConstants.PIX_CHANNELS * (bitmap.getWidth() * (top + j) + left) + in testFaceSquareFilter()
135 for (int k = 0; k < (right - left); k++) { in testFaceSquareFilter()
[all …]
/frameworks/base/services/core/java/com/android/server/policy/
DRecentApplicationsBackground.java60 protected boolean setFrame(int left, int top, int right, int bottom) { in setFrame() argument
62 if (mLeft != left || mRight != right || mTop != top || mBottom != bottom) { in setFrame()
65 return super.setFrame(left, top, right, bottom); in setFrame()
105 int left, right; in draw() local
108 left = chld.left - bkg.left; in draw()
112 left = 0; in draw()
115 background.setBounds(left, top, right, bottom); in draw()
144 r.left = r.top = Integer.MAX_VALUE; in getChildBounds()
150 r.left = Math.min(r.left, v.getLeft()); in getChildBounds()
/frameworks/data-binding/extensions/baseAdapters/src/main/java/android/databinding/adapters/
DCardViewBindingAdapter.java37 public static void setContentPaddingLeft(CardView view, int left) { in setContentPaddingLeft() argument
41 view.setContentPadding(left, top, right, bottom); in setContentPaddingLeft()
46 int left = view.getContentPaddingLeft(); in setContentPaddingTop() local
49 view.setContentPadding(left, top, right, bottom); in setContentPaddingTop()
54 int left = view.getContentPaddingLeft(); in setContentPaddingRight() local
57 view.setContentPadding(left, top, right, bottom); in setContentPaddingRight()
62 int left = view.getContentPaddingLeft(); in setContentPaddingBottom() local
65 view.setContentPadding(left, top, right, bottom); in setContentPaddingBottom()

12345678910>>...39