Home
last modified time | relevance | path

Searched refs:viewHeight (Results 1 – 15 of 15) sorted by relevance

/cts/tests/tests/view/src/android/view/cts/util/
DDrawingUtils.java44 final int viewHeight = view.getHeight(); in assertAllPixelsOfColor() local
46 final Bitmap bitmap = Bitmap.createBitmap(viewWidth, viewHeight, Bitmap.Config.ARGB_8888); in assertAllPixelsOfColor()
53 final Bitmap goldenBitmap = Bitmap.createBitmap(viewWidth, viewHeight, in assertAllPixelsOfColor()
61 goldenCanvas.drawRect(0, 0, viewWidth, viewHeight, goldenPaint); in assertAllPixelsOfColor()
73 for (int row = 0; row < viewHeight; row++) { in assertAllPixelsOfColor()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DShellUtils.java101 final int viewHeight = view.getHeight(); in tap() local
103 final int y = (int) (xy[1] + (viewHeight / 2.0f)); in tap()
DUiAutomatorUtils2.java133 int viewHeight = -1; in waitFindObjectOrNull() local
138 viewHeight = view.getVisibleBounds().height(); in waitFindObjectOrNull()
149 if (view == null || viewHeight < minViewHeightPx) { in waitFindObjectOrNull()
DCtsTouchUtils.java572 final int viewHeight = view.getHeight(); in emulateFlingGesture() local
574 final int startY = isDownwardsFlingGesture ? viewOnScreenXY[1] + viewHeight / 4 in emulateFlingGesture()
575 : viewOnScreenXY[1] + 3 * viewHeight / 4; in emulateFlingGesture()
576 final int amountY = isDownwardsFlingGesture ? viewHeight / 2 : -viewHeight / 2; in emulateFlingGesture()
580 final int durationMs = (1000 * viewHeight) / (2 * flingVelocity); in emulateFlingGesture()
/cts/tests/tests/widget/src/android/widget/cts/
DCompoundButtonTest.java322 int viewHeight; in testOnDraw() local
339 viewHeight = compoundButton.getHeight(); in testOnDraw()
356 assertEquals(viewHeight - drawableHeight, bounds.top); in testOnDraw()
357 assertEquals(viewHeight, bounds.bottom); in testOnDraw()
365 assertEquals( (viewHeight - drawableHeight) / 2, bounds.top); in testOnDraw()
366 assertEquals( (viewHeight - drawableHeight) / 2 + drawableHeight, bounds.bottom); in testOnDraw()
DMediaControllerTest.java243 final int viewHeight = videoView.getHeight(); in testOnTrackballEvent() local
246 final float y = xy[1] + viewHeight / 2.0f; in testOnTrackballEvent()
DPopupWindowTest.java1633 final int viewHeight = mPopupWindow.getContentView().getHeight(); in testSetTouchInterceptor() local
1635 float y = xy[1] + (viewHeight / 2.0f); in testSetTouchInterceptor()
DTextViewTest.java7634 final int viewHeight = mTextView.getHeight(); in testGetOffsetForPosition() local
7638 verifyGetOffsetForPosition(0, viewHeight / 2); in testGetOffsetForPosition()
7640 verifyGetOffsetForPosition(viewWidth / 2, viewHeight / 2); in testGetOffsetForPosition()
7641 verifyGetOffsetForPosition(viewWidth, viewHeight); in testGetOffsetForPosition()
9669 final int viewHeight = view.getHeight(); in createMouseHoverEvent() local
9671 float y = xy[1] + viewHeight / 2.0f; in createMouseHoverEvent()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/orientation/
DCameraOrientationActivity.java509 int viewHeight = mFormatView.getMeasuredHeight();
511 if (viewWidth == 0 || viewHeight == 0) {
525 new RectF(0, 0, viewWidth, viewHeight),
/cts/tests/tests/view/src/android/view/cts/
DViewUnbufferedTest.java183 final int viewHeight = view.getHeight(); in getViewCenterOnScreen() local
185 return new Point(xy[0] + viewWidth / 2, xy[1] + viewHeight / 2); in getViewCenterOnScreen()
DTextureViewTest.java600 final int viewHeight = textureView.getHeight(); in testSamplingWithTransform() local
614 {1, 0, 0, 0, -1, viewHeight, 0, 0, 1}, // V flip matrix + integer translate Y in testSamplingWithTransform()
615 {-1, 0, viewWidth, 0, -1, viewHeight, 0, 0, 1}, // 180 rotation + integer translate X Y in testSamplingWithTransform()
DViewTest.java2491 final int viewHeight = mockView.getHeight(); in testSetAllowClickWhenDisabled() local
2493 final float y = xy[1] + viewHeight / 2.0f; in testSetAllowClickWhenDisabled()
3272 final int viewHeight = mockView1.getHeight(); in testDispatchTouchEvent() local
3274 final float y = xy[1] + viewHeight / 2.0f; in testDispatchTouchEvent()
3367 final int viewHeight = view.getHeight(); in testOnTouchListener() local
3369 final float y = xy[1] + viewHeight / 2.0f; in testOnTouchListener()
3781 final int viewHeight = view.getHeight(); in testOnTouchEventScroll() local
3783 float y = xy[1] + viewHeight / 2.0f; in testOnTouchEventScroll()
3800 y = xy[1] + viewHeight + slop; in testOnTouchEventScroll()
3810 y = xy[1] + viewHeight - 1; in testOnTouchEventScroll()
[all …]
/cts/tests/camera/src/android/hardware/camera2/cts/testcases/
DCamera2MultiViewTestCase.java194 int viewHeight = textureView.getHeight(); in updatePreviewDisplayRotation() local
195 RectF viewRect = new RectF(0, 0, viewWidth, viewHeight); in updatePreviewDisplayRotation()
214 Math.max(viewWidth / (float) effectiveWidth, viewHeight / (float) effectiveHeight); in updatePreviewDisplayRotation()
/cts/tests/tests/widget/src/android/widget/cts/util/
DTestUtils.java149 final int viewHeight = view.getHeight(); in assertRegionPixelsOfColor() local
/cts/tests/surfacecontrol/src/android/view/surfacecontrol/cts/
DSurfaceControlViewHostTests.java275 final int viewHeight = view.getHeight(); in getViewCenterOnScreen() local
277 return new Point(xy[0] + viewWidth / 2, xy[1] + viewHeight / 2); in getViewCenterOnScreen()