Searched defs:top (Results 101 - 125 of 343) sorted by path

1234567891011>>

/frameworks/base/core/jni/
H A Dandroid_view_Surface.cpp73 jfieldID top; member in struct:android::__anon1138
310 dirtyRect.top = env->GetIntField(dirtyRectObj, gRectClassInfo.top);
346 nativeCanvas->clipRect(dirtyRect.left, dirtyRect.top,
352 env->SetIntField(dirtyRectObj, gRectClassInfo.top, dirtyRect.top);
638 gRectClassInfo.top = GetFieldIDOrDie(env, clazz, "top", "I");
H A Dandroid_view_SurfaceControl.cpp69 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 Dandroid_view_TextureView.cpp45 jfieldID top; member in struct:android::__anon1146
149 rect.top = GET_INT(dirtyRect, gRectClassInfo.top);
173 nativeCanvas->clipRect(rect.left, rect.top, rect.right, rect.bottom,
178 int(rect.left), int(rect.top), int(rect.right), int(rect.bottom));
218 gRectClassInfo.top = GetFieldIDOrDie(env, clazz, "top", "I");
H A Dandroid_view_ThreadedRenderer.cpp851 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
H A Dcom_google_android_gles_jni_GLImpl.cpp1128 /* void glFrustumf ( GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar ) */
1131 (JNIEnv *_env, jobject _this, jfloat left, jfloat right, jfloat bottom, jfloat top, jfloat zNear, jfloat zFar) {
1136 (GLfloat)top,
1142 /* void glFrustumx ( GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar ) */
1145 (JNIEnv *_env, jobject _this, jint left, jint right, jint bottom, jint top, jint zNear, jint zFar) {
1150 (GLfixed)top,
3426 /* void glOrthof ( GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar ) */
3429 (JNIEnv *_env, jobject _this, jfloat left, jfloat right, jfloat bottom, jfloat top, jfloat zNear, jfloat zFar) {
3434 (GLfloat)top,
3440 /* void glOrthox ( GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixe
1130 android_glFrustumf__FFFFFF(JNIEnv *_env, jobject _this, jfloat left, jfloat right, jfloat bottom, jfloat top, jfloat zNear, jfloat zFar) argument
1144 android_glFrustumx__IIIIII(JNIEnv *_env, jobject _this, jint left, jint right, jint bottom, jint top, jint zNear, jint zFar) argument
3428 android_glOrthof__FFFFFF(JNIEnv *_env, jobject _this, jfloat left, jfloat right, jfloat bottom, jfloat top, jfloat zNear, jfloat zFar) argument
3442 android_glOrthox__IIIIII(JNIEnv *_env, jobject _this, jint left, jint right, jint bottom, jint top, jint zNear, jint zFar) argument
[all...]
/frameworks/base/core/tests/coretests/src/android/text/
H A DStaticLayoutTest.java75 assertVertMetrics(l, fmi.top - fmi.ascent, fmi.bottom - fmi.descent,
76 fmi.top, fmi.bottom);
81 * Ascent of top line and descent of bottom line are affected.
91 assertVertMetrics(l, fmi.top - fmi.ascent, fmi.bottom - fmi.descent,
92 fmi.top, fmi.descent,
98 * First line ascent is top, bottom line descent is bottom.
109 assertVertMetrics(l, fmi.top - fmi.ascent, fmi.bottom - fmi.descent,
110 fmi.top, fmi.descent,
137 assertVertMetrics(l, fmi.top - fmi.ascent, fmi.bottom - fmi.descent,
138 fmi.top, fm
312 assertLineMetrics(Layout l, int line, int top, int ascent, int descent, int height) argument
[all...]
/frameworks/base/core/tests/coretests/src/com/android/internal/widget/
H A DMessagingLinearLayoutTest.java215 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument
/frameworks/base/graphics/java/android/graphics/
H A DBaseCanvas.java83 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;
132 top = src.top;
136 nDrawBitmap(mNativeCanvasWrapper, bitmap, left, top, righ
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 DCanvas.java445 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...]
H A DInsets.java32 public final int top; field in class:Insets
36 private Insets(int left, int top, int right, int bottom) { argument
38 this.top = top;
49 * @param top the top inset
55 public static Insets of(int left, int top, int right, int bottom) { argument
56 if (left == 0 && top == 0 && right == 0 && bottom == 0) {
59 return new Insets(left, top, right, bottom);
70 return (r == null) ? NONE : of(r.left, r.top,
[all...]
H A DNinePatch.java66 public static Rect scaleInsets(int left, int top, int right, int bottom, float scale) { argument
68 return new Rect(left, top, right, bottom);
73 result.top = (int) Math.ceil(top * scale);
H A DOutline.java173 public void setRect(int left, int top, int right, int bottom) { argument
174 setRoundRect(left, top, right, bottom, 0.0f);
181 setRect(rect.left, rect.top, rect.right, rect.bottom);
189 public void setRoundRect(int left, int top, int right, int bottom, float radius) { argument
190 if (left >= right || top >= bottom) {
200 mRect.set(left, top, right, bottom);
208 setRoundRect(rect.left, rect.top, rect.right, rect.bottom, radius);
242 public void setOval(int left, int top, int right, int bottom) { argument
243 if (left >= right || top >= bottom) {
248 if ((bottom - top)
[all...]
H A DPaint.java1387 * metrics, and also increases top and bottom bounds to provide more space.
1676 public float top; field in class:Paint.FontMetrics
1728 public int top; field in class:Paint.FontMetricsInt
1748 return "FontMetricsInt: top=" + top + " ascent=" + ascent +
H A DPath.java458 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);
545 * @param top The top of a rectangle to add to the path
550 public void addRect(float left, float top, 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...]
H A DRect.java30 * represented by the coordinates of its 4 edges (left, top, right bottom).
33 * the coordinates are sorted correctly (i.e. left <= right and top <= bottom).
37 * into the column and row described by its left and top coordinates, but not
42 public int top; field in class:Rect
69 * top <= bottom.
72 * @param top The Y coordinate of the top of the rectangle
76 public Rect(int left, int top, int right, int bottom) { argument
78 this.top = top;
270 set(int left, int top, int right, int bottom) argument
355 inset(int left, int top, int right, int bottom) argument
390 contains(int left, int top, int right, int bottom) argument
432 intersect(int left, int top, int right, int bottom) argument
497 intersects(int left, int top, int right, int bottom) argument
525 union(int left, int top, int right, int bottom) argument
[all...]
H A DRectF.java27 * represented by the coordinates of its 4 edges (left, top, right bottom).
30 * the coordinates are sorted correctly (i.e. left <= right and top <= bottom).
34 public float top; field in class:RectF
46 * top <= bottom.
49 * @param top The Y coordinate of the top of the rectangle
53 public RectF(float left, float top, float right, float bottom) { argument
55 this.top = top;
69 left = top
197 set(float left, float top, float right, float bottom) argument
302 contains(float left, float top, float right, float bottom) argument
344 intersect(float left, float top, float right, float bottom) argument
417 intersects(float left, float top, float right, float bottom) argument
466 union(float left, float top, float right, float bottom) argument
[all...]
H A DRegion.java71 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
412 nativeSetRect(long native_dst, int left, int top, int right, int bottom) argument
420 nativeOp(long native_dst, int left, int top, int right, int bottom, int op) argument
[all...]
H A DYuvImage.java28 * 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;
/frameworks/base/graphics/java/android/graphics/drawable/
H A DAdaptiveIconDrawable.java70 * getBounds().top - getBounds().getHeight() * #getExtraInsetFraction(),
264 * {@link #getExtraInsetFraction()} * getBounds().height on top/bottom sides.
275 * {@link #getExtraInsetFraction()} * getBounds().height on top/bottom sides.
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, top, righ
[all...]
H A DAnimatedVectorDrawable.java466 public void setHotspotBounds(int left, int top, int right, int bottom) { argument
467 mAnimatedVectorState.mVectorDrawable.setHotspotBounds(left, top, right, bottom);
H A DDrawable.java118 * drawables on top of each other.
148 * this method, the custom drawable class must be a public top-level
158 * method may be used for both public top-level classes and public
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);
692 * @param top position in pixels of the top boun
697 setHotspotBounds(int left, int top, int right, int bottom) argument
[all...]
H A DDrawableContainer.java106 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 DDrawableWrapper.java257 public void setHotspotBounds(int left, int top, int right, int bottom) { argument
259 mDrawable.setHotspotBounds(left, top, right, bottom);
H A DLayerDrawable.java48 * 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...]
H A DRippleDrawable.java635 public void setHotspotBounds(int left, int top, int right, int bottom) { argument
637 mHotspotBounds.set(left, top, right, bottom);
796 final int top = bounds.top;
797 mMaskCanvas.translate(-left, -top);
803 mMaskCanvas.translate(left, top);
864 mMaskMatrix.setTranslate(bounds.left - x, bounds.top - y);

Completed in 6238 milliseconds

1234567891011>>