/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 | 58 final int viewHeight = view.getHeight(); in tap() local 60 final int y = (int) (xy[1] + (viewHeight / 2.0f)); in tap()
|
D | CtsTouchUtils.java | 565 final int viewHeight = view.getHeight(); in emulateFlingGesture() local 567 final int startY = isDownwardsFlingGesture ? viewOnScreenXY[1] + viewHeight / 4 in emulateFlingGesture() 568 : viewOnScreenXY[1] + 3 * viewHeight / 4; in emulateFlingGesture() 569 final int amountY = isDownwardsFlingGesture ? viewHeight / 2 : -viewHeight / 2; in emulateFlingGesture() 573 final int durationMs = (1000 * viewHeight) / (2 * flingVelocity); in emulateFlingGesture()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | CompoundButtonTest.java | 313 int viewHeight; in testOnDraw() local 330 viewHeight = compoundButton.getHeight(); in testOnDraw() 347 assertEquals(viewHeight - drawableHeight, bounds.top); in testOnDraw() 348 assertEquals(viewHeight, bounds.bottom); in testOnDraw() 356 assertEquals( (viewHeight - drawableHeight) / 2, bounds.top); in testOnDraw() 357 assertEquals( (viewHeight - drawableHeight) / 2 + drawableHeight, bounds.bottom); in testOnDraw()
|
D | MediaControllerTest.java | 193 final int viewHeight = videoView.getHeight(); in testOnTrackballEvent() local 196 final float y = xy[1] + viewHeight / 2.0f; in testOnTrackballEvent()
|
D | PopupWindowTest.java | 1609 final int viewHeight = mPopupWindow.getContentView().getHeight(); in testSetTouchInterceptor() local 1611 float y = xy[1] + (viewHeight / 2.0f); in testSetTouchInterceptor()
|
D | TextViewTest.java | 7173 final int viewHeight = mTextView.getHeight(); in testGetOffsetForPosition() local 7177 verifyGetOffsetForPosition(0, viewHeight / 2); in testGetOffsetForPosition() 7179 verifyGetOffsetForPosition(viewWidth / 2, viewHeight / 2); in testGetOffsetForPosition() 7180 verifyGetOffsetForPosition(viewWidth, viewHeight); in testGetOffsetForPosition() 8880 final int viewHeight = view.getHeight(); in createMouseHoverEvent() local 8882 float y = xy[1] + viewHeight / 2.0f; in createMouseHoverEvent()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/orientation/ |
D | CameraOrientationActivity.java | 477 int viewHeight = mFormatView.getHeight(); 480 if (viewWidth == 0 || viewHeight == 0){ 493 newHeight = viewHeight; 494 newWidth = (int) (viewHeight * ((double) mOptimalPreviewSize.height /
|
/cts/tests/camera/src/android/hardware/camera2/cts/testcases/ |
D | Camera2MultiViewTestCase.java | 183 int viewHeight = textureView.getHeight(); 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/view/src/android/view/cts/ |
D | ViewUnbufferedTest.java | 173 final int viewHeight = view.getHeight(); in getViewCenterOnScreen() local 175 return new Point(xy[0] + viewWidth / 2, xy[1] + viewHeight / 2); in getViewCenterOnScreen()
|
D | TextureViewTest.java | 308 final int viewHeight = textureView.getHeight(); in testSamplingWithTransform() local 322 {1, 0, 0, 0, -1, viewHeight, 0, 0, 1}, // V flip matrix + integer translate Y in testSamplingWithTransform() 323 {-1, 0, viewWidth, 0, -1, viewHeight, 0, 0, 1}, // 180 rotation + integer translate X Y in testSamplingWithTransform()
|
D | ViewTest.java | 494 final int viewHeight = view.getHeight(); in testMouseEventCallsGetPointerIcon() local 496 float y = xy[1] + viewHeight / 2.0f; in testMouseEventCallsGetPointerIcon() 2365 final int viewHeight = mockView.getHeight(); in testSetAllowClickWhenDisabled() local 2367 final float y = xy[1] + viewHeight / 2.0f; in testSetAllowClickWhenDisabled() 3141 final int viewHeight = mockView1.getHeight(); in testDispatchTouchEvent() local 3143 final float y = xy[1] + viewHeight / 2.0f; in testDispatchTouchEvent() 3236 final int viewHeight = view.getHeight(); in testOnTouchListener() local 3238 final float y = xy[1] + viewHeight / 2.0f; in testOnTouchListener() 3647 final int viewHeight = view.getHeight(); in testOnTouchEventScroll() local 3649 float y = xy[1] + viewHeight / 2.0f; in testOnTouchEventScroll() [all …]
|
/cts/tests/tests/widget/src/android/widget/cts/util/ |
D | TestUtils.java | 149 final int viewHeight = view.getHeight(); in assertRegionPixelsOfColor() local
|