Home
last modified time | relevance | path

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

1234567

/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/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/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/input/tests/
DInputEvent_test.cpp48 std::array<float, 9> asFloat9(const ui::Transform& t) { in asFloat9()
273 ui::Transform mTransform;
274 ui::Transform mRawTransform;
710 .transform(ui::Transform(ui::Transform::ROT_90, 100, 100)) in TEST_F()
711 .rawTransform(ui::Transform(ui::Transform::FLIP_H, 50, 50)) in TEST_F()
799 TEST_F(MotionEventTest, Transform) { in TEST_F() argument
824 ui::Transform identityTransform; in TEST_F()
875 const ui::Transform& transform, const ui::Transform& rawTransform) { in createMotionEvent()
896 const ui::Transform& transform, in createTouchDownEvent()
897 const ui::Transform& rawTransform) { in createTouchDownEvent()
[all …]
/frameworks/native/services/inputflinger/dispatcher/
DInputTarget.h81 ui::Transform displayTransform;
95 const ui::Transform& transform);
96 void setDefaultPointerTransform(const ui::Transform& transform);
110 const ui::Transform& getDefaultPointerTransform() const;
112 const ui::Transform& getTransformForPointer(int32_t pointerId) const;
127 ArrayMap<ui::Transform, PointerIds> mPointerTransforms;
DInputTarget.cpp33 const static ui::Transform kIdentityTransform{};
41 const ui::Transform& transform) { in addPointers()
65 void InputTarget::setDefaultPointerTransform(const ui::Transform& transform) { in setDefaultPointerTransform()
73 const ui::Transform& InputTarget::getDefaultPointerTransform() const { in getDefaultPointerTransform()
80 const ui::Transform& InputTarget::getTransformForPointer(int32_t pointerId) const { in getTransformForPointer()
96 const ui::Transform& transform = getDefaultPointerTransform(); in getPointerInfoString()
/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/tests/unittests/
DActiveDisplayRotationFlagsTest.cpp41 mFlinger.mutableActiveDisplayRotationFlags() = ui::Transform::ROT_0; in SetUp()
46 ui::Transform::RotationFlags mOldRotationFlags;
50 ASSERT_EQ(ui::Transform::ROT_0, SurfaceFlinger::getActiveDisplayRotationFlags()); in TEST_F()
60 ASSERT_EQ(ui::Transform::ROT_90, SurfaceFlinger::getActiveDisplayRotationFlags()); in TEST_F()
70 ASSERT_EQ(ui::Transform::ROT_0, SurfaceFlinger::getActiveDisplayRotationFlags()); in TEST_F()
85 ASSERT_EQ(ui::Transform::ROT_180, SurfaceFlinger::getActiveDisplayRotationFlags()); in TEST_F()
101 ASSERT_EQ(ui::Transform::ROT_270, SurfaceFlinger::getActiveDisplayRotationFlags()); in TEST_F()
116 ASSERT_EQ(ui::Transform::ROT_180, SurfaceFlinger::getActiveDisplayRotationFlags()); in TEST_F()
119 ASSERT_EQ(ui::Transform::ROT_270, SurfaceFlinger::getActiveDisplayRotationFlags()); in TEST_F()
DLayerTest.cpp46 layer->computeBounds(LARGE_FLOAT_RECT, ui::Transform(), 0.f); in TEST_P()
56 layer->computeBounds(LARGE_FLOAT_RECT, ui::Transform(), 0.f); in TEST_P()
68 layer->computeBounds(LARGE_FLOAT_RECT, ui::Transform(), 0.f); in TEST_P()
80 layer->computeBounds(LARGE_FLOAT_RECT, ui::Transform(), 0.f); in TEST_P()
/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/libs/renderengine/include/renderengine/
DDisplaySettings.h75 uint32_t orientation = ui::Transform::ROT_0;
121 case ui::Transform::ROT_0: in orientation_to_string()
123 case ui::Transform::FLIP_H: in orientation_to_string()
125 case ui::Transform::FLIP_V: in orientation_to_string()
127 case ui::Transform::ROT_90: in orientation_to_string()
129 case ui::Transform::ROT_180: in orientation_to_string()
131 case ui::Transform::ROT_270: in orientation_to_string()
133 case ui::Transform::ROT_INVALID: in orientation_to_string()
/frameworks/ex/camera2/extensions/jni/
DJpegEncoder.cpp42 class Transform;
58 class Transform { class
60 Transform(int origX, int origY, int oneX, int oneY);
62 static Transform forCropFollowedByRotation(int cropLeft, int cropTop,
69 bool operator==(const Transform& other) const;
128 inline RowIterator(Plane plane, Transform transform, int rowLength);
142 Transform mTransform;
149 RowIterator<ROWS>::RowIterator(Plane plane, Transform transform, in RowIterator()
251 Transform::Transform(int origX, int origY, int oneX, int oneY) in Transform() function in Transform
297 Transform Transform::forCropFollowedByRotation(int cropLeft, int cropTop, int cropRight, in forCropFollowedByRotation()
[all …]
/frameworks/native/services/surfaceflinger/
DHdrSdrRatioOverlay.cpp45 ui::Transform::RotationFlags rotation, in draw()
66 case ui::Transform::ROT_90: in draw()
70 case ui::Transform::ROT_270: in draw()
156 static_cast<ui::Transform::RotationFlags>(mSurfaceControl->get()->getTransformHint()); in getOrCreateBuffers()
161 case ui::Transform::ROT_90: in getOrCreateBuffers()
162 return ui::Transform::ROT_270; in getOrCreateBuffers()
163 case ui::Transform::ROT_270: in getOrCreateBuffers()
164 return ui::Transform::ROT_90; in getOrCreateBuffers()
166 return ui::Transform::ROT_0; in getOrCreateBuffers()
DLayer.h103 ui::Transform transform;
144 ui::Transform transform;
201 ui::Transform::RotationFlags fixedTransformHint;
334 virtual bool setFixedTransformHint(ui::Transform::RotationFlags fixedTransformHint);
416 ui::Transform getActiveTransform(const Layer::State& s) const { return s.transform; } in getActiveTransform()
432 bool needsFilteringForScreenshots(const DisplayDevice*, const ui::Transform&) const;
591 const ui::Transform&,
610 const ui::Transform& displayTransform);
613 void computeBounds(FloatRect parentBounds, ui::Transform parentTransform, float shadowRadius);
700 void updateTransformHint(ui::Transform::RotationFlags);
[all …]
DLayerRenderArea.h37 const ui::Transform& layerTransform, const Rect& layerBufferSize,
40 const ui::Transform& getTransform() const override;
54 ui::Transform mTransform;
DRefreshRateOverlay.cpp32 ui::Transform::RotationFlags rotation, ftl::Flags<Features> features) in draw()
45 case ui::Transform::ROT_90: in draw()
49 case ui::Transform::ROT_270: in draw()
202 static_cast<ui::Transform::RotationFlags>(mSurfaceControl->get()->getTransformHint()); in getOrCreateBuffers()
207 case ui::Transform::ROT_90: in getOrCreateBuffers()
208 return ui::Transform::ROT_270; in getOrCreateBuffers()
209 case ui::Transform::ROT_270: in getOrCreateBuffers()
210 return ui::Transform::ROT_90; in getOrCreateBuffers()
212 return ui::Transform::ROT_0; in getOrCreateBuffers()
/frameworks/native/services/surfaceflinger/FrontEnd/
DLayerSnapshot.h73 ui::Transform parentTransform;
80 ui::Transform localTransformInverse;
82 ui::Transform localTransform;
94 ui::Transform::RotationFlags fixedTransformHint;
95 std::optional<ui::Transform::RotationFlags> transformHint;
133 static bool isTransformValid(const ui::Transform& t);
DLayerSnapshot.cpp43 std::ostream& operator<<(std::ostream& os, const ui::Transform& transform) { in operator <<()
46 if (type == ui::Transform::IDENTITY) { in operator <<()
50 if (type & ui::Transform::UNKNOWN) { in operator <<()
57 if (type & ui::Transform::ROTATE) { in operator <<()
59 case ui::Transform::ROT_0: in operator <<()
62 case ui::Transform::FLIP_H: in operator <<()
65 case ui::Transform::FLIP_V: in operator <<()
68 case ui::Transform::ROT_90: in operator <<()
71 case ui::Transform::ROT_180: in operator <<()
74 case ui::Transform::ROT_270: in operator <<()
[all …]
DDisplayInfo.h32 ui::Transform transform;
38 ui::Transform::RotationFlags rotationFlags;
39 ui::Transform::RotationFlags transformHint;
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/
DOutputLayerTest.cpp71 case ui::Transform::RotationFlags::ROT_0: in toRotation()
73 case ui::Transform::RotationFlags::ROT_90: in toRotation()
75 case ui::Transform::RotationFlags::ROT_180: in toRotation()
77 case ui::Transform::RotationFlags::ROT_270: in toRotation()
165 mLayerFEState.geomLayerTransform = ui::Transform{TR_IDENT}; in OutputLayerSourceCropTest()
175 return mOutputLayer.calculateOutputSourceCrop(ui::Transform::RotationFlags::ROT_0); in calculateOutputSourceCrop()
270 mLayerFEState.geomLayerTransform = ui::Transform{TR_IDENT}; in OutputLayerDisplayFrameTest()
277 mOutputState.transform = ui::Transform{TR_IDENT}; in OutputLayerDisplayFrameTest()
330 mOutputState.transform = ui::Transform{HAL_TRANSFORM_ROT_90}; in TEST_F()
411 mOutputState.transform = ui::Transform{entry.display}; in TEST_F()
[all …]
/frameworks/native/services/surfaceflinger/layerproto/include/layerproto/
DLayerProtoParser.h44 class Transform {
105 Transform transform;
106 Transform requestedTransform;
110 Transform bufferTransform;
145 static LayerProtoParser::Transform generateTransform(
/frameworks/native/services/surfaceflinger/CompositionEngine/src/
DOutputLayer.cpp87 const ui::Transform& layerTransform = layerState.geomLayerTransform; in calculateInitialCrop()
88 const ui::Transform& inverseLayerTransform = layerState.geomInverseLayerTransform; in calculateInitialCrop()
148 (ui::Transform(invTransformOrient) * ui::Transform(invTransform)).getOrientation(); in calculateOutputSourceCrop()
191 const ui::Transform& layerTransform = layerState.geomLayerTransform; in calculateOutputDisplayFrame()
192 const ui::Transform& inverseLayerTransform = layerState.geomInverseLayerTransform; in calculateOutputDisplayFrame()
236 const ui::Transform displayTransform{outputState.transform}; in calculateOutputDisplayFrame()
253 const ui::Transform& layerTransform = layerState.geomLayerTransform; in calculateOutputRelativeBufferTransform()
254 const ui::Transform displayTransform{outputState.transform}; in calculateOutputRelativeBufferTransform()
255 const ui::Transform bufferTransform{layerState.geomBufferTransform}; in calculateOutputRelativeBufferTransform()
256 ui::Transform transform(displayTransform * layerTransform * bufferTransform); in calculateOutputRelativeBufferTransform()
[all …]
/frameworks/base/tests/SurfaceViewBufferTests/src/com/android/test/
DInverseDisplayTransformTests.kt20 import com.android.test.SurfaceViewBufferTestBase.Companion.Transform in <lambda>()
51 activity.mSurfaceProxy.ANativeWindowSetBuffersTransform(Transform.INVERSE_DISPLAY.value) in <lambda>()
65 activity.mSurfaceProxy.ANativeWindowSetBuffersTransform(Transform.ROT_90.value) in <lambda>()

1234567