/frameworks/native/libs/ui/tests/ |
D | Transform_test.cpp | 24 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/ |
D | Transform.cpp | 30 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/ |
D | Transform.h | 38 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/ |
D | Transform.h | 38 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/ |
D | Transform.h | 38 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/ |
D | InputEvent_test.cpp | 48 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/ |
D | InputTarget.h | 81 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;
|
D | InputTarget.cpp | 33 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/ |
D | android_hardware_camera2_impl_CameraExtensionJpegProcessor.cpp | 44 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/ |
D | ActiveDisplayRotationFlagsTest.cpp | 41 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()
|
D | LayerTest.cpp | 46 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/ |
D | ProjectionSpace.h | 38 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/ |
D | DisplaySettings.h | 75 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/ |
D | JpegEncoder.cpp | 42 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/ |
D | HdrSdrRatioOverlay.cpp | 45 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()
|
D | Layer.h | 103 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 …]
|
D | LayerRenderArea.h | 37 const ui::Transform& layerTransform, const Rect& layerBufferSize, 40 const ui::Transform& getTransform() const override; 54 ui::Transform mTransform;
|
D | RefreshRateOverlay.cpp | 32 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/ |
D | LayerSnapshot.h | 73 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);
|
D | LayerSnapshot.cpp | 43 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 …]
|
D | DisplayInfo.h | 32 ui::Transform transform; 38 ui::Transform::RotationFlags rotationFlags; 39 ui::Transform::RotationFlags transformHint;
|
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/ |
D | OutputLayerTest.cpp | 71 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/ |
D | LayerProtoParser.h | 44 class Transform { 105 Transform transform; 106 Transform requestedTransform; 110 Transform bufferTransform; 145 static LayerProtoParser::Transform generateTransform(
|
/frameworks/native/services/surfaceflinger/CompositionEngine/src/ |
D | OutputLayer.cpp | 87 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/ |
D | InverseDisplayTransformTests.kt | 20 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>()
|