Home
last modified time | relevance | path

Searched refs:intersect (Results 1 – 25 of 75) sorted by relevance

123

/frameworks/native/libs/ui/tests/
DRect_test.cpp183 TEST(RectTest, intersect) { in TEST() argument
189 EXPECT_TRUE(rect.intersect(rect, &intersection)); in TEST()
195 EXPECT_TRUE(rect.intersect(insideRect, &intersection)); in TEST()
200 EXPECT_TRUE(insideRect.intersect(rect, &intersection)); in TEST()
205 EXPECT_FALSE(rect.intersect(Rect(100, 202, 150, 260), &intersection)); in TEST()
211 EXPECT_TRUE(rect.intersect(other, &intersection)); in TEST()
216 EXPECT_TRUE(other.intersect(rect, &intersection)); in TEST()
/frameworks/base/media/java/android/media/
DMediaCodecInfo.java1383 mBitrateRange = mBitrateRange.intersect(bitRates); in applyLimits()
1427 bitRates = bitRates.intersect( in parseFromInfo()
1596 range = range.intersect( in getSupportedWidthsFor()
1602 range = range.intersect(1, mSmallerDimensionUpperLimit); in getSupportedWidthsFor()
1606 range = range.intersect( in getSupportedWidthsFor()
1640 range = range.intersect( in getSupportedHeightsFor()
1646 range = range.intersect(1, mSmallerDimensionUpperLimit); in getSupportedHeightsFor()
1650 range = range.intersect( in getSupportedHeightsFor()
2465 frameRates = frameRates.intersect(FRAME_RATE_RANGE);
2475 bitRates = bitRates.intersect(BITRATE_RANGE);
[all …]
DImage.java304 if (!cropRect.intersect(0, 0, getWidth(), getHeight())) { in setCropRect()
DUtils.java94 result.add(range.intersect(one[ix])); in intersectSortedDistinctRanges()
101 result.add(range.intersect(one[ix])); in intersectSortedDistinctRanges()
193 return range.intersect(
/frameworks/av/media/codec2/tests/vndk/
DC2BufferTest.cpp155 …static_assert(C2Segment(123u, 456u).intersect(C2Segment(123u, 456u)) == C2Segment(123u, 456u), ""); in StaticSegmentTest()
156 …static_assert(C2Segment(123u, 456u).intersect(C2Segment(123u, 460u)) == C2Segment(123u, 456u), ""); in StaticSegmentTest()
157 …static_assert(C2Segment(123u, 456u).intersect(C2Segment(124u, 460u)) == C2Segment(124u, 455u), ""); in StaticSegmentTest()
158 … static_assert(C2Segment(123u, 456u).intersect(C2Segment(579u, 460u)) == C2Segment(579u, 0u), ""); in StaticSegmentTest()
159 …static_assert(C2Segment(123u, 456u).intersect(C2Segment(589u, 460u)) == C2Segment(589u, ~9u /* -10… in StaticSegmentTest()
160 …static_assert(C2Segment(123u, 456u).intersect(C2Segment(123u, 455u)) == C2Segment(123u, 455u), ""); in StaticSegmentTest()
161 …static_assert(C2Segment(123u, 456u).intersect(C2Segment(122u, 456u)) == C2Segment(123u, 455u), ""); in StaticSegmentTest()
162 … static_assert(C2Segment(123u, 456u).intersect(C2Segment(0u, 123u)) == C2Segment(123u, 0u), ""); in StaticSegmentTest()
163 …static_assert(C2Segment(123u, 456u).intersect(C2Segment(0u, 0u)) == C2Segment(123u, ~122u /* -123 … in StaticSegmentTest()
171 …static_assert(C2Segment(123u, 456u).intersect(C2Segment(150u, ~150u)).normalize() == C2Segment(150… in StaticSegmentTest()
[all …]
/frameworks/native/libs/ui/include_vndk/ui/
DRegion.h82 const Region intersect(const Rect& rhs) const;
88 const Region intersect(const Region& rhs) const;
104 const Region intersect(const Region& rhs, int dx, int dy) const WARN_UNUSED;
195 return intersect(rhs);
DFloatRect.h33 FloatRect intersect(const FloatRect& other) const { in intersect() function
/frameworks/native/include/ui/
DRegion.h82 const Region intersect(const Rect& rhs) const;
88 const Region intersect(const Region& rhs) const;
104 const Region intersect(const Region& rhs, int dx, int dy) const WARN_UNUSED;
195 return intersect(rhs);
DFloatRect.h33 FloatRect intersect(const FloatRect& other) const { in intersect() function
/frameworks/native/libs/ui/include/ui/
DRegion.h82 const Region intersect(const Rect& rhs) const;
88 const Region intersect(const Region& rhs) const;
104 const Region intersect(const Region& rhs, int dx, int dy) const WARN_UNUSED;
195 return intersect(rhs);
DFloatRect.h33 FloatRect intersect(const FloatRect& other) const { in intersect() function
/frameworks/base/libs/WindowManager/Jetpack/src/androidx/window/util/
DExtensionHelper.java55 inOutRect.intersect(0, 0, displayWidth, displayHeight); in rotateRectToDisplayRotation()
99 inOutRect.intersect(windowRect); in transformToWindowSpaceRect()
/frameworks/minikin/tests/unittest/
DFontCollectionTest.cpp304 FontCollection::FamilyMatchResult::intersect(Builder().add(1).add(2).add(3).build(), in TEST()
308 FontCollection::FamilyMatchResult::intersect(Builder().add(1).add(2).add(3).build(), in TEST()
312 FontCollection::FamilyMatchResult::intersect(Builder().add(2).add(4).add(6).build(), in TEST()
316 FontCollection::FamilyMatchResult::intersect(Builder().add(1).add(2).add(3).build(), in TEST()
/frameworks/base/core/java/com/android/internal/view/
DRecyclerViewCaptureHelper.java108 if (!requestedContainerBounds.intersect(recyclerLocalVisible)) { in onScrollRequested()
157 } else if (frame.intersect(targetRect) && (frame.height() > preferredDistance)) { in findChildNearestTarget()
DListViewCaptureHelper.java109 if (requestedContainerBounds.intersect(recyclerLocalVisible)) { in onScrollRequested()
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
DAccessibilityNodeInfoHelper.java49 if (nodeRect.intersect(displayRect)) { in getVisibleBoundsInScreen()
/frameworks/base/core/java/android/util/
DRange.java205 public Range<T> intersect(Range<T> range) { in intersect() method in Range
237 public Range<T> intersect(T lower, T upper) { in intersect() method in Range
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/
DFakeSession.java145 if (target.intersect(page) && target.intersect(visible)) { in requestTile()
/frameworks/native/services/surfaceflinger/CompositionEngine/src/
DOutputLayer.cpp87 activeCropFloat = activeCropFloat.intersect(viewport.toFloatRect()); in calculateInitialCrop()
98 if (!activeCrop.intersect(layerState.geomBufferSize, &activeCrop)) { in calculateInitialCrop()
195 if (!activeCrop.intersect(outputState.layerStackSpace.content, &activeCrop)) { in calculateOutputDisplayFrame()
205 if (!activeCrop.intersect(bufferSize, &activeCrop)) { in calculateOutputDisplayFrame()
231 if (!frame.intersect(outputState.layerStackSpace.content, &frame)) { in calculateOutputDisplayFrame()
631 frame.intersect(outputState.layerStackSpace.content, &frame); in writeCursorPositionToHWC()
/frameworks/base/graphics/java/android/graphics/
DRectF.java350 public boolean intersect(float left, float top, float right, float bottom) { in intersect() method in RectF
381 public boolean intersect(@NonNull RectF r) { in intersect() method in RectF
382 return intersect(r.left, r.top, r.right, r.bottom); in intersect()
DRect.java532 public boolean intersect(int left, int top, int right, int bottom) { in intersect() method in Rect
555 public boolean intersect(@NonNull Rect r) { in intersect() method in Rect
556 return intersect(r.left, r.top, r.right, r.bottom); in intersect()
/frameworks/native/services/surfaceflinger/tests/utils/
DTransactionUtils.h54 if (!r.intersect(rect, &r)) { in fillANativeWindowBufferColor()
78 if (!r.intersect(rect, &r)) { in fillGraphicBufferColor()
/frameworks/base/core/java/android/view/
DScrollCaptureTarget.java110 if (!mScrollBounds.intersect(0, 0, in setScrollBounds()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/sizecompatui/
DSizeCompatUILayout.java273 stableBounds.intersect(taskBounds); in updateButtonSurfacePosition()
295 stableBounds.intersect(taskBounds); in updateHintSurfacePosition()
/frameworks/av/media/codec2/core/include/
DC2Buffer.h319 inline constexpr C2Segment intersect(const C2Segment &other) const { in intersect() function
450 inline constexpr C2LinearRange intersect(size_t offset, size_t size) const { in intersect() function
1561 inline constexpr C2Rect intersect(const C2Rect &other) const { in intersect() function
1765 mCrop(parent == nullptr ? C2Rect() : ((C2Rect)*parent).intersect(crop).normalize()) { } in _C2PlanarSectionAspect()
1769 mCrop(parent == nullptr ? C2Rect() : parent->crop().intersect(crop).normalize()) { } in _C2PlanarSectionAspect()
1830 inline constexpr C2PlanarSection intersect(const C2Rect &crop) const { in intersect() function

123