Searched refs:region (Results 1 - 25 of 95) 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/tools/aapt2/
H A DLocale_test.cpp47 const char* region) {
65 if (memcmp(lv.region, region, std::min(strlen(region), sizeof(lv.region))) != 0) {
66 return ::testing::AssertionFailure() << "expected " << region << " but got "
67 << std::string(lv.region, sizeof(lv.region)) << ".";
46 TestLanguageRegion(const char* input, const char* lang, const char* region) argument
H A DLocale.cpp40 region[i++] = ::toupper(*regionChars);
153 // The second tag can either be a region, a variant or a script.
175 // The second subtag can either be a script or a region code.
176 // If its size is 4, it's a script code, else it's a region code.
185 // The third tag can either be a region code (if the second tag was
236 if (region[0]) {
238 dirName += region;
251 config.unpackRegion(region);
263 out->packRegion(region);
H A DLocale.h31 char region[4]; member in struct:aapt::LocaleValue
/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
221 SkRegion* region = new SkRegion; local
233 const SkRegion* region = reinterpret_cast<SkRegion*>(regionHandle); local
280 const SkRegion* region = reinterpret_cast<SkRegion*>(regionHandle); local
[all...]
H A DBitmapRegionDecoder.cpp210 SkIRect region; local
211 region.fLeft = start_x;
212 region.fTop = start_y;
213 region.fRight = start_x + width;
214 region.fBottom = start_y + height;
222 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.cpp50 llvm::StringRef region = area->request(0, 4096); local
51 RegionFragment* frag = new RegionFragment(region);
54 ASSERT_EQ('H', region.data()[0]);
55 ASSERT_TRUE(4096 == region.size());
H A DMCRegionFragmentTest.cpp46 MemoryRegion* region = area->request(0, 4096); local
47 MCRegionFragment* frag = new MCRegionFragment(*region);
61 MemoryRegion* region = area->request(0, 4096); local
62 llvm::MCFragment* frag = new MCRegionFragment(*region);
H A DELFReaderTest.cpp68 llvm::StringRef region = local
70 const char* ELF_hdr = region.begin();
129 llvm::StringRef region = mem->request(offset, size); local
133 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/compile/mclinker/lib/Script/
H A DScriptReader.cpp47 llvm::StringRef region = input.memArea()->request(input.fileOffset(), size); local
48 std::stringbuf buf(region.data());
/frameworks/native/services/inputflinger/
H A DInputWindow.cpp30 void InputWindowInfo::addTouchableRegion(const Rect& region) { argument
31 touchableRegion.orSelf(region);
/frameworks/compile/mclinker/lib/LD/
H A DELFDynObjReader.cpp54 llvm::StringRef region =
57 const char* ELF_hdr = region.begin();
80 llvm::StringRef region = local
82 const char* ELF_hdr = region.begin();
H A DELFObjectReader.cpp71 llvm::StringRef region =
74 const char* ELF_hdr = region.begin();
100 llvm::StringRef region =
102 const char* ELF_hdr = region.begin();
136 llvm::StringRef region = pInput.memArea()->request( local
139 reinterpret_cast<const llvm::ELF::Elf32_Word*>(region.begin());
141 size_t size = region.size() / sizeof(llvm::ELF::Elf32_Word);
313 llvm::StringRef region = mem->request(offset, size); local
318 if (!m_pELFReader->readRela(pInput, **rs, region)) {
324 if (!m_pELFReader->readRel(pInput, **rs, region)) {
[all...]
H A DELFObjectWriter.cpp54 MemoryRegion region; local
55 // Request output region
69 region = pOutput.request(section->offset(), section->size());
70 if (region.size() == 0) {
97 emitSectionData(*section, region);
100 emitEhFrame(pModule, *section->getEhFrame(), region);
106 emitRelocation(m_Config, *section, region);
109 target().emitSectionData(*section, region);
112 section->getDebugString()->emit(region);
211 MemoryRegion region local
306 MemoryRegion region = local
342 MemoryRegion region = pOutput.request( local
368 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/rs/api/
H A Drs_allocation_data.spec63 arg: uint32_t dstXoff, "X offset in the destination of the region to be set."
64 arg: uint32_t dstYoff, "Y offset in the destination of the region to be set."
67 arg: uint32_t width, "Width of the incoming region to update."
68 arg: uint32_t height, "Height of the incoming region to update."
74 summary: Copy a rectangular region of cells between allocations
76 Copies a rectangular region of cells from one allocation to another.
82 The function does not validate whether the the source or destination region
/frameworks/base/libs/hwui/
H A DSnapshot.cpp42 region = nullptr;
78 region = s->region;
80 region = nullptr;
88 bool Snapshot::clipRegionTransformed(const SkRegion& region, SkRegion::Op op) { argument
90 return mClipArea->clipRegion(region, op);
125 // region if the previous restore() call did not restore the clip
H A DLayerRenderer.cpp58 mLayer->region.clear();
63 mLayer->region.subtractSelf(r);
115 // Dirty region tracking
122 return &mLayer->region;
129 if (mLayer->region.isRect() || mLayer->region.isEmpty()) {
144 Region safeRegion = Region::createTJunctionFreeRegion(mLayer->region);
226 layer->region.clear();
279 layer->region.clear();
295 layer->region
[all...]
H A DDisplayListCanvas.h183 virtual bool clipRegion(const SkRegion* region, SkRegion::Op op) override;
332 inline const SkRegion* refRegion(const SkRegion* region) { argument
333 if (!region) {
334 return region;
337 const SkRegion* cachedRegion = mRegionMap.valueFor(region);
340 std::unique_ptr<const SkRegion> copy(new SkRegion(*region));
345 mRegionMap.replaceValueFor(region, cachedRegion);
/frameworks/base/media/java/android/media/
H A DWebVttRenderer.java716 TextTrackRegion region = new TextTrackRegion();
726 region.mId = value;
729 region.mWidth = parseFloatPercentage(value);
731 log_warning("region setting", name,
739 region.mLines = Integer.parseInt(value);
740 assert(region.mLines >= 0); // lines contains only digits
742 log_warning("region setting", name, "is not numeric", value);
749 log_warning("region setting", name, "contains no comma", value);
760 log_warning("region setting", name,
767 log_warning("region settin
976 onRegionParsed(TextTrackRegion region) argument
1080 onRegionParsed(TextTrackRegion region) argument
1531 RegionLayout(Context context, TextTrackRegion region, CaptionStyle captionStyle, float fontSize) argument
[all...]
/frameworks/compile/mclinker/lib/Target/
H A DELFAttribute.cpp43 // Obtain the region containing the attribute data. Expect exactly one
56 llvm::StringRef region = region_frag.getRegion(); local
64 const char* attribute_data = region.begin();
77 const char* subsection_data = region.begin() + subsection_offset;
110 reinterpret_cast<ConstAddress>(region.begin()) + vendor_data_offset;

Completed in 815 milliseconds

1234