Searched refs:top (Results 401 - 425 of 726) sorted by last modified time

<<11121314151617181920>>

/frameworks/base/media/java/android/media/
H A DTimedText.java151 * vertical justification 0: top, 1: centered, -1: bottom
498 int top = parcel.readInt();
502 mTextBounds = new Rect(left, top, right, bottom);
H A DWebVttRenderer.java1390 final int top = (int) (y * (viewportHeight - regionHeight) / 100);
1392 regionBox.layout(left, top, left + regionWidth, top + regionHeight);
1450 // Compute absolute final top position and height.
1452 final int top;
1455 top = viewportHeight + yPosition * height;
1457 top = yPosition * (viewportHeight - height) / 100;
1461 cueBox.layout(left, top, left + width, top + height);
/frameworks/base/media/java/android/media/tv/
H A DITvInputClient.aidl42 void onLayoutSurface(int left, int top, int right, int bottom, int seq);
H A DITvInputSessionCallback.aidl39 void onLayoutSurface(int left, int top, int right, int bottom);
H A DTvInputManager.java459 * @param top Top position.
463 public void onLayoutSurface(Session session, int left, int top, int right, int bottom) { argument
642 void postLayoutSurface(final int left, final int top, final int right, argument
647 mSessionCallback.onLayoutSurface(mSession, left, top, right, bottom);
999 public void onLayoutSurface(int left, int top, int right, int bottom, int seq) {
1006 record.postLayoutSurface(left, top, right, bottom);
H A DTvInputService.java682 * is relative to the overlay view that sits on top of this surface.
685 * @param top Top position in pixels, relative to the overlay view.
690 public void layoutSurface(final int left, final int top, final int right, argument
692 if (left > right || top > bottom) {
700 if (DEBUG) Log.d(TAG, "layoutSurface (l=" + left + ", t=" + top + ", r="
703 mSessionCallback.onLayoutSurface(left, top, right, bottom);
1233 onOverlayViewSizeChanged(frame.right - frame.left, frame.bottom - frame.top);
1263 frame.right - frame.left, frame.bottom - frame.top,
1264 frame.left, frame.top, type, flags, PixelFormat.TRANSPARENT);
1283 onOverlayViewSizeChanged(frame.right - frame.left, frame.bottom - frame.top);
[all...]
H A DTvView.java211 * Controls whether the TvView's surface is placed on top of another regular surface view in the
213 * This is typically used to place overlays on top of an underlying TvView.
220 * @param isMediaOverlay {@code true} to be on top of another regular surface, {@code false}
240 * Controls whether the TvView's surface is placed on top of its window. Normally it is placed
243 * none of the contents of the window this TvView is in will be visible on top of its surface.
250 * @param onTop {@code true} to be on top of its window, {@code false} otherwise.
700 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument
702 Log.d(TAG, "onLayout (left=" + left + ", top=" + top + ", right=" + right
709 mSurfaceView.layout(0, 0, right - left, bottom - top);
1244 onLayoutSurface(Session session, int left, int top, int right, int bottom) argument
[all...]
/frameworks/base/media/jni/
H A Dandroid_media_ImageWriter.cpp419 jlong timestampNs, jint left, jint top, jint right, jint bottom) {
454 cropRect.top = top;
484 jlong nativeBuffer, jint imageFormat, jlong timestampNs, jint left, jint top,
546 cropRect.top = top;
418 ImageWriter_queueImage(JNIEnv* env, jobject thiz, jlong nativeCtx, jobject image, jlong timestampNs, jint left, jint top, jint right, jint bottom) argument
483 ImageWriter_attachAndQueueImage(JNIEnv* env, jobject thiz, jlong nativeCtx, jlong nativeBuffer, jint imageFormat, jlong timestampNs, jint left, jint top, jint right, jint bottom) argument
H A Dandroid_media_MediaCodec.cpp558 int32_t left, top, right, bottom; local
559 if (buffer->meta()->findRect("crop-rect", &left, &top, &right, &bottom)) {
568 rectClazz.get(), rectConstructID, left, top, right + 1, bottom + 1);
H A Dandroid_media_Utils.cpp369 int32_t left, top, right, bottom; local
370 CHECK(msg->findRect(key, &left, &top, &right, &bottom));
383 AStringPrintf("%s-top", key).c_str(),
384 top);
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
H A DGLFrame.java283 setNativeViewport(rect.left, rect.top, rect.right - rect.left, rect.bottom - rect.top);
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
H A DCameraErrorCollector.java517 formattedMsg, "top pt too low", "top pt too high", actual.top, expected.top,
521 formattedMsg, "bottom pt too low", "bottom pt too high", actual.top, expected.top,
H A DStaticMetadata.java802 checkTrueForKey(key, "values left/top are invalid", activeArray.left >= 0 && activeArray.top >= 0);
822 checkTrueForKey(key, "values left/top are invalid", activeArray.left >= 0 && activeArray.top >= 0);
/frameworks/base/graphics/java/android/graphics/
H A DLargeBitmap.java54 if (rect.left < 0 || rect.top < 0 || rect.right > getWidth() || rect.bottom > getHeight())
56 return nativeDecodeRegion(mNativeLargeBitmap, rect.left, rect.top,
57 rect.right - rect.left, rect.bottom - rect.top, options);
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.java161 public void setRect(int left, int top, int right, int bottom) { argument
162 setRoundRect(left, top, right, bottom, 0.0f);
169 setRect(rect.left, rect.top, rect.right, rect.bottom);
177 public void setRoundRect(int left, int top, int right, int bottom, float radius) { argument
178 if (left >= right || top >= bottom) {
184 mRect.set(left, top, right, bottom);
193 setRoundRect(rect.left, rect.top, rect.right, rect.bottom, radius);
227 public void setOval(int left, int top, int right, int bottom) { argument
228 if (left >= right || top >= bottom) {
233 if ((bottom - top)
[all...]
H A DPaint.java1394 * metrics, and also increases top and bottom bounds to provide more space.
1593 public float top; field in class:Paint.FontMetrics
1644 public int top; field in class:Paint.FontMetricsInt
1651 return "FontMetricsInt: top=" + top + " ascent=" + ascent +
H A DPath.java453 arcTo(oval.left, oval.top, oval.right, oval.bottom, startAngle, sweepAngle, forceMoveTo);
468 arcTo(oval.left, oval.top, oval.right, oval.bottom, startAngle, sweepAngle, false);
483 public void arcTo(float left, float top, float right, float bottom, float startAngle, argument
486 native_arcTo(mNativePath, left, top, right, bottom, startAngle, sweepAngle, forceMoveTo);
514 private void detectSimplePath(float left, float top, float right, float bottom, Direction dir) { argument
522 rects.op((int) left, (int) top, (int) right, (int) bottom, Region.Op.UNION);
533 addRect(rect.left, rect.top, rect.right, rect.bottom, dir);
540 * @param top The top of a rectangle to add to the path
545 public void addRect(float left, float top, floa argument
565 addOval(float left, float top, float right, float bottom, Direction dir) argument
600 addArc(float left, float top, float right, float bottom, float startAngle, float sweepAngle) argument
625 addRoundRect(float left, float top, float right, float bottom, float rx, float ry, Direction dir) argument
655 addRoundRect(float left, float top, float right, float bottom, float[] radii, Direction dir) argument
828 native_arcTo(long nPath, float left, float top, float right, float bottom, float startAngle, float sweepAngle, boolean forceMoveTo) argument
832 native_addRect(long nPath, float left, float top, float right, float bottom, int dir) argument
834 native_addOval(long nPath, float left, float top, float right, float bottom, int dir) argument
837 native_addArc(long nPath, float left, float top, float right, float bottom, float startAngle, float sweepAngle) argument
840 native_addRoundRect(long nPath, float left, float top, float right, float bottom, float rx, float ry, int dir) argument
843 native_addRoundRect(long nPath, float left, float top, float right, float bottom, float[] radii, int dir) argument
[all...]
H A DRect.java29 * represented by the coordinates of its 4 edges (left, top, right bottom).
32 * the coordinates are sorted correctly (i.e. left <= right and top <= bottom).
36 * into the column and row described by its left and top coordinates, but not
41 public int top; field in class:Rect
68 * top <= bottom.
71 * @param top The Y coordinate of the top of the rectangle
75 public Rect(int left, int top, int right, int bottom) { argument
77 this.top = top;
265 set(int left, int top, int right, int bottom) argument
350 inset(int left, int top, int right, int bottom) argument
385 contains(int left, int top, int right, int bottom) argument
427 intersect(int left, int top, int right, int bottom) argument
492 intersects(int left, int top, int right, int bottom) argument
520 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 DAnimatedRotateDrawable.java61 final int h = bounds.bottom - bounds.top;
68 canvas.rotate(mCurrentDegrees, px + bounds.left, py + bounds.top);
H A DAnimatedVectorDrawable.java302 public void setHotspotBounds(int left, int top, int right, int bottom) { argument
303 mAnimatedVectorState.mVectorDrawable.setHotspotBounds(left, top, right, bottom);
H A DBitmapDrawable.java585 final int top = mDstRect.top - bounds.top;
588 mOpticalInsets = Insets.of(left, top, right, bottom);

Completed in 2543 milliseconds

<<11121314151617181920>>