/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/widget/ |
H A D | RecyclerViewActivity.java | 120 final int left = getPaddingLeft(); 129 layoutDecorated(v, left, top, right, bottom); 152 final int left = getPaddingLeft(); 168 layoutDecorated(v, left, top, right, bottom); 188 layoutDecorated(v, left, top, right, bottom); 207 final int left = getPaddingLeft(); 220 layoutDecorated(v, left, top, right, bottom); 235 layoutDecorated(v, left, top, right, bottom);
|
/frameworks/av/services/audioflinger/ |
H A D | FastMixerDumpState.cpp | 146 // assume same number of tail samples on each side, left and right 148 CentralTendencyStatistics left, right; local 150 left.sample(tail[i]); 155 " left tail: mean=%.2f min=%.2f max=%.2f stddev=%.2f\n" 157 left.mean()*1e-6, left.minimum()*1e-6, left.maximum()*1e-6, left.stddev()*1e-6,
|
/frameworks/base/core/java/android/transition/ |
H A D | Explode.java | 60 int left = mTempLoc[0]; 62 int right = left + view.getWidth(); 64 transitionValues.values.put(PROPNAME_SCREEN_BOUNDS, new Rect(left, top, right, bottom)); 92 return TranslationAnimationCreator.createAnimation(view, endValues, bounds.left, bounds.top, 103 int viewPosX = bounds.left; 113 endX += interruptedPosition[0] - bounds.left;
|
/frameworks/base/core/jni/ |
H A D | android_view_GraphicBuffer.cpp | 64 jfieldID left; member in struct:android::__anon935 163 rect.left = GET_INT(dirtyRect, gRectClassInfo.left); 196 nativeCanvas->clipRect(rect.left, rect.top, rect.right, rect.bottom); 200 int(rect.left), int(rect.top), int(rect.right), int(rect.bottom)); 292 gRectClassInfo.left = GetFieldIDOrDie(env, clazz, "left", "I");
|
H A D | android_view_TextureView.cpp | 44 jfieldID left; member in struct:android::__anon960 143 rect.left = GET_INT(dirtyRect, gRectClassInfo.left); 168 nativeCanvas->clipRect(rect.left, rect.top, rect.right, rect.bottom); 172 int(rect.left), int(rect.top), int(rect.right), int(rect.bottom)); 211 gRectClassInfo.left = GetFieldIDOrDie(env, clazz, "left", "I");
|
/frameworks/base/libs/hwui/ |
H A D | Layer.cpp | 163 void Layer::updateDeferred(RenderNode* renderNode, int left, int top, int right, int bottom) { argument 166 const Rect r(left, top, right, bottom); 227 if (dirtyRect.isEmpty() || (dirtyRect.left <= 0 && dirtyRect.top <= 0 && 237 renderer->setupFrameState(width, height, dirtyRect.left, dirtyRect.top, 259 dirtyRect.left, dirtyRect.top, dirtyRect.right, dirtyRect.bottom, !isBlend()); 277 dirtyRect.left, dirtyRect.top, dirtyRect.right, dirtyRect.bottom, !isBlend());
|
H A D | PathCache.h | 64 PathTexture(Caches& caches, float left, float top, argument 67 , left(left) 84 float left = 0; member in struct:android::uirenderer::PathTexture 232 float& left, float& top, float& offset, uint32_t& width, uint32_t& height); 234 float& left, float& top, float& offset, uint32_t& width, uint32_t& height);
|
H A D | PathCache.cpp | 130 float& left, float& top, float& offset, uint32_t& width, uint32_t& height) { 132 PathCache::computeBounds(bounds, paint, left, top, offset, width, height); 136 float& left, float& top, float& offset, uint32_t& width, uint32_t& height) { 140 left = bounds.fLeft; 167 float left, float top, float offset, uint32_t width, uint32_t height) { 174 canvas.translate(-left + offset, -top + offset); 274 float left, top, offset; local 276 computePathBounds(path, paint, left, top, offset, width, height); 283 drawPath(path, paint, bitmap, left, top, offset, width, height); 286 left, to 129 computePathBounds(const SkPath* path, const SkPaint* paint, float& left, float& top, float& offset, uint32_t& width, uint32_t& height) argument 135 computeBounds(const SkRect& bounds, const SkPaint* paint, float& left, float& top, float& offset, uint32_t& width, uint32_t& height) argument 166 drawPath(const SkPath *path, const SkPaint* paint, SkBitmap& bitmap, float left, float top, float offset, uint32_t width, uint32_t height) argument 333 float left, top, offset; local [all...] |
H A D | DisplayListCanvas.cpp | 130 int DisplayListCanvas::saveLayer(float left, float top, float right, float bottom, argument 136 addStateOp(new (alloc()) SaveLayerOp(left, top, right, bottom, paint, (int) flags)); 181 *outRect = SkRect::MakeLTRB(bounds.left, bounds.top, bounds.right, bounds.bottom); 185 bool DisplayListCanvas::quickRejectRect(float left, float top, float right, float bottom) const { argument 186 return mState.quickRejectConservative(left, top, right, bottom); 195 bool DisplayListCanvas::clipRect(float left, float top, float right, float bottom, argument 197 addStateOp(new (alloc()) ClipRectOp(left, top, right, bottom, op)); 198 return mState.clipRect(left, top, right, bottom, op); 236 void DisplayListCanvas::drawBitmap(const SkBitmap& bitmap, float left, float top, argument 239 translate(left, to 345 drawRect(float left, float top, float right, float bottom, const SkPaint& paint) argument 350 drawRoundRect(float left, float top, float right, float bottom, float rx, float ry, const SkPaint& paint) argument 355 drawRoundRect( CanvasPropertyPrimitive* left, CanvasPropertyPrimitive* top, CanvasPropertyPrimitive* right, CanvasPropertyPrimitive* bottom, CanvasPropertyPrimitive* rx, CanvasPropertyPrimitive* ry, CanvasPropertyPaint* paint) argument 387 drawOval(float left, float top, float right, float bottom, const SkPaint& paint) argument 392 drawArc(float left, float top, float right, float bottom, float startAngle, float sweepAngle, bool useCenter, const SkPaint& paint) argument [all...] |
H A D | LayerRenderer.cpp | 47 float left, float top, float right, float bottom, bool opaque) { 55 Rect dirty(left, top, right, bottom); 56 if (dirty.isEmpty() || (dirty.left <= 0 && dirty.top <= 0 && 62 android::Rect r(dirty.left, dirty.top, dirty.right, dirty.bottom); 68 dirty.left, dirty.top, dirty.right, dirty.bottom, opaque); 71 void LayerRenderer::clear(float left, float top, float right, float bottom, bool opaque) { argument 79 OpenGLRenderer::clear(left, top, right, bottom, opaque); 171 const float u1 = r->left * texX; 176 TextureVertex::set(mesh++, r->left, r->top, u1, v1); 178 TextureVertex::set(mesh++, r->left, 46 prepareDirty(int viewportWidth, int viewportHeight, float left, float top, float right, float bottom, bool opaque) argument [all...] |
/frameworks/base/packages/Keyguard/src/com/android/keyguard/ |
H A D | NumPadKey.java | 157 int left = centerX - mDigitText.getMeasuredWidth() / 2; 159 mDigitText.layout(left, top, left + mDigitText.getMeasuredWidth(), bottom); 163 left = centerX - mKlondikeText.getMeasuredWidth() / 2; 164 mKlondikeText.layout(left, top, left + mKlondikeText.getMeasuredWidth(), bottom);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A D | ScrimView.java | 91 if (mExcludedRect.left + mLeftInset > 0) { 92 canvas.drawRect(0, mExcludedRect.top, mExcludedRect.left + mLeftInset, 175 int left = Math.max(area.left, 0); 179 mExcludedRect.set(left, top, right, bottom); 180 mHasExcludedArea = left < right && top < bottom;
|
/frameworks/base/tools/layoutlib/bridge/src/android/view/ |
H A D | RectShadowPainter.java | 81 // left and right sides. 84 sideShadow(canvas, edgePaint, edgeShadowRect, outline.left, inset.top, 0); 93 edgePaint.setShader(new LinearGradient(edgeShadowRect.right, 0, edgeShadowRect.left, 0, 95 sideShadow(canvas, edgePaint, edgeShadowRect, inset.left, outline.bottom, 3); 99 drawCorner(canvas, cornerPaint, path, inset.left, inset.bottom, outerArcRadius, 1); 100 drawCorner(canvas, cornerPaint, path, inset.left, inset.top, outerArcRadius, 2); 122 // Usually canvas has been translated to the top left corner of the view when this is 123 // called. So, setting a clip rect at 0,0 will clip the top left part of the shadow. 173 return (int) rect.left >= (int) rect.right || (int) rect.top >= (int) rect.bottom;
|
H A D | RenderNode_Delegate.java | 183 /*package*/ static boolean nSetLeft(long renderNode, int left) { argument 185 if (delegate != null && delegate.mLeft != left) { 186 delegate.mLeft = left; 223 /*package*/ static boolean nSetLeftTopRightBottom(long renderNode, int left, int top, int right, argument 226 if (delegate != null && (delegate.mLeft != left || delegate.mTop != top || delegate 228 delegate.mLeft = left;
|
/frameworks/support/compat/java/android/support/v4/view/ |
H A D | WindowInsetsCompat.java | 41 int left, int top, int right, int bottom); 102 public WindowInsetsCompat replaceSystemWindowInsets(Object insets, int left, int top, int right, int bottom) { argument 193 public WindowInsetsCompat replaceSystemWindowInsets(Object insets, int left, int top, argument 196 left, top, right, bottom)); 280 * Returns the left system window inset in pixels. 286 * @return The left system window inset 373 * <p>A round window's left, top, right and bottom edges reach all the way to the 397 * @param left New left inset in pixels 403 public WindowInsetsCompat replaceSystemWindowInsets(int left, in argument 40 replaceSystemWindowInsets(Object insets, int left, int top, int right, int bottom) argument [all...] |
/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | NinePatchDrawable.java | 221 final float px = bounds.left; 231 scaledBounds.left = bounds.left; 233 scaledBounds.right = bounds.left + Math.round(bounds.width() / scale); 243 final float cx = (bounds.left + bounds.right) / 2.0f; 272 return (padding.left | padding.top | padding.right | padding.bottom) != 0; 289 outline.setRoundRect(bounds.left + mOutlineInsets.left, 310 opticalInsets.left, opticalInsets.bottom); 672 final int left [all...] |
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ |
H A D | RationalTest.java | 439 private static <T extends Comparable<? super T>> void assertLessThan(T left, T right) { argument 440 assertTrue("Expected (LR) left " + left + " to be less than right " + right, 441 left.compareTo(right) < 0); 442 assertTrue("Expected (RL) left " + left + " to be less than right " + right, 443 right.compareTo(left) > 0); 446 private static <T extends Comparable<? super T>> void assertGreaterThan(T left, T right) { argument 447 assertTrue("Expected (LR) left " + left 453 assertCompareEquals(T left, T right) argument [all...] |
/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | Task.java | 243 if (mPreScrollBounds.left != bounds.left || mPreScrollBounds.top != bounds.top) { 350 mTmpRect2.offsetTo(adjustedBounds.left, adjustedBounds.top); 377 win.mXOffset = mBounds.left; 386 if (bounds.left > mTmpRect.left) { 387 bounds.left = mTmpRect.left; 388 bounds.right = mTmpRect.left + mBounds.width(); 390 bounds.left [all...] |
H A D | TaskPositioner.java | 363 if (startX < mTmpRect.left) { 396 int left = mWindowOriginalBounds.left; 401 left = Math.min(left + deltaX, right - mMinVisibleWidth); 407 right = Math.max(left + mMinVisibleWidth, right + deltaX); 412 mWindowDragBounds.set(left, top, right, bottom); 433 x = Math.min(Math.max(x, mTmpRect.left), mTmpRect.right); 482 * @return Returns {@link #CTRL_LEFT} if the dim layer should be shown on the left half of the 494 if (x - mSideMargin <= mTmpRect.left) { [all...] |
/frameworks/support/design/src/android/support/design/widget/ |
H A D | CollapsingTextHelper.java | 158 void setExpandedBounds(int left, int top, int right, int bottom) { 159 if (!rectEquals(mExpandedBounds, left, top, right, bottom)) { 160 mExpandedBounds.set(left, top, right, bottom); 166 void setCollapsedBounds(int left, int top, int right, int bottom) { 167 if (!rectEquals(mCollapsedBounds, left, top, right, bottom)) { 168 mCollapsedBounds.set(left, top, right, bottom); 426 mCollapsedDrawX = mCollapsedBounds.left; 458 mExpandedDrawX = mExpandedBounds.left; 469 mCurrentBounds.left = lerp(mExpandedBounds.left, mCollapsedBound 716 rectEquals(Rect r, int left, int top, int right, int bottom) argument [all...] |
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | Canvas_Delegate.java | 387 float left, float top, 396 return canvasDelegate.clipRect(left, top, right, bottom, regionOp); 459 bounds.left = rect.x; 494 float left, float top, 585 final float left, final float top, final float right, final float bottom, long paint) { 596 graphics.fillRect((int)left, (int)top, 597 (int)(right-left), (int)(bottom-top)); 602 graphics.drawRect((int)left, (int)top, 603 (int)(right-left), (int)(bottom-top)); 610 public static void native_drawOval(long nativeCanvas, final float left, argument 386 native_clipRect(long nCanvas, float left, float top, float right, float bottom, int regionOp) argument 493 native_quickReject(long nativeCanvas, float left, float top, float right, float bottom) argument 584 native_drawRect(long nativeCanvas, final float left, final float top, final float right, final float bottom, long paint) argument 645 native_drawArc(long nativeCanvas, final float left, final float top, final float right, final float bottom, final float startAngle, final float sweep, final boolean useCenter, long paint) argument 677 native_drawRoundRect(long nativeCanvas, final float left, final float top, final float right, final float bottom, final float rx, final float ry, long paint) argument 814 native_drawBitmap(Canvas thisCanvas, long nativeCanvas, Bitmap bitmap, float left, float top, long nativePaintOrZero, int canvasDensity, int screenDensity, int bitmapDensity) argument 1142 clipRect(float left, float top, float right, float bottom, int regionOp) argument [all...] |
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/ |
H A D | ExpressionVisitor.java | 138 final Expr left = ctx.left.accept(this); 139 return mModel.ternary(mModel.comparison("==", left, mModel.symbol("null", Object.class)), 140 ctx.right.accept(this), left); 186 return mModel.comparison(ctx.op.getText(), ctx.left.accept(this), ctx.right.accept(this)); 206 return mModel.ternary(ctx.left.accept(this), ctx.iftrue.accept(this), 239 return mModel.math(ctx.left.accept(this), ctx.op.getText(), ctx.right.accept(this)); 249 return mModel.logical(ctx.left.accept(this), ctx.op.getText(), ctx.right.accept(this)); 259 return mModel.math(ctx.left.accept(this), ctx.op.getText(), ctx.right.accept(this)); 269 return mModel.bitshift(ctx.left [all...] |
/frameworks/rs/ |
H A D | rsMatrix4x4.cpp | 254 // is also the destination, e.g. left.loadMultiply(left, right); 276 void Matrix4x4::loadOrtho(float left, float right, float bottom, float top, float near, float far) { argument 278 m[0] = 2.f / (right - left); 281 m[12]= -(right + left) / (right - left); 286 void Matrix4x4::loadFrustum(float left, float right, float bottom, float top, float near, float far) { argument 288 m[0] = 2.f * near / (right - left); 290 m[8] = (right + left) / (right - left); 301 float left = bottom * aspect; local [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | FastScroller.java | 110 * Preview image resource IDs for left- and right-aligned layouts. See 195 /** Whether decorations should be laid out from right to left. */ 583 bounds.left -= mPreviewImage.getPaddingLeft(); 601 view.layout(bounds.left, bounds.top, bounds.right, bounds.bottom); 602 view.setPivotX(mLayoutFromRight ? bounds.right - bounds.left : 0); 616 margins.left = mPreviewImage.getPaddingLeft(); 648 marginLeft = margins.left; 671 // Align to the left or right. 673 final int left; 677 left [all...] |
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/ |
H A D | BaseWrapContentWithAspectRatioTest.java | 82 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument 83 super.onLayout(changed, left, top, right, bottom); 84 mBehavior.onLayout(changed, left, top, right, bottom); 146 public MeasureBehavior withMargins(int left, int top, int right, int bottom) { argument 147 layoutParams.leftMargin = left; 177 public void onLayout(boolean changed, int left, int top, int right, int bottom) { argument 179 layouts.add(new Pair<>(right - left, bottom - top));
|