/cts/tests/tests/view/src/android/view/cts/util/ |
D | DrawingUtils.java | 43 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/ |
D | ShellUtils.java | 100 final int viewWidth = view.getWidth(); in tap() local 102 final int x = (int) (xy[0] + (viewWidth / 2.0f)); in tap()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | MediaControllerTest.java | 242 final int viewWidth = videoView.getWidth(); in testOnTrackballEvent() local 245 final float x = xy[0] + viewWidth / 2.0f; in testOnTrackballEvent()
|
D | PopupWindowTest.java | 1632 final int viewWidth = mPopupWindow.getContentView().getWidth(); in testSetTouchInterceptor() local 1634 final float x = xy[0] + (viewWidth / 2.0f); in testSetTouchInterceptor()
|
D | TextViewTest.java | 7633 final int viewWidth = mTextView.getWidth(); in testGetOffsetForPosition() local 7639 verifyGetOffsetForPosition(viewWidth / 3, lineHeight / 2); in testGetOffsetForPosition() 7640 verifyGetOffsetForPosition(viewWidth / 2, viewHeight / 2); in testGetOffsetForPosition() 7641 verifyGetOffsetForPosition(viewWidth, viewHeight); in testGetOffsetForPosition() 9668 final int viewWidth = view.getWidth(); in createMouseHoverEvent() local 9670 float x = xy[0] + viewWidth / 2.0f; in createMouseHoverEvent()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | TextureViewTest.java | 599 final int viewWidth = textureView.getWidth(); in testSamplingWithTransform() local 611 {0, -1, viewWidth, 1, 0, 0, 0, 0, 1}, // 90 rotation matrix + integer translate X in testSamplingWithTransform() 612 {0, 1, 0, -1, 0, viewWidth, 0, 0, 1}, // 270 rotation matrix + integer translate Y in testSamplingWithTransform() 613 {-1, 0, viewWidth, 0, 1, 0, 0, 0, 1}, // H flip matrix + integer translate X in testSamplingWithTransform() 615 {-1, 0, viewWidth, 0, -1, viewHeight, 0, 0, 1}, // 180 rotation + integer translate X Y in testSamplingWithTransform() 616 {0, -1, viewWidth - 10.3f, 1, 0, 0, 0, 0, 1}, // 90 rotation matrix with a fractional in testSamplingWithTransform()
|
D | ViewUnbufferedTest.java | 182 final int viewWidth = view.getWidth(); in getViewCenterOnScreen() local 185 return new Point(xy[0] + viewWidth / 2, xy[1] + viewHeight / 2); in getViewCenterOnScreen()
|
D | ViewTest.java | 2490 final int viewWidth = mockView.getWidth(); in testSetAllowClickWhenDisabled() local 2492 final float x = xy[0] + viewWidth / 2.0f; in testSetAllowClickWhenDisabled() 3271 final int viewWidth = mockView1.getWidth(); in testDispatchTouchEvent() local 3273 final float x = xy[0] + viewWidth / 2.0f; in testDispatchTouchEvent() 3366 final int viewWidth = view.getWidth(); in testOnTouchListener() local 3368 final float x = xy[0] + viewWidth / 2.0f; in testOnTouchListener() 3780 final int viewWidth = view.getWidth(); in testOnTouchEventScroll() local 3782 float x = xy[0] + viewWidth / 2.0f; in testOnTouchEventScroll() 3799 x = xy[0] + viewWidth + slop; in testOnTouchEventScroll() 3809 x = xy[0] + viewWidth - 1; in testOnTouchEventScroll() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/orientation/ |
D | CameraOrientationActivity.java | 508 int viewWidth = mFormatView.getMeasuredWidth(); 511 if (viewWidth == 0 || viewHeight == 0) { 525 new RectF(0, 0, viewWidth, viewHeight),
|
/cts/tests/camera/src/android/hardware/camera2/cts/testcases/ |
D | Camera2MultiViewTestCase.java | 193 int viewWidth = textureView.getWidth(); 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/ |
D | TestUtils.java | 148 final int viewWidth = view.getWidth(); in assertRegionPixelsOfColor() local
|
/cts/tests/surfacecontrol/src/android/view/surfacecontrol/cts/ |
D | SurfaceControlViewHostTests.java | 274 final int viewWidth = view.getWidth(); in getViewCenterOnScreen() local 277 return new Point(xy[0] + viewWidth / 2, xy[1] + viewHeight / 2); in getViewCenterOnScreen()
|