/frameworks/base/graphics/java/android/graphics/ |
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 | Path.java | 453 arcTo(oval.left, oval.top, oval.right, oval.bottom, startAngle, sweepAngle, forceMoveTo); 468 arcTo(oval.left, oval.top, oval.right, oval.bottom, startAngle, sweepAngle, false); 483 public void arcTo(float left, float top, float right, float bottom, float startAngle, argument 486 native_arcTo(mNativePath, left, top, right, bottom, startAngle, sweepAngle, forceMoveTo); 514 private void detectSimplePath(float left, float top, float right, float bottom, Direction dir) { argument 522 rects.op((int) left, (int) top, (int) right, (int) bottom, Region.Op.UNION); 533 addRect(rect.left, rect.top, rect.right, rect.bottom, dir); 539 * @param left The left side of a rectangle to add to the path 545 public void addRect(float left, floa argument 565 addOval(float left, float top, float right, float bottom, Direction dir) argument 600 addArc(float left, float top, float right, float bottom, float startAngle, float sweepAngle) argument 625 addRoundRect(float left, float top, float right, float bottom, float rx, float ry, Direction dir) argument 655 addRoundRect(float left, float top, float right, float bottom, float[] radii, Direction dir) argument 833 native_arcTo(long nPath, float left, float top, float right, float bottom, float startAngle, float sweepAngle, boolean forceMoveTo) argument 837 native_addRect(long nPath, float left, float top, float right, float bottom, int dir) argument 839 native_addOval(long nPath, float left, float top, float right, float bottom, int dir) argument 842 native_addArc(long nPath, float left, float top, float right, float bottom, float startAngle, float sweepAngle) argument 845 native_addRoundRect(long nPath, float left, float top, float right, float bottom, float rx, float ry, int dir) argument 848 native_addRoundRect(long nPath, float left, float top, float right, float bottom, float[] radii, int dir) argument [all...] |
H A D | Region.java | 71 nativeSetRect(mNativeRegion, r.left, r.top, r.right, r.bottom); 76 public Region(int left, int top, int right, int bottom) { argument 78 nativeSetRect(mNativeRegion, left, top, right, bottom); 97 return nativeSetRect(mNativeRegion, r.left, r.top, r.right, r.bottom); 102 public boolean set(int left, int top, int right, int bottom) { argument 103 return nativeSetRect(mNativeRegion, left, top, right, bottom); 182 return quickContains(r.left, r.top, r.right, r.bottom); 191 public native boolean quickContains(int left, int top, int right, argument 200 return quickReject(r.left, r.top, r.right, r.bottom); 208 public native boolean quickReject(int left, in argument 267 op(int left, int top, int right, int bottom, Op op) argument 412 nativeSetRect(long native_dst, int left, int top, int right, int bottom) argument 420 nativeOp(long native_dst, int left, int top, int right, int bottom, int op) argument [all...] |
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/expr/ |
H A D | MathExpr.java | 27 MathExpr(Expr left, String op, Expr right) { argument 28 super(left, right); 108 final Expr left = getLeft(); 110 final Expr constExpr = left.isDynamic() ? right : left; 111 final Expr varExpr = left.isDynamic() ? left : right; 122 if (!left.isDynamic()) { // const - x = value => x = const - value) 131 if (!left.isDynamic()) { // const / x = value => x = const / value
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/ |
H A D | CameraUtils.java | 59 long left = widthA * (long) heightA; 61 if (left == right) { 62 left = widthA; 65 return (left < right) ? -1 : (left > right ? 1 : 0);
|
/frameworks/base/services/core/java/com/android/server/policy/ |
H A D | RecentApplicationsBackground.java | 60 protected boolean setFrame(int left, int top, int right, int bottom) { argument 62 if (mLeft != left || mRight != right || mTop != top || mBottom != bottom) { 65 return super.setFrame(left, top, right, bottom); 105 int left, right; 108 left = chld.left - bkg.left; 112 left = 0; 115 background.setBounds(left, top, right, bottom); 144 r.left [all...] |
/frameworks/compile/mclinker/include/mcld/ADT/ |
H A D | TreeBase.h | 22 NodeBase* left; member in class:mcld::NodeBase 26 NodeBase() : left(NULL), right(NULL) {} 64 return ((m_pNode->left) != (m_pNode->left->right)); 78 this->m_pNode = this->m_pNode->left; 89 this->m_pNode->left = pOther;
|
/frameworks/base/core/java/android/view/ |
H A D | WindowInsets.java | 121 * Returns the left system window inset in pixels. 127 * @return The left system window inset 130 return mSystemWindowInsets.left; 173 * Returns the left window decor inset in pixels. 179 * @return The left window decor inset 183 return mWindowDecorInsets.left; 238 return mSystemWindowInsets.left != 0 || mSystemWindowInsets.top != 0 || 253 return mWindowDecorInsets.left != 0 || mWindowDecorInsets.top != 0 || 286 * <p>A round window's left, top, right and bottom edges reach all the way to the 312 * @param left tru 319 consumeSystemWindowInsets(boolean left, boolean top, boolean right, boolean bottom) argument 343 replaceSystemWindowInsets(int left, int top, int right, int bottom) argument 377 consumeWindowDecorInsets(boolean left, boolean top, boolean right, boolean bottom) argument 393 replaceWindowDecorInsets(int left, int top, int right, int bottom) argument [all...] |
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/ |
H A D | FaceSquareFilter.java | 87 int left = (tempRect.left+WIDTH_OFFSET)*dims[0]/FACE_X_RANGE; 95 if (left < 0) { 96 left = 0; 97 } else if (left > dims[0]) { 98 left = dims[0]; 113 if (left > 0 && top > 0) { 114 pixels[ImageConstants.PIX_CHANNELS * (dims[0] * (top + j) + left) + 116 pixels[ImageConstants.PIX_CHANNELS * (dims[0] * (top + j) + left) + 118 pixels[ImageConstants.PIX_CHANNELS * (dims[0] * (top + j) + left) [all...] |
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/tests/src/androidx/media/filterfw/samples/simplecamera/ |
H A D | FaceSquareFilterTest.java | 89 int left = (faceRect.left+WIDTH_OFFSET)*bitmap.getWidth()/FACE_X_RANGE; 97 if (left < 0) { 98 left = 0; 99 } else if (left > bitmap.getWidth()) { 100 left = bitmap.getWidth(); 115 if (left > 0 && top > 0) { 116 pixels[ImageConstants.PIX_CHANNELS * (bitmap.getWidth() * (top + j) + left) + 118 pixels[ImageConstants.PIX_CHANNELS * (bitmap.getWidth() * (top + j) + left) + 120 pixels[ImageConstants.PIX_CHANNELS * (bitmap.getWidth() * (top + j) + left) [all...] |
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/ |
H A D | h264bsd_intra_prediction.h | 56 u8 *above, u8 *left, u32 constrainedIntraPred); 58 u8 *above, u8 *left, u32 constrainedIntraPred); 61 u8 *above, u8 *left, u32 predMode, u32 constrainedIntraPred); 63 void h264bsdGetNeighbourPels(image_t *image, u8 *above, u8 *left, u32 mbNum);
|
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/ |
H A D | MarshalQueryableRect.java | 42 buffer.putInt(value.left); 50 int left = buffer.getInt(); 55 int right = left + width; 58 return new Rect(left, top, right, bottom);
|
/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/opt/bitmap/src/com/android/bitmap/util/ |
H A D | RectUtils.java | 30 * The top-left of the transformed full rectangle will always be placed at (0, 0). 47 // Then translate so that the upper left corner of the rotated full rect is at (0,0). 49 matrix.setTranslate(-fullRectF.left, -fullRectF.top); 53 fullRect.set((int) fullRectF.left, (int) fullRectF.top, (int) fullRectF.right, 55 partialRect.set((int) partialRectF.left, (int) partialRectF.top, (int) partialRectF.right, 64 rect.set((int) rectF.left, (int) rectF.top, (int) rectF.right, (int) rectF.bottom);
|
/frameworks/support/v7/cardview/base/android/support/v7/widget/ |
H A D | CardViewDelegate.java | 31 void setShadowPadding(int left, int top, int right, int bottom); argument
|
/frameworks/base/core/java/com/android/internal/policy/ |
H A D | DockedDividerUtils.java | 45 outRect.left = position + dividerSize; 58 * @param topLeft Pass true if the bounds are at the top/left of the screen, false if they are 64 // If the bounds are either on the top or left of the screen, rather move it further to the 65 // left/top to make it more offscreen. If they are on the bottom or right, push them off the 68 if (bounds.left >= bounds.right) { 69 bounds.left = bounds.right - 1; 75 if (bounds.right <= bounds.left) { 76 bounds.right = bounds.left + 1; 91 return bounds.left - dividerSize; 101 int start = isHorizontalDivision ? insets.top : insets.left; [all...] |
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | ThinPatchesActivity.java | 78 final int left = (getWidth() - width) / 2; 84 mPatch3.setBounds(left, top, left + height, top + width); 89 mPatch1.setBounds(left, top, left + width, top + height); 95 mPatch2.setBounds(left, top, left + width, top + height);
|
H A D | PathDestructionActivity.java | 59 float left, top, right, bottom; 60 left = MathUtils.random(getWidth() - MIN_SIZE); 62 right = left + MathUtils.random(getWidth() - left); 65 path.moveTo(left, top); 68 path.lineTo(left, bottom);
|
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/ |
H A D | StyledCornersBitmapDrawable.java | 249 float left = bounds.left + mBorderWidth / 2; 258 flapCornerRectF.offsetTo(left, top); 273 flapCornerRectF.offsetTo(left, bottom - mCornerFlapSide); 304 float left = bounds.left; 313 fakeCornerRectF.offsetTo(left, top); 315 mCompatibilityModePath.moveTo(left, top); 316 mCompatibilityModePath.lineTo(left + mCornerRoundRadius, top); 341 fakeCornerRectF.offsetTo(left, botto [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A D | ExpandableOutlineView.java | 83 setOutlineRect(rect.left, rect.top, rect.right, rect.bottom); 93 return mCustomOutline ? mOutlineRect.left : (int) getTranslation(); 114 protected void setOutlineRect(float left, float top, float right, float bottom) { argument 118 mOutlineRect.set((int) left, (int) top, (int) right, (int) bottom); 122 mOutlineRect.right = (int) Math.max(left, mOutlineRect.right);
|
/frameworks/support/v7/gridlayout/tests/src/android/support/v7/widget/ |
H A D | GridLayoutTest.java | 70 int left = mLeftView.getWidth(); 73 assertTrue("left item should get some width", left > 0); 76 assertTrue("left view should be almost two times right view " + left + " vs " + right, 77 Math.abs(right * 2 - left) < 2); 83 int left = mLeftView.getWidth(); 86 assertTrue("left item should get some width", left > 0); 89 assertTrue("left vie [all...] |
/frameworks/av/services/audioflinger/ |
H A D | AudioResamplerFirOps.h | 52 int32_t mulRL(int left, int32_t in, uint32_t vRL) argument 56 if (left) { 69 int16_t v = left ? static_cast<int16_t>(vRL) : static_cast<int16_t>(vRL>>16); 120 int32_t mulAddRL(int left, uint32_t inRL, int16_t v, int32_t a) argument 124 if (left) { 137 int16_t s = left ? static_cast<int16_t>(inRL) : static_cast<int16_t>(inRL>>16); 143 int32_t mulAddRL(int left, uint32_t inRL, int32_t v, int32_t a) argument 147 if (left) { 160 int16_t s = left ? static_cast<int16_t>(inRL) : static_cast<int16_t>(inRL>>16);
|
/frameworks/base/libs/hwui/ |
H A D | Outline.h | 42 void setRoundRect(int left, int top, int right, int bottom, float radius, float alpha) { argument 45 && left == mBounds.left 55 mBounds.set(left, top, right, bottom); 61 mPath.addRoundRect(SkRect::MakeLTRB(left, top, right, bottom), 64 mPath.addRect(left, top, right, bottom);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/stackdivider/ |
H A D | MinimizedDockShadow.java | 53 private void updatePaint(int left, int top, int right, int bottom) { argument 70 0, 0, right - left, 0, 75 right - left, 0, 0, 0, 82 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument 83 super.onLayout(changed, left, top, right, bottom); 85 updatePaint(left, top, right, bottom);
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/jni/ |
H A D | sobeloperator.cpp | 45 const int left = (j > 0)? -4 : 0; local 53 (*(dataPtr + curr + c + right) - *(dataPtr + curr + c + left)) * 2 + 54 *(dataPtr + above + c + right) - *(dataPtr + above + c + left) + 55 *(dataPtr + below + c + right) - *(dataPtr + below + c + left); 58 *(dataPtr + left + c + below) - *(dataPtr + left + c + above) +
|