/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | ContentRecorderTests.java | 650 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/ |
D | TouchCalibration.java | 62 public TouchCalibration(float xScale, float xyMix, float xOffset, in TouchCalibration() argument 64 mXScale = xScale; in TouchCalibration()
|
/frameworks/native/headers/media_plugin/media/openmax/ |
D | OMX_Other.h | 250 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/ |
D | InputPublisherAndConsumer_test.cpp | 57 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()
|
D | InputPublisherAndConsumerNoResampling_test.cpp | 64 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/ |
D | FakeWindows.h | 233 inline void setWindowScale(float xScale, float yScale) { in setWindowScale() argument 234 setWindowTransform(xScale, 0, 0, yScale); in setWindowScale()
|
/frameworks/base/native/android/ |
D | surface_control.cpp | 485 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/ |
D | surface_control.h | 446 ASurfaceControl* _Nonnull surface_control, float xScale,
|
/frameworks/native/services/surfaceflinger/CompositionEngine/src/ |
D | OutputLayer.cpp | 168 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/ |
D | SurfaceComposerClient.cpp | 2028 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/ |
D | TouchInputMapper.cpp | 891 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/ |
D | android_view_SurfaceControl.cpp | 602 jfloat xScale, jfloat yScale) { in nativeSetScale() argument 606 transaction->setMatrix(ctrl, xScale, 0, 0, yScale); in nativeSetScale()
|