Home
last modified time | relevance | path

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

12345

/frameworks/compile/mclinker/unittests/
DMemoryAreaTest.cpp55 MemoryRegion* region = area->request(3, 2); in TEST_F() local
56 ASSERT_EQ('L', region->getBuffer()[0]); in TEST_F()
57 ASSERT_EQ('O', region->getBuffer()[1]); in TEST_F()
58 area->release(region); in TEST_F()
71 MemoryRegion* region = area->request(3, 4); in TEST_F() local
72 region->getBuffer()[0] = 'L'; in TEST_F()
73 region->getBuffer()[1] = 'i'; in TEST_F()
74 region->getBuffer()[2] = 'n'; in TEST_F()
75 region->getBuffer()[3] = 'k'; in TEST_F()
76 area->release(region); in TEST_F()
[all …]
DFragmentRefTest.cpp51 MemoryRegion* region = area->request(0, 4096); variable
52 RegionFragment *frag = new RegionFragment(*region);
55 ASSERT_EQ('H', region->getBuffer()[0]);
56 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.cpp69 MemoryRegion* region = m_pInput->memArea()->request(m_pInput->fileOffset(), in SetUp() local
71 uint8_t* ELF_hdr = region->start(); in SetUp()
73 m_pInput->memArea()->release(region); in SetUp()
137 MemoryRegion* region = mem->request(offset, size); in TEST_F() local
141 ASSERT_TRUE(m_pELFReader->readRela(*m_pInput, **rs, *region)); in TEST_F()
142 mem->release(region); in TEST_F()
/frameworks/base/core/jni/android/graphics/
DRegion.cpp42 static void Region_destructor(JNIEnv* env, jobject, SkRegion* region) { in Region_destructor() argument
43 SkASSERT(region); in Region_destructor()
44 delete region; in Region_destructor()
62 static jboolean Region_getBounds(JNIEnv* env, jobject, SkRegion* region, jobject rectBounds) { in Region_getBounds() argument
63 GraphicsJNI::irect_to_jrect(region->getBounds(), env, rectBounds); in Region_getBounds()
64 return !region->isEmpty(); in Region_getBounds()
67 static jboolean Region_getBoundaryPath(JNIEnv* env, jobject, const SkRegion* region, SkPath* path) { in Region_getBoundaryPath() argument
68 return region->getBoundaryPath(path); in Region_getBoundaryPath()
78 …gion_op1(JNIEnv* env, jobject, SkRegion* dst, jobject rectObject, const SkRegion* region, int op) { in Region_op1() argument
81 return dst->op(ir, *region, (SkRegion::Op)op); in Region_op1()
[all …]
DBitmapRegionDecoder.cpp211 SkIRect region; in nativeDecodeRegion() local
212 region.fLeft = start_x; in nativeDecodeRegion()
213 region.fTop = start_y; in nativeDecodeRegion()
214 region.fRight = start_x + width; in nativeDecodeRegion()
215 region.fBottom = start_y + height; in nativeDecodeRegion()
228 if (!brd->decodeRegion(bitmap, region, prefConfig, sampleSize)) { in nativeDecodeRegion()
/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.java331 Region_Delegate region = sManager.getDelegate(native_region); in nativeGetBounds() local
332 if (region == null) { in nativeGetBounds()
336 Rectangle bounds = region.mArea.getBounds(); in nativeGetBounds()
351 Region_Delegate region = sManager.getDelegate(native_region); in nativeGetBoundaryPath() local
352 if (region == null) { in nativeGetBoundaryPath()
361 if (region.mArea.isEmpty()) { in nativeGetBoundaryPath()
366 path.setPathIterator(region.mArea.getPathIterator(new AffineTransform())); in nativeGetBoundaryPath()
373 Region_Delegate region = sManager.getDelegate(native_dst); in nativeOp() local
374 if (region == null) { in nativeOp()
378 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() function
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() function
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/compile/mclinker/lib/LD/
DELFObjectReader.cpp67 MemoryRegion* region = pInput.memArea()->request(pInput.fileOffset(), in isMyFormat() local
70 uint8_t* ELF_hdr = region->start(); in isMyFormat()
80 pInput.memArea()->release(region); in isMyFormat()
90 MemoryRegion* region = pInput.memArea()->request(pInput.fileOffset(), in readHeader() local
92 uint8_t* ELF_hdr = region->start(); in readHeader()
94 pInput.memArea()->release(region); in readHeader()
130 MemoryRegion* region = pInput.memArea()->request( in readSections() local
133 reinterpret_cast<llvm::ELF::Elf32_Word*>(region->start()); in readSections()
135 size_t size = region->size() / sizeof(llvm::ELF::Elf32_Word); in readSections()
141 pInput.memArea()->release(region); in readSections()
[all …]
DELFDynObjReader.cpp54 MemoryRegion* region = pInput.memArea()->request(pInput.fileOffset(), in isMyFormat() local
57 uint8_t* ELF_hdr = region->start(); in isMyFormat()
67 pInput.memArea()->release(region); in isMyFormat()
77 MemoryRegion* region = pInput.memArea()->request(pInput.fileOffset(), in readHeader() local
79 uint8_t* ELF_hdr = region->start(); in readHeader()
82 pInput.memArea()->release(region); in readHeader()
DELFObjectWriter.cpp55 MemoryRegion* region; in writeSection() local
68 region = pOutput.request(section->offset(), section->size()); in writeSection()
69 if (NULL == region) { in writeSection()
103 emitSectionData(*section, *region); in writeSection()
106 emitRelocation(m_Config, *section, *region); in writeSection()
109 target().emitSectionData(*section, *region); in writeSection()
198 MemoryRegion *region = pOutput.request(0, sizeof(ElfXX_Ehdr)); in writeELFHeader() local
199 ElfXX_Ehdr* header = (ElfXX_Ehdr*)region->start(); in writeELFHeader()
300 MemoryRegion* region = pOutput.request(getLastStartOffset<SIZE>(pModule), in emitSectionHeader() local
302 ElfXX_Shdr* shdr = (ElfXX_Shdr*)region->start(); in emitSectionHeader()
[all …]
DGNUArchiveReader.cpp48 MemoryRegion* region = pInput.memArea()->request(pInput.fileOffset(), in isMyFormat() local
50 const char* str = reinterpret_cast<const char*>(region->getBuffer()); in isMyFormat()
57 pInput.memArea()->release(region); in isMyFormat()
77 MemoryRegion* region = pInput.memArea()->request(pInput.fileOffset(), in isThinArchive() local
79 const char* str = reinterpret_cast<const char*>(region->getBuffer()); in isThinArchive()
86 pInput.memArea()->release(region); in isThinArchive()
/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/base/libs/hwui/
DSnapshot.cpp35 region = NULL; in Snapshot()
69 region = s->region; in Snapshot()
71 region = NULL; in Snapshot()
106 bool Snapshot::clipRegionTransformed(const SkRegion& region, SkRegion::Op op) { in clipRegionTransformed() argument
108 clipRegion->op(region, op); in clipRegionTransformed()
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 createLayer()
285 layer->region.clear(); in createTextureLayer()
300 layer->region.set(width, height); in updateTextureLayer()
327 layer->region.clear(); in destroyLayer()
DDisplayListRenderer.h94 virtual bool clipRegion(SkRegion* region, SkRegion::Op op);
254 inline SkRegion* refRegion(SkRegion* region) { in refRegion() argument
255 if (!region) { in refRegion()
256 return region; in refRegion()
259 SkRegion* regionCopy = mRegionMap.valueFor(region); in refRegion()
262 regionCopy = new SkRegion(*region); in refRegion()
264 mRegionMap.replaceValueFor(region, regionCopy); in refRegion()
DSnapshot.h100 bool clipRegionTransformed(const SkRegion& region, SkRegion::Op op);
218 Region* region; variable
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DPhoneStatusBarView.java134 float region = (w * mSettingsPanelDragzoneFrac); in selectPanelForTouch() local
139 w, mSettingsPanelDragzoneFrac, region, mSettingsPanelDragzoneMin, x, (w-x))); in selectPanelForTouch()
142 if (region < mSettingsPanelDragzoneMin) region = mSettingsPanelDragzoneMin; in selectPanelForTouch()
144 final boolean showSettings = isLayoutRtl ? (x < region) : (w - region < x); in selectPanelForTouch()
/frameworks/base/media/java/android/media/
DWebVttRenderer.java710 TextTrackRegion region = new TextTrackRegion();
720 region.mId = value;
723 region.mWidth = parseFloatPercentage(value);
732 region.mLines = lines;
767 region.mAnchorPointX = x;
768 region.mAnchorPointY = y;
770 region.mViewportAnchorPointX = x;
771 region.mViewportAnchorPointY = y;
775 region.mScrollValue =
782 return region;
[all …]
/frameworks/compile/mclinker/lib/Support/
Draw_mem_ostream.cpp37 MemoryRegion* region = m_MemoryArea.request(m_Position, pSize); in write_impl() local
38 memcpy(region->start(), pPtr, pSize); in write_impl()
/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/base/core/java/android/widget/
DSlidingDrawer.java588 final Rect region = mInvalidate; in moveHandle() local
591 region.set(frame); in moveHandle()
593 region.union(frame.left, frame.top - deltaY, frame.right, frame.bottom - deltaY); in moveHandle()
594 region.union(0, frame.bottom - deltaY, getWidth(), in moveHandle()
597 invalidate(region); in moveHandle()
618 final Rect region = mInvalidate; in moveHandle() local
621 region.set(frame); in moveHandle()
623 region.union(frame.left - deltaX, frame.top, frame.right - deltaX, frame.bottom); in moveHandle()
624 region.union(frame.right - deltaX, 0, in moveHandle()
627 invalidate(region); in moveHandle()
/frameworks/compile/mclinker/lib/Fragment/
DFragmentLinker.cpp145 MemoryRegion* region = pOutput.request(0, pOutput.handler()->size()); in normalSyncRelocationResult() local
147 uint8_t* data = region->getBuffer(); in normalSyncRelocationResult()
195 MemoryRegion* region = pOutput.request(0, pOutput.handler()->size()); in partialSyncRelocationResult() local
197 uint8_t* data = region->getBuffer(); in partialSyncRelocationResult()

12345