/frameworks/native/libs/ui/ |
D | Transform.cpp | 28 Transform::Transform() { in Transform() function in android::ui::Transform 32 Transform::Transform(const Transform& other) in Transform() function in android::ui::Transform 36 Transform::Transform(uint32_t orientation, int w, int h) { in Transform() function in android::ui::Transform 40 Transform::~Transform() = default; 44 bool Transform::isZero(float f) { in isZero() 48 bool Transform::absIsOne(float f) { in absIsOne() 52 bool Transform::operator==(const Transform& other) const { in operator ==() 61 Transform Transform::operator * (const Transform& rhs) const in operator *() 66 Transform r(*this); in operator *() 90 Transform& Transform::operator=(const Transform& other) { 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(); 67 bool operator==(const Transform& other) const; 88 Transform& operator = (const Transform& other); 89 Transform operator * (const Transform& rhs) const; 97 Transform inverse() const; 122 inline void PrintTo(const Transform& t, ::std::ostream* os) { in PrintTo() [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(); 67 bool operator==(const Transform& other) const; 88 Transform& operator = (const Transform& other); 89 Transform operator * (const Transform& rhs) const; 97 Transform inverse() const; 122 inline void PrintTo(const Transform& t, ::std::ostream* os) { in PrintTo() [all …]
|
/frameworks/native/services/surfaceflinger/ |
D | DisplayDevice.h | 94 static ui::Transform::RotationFlags getPrimaryDisplayRotationFlags(); 96 ui::Transform::RotationFlags getTransformHint() const { in getTransformHint() 97 return static_cast<ui::Transform::RotationFlags>(getTransform().getOrientation()); in getTransformHint() 100 const ui::Transform& getTransform() const; 177 static ui::Transform::RotationFlags sPrimaryDisplayRotationFlags; 243 RotationFlags rotation = ui::Transform::ROT_0) 258 const ui::Transform& getTransform() const override { return mTransform; } in getTransform() 271 if (getRotationFlags() & ui::Transform::ROT_90) { in needsFiltering() 294 const auto flags = ui::Transform::toRotationFlags(logicalOrientation); in getSourceCrop() 297 ui::Transform rotation; in getSourceCrop() [all …]
|
D | DisplayDevice.cpp | 50 ui::Transform::RotationFlags DisplayDevice::sPrimaryDisplayRotationFlags = ui::Transform::ROT_0; 164 ui::Transform rotation; in setProjection() 165 if (const auto flags = ui::Transform::toRotationFlags(orientation); in setProjection() 166 flags != ui::Transform::ROT_INVALID) { in setProjection() 182 if (rotation.getOrientation() & ui::Transform::ROT_90) { in setProjection() 189 ui::Transform logicalTranslation, physicalTranslation, scale; in setProjection() 210 if (const auto flags = ui::Transform::toRotationFlags(orientation + mPhysicalOrientation); in setProjection() 211 flags != ui::Transform::ROT_INVALID) { in setProjection() 219 ui::Transform globalTransform = rotation * physicalTranslation * scale * logicalTranslation; in setProjection() 223 (!globalTransform.preserveRects() || (type >= ui::Transform::SCALE)); in setProjection() [all …]
|
D | BufferLayer.h | 119 ui::Transform::RotationFlags getTransformHint() const override { return mTransformHint; } in getTransformHint() 212 void setTransformHint(ui::Transform::RotationFlags displayTransformHint) override; 216 ui::Transform::RotationFlags mTransformHint = ui::Transform::ROT_0; 222 const ui::Transform& inverseParentTransform) const override;
|
D | Layer.h | 126 ui::Transform transform; 281 ui::Transform::RotationFlags fixedTransformHint; 408 virtual bool setFixedTransformHint(ui::Transform::RotationFlags fixedTransformHint); 447 void computeBounds(FloatRect parentBounds, ui::Transform parentTransform, float shadowRadius); 450 ui::Transform getBufferScaleTransform() const; 454 ui::Transform getTransformWithScale(const ui::Transform& bufferScaleTransform) const; 457 FloatRect getBoundsPreScaling(const ui::Transform& bufferScaleTransform) const; 548 virtual ui::Transform getActiveTransform(const Layer::State& s) const { in getActiveTransform() 565 virtual bool needsFilteringForScreenshots(const DisplayDevice*, const ui::Transform&) const { in needsFilteringForScreenshots() argument 690 void updateTransformHint(ui::Transform::RotationFlags); [all …]
|
D | RenderArea.h | 20 using RotationFlags = ui::Transform::RotationFlags; 28 RotationFlags rotation = ui::Transform::ROT_0) 51 virtual const ui::Transform& getTransform() const = 0;
|
D | RegionSamplingThread.cpp | 281 if (orientation & ui::Transform::ROT_90) { in sampleArea() 340 const auto orientation = ui::Transform::toRotationFlags(device->getOrientation()); in captureSample() 354 case ui::Transform::ROT_90: in captureSample() 357 case ui::Transform::ROT_180: in captureSample() 361 case ui::Transform::ROT_270: in captureSample() 368 ui::Transform t(orientation); in captureSample() 392 const ui::Transform transform = layer->getTransform(); in captureSample()
|
D | BufferLayer.cpp | 621 const ui::Transform& inverseParentTransform) const { in needsFilteringForScreenshots() 630 const ui::Transform& displayTransform = display->getTransform(); in needsFilteringForScreenshots() 631 const ui::Transform inverseTransform = inverseParentTransform * displayTransform.inverse(); in needsFilteringForScreenshots() 641 if (displayTransform.getOrientation() & ui::Transform::ROT_90) { in needsFilteringForScreenshots() 671 if (mBufferInfo.mTransform & ui::Transform::ROT_90) { in getBufferSize() 677 if (invTransform & ui::Transform::ROT_90) { in getBufferSize() 703 if (mBufferInfo.mTransform & ui::Transform::ROT_90) { in computeSourceBounds() 709 if (invTransform & ui::Transform::ROT_90) { in computeSourceBounds() 836 void BufferLayer::setTransformHint(ui::Transform::RotationFlags displayTransformHint) { in setTransformHint() 838 if (mTransformHint == ui::Transform::ROT_INVALID) { in setTransformHint()
|
D | LayerProtoHelper.cpp | 97 void LayerProtoHelper::writeToProto(const ui::Transform& transform, in writeToProto() 105 if (type & (ui::Transform::SCALE | ui::Transform::UNKNOWN)) { in writeToProto()
|
D | LayerRejecter.cpp | 51 if (item.mTransform & ui::Transform::ROT_90) { in reject() 57 if (invTransform & ui::Transform::ROT_90) { in reject()
|
D | Layer.cpp | 120 mCurrentState.fixedTransformHint = ui::Transform::ROT_INVALID; in Layer() 305 ui::Transform t = getTransform(); in getScreenBounds() 321 ui::Transform Layer::getBufferScaleTransform() const { in getBufferScaleTransform() 347 ui::Transform extraParentScaling; in getBufferScaleTransform() 352 ui::Transform Layer::getTransformWithScale(const ui::Transform& bufferScaleTransform) const { in getTransformWithScale() 361 FloatRect Layer::getBoundsPreScaling(const ui::Transform& bufferScaleTransform) const { in getBoundsPreScaling() 370 void Layer::computeBounds(FloatRect parentBounds, ui::Transform parentTransform, in computeBounds() 407 ui::Transform bufferScaleTransform = getBufferScaleTransform(); in computeBounds() 997 mNeedsFiltering = (!getActiveTransform(c).preserveRects() || type >= ui::Transform::SCALE); in doTransaction() 1227 ui::Transform t; in setMatrix() [all …]
|
/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | RegionSamplingTest.cpp | 42 static int constexpr kOrientation = ui::Transform::ROT_0; 115 EXPECT_THAT(sampleArea(buffer.data(), kWidth, kHeight, kStride, ui::Transform::ROT_0, in TEST_F() 118 EXPECT_THAT(sampleArea(buffer.data(), kWidth, kHeight, kStride, ui::Transform::ROT_180, in TEST_F() 121 EXPECT_THAT(sampleArea(buffer.data(), kWidth, kHeight, kStride, ui::Transform::ROT_90, in TEST_F() 124 EXPECT_THAT(sampleArea(buffer.data(), kWidth, kHeight, kStride, ui::Transform::ROT_270, in TEST_F() 129 EXPECT_THAT(sampleArea(buffer.data(), kWidth, kHeight, kStride, ui::Transform::ROT_0, in TEST_F() 132 EXPECT_THAT(sampleArea(buffer.data(), kWidth, kHeight, kStride, ui::Transform::ROT_180, in TEST_F() 135 EXPECT_THAT(sampleArea(buffer.data(), kWidth, kHeight, kStride, ui::Transform::ROT_90, in TEST_F() 138 EXPECT_THAT(sampleArea(buffer.data(), kWidth, kHeight, kStride, ui::Transform::ROT_270, in TEST_F()
|
/frameworks/native/services/surfaceflinger/layerproto/include/layerproto/ |
D | LayerProtoParser.h | 42 class Transform { 103 Transform transform; 104 Transform requestedTransform; 108 Transform bufferTransform; 139 static LayerProtoParser::Transform generateTransform(const TransformProto& transformProto);
|
/frameworks/native/services/surfaceflinger/CompositionEngine/src/ |
D | OutputLayer.cpp | 81 const ui::Transform& layerTransform = layerState.geomLayerTransform; in calculateInitialCrop() 82 const ui::Transform& inverseLayerTransform = layerState.geomInverseLayerTransform; in calculateInitialCrop() 143 (ui::Transform(invTransformOrient) * ui::Transform(invTransform)).getOrientation(); in calculateOutputSourceCrop() 186 const ui::Transform& layerTransform = layerState.geomLayerTransform; in calculateOutputDisplayFrame() 187 const ui::Transform& inverseLayerTransform = layerState.geomInverseLayerTransform; in calculateOutputDisplayFrame() 221 const ui::Transform displayTransform{outputState.transform}; in calculateOutputDisplayFrame() 238 const ui::Transform& layerTransform = layerState.geomLayerTransform; in calculateOutputRelativeBufferTransform() 239 const ui::Transform displayTransform{outputState.transform}; in calculateOutputRelativeBufferTransform() 240 const ui::Transform bufferTransform{layerState.geomBufferTransform}; in calculateOutputRelativeBufferTransform() 241 ui::Transform transform(displayTransform * layerTransform * bufferTransform); in calculateOutputRelativeBufferTransform() [all …]
|
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/ |
D | OutputLayerTest.cpp | 137 mLayerFEState.geomLayerTransform = ui::Transform{TR_IDENT}; in OutputLayerSourceCropTest() 242 mLayerFEState.geomLayerTransform = ui::Transform{TR_IDENT}; in OutputLayerDisplayFrameTest() 249 mOutputState.transform = ui::Transform{TR_IDENT}; in OutputLayerDisplayFrameTest() 302 mOutputState.transform = ui::Transform{HAL_TRANSFORM_ROT_90}; in TEST_F() 362 mOutputState.transform = ui::Transform{entry.display}; in TEST_F() 474 mOutputState.transform = ui::Transform{entry.display}; in TEST_F() 519 void setupGeometryChildCallValues(ui::Transform::RotationFlags internalDisplayRotationFlags) { in setupGeometryChildCallValues() 531 EXPECT_EQ(static_cast<Hwc2::Transform>(mBufferTransform), state.bufferTransform); in validateComputedGeometryState() 546 mOutputLayer.updateCompositionState(true, false, ui::Transform::RotationFlags::ROT_90); in TEST_F() 554 setupGeometryChildCallValues(ui::Transform::RotationFlags::ROT_90); in TEST_F() [all …]
|
D | OutputTest.cpp | 239 const ui::Transform transform{ui::Transform::ROT_180}; in TEST_F() 699 EXPECT_CALL(*layer1.outputLayer, updateCompositionState(false, false, ui::Transform::ROT_180)); in TEST_F() 701 EXPECT_CALL(*layer2.outputLayer, updateCompositionState(false, false, ui::Transform::ROT_180)); in TEST_F() 703 EXPECT_CALL(*layer3.outputLayer, updateCompositionState(false, false, ui::Transform::ROT_180)); in TEST_F() 715 args.internalDisplayRotationFlags = ui::Transform::ROT_180; in TEST_F() 724 EXPECT_CALL(*layer1.outputLayer, updateCompositionState(true, false, ui::Transform::ROT_0)); in TEST_F() 726 EXPECT_CALL(*layer2.outputLayer, updateCompositionState(true, false, ui::Transform::ROT_0)); in TEST_F() 728 EXPECT_CALL(*layer3.outputLayer, updateCompositionState(true, false, ui::Transform::ROT_0)); in TEST_F() 748 EXPECT_CALL(*layer1.outputLayer, updateCompositionState(false, true, ui::Transform::ROT_0)); in TEST_F() 750 EXPECT_CALL(*layer2.outputLayer, updateCompositionState(false, true, ui::Transform::ROT_0)); in TEST_F() [all …]
|
/frameworks/native/libs/gui/tests/ |
D | BLASTBufferQueue_test.cpp | 133 ASSERT_NE(ui::Transform::ROT_INVALID, qbOutput.transformHint); in setUpProducer() 263 ASSERT_NE(ui::Transform::ROT_INVALID, qbOutput.transformHint); in TEST_F() 299 ASSERT_NE(ui::Transform::ROT_INVALID, qbOutput.transformHint); in TEST_F() 382 ASSERT_NE(ui::Transform::ROT_INVALID, qbOutput.transformHint); in TEST_F() 443 ASSERT_NE(ui::Transform::ROT_INVALID, qbOutput.transformHint); in TEST_F() 489 ASSERT_NE(ui::Transform::ROT_INVALID, qbOutput.transformHint); in test() 499 case ui::Transform::ROT_0: in test() 520 case ui::Transform::FLIP_H: in test() 541 case ui::Transform::FLIP_V: in test() 562 case ui::Transform::ROT_90: in test() [all …]
|
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/ |
D | CompositionRefreshArgs.h | 62 ui::Transform::RotationFlags internalDisplayRotationFlags{ui::Transform::ROT_0};
|
D | LayerFECompositionState.h | 103 ui::Transform geomLayerTransform; 106 ui::Transform geomInverseLayerTransform;
|
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/ |
D | Transform.java | 26 public class Transform { class 36 public void clone(Transform src) { in clone() 163 Transform t = new Transform(); in main()
|
D | BasicPipeline.java | 46 Matrix m = state.mTransform.getMatrix(Transform.VOLUME_SPACE, Transform.SCREEN_SPACE); in setupTriangles()
|
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/impl/ |
D | OutputLayerCompositionState.h | 78 Hwc2::Transform bufferTransform{static_cast<Hwc2::Transform>(0)};
|
/frameworks/native/libs/vr/libdvrcommon/tests/ |
D | pose_test.cpp | 85 const vec3_t actual_rotated = test_pose.Transform(start_position); in TYPED_TEST() 139 const vec3_t transformed = pose.Transform(start_position); in TYPED_TEST() 140 const vec3_t inverted = pose_inverse.Transform(transformed); in TYPED_TEST()
|