Home
last modified time | relevance | path

Searched refs:viewHeight (Results 1 – 13 of 13) 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.java58 final int viewHeight = view.getHeight(); in tap() local
60 final int y = (int) (xy[1] + (viewHeight / 2.0f)); in tap()
DCtsTouchUtils.java421 final int viewHeight = view.getHeight(); in emulateFlingGesture() local
423 final int startY = isDownwardsFlingGesture ? viewOnScreenXY[1] + viewHeight / 4 in emulateFlingGesture()
424 : viewOnScreenXY[1] + 3 * viewHeight / 4; in emulateFlingGesture()
425 final int amountY = isDownwardsFlingGesture ? viewHeight / 2 : -viewHeight / 2; in emulateFlingGesture()
429 final int durationMs = (1000 * viewHeight) / (2 * flingVelocity); in emulateFlingGesture()
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DShellUtils.java58 final int viewHeight = view.getHeight(); in tap() local
60 final int y = (int) (xy[1] + (viewHeight / 2.0f)); in tap()
DCtsTouchUtils.java420 final int viewHeight = view.getHeight(); in emulateFlingGesture() local
422 final int startY = isDownwardsFlingGesture ? viewOnScreenXY[1] + viewHeight / 4 in emulateFlingGesture()
423 : viewOnScreenXY[1] + 3 * viewHeight / 4; in emulateFlingGesture()
424 final int amountY = isDownwardsFlingGesture ? viewHeight / 2 : -viewHeight / 2; in emulateFlingGesture()
428 final int durationMs = (1000 * viewHeight) / (2 * flingVelocity); in emulateFlingGesture()
/cts/tests/tests/widget/src/android/widget/cts/
DCompoundButtonTest.java278 int viewHeight; in testOnDraw() local
295 viewHeight = compoundButton.getHeight(); in testOnDraw()
312 assertEquals(viewHeight - drawableHeight, bounds.top); in testOnDraw()
313 assertEquals(viewHeight, bounds.bottom); in testOnDraw()
321 assertEquals( (viewHeight - drawableHeight) / 2, bounds.top); in testOnDraw()
322 assertEquals( (viewHeight - drawableHeight) / 2 + drawableHeight, bounds.bottom); in testOnDraw()
DMediaControllerTest.java193 final int viewHeight = videoView.getHeight(); in testOnTrackballEvent() local
196 final float y = xy[1] + viewHeight / 2.0f; in testOnTrackballEvent()
DPopupWindowTest.java1563 final int viewHeight = mPopupWindow.getContentView().getHeight(); in testSetTouchInterceptor() local
1565 float y = xy[1] + (viewHeight / 2.0f); in testSetTouchInterceptor()
DTextViewTest.java7036 final int viewHeight = mTextView.getHeight(); in testGetOffsetForPosition() local
7040 verifyGetOffsetForPosition(0, viewHeight / 2); in testGetOffsetForPosition()
7042 verifyGetOffsetForPosition(viewWidth / 2, viewHeight / 2); in testGetOffsetForPosition()
7043 verifyGetOffsetForPosition(viewWidth, viewHeight); in testGetOffsetForPosition()
8620 final int viewHeight = view.getHeight(); in createMouseHoverEvent() local
8622 float y = xy[1] + viewHeight / 2.0f; in createMouseHoverEvent()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/orientation/
DCameraOrientationActivity.java465 int viewHeight = mFormatView.getHeight();
468 if (viewWidth == 0 || viewHeight == 0){
481 newHeight = viewHeight;
482 newWidth = (int) (viewHeight * ((double) mOptimalSize.height /
/cts/tests/camera/src/android/hardware/camera2/cts/testcases/
DCamera2MultiViewTestCase.java196 int viewHeight = textureView.getHeight(); in updatePreviewDisplayRotation() local
197 RectF viewRect = new RectF(0, 0, viewWidth, viewHeight); in updatePreviewDisplayRotation()
216 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/tests/view/src/android/view/cts/
DViewTest.java490 final int viewHeight = view.getHeight(); in testMouseEventCallsGetPointerIcon() local
492 float y = xy[1] + viewHeight / 2.0f; in testMouseEventCallsGetPointerIcon()
3078 final int viewHeight = mockView1.getHeight(); in testDispatchTouchEvent() local
3080 final float y = xy[1] + viewHeight / 2.0f; in testDispatchTouchEvent()
3173 final int viewHeight = view.getHeight(); in testOnTouchListener() local
3175 final float y = xy[1] + viewHeight / 2.0f; in testOnTouchListener()
3584 final int viewHeight = view.getHeight(); in testOnTouchEventScroll() local
3586 float y = xy[1] + viewHeight / 2.0f; in testOnTouchEventScroll()
3603 y = xy[1] + viewHeight + slop; in testOnTouchEventScroll()
3613 y = xy[1] + viewHeight - 1; in testOnTouchEventScroll()
[all …]