/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, 186 mHeight * mStrides[0] + top / 2 * mStrides[1] 192 offsets = new int[] {top * mStrides[0] + left / 2 * 4}; 218 // Make sure left, top, width and height are all even. 222 rect.top &= ~1; 224 rect.bottom = rect.top + height;
|
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, int top, in argument 267 op(int left, int top, int right, int bottom, Op op) argument 411 nativeSetRect(long native_dst, int left, int top, int right, int bottom) argument 419 nativeOp(long native_dst, int left, int top, int right, int bottom, int op) argument [all...] |
H A D | LargeBitmap.java | 54 if (rect.left < 0 || rect.top < 0 || rect.right > getWidth() || rect.bottom > getHeight()) 56 return nativeDecodeRegion(mNativeLargeBitmap, rect.left, rect.top, 57 rect.right - rect.left, rect.bottom - rect.top, options);
|
H A D | Canvas.java | 462 return saveLayer(bounds.left, bounds.top, bounds.right, bounds.bottom, paint, saveFlags); 475 public int saveLayer(float left, float top, float right, float bottom, @Nullable Paint paint, argument 477 return native_saveLayer(mNativeCanvasWrapper, left, top, right, bottom, 483 * Convenience for saveLayer(left, top, right, bottom, paint, {@link #ALL_SAVE_FLAG}) 485 public int saveLayer(float left, float top, float right, float bottom, @Nullable Paint paint) { argument 486 return saveLayer(left, top, right, bottom, paint, ALL_SAVE_FLAG); 521 return saveLayerAlpha(bounds.left, bounds.top, bounds.right, bounds.bottom, alpha, saveFlags); 534 public int saveLayerAlpha(float left, float top, float right, float bottom, int alpha, argument 537 return native_saveLayerAlpha(mNativeCanvasWrapper, left, top, right, bottom, 542 * Helper for saveLayerAlpha(left, top, righ 544 saveLayerAlpha(float left, float top, float right, float bottom, int alpha) argument 761 clipRect(float left, float top, float right, float bottom, @NonNull Region.Op op) argument 779 clipRect(float left, float top, float right, float bottom) argument 797 clipRect(int left, int top, int right, int bottom) argument 950 quickReject(float left, float top, float right, float bottom, @NonNull EdgeType type) argument 1145 drawRect(float left, float top, float right, float bottom, @NonNull Paint paint) argument 1166 drawOval(float left, float top, float right, float bottom, @NonNull Paint paint) argument 1234 drawArc(float left, float top, float right, float bottom, float startAngle, float sweepAngle, boolean useCenter, @NonNull Paint paint) argument 1261 drawRoundRect(float left, float top, float right, float bottom, float rx, float ry, @NonNull Paint paint) argument 1336 drawBitmap(@onNull Bitmap bitmap, float left, float top, @Nullable Paint paint) argument 1995 native_clipRect(long nativeCanvas, float left, float top, float right, float bottom, int regionOp) argument 2013 native_quickReject(long nativeCanvas, float left, float top, float right, float bottom) argument 2031 native_drawRect(long nativeCanvas, float left, float top, float right, float bottom, long nativePaint) argument 2035 native_drawOval(long nativeCanvas, float left, float top, float right, float bottom, long nativePaint) argument 2040 native_drawArc(long nativeCanvas, float left, float top, float right, float bottom, float startAngle, float sweep, boolean useCenter, long nativePaint) argument 2044 native_drawRoundRect(long nativeCanvas, float left, float top, float right, float bottom, float rx, float ry, long nativePaint) argument 2050 native_drawBitmap(long nativeCanvas, long nativeBitmap, float left, float top, long nativePaintOrZero, int canvasDensity, int screenDensity, int bitmapDensity) argument [all...] |
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | ThinPatchesActivity.java | 79 final int top = (getHeight() - height) / 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; 61 top = MathUtils.random(getHeight() - MIN_SIZE); 63 bottom = top + MathUtils.random(getHeight() - top); 65 path.moveTo(left, top); 66 path.lineTo(right, top);
|
H A D | GradientsActivity.java | 221 float top = 40.0f; 228 mMatrix.postTranslate(right, top); 231 canvas.drawRect(right - mDrawWidth, top, right, top + mDrawHeight, mPaint); 233 top += 40.0f + mDrawHeight; 237 mMatrix.postTranslate(left, top); 240 canvas.drawRect(left, top, right, top + mDrawHeight, mPaint); 244 top -= 40.0f + mDrawHeight; 254 top [all...] |
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/ |
H A D | StyledCornersBitmapDrawable.java | 236 // Draw scrim on top of parent. 241 float top = bounds.top + mBorderWidth / 2; 249 flapCornerRectF.offsetTo(left, top); 254 flapCornerRectF.offsetTo(right - mCornerFlapSide, top); 285 float top = bounds.top; 293 fakeCornerRectF.offsetTo(left, top); 295 mCompatibilityModePath.moveTo(left, top); 296 mCompatibilityModePath.lineTo(left + mCornerRoundRadius, top); [all...] |
/frameworks/base/policy/src/com/android/internal/policy/impl/ |
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); 100 final int top = chld.top - bkg.top; 115 background.setBounds(left, top, right, bottom); 144 r.left = r.top = Integer.MAX_VALUE; 151 r.top = Math.min(r.top, [all...] |
/frameworks/compile/mclinker/lib/Script/ |
H A D | RpnEvaluator.cpp | 45 Operand* opd = operandStack.top(); 52 Operand* opd2 = operandStack.top(); 54 Operand* opd1 = operandStack.top(); 62 Operand* opd3 = operandStack.top(); 64 Operand* opd2 = operandStack.top(); 66 Operand* opd1 = operandStack.top(); 107 // stack top is result 108 assert(operandStack.top()->type() == Operand::SYMBOL || 109 operandStack.top()->type() == Operand::INTEGER || 110 operandStack.top() [all...] |
/frameworks/opt/chips/src/com/android/ex/chips/recipientchip/ |
H A D | ReplacementDrawableSpan.java | 35 fm.ascent = Math.min(fm.top, fm.top + (textHeight - bounds.bottom) / 2) - halfMargin; 38 fm.top = fm.ascent; 50 public void draw(Canvas canvas, CharSequence charSequence, int start, int end, float x, int top, argument 53 int transY = (bottom - mDrawable.getBounds().bottom + top) / 2;
|
/frameworks/base/core/tests/coretests/src/android/text/ |
H A D | StaticLayoutTest.java | 74 assertVertMetrics(l, fmi.top - fmi.ascent, fmi.bottom - fmi.descent, 75 fmi.top, fmi.bottom); 80 * Ascent of top line and descent of bottom line are affected. 90 assertVertMetrics(l, fmi.top - fmi.ascent, fmi.bottom - fmi.descent, 91 fmi.top, fmi.descent, 97 * First line ascent is top, bottom line descent is bottom. 108 assertVertMetrics(l, fmi.top - fmi.ascent, fmi.bottom - fmi.descent, 109 fmi.top, fmi.descent, 136 assertVertMetrics(l, fmi.top - fmi.ascent, fmi.bottom - fmi.descent, 137 fmi.top, fm 311 assertLineMetrics(Layout l, int line, int top, int ascent, int descent, int height) argument [all...] |
/frameworks/base/include/private/graphics/ |
H A D | Canvas.h | 58 virtual int saveLayer(float left, float top, float right, float bottom, 60 virtual int saveLayerAlpha(float left, float top, float right, float bottom, 75 virtual bool quickRejectRect(float left, float top, float right, float bottom) const = 0; 78 virtual bool clipRect(float left, float top, float right, float bottom, SkRegion::Op op) = 0; 98 virtual void drawRect(float left, float top, float right, float bottom, 100 virtual void drawRoundRect(float left, float top, float right, float bottom, 103 virtual void drawOval(float left, float top, float right, float bottom, 105 virtual void drawArc(float left, float top, float right, float bottom, 113 virtual void drawBitmap(const SkBitmap& bitmap, float left, float top,
|
/frameworks/base/core/java/android/view/ |
H A D | GLES20Canvas.java | 41 * An implementation of Canvas on top of OpenGL ES 2.0. 196 return nPrepareDirty(mRenderer, dirty.left, dirty.top, dirty.right, dirty.bottom, 204 private static native int nPrepareDirty(long renderer, int left, int top, int right, int bottom, argument 292 public boolean clipRect(float left, float top, float right, float bottom) { argument 293 return nClipRect(mRenderer, left, top, right, bottom, Region.Op.INTERSECT.nativeInt); 296 private static native boolean nClipRect(long renderer, float left, float top, argument 300 public boolean clipRect(float left, float top, float right, float bottom, Region.Op op) { argument 301 return nClipRect(mRenderer, left, top, right, bottom, op.nativeInt); 305 public boolean clipRect(int left, int top, int right, int bottom) { argument 306 return nClipRect(mRenderer, left, top, righ 309 nClipRect(long renderer, int left, int top, int right, int bottom, int op) argument 354 quickReject(float left, float top, float right, float bottom, EdgeType type) argument 358 nQuickReject(long renderer, float left, float top, float right, float bottom) argument 457 saveLayer(float left, float top, float right, float bottom, Paint paint, int saveFlags) argument 466 nSaveLayer(long renderer, float left, float top, float right, float bottom, long paint, int saveFlags) argument 481 saveLayerAlpha(float left, float top, float right, float bottom, int alpha, int saveFlags) argument 489 nSaveLayerAlpha(long renderer, float left, float top, float right, float bottom, int alpha, int saveFlags) argument 541 drawArc(float left, float top, float right, float bottom, float startAngle, float sweepAngle, boolean useCenter, Paint paint) argument 547 nDrawArc(long renderer, float left, float top, float right, float bottom, float startAngle, float sweepAngle, boolean useCenter, long paint) argument 574 nDrawPatch(long renderer, long bitmap, long chunk, float left, float top, float right, float bottom, long paint) argument 578 drawBitmap(Bitmap bitmap, float left, float top, Paint paint) argument 584 nDrawBitmap(long renderer, long bitmap, float left, float top, long paint) argument 639 nDrawBitmap(long renderer, long bitmap, float srcLeft, float srcTop, float srcRight, float srcBottom, float left, float top, float right, float bottom, long paint) argument 727 drawRoundRect(CanvasProperty<Float> left, CanvasProperty<Float> top, CanvasProperty<Float> right, CanvasProperty<Float> bottom, CanvasProperty<Float> rx, CanvasProperty<Float> ry, CanvasProperty<Paint> paint) argument 780 drawOval(float left, float top, float right, float bottom, Paint paint) argument 784 nDrawOval(long renderer, float left, float top, float right, float bottom, long paint) argument 840 drawRect(float left, float top, float right, float bottom, Paint paint) argument 845 nDrawRect(long renderer, float left, float top, float right, float bottom, long paint) argument 864 drawRoundRect(float left, float top, float right, float bottom, float rx, float ry, Paint paint) argument 869 nDrawRoundRect(long renderer, float left, float top, float right, float bottom, float rx, float y, long paint) argument [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
H A D | QSContainer.java | 44 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument 45 super.onLayout(changed, left, top, right, bottom);
|
/frameworks/rs/java/ |
H A D | Android.mk | 3 # Only build our tests if we doing a top-level build. Do not build the
|
/frameworks/support/v4/api21/android/support/v4/graphics/drawable/ |
H A D | DrawableCompatL.java | 32 public static void setHotspotBounds(Drawable drawable, int left, int top, argument 34 drawable.setHotspotBounds( left, top, right, bottom);
|
/frameworks/support/v4/jellybean-mr1/android/support/v4/view/ |
H A D | ViewCompatJellybeanMr1.java | 55 public static void setPaddingRelative(View view, int start, int top, int end, int bottom) { argument 56 view.setPaddingRelative(start, top, end, bottom);
|
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/ |
H A D | h264bsd_deblocking.c | 133 u32 top; member in struct:__anon596 390 top-most edge of a macroblock. Macroblock types are checked 420 top-most edge of a macroblock. Macroblock types are checked 563 mb pointer to macroblock data structure of the top-left 1149 /* top edges */ 1154 bS[0].top = bS[1].top = bS[2].top = bS[3].top = 4; 1159 bS[0].top [all...] |
/frameworks/support/v4/donut/android/support/v4/view/ |
H A D | WindowInsetsCompat.java | 47 * Returns the top system window inset in pixels. 53 * @return The top system window inset 127 * <p>A round window's left, top, right and bottom edges reach all the way to the 152 * @param top New top inset in pixels 157 public WindowInsetsCompat replaceSystemWindowInsets(int left, int top, int right, int bottom) { argument 174 * Returns the top stable inset in pixels. 182 * @return The top stable inset
|
/frameworks/base/libs/hwui/ |
H A D | Outline.h | 34 void setRoundRect(int left, int top, int right, int bottom, float radius, float alpha) { argument 36 mBounds.set(left, top, right, bottom); 39 mPath.addRoundRect(SkRect::MakeLTRB(left, top, right, bottom),
|
H A D | OpenGLRenderer.h | 136 virtual status_t prepareDirty(float left, float top, float right, float bottom, bool opaque); 146 virtual int saveLayer(float left, float top, float right, float bottom, argument 148 return saveLayer(left, top, right, bottom, paint, flags, NULL); 153 int saveLayer(float left, float top, float right, float bottom, 156 int saveLayerDeferred(float left, float top, float right, float bottom, 173 float left, float top, float right, float bottom, const SkPaint* paint); 175 float left, float top, float right, float bottom, const SkPaint* paint); 177 virtual status_t drawRect(float left, float top, float right, float bottom, 179 virtual status_t drawRoundRect(float left, float top, float right, float bottom, 182 virtual status_t drawOval(float left, float top, floa 327 drawScreenSpaceColorRect(float left, float top, float right, float bottom, int color) argument [all...] |
H A D | Renderer.h | 123 * @param top The top coordinate of the dirty rectangle 130 virtual status_t prepareDirty(float left, float top, float right, float bottom, 148 virtual int saveLayer(float left, float top, float right, float bottom, 151 int saveLayerAlpha(float left, float top, float right, float bottom, argument 155 return saveLayer(left, top, right, bottom, &paint, flags); 170 virtual bool quickRejectConservative(float left, float top, 172 virtual bool clipRect(float left, float top, float right, float bottom, SkRegion::Op op) = 0; 194 float left, float top, float right, float bottom, const SkPaint* paint) = 0; 197 virtual status_t drawRect(float left, float top, floa [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/recent/ |
H A D | FadedEdgeDrawHelper.java | 86 int left, int right, int top, int bottom, int scrollX, int scrollY, 116 // clip the fade length if top and bottom fades overlap 118 if (mIsVertical && (top + length > bottom - length)) { 119 length = (bottom - top) / 2; 143 mFadeMatrix.postTranslate(left, top); 146 canvas.drawRect(left, top, right, top + length, mFadePaint); 149 // Draw under the status bar at the top 153 canvas.drawRect(left, top - mPaddingTop, right, top, mBlackPain 85 drawCallback(Canvas canvas, int left, int right, int top, int bottom, int scrollX, int scrollY, float topFadingEdgeStrength, float bottomFadingEdgeStrength, float leftFadingEdgeStrength, float rightFadingEdgeStrength, int mPaddingTop) argument [all...] |
/frameworks/rs/scriptc/ |
H A D | rs_math.rsh | 96 * @param top plane 104 float4 *top, float4 *bottom, 117 top->x = viewProj->m[3] - viewProj->m[1]; 118 top->y = viewProj->m[7] - viewProj->m[5]; 119 top->z = viewProj->m[11] - viewProj->m[9]; 120 top->w = viewProj->m[15] - viewProj->m[13]; 141 len = length(top->xyz); 142 *top /= len; 156 * @param top plane 164 float4 *top, float [all...] |