Home
last modified time | relevance | path

Searched refs:yScale (Results 1 – 13 of 13) sorted by relevance

/frameworks/base/core/java/android/hardware/input/
DTouchCalibration.java62 float yxMix, float yScale, float yOffset) { in TouchCalibration() argument
67 mYScale = yScale; in TouchCalibration()
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/util/
DImageUtils.java203 public static BufferedImage scale(@NonNull BufferedImage source, double xScale, double yScale) { in scale() argument
208 int destHeight = Math.max(1, (int) (yScale * sourceHeight)); in scale()
213 if (xScale > 0.5 && yScale > 0.5) { in scale()
220 if (xScale == 1 && yScale == 1) { in scale()
/frameworks/native/libs/input/tests/
DInputPublisherAndConsumer_test.cpp159 constexpr float yScale = 3; in PublishAndConsumeMotionEvent() local
190 classification, xScale, yScale, xOffset, yOffset, in PublishAndConsumeMotionEvent()
222 EXPECT_EQ(yScale, motionEvent->getYScale()); in PublishAndConsumeMotionEvent()
230 EXPECT_EQ(yCursorPosition * yScale + yOffset, motionEvent->getYCursorPosition()); in PublishAndConsumeMotionEvent()
247 EXPECT_EQ(pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_Y) * yScale + yOffset, in PublishAndConsumeMotionEvent()
DStructLayout_test.cpp68 CHECK_OFFSET(InputMessage::Body::Motion, yScale, 100); in TestInputMessageAlignment()
/frameworks/native/include/input/
DInputTransport.h121 float yScale; member
298 MotionClassification classification, float xScale, float yScale,
DInput.h688 MotionClassification classification, float xScale, float yScale, float xOffset,
/frameworks/native/libs/input/
DInputTransport.cpp204 msg->body.motion.yScale = body.motion.yScale; in getSanitizedCopy()
487 MotionClassification classification, float xScale, float yScale, float xOffset, in publishMotionEvent() argument
507 motionClassificationToString(classification), xScale, yScale, xOffset, yOffset, in publishMotionEvent()
538 msg.body.motion.yScale = yScale; in publishMotionEvent()
1191 msg->body.motion.xScale, msg->body.motion.yScale, msg->body.motion.xOffset, in initializeMotionEvent()
DInput.cpp324 float yScale, float xOffset, float yOffset, float xPrecision, in initialize() argument
338 mYScale = yScale; in initialize()
/frameworks/native/services/surfaceflinger/CompositionEngine/src/
DOutputLayer.cpp164 const float yScale = crop.getHeight() / float(winHeight); in calculateOutputSourceCrop() local
167 const float insetTop = winCrop.top * yScale; in calculateOutputSourceCrop()
169 const float insetBottom = (winHeight - winCrop.bottom) * yScale; in calculateOutputSourceCrop()
/frameworks/native/libs/gui/
DSurfaceComposerClient.cpp1399 float yScale = sourceHeight < 0 ? 1.0f : dst.getHeight() / sourceHeight; in setGeometry() local
1405 matrix[2] = 0; matrix[3] = yScale; in setGeometry()
1410 matrix[2] = 0; matrix[3] = -yScale; in setGeometry()
1414 matrix[0] = 0; matrix[1] = -yScale; in setGeometry()
1420 matrix[2] = 0; matrix[3] = -yScale; in setGeometry()
1425 matrix[0] = 0; matrix[1] = yScale; in setGeometry()
1431 matrix[2] = 0; matrix[3] = yScale; in setGeometry()
1436 float offsetY = yScale * source.top; in setGeometry()
/frameworks/native/services/surfaceflinger/
DLayer.cpp2381 const float yScale = t.sy(); in fillInputInfo() local
2384 if (xScale != 1.0f || yScale != 1.0f) { in fillInputInfo()
2386 info.windowYScale *= (yScale != 0.0f) ? 1.0f / yScale : 0.0f; in fillInputInfo()
2387 info.touchableRegion.scaleSelf(xScale, yScale); in fillInputInfo()
2389 ySurfaceInset = std::round(ySurfaceInset * yScale); in fillInputInfo()
/frameworks/native/services/inputflinger/dispatcher/
DInputDispatcher.cpp2504 float xScale = 1.0f, yScale = 1.0f; in startDispatchCycleLocked() local
2509 yScale = dispatchEntry->windowYScale; in startDispatchCycleLocked()
2511 yOffset = dispatchEntry->yOffset * yScale; in startDispatchCycleLocked()
2546 motionEntry->classification, xScale, yScale, in startDispatchCycleLocked()
/frameworks/native/services/inputflinger/tests/
DInputDispatcher_test.cpp810 void setWindowScale(float xScale, float yScale) { in setWindowScale() argument
812 mInfo.windowYScale = yScale; in setWindowScale()