/frameworks/base/core/java/android/text/ |
H A D | StaticLayout.java | 595 // must be a multiple of 4 (and > 0) (store top, bottom, ascent, and descent per range) 748 // the order of storage here (top, bottom, ascent, descent) has to match the code below 750 fmCache[fmCacheCount * 4 + 0] = fm.top; 808 fm.top = fmCache[fmCacheIndex * 4 + 0]; 814 if (fm.top < fmTop) { 815 fmTop = fm.top; 846 fmTop = fm.top; 877 fm.top, fm.bottom, 889 int above, int below, int top, int bottom, int v, 920 fm.top 888 out(CharSequence text, int start, int end, int above, int below, int top, int bottom, int v, float spacingmult, float spacingadd, LineHeightSpan[] chooseHt, int[] chooseHtv, Paint.FontMetricsInt fm, int flags, boolean needMultiply, byte[] chdirs, int dir, boolean easy, int bufEnd, boolean includePad, boolean trackPad, char[] chs, float[] widths, int widthStart, TextUtils.TruncateAt ellipsize, float ellipsisWidth, float textWidth, TextPaint paint, boolean moreChars) argument [all...] |
/frameworks/base/core/java/android/view/ |
H A D | RenderNode.java | 293 return nSetClipBounds(mNativeRenderNode, rect.left, rect.top, rect.right, rect.bottom); 321 * ProjectBackwards=true directly on top of it. Default value is false. 342 return nSetOutlineRoundRect(mNativeRenderNode, outline.mRect.left, outline.mRect.top, 705 * Sets the top position for the display list. 707 * @param top The top position, in pixels, of the display list 711 public boolean setTop(int top) { argument 712 return nSetTop(mNativeRenderNode, top); 738 * Sets the left and top positions for the display list 741 * @param top Th 750 setLeftTopRightBottom(int left, int top, int right, int bottom) argument 869 nSetLeftTopRightBottom(long renderNode, int left, int top, int right, int bottom) argument 876 nSetTop(long renderNode, int top) argument 892 nSetClipBounds(long renderNode, int left, int top, int right, int bottom) argument 901 nSetOutlineRoundRect(long renderNode, int left, int top, int right, int bottom, float radius, float alpha) argument [all...] |
H A D | ThreadedRenderer.java | 533 || surfaceInsets.top != 0 || surfaceInsets.bottom != 0)) { 536 mInsetTop = surfaceInsets.top; 705 * @param top The top side of the protected bounds. 709 public void setContentDrawBounds(int left, int top, int right, int bottom) { argument 710 nSetContentDrawBounds(mNativeProxy, left, top, right, bottom); 877 return nCopySurfaceInto(surface, srcRect.left, srcRect.top, 1030 int top, int right, int bottom); 1029 nSetContentDrawBounds(long nativeProxy, int left, int top, int right, int bottom) argument
|
/frameworks/base/core/java/android/view/inputmethod/ |
H A D | InputMethodManager.java | 1690 public void updateCursor(View view, int left, int top, int right, int bottom) { argument 1699 mTmpCursorRect.set(left, top, right, bottom);
|
/frameworks/base/core/java/android/widget/ |
H A D | ListView.java | 172 * A class that represents a fixed view in a list, for example a header at the top 278 * Make sure views are touching the top or bottom edge, as appropriate for 290 // align with the top 292 delta = child.getTop() - mListPadding.top; 325 * Add a fixed view to appear at the top of the list. If this method is 369 * Add a fixed view to appear at the top of the list. If addHeaderView is 636 * @return Whether the list needs to show the top fading edge 639 final int listTop = mScrollY + mListPadding.top; 661 int rectTopWithinChild = rect.top; 673 // leave room for top fadin 1205 setupForSetSelection(int position, int top) argument 1480 fillSpecific(int position, int top) argument [all...] |
H A D | RadialTimePickerView.java | 645 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument
|
H A D | ScrollView.java | 928 * @param topFocus look for a candidate is the one at the top of the bounds 931 * @param top the top offset of the bounds in which a focusable must be 938 private View findFocusableViewInBounds(boolean topFocus, int top, int bottom) { argument 944 * A fully contained focusable is one where its top is below the bound's 945 * top, and its bottom is above the bound's bottom. A partially 958 if (top < viewBottom && viewTop < bottom) { 964 final boolean viewIsFullyContained = (top < viewTop) && 1023 mTempRect.top = getScrollY() + height; 1027 if (mTempRect.top 1085 scrollAndFocus(int direction, int top, int bottom) argument [all...] |
H A D | SearchView.java | 366 public void onLayoutChange(View v, int left, int top, int right, int bottom, 819 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument 820 super.onLayout(changed, left, top, right, bottom); 827 mSearchSrcTextViewBounds.left, 0, mSearchSrcTextViewBounds.right, bottom - top); 841 final int top = mTemp[1] - mTemp2[1]; 843 rect.set(left , top, left + view.getWidth(), top + view.getHeight()); 1602 // on top of the one we want. We don't want to do this in in-app search though, 1869 event.setLocation(x - mActualBounds.left, y - mActualBounds.top);
|
H A D | StackView.java | 1103 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument 1322 p.invalidate(globalInvalidateRect.left, globalInvalidateRect.top, 1326 p.invalidate(globalInvalidateRect.left, globalInvalidateRect.top, 1357 int top = Math.min(mView.getTop() + verticalOffsetDelta, mView.getTop()); 1360 invalidateRectf.set(left, top, right, bottom); 1363 float yoffset = -invalidateRectf.top; 1369 (int) Math.floor(invalidateRectf.top),
|
H A D | Toolbar.java | 386 * @param top the top title margin in pixels 395 public void setTitleMargin(int start, int top, int end, int bottom) { argument 397 mTitleMarginTop = top; 427 * @return the top title margin in pixels 436 * Sets the top title margin in pixels. 438 * @param margin the top title margin in pixels 1941 final int top = getChildTop(child, alignmentHeight); 1943 child.layout(left, top, left + childWidth, top [all...] |
/frameworks/base/core/java/com/android/internal/widget/helper/ |
H A D | ItemTouchHelper.java | 433 private static boolean hitTest(View child, float x, float y, float left, float top) { argument 436 && y >= top 437 && y <= top + child.getHeight(); 733 final int topDiff = curY - mTmpRect.top - mRecyclerView.getPaddingTop(); 775 final int top = Math.round(mSelectedStartY + mDy) - margin; 777 final int bottom = top + viewHolder.itemView.getHeight() + 2 * margin; 779 final int centerY = (top + bottom) / 2; 787 if (other.getBottom() < top || other.getTop() > bottom 1308 * @param y The <code>top</code> offset of the View that is being dragged. This value 1742 * @param curY The updated top valu [all...] |
/frameworks/base/core/jni/android/graphics/ |
H A D | Paint.cpp | 55 jfieldID top; member in struct:android::JMetricsID 608 env->SetFloatField(metricsObj, gFontMetrics_fieldID.top, SkScalarToFloat(metrics.fTop)); 628 env->SetIntField(metricsObj, gFontMetricsInt_fieldID.top, SkScalarFloorToInt(metrics.fTop)); 1083 gFontMetrics_fieldID.top = GetFieldIDOrDie(env, gFontMetrics_class, "top", "F"); 1092 gFontMetricsInt_fieldID.top = GetFieldIDOrDie(env, gFontMetricsInt_class, "top", "I");
|
/frameworks/base/core/jni/ |
H A D | android_graphics_Canvas.cpp | 166 jfloat left, jfloat top, jfloat right, jfloat bottom) { 167 bool result = get_canvas(canvasHandle)->quickRejectRect(left, top, right, bottom); 267 static void drawRect(JNIEnv* env, jobject, jlong canvasHandle, jfloat left, jfloat top, argument 270 get_canvas(canvasHandle)->drawRect(left, top, right, bottom, *paint); 280 static void drawRoundRect(JNIEnv* env, jobject, jlong canvasHandle, jfloat left, jfloat top, argument 283 get_canvas(canvasHandle)->drawRoundRect(left, top, right, bottom, rx, ry, *paint); 292 static void drawOval(JNIEnv* env, jobject, jlong canvasHandle, jfloat left, jfloat top, argument 295 get_canvas(canvasHandle)->drawOval(left, top, right, bottom, *paint); 298 static void drawArc(JNIEnv* env, jobject, jlong canvasHandle, jfloat left, jfloat top, argument 302 get_canvas(canvasHandle)->drawArc(left, top, righ 165 quickRejectRect(jlong canvasHandle, jfloat left, jfloat top, jfloat right, jfloat bottom) argument 343 drawNinePatch(JNIEnv* env, jobject, jlong canvasHandle, jlong bitmapHandle, jlong chunkHandle, jfloat left, jfloat top, jfloat right, jfloat bottom, jlong paintHandle, jint dstDensity, jint srcDensity) argument 374 drawBitmap(JNIEnv* env, jobject, jlong canvasHandle, jobject jbitmap, jfloat left, jfloat top, jlong paintHandle, jint canvasDensity, jint screenDensity, jint bitmapDensity) argument [all...] |
H A D | android_view_SurfaceControl.cpp | 69 jfieldID top; member in struct:android::__anon1140 137 int top = env->GetIntField(rectObj, gRectClassInfo.top); local 140 return Rect(left, top, right, bottom); 254 int top = env->GetIntField(sourceCropObj, gRectClassInfo.top); local 257 Rect sourceCrop(left, top, right, bottom); 887 gRectClassInfo.top = GetFieldIDOrDie(env, rectClazz, "top", "I");
|
H A D | android_view_ThreadedRenderer.cpp | 851 jobject clazz, jlong proxyPtr, jint left, jint top, jint right, jint bottom) { 853 proxy->setContentDrawBounds(left, top, right, bottom); 857 jobject clazz, jobject jsurface, jint left, jint top, 862 return RenderProxy::copySurfaceInto(surface, left, top, right, bottom, &bitmap); 850 android_view_ThreadedRenderer_setContentDrawBounds(JNIEnv* env, jobject clazz, jlong proxyPtr, jint left, jint top, jint right, jint bottom) argument 856 android_view_ThreadedRenderer_copySurfaceInto(JNIEnv* env, jobject clazz, jobject jsurface, jint left, jint top, jint right, jint bottom, jobject jbitmap) argument
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | Canvas.java | 445 return saveLayer(bounds.left, bounds.top, bounds.right, bounds.bottom, paint, saveFlags); 483 public int saveLayer(float left, float top, float right, float bottom, @Nullable Paint paint, argument 485 return nSaveLayer(mNativeCanvasWrapper, left, top, right, bottom, 494 public int saveLayer(float left, float top, float right, float bottom, @Nullable Paint paint) { argument 495 return saveLayer(left, top, right, bottom, paint, ALL_SAVE_FLAG); 531 return saveLayerAlpha(bounds.left, bounds.top, bounds.right, bounds.bottom, alpha, saveFlags); 552 public int saveLayerAlpha(float left, float top, float right, float bottom, int alpha, argument 555 return nSaveLayerAlpha(mNativeCanvasWrapper, left, top, right, bottom, 563 public int saveLayerAlpha(float left, float top, float right, float bottom, int alpha) { argument 564 return saveLayerAlpha(left, top, righ 856 clipRect(float left, float top, float right, float bottom, @NonNull Region.Op op) argument 874 clipRect(float left, float top, float right, float bottom) argument 889 clipOutRect(float left, float top, float right, float bottom) argument 907 clipRect(int left, int top, int right, int bottom) argument 922 clipOutRect(int left, int top, int right, int bottom) argument 1106 quickReject(float left, float top, float right, float bottom, @NonNull EdgeType type) argument 1279 nClipRect(long nativeCanvas, float left, float top, float right, float bottom, int regionOp) argument 1290 nQuickReject(long nativeCanvas, float left, float top, float right, float bottom) argument 1350 drawArc(float left, float top, float right, float bottom, float startAngle, float sweepAngle, boolean useCenter, @NonNull Paint paint) argument 1385 drawBitmap(@onNull Bitmap bitmap, float left, float top, @Nullable Paint paint) argument 1605 drawOval(float left, float top, float right, float bottom, @NonNull Paint paint) argument 1754 drawRect(float left, float top, float right, float bottom, @NonNull Paint paint) argument 1791 drawRoundRect(float left, float top, float right, float bottom, float rx, float ry, @NonNull Paint paint) argument [all...] |
/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | AnimatedVectorDrawable.java | 466 public void setHotspotBounds(int left, int top, int right, int bottom) { argument 467 mAnimatedVectorState.mVectorDrawable.setHotspotBounds(left, top, right, bottom);
|
H A D | DrawableContainer.java | 106 result = (r.left | r.top | r.bottom | r.right) != 0; 308 public void setHotspotBounds(int left, int top, int right, int bottom) { argument 310 mHotspotBounds = new Rect(left, top, right, bottom); 312 mHotspotBounds.set(left, top, right, bottom); 316 mCurrDrawable.setHotspotBounds(left, top, right, bottom); 560 d.setHotspotBounds(hotspotBounds.left, hotspotBounds.top, 1065 if (t.top > r.top) r.top = t.top; [all...] |
H A D | LayerDrawable.java | 48 * order, so the element with the largest index will be drawn on top. 457 * @param top The top padding of the new layer. 462 int left, int top, int right, int bottom) { 468 childDrawable.mInsetT = top; 761 * @param t number of pixels to add to the top bound 780 * @param t number of pixels to inset from the top bound 835 * @param t number of pixels to inset from the top bound 845 * @return number of pixels to inset from the top bound 1048 padding.top 461 addLayer(Drawable dr, int[] themeAttrs, int id, int left, int top, int right, int bottom) argument 1083 setPadding(int left, int top, int right, int bottom) argument 1116 setPaddingRelative(int start, int top, int end, int bottom) argument 1297 setHotspotBounds(int left, int top, int right, int bottom) argument [all...] |
/frameworks/base/libs/hwui/ |
H A D | RenderProperties.h | 427 bool setTop(int top) { argument 428 if (RP_SET(mPrimitiveFields.mTop, top)) { 472 bool setLeftTop(int left, int top) { argument 474 bool topResult = setTop(top); 478 bool setLeftTopRightBottom(int left, int top, int right, int bottom) { argument 479 if (left != mPrimitiveFields.mLeft || top != mPrimitiveFields.mTop 482 mPrimitiveFields.mTop = top;
|
H A D | SkiaCanvas.cpp | 186 int SkiaCanvas::saveLayer(float left, float top, float right, float bottom, argument 188 const SkRect bounds = SkRect::MakeLTRB(left, top, right, bottom); 194 int SkiaCanvas::saveLayerAlpha(float left, float top, float right, float bottom, argument 199 return this->saveLayer(left, top, right, bottom, &alphaPaint, flags); 201 return this->saveLayer(left, top, right, bottom, nullptr, flags); 376 bool SkiaCanvas::quickRejectRect(float left, float top, float right, float bottom) const { argument 377 SkRect bounds = SkRect::MakeLTRB(left, top, right, bottom); 385 bool SkiaCanvas::clipRect(float left, float top, float right, float bottom, SkClipOp op) { argument 386 SkRect rect = SkRect::MakeLTRB(left, top, right, bottom); 482 void SkiaCanvas::drawRect(float left, float top, floa argument 494 drawRoundRect(float left, float top, float right, float bottom, float rx, float ry, const SkPaint& paint) argument 506 drawOval(float left, float top, float right, float bottom, const SkPaint& paint) argument 512 drawArc(float left, float top, float right, float bottom, float startAngle, float sweepAngle, bool useCenter, const SkPaint& paint) argument 541 drawBitmap(Bitmap& bitmap, float left, float top, const SkPaint* paint) argument 746 drawRoundRect(uirenderer::CanvasPropertyPrimitive* left, uirenderer::CanvasPropertyPrimitive* top, uirenderer::CanvasPropertyPrimitive* right, uirenderer::CanvasPropertyPrimitive* bottom, uirenderer::CanvasPropertyPrimitive* rx, uirenderer::CanvasPropertyPrimitive* ry, uirenderer::CanvasPropertyPaint* paint) argument [all...] |
/frameworks/base/media/java/android/media/tv/ |
H A D | TvInputService.java | 683 * is relative to the overlay view that sits on top of this surface. 686 * @param top Top position in pixels, relative to the overlay view. 691 public void layoutSurface(final int left, final int top, final int right, argument 693 if (left > right || top > bottom) { 701 if (DEBUG) Log.d(TAG, "layoutSurface (l=" + left + ", t=" + top + ", r=" 704 mSessionCallback.onLayoutSurface(left, top, right, bottom); 1236 onOverlayViewSizeChanged(frame.right - frame.left, frame.bottom - frame.top); 1266 frame.right - frame.left, frame.bottom - frame.top, 1267 frame.left, frame.top, type, flags, PixelFormat.TRANSPARENT); 1286 onOverlayViewSizeChanged(frame.right - frame.left, frame.bottom - frame.top); [all...] |
/frameworks/base/media/jni/ |
H A D | android_media_MediaCodec.cpp | 566 int32_t left, top, right, bottom; local 567 if (buffer->meta()->findRect("crop-rect", &left, &top, &right, &bottom)) { 576 rectClazz.get(), rectConstructID, left, top, right + 1, bottom + 1);
|
/frameworks/base/opengl/java/android/opengl/ |
H A D | GLES11Ext.java | 347 // C function void glFrustumxOES ( GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar ) 353 int top, 578 // C function void glOrthoxOES ( GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar ) 584 int top, 946 // C function void glFrustumfOES ( GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar ) 952 float top, 957 // C function void glOrthofOES ( GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar ) 963 float top, 349 glFrustumxOES( int left, int right, int bottom, int top, int zNear, int zFar ) argument 580 glOrthoxOES( int left, int right, int bottom, int top, int zNear, int zFar ) argument 948 glFrustumfOES( float left, float right, float bottom, float top, float zNear, float zFar ) argument 959 glOrthofOES( float left, float right, float bottom, float top, float zNear, float zFar ) argument
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/ |
H A D | TaskStackView.java | 656 if (transform.rect.top <= mLayoutAlgorithm.mStackRect.top) { 1267 mLayoutAlgorithm.mSystemInsets.top, mLayoutAlgorithm.mSystemInsets.left, 1338 MeasureSpec.makeMeasureSpec(mTmpRect.height() + padding.top + padding.bottom, 1343 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument 1390 tv.layout(mTmpRect.left - padding.left, mTmpRect.top - padding.top, 2262 // We can not reset mEnterAnimationComplete in onReload() because when docking the top
|