/frameworks/base/libs/hwui/tests/common/ |
H A D | TestUtils.h | 44 && MathUtils::areEqual((a).top, (b).top) \ 81 * Like gtest's TEST, but runs on the RenderThread, and 'renderThread' is passed, in top level scope 178 snapshot->setClip(clip.left, clip.top, clip.right, clip.bottom); 210 static sp<RenderNode> createNode(int left, int top, int right, int bottom, argument 220 props.setLeftTopRightBottom(left, top, right, bottom); 232 static sp<RenderNode> createNode(int left, int top, int right, int bottom, argument 242 props.setLeftTopRightBottom(left, top, right, bottom); 260 static sp<RenderNode> createSkiaNode(int left, int top, int right, int bottom, argument 273 props.setLeftTopRightBottom(left, top, righ [all...] |
/frameworks/base/libs/hwui/tests/common/scenes/ |
H A D | BitmapFillrate.cpp | 56 void createNode(Canvas& canvas, SkColor color, int left, int top, argument 60 auto card = TestUtils::createNode(left, top, left + itemWidth , top + itemHeight,
|
H A D | SaveLayer2Animation.cpp | 42 int top = bounds.fTop; variable 50 for (int i = 0; i < regions; i++, top += smallRectHeight) { 51 canvas.saveLayer(bounds.fLeft, top, bounds.fRight, top + padding, 58 bounds.fLeft, top + padding, minikin::kBidi_Force_LTR, mBluePaint, nullptr); 61 canvas.drawRect(bounds.fLeft, top + padding, bounds.fRight, 62 top + smallRectHeight - padding, mBluePaint); 66 top + smallRectHeight - padding, minikin::kBidi_Force_LTR, mGreenPaint,
|
/frameworks/base/media/java/android/media/ |
H A D | Cea708CaptionRenderer.java | 1079 if (lhs.top != rhs.top) { 1080 return lhs.top - rhs.top; 1201 mRectArray[i].top -= overflowedHeight; 1202 if (mRectArray[i].top < 0) { 1203 mRectArray[i].bottom -= mRectArray[i].top; 1204 mRectArray[i].top = 0; 1207 mRectArray[i].top -= mRectArray[i].bottom - height; 1217 // Step 1. Sort rectangles by position (top 1985 onLayoutChange(View v, int left, int top, int right, int bottom, int oldLeft, int oldTop, int oldRight, int oldBottom) argument [all...] |
H A D | ImageWriter.java | 373 nativeQueueInputImage(mNativeContext, image, image.getTimestamp(), crop.left, crop.top, 560 image.getTimestamp(), crop.left, crop.top, crop.right, crop.bottom); 859 long timestampNs, int left, int top, int right, int bottom); 863 int top, int right, int bottom); 858 nativeQueueInputImage(long nativeCtx, Image image, long timestampNs, int left, int top, int right, int bottom) argument 861 nativeAttachAndQueueImage(long nativeCtx, long imageNativeBuffer, int imageFormat, long timestampNs, int left, int top, int right, int bottom) argument
|
/frameworks/base/media/java/android/media/tv/ |
H A D | TvInputManager.java | 468 * @param top Top position. 472 public void onLayoutSurface(Session session, int left, int top, int right, int bottom) { argument 651 void postLayoutSurface(final int left, final int top, final int right, argument 656 mSessionCallback.onLayoutSurface(mSession, left, top, right, bottom); 1008 public void onLayoutSurface(int left, int top, int right, int bottom, int seq) { 1015 record.postLayoutSurface(left, top, right, bottom);
|
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...] |
H A D | TvView.java | 212 * Controls whether the TvView's surface is placed on top of another regular surface view in the 214 * This is typically used to place overlays on top of an underlying TvView. 221 * @param isMediaOverlay {@code true} to be on top of another regular surface, {@code false} 241 * Controls whether the TvView's surface is placed on top of its window. Normally it is placed 244 * none of the contents of the window this TvView is in will be visible on top of its surface. 251 * @param onTop {@code true} to be on top of its window, {@code false} otherwise. 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); 1247 onLayoutSurface(Session session, int left, int top, int right, int bottom) argument [all...] |
/frameworks/base/media/jni/ |
H A D | android_media_ImageWriter.cpp | 425 jlong timestampNs, jint left, jint top, jint right, jint bottom) { 460 cropRect.top = top; 490 jlong nativeBuffer, jint imageFormat, jlong timestampNs, jint left, jint top, 545 cropRect.top = top; 424 ImageWriter_queueImage(JNIEnv* env, jobject thiz, jlong nativeCtx, jobject image, jlong timestampNs, jint left, jint top, jint right, jint bottom) argument 489 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 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);
|
H A D | android_media_Utils.cpp | 369 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/opengl/java/android/opengl/ |
H A D | GLES10.java | 615 // C function void glFrustumf ( GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar ) 621 float top, 626 // C function void glFrustumx ( GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar ) 632 int top, 974 // C function void glOrthof ( GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar ) 980 float top, 985 // C function void glOrthox ( GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar ) 991 int top, 617 glFrustumf( float left, float right, float bottom, float top, float zNear, float zFar ) argument 628 glFrustumx( int left, int right, int bottom, int top, int zNear, int zFar ) argument 976 glOrthof( float left, float right, float bottom, float top, float zNear, float zFar ) argument 987 glOrthox( int left, int right, int bottom, int top, int zNear, int zFar ) argument
|
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
|
H A D | GLErrorWrapper.java | 333 public void glFrustumf(float left, float right, float bottom, float top, argument 336 mgl.glFrustumf(left, right, bottom, top, near, far); 340 public void glFrustumx(int left, int right, int bottom, int top, int near, argument 343 mgl.glFrustumx(left, right, bottom, top, near, far); 607 public void glOrthof(float left, float right, float bottom, float top, argument 610 mgl.glOrthof(left, right, bottom, top, near, far); 614 public void glOrthox(int left, int right, int bottom, int top, int near, argument 617 mgl.glOrthox(left, right, bottom, top, near, far);
|
H A D | GLLogWrapper.java | 1666 public void glFrustumf(float left, float right, float bottom, float top, argument 1672 arg("top", top); 1677 mgl.glFrustumf(left, right, bottom, top, near, far); 1681 public void glFrustumx(int left, int right, int bottom, int top, int near, argument 1687 arg("top", top); 1692 mgl.glFrustumx(left, right, bottom, top, near, far); 2158 public void glOrthof(float left, float right, float bottom, float top, argument 2164 arg("top", to 2173 glOrthox(int left, int right, int bottom, int top, int near, int far) argument [all...] |
H A D | GLU.java | 90 * @param top 93 float bottom, float top) { 94 gl.glOrthof(left, right, bottom, top, -1.0f, 1.0f); 113 float top = zNear * (float) Math.tan(fovy * (Math.PI / 360.0)); 114 float bottom = -top; 116 float right = top * aspect; 117 gl.glFrustumf(left, right, bottom, top, zNear, zFar); 92 gluOrtho2D(GL10 gl, float left, float right, float bottom, float top) argument
|
H A D | Matrix.java | 265 * @param top 270 float left, float right, float bottom, float top, 275 if (bottom == top) { 276 throw new IllegalArgumentException("bottom == top"); 283 final float r_height = 1.0f / (top - bottom); 289 final float ty = -(top + bottom) * r_height; 319 * @param top 324 float left, float right, float bottom, float top, 329 if (top == bottom) { 330 throw new IllegalArgumentException("top 269 orthoM(float[] m, int mOffset, float left, float right, float bottom, float top, float near, float far) argument 323 frustumM(float[] m, int offset, float left, float right, float bottom, float top, float near, float far) argument [all...] |
/frameworks/base/opengl/java/com/google/android/gles_jni/ |
H A D | GLImpl.java | 429 // C function void glFrustumf ( GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar ) 435 float top, 440 // C function void glFrustumx ( GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar ) 446 int top, 799 // C function void glOrthof ( GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar ) 805 float top, 810 // C function void glOrthox ( GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar ) 816 int top, 431 glFrustumf( float left, float right, float bottom, float top, float zNear, float zFar ) argument 442 glFrustumx( int left, int right, int bottom, int top, int zNear, int zFar ) argument 801 glOrthof( float left, float right, float bottom, float top, float zNear, float zFar ) argument 812 glOrthox( int left, int right, int bottom, int top, int zNear, int zFar ) argument
|
/frameworks/base/opengl/java/javax/microedition/khronos/opengles/ |
H A D | GL10.java | 500 float top, 509 int top, 749 float top, 758 int top, 496 glFrustumf( float left, float right, float bottom, float top, float zNear, float zFar ) argument 505 glFrustumx( int left, int right, int bottom, int top, int zNear, int zFar ) argument 745 glOrthof( float left, float right, float bottom, float top, float zNear, float zFar ) argument 754 glOrthox( int left, int right, int bottom, int top, int zNear, int zFar ) argument
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/ |
H A D | PageAdapter.java | 129 public void setPadding(int left, int top, int right, int bottom); argument
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/widget/ |
H A D | PrintContentView.java | 272 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument 273 mStaticContent.layout(left, top, right, mStaticContent.getMeasuredHeight()); 402 public void onViewPositionChanged(View changedView, int left, int top, int dx, int dy) { argument 408 final float progress = ((float) top - getOpenedOptionsY()) 450 public int clampViewPositionVertical(View child, int top, int dy) { argument 452 return Math.max(Math.min(top, getOpenedOptionsY()), getClosedOptionsY());
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
H A D | RestrictedLockImageSpan.java | 49 public void draw(Canvas canvas, CharSequence text, int start, int end, float x, int top, int y, argument
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/graph/ |
H A D | BatteryMeterDrawableBase.java | 217 public void setBounds(int left, int top, int right, int bottom) { argument 218 super.setBounds(left, top, right, bottom); 219 mHeight = bottom - top; 274 mFrame.top, 276 mFrame.top + buttonHeight); 278 mButtonFrame.top += mSubpixelSmoothingLeft; 283 mFrame.top += buttonHeight; 285 mFrame.top += mSubpixelSmoothingLeft; 298 final float levelTop = drawFrac == 1f ? mButtonFrame.top 299 : (mFrame.top [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
H A D | DessertCaseView.java | 527 protected void onLayout (boolean changed, int left, int top, int right, int bottom) { argument 529 final float h = bottom-top; 533 final int cy = (int) (top + h * 0.5f);
|
H A D | ImageWallpaper.java | 566 private void drawWallpaperWithCanvas(SurfaceHolder sh, int w, int h, int left, int top) { argument 571 Log.d(TAG, "Redrawing: left=" + left + ", top=" + top); 575 final float bottom = top + mBackground.getHeight() * mScale; 578 c.clipRect(left, top, right, bottom, 584 RectF dest = new RectF(left, top, right, bottom); 594 private boolean drawWallpaperWithOpenGL(SurfaceHolder sh, int w, int h, int left, int top) { argument 598 final float bottom = top + mBackground.getHeight() * mScale; 604 final FloatBuffer triangleVertices = createMesh(left, top, right, bottom); 651 private FloatBuffer createMesh(int left, int top, floa argument [all...] |