Home
last modified time | relevance | path

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

1234567

/frameworks/base/core/jni/android/graphics/
DRegion.cpp38 SkRegion* region = reinterpret_cast<SkRegion*>(regionHandle); in GetSkRegion() local
39 SkASSERT(region != NULL); in GetSkRegion()
40 return region; in GetSkRegion()
48 SkRegion* region = reinterpret_cast<SkRegion*>(regionHandle); in Region_destructor() local
49 SkASSERT(region); in Region_destructor()
50 delete region; in Region_destructor()
78 SkRegion* region = reinterpret_cast<SkRegion*>(regionHandle); in Region_getBounds() local
79 GraphicsJNI::irect_to_jrect(region->getBounds(), env, rectBounds); in Region_getBounds()
80 bool result = !region->isEmpty(); in Region_getBounds()
85 const SkRegion* region = reinterpret_cast<SkRegion*>(regionHandle); in Region_getBoundaryPath() local
[all …]
DNinePatch.cpp101 SkRegion* region = NULL; in getTransparentRegion() local
102 NinePatch::Draw(NULL, bounds, bitmap, *chunk, NULL, &region); in getTransparentRegion()
104 return reinterpret_cast<jlong>(region); in getTransparentRegion()
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
DShaderProgram.java170 public void setSourceRegion(Quad region) { in setSourceRegion() argument
171 setSourceRegion(region.p0.x, region.p0.y, in setSourceRegion()
172 region.p1.x, region.p1.y, in setSourceRegion()
173 region.p2.x, region.p2.y, in setSourceRegion()
174 region.p3.x, region.p3.y); in setSourceRegion()
177 public void setTargetRegion(Quad region) { in setTargetRegion() argument
178 setTargetRegion(region.p0.x, region.p0.y, in setTargetRegion()
179 region.p1.x, region.p1.y, in setTargetRegion()
180 region.p2.x, region.p2.y, in setTargetRegion()
181 region.p3.x, region.p3.y); in setTargetRegion()
/frameworks/base/tools/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/native/include/private/ui/
DRegionHelper.h49 struct region { struct
54 inline region(const region& rhs) in region() argument
56 inline region(RECT const* r, size_t c) in region() argument
58 inline region(RECT const* r, size_t c, TYPE dx, TYPE dy) in region() argument
69 inline region_operator(int op, const region& lhs, const region& rhs) in region_operator()
161 region lhs;
162 region rhs;
165 inline Spanner(const region& lhs, const region& rhs) in Spanner()
198 void advance(region& reg, TYPE& aTop, TYPE& aBottom) { in advance()
222 region lhs;
[all …]
/frameworks/base/tools/aapt2/
DLocale_test.cpp47 const char* region) { in TestLanguageRegion() argument
65 if (memcmp(lv.region, region, std::min(strlen(region), sizeof(lv.region))) != 0) { in TestLanguageRegion()
66 return ::testing::AssertionFailure() << "expected " << region << " but got " in TestLanguageRegion()
67 << std::string(lv.region, sizeof(lv.region)) << "."; in TestLanguageRegion()
DLocale.cpp40 region[i++] = ::toupper(*regionChars); in setRegion()
240 if (region[0]) { in toDirName()
242 dirName += region; in toDirName()
255 config.unpackRegion(region); in initFromResTable()
267 out->packRegion(region); in writeTo()
/frameworks/base/graphics/java/android/graphics/
DRegion.java62 public Region(Region region) { in Region() argument
64 nativeSetRegion(mNativeRegion, region.mNativeRegion); in Region()
89 public boolean set(Region region) { in set() argument
90 nativeSetRegion(mNativeRegion, region.mNativeRegion); in set()
276 public boolean op(Region region, Op op) { in op() argument
277 return op(this, region, op); in op()
284 public boolean op(Rect rect, Region region, Op op) { in op() argument
285 return nativeOp(mNativeRegion, rect, region.mNativeRegion, in op()
308 Region region = sPool.acquire(); in obtain() local
309 return (region != null) ? region : new Region(); in obtain()
[all …]
/frameworks/base/libs/androidfw/
DLocaleData.cpp30 inline uint32_t packLocale(const char* language, const char* region) { in packLocale() argument
32 (((uint8_t) region[0]) << 8u) | ((uint8_t) region[1]); in packLocale()
178 void localeDataComputeScript(char out[4], const char* language, const char* region) { in localeDataComputeScript() argument
183 uint32_t lookup_key = packLocale(language, region); in localeDataComputeScript()
187 if (region[0] != '\0') { in localeDataComputeScript()
211 bool localeDataIsCloseToUsEnglish(const char* region) { in localeDataIsCloseToUsEnglish() argument
212 const uint32_t locale = packLocale(ENGLISH_CHARS, region); in localeDataIsCloseToUsEnglish()
/frameworks/base/libs/hwui/tests/unit/
DBakedOpRendererTests.cpp33 EXPECT_TRUE(layer.region.isEmpty()) << "Repaint full layer should clear region"; in RENDERTHREAD_TEST()
40 EXPECT_TRUE(layer.region.isRect()); in RENDERTHREAD_TEST()
42 EXPECT_EQ(android::Rect(100, 0, 200, 200), layer.region.getBounds()) in RENDERTHREAD_TEST()
50 EXPECT_TRUE(layer.region.isEmpty()) in RENDERTHREAD_TEST()
/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()
DELFObjectWriter.cpp54 MemoryRegion region; in writeSection() local
69 region = pOutput.request(section->offset(), section->size()); in writeSection()
70 if (region.size() == 0) { in writeSection()
97 emitSectionData(*section, region); in writeSection()
100 emitEhFrame(pModule, *section->getEhFrame(), region); in writeSection()
106 emitRelocation(m_Config, *section, region); in writeSection()
109 target().emitSectionData(*section, region); in writeSection()
112 section->getDebugString()->emit(region); in writeSection()
211 MemoryRegion region = pOutput.request(0, sizeof(ElfXX_Ehdr)); in writeELFHeader() local
212 ElfXX_Ehdr* header = reinterpret_cast<ElfXX_Ehdr*>(region.begin()); in writeELFHeader()
[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/base/services/core/
DAndroid.mk28 -D jack.transformations.boost-locked-region-priority=true \
29 …-D jack.transformations.boost-locked-region-priority.classname=com.android.server.am.ActivityManag…
30 …-D jack.transformations.boost-locked-region-priority.request=com.android.server.am.ActivityManager…
31 …-D jack.transformations.boost-locked-region-priority.reset=com.android.server.am.ActivityManagerSe…
/frameworks/base/libs/hwui/
DClipArea.cpp236 void ClipArea::clipRegion(const SkRegion& region, SkRegion::Op op) { in clipRegion() argument
241 mClipRegion.op(region, op); in clipRegion()
254 SkRegion region; in clipPathWithTransform() local
255 regionFromPath(transformed, region); in clipPathWithTransform()
257 mClipRegion.op(region, op); in clipPathWithTransform()
400 return reinterpret_cast<const ClipRegion*>(scb)->region; in getRegion()
476 regionClip->region.op(mClipRect.toSkIRect(), other, SkRegion::kIntersect_Op); in serializeIntersectedClip()
479 regionClip->region.op(mRectangleList.convertToRegion(createViewportRegion()), in serializeIntersectedClip()
483 regionClip->region.op(mClipRegion, other, SkRegion::kIntersect_Op); in serializeIntersectedClip()
487 regionClip->rect.set(regionClip->region.getBounds()); in serializeIntersectedClip()
[all …]
DClipArea.h127 ClipRegion(const SkRegion& region) in ClipRegion()
129 , region(region) {} in ClipRegion()
132 SkRegion region; member
149 void clipRegion(const SkRegion& region, SkRegion::Op op);
DLayerRenderer.cpp58 mLayer->region.clear(); in prepareDirty()
63 mLayer->region.subtractSelf(r); in prepareDirty()
123 return &mLayer->region; in getRegion()
130 if (mLayer->region.isRect() || mLayer->region.isEmpty()) { in generateMesh()
145 Region safeRegion = Region::createTJunctionFreeRegion(mLayer->region); in generateMesh()
227 layer->region.clear(); in createRenderLayer()
280 layer->region.clear(); in createTextureLayer()
296 layer->region.set(width, height); in updateTextureLayer()
324 layer->region.clear(); in destroyLayer()
DSnapshot.cpp40 region = nullptr; in Snapshot()
76 region = s->region; in Snapshot()
78 region = nullptr; in Snapshot()
86 void Snapshot::clipRegionTransformed(const SkRegion& region, SkRegion::Op op) { in clipRegionTransformed() argument
88 mClipArea->clipRegion(region, op); in clipRegionTransformed()
DDisplayListCanvas.h159 virtual bool clipRegion(const SkRegion* region, SkRegion::Op op) override;
184 virtual void drawRegion(const SkRegion& region, const SkPaint& paint) override;
300 inline const SkRegion* refRegion(const SkRegion* region) { in refRegion() argument
301 if (!region) { in refRegion()
302 return region; in refRegion()
305 const SkRegion* cachedRegion = mRegionMap.valueFor(region); in refRegion()
308 std::unique_ptr<const SkRegion> copy(new SkRegion(*region)); in refRegion()
313 mRegionMap.replaceValueFor(region, cachedRegion); in refRegion()
DRecordingCanvas.h136 virtual bool clipRegion(const SkRegion* region, SkRegion::Op op) override;
163 virtual void drawRegion(const SkRegion& region, const SkPaint& paint) override;
270 inline const SkRegion* refRegion(const SkRegion* region) { in refRegion() argument
271 if (!region) { in refRegion()
272 return region; in refRegion()
275 const SkRegion* cachedRegion = mRegionMap.valueFor(region); in refRegion()
278 std::unique_ptr<const SkRegion> copy(new SkRegion(*region)); in refRegion()
283 mRegionMap.replaceValueFor(region, cachedRegion); in refRegion()
/frameworks/base/libs/hwui/tests/common/scenes/
DRectGridAnimation.cpp40 SkRegion region; in createContent() local
43 region.op(xOffset, yOffset, xOffset + 1, yOffset + 1, SkRegion::kUnion_Op); in createContent()
49 canvas.drawRegion(region, paint); in createContent()
/frameworks/base/media/java/android/media/
DWebVttRenderer.java716 TextTrackRegion region = new TextTrackRegion();
726 region.mId = value;
729 region.mWidth = parseFloatPercentage(value);
739 region.mLines = Integer.parseInt(value);
740 assert(region.mLines >= 0); // lines contains only digits
773 region.mAnchorPointX = x;
774 region.mAnchorPointY = y;
776 region.mViewportAnchorPointX = x;
777 region.mViewportAnchorPointY = y;
781 region.mScrollValue =
[all …]
/frameworks/base/include/androidfw/
DLocaleData.h30 void localeDataComputeScript(char out[4], const char* language, const char* region);
32 bool localeDataIsCloseToUsEnglish(const char* region);

1234567