/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 | 57 final int viewWidth = view.getWidth(); in tap() local 59 final int x = (int) (xy[0] + (viewWidth / 2.0f)); in tap()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | TextureViewTest.java | 307 final int viewWidth = textureView.getWidth(); in testSamplingWithTransform() local 319 {0, -1, viewWidth, 1, 0, 0, 0, 0, 1}, // 90 rotation matrix + integer translate X in testSamplingWithTransform() 320 {0, 1, 0, -1, 0, viewWidth, 0, 0, 1}, // 270 rotation matrix + integer translate Y in testSamplingWithTransform() 321 {-1, 0, viewWidth, 0, 1, 0, 0, 0, 1}, // H flip matrix + integer translate X in testSamplingWithTransform() 323 {-1, 0, viewWidth, 0, -1, viewHeight, 0, 0, 1}, // 180 rotation + integer translate X Y in testSamplingWithTransform() 324 {0, -1, viewWidth - 10.3f, 1, 0, 0, 0, 0, 1}, // 90 rotation matrix with a fractional in testSamplingWithTransform()
|
D | ViewUnbufferedTest.java | 172 final int viewWidth = view.getWidth(); in getViewCenterOnScreen() local 175 return new Point(xy[0] + viewWidth / 2, xy[1] + viewHeight / 2); in getViewCenterOnScreen()
|
D | ViewTest.java | 493 final int viewWidth = view.getWidth(); in testMouseEventCallsGetPointerIcon() local 495 float x = xy[0] + viewWidth / 2.0f; in testMouseEventCallsGetPointerIcon() 2368 final int viewWidth = mockView.getWidth(); in testSetAllowClickWhenDisabled() local 2370 final float x = xy[0] + viewWidth / 2.0f; in testSetAllowClickWhenDisabled() 3144 final int viewWidth = mockView1.getWidth(); in testDispatchTouchEvent() local 3146 final float x = xy[0] + viewWidth / 2.0f; in testDispatchTouchEvent() 3239 final int viewWidth = view.getWidth(); in testOnTouchListener() local 3241 final float x = xy[0] + viewWidth / 2.0f; in testOnTouchListener() 3650 final int viewWidth = view.getWidth(); in testOnTouchEventScroll() local 3652 float x = xy[0] + viewWidth / 2.0f; in testOnTouchEventScroll() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/orientation/ |
D | CameraOrientationActivity.java | 476 int viewWidth = mFormatView.getWidth(); 480 if (viewWidth == 0 || viewHeight == 0){ 488 newWidth = viewWidth; 489 newHeight = (int) (viewWidth * ((double) mOptimalPreviewSize.height /
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | MediaControllerTest.java | 192 final int viewWidth = videoView.getWidth(); in testOnTrackballEvent() local 195 final float x = xy[0] + viewWidth / 2.0f; in testOnTrackballEvent()
|
D | PopupWindowTest.java | 1608 final int viewWidth = mPopupWindow.getContentView().getWidth(); in testSetTouchInterceptor() local 1610 final float x = xy[0] + (viewWidth / 2.0f); in testSetTouchInterceptor()
|
D | TextViewTest.java | 7172 final int viewWidth = mTextView.getWidth(); in testGetOffsetForPosition() local 7178 verifyGetOffsetForPosition(viewWidth / 3, lineHeight / 2); in testGetOffsetForPosition() 7179 verifyGetOffsetForPosition(viewWidth / 2, viewHeight / 2); in testGetOffsetForPosition() 7180 verifyGetOffsetForPosition(viewWidth, viewHeight); in testGetOffsetForPosition() 8879 final int viewWidth = view.getWidth(); in createMouseHoverEvent() local 8881 float x = xy[0] + viewWidth / 2.0f; in createMouseHoverEvent()
|
/cts/tests/camera/src/android/hardware/camera2/cts/testcases/ |
D | Camera2MultiViewTestCase.java | 182 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/tests/tests/widget/src/android/widget/cts/util/ |
D | TestUtils.java | 148 final int viewWidth = view.getWidth(); in assertRegionPixelsOfColor() local
|