Home
last modified time | relevance | path

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

1234

/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.java1719 mBitrateRange = mBitrateRange.intersect(bitRates); in applyLimits()
1763 bitRates = bitRates.intersect( in parseFromInfo()
1991 range = range.intersect( in getSupportedWidthsFor()
1997 range = range.intersect(1, mSmallerDimensionUpperLimit); in getSupportedWidthsFor()
2001 range = range.intersect( in getSupportedWidthsFor()
2035 range = range.intersect( in getSupportedHeightsFor()
2041 range = range.intersect(1, mSmallerDimensionUpperLimit); in getSupportedHeightsFor()
2045 range = range.intersect( in getSupportedHeightsFor()
2862 frameRates = frameRates.intersect(FRAME_RATE_RANGE);
2872 bitRates = bitRates.intersect(BITRATE_RANGE);
[all …]
DImage.java364 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/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_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/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.java78 inOutRect.intersect(0, 0, baseDisplayWidth, baseDisplayHeight); in rotateRectToDisplayRotation()
96 if (!inOutRect.intersect(bounds)) { in transformToWindowSpaceRect()
/frameworks/minikin/tests/unittest/
DFontCollectionTest.cpp319 FontCollection::FamilyMatchResult::intersect(Builder().add(1).add(2).add(3).build(), in TEST()
323 FontCollection::FamilyMatchResult::intersect(Builder().add(1).add(2).add(3).build(), in TEST()
327 FontCollection::FamilyMatchResult::intersect(Builder().add(2).add(4).add(6).build(), in TEST()
331 FontCollection::FamilyMatchResult::intersect(Builder().add(1).add(2).add(3).build(), in TEST()
/frameworks/base/core/java/android/util/
DRange.java207 public Range<T> intersect(Range<T> range) { in intersect() method in Range
239 public Range<T> intersect(T lower, T upper) { in intersect() method in Range
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
DAccessibilityNodeInfoHelper.java49 if (nodeRect.intersect(displayRect)) { in getVisibleBoundsInScreen()
/frameworks/base/core/java/com/android/internal/view/
DRecyclerViewCaptureHelper.java126 if (!requestedContainerBounds.intersect(recyclerLocalVisible)) { in onScrollRequested()
176 } else if (frame.intersect(targetRect) && (frame.height() > preferredDistance)) { in findChildNearestTarget()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/screenshot/scroll/
DFakeSession.java145 if (target.intersect(page) && target.intersect(visible)) { in requestTile()
/frameworks/base/tools/hoststubgen/scripts/
Dbuild-framework-hostside-jars-without-genrules.sh76 …--intersect-stub-jar $SOONG_INT/frameworks/base/api/android_test_stubs_current/android_common/comb…
/frameworks/base/core/java/android/text/method/
DInsertModeTransformationMethod.java349 span -> intersect(getSpanStart(span), getSpanEnd(span), start, end)); in getSpans()
354 && intersect(start, end, mEnd, mEnd + mPlaceholder.length())) { in getSpans()
483 private static boolean intersect(int s1, int e1, int s2, int e2) { in intersect() method in InsertModeTransformationMethod
/frameworks/base/graphics/java/android/graphics/
DRectF.java351 public boolean intersect(float left, float top, float right, float bottom) { in intersect() method in RectF
382 public boolean intersect(@NonNull RectF r) { in intersect() method in RectF
383 return intersect(r.left, r.top, r.right, r.bottom); in intersect()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/shared/model/
DKeyguardBlueprint.kt45 val skipSections = sections.intersect(prevSections).subtract(rebuildSections) in replaceViews()
/frameworks/base/libs/hwui/pipeline/skia/
DBackdropFilterDrawable.cpp46 if (!mImageSubset.intersect(SkRect::MakeWH(backdropImageWidth, backdropImageHeight))) { in prepareToDraw()
/frameworks/native/services/surfaceflinger/tests/utils/
DTransactionUtils.h54 if (!r.intersect(rect, &r)) { in fillANativeWindowBufferColor()
78 if (!r.intersect(rect, &r)) { in fillGraphicBufferColor()
/frameworks/native/services/surfaceflinger/CompositionEngine/src/
DOutputLayer.cpp91 activeCropFloat = activeCropFloat.intersect(viewport.toFloatRect()); in calculateInitialCrop()
102 if (!activeCrop.intersect(layerState.geomBufferSize, &activeCrop)) { in calculateInitialCrop()
197 if (!activeCrop.intersect(outputState.layerStackSpace.getContent(), &activeCrop)) { in calculateOutputDisplayFrame()
207 if (!activeCrop.intersect(bufferSize, &activeCrop)) { in calculateOutputDisplayFrame()
233 if (!frame.intersect(outputState.layerStackSpace.getContent(), &frame)) { in calculateOutputDisplayFrame()
754 frame.intersect(outputState.layerStackSpace.getContent(), &frame); in writeCursorPositionToHWC()
/frameworks/base/core/java/android/view/
DScrollCaptureTarget.java110 if (!mScrollBounds.intersect(0, 0, in setScrollBounds()

1234