Home
last modified time | relevance | path

Searched refs:region (Results 1 – 25 of 245) sorted by relevance

12345678910

/frameworks/base/libs/hwui/jni/
DRegion.cpp37 SkRegion* region = reinterpret_cast<SkRegion*>(regionHandle); in GetSkRegion() local
38 SkASSERT(region != NULL); in GetSkRegion()
39 return region; in GetSkRegion()
47 SkRegion* region = reinterpret_cast<SkRegion*>(regionHandle); in Region_destructor() local
48 SkASSERT(region); in Region_destructor()
49 delete region; in Region_destructor()
77 SkRegion* region = reinterpret_cast<SkRegion*>(regionHandle); in Region_getBounds() local
78 GraphicsJNI::irect_to_jrect(region->getBounds(), env, rectBounds); in Region_getBounds()
79 bool result = !region->isEmpty(); in Region_getBounds()
84 const SkRegion* region = reinterpret_cast<SkRegion*>(regionHandle); in Region_getBoundaryPath() local
[all …]
/frameworks/native/libs/ui/include/ui/
DBlurRegion.h70 size_t operator()(const android::BlurRegion& region) const {
71 return android::hashCombine(region.blurRadius, region.cornerRadiusTL, region.cornerRadiusTR,
72 region.cornerRadiusBL, region.cornerRadiusBR, region.alpha,
73 region.left, region.top, region.right, region.bottom);
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/windowdecor/
DDragResizeWindowGeometryTests.java112 Region region = new Region(); in testRegionUnionContainsEdges() local
113 GEOMETRY.union(region); in testRegionUnionContainsEdges()
114 assertThat(region.isComplex()).isTrue(); in testRegionUnionContainsEdges()
116 assertThat(region.contains(TASK_SIZE.getWidth() / 2, TASK_SIZE.getHeight() / 2)).isFalse(); in testRegionUnionContainsEdges()
118 verifyVerticalEdge(region, LEFT_EDGE_POINT); in testRegionUnionContainsEdges()
119 verifyHorizontalEdge(region, TOP_EDGE_POINT); in testRegionUnionContainsEdges()
120 verifyVerticalEdge(region, RIGHT_EDGE_POINT); in testRegionUnionContainsEdges()
121 verifyHorizontalEdge(region, BOTTOM_EDGE_POINT); in testRegionUnionContainsEdges()
124 private static void verifyHorizontalEdge(@NonNull Region region, @NonNull Point point) { in verifyHorizontalEdge() argument
125 assertThat(region.contains(point.x, point.y)).isTrue(); in verifyHorizontalEdge()
[all …]
/frameworks/base/tests/FlickerTests/ActivityEmbedding/src/com/android/server/wm/flicker/activityembedding/layoutchange/
DHorizontalSplitChangeRatioTest.kt117 .that(topLayerRegion.region.bounds.height()) in secondaryActivityAdjustsHeightRuntime()
118 .isEqual(bottomLayerRegion.region.bounds.height()) in secondaryActivityAdjustsHeightRuntime()
120 .that(topLayerRegion.region.bounds.width()) in secondaryActivityAdjustsHeightRuntime()
121 .isEqual(bottomLayerRegion.region.bounds.width()) in secondaryActivityAdjustsHeightRuntime()
122 topLayerRegion.notOverlaps(bottomLayerRegion.region) in secondaryActivityAdjustsHeightRuntime()
124 topLayerRegion.plus(bottomLayerRegion.region).coversExactly(startDisplayBounds) in secondaryActivityAdjustsHeightRuntime()
135 .that(topLayerRegion.region.bounds.height()) in secondaryActivityAdjustsHeightRuntime()
136 .isLower(bottomLayerRegion.region.bounds.height()) in secondaryActivityAdjustsHeightRuntime()
139 topLayerRegion.region.bounds.height() / 0.3f - in secondaryActivityAdjustsHeightRuntime()
140 bottomLayerRegion.region.bounds.height() / 0.7f in secondaryActivityAdjustsHeightRuntime()
[all …]
/frameworks/base/tests/FlickerTests/ActivityEmbedding/src/com/android/server/wm/flicker/activityembedding/rotation/
DRotateSplitNoChangeTest.kt88 .that(leftLayerRegion.region.bounds.height()) in <lambda>()
89 .isEqual(rightLayerRegion.region.bounds.height()) in <lambda>()
91 .that(leftLayerRegion.region.bounds.width()) in <lambda>()
92 .isEqual(rightLayerRegion.region.bounds.width()) in <lambda>()
93 leftLayerRegion.notOverlaps(rightLayerRegion.region) in <lambda>()
95 leftLayerRegion.plus(rightLayerRegion.region).coversExactly(display.layerStackSpace) in <lambda>()
111 .that(leftLayerRegion.region.bounds.height()) in <lambda>()
112 .isEqual(rightLayerRegion.region.bounds.height()) in <lambda>()
114 .that(leftLayerRegion.region.bounds.width()) in <lambda>()
115 .isEqual(rightLayerRegion.region.bounds.width()) in <lambda>()
[all …]
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
DShaderProgram.java171 public void setSourceRegion(Quad region) { in setSourceRegion() argument
172 setSourceRegion(region.p0.x, region.p0.y, in setSourceRegion()
173 region.p1.x, region.p1.y, in setSourceRegion()
174 region.p2.x, region.p2.y, in setSourceRegion()
175 region.p3.x, region.p3.y); in setSourceRegion()
178 public void setTargetRegion(Quad region) { in setTargetRegion() argument
179 setTargetRegion(region.p0.x, region.p0.y, in setTargetRegion()
180 region.p1.x, region.p1.y, in setTargetRegion()
181 region.p2.x, region.p2.y, in setTargetRegion()
182 region.p3.x, region.p3.y); in setTargetRegion()
/frameworks/base/tests/FlickerTests/ActivityEmbedding/src/com/android/server/wm/flicker/activityembedding/pip/
DSecondaryActivityEnterPipTest.kt82 .that(leftLayerRegion.region.bounds.height()) in <lambda>()
83 .isEqual(rightLayerRegion.region.bounds.height()) in <lambda>()
85 .that(leftLayerRegion.region.bounds.width()) in <lambda>()
86 .isEqual(rightLayerRegion.region.bounds.width()) in <lambda>()
87 leftLayerRegion.notOverlaps(rightLayerRegion.region) in <lambda>()
88 leftLayerRegion.plus(rightLayerRegion.region).coversExactly(startDisplayBounds) in <lambda>()
139 .that(pipWindowRegion.region.bounds.height()) in <lambda>()
142 .that(pipWindowRegion.region.bounds.width()) in <lambda>()
159 current.screenBounds.isToTheRightBottom(previous.screenBounds.region, 3) in <lambda>()
161 current.screenBounds.overlaps(previous.screenBounds.region) in <lambda>()
[all …]
/frameworks/base/tests/FlickerTests/ActivityEmbedding/src/com/android/server/wm/flicker/activityembedding/open/
DOpenTrampolineActivityTest.kt25 import android.tools.flicker.subject.region.RegionSubject
148 .region, in mainActivityWindowGoesFromFullscreenToSplit()
156 .region, in mainActivityWindowGoesFromFullscreenToSplit()
160 .that(mainActivityRegion.region.bounds.height()) in mainActivityWindowGoesFromFullscreenToSplit()
161 .isEqual(secondaryActivityRegion.region.bounds.height()) in mainActivityWindowGoesFromFullscreenToSplit()
163 .that(mainActivityRegion.region.bounds.width()) in mainActivityWindowGoesFromFullscreenToSplit()
164 .isEqual(secondaryActivityRegion.region.bounds.width()) in mainActivityWindowGoesFromFullscreenToSplit()
166 .plus(secondaryActivityRegion.region) in mainActivityWindowGoesFromFullscreenToSplit()
195 .that(leftLayerRegion.region.bounds.height()) in mainActivityLayerGoesFromFullscreenToSplit()
196 .isEqual(rightLayerRegion.region.bounds.height()) in mainActivityLayerGoesFromFullscreenToSplit()
[all …]
/frameworks/native/services/surfaceflinger/CompositionEngine/src/
DLayerFECompositionState.cpp83 for (const auto& region : blurRegions) { in dump() local
88 region.blurRadius, region.cornerRadiusTL, region.cornerRadiusTR, in dump()
89 region.cornerRadiusBL, region.cornerRadiusBR, region.alpha, in dump()
90 region.left, region.top, region.right, region.bottom); in dump()
/frameworks/base/tests/FlickerTests/ActivityEmbedding/src/com/android/server/wm/flicker/activityembedding/rtl/
DRTLStartSecondaryWithPlaceholderTest.kt130 mainActivityRegion.notOverlaps(secondaryActivityRegion.region) in assertWMRTLBeforeTransition()
133 .that(mainActivityRegion.region.bounds.left) in assertWMRTLBeforeTransition()
134 .isEqual(secondaryActivityRegion.region.bounds.right) in assertWMRTLBeforeTransition()
147 mainActivityRegion.notOverlaps(secondaryActivityRegion.region) in assertLayerRTLBeforeTransition()
150 .that(mainActivityRegion.region.bounds.left) in assertLayerRTLBeforeTransition()
151 .isEqual(secondaryActivityRegion.region.bounds.right) in assertLayerRTLBeforeTransition()
167 mainActivityRegion.notOverlaps(secondaryActivityRegion.region) in assertWMRTLAfterTransition()
170 .that(mainActivityRegion.region.bounds.left) in assertWMRTLAfterTransition()
171 .isEqual(secondaryActivityRegion.region.bounds.right) in assertWMRTLAfterTransition()
187 mainActivityRegion.notOverlaps(secondaryActivityRegion.region) in assertLayerRTLAfterTransition()
[all …]
/frameworks/base/libs/androidfw/tests/
DLocale_test.cpp54 const char* region) { in TestLanguageRegion() argument
76 if (memcmp(lv.region, region, std::min(strlen(region), sizeof(lv.region))) != in TestLanguageRegion()
79 << "expected " << region << " but got " in TestLanguageRegion()
80 << std::string(lv.region, sizeof(lv.region)) << "."; in TestLanguageRegion()
/frameworks/native/libs/ui/include_private/ui/
DRegionHelper.h46 struct region { struct
51 inline region(const region& rhs) in region() argument
53 inline region(RECT const* _r, size_t _c) : rects(_r), count(_c), dx(), dy() {} in region() function
54 inline region(RECT const* _r, size_t _c, TYPE _dx, TYPE _dy) in region() function
66 inline region_operator(uint32_t op, const region& lhs, const region& rhs) in region_operator()
147 region lhs;
148 region rhs;
151 inline Spanner(const region& _lhs, const region& _rhs) : lhs(_lhs), rhs(_rhs) { in Spanner()
178 static inline void advance(region& reg, TYPE& aTop, TYPE& aBottom) { in advance()
201 region lhs;
[all …]
/frameworks/base/tests/FlickerTests/ActivityEmbedding/src/com/android/server/wm/flicker/activityembedding/splitscreen/
DEnterSystemSplitTest.kt136 .plus(rightAELayerRegion.region) in secondaryAppWindowBecomesVisible()
137 .plus(secondaryAppLayerRegion.region) in secondaryAppWindowBecomesVisible()
138 .plus(systemDivider.region) in secondaryAppWindowBecomesVisible()
141 .that(leftAELayerRegion.region.bounds.height()) in secondaryAppWindowBecomesVisible()
142 .isEqual(rightAELayerRegion.region.bounds.height()) in secondaryAppWindowBecomesVisible()
146 leftAELayerRegion.region.bounds.width() - in secondaryAppWindowBecomesVisible()
147 rightAELayerRegion.region.bounds.width() in secondaryAppWindowBecomesVisible()
164 .that(leftAEWindowRegion.region.bounds.height()) in activityEmbeddingSplitWindowsAreEven()
165 .isEqual(rightAEWindowRegion.region.bounds.height()) in activityEmbeddingSplitWindowsAreEven()
169 leftAEWindowRegion.region.bounds.width() - in activityEmbeddingSplitWindowsAreEven()
[all …]
/frameworks/base/graphics/java/android/graphics/
DRegion.java67 public Region(@NonNull Region region) { in Region() argument
69 nativeSetRegion(mNativeRegion, region.mNativeRegion); in Region()
94 public boolean set(@NonNull Region region) { in set() argument
95 nativeSetRegion(mNativeRegion, region.mNativeRegion); in set()
284 public boolean op(@NonNull Region region, @NonNull Op op) { in op() argument
285 return op(this, region, op); in op()
292 public boolean op(@NonNull Rect rect, @NonNull Region region, @NonNull Op op) { in op() argument
293 return nativeOp(mNativeRegion, rect, region.mNativeRegion, in op()
318 Region region = sPool.acquire(); in obtain() local
319 return (region != null) ? region : new Region(); in obtain()
[all …]
/frameworks/av/media/libshmem/
DAndroid.bp12 name: "shared-file-region-aidl",
34 "shared-file-region-aidl-cpp",
39 "shared-file-region-aidl-cpp",
56 "shared-file-region-aidl-cpp",
59 "shared-file-region-aidl-cpp",
77 "shared-file-region-aidl-cpp",
/frameworks/base/libs/androidfw/
DLocaleData.cpp31 inline uint32_t packLocale(const char* language, const char* region) { in packLocale() argument
33 (((uint8_t) region[0]) << 8u) | ((uint8_t) region[1]); in packLocale()
201 void localeDataComputeScript(char out[4], const char* language, const char* region) { in localeDataComputeScript() argument
206 uint32_t lookup_key = packLocale(language, region); in localeDataComputeScript()
210 if (region[0] != '\0') { in localeDataComputeScript()
234 bool localeDataIsCloseToUsEnglish(const char* region) { in localeDataIsCloseToUsEnglish() argument
235 const uint32_t locale = packLocale(ENGLISH_CHARS, region); in localeDataIsCloseToUsEnglish()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/
DDragResizeWindowGeometry.java121 void union(@NonNull Region region) { in union() argument
126 mDebugTaskEdges.union(region); in union()
128 mTaskEdges.union(region); in union()
134 mLargeTaskCorners.union(region); in union()
137 mFineTaskCorners.union(region); in union()
380 void union(Region region) { in union() argument
381 region.union(mLeftTopCornerBounds); in union()
382 region.union(mRightTopCornerBounds); in union()
383 region.union(mLeftBottomCornerBounds); in union()
384 region.union(mRightBottomCornerBounds); in union()
[all …]
/frameworks/compile/mclinker/unittests/
DFragmentRefTest.cpp50 llvm::StringRef region = area->request(0, 4096); variable
51 RegionFragment* frag = new RegionFragment(region);
54 ASSERT_EQ('H', region.data()[0]);
55 ASSERT_TRUE(4096 == region.size());
DMCRegionFragmentTest.cpp46 MemoryRegion* region = area->request(0, 4096); in TEST_F() local
47 MCRegionFragment* frag = new MCRegionFragment(*region); in TEST_F()
61 MemoryRegion* region = area->request(0, 4096); in TEST_F() local
62 llvm::MCFragment* frag = new MCRegionFragment(*region); in TEST_F()
/frameworks/av/services/camera/libcameraservice/device3/
DZoomRatioMapper.cpp353 for (auto region : kMeteringRegionsToCorrect) { in separateZoomFromCropLocked() local
354 entry = metadata->find(region); in separateZoomFromCropLocked()
391 for (auto region : kMeteringRegionsToCorrect) { in combineZoomAndCropLocked() local
392 entry = metadata->find(region); in combineZoomAndCropLocked()
458 void ZoomRatioMapper::scaleRegion(int32_t* region, float scaleRatio, in scaleRegion() argument
461 scaleCoordinates(region, 1, scaleRatio, true /*clamp*/, arrayWidth, in scaleRegion()
465 region[2] -= 1; in scaleRegion()
466 region[3] -= 1; in scaleRegion()
467 scaleCoordinates(region + 2, 1, scaleRatio, true /*clamp*/, arrayWidth, in scaleRegion()
469 region[2] += 1; in scaleRegion()
[all …]
/frameworks/base/services/core/java/com/android/server/wm/utils/
DRegionUtils.java56 public static void forEachRect(Region region, Consumer<Rect> rectConsumer) { in forEachRect() argument
57 final RegionIterator it = new RegionIterator(region); in forEachRect()
72 public static void forEachRectReverse(Region region, Consumer<Rect> rectConsumer) { in forEachRectReverse() argument
73 final RegionIterator it = new RegionIterator(region); in forEachRectReverse()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/desktopmode/
DDesktopModeVisualIndicator.java140 final Region region = new Region(); in calculateFullscreenRegion() local
149 region.union(new Rect((layout.width() / 2) - (fromFreeformWidth / 2), in calculateFullscreenRegion()
157 region.union(new Rect(0, in calculateFullscreenRegion()
162 return region; in calculateFullscreenRegion()
170 final Region region = new Region(); in calculateToDesktopRegion() local
173 region.union(new Rect(0, 0, layout.width(), layout.height())); in calculateToDesktopRegion()
174 region.op(splitLeftRegion, Region.Op.DIFFERENCE); in calculateToDesktopRegion()
175 region.op(splitRightRegion, Region.Op.DIFFERENCE); in calculateToDesktopRegion()
176 region.op(toFullscreenRegion, Region.Op.DIFFERENCE); in calculateToDesktopRegion()
178 return region; in calculateToDesktopRegion()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/ui/
DPerimeterPathGuide.java146 for (RegionAttributes region : mRegions) { in getPerimeterPx()
147 total += region.absoluteLength; in getPerimeterPx()
163 public float getCoord(Region region, float progress) { in getCoord() argument
164 RegionAttributes regionAttributes = mRegions[region.ordinal()]; in getCoord()
172 public float getRegionCenter(Region region) { in getRegionCenter() argument
173 return getCoord(region, 0.5f); in getRegionCenter()
179 public float getRegionWidth(Region region) { in getRegionWidth() argument
180 return mRegions[region.ordinal()].normalizedLength; in getRegionWidth()
382 for (Region region : Region.values()) { in getRegionForPoint()
383 if (coord <= mRegions[region.ordinal()].endCoordinate) { in getRegionForPoint()
[all …]
/frameworks/compile/mclinker/lib/LD/
DELFObjectReader.cpp71 llvm::StringRef region = in isMyFormat() local
74 const char* ELF_hdr = region.begin(); in isMyFormat()
100 llvm::StringRef region = in readHeader() local
102 const char* ELF_hdr = region.begin(); in readHeader()
137 llvm::StringRef region = pInput.memArea()->request( in readSections() local
140 reinterpret_cast<const llvm::ELF::Elf32_Word*>(region.begin()); in readSections()
142 size_t size = region.size() / sizeof(llvm::ELF::Elf32_Word); in readSections()
314 llvm::StringRef region = mem->request(offset, size); in readRelocations() local
319 if (!m_pELFReader->readRela(pInput, **rs, region)) { in readRelocations()
325 if (!m_pELFReader->readRel(pInput, **rs, region)) { in readRelocations()
/frameworks/base/core/java/com/android/internal/graphics/palette/
DPalette.java329 Rect region = mRegion; in generate() local
330 if (bitmap != mBitmap && region != null) { in generate()
334 region.left = (int) Math.floor(region.left * scale); in generate()
335 region.top = (int) Math.floor(region.top * scale); in generate()
336 region.right = Math.min((int) Math.ceil(region.right * scale), in generate()
338 region.bottom = Math.min((int) Math.ceil(region.bottom * scale), in generate()

12345678910