Home
last modified time | relevance | path

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

1234567

/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 …]
DNinePatch.cpp102 SkRegion* region = nullptr; in getTransparentRegion() local
111 if (!region) { in getTransparentRegion()
112 region = new SkRegion(); in getTransparentRegion()
115 region->op(iterDst.round(), SkRegion::kUnion_Op); in getTransparentRegion()
121 return reinterpret_cast<jlong>(region); in getTransparentRegion()
/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/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/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/layoutlib/bridge/src/android/graphics/
DRegion_Delegate.java330 Region_Delegate region = sManager.getDelegate(native_region); in nativeGetBounds() local
331 if (region == null) { in nativeGetBounds()
335 Rectangle bounds = region.mArea.getBounds(); in nativeGetBounds()
350 Region_Delegate region = sManager.getDelegate(native_region); in nativeGetBoundaryPath() local
351 if (region == null) { in nativeGetBoundaryPath()
360 if (region.mArea.isEmpty()) { in nativeGetBoundaryPath()
365 path.setPathIterator(region.mArea.getPathIterator(new AffineTransform())); in nativeGetBoundaryPath()
372 Region_Delegate region = sManager.getDelegate(native_dst); in nativeOp() local
373 if (region == null) { in nativeOp()
377 region.mArea = combineShapes(region.mArea, in nativeOp()
[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() argument
54 inline region(RECT const* _r, size_t _c, TYPE _dx, TYPE _dy) in region() argument
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/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.bp11 name: "shared-file-region-aidl",
33 "shared-file-region-aidl-cpp",
38 "shared-file-region-aidl-cpp",
55 "shared-file-region-aidl-cpp",
58 "shared-file-region-aidl-cpp",
76 "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/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/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/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/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()
/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()
DELFDynObjReader.cpp54 llvm::StringRef region = in isMyFormat() local
57 const char* ELF_hdr = region.begin(); in isMyFormat()
80 llvm::StringRef region = in readHeader() local
82 const char* ELF_hdr = region.begin(); in readHeader()
/frameworks/base/core/java/android/util/apk/
DByteBufferDataSource.java56 ByteBuffer region; in feedIntoDataDigester() local
61 region = mBuf.slice(); in feedIntoDataDigester()
64 md.consume(region); in feedIntoDataDigester()
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/impl/planner/
DLayerState.h117 return [](const Region& region) {
120 region.dump(dump, "");
426 for (const auto region : regions) {
432 region.blurRadius,
433 region.cornerRadiusTL,
434 region.cornerRadiusTR,
435 region.cornerRadiusBL,
436 region.cornerRadiusBR, region.alpha,
437 region.left, region.top, region.right,
438 region.bottom);
[all …]
/frameworks/native/libs/gui/
DLayerState.cpp158 for (auto region : blurRegions) { in write() local
159 SAFE_PARCEL(output.writeUint32, region.blurRadius); in write()
160 SAFE_PARCEL(output.writeFloat, region.cornerRadiusTL); in write()
161 SAFE_PARCEL(output.writeFloat, region.cornerRadiusTR); in write()
162 SAFE_PARCEL(output.writeFloat, region.cornerRadiusBL); in write()
163 SAFE_PARCEL(output.writeFloat, region.cornerRadiusBR); in write()
164 SAFE_PARCEL(output.writeFloat, region.alpha); in write()
165 SAFE_PARCEL(output.writeInt32, region.left); in write()
166 SAFE_PARCEL(output.writeInt32, region.top); in write()
167 SAFE_PARCEL(output.writeInt32, region.right); in write()
[all …]
/frameworks/base/libs/hwui/apex/include/android/graphics/
Dregion.h39 ANDROID_API ARegionIterator* ARegionIterator_acquireIterator(JNIEnv* env, jobject region);
60 RegionIterator(JNIEnv* env, jobject region) in RegionIterator() argument
61 : mIterator(ARegionIterator_acquireIterator(env, region)) {} in RegionIterator()
/frameworks/base/libs/hwui/tests/common/scenes/
DRectGridAnimation.cpp37 SkRegion region; in createContent() local
40 region.op({xOffset, yOffset, xOffset + 1, yOffset + 1}, SkRegion::kUnion_Op); in createContent()
46 canvas.drawRegion(region, paint); in createContent()
/frameworks/base/libs/hwui/apex/
Dandroid_region.cpp32 SkRegion* region = GraphicsJNI::getNativeRegion(env, regionObj); in ARegionIterator_acquireIterator() local
33 return (!region) ? nullptr : SkRegionIter_to_ARegionIter(new SkRegion::Iterator(*region)); in ARegionIterator_acquireIterator()
/frameworks/base/core/java/android/view/
DCutoutSpecification.java349 private void parseSvgPathSpec(Region region, String spec) {
359 computeBoundsRectAndAddToRegion(newPath, region, mTmpRect);
366 Log.d(TAG, "region = " + region);
388 Region region = Region.obtain();
409 parseSvgPathSpec(region, sb.toString());
417 parseSvgPathSpec(region, sb.toString());
424 parseSvgPathSpec(region, sb.toString());
449 parseSvgPathSpec(region, specWithoutDp);
452 parseSvgPathSpec(region, sb.toString());
455 region.recycle();

1234567