/frameworks/base/core/java/android/text/ |
H A D | SpannableStringBuilder.java | 880 int left = leftChild(i); 881 int spanMax = mSpanMax[left]; 886 count = countSpans(queryStart, queryEnd, kind, left); 934 int left = leftChild(i); 935 int spanMax = mSpanMax[left]; 940 count = getSpansRec(queryStart, queryEnd, kind, left, ret, priority, 1094 int left = 2 * index + 1; 1095 while (left < size) { 1096 if (left < size - 1 && compareSpans(left, lef 1130 compareSpans(int left, int right, int[] priority, int[] insertionOrder) argument [all...] |
/frameworks/base/core/java/android/view/ |
H A D | RecordingCanvas.java | 57 public final void drawArc(float left, float top, float right, float bottom, float startAngle, argument 59 nDrawArc(mNativeCanvasWrapper, left, top, right, bottom, startAngle, sweepAngle, 66 drawArc(oval.left, oval.top, oval.right, oval.bottom, startAngle, sweepAngle, useCenter, 76 public final void drawBitmap(@NonNull Bitmap bitmap, float left, float top, argument 79 nDrawBitmap(mNativeCanvasWrapper, bitmap, left, top, 100 int left, top, right, bottom; 102 left = top = 0; 106 left = src.left; 112 nDrawBitmap(mNativeCanvasWrapper, bitmap, left, to 238 drawOval(float left, float top, float right, float bottom, @NonNull Paint paint) argument 357 drawRect(float left, float top, float right, float bottom, @NonNull Paint paint) argument 379 drawRoundRect(float left, float top, float right, float bottom, float rx, float ry, @NonNull Paint paint) argument 536 nDrawBitmap(long nativeCanvas, Bitmap bitmap, float left, float top, long nativePaintOrZero, int canvasDensity, int screenDensity, int bitmapDensity) argument 571 nDrawRect(long nativeCanvas, float left, float top, float right, float bottom, long nativePaint) argument 575 nDrawOval(long nativeCanvas, float left, float top, float right, float bottom, long nativePaint) argument 583 nDrawArc(long nativeCanvas, float left, float top, float right, float bottom, float startAngle, float sweep, boolean useCenter, long nativePaint) argument 587 nDrawRoundRect(long nativeCanvas, float left, float top, float right, float bottom, float rx, float ry, long nativePaint) argument [all...] |
H A D | SurfaceView.java | 342 protected boolean setFrame(int left, int top, int right, int bottom) { argument 343 boolean result = super.setFrame(left, top, right, bottom); 508 + " left=" + (mWindowSpaceLeft != mLocation[0]) 520 mScreenRect.left = mWindowSpaceLeft; 529 mScreenRect.offset(surfaceInsets.left, surfaceInsets.top); 571 mSurfaceControl.setPosition(mScreenRect.left, mScreenRect.top); 587 mSurfaceFrame.left = 0; 712 TAG, "Layout: x=" + mScreenRect.left + " y=" + mScreenRect.top 746 mScreenRect.left, mScreenRect.top, 781 mSurfaceControl.setPosition(position.left, positio 796 updateSurfacePosition_renderWorker(long frameNumber, int left, int top, int right, int bottom) argument [all...] |
/frameworks/base/core/java/android/view/animation/ |
H A D | Animation.java | 1013 * @param left 1022 public void getInvalidateRegion(int left, int top, int right, int bottom, argument 1028 invalidate.set(left, top, right, bottom); 1046 * @param left 1053 public void initializeInvalidateRegion(int left, int top, int right, int bottom) { argument 1055 region.set(left, top, right, bottom);
|
/frameworks/base/core/java/android/widget/ |
H A D | ActionMenuPresenter.java | 310 if (menuItemLayoutInfoPre.left != menuItemLayoutInfoPost.left) { 312 (menuItemLayoutInfoPre.left - menuItemLayoutInfoPost.left), 0); 1030 int left; field in class:ActionMenuPresenter.MenuItemLayoutInfo 1034 left = view.getLeft(); 1039 left += view.getTranslationX();
|
H A D | AdapterView.java | 557 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument
|
H A D | AdapterViewAnimator.java | 760 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument
|
H A D | ExpandableListView.java | 300 * Resolve start/end indicator. start/end indicator always takes precedence over left/right 327 * left/right child indicator when defined. 414 // the left & right bounds 417 indicatorRect.left = (mChildIndicatorLeft == CHILD_INDICATOR_INHERIT) ? 422 indicatorRect.left = mIndicatorLeft; 427 final int temp = indicatorRect.left; 428 indicatorRect.left = width - indicatorRect.right; 431 indicatorRect.left -= mPaddingRight; 434 indicatorRect.left += mPaddingLeft; 441 if (indicatorRect.left ! 1172 setChildIndicatorBounds(int left, int right) argument 1221 setIndicatorBounds(int left, int right) argument [all...] |
H A D | HorizontalScrollView.java | 875 * (excluding fading edges) pretending that this View's left is located at 876 * the parameter left. 879 * @param leftFocus look for a candidate is the one at the left of the bounds 882 * @param left the left offset of the bounds in which a focusable must be 889 final int left, View preferredFocusable) { 896 final int leftWithoutFadingEdge = left + fadingEdgeLength; 897 final int rightWithoutFadingEdge = left + getWidth() - fadingEdgeLength; 914 * @param leftFocus look for a candidate is the one at the left of the bounds 917 * @param left th 888 findFocusableViewInMyBounds(final boolean leftFocus, final int left, View preferredFocusable) argument 924 findFocusableViewInBounds(boolean leftFocus, int left, int right) argument 1070 scrollAndFocus(int direction, int left, int right) argument [all...] |
H A D | LinearLayout.java | 349 * to left and right end of dividers. For a horizontal layout, the padding is applied to top and 489 void drawVerticalDivider(Canvas canvas, int left) { argument 490 mDivider.setBounds(left, getPaddingTop() + mDividerPadding, 491 left + mDividerWidth, getHeight() - getPaddingBottom() - mDividerPadding); 1557 * @param left 1562 void layoutVertical(int left, int top, int right, int bottom) { argument 1569 final int width = right - left; 1662 * @param left 1667 void layoutHorizontal(int left, int top, int right, int bottom) { argument 1695 childLeft = mPaddingLeft + right - left 1790 setChildFrame(View child, int left, int top, int width, int height) argument [all...] |
H A D | SimpleMonthView.java | 387 // day to the left, top, right, or bottom). Focus forward and back jumps out of the 880 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument 886 final int w = right - left; 986 // Compute left edge, taking into account RTL. 989 final int left; 991 left = getWidth() - getPaddingRight() - (col + 1) * colWidth; 993 left = getPaddingLeft() + col * colWidth; 1002 outBounds.set(left, top, left + colWidth, top + rowHeight);
|
H A D | Switch.java | 829 thumbWidth = mThumbDrawable.getIntrinsicWidth() - padding.left - padding.right; 855 // Adjust left and right padding to ensure there's enough room for the 857 int paddingLeft = padding.left; 861 paddingLeft = Math.max(paddingLeft, inset.left); 916 mTempRect.left + mTempRect.right + mTouchSlop; 1091 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument 1092 super.onLayout(changed, left, top, right, bottom); 1105 opticalInsetLeft = Math.max(0, insets.left - trackPadding.left); 1168 thumbInitialLeft += padding.left; [all...] |
H A D | VideoView.java | 896 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument 897 super.onLayout(changed, left, top, right, bottom);
|
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | ActionBarOverlayLayout.java | 288 private boolean applyInsets(View view, Rect insets, boolean left, boolean top, argument 292 if (left && lp.leftMargin != insets.left) { 294 lp.leftMargin = insets.left; 473 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument 477 final int parentRight = right - left - getPaddingRight();
|
/frameworks/base/core/jni/android/graphics/ |
H A D | Path.cpp | 121 static void arcTo(JNIEnv* env, jclass clazz, jlong objHandle, jfloat left, jfloat top, argument 125 SkRect oval = SkRect::MakeLTRB(left, top, right, bottom); 135 jfloat left, jfloat top, jfloat right, jfloat bottom, jint dirHandle) { 138 obj->addRect(left, top, right, bottom, dir); 142 jfloat left, jfloat top, jfloat right, jfloat bottom, jint dirHandle) { 145 SkRect oval = SkRect::MakeLTRB(left, top, right, bottom); 156 static void addArc(JNIEnv* env, jclass clazz, jlong objHandle, jfloat left, jfloat top, argument 158 SkRect oval = SkRect::MakeLTRB(left, top, right, bottom); 163 static void addRoundRectXY(JNIEnv* env, jclass clazz, jlong objHandle, jfloat left, jfloat top, argument 165 SkRect rect = SkRect::MakeLTRB(left, to 134 addRect(JNIEnv* env, jclass clazz, jlong objHandle, jfloat left, jfloat top, jfloat right, jfloat bottom, jint dirHandle) argument 141 addOval(JNIEnv* env, jclass clazz, jlong objHandle, jfloat left, jfloat top, jfloat right, jfloat bottom, jint dirHandle) argument 171 addRoundRect8(JNIEnv* env, jclass clazz, jlong objHandle, jfloat left, jfloat top, jfloat right, jfloat bottom, jfloatArray array, jint dirHandle) argument [all...] |
/frameworks/base/core/jni/ |
H A D | android_view_RenderNode.cpp | 121 jint left, jint top, jint right, jint bottom) { 122 android::uirenderer::Rect clipBounds(left, top, right, bottom); 141 jint left, jint top, jint right, jint bottom, jfloat radius, jfloat alpha) { 143 renderNode->mutateStagingProperties().mutableOutline().setRoundRect(left, top, right, bottom, 252 static jboolean android_view_RenderNode_setLeft(jlong renderNodePtr, int left) { argument 253 return SET_AND_DIRTY(setLeft, left, RenderNode::X); 269 int left, int top, int right, int bottom) { 271 if (renderNode->mutateStagingProperties().setLeftTopRightBottom(left, top, right, bottom)) { 470 (jint) bounds.left, (jint) bounds.top, 502 void doUpdatePositionAsync(jlong frameNumber, jint left, jin argument 120 android_view_RenderNode_setClipBounds(jlong renderNodePtr, jint left, jint top, jint right, jint bottom) argument 140 android_view_RenderNode_setOutlineRoundRect(jlong renderNodePtr, jint left, jint top, jint right, jint bottom, jfloat radius, jfloat alpha) argument 268 android_view_RenderNode_setLeftTopRightBottom(jlong renderNodePtr, int left, int top, int right, int bottom) argument [all...] |
/frameworks/base/graphics/java/android/graphics/ |
H A D | BaseCanvas.java | 83 public void drawArc(float left, float top, float right, float bottom, float startAngle, argument 86 nDrawArc(mNativeCanvasWrapper, left, top, right, bottom, startAngle, sweepAngle, 93 drawArc(oval.left, oval.top, oval.right, oval.bottom, startAngle, sweepAngle, useCenter, 101 public void drawBitmap(@NonNull Bitmap bitmap, float left, float top, @Nullable Paint paint) { argument 104 nDrawBitmap(mNativeCanvasWrapper, bitmap, left, top, 124 int left, top, right, bottom; 126 left = top = 0; 130 left = src.left; 136 nDrawBitmap(mNativeCanvasWrapper, bitmap, left, to 256 drawOval(float left, float top, float right, float bottom, @NonNull Paint paint) argument 338 drawRect(float left, float top, float right, float bottom, @NonNull Paint paint) argument 358 drawRoundRect(float left, float top, float right, float bottom, float rx, float ry, @NonNull Paint paint) argument 556 nDrawBitmap(long nativeCanvas, Bitmap bitmap, float left, float top, long nativePaintOrZero, int canvasDensity, int screenDensity, int bitmapDensity) argument 582 nDrawRect(long nativeCanvas, float left, float top, float right, float bottom, long nativePaint) argument 585 nDrawOval(long nativeCanvas, float left, float top, float right, float bottom, long nativePaint) argument 591 nDrawArc(long nativeCanvas, float left, float top, float right, float bottom, float startAngle, float sweep, boolean useCenter, long nativePaint) argument 594 nDrawRoundRect(long nativeCanvas, float left, float top, float right, float bottom, float rx, float ry, long nativePaint) argument [all...] |
H A D | Path.java | 458 arcTo(oval.left, oval.top, oval.right, oval.bottom, startAngle, sweepAngle, forceMoveTo); 473 arcTo(oval.left, oval.top, oval.right, oval.bottom, startAngle, sweepAngle, false); 488 public void arcTo(float left, float top, float right, float bottom, float startAngle, argument 491 nArcTo(mNativePath, left, top, right, bottom, startAngle, sweepAngle, forceMoveTo); 519 private void detectSimplePath(float left, float top, float right, float bottom, Direction dir) { argument 527 rects.op((int) left, (int) top, (int) right, (int) bottom, Region.Op.UNION); 538 addRect(rect.left, rect.top, rect.right, rect.bottom, dir); 544 * @param left The left side of a rectangle to add to the path 550 public void addRect(float left, floa argument 570 addOval(float left, float top, float right, float bottom, Direction dir) argument 605 addArc(float left, float top, float right, float bottom, float startAngle, float sweepAngle) argument 630 addRoundRect(float left, float top, float right, float bottom, float rx, float ry, Direction dir) argument 660 addRoundRect(float left, float top, float right, float bottom, float[] radii, Direction dir) argument 837 nArcTo(long nPath, float left, float top, float right, float bottom, float startAngle, float sweepAngle, boolean forceMoveTo) argument 840 nAddRect(long nPath, float left, float top, float right, float bottom, int dir) argument 842 nAddOval(long nPath, float left, float top, float right, float bottom, int dir) argument 845 nAddArc(long nPath, float left, float top, float right, float bottom, float startAngle, float sweepAngle) argument 847 nAddRoundRect(long nPath, float left, float top, float right, float bottom, float rx, float ry, int dir) argument 849 nAddRoundRect(long nPath, float left, float top, float right, float bottom, float[] radii, int dir) argument [all...] |
/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | AdaptiveIconDrawable.java | 69 * Rect(getBounds().left - getBounds().getWidth() * #getExtraInsetFraction(), 263 * extended by {@link #getExtraInsetFraction()} * getBounds().width on left/right sides and by 274 * extended by {@link #getExtraInsetFraction()} * getBounds().width on left/right sides and by 341 // mMask bound [left, top, right, bottom] 342 mMaskMatrix.postTranslate(b.left, b.top); 372 canvas.drawBitmap(mMaskBitmap, bounds.left, bounds.top, mPaint); 615 public void setHotspotBounds(int left, int top, int right, int bottom) { argument 620 dr.setHotspotBounds(left, top, right, bottom); 625 mHotspotBounds = new Rect(left, top, right, bottom); 627 mHotspotBounds.set(left, to [all...] |
H A D | Drawable.java | 218 public void setBounds(int left, int top, int right, int bottom) { argument 225 if (oldBounds.left != left || oldBounds.top != top || 231 mBounds.set(left, top, right, bottom); 241 setBounds(bounds.left, bounds.top, bounds.right, bounds.bottom); 691 * @param left position in pixels of the left bound 697 public void setHotspotBounds(int left, int top, int right, int bottom) {} argument 870 * (right-to left). See {@link android.util.LayoutDirection}. 879 * right-to-left [all...] |
H A D | RippleDrawable.java | 635 public void setHotspotBounds(int left, int top, int right, int bottom) { argument 637 mHotspotBounds.set(left, top, right, bottom); 795 final int left = bounds.left; 797 mMaskCanvas.translate(-left, -top); 803 mMaskCanvas.translate(left, top); 864 mMaskMatrix.setTranslate(bounds.left - x, bounds.top - y);
|
/frameworks/base/libs/hwui/ |
H A D | RecordingCanvas.cpp | 118 int RecordingCanvas::saveLayer(float left, float top, float right, float bottom, argument 130 Rect unmappedBounds(left, top, right, bottom); 174 snapshot.transform->loadTranslate(-unmappedBounds.left, -unmappedBounds.top, 0.0f); 177 clip.translate(-unmappedBounds.left, -unmappedBounds.top); 178 snapshot.resetClip(clip.left, clip.top, clip.right, clip.bottom); 230 bool RecordingCanvas::quickRejectRect(float left, float top, float right, float bottom) const { argument 231 return mState.quickRejectConservative(left, top, right, bottom); 237 bool RecordingCanvas::clipRect(float left, float top, float right, float bottom, SkClipOp op) { argument 238 return mState.clipRect(left, top, right, bottom, op); 292 void RecordingCanvas::drawRect(float left, floa argument 308 float left = FLT_MAX; local 363 drawRoundRect(float left, float top, float right, float bottom, float rx, float ry, const SkPaint& paint) argument 378 drawRoundRect( CanvasPropertyPrimitive* left, CanvasPropertyPrimitive* top, CanvasPropertyPrimitive* right, CanvasPropertyPrimitive* bottom, CanvasPropertyPrimitive* rx, CanvasPropertyPrimitive* ry, CanvasPropertyPaint* paint) argument 421 drawOval(float left, float top, float right, float bottom, const SkPaint& paint) argument 431 drawArc(float left, float top, float right, float bottom, float startAngle, float sweepAngle, bool useCenter, const SkPaint& paint) argument 468 drawBitmap(Bitmap& bitmap, float left, float top, const SkPaint* paint) argument [all...] |
H A D | SkiaCanvasProxy.cpp | 117 void SkiaCanvasProxy::onDrawBitmap(const SkBitmap& bitmap, SkScalar left, SkScalar top, argument 127 left, top, 128 left + bitmap.dimensions().width(), 132 mCanvas->drawBitmap(*hwuiBitmap, left, top, paint); 151 void SkiaCanvasProxy::onDrawImage(const SkImage* image, SkScalar left, SkScalar top, argument 155 onDrawBitmap(skiaBitmap, left, top, paint); 299 // adjust for non-left alignment
|
/frameworks/base/libs/hwui/renderthread/ |
H A D | RenderProxy.cpp | 552 CREATE_BRIDGE5(setContentDrawBounds, CanvasContext* context, int left, int top, argument 554 args->context->setContentDrawBounds(args->left, args->top, args->right, args->bottom); 558 void RenderProxy::setContentDrawBounds(int left, int top, int right, int bottom) { argument 561 args->left = left; 623 int RenderProxy::copySurfaceInto(sp<Surface>& surface, int left, int top, argument 629 args->srcRect.set(left, top, right, bottom);
|
/frameworks/base/media/java/android/media/tv/ |
H A D | TvView.java | 701 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument 703 Log.d(TAG, "onLayout (left=" + left + ", top=" + top + ", right=" + right 710 mSurfaceView.layout(0, 0, right - left, bottom - top); 734 int left = location[0]; 736 region.op(left, top, left + width, top + height, Region.Op.UNION); 1247 public void onLayoutSurface(Session session, int left, int top, int right, int bottom) { argument 1249 Log.d(TAG, "onLayoutSurface (left=" + left [all...] |