Home
last modified time | relevance | path

Searched refs:viewWidth (Results 1 – 8 of 8) 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/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.java1181 final int viewWidth = mPopupWindow.getContentView().getWidth(); in testSetTouchInterceptor() local
1183 final float x = xy[0] + (viewWidth / 2.0f); in testSetTouchInterceptor()
DTextViewTest.java6513 final int viewWidth = mTextView.getWidth(); in testGetOffsetForPosition() local
6519 verifyGetOffsetForPosition(viewWidth / 3, lineHeight / 2); in testGetOffsetForPosition()
6520 verifyGetOffsetForPosition(viewWidth / 2, viewHeight / 2); in testGetOffsetForPosition()
6521 verifyGetOffsetForPosition(viewWidth, viewHeight); in testGetOffsetForPosition()
7771 final int viewWidth = view.getWidth(); in createMouseHoverEvent() local
7773 float x = xy[0] + viewWidth / 2.0f; in createMouseHoverEvent()
/cts/tests/camera/src/android/hardware/camera2/cts/testcases/
DCamera2MultiViewTestCase.java182 int viewWidth = textureView.getWidth(); in updatePreviewDisplayRotation() local
184 RectF viewRect = new RectF(0, 0, viewWidth, viewHeight); in updatePreviewDisplayRotation()
203 Math.max(viewWidth / (float) effectiveWidth, viewHeight / (float) effectiveHeight); in updatePreviewDisplayRotation()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/orientation/
DCameraOrientationActivity.java464 int viewWidth = mFormatView.getWidth();
472 newWidth = viewWidth;
473 newHeight = (int) (viewWidth * ((double) mOptimalSize.height /
/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.java383 final int viewWidth = view.getWidth(); in testMouseEventCallsGetPointerIcon() local
385 float x = xy[0] + viewWidth / 2.0f; in testMouseEventCallsGetPointerIcon()
2736 final int viewWidth = mockView1.getWidth(); in testDispatchTouchEvent() local
2738 final float x = xy[0] + viewWidth / 2.0f; in testDispatchTouchEvent()
3150 final int viewWidth = view.getWidth(); in testOnTouchEvent() local
3152 float x = xy[0] + viewWidth / 2.0f; in testOnTouchEvent()
3171 x = xy[0] + viewWidth + slop; in testOnTouchEvent()
3182 x = xy[0] + viewWidth - 1; in testOnTouchEvent()
3202 x = xy[0] + viewWidth / 2.0f; in testOnTouchEvent()