Searched refs:left (Results 151 - 175 of 741) sorted by relevance

1234567891011>>

/frameworks/av/services/camera/libcameraservice/api1/client2/
H A DParameters.h101 int left, top, right, bottom; member in struct:android::camera2::Parameters::Area
104 Area(int left, int top, int right, int bottom, int weight): argument
105 left(left), top(top), right(right), bottom(bottom),
108 return (left == 0) && (top == 0) && (right == 0) && (bottom == 0);
279 float left; member in struct:android::camera2::Parameters::CropRegion
/frameworks/base/core/java/android/transition/
H A DExplode.java60 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 Dandroid_view_GraphicBuffer.cpp64 jfieldID left; member in struct:android::__anon929
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 Dandroid_view_TextureView.cpp44 jfieldID left; member in struct:android::__anon954
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 DLayer.cpp163 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 DPathCache.h64 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 DPathCache.cpp130 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 DDisplayListCanvas.cpp130 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 DLayerRenderer.cpp47 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 DNumPadKey.java149 int left = centerX - mDigitText.getMeasuredWidth() / 2;
151 mDigitText.layout(left, top, left + mDigitText.getMeasuredWidth(), bottom);
155 left = centerX - mKlondikeText.getMeasuredWidth() / 2;
156 mKlondikeText.layout(left, top, left + mKlondikeText.getMeasuredWidth(), bottom);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DScrimView.java90 if (mExcludedRect.left > 0) {
91 canvas.drawRect(0, mExcludedRect.top, mExcludedRect.left, mExcludedRect.bottom,
174 int left = Math.max(area.left, 0);
178 mExcludedRect.set(left, top, right, bottom);
179 mHasExcludedArea = left < right && top < bottom;
/frameworks/base/tools/layoutlib/bridge/src/android/view/
H A DRectShadowPainter.java81 // 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 DRenderNode_Delegate.java183 /*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/native/libs/ui/
H A DGraphicBufferMapper.cpp87 bounds.left, bounds.top, bounds.width(), bounds.height(),
105 bounds.left, bounds.top, bounds.width(), bounds.height(),
131 bounds.left, bounds.top, bounds.width(), bounds.height(),
139 bounds.left, bounds.top, bounds.width(), bounds.height(),
156 static_cast<int>(usage), bounds.left, bounds.top,
164 bounds.left, bounds.top, bounds.width(), bounds.height(),
/frameworks/support/design/src/android/support/design/widget/
H A DSwipeDismissBehavior.java62 * left-to-right in LTR, or right-to-left in RTL.
68 * right-to-left in LTR or left-to-right in RTL.
260 // Else, reset back to the original left
303 public int clampViewPositionHorizontal(View child, int left, int dx) {
329 return clamp(min, left, max);
338 public void onViewPositionChanged(View child, int left, int top, int dx, int dy) {
344 if (left <= startAlphaDistance) {
346 } else if (left >
[all...]
H A DCollapsingTextHelper.java153 void setExpandedBounds(int left, int top, int right, int bottom) {
154 if (!rectEquals(mExpandedBounds, left, top, right, bottom)) {
155 mExpandedBounds.set(left, top, right, bottom);
161 void setCollapsedBounds(int left, int top, int right, int bottom) {
162 if (!rectEquals(mCollapsedBounds, left, top, right, bottom)) {
163 mCollapsedBounds.set(left, top, right, bottom);
388 mCollapsedDrawX = mCollapsedBounds.left;
420 mExpandedDrawX = mExpandedBounds.left;
431 mCurrentBounds.left = lerp(mExpandedBounds.left, mCollapsedBound
662 rectEquals(Rect r, int left, int top, int right, int bottom) argument
[all...]
/frameworks/base/graphics/java/android/graphics/drawable/
H A DNinePatchDrawable.java221 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 DRationalTest.java439 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 DTask.java242 if (mPreScrollBounds.left != bounds.left || mPreScrollBounds.top != bounds.top) {
349 mTmpRect2.offsetTo(adjustedBounds.left, adjustedBounds.top);
376 win.mXOffset = mBounds.left;
385 if (bounds.left > mTmpRect.left) {
386 bounds.left = mTmpRect.left;
387 bounds.right = mTmpRect.left + mBounds.width();
389 bounds.left
[all...]
H A DTaskPositioner.java363 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/base/tools/layoutlib/bridge/src/android/graphics/
H A DCanvas_Delegate.java387 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 DExpressionVisitor.java138 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 DrsMatrix4x4.cpp254 // 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 DFastScroller.java110 * 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...]
H A DSwitch.java826 thumbWidth = mThumbDrawable.getIntrinsicWidth() - padding.left - padding.right;
852 // Adjust left and right padding to ensure there's enough room for the
854 int paddingLeft = padding.left;
858 paddingLeft = Math.max(paddingLeft, inset.left);
912 mTempRect.left + mTempRect.right + mTouchSlop;
1087 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument
1088 super.onLayout(changed, left, top, right, bottom);
1101 opticalInsetLeft = Math.max(0, insets.left - trackPadding.left);
1164 thumbInitialLeft += padding.left;
[all...]

Completed in 8988 milliseconds

1234567891011>>