/aosp12/frameworks/native/libs/ui/include/ui/ |
H A D | FloatRect.h | 24 class FloatRect { 26 FloatRect() = default; 27 constexpr FloatRect(float _left, float _top, float _right, float _bottom) in FloatRect() function 33 FloatRect intersect(const FloatRect& other) const { in intersect() 34 FloatRect intersection = { in intersect() 56 inline bool operator==(const FloatRect& a, const FloatRect& b) { 60 static inline void PrintTo(const FloatRect& rect, ::std::ostream* os) { in PrintTo() 70 struct hash<android::FloatRect> { 71 size_t operator()(const android::FloatRect& rect) const {
|
H A D | Rect.h | 76 inline explicit Rect(const FloatRect& floatRect) { in Rect() 207 return Rect(FloatRect(left * scaleX, top * scaleY, right * scaleX, bottom * scaleY)); in scale() 223 FloatRect toFloatRect() const { in toFloatRect()
|
H A D | Transform.h | 97 FloatRect transform(const FloatRect& bounds) const;
|
/aosp12/frameworks/native/libs/ui/include_vndk/ui/ |
H A D | FloatRect.h | 24 class FloatRect { 26 FloatRect() = default; 27 constexpr FloatRect(float _left, float _top, float _right, float _bottom) in FloatRect() function 33 FloatRect intersect(const FloatRect& other) const { in intersect() 34 FloatRect intersection = { in intersect() 56 inline bool operator==(const FloatRect& a, const FloatRect& b) { 60 static inline void PrintTo(const FloatRect& rect, ::std::ostream* os) { in PrintTo() 70 struct hash<android::FloatRect> { 71 size_t operator()(const android::FloatRect& rect) const {
|
H A D | Rect.h | 76 inline explicit Rect(const FloatRect& floatRect) { in Rect() 207 return Rect(FloatRect(left * scaleX, top * scaleY, right * scaleX, bottom * scaleY)); in scale() 223 FloatRect toFloatRect() const { in toFloatRect()
|
H A D | Transform.h | 97 FloatRect transform(const FloatRect& bounds) const;
|
/aosp12/frameworks/native/include/ui/ |
H A D | FloatRect.h | 24 class FloatRect { 26 FloatRect() = default; 27 constexpr FloatRect(float _left, float _top, float _right, float _bottom) in FloatRect() function 33 FloatRect intersect(const FloatRect& other) const { in intersect() 34 FloatRect intersection = { in intersect() 56 inline bool operator==(const FloatRect& a, const FloatRect& b) { 60 static inline void PrintTo(const FloatRect& rect, ::std::ostream* os) { in PrintTo() 70 struct hash<android::FloatRect> { 71 size_t operator()(const android::FloatRect& rect) const {
|
H A D | Rect.h | 76 inline explicit Rect(const FloatRect& floatRect) { in Rect() 207 return Rect(FloatRect(left * scaleX, top * scaleY, right * scaleX, bottom * scaleY)); in scale() 223 FloatRect toFloatRect() const { in toFloatRect()
|
H A D | Transform.h | 97 FloatRect transform(const FloatRect& bounds) const;
|
/aosp12/frameworks/native/libs/renderengine/skia/ |
H A D | Cache.cpp | 60 FloatRect rect(0, 0, displayRect.width(), displayRect.height()); in drawShadowLayers() 61 FloatRect smallerRect(20, 20, displayRect.width()-20, displayRect.height()-20); in drawShadowLayers() 124 FloatRect rect(0, 0, displayRect.width(), displayRect.height()); in drawImageLayers() 164 FloatRect rect(0, 0, displayRect.width(), displayRect.height()); in drawSolidLayers() 191 FloatRect rect(0, 0, displayRect.width(), displayRect.height()); in drawBlurLayers() 219 FloatRect rect(0, 0, displayRect.width(), displayRect.height() - 20); // boundary is smaller in drawClippedLayers() 239 FloatRect(0, 0, displayRect.width(), displayRect.height()), in drawClippedLayers() 265 FloatRect rect(0, 0, displayRect.width(), displayRect.height()); in drawPIPImageLayer() 275 .roundedCornersCrop = FloatRect( in drawPIPImageLayer() 298 FloatRect rect(0, 0, displayRect.width(), displayRect.height()); in drawHolePunchLayer() [all …]
|
H A D | SkiaGLRenderEngine.h | 91 inline SkRect getSkRect(const FloatRect& layer); 93 inline std::pair<SkRRect, SkRRect> getBoundsAndClip(const FloatRect& bounds, 94 const FloatRect& crop, float cornerRadius);
|
/aosp12/frameworks/native/services/surfaceflinger/CompositionEngine/tests/ |
H A D | OutputLayerTest.cpp | 164 FloatRect calculateOutputSourceCrop() { in calculateOutputSourceCrop() 174 const FloatRect expected{}; in TEST_F() 179 const FloatRect expected{0.f, 0.f, 1920.f, 1080.f}; in TEST_F() 186 const FloatRect expected{0.f, 0.f, 1920.f, 1080.f}; in TEST_F() 194 const FloatRect expected{0.f, 0.f, 1080.f, 1080.f}; in TEST_F() 203 FloatRect expected; in TEST_F() 241 const FloatRect expected{0.f, 0.f, 960.f, 540.f}; in TEST_F() 248 const FloatRect expected{0.f, 0.f, 960.f, 540.f}; in TEST_F() 531 MOCK_CONST_METHOD0(calculateOutputSourceCrop, FloatRect()); 575 const FloatRect kSourceCrop{1.f, 2.f, 3.f, 4.f}; [all …]
|
/aosp12/frameworks/native/libs/ui/tests/ |
H A D | Rect_test.cpp | 83 const Rect rect(FloatRect(10, 20, 30, 40)); in TEST() 94 const Rect rect(FloatRect(10 - kError, 20 - kError, 30 - kError, 40 - kError)); in TEST() 258 const FloatRect floatRect = rect.toFloatRect(); in TEST() 259 EXPECT_EQ(FloatRect(10.f, 20.f, 50.f, 60.f), floatRect); in TEST() 277 const std::vector<FloatRect> floatRects = { in TEST() 285 const bool hashEq = std::hash<FloatRect>{}(a) == std::hash<FloatRect>{}(b); in TEST()
|
/aosp12/frameworks/native/libs/renderengine/gl/ |
H A D | GLSkiaShadowPort.h | 53 FloatRect fDevBounds; 59 std::unique_ptr<Geometry> getSpotShadowGeometry(const FloatRect& casterRect, 64 std::unique_ptr<Geometry> getAmbientShadowGeometry(const FloatRect& casterRect,
|
H A D | GLSkiaShadowPort.cpp | 239 const FloatRect& bounds = args.fDevBounds; in fillInCircleVerts() 351 const FloatRect& bounds = args.fDevBounds; in fillInRRectVerts() 512 static std::unique_ptr<Geometry> getShadowGeometry(const vec4& color, const FloatRect& devRect, in getShadowGeometry() 518 FloatRect bounds = devRect; in getShadowGeometry() 548 std::unique_ptr<Geometry> getAmbientShadowGeometry(const FloatRect& casterRect, in getAmbientShadowGeometry() 558 FloatRect outsetRect(casterRect); in getAmbientShadowGeometry() 574 std::unique_ptr<Geometry> getSpotShadowGeometry(const FloatRect& casterRect, in getSpotShadowGeometry() 594 FloatRect spotShadowRect = shadowTransform.transform(casterRect); in getSpotShadowGeometry()
|
/aosp12/frameworks/av/media/libstagefright/renderfright/gl/ |
H A D | GLSkiaShadowPort.h | 53 FloatRect fDevBounds; 59 std::unique_ptr<Geometry> getSpotShadowGeometry(const FloatRect& casterRect, 64 std::unique_ptr<Geometry> getAmbientShadowGeometry(const FloatRect& casterRect,
|
H A D | GLSkiaShadowPort.cpp | 239 const FloatRect& bounds = args.fDevBounds; in fillInCircleVerts() 351 const FloatRect& bounds = args.fDevBounds; in fillInRRectVerts() 512 static std::unique_ptr<Geometry> getShadowGeometry(const vec4& color, const FloatRect& devRect, in getShadowGeometry() 518 FloatRect bounds = devRect; in getShadowGeometry() 548 std::unique_ptr<Geometry> getAmbientShadowGeometry(const FloatRect& casterRect, in getAmbientShadowGeometry() 558 FloatRect outsetRect(casterRect); in getAmbientShadowGeometry() 574 std::unique_ptr<Geometry> getSpotShadowGeometry(const FloatRect& casterRect, in getSpotShadowGeometry() 594 FloatRect spotShadowRect = shadowTransform.transform(casterRect); in getSpotShadowGeometry()
|
/aosp12/frameworks/native/libs/renderengine/include/renderengine/ |
H A D | LayerSettings.h | 74 FloatRect boundaries = FloatRect(); 91 FloatRect roundedCornersCrop = FloatRect(); 111 FloatRect boundaries = FloatRect();
|
/aosp12/frameworks/native/services/surfaceflinger/ |
H A D | Layer.h | 138 RoundedCornerState(FloatRect cropRect, float radius) in RoundedCornerState() 142 FloatRect cropRect = FloatRect(); 602 virtual FloatRect computeSourceBounds(const FloatRect& parentBounds) const { in computeSourceBounds() 659 FloatRect getBounds(const Region& activeTransparentRegion) const; 660 FloatRect getBounds() const; 663 void computeBounds(FloatRect parentBounds, ui::Transform parentTransform, float shadowRadius); 955 void setupRoundedCornersCropCoordinates(Rect win, const FloatRect& roundedCornersCrop) const; 1091 FloatRect mSourceBounds; 1095 FloatRect mBounds; 1098 FloatRect mScreenBounds;
|
H A D | BufferLayer.h | 228 FloatRect computeSourceBounds(const FloatRect& parentBounds) const override;
|
H A D | BufferLayer.cpp | 639 const FloatRect sourceCrop = compositionState.sourceCrop; in needsFilteringForScreenshots() 689 FloatRect BufferLayer::computeSourceBounds(const FloatRect& parentBounds) const { in computeSourceBounds() 696 return FloatRect(0, 0, getActiveWidth(s), getActiveHeight(s)); in computeSourceBounds() 718 return FloatRect(0, 0, bufWidth, bufHeight); in computeSourceBounds()
|
H A D | BufferStateLayer.h | 82 FloatRect computeSourceBounds(const FloatRect& parentBounds) const override;
|
/aosp12/frameworks/av/media/libstagefright/renderfright/include/renderengine/ |
H A D | LayerSettings.h | 72 FloatRect boundaries = FloatRect(); 89 FloatRect roundedCornersCrop = FloatRect();
|
/aosp12/frameworks/native/services/surfaceflinger/layerproto/include/layerproto/ |
H A D | LayerProtoParser.h | 62 class FloatRect { 116 LayerProtoParser::FloatRect cornerRadiusCrop; 140 static LayerProtoParser::FloatRect generateFloatRect(const FloatRectProto& rectProto);
|
/aosp12/frameworks/native/services/surfaceflinger/CompositionEngine/src/ |
H A D | OutputLayer.cpp | 45 FloatRect reduce(const FloatRect& win, const Region& exclude) { in reduce() 79 FloatRect activeCropFloat = in calculateInitialCrop() 104 FloatRect OutputLayer::calculateOutputSourceCrop() const { in calculateOutputSourceCrop() 114 FloatRect crop = layerState.geomContentCrop.toFloatRect(); in calculateOutputSourceCrop() 219 FloatRect geomLayerBounds = layerState.geomLayerBounds; in calculateOutputDisplayFrame() 380 FloatRect sourceCrop = outputDependentState.sourceCrop; in writeOutputDependentGeometryStateToHWC() 385 FloatRect(0.f, 0.f, in writeOutputDependentGeometryStateToHWC()
|