Searched refs:region (Results 1 - 25 of 61) sorted by relevance

123

/frameworks/native/libs/ui/tests/region/
H A DAndroid.mk5 region.cpp
12 LOCAL_MODULE:= test-region
/frameworks/base/graphics/java/android/graphics/
H A DRegionIterator.java22 * Construct an iterator for all of the rectangles in a region. This
23 * effectively makes a private copy of the region, so any subsequent edits
24 * to region will not affect the iterator.
26 * @param region the region that will be iterated
28 public RegionIterator(Region region) { argument
29 mNativeIter = nativeConstructor(region.ni());
33 * Return the next rectangle in the region. If there are no more rectangles
H A DRegion.java47 /** Create an empty region
53 /** Return a copy of the specified region
55 public Region(Region region) { argument
57 nativeSetRegion(mNativeRegion, region.mNativeRegion);
60 /** Return a region set to the specified rectangle
67 /** Return a region set to the specified rectangle
74 /** Set the region to the empty region
80 /** Set the region to the specified region
82 set(Region region) argument
268 op(Region region, Op op) argument
276 op(Rect rect, Region region, Op op) argument
[all...]
/frameworks/base/core/jni/android/graphics/
H A DRegion.cpp42 static void Region_destructor(JNIEnv* env, jobject, SkRegion* region) { argument
43 SkASSERT(region);
44 delete region;
62 static jboolean Region_getBounds(JNIEnv* env, jobject, SkRegion* region, jobject rectBounds) { argument
63 GraphicsJNI::irect_to_jrect(region->getBounds(), env, rectBounds);
64 return !region->isEmpty();
67 static jboolean Region_getBoundaryPath(JNIEnv* env, jobject, const SkRegion* region, SkPath* path) { argument
68 return region->getBoundaryPath(path);
78 static jboolean Region_op1(JNIEnv* env, jobject, SkRegion* dst, jobject rectObject, const SkRegion* region, int op) { argument
81 return dst->op(ir, *region, (SkRegio
90 Region_isEmpty(JNIEnv* env, jobject region) argument
94 Region_isRect(JNIEnv* env, jobject region) argument
98 Region_isComplex(JNIEnv* env, jobject region) argument
102 Region_contains(JNIEnv* env, jobject region, int x, int y) argument
106 Region_quickContains(JNIEnv* env, jobject region, int left, int top, int right, int bottom) argument
110 Region_quickRejectIIII(JNIEnv* env, jobject region, int left, int top, int right, int bottom) argument
116 Region_quickRejectRgn(JNIEnv* env, jobject region, jobject other) argument
120 Region_translate(JNIEnv* env, jobject region, int x, int y, jobject dst) argument
150 Region_scale(JNIEnv* env, jobject region, jfloat scale, jobject dst) argument
158 Region_toString(JNIEnv* env, jobject clazz, SkRegion* region) argument
178 SkRegion* region = new SkRegion; local
185 Region_writeToParcel(JNIEnv* env, jobject clazz, const SkRegion* region, jobject parcel) argument
220 RegionIter_constructor(JNIEnv* env, jobject, const SkRegion* region) argument
[all...]
H A DBitmapRegionDecoder.cpp219 SkIRect region; local
220 region.fLeft = start_x;
221 region.fTop = start_y;
222 region.fRight = start_x + width;
223 region.fBottom = start_y + height;
236 if (!brd->decodeRegion(bitmap, region, prefConfig, sampleSize)) {
H A DNinePatch.cpp163 SkRegion* region = NULL; local
164 NinePatch_Draw(NULL, bounds, *bitmap, *chunk, NULL, &region);
165 return (jint)region;
/frameworks/compile/mclinker/unittests/
H A DMemoryAreaTest.cpp55 MemoryRegion* region = area->request(3, 2); local
56 ASSERT_EQ('L', region->getBuffer()[0]);
57 ASSERT_EQ('O', region->getBuffer()[1]);
58 area->release(region);
71 MemoryRegion* region = area->request(3, 4); local
72 region->getBuffer()[0] = 'L';
73 region->getBuffer()[1] = 'i';
74 region->getBuffer()[2] = 'n';
75 region->getBuffer()[3] = 'k';
76 area->release(region);
99 MemoryRegion* region = area->request(0, 4096); local
115 MemoryRegion* region = area->request(0, 4096) ; local
[all...]
H A DFragmentRefTest.cpp51 MemoryRegion* region = area->request(0, 4096); local
52 RegionFragment *frag = new RegionFragment(*region);
55 ASSERT_EQ('H', region->getBuffer()[0]);
56 ASSERT_EQ(4096, region->size());
H A DMCRegionFragmentTest.cpp51 MemoryRegion* region = area->request(0, 4096); local
52 MCRegionFragment *frag = new MCRegionFragment(*region);
66 MemoryRegion* region = area->request(0, 4096); local
67 llvm::MCFragment *frag = new MCRegionFragment(*region);
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
H A DShaderProgram.java170 public void setSourceRegion(Quad region) { argument
171 setSourceRegion(region.p0.x, region.p0.y,
172 region.p1.x, region.p1.y,
173 region.p2.x, region.p2.y,
174 region.p3.x, region.p3.y);
177 public void setTargetRegion(Quad region) { argument
[all...]
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DRegion_Delegate.java331 Region_Delegate region = sManager.getDelegate(native_region);
332 if (region == null) {
336 Rectangle bounds = region.mArea.getBounds();
351 Region_Delegate region = sManager.getDelegate(native_region);
352 if (region == null) {
361 if (region.mArea.isEmpty()) {
366 path.setPathIterator(region.mArea.getPathIterator(new AffineTransform()));
373 Region_Delegate region = sManager.getDelegate(native_dst);
374 if (region == null) {
378 region
[all...]
/frameworks/compile/mclinker/lib/LD/
H A DELFDynObjReader.cpp47 MemoryRegion* region = pInput.memArea()->request(pInput.fileOffset(), local
50 uint8_t* ELF_hdr = region->start();
60 pInput.memArea()->release(region);
70 MemoryRegion* region = pInput.memArea()->request(pInput.fileOffset(), local
72 uint8_t* ELF_hdr = region->start();
75 pInput.memArea()->release(region);
H A DELFObjectReader.cpp53 MemoryRegion* region = pInput.memArea()->request(pInput.fileOffset(), local
56 uint8_t* ELF_hdr = region->start();
66 pInput.memArea()->release(region);
76 MemoryRegion* region = pInput.memArea()->request(pInput.fileOffset(), local
78 uint8_t* ELF_hdr = region->start();
80 pInput.memArea()->release(region);
117 MemoryRegion* region = pInput.memArea()->request( local
120 reinterpret_cast<llvm::ELF::Elf32_Word*>(region->start());
122 size_t size = region->size() / sizeof(llvm::ELF::Elf32_Word);
127 pInput.memArea()->release(region);
256 MemoryRegion* region = mem->request( local
266 MemoryRegion* region = mem->request( local
[all...]
H A DELFDynObjWriter.cpp56 MemoryRegion* region = NULL; local
57 // request output region
65 region = pOutput.memArea()->request(sect->offset(), sect->size());
66 if (NULL == region) {
67 llvm::report_fatal_error(llvm::Twine("cannot get enough memory region for output section[") +
102 emitSectionData(m_Linker.getLayout(), *sect, *region);
106 emitRelocation(m_Linker.getLayout(), pOutput, *sect, *region);
113 *region);
H A DELFExecWriter.cpp59 MemoryRegion* region = NULL; local
60 // request output region
68 region = pOutput.memArea()->request(sect->offset(), sect->size());
69 if (NULL == region) {
70 llvm::report_fatal_error(llvm::Twine("cannot get enough memory region for output section[") +
105 emitSectionData(m_Linker.getLayout(), *sect, *region);
109 emitRelocation(m_Linker.getLayout(), pOutput, *sect, *region);
116 *region);
H A DEhFrame.cpp38 MemoryRegion* region = pArea.request( local
41 if (NULL == region) {
45 ConstAddress eh_start = region->start();
46 ConstAddress eh_end = region->end();
55 pArea.release(region);
61 pArea.release(region);
131 pArea.release(region);
143 pArea.release(region);
H A DELFWriter.cpp43 MemoryRegion *region = pOutput.memArea()->request(0, local
45 Elf32_Ehdr* header = (Elf32_Ehdr*)region->start();
94 MemoryRegion *region = pOutput.memArea()->request(0, local
96 Elf64_Ehdr* header = (Elf64_Ehdr*)region->start();
191 MemoryRegion* region = pOutput.memArea()->request( local
194 Elf32_Shdr* shdr = (Elf32_Shdr*)region->start();
224 MemoryRegion* region = pOutput.memArea()->request( local
227 Elf64_Shdr* shdr = (Elf64_Shdr*)region->start();
265 MemoryRegion *region = pOutput.memArea()->request(start_offset, local
268 Elf32_Phdr* phdr = (Elf32_Phdr*)region
297 MemoryRegion *region = pOutput.memArea()->request(start_offset, local
341 MemoryRegion* region = pOutput.memArea()->request(shstrtab.offset(), local
383 MemoryRegion* region = pOutput.memArea()->request(shstrtab.offset(), local
[all...]
H A DGNUArchiveReader.cpp49 MemoryRegion* region = pInput.memArea()->request(pInput.fileOffset(), local
51 const char* str = reinterpret_cast<const char*>(region->getBuffer());
58 pInput.memArea()->release(region);
78 MemoryRegion* region = pInput.memArea()->request(pInput.fileOffset(), local
80 const char* str = reinterpret_cast<const char*>(region->getBuffer());
87 pInput.memArea()->release(region);
/frameworks/native/include/private/ui/
H A DRegionHelper.h49 struct region { struct in class:android::region_operator
54 inline region(const region& rhs) function in struct:android::region_operator::region
56 inline region(RECT const* r, size_t c) function in struct:android::region_operator::region
58 inline region(RECT const* r, size_t c, TYPE dx, TYPE dy) function in struct:android::region_operator::region
69 inline region_operator(int op, const region& lhs, const region& rhs)
161 region lhs;
162 region rhs;
165 inline Spanner(const region
[all...]
/frameworks/base/media/mca/filterfw/java/android/filterfw/io/
H A DPatternScanner.java52 matcher.region(mOffset, mInput.length());
86 matcher.region(mOffset, mInput.length());
94 matcher.region(mOffset, mInput.length());
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DPhoneStatusBarView.java123 float region = (w * mSettingsPanelDragzoneFrac);
127 "w=%.1f frac=%.3f region=%.1f min=%.1f x=%.1f w-x=%.1f",
128 w, mSettingsPanelDragzoneFrac, region, mSettingsPanelDragzoneMin, x, (w-x)));
131 if (region < mSettingsPanelDragzoneMin) region = mSettingsPanelDragzoneMin;
133 return (w - x < region) ? mSettingsPanel : mNotificationPanel;
/frameworks/base/libs/hwui/
H A DSnapshot.cpp33 region = NULL;
73 region = s->region;
75 region = NULL;
H A DSnapshot.h55 * Indicates that the clip region was modified. When this
198 * Current clip region. The clip is stored in canvas-space coordinates,
201 * This is a reference to a region owned by this snapshot or another
209 * The ancestor layer's dirty region.
211 * This is a reference to a region owned by a layer. This pointer must
214 Region* region; member in class:android::uirenderer::Snapshot
H A DLayerRenderer.cpp58 mLayer->region.clear();
63 mLayer->region.subtractSelf(r);
103 // Dirty region tracking
114 return &mLayer->region;
125 if (mLayer->region.isRect() || mLayer->region.isEmpty()) {
140 const android::Rect* rects = mLayer->region.getArray(&count);
222 layer->region.clear();
284 layer->region.clear();
299 layer->region
[all...]
/frameworks/base/core/java/android/widget/
H A DSlidingDrawer.java588 final Rect region = mInvalidate;
591 region.set(frame);
593 region.union(frame.left, frame.top - deltaY, frame.right, frame.bottom - deltaY);
594 region.union(0, frame.bottom - deltaY, getWidth(),
597 invalidate(region);
618 final Rect region = mInvalidate;
621 region.set(frame);
623 region.union(frame.left - deltaX, frame.top, frame.right - deltaX, frame.bottom);
624 region.union(frame.right - deltaX, 0,
627 invalidate(region);
[all...]

Completed in 393 milliseconds

123