Home
last modified time | relevance | path

Searched refs:FloatRect (Results 1 – 25 of 64) sorted by relevance

123

/aosp12/frameworks/native/libs/ui/include/ui/
H A DFloatRect.h24 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 DRect.h76 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 DTransform.h97 FloatRect transform(const FloatRect& bounds) const;
/aosp12/frameworks/native/libs/ui/include_vndk/ui/
H A DFloatRect.h24 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 DRect.h76 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 DTransform.h97 FloatRect transform(const FloatRect& bounds) const;
/aosp12/frameworks/native/include/ui/
H A DFloatRect.h24 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 DRect.h76 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 DTransform.h97 FloatRect transform(const FloatRect& bounds) const;
/aosp12/frameworks/native/libs/renderengine/skia/
H A DCache.cpp60 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 DSkiaGLRenderEngine.h91 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 DOutputLayerTest.cpp164 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 DRect_test.cpp83 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 DGLSkiaShadowPort.h53 FloatRect fDevBounds;
59 std::unique_ptr<Geometry> getSpotShadowGeometry(const FloatRect& casterRect,
64 std::unique_ptr<Geometry> getAmbientShadowGeometry(const FloatRect& casterRect,
H A DGLSkiaShadowPort.cpp239 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 DGLSkiaShadowPort.h53 FloatRect fDevBounds;
59 std::unique_ptr<Geometry> getSpotShadowGeometry(const FloatRect& casterRect,
64 std::unique_ptr<Geometry> getAmbientShadowGeometry(const FloatRect& casterRect,
H A DGLSkiaShadowPort.cpp239 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 DLayerSettings.h74 FloatRect boundaries = FloatRect();
91 FloatRect roundedCornersCrop = FloatRect();
111 FloatRect boundaries = FloatRect();
/aosp12/frameworks/native/services/surfaceflinger/
H A DLayer.h138 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 DBufferLayer.h228 FloatRect computeSourceBounds(const FloatRect& parentBounds) const override;
H A DBufferLayer.cpp639 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 DBufferStateLayer.h82 FloatRect computeSourceBounds(const FloatRect& parentBounds) const override;
/aosp12/frameworks/av/media/libstagefright/renderfright/include/renderengine/
H A DLayerSettings.h72 FloatRect boundaries = FloatRect();
89 FloatRect roundedCornersCrop = FloatRect();
/aosp12/frameworks/native/services/surfaceflinger/layerproto/include/layerproto/
H A DLayerProtoParser.h62 class FloatRect {
116 LayerProtoParser::FloatRect cornerRadiusCrop;
140 static LayerProtoParser::FloatRect generateFloatRect(const FloatRectProto& rectProto);
/aosp12/frameworks/native/services/surfaceflinger/CompositionEngine/src/
H A DOutputLayer.cpp45 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()

123