Home
last modified time | relevance | path

Searched refs:Transform (Results 1 – 25 of 150) sorted by relevance

123456

/frameworks/native/libs/ui/tests/
DTransform_test.cpp24 const auto testRotationFlagsForInverse = [](Transform::RotationFlags rotation, in TEST()
25 Transform::RotationFlags expectedInverse, in TEST()
27 const Transform t(rotation, 0, 0); in TEST()
29 const Transform inverse = t.inverse(); in TEST()
33 EXPECT_TRUE(t.getType() & Transform::ROTATE); in TEST()
34 EXPECT_TRUE(inverse.getType() & Transform::ROTATE); in TEST()
36 EXPECT_FALSE(t.getType() & Transform::ROTATE); in TEST()
37 EXPECT_FALSE(inverse.getType() & Transform::ROTATE); in TEST()
41 testRotationFlagsForInverse(Transform::ROT_0, Transform::ROT_0, false); in TEST()
42 testRotationFlagsForInverse(Transform::ROT_90, Transform::ROT_270, true); in TEST()
[all …]
/frameworks/native/libs/ui/
DTransform.cpp30 Transform::Transform() { in Transform() function in android::ui::Transform
34 Transform::Transform(const Transform& other) in Transform() function in android::ui::Transform
38 Transform::Transform(uint32_t orientation, int w, int h) { in Transform() function in android::ui::Transform
42 Transform::~Transform() = default;
46 bool Transform::isZero(float f) { in isZero()
50 bool Transform::absIsOne(float f) { in absIsOne()
54 bool Transform::operator==(const Transform& other) const { in operator ==()
62 Transform Transform::operator*(const Transform& rhs) const { in operator *()
66 Transform r(*this); in operator *()
90 Transform Transform::operator * (float value) const { in operator *()
[all …]
/frameworks/native/libs/ui/include/ui/
DTransform.h38 class Transform {
40 Transform();
41 Transform(const Transform& other);
42 explicit Transform(uint32_t orientation, int w = 0, int h = 0);
43 ~Transform();
71 bool operator==(const Transform& other) const;
99 Transform& operator = (const Transform& other);
100 Transform operator * (const Transform& rhs) const;
101 Transform operator * (float value) const;
109 Transform inverse() const;
[all …]
/frameworks/native/include/ui/
DTransform.h38 class Transform {
40 Transform();
41 Transform(const Transform& other);
42 explicit Transform(uint32_t orientation, int w = 0, int h = 0);
43 ~Transform();
71 bool operator==(const Transform& other) const;
99 Transform& operator = (const Transform& other);
100 Transform operator * (const Transform& rhs) const;
101 Transform operator * (float value) const;
109 Transform inverse() const;
[all …]
/frameworks/native/libs/ui/include_vndk/ui/
DTransform.h38 class Transform {
40 Transform();
41 Transform(const Transform& other);
42 explicit Transform(uint32_t orientation, int w = 0, int h = 0);
43 ~Transform();
71 bool operator==(const Transform& other) const;
99 Transform& operator = (const Transform& other);
100 Transform operator * (const Transform& rhs) const;
101 Transform operator * (float value) const;
109 Transform inverse() const;
[all …]
/frameworks/native/libs/renderengine/include/renderengine/
DDisplaySettings.h68 uint32_t orientation = ui::Transform::ROT_0;
98 case ui::Transform::ROT_0: in orientation_to_string()
100 case ui::Transform::FLIP_H: in orientation_to_string()
102 case ui::Transform::FLIP_V: in orientation_to_string()
104 case ui::Transform::ROT_90: in orientation_to_string()
106 case ui::Transform::ROT_180: in orientation_to_string()
108 case ui::Transform::ROT_270: in orientation_to_string()
110 case ui::Transform::ROT_INVALID: in orientation_to_string()
/frameworks/native/services/inputflinger/dispatcher/
DInputTarget.h104 ui::Transform displayTransform;
111 ui::Transform pointerTransforms[MAX_POINTERS];
113 void addPointers(BitSet32 pointerIds, const ui::Transform& transform);
114 void setDefaultPointerTransform(const ui::Transform& transform);
128 const ui::Transform& getDefaultPointerTransform() const;
DInputTarget.cpp45 void InputTarget::addPointers(BitSet32 newPointerIds, const ui::Transform& transform) { in addPointers()
63 void InputTarget::setDefaultPointerTransform(const ui::Transform& transform) { in setDefaultPointerTransform()
72 const ui::Transform& InputTarget::getDefaultPointerTransform() const { in getDefaultPointerTransform()
79 const ui::Transform& transform = getDefaultPointerTransform(); in getPointerInfoString()
DEntry.h227 ui::Transform transform;
228 ui::Transform rawTransform;
242 const ui::Transform& transform, const ui::Transform& rawTransform,
257 const ui::Transform& rawTransform);
/frameworks/base/core/jni/
Dandroid_hardware_camera2_impl_CameraExtensionJpegProcessor.cpp44 class Transform;
60 class Transform { class
62 Transform(int origX, int origY, int oneX, int oneY);
64 static Transform forCropFollowedByRotation(int cropLeft, int cropTop,
71 bool operator==(const Transform& other) const;
130 inline RowIterator(Plane plane, Transform transform, int rowLength);
144 Transform mTransform;
151 RowIterator<ROWS>::RowIterator(Plane plane, Transform transform, in RowIterator()
253 Transform::Transform(int origX, int origY, int oneX, int oneY) in Transform() function in Transform
299 Transform Transform::forCropFollowedByRotation(int cropLeft, int cropTop, int cropRight, in forCropFollowedByRotation()
[all …]
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/
DProjectionSpace.h38 ui::Transform getTransform(const ProjectionSpace& destination) const { in getTransform()
43 const uint32_t inverseRotationFlags = ui::Transform::toRotationFlags(-rotation); in getTransform()
44 ui::Transform inverseRotatingTransform; in getTransform()
53 ui::Transform sourceTranslation; in getTransform()
58 ui::Transform scale; in getTransform()
66 ui::Transform destTranslation; in getTransform()
70 const uint32_t orientationFlags = ui::Transform::toRotationFlags(rotation); in getTransform()
76 ui::Transform rotationTransform; in getTransform()
/frameworks/native/services/surfaceflinger/tests/unittests/
DLayerTest.cpp47 layer->computeBounds(LARGE_FLOAT_RECT, ui::Transform(), 0.f); in TEST_P()
57 layer->computeBounds(LARGE_FLOAT_RECT, ui::Transform(), 0.f); in TEST_P()
69 layer->computeBounds(LARGE_FLOAT_RECT, ui::Transform(), 0.f); in TEST_P()
81 layer->computeBounds(LARGE_FLOAT_RECT, ui::Transform(), 0.f); in TEST_P()
DDisplayDevice_SetProjectionTest.cpp90 EXPECT_EQ(ui::Transform(ui::Transform::toRotationFlags(mPhysicalOrientation), in expectDefaultState()
114 EXPECT_EQ(ui::Transform(TRANSFORM_FLAGS_ROT_0, mHardwareDisplaySize.width, in expectStateForHardwareTransform0()
126 EXPECT_EQ(ui::Transform(TRANSFORM_FLAGS_ROT_90, mHardwareDisplaySize.width, in expectStateForHardwareTransform90()
142 EXPECT_EQ(ui::Transform(TRANSFORM_FLAGS_ROT_180, mHardwareDisplaySize.width, in expectStateForHardwareTransform180()
153 EXPECT_EQ(ui::Transform(TRANSFORM_FLAGS_ROT_270, mHardwareDisplaySize.width, in expectStateForHardwareTransform270()
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/
DOutputLayerTest.cpp69 case ui::Transform::RotationFlags::ROT_0: in toRotation()
71 case ui::Transform::RotationFlags::ROT_90: in toRotation()
73 case ui::Transform::RotationFlags::ROT_180: in toRotation()
75 case ui::Transform::RotationFlags::ROT_270: in toRotation()
162 mLayerFEState.geomLayerTransform = ui::Transform{TR_IDENT}; in OutputLayerSourceCropTest()
172 return mOutputLayer.calculateOutputSourceCrop(ui::Transform::RotationFlags::ROT_0); in calculateOutputSourceCrop()
267 mLayerFEState.geomLayerTransform = ui::Transform{TR_IDENT}; in OutputLayerDisplayFrameTest()
274 mOutputState.transform = ui::Transform{TR_IDENT}; in OutputLayerDisplayFrameTest()
327 mOutputState.transform = ui::Transform{HAL_TRANSFORM_ROT_90}; in TEST_F()
408 mOutputState.transform = ui::Transform{entry.display}; in TEST_F()
[all …]
/frameworks/native/services/surfaceflinger/layerproto/include/layerproto/
DLayerProtoParser.h42 class Transform {
103 Transform transform;
104 Transform requestedTransform;
108 Transform bufferTransform;
141 static LayerProtoParser::Transform generateTransform(const TransformProto& transformProto);
/frameworks/native/services/surfaceflinger/
DDisplayRenderArea.cpp29 return ui::Transform::toRotationFlags(display.getOrientation()); in applyDeviceOrientation()
56 const ui::Transform& DisplayRenderArea::getTransform() const { in getTransform()
86 if (getRotationFlags() & ui::Transform::ROT_90) { in needsFiltering()
105 ui::Transform rotation; in getSourceCrop()
DBufferLayer.h113 ui::Transform::RotationFlags getTransformHint() const override { return mTransformHint; } in getTransformHint()
163 void setTransformHint(ui::Transform::RotationFlags displayTransformHint) override;
167 ui::Transform::RotationFlags mTransformHint = ui::Transform::ROT_0;
205 const ui::Transform& inverseParentTransform) const override;
DRenderArea.h21 using RotationFlags = ui::Transform::RotationFlags;
29 RotationFlags rotation = ui::Transform::ROT_0)
52 virtual const ui::Transform& getTransform() const = 0;
DLayer.h126 ui::Transform transform;
195 ui::Transform transform;
248 ui::Transform::RotationFlags fixedTransformHint;
440 virtual bool setFixedTransformHint(ui::Transform::RotationFlags fixedTransformHint);
496 ui::Transform getActiveTransform(const Layer::State& s) const { return s.transform; } in getActiveTransform()
512 virtual bool needsFilteringForScreenshots(const DisplayDevice*, const ui::Transform&) const { in needsFilteringForScreenshots() argument
568 virtual ui::Transform::RotationFlags getTransformHint() const { return ui::Transform::ROT_0; } in getTransformHint()
650 void computeBounds(FloatRect parentBounds, ui::Transform parentTransform, float shadowRadius);
734 void updateTransformHint(ui::Transform::RotationFlags);
749 ui::Transform getTransform() const;
[all …]
DRefreshRateOverlay.cpp125 ui::Transform::RotationFlags rotation, in draw()
143 case ui::Transform::ROT_90: in draw()
147 case ui::Transform::ROT_270: in draw()
251 static_cast<ui::Transform::RotationFlags>(mSurfaceControl->get()->getTransformHint()); in getOrCreateBuffers()
256 case ui::Transform::ROT_90: in getOrCreateBuffers()
257 return ui::Transform::ROT_270; in getOrCreateBuffers()
258 case ui::Transform::ROT_270: in getOrCreateBuffers()
259 return ui::Transform::ROT_90; in getOrCreateBuffers()
261 return ui::Transform::ROT_0; in getOrCreateBuffers()
DLayerRenderArea.cpp32 newParent->computeBounds(drawingBounds.toFloatRect(), ui::Transform(), in reparentForDrawing()
48 const ui::Transform& LayerRenderArea::getTransform() const { in getTransform()
105 mLayer->computeBounds(maxBounds, ui::Transform(), 0.f /* shadowRadius */); in render()
/frameworks/native/services/surfaceflinger/CompositionEngine/src/
DOutputLayer.cpp88 const ui::Transform& layerTransform = layerState.geomLayerTransform; in calculateInitialCrop()
89 const ui::Transform& inverseLayerTransform = layerState.geomInverseLayerTransform; in calculateInitialCrop()
149 (ui::Transform(invTransformOrient) * ui::Transform(invTransform)).getOrientation(); in calculateOutputSourceCrop()
192 const ui::Transform& layerTransform = layerState.geomLayerTransform; in calculateOutputDisplayFrame()
193 const ui::Transform& inverseLayerTransform = layerState.geomInverseLayerTransform; in calculateOutputDisplayFrame()
237 const ui::Transform displayTransform{outputState.transform}; in calculateOutputDisplayFrame()
254 const ui::Transform& layerTransform = layerState.geomLayerTransform; in calculateOutputRelativeBufferTransform()
255 const ui::Transform displayTransform{outputState.transform}; in calculateOutputRelativeBufferTransform()
256 const ui::Transform bufferTransform{layerState.geomBufferTransform}; in calculateOutputRelativeBufferTransform()
257 ui::Transform transform(displayTransform * layerTransform * bufferTransform); in calculateOutputRelativeBufferTransform()
[all …]
/frameworks/native/libs/input/tests/
DInputEvent_test.cpp235 ui::Transform mTransform;
236 ui::Transform mRawTransform;
577 TEST_F(MotionEventTest, Transform) { in TEST_F() argument
602 ui::Transform identityTransform; in TEST_F()
651 const ui::Transform& transform, const ui::Transform& rawTransform) { in createMotionEvent()
673 const ui::Transform& transform, in createTouchDownEvent()
674 const ui::Transform& rawTransform) { in createTouchDownEvent()
681 ui::Transform identity; in TEST_F()
682 ui::Transform transform(ui::Transform::ROT_90, 800, 400); in TEST_F()
684 ui::Transform rawTransform(ui::Transform::ROT_90, 800, 400); in TEST_F()
[all …]
/frameworks/base/tests/SurfaceViewBufferTests/src/com/android/test/
DInverseDisplayTransformTests.kt20 import com.android.test.SurfaceViewBufferTestBase.Companion.Transform in <lambda>()
50 activity.mSurfaceProxy.ANativeWindowSetBuffersTransform(Transform.INVERSE_DISPLAY.value) in <lambda>()
64 activity.mSurfaceProxy.ANativeWindowSetBuffersTransform(Transform.ROT_90.value) in <lambda>()
/frameworks/native/libs/input/
DInput.cpp47 float transformAngle(const ui::Transform& transform, float angleRadians) { in transformAngle()
140 vec2 transformWithoutTranslation(const ui::Transform& transform, const vec2& xy) { in transformWithoutTranslation()
421 void PointerCoords::transform(const ui::Transform& transform) { in transform()
428 const ui::Transform rotation(transform.getOrientation()); in transform()
460 const ui::Transform& transform, float xPrecision, float yPrecision, in initialize()
462 const ui::Transform& rawTransform, nsecs_t downTime, nsecs_t eventTime, in initialize()
536 case ui::Transform::ROT_0: in getSurfaceRotation()
538 case ui::Transform::ROT_90: in getSurfaceRotation()
540 case ui::Transform::ROT_180: in getSurfaceRotation()
542 case ui::Transform::ROT_270: in getSurfaceRotation()
[all …]

123456