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

1234

/frameworks/base/services/core/jni/BroadcastRadio/
H A Dregions.h32 Region region; member in struct:android::server::BroadcastRadio::regions::RegionalBandConfig
/frameworks/base/tools/aapt2/
H A DLocale_test.cpp55 const char* region) {
77 if (memcmp(lv.region, region, std::min(strlen(region), sizeof(lv.region))) !=
80 << "expected " << region << " but got "
81 << std::string(lv.region, sizeof(lv.region)) << ".";
53 TestLanguageRegion(const char* input, const char* lang, const char* region) argument
H A DLocale.h33 char region[4]; member in struct:aapt::LocaleValue
/frameworks/compile/mclinker/unittests/
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 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 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/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
/frameworks/base/services/core/java/com/android/server/wm/
H A DTapExcludeRegionHolder.java25 * region can be updated separately.
30 /** Update the specified region with provided position and size. */
33 // A region became empty - remove it.
38 Rect region = mTapExcludeRects.get(regionId);
39 if (region == null) {
40 region = new Rect();
42 region.set(left, top, left + width, top + height);
43 mTapExcludeRects.put(regionId, region);
47 * Union the provided region with current region forme
49 amendRegion(Region region, Rect boundingRegion) argument
[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/surfaceflinger/
H A DLayerProtoHelper.cpp21 void LayerProtoHelper::writeToProto(const Region& region, RegionProto* regionProto) { argument
22 Region::const_iterator head = region.begin();
23 Region::const_iterator const tail = region.end();
24 uint64_t address = reinterpret_cast<uint64_t>(&region);
/frameworks/layoutlib/bridge/src/android/view/
H A DSurfaceView.java53 public boolean gatherTransparentRegion(Region region) { argument
/frameworks/native/services/inputflinger/
H A DInputWindow.cpp30 void InputWindowInfo::addTouchableRegion(const Rect& region) { argument
31 touchableRegion.orSelf(region);
/frameworks/base/core/tests/coretests/src/android/graphics/drawable/
H A DIconTest.java349 boolean equalBitmaps(Bitmap a, Bitmap b, Region region) { argument
357 if (region != null) {
360 if (region.contains(i, j) && a.getPixel(i, j) != b.getPixel(i, j)) {
H A DAdaptiveIconDrawableTest.java97 Region region = new Region(new Rect(0, 0, width, height));
102 region.setPath(circle, region);
103 if (!equalBitmaps(bm_test, bm_org, region)) {
204 boolean equalBitmaps(Bitmap a, Bitmap b, Region region) { argument
212 if (region != null) {
221 if (region.contains(i, j) && a.getPixel(i, j) != b.getPixel(i, j) ) {
/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();
137 llvm::StringRef region = pInput.memArea()->request( local
140 reinterpret_cast<const llvm::ELF::Elf32_Word*>(region.begin());
142 size_t size = region.size() / sizeof(llvm::ELF::Elf32_Word);
314 llvm::StringRef region = mem->request(offset, size); local
319 if (!m_pELFReader->readRela(pInput, **rs, region)) {
325 if (!m_pELFReader->readRel(pInput, **rs, region)) {
[all...]
/frameworks/base/core/jni/android/graphics/
H A DNinePatch.cpp111 SkRegion* region = nullptr; local
120 if (!region) {
121 region = new SkRegion();
124 region->op(iterDst.round(), SkRegion::kUnion_Op);
130 return reinterpret_cast<jlong>(region);
/frameworks/base/libs/hwui/
H A DRecordingCanvas.h159 virtual void drawRegion(const SkRegion& region, const SkPaint& paint) override;
266 inline const SkRegion* refRegion(const SkRegion* region) { argument
267 if (!region) {
268 return region;
271 const SkRegion* cachedRegion = mRegionMap.valueFor(region);
274 std::unique_ptr<const SkRegion> copy(new SkRegion(*region));
279 mRegionMap.replaceValueFor(region, cachedRegion);
H A DBakedOpRenderer.cpp48 // subtract repaintRect from region, since it will be regenerated
51 // repaint full layer, so throw away entire region
52 offscreenBuffer->region.clear();
54 offscreenBuffer->region.subtractSelf(android::Rect(repaintRect.left, repaintRect.top,
274 LOG_ALWAYS_FATAL_IF(clip->mode != ClipMode::Region, "can't region clip without region");
275 auto&& region = reinterpret_cast<const ClipRegion*>(clip)->region; local
278 SkRegion::Cliperator it(region, clip->rect.toSkIRect());
H A DClipArea.h89 // region and path - intersected. if either is empty, don't use
116 explicit ClipRegion(const SkRegion& region) : ClipBase(ClipMode::Region), region(region) {} argument
118 SkRegion region; member in struct:android::uirenderer::ClipRegion
152 static void applyTransformToRegion(const Matrix4& transform, SkRegion* region);
167 void clipRegion(const SkRegion& region, SkRegion::Op op);
/frameworks/base/libs/hwui/renderstate/
H A DOffscreenBufferPool.h75 Region region; member in class:android::uirenderer::OffscreenBuffer
/frameworks/base/libs/hwui/tests/unit/
H A DClipAreaTests.cpp157 // region
167 EXPECT_EQ(SkIRect::MakeWH(200, 200), clipRegion->region.getBounds())
168 << "Clip region should be 200x200";
236 // region
245 recordedClip.region.setPath(ovalPath, SkRegion(SkIRect::MakeWH(200, 200)));
256 EXPECT_EQ(SkIRect::MakeLTRB(60, 20, 160, 200), clipRegion->region.getBounds());
293 recordedClip.region.setPath(circlePath, SkRegion(SkIRect::MakeWH(100, 100)));
305 EXPECT_EQ(SkIRect::MakeLTRB(100, 100, 300, 300), clipRegion->region.getBounds());
309 SkRegion region(SkIRect::MakeLTRB(1, 2, 3, 4));
310 ClipArea::applyTransformToRegion(Matrix4::identity(), &region); local
[all...]
/frameworks/base/core/java/android/text/
H A DSpannableStringInternal.java457 private static String region(int start, int end) { method in class:SpannableStringInternal
464 region(start, end) +
472 region(start, end) +
478 region(start, end) +
/frameworks/base/libs/androidfw/
H A DLocaleData.cpp31 inline uint32_t packLocale(const char* language, const char* region) { argument
33 (((uint8_t) region[0]) << 8u) | ((uint8_t) region[1]);
195 // the sake of stability, we consider the locale with the lower region
201 void localeDataComputeScript(char out[4], const char* language, const char* region) { argument
206 uint32_t lookup_key = packLocale(language, region);
209 // We couldn't find the locale. Let's try without the region
210 if (region[0] != '\0') {
234 bool localeDataIsCloseToUsEnglish(const char* region) { argument
235 const uint32_t locale = packLocale(ENGLISH_CHARS, region);
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/stackdivider/
H A DWindowManagerProxy.java130 Log.w(TAG, "Failed to set touchable region: " + e);
207 public void setTouchRegion(Rect region) { argument
209 mTouchableRegion.set(region);

Completed in 392 milliseconds

1234