Home
last modified time | relevance | path

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

12345

/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 …]
DBitmapRegionDecoder.cpp212 SkIRect region; in nativeDecodeRegion() local
213 region.fLeft = start_x; in nativeDecodeRegion()
214 region.fTop = start_y; in nativeDecodeRegion()
215 region.fRight = start_x + width; in nativeDecodeRegion()
216 region.fBottom = start_y + height; in nativeDecodeRegion()
229 if (!brd->decodeRegion(bitmap, region, prefColorType, sampleSize)) { in nativeDecodeRegion()
DNinePatch.cpp169 SkRegion* region = NULL; in getTransparentRegion() local
170 NinePatch_Draw(NULL, bounds, *bitmap, *chunk, NULL, &region); in getTransparentRegion()
172 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() function
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/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 …]
DRegionIterator.java28 public RegionIterator(Region region) { in RegionIterator() argument
29 mNativeIter = nativeConstructor(region.ni()); in RegionIterator()
/frameworks/compile/mclinker/unittests/
DFragmentRefTest.cpp52 llvm::StringRef region = area->request(0, 4096); variable
53 RegionFragment *frag = new RegionFragment(region);
56 ASSERT_EQ('H', region.data()[0]);
57 ASSERT_TRUE(4096 == region.size());
DMCRegionFragmentTest.cpp51 MemoryRegion* region = area->request(0, 4096); in TEST_F() local
52 MCRegionFragment *frag = new MCRegionFragment(*region); in TEST_F()
66 MemoryRegion* region = area->request(0, 4096); in TEST_F() local
67 llvm::MCFragment *frag = new MCRegionFragment(*region); in TEST_F()
DELFReaderTest.cpp71 llvm::StringRef region = m_pInput->memArea()->request(m_pInput->fileOffset(), in SetUp() local
73 const char* ELF_hdr = region.begin(); in SetUp()
134 llvm::StringRef region = mem->request(offset, size); in TEST_F() local
138 ASSERT_TRUE(m_pELFReader->readRela(*m_pInput, **rs, region)); in TEST_F()
/frameworks/compile/mclinker/lib/LD/
DELFObjectReader.cpp72 llvm::StringRef region = pInput.memArea()->request(pInput.fileOffset(), in isMyFormat() local
75 const char* ELF_hdr = region.begin(); in isMyFormat()
102 llvm::StringRef region = pInput.memArea()->request(pInput.fileOffset(), in readHeader() local
104 const char* ELF_hdr = region.begin(); in readHeader()
141 llvm::StringRef region = pInput.memArea()->request( in readSections() local
144 reinterpret_cast<const llvm::ELF::Elf32_Word*>(region.begin()); in readSections()
146 size_t size = region.size() / sizeof(llvm::ELF::Elf32_Word); in readSections()
324 llvm::StringRef region = mem->request(offset, size); in readRelocations() local
328 if (!m_pELFReader->readRela(pInput, **rs, region)) { in readRelocations()
334 if (!m_pELFReader->readRel(pInput, **rs, region)) { in readRelocations()
DELFDynObjReader.cpp57 llvm::StringRef region = pInput.memArea()->request(pInput.fileOffset(), in isMyFormat() local
60 const char* ELF_hdr = region.begin(); in isMyFormat()
84 llvm::StringRef region = pInput.memArea()->request(pInput.fileOffset(), in readHeader() local
86 const char* ELF_hdr = region.begin(); in readHeader()
DELFObjectWriter.cpp57 MemoryRegion region; in writeSection() local
71 region = pOutput.request(section->offset(), section->size()); in writeSection()
72 if (region.size() == 0) { in writeSection()
102 emitSectionData(*section, region); in writeSection()
105 emitEhFrame(pModule, *section->getEhFrame(), region); in writeSection()
111 emitRelocation(m_Config, *section, region); in writeSection()
114 target().emitSectionData(*section, region); in writeSection()
217 MemoryRegion region = pOutput.request(0, sizeof(ElfXX_Ehdr)); in writeELFHeader() local
218 ElfXX_Ehdr* header = (ElfXX_Ehdr*)region.begin(); in writeELFHeader()
314 MemoryRegion region = pOutput.request(getLastStartOffset<SIZE>(pModule), in emitSectionHeader() local
[all …]
/frameworks/base/libs/hwui/
DLayerRenderer.cpp59 mLayer->region.clear(); in prepareDirty()
64 mLayer->region.subtractSelf(r); in prepareDirty()
124 return &mLayer->region; in getRegion()
131 if (mLayer->region.isRect() || mLayer->region.isEmpty()) { in generateMesh()
146 Region safeRegion = Region::createTJunctionFreeRegion(mLayer->region); in generateMesh()
228 layer->region.clear(); in createRenderLayer()
283 layer->region.clear(); in createTextureLayer()
299 layer->region.set(width, height); in updateTextureLayer()
327 layer->region.clear(); in destroyLayer()
DSnapshot.cpp41 region = NULL; in Snapshot()
81 region = s->region; in Snapshot()
83 region = NULL; in Snapshot()
118 bool Snapshot::clipRegionTransformed(const SkRegion& region, SkRegion::Op op) { in clipRegionTransformed() argument
120 clipRegion->op(region, op); in clipRegionTransformed()
DDisplayListRenderer.h96 virtual bool clipRegion(const SkRegion* region, SkRegion::Op op);
255 inline const SkRegion* refRegion(const SkRegion* region) { in refRegion() argument
256 if (!region) { in refRegion()
257 return region; in refRegion()
260 const SkRegion* regionCopy = mRegionMap.valueFor(region); in refRegion()
263 regionCopy = new SkRegion(*region); in refRegion()
265 mRegionMap.replaceValueFor(region, regionCopy); in refRegion()
DStatefulBaseRenderer.cpp184 SkRegion region; in clipPath() local
185 region.setPath(transformed, clip); in clipPath()
188 mDirtyClip |= mSnapshot->clipRegionTransformed(region, op); in clipPath()
192 bool StatefulBaseRenderer::clipRegion(const SkRegion* region, SkRegion::Op op) { in clipRegion() argument
193 mDirtyClip |= mSnapshot->clipRegionTransformed(*region, op); in clipRegion()
DSnapshot.h129 bool clipRegionTransformed(const SkRegion& region, SkRegion::Op op);
256 Region* region; variable
/frameworks/base/media/java/android/media/
DWebVttRenderer.java714 TextTrackRegion region = new TextTrackRegion();
724 region.mId = value;
727 region.mWidth = parseFloatPercentage(value);
737 region.mLines = Integer.parseInt(value);
738 assert(region.mLines >= 0); // lines contains only digits
771 region.mAnchorPointX = x;
772 region.mAnchorPointY = y;
774 region.mViewportAnchorPointX = x;
775 region.mViewportAnchorPointY = y;
779 region.mScrollValue =
[all …]
/frameworks/base/media/mca/filterfw/java/android/filterfw/io/
DPatternScanner.java52 matcher.region(mOffset, mInput.length()); in tryEat()
86 matcher.region(mOffset, mInput.length()); in peek()
94 matcher.region(mOffset, mInput.length()); in skip()
/frameworks/compile/mclinker/lib/Script/
DScriptReader.cpp45 llvm::StringRef region = input.memArea()->request(input.fileOffset(), size); in readScript() local
46 std::stringbuf buf(region.data()); in readScript()
/frameworks/native/services/inputflinger/
DInputWindow.cpp30 void InputWindowInfo::addTouchableRegion(const Rect& region) { in addTouchableRegion() argument
31 touchableRegion.orSelf(region); in addTouchableRegion()
/frameworks/base/core/java/android/widget/
DSlidingDrawer.java609 final Rect region = mInvalidate; in moveHandle() local
612 region.set(frame); in moveHandle()
614 region.union(frame.left, frame.top - deltaY, frame.right, frame.bottom - deltaY); in moveHandle()
615 region.union(0, frame.bottom - deltaY, getWidth(), in moveHandle()
618 invalidate(region); in moveHandle()
639 final Rect region = mInvalidate; in moveHandle() local
642 region.set(frame); in moveHandle()
644 region.union(frame.left - deltaX, frame.top, frame.right - deltaX, frame.bottom); in moveHandle()
645 region.union(frame.right - deltaX, 0, in moveHandle()
648 invalidate(region); in moveHandle()
/frameworks/compile/mclinker/lib/Target/
DELFAttribute.cpp58 llvm::StringRef region = region_frag.getRegion(); in merge() local
66 const char *attribute_data = region.begin(); in merge()
79 const char *subsection_data = region.begin() + subsection_offset; in merge()
113 reinterpret_cast<ConstAddress>(region.begin()) + vendor_data_offset; in merge()

12345