Home
last modified time | relevance | path

Searched refs:xScale (Results 1 – 12 of 12) sorted by relevance

/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DContentRecorderTests.java650 float xScale = 0.7f; in testUpdateMirroredSurface_capturedAreaResized() local
652 Rect displayAreaBounds = new Rect(0, 0, Math.round(mSurfaceSize.x * xScale), in testUpdateMirroredSurface_capturedAreaResized()
661 int scaledWidth = Math.round((float) displayAreaBounds.width() / xScale); in testUpdateMirroredSurface_capturedAreaResized()
694 float xScale = 1f; in testUpdateMirroredSurface_anisotropicPixel_compressY() local
696 verify(mTransaction, atLeastOnce()).setMatrix(mRecordedSurface, xScale, 0, 0, in testUpdateMirroredSurface_anisotropicPixel_compressY()
715 float xScale = 0.5f; in testUpdateMirroredSurface_anisotropicPixel_compressX() local
717 verify(mTransaction, atLeastOnce()).setMatrix(mRecordedSurface, xScale, 0, 0, in testUpdateMirroredSurface_anisotropicPixel_compressX()
738 float xScale = 2f; in testUpdateMirroredSurface_anisotropicPixel_scaleOnX() local
740 verify(mTransaction, atLeastOnce()).setMatrix(mRecordedSurface, xScale, 0, 0, in testUpdateMirroredSurface_anisotropicPixel_scaleOnX()
761 float xScale = 4f; in testUpdateMirroredSurface_anisotropicPixel_scaleOnY() local
[all …]
/frameworks/base/core/java/android/hardware/input/
DTouchCalibration.java62 public TouchCalibration(float xScale, float xyMix, float xOffset, in TouchCalibration() argument
64 mXScale = xScale; in TouchCalibration()
/frameworks/native/headers/media_plugin/media/openmax/
DOMX_Other.h250 OMX_S32 xScale; /**< Current media time scale in Q16 format. */ member
263 OMX_S32 xScale; /**< This is a value in Q16 format which is used for member
/frameworks/native/libs/input/tests/
DInputPublisherAndConsumer_test.cpp57 const float xScale = 2; member
118 transform.set({xScale, 0, xOffset, 0, yScale, yOffset, 0, 0, 1}); in PublishMotionArgs()
138 EXPECT_NEAR((-args.rawXOffset / args.rawXScale) * args.xScale + args.xOffset, in verifyArgsEqualToEvent()
146 EXPECT_NEAR(args.xCursorPosition * args.xScale + args.xOffset, motionEvent.getXCursorPosition(), in verifyArgsEqualToEvent()
165 EXPECT_NEAR(pc.getX() * args.xScale + args.xOffset, motionEvent.getX(i), EPSILON); in verifyArgsEqualToEvent()
177 const float x = sinf(unscaledOrientation) * args.xScale; in verifyArgsEqualToEvent()
DInputPublisherAndConsumerNoResampling_test.cpp64 const float xScale = 2; member
125 transform.set({xScale, 0, xOffset, 0, yScale, yOffset, 0, 0, 1}); in PublishMotionArgs()
145 EXPECT_NEAR((-args.rawXOffset / args.rawXScale) * args.xScale + args.xOffset, in verifyArgsEqualToEvent()
153 EXPECT_NEAR(args.xCursorPosition * args.xScale + args.xOffset, motionEvent.getXCursorPosition(), in verifyArgsEqualToEvent()
172 EXPECT_NEAR(pc.getX() * args.xScale + args.xOffset, motionEvent.getX(i), EPSILON); in verifyArgsEqualToEvent()
184 const float x = sinf(unscaledOrientation) * args.xScale; in verifyArgsEqualToEvent()
/frameworks/native/services/inputflinger/tests/
DFakeWindows.h233 inline void setWindowScale(float xScale, float yScale) { in setWindowScale() argument
234 setWindowTransform(xScale, 0, 0, yScale); in setWindowScale()
/frameworks/base/native/android/
Dsurface_control.cpp485 ASurfaceControl* aSurfaceControl, float xScale, float yScale) { in ASurfaceTransaction_setScale() argument
488 LOG_ALWAYS_FATAL_IF(xScale < 0, "negative value passed in for xScale"); in ASurfaceTransaction_setScale()
494 transaction->setMatrix(surfaceControl, xScale, 0, 0, yScale); in ASurfaceTransaction_setScale()
/frameworks/native/include/android/
Dsurface_control.h446 ASurfaceControl* _Nonnull surface_control, float xScale,
/frameworks/native/services/surfaceflinger/CompositionEngine/src/
DOutputLayer.cpp168 const float xScale = crop.getWidth() / float(winWidth); in calculateOutputSourceCrop() local
171 const float insetLeft = winCrop.left * xScale; in calculateOutputSourceCrop()
173 const float insetRight = (winWidth - winCrop.right) * xScale; in calculateOutputSourceCrop()
/frameworks/native/libs/gui/
DSurfaceComposerClient.cpp2028 float xScale = sourceWidth < 0 ? 1.0f : dst.getWidth() / sourceWidth; in setGeometry() local
2034 matrix[0] = -xScale; matrix[1] = 0; in setGeometry()
2039 matrix[0] = xScale; matrix[1] = 0; in setGeometry()
2045 matrix[2] = xScale; matrix[3] = 0; in setGeometry()
2049 matrix[0] = -xScale; matrix[1] = 0; in setGeometry()
2056 matrix[2] = -xScale; matrix[3] = 0; in setGeometry()
2060 matrix[0] = xScale; matrix[1] = 0; in setGeometry()
2065 float offsetX = xScale * source.left; in setGeometry()
/frameworks/native/services/inputflinger/reader/mapper/
DTouchInputMapper.cpp891 const float xScale = static_cast<float>(mViewport.deviceWidth) / rotatedRawSize.width; in computeInputTransforms() local
894 scaleRawToDisplay.set(xScale, 0, 0, yScale); in computeInputTransforms()
896 const float fixedScale = std::max(xScale, yScale); in computeInputTransforms()
/frameworks/base/core/jni/
Dandroid_view_SurfaceControl.cpp602 jfloat xScale, jfloat yScale) { in nativeSetScale() argument
606 transaction->setMatrix(ctrl, xScale, 0, 0, yScale); in nativeSetScale()