/frameworks/base/core/jni/android/graphics/ |
D | Region.cpp | 38 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 …]
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
D | ShaderProgram.java | 170 public void setSourceRegion(Quad region) { in setSourceRegion() argument 171 setSourceRegion(region.p0.x, region.p0.y, in setSourceRegion() 172 region.p1.x, region.p1.y, in setSourceRegion() 173 region.p2.x, region.p2.y, in setSourceRegion() 174 region.p3.x, region.p3.y); in setSourceRegion() 177 public void setTargetRegion(Quad region) { in setTargetRegion() argument 178 setTargetRegion(region.p0.x, region.p0.y, in setTargetRegion() 179 region.p1.x, region.p1.y, in setTargetRegion() 180 region.p2.x, region.p2.y, in setTargetRegion() 181 region.p3.x, region.p3.y); in setTargetRegion()
|
/frameworks/base/libs/hwui/tests/unit/ |
D | ClipAreaTests.cpp | 167 EXPECT_EQ(SkIRect::MakeWH(200, 200), clipRegion->region.getBounds()) in TEST() 241 recordedClip.region.setPath(ovalPath, SkRegion(SkIRect::MakeWH(200, 200))); in TEST() 251 EXPECT_EQ(SkIRect::MakeLTRB(60, 20, 160, 200), clipRegion->region.getBounds()); in TEST() 287 recordedClip.region.setPath(circlePath, SkRegion(SkIRect::MakeWH(100, 100))); in TEST() 299 EXPECT_EQ(SkIRect::MakeLTRB(100, 100, 300, 300), clipRegion->region.getBounds()); in TEST() 303 SkRegion region(SkIRect::MakeLTRB(1, 2, 3, 4)); in TEST() local 304 ClipArea::applyTransformToRegion(Matrix4::identity(), ®ion); in TEST() 305 EXPECT_TRUE(region.isRect()); in TEST() 306 EXPECT_EQ(SkIRect::MakeLTRB(1, 2, 3, 4), region.getBounds()); in TEST() 310 SkRegion region(SkIRect::MakeLTRB(1, 2, 3, 4)); in TEST() local [all …]
|
D | BakedOpRendererTests.cpp | 33 EXPECT_TRUE(layer.region.isEmpty()) << "Repaint full layer should clear region"; in RENDERTHREAD_TEST() 40 EXPECT_TRUE(layer.region.isRect()); in RENDERTHREAD_TEST() 42 EXPECT_EQ(android::Rect(100, 0, 200, 200), layer.region.getBounds()) in RENDERTHREAD_TEST() 50 EXPECT_TRUE(layer.region.isEmpty()) in RENDERTHREAD_TEST()
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
D | Region_Delegate.java | 330 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/native/include/private/ui/ |
D | RegionHelper.h | 49 struct region { struct 54 inline region(const region& rhs) in region() argument 56 inline region(RECT const* r, size_t c) in region() argument 58 inline region(RECT const* r, size_t c, TYPE dx, TYPE dy) in region() function 69 inline region_operator(int op, const region& lhs, const region& rhs) in region_operator() 161 region lhs; 162 region rhs; 165 inline Spanner(const region& lhs, const region& rhs) in Spanner() 198 void advance(region& reg, TYPE& aTop, TYPE& aBottom) { in advance() 222 region lhs; [all …]
|
/frameworks/base/tools/aapt2/ |
D | Locale_test.cpp | 47 const char* region) { in TestLanguageRegion() argument 65 if (memcmp(lv.region, region, std::min(strlen(region), sizeof(lv.region))) != 0) { in TestLanguageRegion() 66 return ::testing::AssertionFailure() << "expected " << region << " but got " in TestLanguageRegion() 67 << std::string(lv.region, sizeof(lv.region)) << "."; in TestLanguageRegion()
|
D | Locale.cpp | 40 region[i++] = ::toupper(*regionChars); in setRegion() 240 if (region[0]) { in toDirName() 242 dirName += region; in toDirName() 255 config.unpackRegion(region); in initFromResTable() 267 out->packRegion(region); in writeTo()
|
/frameworks/base/graphics/java/android/graphics/ |
D | Region.java | 62 public Region(Region region) { in Region() argument 64 nativeSetRegion(mNativeRegion, region.mNativeRegion); in Region() 89 public boolean set(Region region) { in set() argument 90 nativeSetRegion(mNativeRegion, region.mNativeRegion); in set() 276 public boolean op(Region region, Op op) { in op() argument 277 return op(this, region, op); in op() 284 public boolean op(Rect rect, Region region, Op op) { in op() argument 285 return nativeOp(mNativeRegion, rect, region.mNativeRegion, in op() 308 Region region = sPool.acquire(); in obtain() local 309 return (region != null) ? region : new Region(); in obtain() [all …]
|
/frameworks/base/libs/androidfw/ |
D | LocaleData.cpp | 31 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/base/libs/hwui/ |
D | ClipArea.cpp | 236 void ClipArea::clipRegion(const SkRegion& region, SkRegion::Op op) { in clipRegion() argument 241 mClipRegion.op(region, op); in clipRegion() 254 SkRegion region; in clipPathWithTransform() local 255 regionFromPath(transformed, region); in clipPathWithTransform() 257 mClipRegion.op(region, op); in clipPathWithTransform() 400 return reinterpret_cast<const ClipRegion*>(scb)->region; in getRegion() 473 regionClip->region.op(mClipRect.toSkIRect(), other, SkRegion::kIntersect_Op); in serializeIntersectedClip() 476 regionClip->region.op(mRectangleList.convertToRegion(createViewportRegion()), in serializeIntersectedClip() 480 regionClip->region.op(mClipRegion, other, SkRegion::kIntersect_Op); in serializeIntersectedClip() 484 regionClip->rect.set(regionClip->region.getBounds()); in serializeIntersectedClip() [all …]
|
D | ClipArea.h | 127 ClipRegion(const SkRegion& region) in ClipRegion() 129 , region(region) {} in ClipRegion() 132 SkRegion region; member 149 void clipRegion(const SkRegion& region, SkRegion::Op op); 182 static void applyTransformToRegion(const Matrix4& transform, SkRegion* region);
|
D | LayerRenderer.cpp | 58 mLayer->region.clear(); in prepareDirty() 63 mLayer->region.subtractSelf(r); in prepareDirty() 123 return &mLayer->region; in getRegion() 130 if (mLayer->region.isRect() || mLayer->region.isEmpty()) { in generateMesh() 145 Region safeRegion = Region::createTJunctionFreeRegion(mLayer->region); in generateMesh() 227 layer->region.clear(); in createRenderLayer() 280 layer->region.clear(); in createTextureLayer() 296 layer->region.set(width, height); in updateTextureLayer() 324 layer->region.clear(); in destroyLayer()
|
D | Snapshot.cpp | 40 region = nullptr; in Snapshot() 76 region = s->region; in Snapshot() 78 region = nullptr; in Snapshot() 86 void Snapshot::clipRegionTransformed(const SkRegion& region, SkRegion::Op op) { in clipRegionTransformed() argument 88 mClipArea->clipRegion(region, op); in clipRegionTransformed()
|
D | DisplayListCanvas.h | 159 virtual bool clipRegion(const SkRegion* region, SkRegion::Op op) override; 184 virtual void drawRegion(const SkRegion& region, const SkPaint& paint) override; 300 inline const SkRegion* refRegion(const SkRegion* region) { in refRegion() argument 301 if (!region) { in refRegion() 302 return region; in refRegion() 305 const SkRegion* cachedRegion = mRegionMap.valueFor(region); in refRegion() 308 std::unique_ptr<const SkRegion> copy(new SkRegion(*region)); in refRegion() 313 mRegionMap.replaceValueFor(region, cachedRegion); in refRegion()
|
D | RecordingCanvas.h | 136 virtual bool clipRegion(const SkRegion* region, SkRegion::Op op) override; 163 virtual void drawRegion(const SkRegion& region, const SkPaint& paint) override; 270 inline const SkRegion* refRegion(const SkRegion* region) { in refRegion() argument 271 if (!region) { in refRegion() 272 return region; in refRegion() 275 const SkRegion* cachedRegion = mRegionMap.valueFor(region); in refRegion() 278 std::unique_ptr<const SkRegion> copy(new SkRegion(*region)); in refRegion() 283 mRegionMap.replaceValueFor(region, cachedRegion); in refRegion()
|
/frameworks/compile/mclinker/unittests/ |
D | FragmentRefTest.cpp | 50 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());
|
D | MCRegionFragmentTest.cpp | 46 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()
|
/frameworks/compile/mclinker/lib/LD/ |
D | ELFObjectReader.cpp | 71 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()
|
D | ELFDynObjReader.cpp | 54 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()
|
D | ELFObjectWriter.cpp | 54 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/services/core/ |
D | Android.mk | 30 -D jack.transformations.boost-locked-region-priority=true \ 31 …-D jack.transformations.boost-locked-region-priority.classname=com.android.server.am.ActivityManag… 32 …-D jack.transformations.boost-locked-region-priority.request=com.android.server.am.ActivityManager… 33 …-D jack.transformations.boost-locked-region-priority.reset=com.android.server.am.ActivityManagerSe…
|
/frameworks/base/libs/hwui/tests/common/scenes/ |
D | RectGridAnimation.cpp | 40 SkRegion region; in createContent() local 43 region.op(xOffset, yOffset, xOffset + 1, yOffset + 1, SkRegion::kUnion_Op); in createContent() 49 canvas.drawRegion(region, paint); in createContent()
|
/frameworks/base/media/java/android/media/ |
D | WebVttRenderer.java | 716 TextTrackRegion region = new TextTrackRegion(); 726 region.mId = value; 729 region.mWidth = parseFloatPercentage(value); 739 region.mLines = Integer.parseInt(value); 740 assert(region.mLines >= 0); // lines contains only digits 773 region.mAnchorPointX = x; 774 region.mAnchorPointY = y; 776 region.mViewportAnchorPointX = x; 777 region.mViewportAnchorPointY = y; 781 region.mScrollValue = [all …]
|
/frameworks/base/include/androidfw/ |
D | LocaleData.h | 30 void localeDataComputeScript(char out[4], const char* language, const char* region); 32 bool localeDataIsCloseToUsEnglish(const char* region);
|