Home
last modified time | relevance | path

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

123456

/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 …]
DNinePatch.cpp104 SkRegion* region = nullptr; in getTransparentRegion() local
113 if (!region) { in getTransparentRegion()
114 region = new SkRegion(); in getTransparentRegion()
117 region->op(iterDst.round(), SkRegion::kUnion_Op); in getTransparentRegion()
123 return reinterpret_cast<jlong>(region); in getTransparentRegion()
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
DShaderProgram.java171 public void setSourceRegion(Quad region) { in setSourceRegion() argument
172 setSourceRegion(region.p0.x, region.p0.y, in setSourceRegion()
173 region.p1.x, region.p1.y, in setSourceRegion()
174 region.p2.x, region.p2.y, in setSourceRegion()
175 region.p3.x, region.p3.y); in setSourceRegion()
178 public void setTargetRegion(Quad region) { in setTargetRegion() argument
179 setTargetRegion(region.p0.x, region.p0.y, in setTargetRegion()
180 region.p1.x, region.p1.y, in setTargetRegion()
181 region.p2.x, region.p2.y, in setTargetRegion()
182 region.p3.x, region.p3.y); in setTargetRegion()
/frameworks/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/ml/nn/tools/api/
DREADME.md65 context -- the *region* in which that line appears.
74 * A conditional region can enclose a definition region.
75 * A section region can enclose a conditional region or a definition region.
79 * A conditional region can be enclosed by a section region.
80 * A definition region can be enclosed by a conditional region or a section
81 region.
83 #### null region
85 A *null region* is a sequence of lines that is not part of any other region.
87 `%define` and `%define-kinds` consists of a single null region.
89 Within a null region, all lines other than directives are treated as comments
[all …]
/frameworks/base/libs/androidfw/tests/
DLocale_test.cpp54 const char* region) { in TestLanguageRegion() argument
76 if (memcmp(lv.region, region, std::min(strlen(region), sizeof(lv.region))) != in TestLanguageRegion()
79 << "expected " << region << " but got " in TestLanguageRegion()
80 << std::string(lv.region, sizeof(lv.region)) << "."; in TestLanguageRegion()
/frameworks/native/include/private/ui/
DRegionHelper.h52 struct region { struct
57 inline region(const region& rhs) in region() argument
59 inline region(RECT const* _r, size_t _c) in region() function
61 inline region(RECT const* _r, size_t _c, TYPE _dx, TYPE _dy) in region() argument
72 inline region_operator(uint32_t op, const region& lhs, const region& rhs) in region_operator()
163 region lhs;
164 region rhs;
167 inline Spanner(const region& _lhs, const region& _rhs) in Spanner()
200 void advance(region& reg, TYPE& aTop, TYPE& aBottom) { in advance()
224 region lhs;
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DTapExcludeRegionHolder.java31 void updateRegion(int regionId, Region region) { in updateRegion() argument
35 if (region == null || region.isEmpty()) { in updateRegion()
40 mTapExcludeRegions.put(regionId, region); in updateRegion()
46 void amendRegion(Region region, Rect bounds) { in amendRegion() argument
52 region.op(r, Region.Op.UNION); in amendRegion()
/frameworks/base/graphics/java/android/graphics/
DRegion.java66 public Region(@NonNull Region region) { in Region() argument
68 nativeSetRegion(mNativeRegion, region.mNativeRegion); in Region()
93 public boolean set(@NonNull Region region) { in set() argument
94 nativeSetRegion(mNativeRegion, region.mNativeRegion); in set()
283 public boolean op(@NonNull Region region, @NonNull Op op) { in op() argument
284 return op(this, region, op); in op()
291 public boolean op(@NonNull Rect rect, @NonNull Region region, @NonNull Op op) { in op() argument
292 return nativeOp(mNativeRegion, rect, region.mNativeRegion, in op()
317 Region region = sPool.acquire(); in obtain() local
318 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/androidfw/
DLocaleData.cpp31 inline uint32_t packLocale(const char* language, const char* region) { in packLocale() argument
33 (((uint8_t) region[0]) << 8u) | ((uint8_t) region[1]); in packLocale()
201 void localeDataComputeScript(char out[4], const char* language, const char* region) { in localeDataComputeScript() argument
206 uint32_t lookup_key = packLocale(language, region); in localeDataComputeScript()
210 if (region[0] != '\0') { in localeDataComputeScript()
234 bool localeDataIsCloseToUsEnglish(const char* region) { in localeDataIsCloseToUsEnglish() argument
235 const uint32_t locale = packLocale(ENGLISH_CHARS, region); in localeDataIsCloseToUsEnglish()
/frameworks/compile/mclinker/unittests/
DFragmentRefTest.cpp50 llvm::StringRef region = area->request(0, 4096); variable
51 RegionFragment* frag = new RegionFragment(region);
54 ASSERT_EQ('H', region.data()[0]);
55 ASSERT_TRUE(4096 == region.size());
DMCRegionFragmentTest.cpp46 MemoryRegion* region = area->request(0, 4096); in TEST_F() local
47 MCRegionFragment* frag = new MCRegionFragment(*region); in TEST_F()
61 MemoryRegion* region = area->request(0, 4096); in TEST_F() local
62 llvm::MCFragment* frag = new MCRegionFragment(*region); in TEST_F()
DELFReaderTest.cpp68 llvm::StringRef region = in SetUp() local
70 const char* ELF_hdr = region.begin(); in SetUp()
129 llvm::StringRef region = mem->request(offset, size); in TEST_F() local
133 ASSERT_TRUE(m_pELFReader->readRela(*m_pInput, **rs, region)); in TEST_F()
/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/ui/
DPerimeterPathGuide.java146 for (RegionAttributes region : mRegions) { in getPerimeterPx()
147 total += region.absoluteLength; in getPerimeterPx()
163 public float getCoord(Region region, float progress) { in getCoord() argument
164 RegionAttributes regionAttributes = mRegions[region.ordinal()]; in getCoord()
172 public float getRegionCenter(Region region) { in getRegionCenter() argument
173 return getCoord(region, 0.5f); in getRegionCenter()
179 public float getRegionWidth(Region region) { in getRegionWidth() argument
180 return mRegions[region.ordinal()].normalizedLength; in getRegionWidth()
382 for (Region region : Region.values()) { in getRegionForPoint()
383 if (coord <= mRegions[region.ordinal()].endCoordinate) { in getRegionForPoint()
[all …]
/frameworks/compile/mclinker/lib/LD/
DELFObjectReader.cpp71 llvm::StringRef region = in isMyFormat() local
74 const char* ELF_hdr = region.begin(); in isMyFormat()
100 llvm::StringRef region = in readHeader() local
102 const char* ELF_hdr = region.begin(); in readHeader()
137 llvm::StringRef region = pInput.memArea()->request( in readSections() local
140 reinterpret_cast<const llvm::ELF::Elf32_Word*>(region.begin()); in readSections()
142 size_t size = region.size() / sizeof(llvm::ELF::Elf32_Word); in readSections()
314 llvm::StringRef region = mem->request(offset, size); in readRelocations() local
319 if (!m_pELFReader->readRela(pInput, **rs, region)) { in readRelocations()
325 if (!m_pELFReader->readRel(pInput, **rs, region)) { in readRelocations()
DELFDynObjReader.cpp54 llvm::StringRef region = in isMyFormat() local
57 const char* ELF_hdr = region.begin(); in isMyFormat()
80 llvm::StringRef region = in readHeader() local
82 const char* ELF_hdr = region.begin(); in readHeader()
DELFObjectWriter.cpp54 MemoryRegion region; in writeSection() local
69 region = pOutput.request(section->offset(), section->size()); in writeSection()
70 if (region.size() == 0) { in writeSection()
97 emitSectionData(*section, region); in writeSection()
100 emitEhFrame(pModule, *section->getEhFrame(), region); in writeSection()
106 emitRelocation(m_Config, *section, region); in writeSection()
109 target().emitSectionData(*section, region); in writeSection()
112 section->getDebugString()->emit(region); in writeSection()
211 MemoryRegion region = pOutput.request(0, sizeof(ElfXX_Ehdr)); in writeELFHeader() local
212 ElfXX_Ehdr* header = reinterpret_cast<ElfXX_Ehdr*>(region.begin()); in writeELFHeader()
[all …]
/frameworks/base/core/java/android/util/apk/
DByteBufferDataSource.java56 ByteBuffer region; in feedIntoDataDigester() local
61 region = mBuf.slice(); in feedIntoDataDigester()
64 md.consume(region); in feedIntoDataDigester()
/frameworks/base/libs/hwui/tests/common/scenes/
DRectGridAnimation.cpp37 SkRegion region; in createContent() local
40 region.op(xOffset, yOffset, xOffset + 1, yOffset + 1, SkRegion::kUnion_Op); in createContent()
46 canvas.drawRegion(region, paint); in createContent()
/frameworks/base/media/java/android/media/
DWebVttRenderer.java718 TextTrackRegion region = new TextTrackRegion();
728 region.mId = value;
731 region.mWidth = parseFloatPercentage(value);
741 region.mLines = Integer.parseInt(value);
742 assert(region.mLines >= 0); // lines contains only digits
775 region.mAnchorPointX = x;
776 region.mAnchorPointY = y;
778 region.mViewportAnchorPointX = x;
779 region.mViewportAnchorPointY = y;
783 region.mScrollValue =
[all …]
/frameworks/base/services/core/jni/BroadcastRadio/
Dconvert.cpp59 …JavaRef<jobject> BandDescriptorFromHal(JNIEnv *env, const V1_0::BandConfig &config, Region region);
82 jfieldID region; member
341 static Rds RdsForRegion(bool rds, Region region) { in RdsForRegion() argument
344 switch(region) { in RdsForRegion()
353 ALOGE("Unexpected region: %d", region); in RdsForRegion()
358 static Deemphasis DeemphasisForRegion(Region region) { in DeemphasisForRegion() argument
359 switch(region) { in DeemphasisForRegion()
368 ALOGE("Unexpected region: %d", region); in DeemphasisForRegion()
414 return BandDescriptorFromHal(env, config.bandConfig, config.region); in BandDescriptorFromHal()
417 …avaRef<jobject> BandDescriptorFromHal(JNIEnv *env, const V1_0::BandConfig &config, Region region) { in BandDescriptorFromHal() argument
[all …]
/frameworks/base/libs/androidfw/include/androidfw/
DLocaleData.h30 void localeDataComputeScript(char out[4], const char* language, const char* region);
32 bool localeDataIsCloseToUsEnglish(const char* region);
/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/tests/coretests/src/android/graphics/drawable/
DAdaptiveIconDrawableTest.java114 Region region = new Region(new Rect(0, 0, width, height)); in testDraw_withBounds() local
119 region.setPath(circle, region); in testDraw_withBounds()
120 if (!equalBitmaps(bm_test, bm_org, region)) { in testDraw_withBounds()
221 boolean equalBitmaps(Bitmap a, Bitmap b, Region region) { in equalBitmaps() argument
229 if (region != null) { in equalBitmaps()
238 if (region.contains(i, j) && a.getPixel(i, j) != b.getPixel(i, j) ) { in equalBitmaps()

123456