Home
last modified time | relevance | path

Searched refs:viewWidth (Results 1 – 10 of 10) sorted by relevance

/cts/tests/tests/view/src/android/view/cts/util/
DDrawingUtils.java43 final int viewWidth = view.getWidth(); 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()
71 int[] rowPixels = new int[viewWidth]; in assertAllPixelsOfColor()
72 int[] rowGoldenPixels = new int[viewWidth]; in assertAllPixelsOfColor()
74 bitmap.getPixels(rowPixels, 0, viewWidth, 0, row, viewWidth, 1); in assertAllPixelsOfColor()
75 goldenBitmap.getPixels(rowGoldenPixels, 0, viewWidth, 0, row, viewWidth, 1); in assertAllPixelsOfColor()
76 for (int column = 0; column < viewWidth; column++) { in assertAllPixelsOfColor()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DShellUtils.java57 final int viewWidth = view.getWidth(); in tap() local
59 final int x = (int) (xy[0] + (viewWidth / 2.0f)); in tap()
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DShellUtils.java57 final int viewWidth = view.getWidth(); in tap() local
59 final int x = (int) (xy[0] + (viewWidth / 2.0f)); in tap()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/orientation/
DCameraOrientationActivity.java464 int viewWidth = mFormatView.getWidth();
468 if (viewWidth == 0 || viewHeight == 0){
476 newWidth = viewWidth;
477 newHeight = (int) (viewWidth * ((double) mOptimalSize.height /
/cts/tests/tests/widget/src/android/widget/cts/
DMediaControllerTest.java192 final int viewWidth = videoView.getWidth(); in testOnTrackballEvent() local
195 final float x = xy[0] + viewWidth / 2.0f; in testOnTrackballEvent()
DPopupWindowTest.java1562 final int viewWidth = mPopupWindow.getContentView().getWidth(); in testSetTouchInterceptor() local
1564 final float x = xy[0] + (viewWidth / 2.0f); in testSetTouchInterceptor()
DTextViewTest.java7035 final int viewWidth = mTextView.getWidth(); in testGetOffsetForPosition() local
7041 verifyGetOffsetForPosition(viewWidth / 3, lineHeight / 2); in testGetOffsetForPosition()
7042 verifyGetOffsetForPosition(viewWidth / 2, viewHeight / 2); in testGetOffsetForPosition()
7043 verifyGetOffsetForPosition(viewWidth, viewHeight); in testGetOffsetForPosition()
8619 final int viewWidth = view.getWidth(); in createMouseHoverEvent() local
8621 float x = xy[0] + viewWidth / 2.0f; in createMouseHoverEvent()
/cts/tests/camera/src/android/hardware/camera2/cts/testcases/
DCamera2MultiViewTestCase.java195 int viewWidth = textureView.getWidth(); 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.java148 final int viewWidth = view.getWidth(); in assertRegionPixelsOfColor() local
/cts/tests/tests/view/src/android/view/cts/
DViewTest.java489 final int viewWidth = view.getWidth(); in testMouseEventCallsGetPointerIcon() local
491 float x = xy[0] + viewWidth / 2.0f; in testMouseEventCallsGetPointerIcon()
3077 final int viewWidth = mockView1.getWidth(); in testDispatchTouchEvent() local
3079 final float x = xy[0] + viewWidth / 2.0f; in testDispatchTouchEvent()
3172 final int viewWidth = view.getWidth(); in testOnTouchListener() local
3174 final float x = xy[0] + viewWidth / 2.0f; in testOnTouchListener()
3583 final int viewWidth = view.getWidth(); in testOnTouchEventScroll() local
3585 float x = xy[0] + viewWidth / 2.0f; in testOnTouchEventScroll()
3602 x = xy[0] + viewWidth + slop; in testOnTouchEventScroll()
3612 x = xy[0] + viewWidth - 1; in testOnTouchEventScroll()
[all …]