/cts/tests/tests/view/src/android/view/cts/util/ |
D | DrawingUtils.java | 44 final int viewHeight = view.getHeight(); 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() 73 for (int row = 0; row < viewHeight; row++) { in assertAllPixelsOfColor()
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | ShellUtils.java | 101 final int viewHeight = view.getHeight(); in tap() local 103 final int y = (int) (xy[1] + (viewHeight / 2.0f)); in tap()
|
D | UiAutomatorUtils2.java | 133 int viewHeight = -1; in waitFindObjectOrNull() local 138 viewHeight = view.getVisibleBounds().height(); in waitFindObjectOrNull() 149 if (view == null || viewHeight < minViewHeightPx) { in waitFindObjectOrNull()
|
D | CtsTouchUtils.java | 572 final int viewHeight = view.getHeight(); in emulateFlingGesture() local 574 final int startY = isDownwardsFlingGesture ? viewOnScreenXY[1] + viewHeight / 4 in emulateFlingGesture() 575 : viewOnScreenXY[1] + 3 * viewHeight / 4; in emulateFlingGesture() 576 final int amountY = isDownwardsFlingGesture ? viewHeight / 2 : -viewHeight / 2; in emulateFlingGesture() 580 final int durationMs = (1000 * viewHeight) / (2 * flingVelocity); in emulateFlingGesture()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | CompoundButtonTest.java | 322 int viewHeight; in testOnDraw() local 339 viewHeight = compoundButton.getHeight(); in testOnDraw() 356 assertEquals(viewHeight - drawableHeight, bounds.top); in testOnDraw() 357 assertEquals(viewHeight, bounds.bottom); in testOnDraw() 365 assertEquals( (viewHeight - drawableHeight) / 2, bounds.top); in testOnDraw() 366 assertEquals( (viewHeight - drawableHeight) / 2 + drawableHeight, bounds.bottom); in testOnDraw()
|
D | MediaControllerTest.java | 243 final int viewHeight = videoView.getHeight(); in testOnTrackballEvent() local 246 final float y = xy[1] + viewHeight / 2.0f; in testOnTrackballEvent()
|
D | PopupWindowTest.java | 1633 final int viewHeight = mPopupWindow.getContentView().getHeight(); in testSetTouchInterceptor() local 1635 float y = xy[1] + (viewHeight / 2.0f); in testSetTouchInterceptor()
|
D | TextViewTest.java | 7634 final int viewHeight = mTextView.getHeight(); in testGetOffsetForPosition() local 7638 verifyGetOffsetForPosition(0, viewHeight / 2); in testGetOffsetForPosition() 7640 verifyGetOffsetForPosition(viewWidth / 2, viewHeight / 2); in testGetOffsetForPosition() 7641 verifyGetOffsetForPosition(viewWidth, viewHeight); in testGetOffsetForPosition() 9669 final int viewHeight = view.getHeight(); in createMouseHoverEvent() local 9671 float y = xy[1] + viewHeight / 2.0f; in createMouseHoverEvent()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/orientation/ |
D | CameraOrientationActivity.java | 509 int viewHeight = mFormatView.getMeasuredHeight(); 511 if (viewWidth == 0 || viewHeight == 0) { 525 new RectF(0, 0, viewWidth, viewHeight),
|
/cts/tests/tests/view/src/android/view/cts/ |
D | ViewUnbufferedTest.java | 183 final int viewHeight = view.getHeight(); in getViewCenterOnScreen() local 185 return new Point(xy[0] + viewWidth / 2, xy[1] + viewHeight / 2); in getViewCenterOnScreen()
|
D | TextureViewTest.java | 600 final int viewHeight = textureView.getHeight(); in testSamplingWithTransform() local 614 {1, 0, 0, 0, -1, viewHeight, 0, 0, 1}, // V flip matrix + integer translate Y in testSamplingWithTransform() 615 {-1, 0, viewWidth, 0, -1, viewHeight, 0, 0, 1}, // 180 rotation + integer translate X Y in testSamplingWithTransform()
|
D | ViewTest.java | 2491 final int viewHeight = mockView.getHeight(); in testSetAllowClickWhenDisabled() local 2493 final float y = xy[1] + viewHeight / 2.0f; in testSetAllowClickWhenDisabled() 3272 final int viewHeight = mockView1.getHeight(); in testDispatchTouchEvent() local 3274 final float y = xy[1] + viewHeight / 2.0f; in testDispatchTouchEvent() 3367 final int viewHeight = view.getHeight(); in testOnTouchListener() local 3369 final float y = xy[1] + viewHeight / 2.0f; in testOnTouchListener() 3781 final int viewHeight = view.getHeight(); in testOnTouchEventScroll() local 3783 float y = xy[1] + viewHeight / 2.0f; in testOnTouchEventScroll() 3800 y = xy[1] + viewHeight + slop; in testOnTouchEventScroll() 3810 y = xy[1] + viewHeight - 1; in testOnTouchEventScroll() [all …]
|
/cts/tests/camera/src/android/hardware/camera2/cts/testcases/ |
D | Camera2MultiViewTestCase.java | 194 int viewHeight = textureView.getHeight(); 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 | 149 final int viewHeight = view.getHeight(); in assertRegionPixelsOfColor() local
|
/cts/tests/surfacecontrol/src/android/view/surfacecontrol/cts/ |
D | SurfaceControlViewHostTests.java | 275 final int viewHeight = view.getHeight(); in getViewCenterOnScreen() local 277 return new Point(xy[0] + viewWidth / 2, xy[1] + viewHeight / 2); in getViewCenterOnScreen()
|