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

1234

/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.java54 /** Create an empty region
60 /** Return a copy of the specified region
62 public Region(Region region) { argument
64 nativeSetRegion(mNativeRegion, region.mNativeRegion);
67 /** Return a region set to the specified rectangle
74 /** Return a region set to the specified rectangle
81 /** Set the region to the empty region
87 /** Set the region to the specified region
89 set(Region region) argument
276 op(Region region, Op op) argument
284 op(Rect rect, Region region, Op op) argument
[all...]
/frameworks/base/core/jni/android/graphics/
H A DRegion.cpp38 SkRegion* region = reinterpret_cast<SkRegion*>(regionHandle); local
39 SkASSERT(region != NULL);
40 return region;
48 SkRegion* region = reinterpret_cast<SkRegion*>(regionHandle); local
49 SkASSERT(region);
50 delete region;
78 SkRegion* region = reinterpret_cast<SkRegion*>(regionHandle); local
79 GraphicsJNI::irect_to_jrect(region->getBounds(), env, rectBounds);
80 bool result = !region->isEmpty();
85 const SkRegion* region local
102 const SkRegion* region = reinterpret_cast<SkRegion*>(regionHandle); local
119 Region_isEmpty(JNIEnv* env, jobject region) argument
124 Region_isRect(JNIEnv* env, jobject region) argument
129 Region_isComplex(JNIEnv* env, jobject region) argument
134 Region_contains(JNIEnv* env, jobject region, jint x, jint y) argument
139 Region_quickContains(JNIEnv* env, jobject region, jint left, jint top, jint right, jint bottom) argument
144 Region_quickRejectIIII(JNIEnv* env, jobject region, jint left, jint top, jint right, jint bottom) argument
151 Region_quickRejectRgn(JNIEnv* env, jobject region, jobject other) argument
156 Region_translate(JNIEnv* env, jobject region, jint x, jint y, jobject dst) argument
186 Region_scale(JNIEnv* env, jobject region, jfloat scale, jobject dst) argument
195 SkRegion* region = reinterpret_cast<SkRegion*>(regionHandle); local
215 SkRegion* region = new SkRegion; local
224 const SkRegion* region = reinterpret_cast<SkRegion*>(regionHandle); local
262 const SkRegion* region = reinterpret_cast<SkRegion*>(regionHandle); local
[all...]
H A DBitmapRegionDecoder.cpp212 SkIRect region; local
213 region.fLeft = start_x;
214 region.fTop = start_y;
215 region.fRight = start_x + width;
216 region.fBottom = start_y + height;
229 if (!brd->decodeRegion(bitmap, region, prefColorType, sampleSize)) {
/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/compile/mclinker/unittests/
H A DFragmentRefTest.cpp52 llvm::StringRef region = area->request(0, 4096); local
53 RegionFragment *frag = new RegionFragment(region);
56 ASSERT_EQ('H', region.data()[0]);
57 ASSERT_TRUE(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);
H A DELFReaderTest.cpp71 llvm::StringRef region = m_pInput->memArea()->request(m_pInput->fileOffset(), local
73 const char* ELF_hdr = region.begin();
134 llvm::StringRef region = mem->request(offset, size); local
138 ASSERT_TRUE(m_pELFReader->readRela(*m_pInput, **rs, region));
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DRegion_Delegate.java330 Region_Delegate region = sManager.getDelegate(native_region);
331 if (region == null) {
335 Rectangle bounds = region.mArea.getBounds();
350 Region_Delegate region = sManager.getDelegate(native_region);
351 if (region == null) {
360 if (region.mArea.isEmpty()) {
365 path.setPathIterator(region.mArea.getPathIterator(new AffineTransform()));
372 Region_Delegate region = sManager.getDelegate(native_dst);
373 if (region == null) {
377 region
[all...]
/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/native/services/inputflinger/
H A DInputWindow.cpp30 void InputWindowInfo::addTouchableRegion(const Rect& region) { argument
31 touchableRegion.orSelf(region);
/frameworks/compile/mclinker/lib/Script/
H A DScriptReader.cpp45 llvm::StringRef region = input.memArea()->request(input.fileOffset(), size); local
46 std::stringbuf buf(region.data());
/frameworks/compile/mclinker/lib/LD/
H A DELFObjectReader.cpp72 llvm::StringRef region = pInput.memArea()->request(pInput.fileOffset(),
75 const char* ELF_hdr = region.begin();
102 llvm::StringRef region = pInput.memArea()->request(pInput.fileOffset(),
104 const char* ELF_hdr = region.begin();
141 llvm::StringRef region = pInput.memArea()->request( local
144 reinterpret_cast<const llvm::ELF::Elf32_Word*>(region.begin());
146 size_t size = region.size() / sizeof(llvm::ELF::Elf32_Word);
324 llvm::StringRef region = mem->request(offset, size); local
328 if (!m_pELFReader->readRela(pInput, **rs, region)) {
334 if (!m_pELFReader->readRel(pInput, **rs, region)) {
[all...]
H A DELFDynObjReader.cpp57 llvm::StringRef region = pInput.memArea()->request(pInput.fileOffset(),
60 const char* ELF_hdr = region.begin();
84 llvm::StringRef region = pInput.memArea()->request(pInput.fileOffset(), local
86 const char* ELF_hdr = region.begin();
H A DELFObjectWriter.cpp57 MemoryRegion region; local
58 // Request output region
71 region = pOutput.request(section->offset(), section->size());
72 if (region.size() == 0) {
102 emitSectionData(*section, region);
105 emitEhFrame(pModule, *section->getEhFrame(), region);
111 emitRelocation(m_Config, *section, region);
114 target().emitSectionData(*section, region);
217 MemoryRegion region = pOutput.request(0, sizeof(ElfXX_Ehdr)); local
218 ElfXX_Ehdr* header = (ElfXX_Ehdr*)region
314 MemoryRegion region = pOutput.request(getLastStartOffset<SIZE>(pModule), local
351 MemoryRegion region = pOutput.request(start_offset, local
379 MemoryRegion region = pOutput.request(pShStrTab.offset(), pShStrTab.size()); local
[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/libs/hwui/
H A DSnapshot.cpp41 region = NULL;
81 region = s->region;
83 region = NULL;
118 bool Snapshot::clipRegionTransformed(const SkRegion& region, SkRegion::Op op) { argument
120 clipRegion->op(region, op);
193 // region if the previous restore() call did not restore the clip
H A DDisplayListRenderer.h96 virtual bool clipRegion(const SkRegion* region, SkRegion::Op op);
255 inline const SkRegion* refRegion(const SkRegion* region) { argument
256 if (!region) {
257 return region;
260 const SkRegion* regionCopy = mRegionMap.valueFor(region);
263 regionCopy = new SkRegion(*region);
265 mRegionMap.replaceValueFor(region, regionCopy);
H A DStatefulBaseRenderer.cpp184 SkRegion region; local
185 region.setPath(transformed, clip);
187 // region is the transformed input path, masked by the previous clip
188 mDirtyClip |= mSnapshot->clipRegionTransformed(region, op);
192 bool StatefulBaseRenderer::clipRegion(const SkRegion* region, SkRegion::Op op) { argument
193 mDirtyClip |= mSnapshot->clipRegionTransformed(*region, op);
H A DSnapshot.h85 * Indicates that the clip region was modified. When this
126 * Modifies the current clip with the specified region and operation.
127 * The specified region is considered already transformed.
129 bool clipRegionTransformed(const SkRegion& region, SkRegion::Op op);
242 * Current clip region. The clip is stored in canvas-space coordinates,
245 * This is a reference to a region owned by this snapshot or another
251 * The ancestor layer's dirty region.
253 * This is a reference to a region owned by a layer. This pointer must
256 Region* region; member in class:android::uirenderer::Snapshot
H A DLayerRenderer.cpp59 mLayer->region.clear();
64 mLayer->region.subtractSelf(r);
117 // Dirty region tracking
124 return &mLayer->region;
131 if (mLayer->region.isRect() || mLayer->region.isEmpty()) {
146 Region safeRegion = Region::createTJunctionFreeRegion(mLayer->region);
228 layer->region.clear();
283 layer->region.clear();
299 layer->region
[all...]
/frameworks/base/media/java/android/media/
H A DWebVttRenderer.java714 TextTrackRegion region = new TextTrackRegion();
724 region.mId = value;
727 region.mWidth = parseFloatPercentage(value);
729 log_warning("region setting", name,
737 region.mLines = Integer.parseInt(value);
738 assert(region.mLines >= 0); // lines contains only digits
740 log_warning("region setting", name, "is not numeric", value);
747 log_warning("region setting", name, "contains no comma", value);
758 log_warning("region setting", name,
765 log_warning("region settin
974 onRegionParsed(TextTrackRegion region) argument
1078 onRegionParsed(TextTrackRegion region) argument
1529 RegionLayout(Context context, TextTrackRegion region, CaptionStyle captionStyle, float fontSize) argument
[all...]
/frameworks/compile/mclinker/lib/Target/
H A DELFAttribute.cpp45 // Obtain the region containing the attribute data. Expect exactly one
58 llvm::StringRef region = region_frag.getRegion(); local
66 const char *attribute_data = region.begin();
79 const char *subsection_data = region.begin() + subsection_offset;
113 reinterpret_cast<ConstAddress>(region.begin()) + vendor_data_offset;
/frameworks/base/core/java/android/widget/
H A DSlidingDrawer.java609 final Rect region = mInvalidate;
612 region.set(frame);
614 region.union(frame.left, frame.top - deltaY, frame.right, frame.bottom - deltaY);
615 region.union(0, frame.bottom - deltaY, getWidth(),
618 invalidate(region);
639 final Rect region = mInvalidate;
642 region.set(frame);
644 region.union(frame.left - deltaX, frame.top, frame.right - deltaX, frame.bottom);
645 region.union(frame.right - deltaX, 0,
648 invalidate(region);
[all...]
/frameworks/opt/bluetooth/src/android/bluetooth/client/map/utils/
H A DBmsgTokenizer.java77 mMatcher.region(mPos, mMatcher.regionEnd());

Completed in 3667 milliseconds

1234