Searched refs:viewWidth (Results 1 – 6 of 6) sorted by relevance
/cts/tests/tests/view/src/android/view/cts/util/ |
D | DrawingUtils.java | 42 final int viewWidth = view.getWidth(); in assertAllPixelsOfColor() local 45 final Bitmap bitmap = Bitmap.createBitmap(viewWidth, viewHeight, Bitmap.Config.ARGB_8888); in assertAllPixelsOfColor() 52 final Bitmap goldenBitmap = Bitmap.createBitmap(viewWidth, viewHeight, in assertAllPixelsOfColor() 60 goldenCanvas.drawRect(0, 0, viewWidth, viewHeight, goldenPaint); in assertAllPixelsOfColor() 70 int[] rowPixels = new int[viewWidth]; in assertAllPixelsOfColor() 71 int[] rowGoldenPixels = new int[viewWidth]; in assertAllPixelsOfColor() 73 bitmap.getPixels(rowPixels, 0, viewWidth, 0, row, viewWidth, 1); in assertAllPixelsOfColor() 74 goldenBitmap.getPixels(rowGoldenPixels, 0, viewWidth, 0, row, viewWidth, 1); in assertAllPixelsOfColor() 75 for (int column = 0; column < viewWidth; column++) { in assertAllPixelsOfColor()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | MediaControllerTest.java | 219 final int viewWidth = videoView.getWidth(); in testOnTrackballEvent() local 222 final float x = xy[0] + viewWidth / 2.0f; in testOnTrackballEvent()
|
D | PopupWindowTest.java | 1023 final int viewWidth = mPopupWindow.getContentView().getWidth(); in testSetTouchInterceptor() local 1025 final float x = xy[0] + (viewWidth / 2.0f); in testSetTouchInterceptor()
|
/cts/tests/camera/src/android/hardware/camera2/cts/testcases/ |
D | Camera2MultiViewTestCase.java | 180 int viewWidth = textureView.getWidth(); in updatePreviewDisplayRotation() local 182 RectF viewRect = new RectF(0, 0, viewWidth, viewHeight); in updatePreviewDisplayRotation() 201 Math.max(viewWidth / (float) effectiveWidth, viewHeight / (float) effectiveHeight); in updatePreviewDisplayRotation()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/orientation/ |
D | CameraOrientationActivity.java | 464 int viewWidth = mFormatView.getWidth(); 472 newWidth = viewWidth; 473 newHeight = (int) (viewWidth * ((double) mOptimalSize.height /
|
/cts/tests/tests/view/src/android/view/cts/ |
D | ViewTest.java | 360 final int viewWidth = view.getWidth(); in testMouseEventCallsGetPointerIcon() local 362 float x = xy[0] + viewWidth / 2.0f; in testMouseEventCallsGetPointerIcon() 2663 final int viewWidth = mockView1.getWidth(); in testDispatchTouchEvent() local 2665 final float x = xy[0] + viewWidth / 2.0f; in testDispatchTouchEvent() 3126 final int viewWidth = view.getWidth(); in testOnTouchEvent() local 3128 float x = xy[0] + viewWidth / 2.0f; in testOnTouchEvent() 3147 x = xy[0] + viewWidth + slop; in testOnTouchEvent() 3158 x = xy[0] + viewWidth - 1; in testOnTouchEvent() 3178 x = xy[0] + viewWidth / 2.0f; in testOnTouchEvent()
|