/frameworks/base/graphics/java/android/graphics/ |
H A D | RegionIterator.java | 22 * 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 D | Region.java | 54 /** 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 D | Region.cpp | 42 static void Region_destructor(JNIEnv* env, jobject, SkRegion* region) { argument 43 SkASSERT(region); 44 delete region; 62 static jboolean Region_getBounds(JNIEnv* env, jobject, SkRegion* region, jobject rectBounds) { argument 63 GraphicsJNI::irect_to_jrect(region->getBounds(), env, rectBounds); 64 return !region->isEmpty(); 67 static jboolean Region_getBoundaryPath(JNIEnv* env, jobject, const SkRegion* region, SkPath* path) { argument 68 return region->getBoundaryPath(path); 78 static jboolean Region_op1(JNIEnv* env, jobject, SkRegion* dst, jobject rectObject, const SkRegion* region, int op) { argument 81 return dst->op(ir, *region, (SkRegio 90 Region_isEmpty(JNIEnv* env, jobject region) argument 94 Region_isRect(JNIEnv* env, jobject region) argument 98 Region_isComplex(JNIEnv* env, jobject region) argument 102 Region_contains(JNIEnv* env, jobject region, int x, int y) argument 106 Region_quickContains(JNIEnv* env, jobject region, int left, int top, int right, int bottom) argument 110 Region_quickRejectIIII(JNIEnv* env, jobject region, int left, int top, int right, int bottom) argument 116 Region_quickRejectRgn(JNIEnv* env, jobject region, jobject other) argument 120 Region_translate(JNIEnv* env, jobject region, int x, int y, jobject dst) argument 150 Region_scale(JNIEnv* env, jobject region, jfloat scale, jobject dst) argument 158 Region_toString(JNIEnv* env, jobject clazz, SkRegion* region) argument 178 SkRegion* region = new SkRegion; local 185 Region_writeToParcel(JNIEnv* env, jobject clazz, const SkRegion* region, jobject parcel) argument 220 RegionIter_constructor(JNIEnv* env, jobject, const SkRegion* region) argument [all...] |
H A D | BitmapRegionDecoder.cpp | 212 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, prefConfig, sampleSize)) {
|
/frameworks/compile/mclinker/unittests/ |
H A D | MemoryAreaTest.cpp | 55 MemoryRegion* region = area->request(3, 2); local 56 ASSERT_EQ('L', region->getBuffer()[0]); 57 ASSERT_EQ('O', region->getBuffer()[1]); 58 area->release(region); 71 MemoryRegion* region = area->request(3, 4); local 72 region->getBuffer()[0] = 'L'; 73 region->getBuffer()[1] = 'i'; 74 region->getBuffer()[2] = 'n'; 75 region->getBuffer()[3] = 'k'; 76 area->release(region); 99 MemoryRegion* region = area->request(0, 4096); local 115 MemoryRegion* region = area->request(0, 4096) ; local [all...] |
H A D | FragmentRefTest.cpp | 51 MemoryRegion* region = area->request(0, 4096); local 52 RegionFragment *frag = new RegionFragment(*region); 55 ASSERT_EQ('H', region->getBuffer()[0]); 56 ASSERT_TRUE(4096 == region->size());
|
H A D | MCRegionFragmentTest.cpp | 51 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 D | ELFReaderTest.cpp | 69 MemoryRegion* region = m_pInput->memArea()->request(m_pInput->fileOffset(), local 71 uint8_t* ELF_hdr = region->start(); 73 m_pInput->memArea()->release(region); 137 MemoryRegion* region = mem->request(offset, size); local 141 ASSERT_TRUE(m_pELFReader->readRela(*m_pInput, **rs, *region)); 142 mem->release(region);
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
H A D | ShaderProgram.java | 170 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/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | Region_Delegate.java | 331 Region_Delegate region = sManager.getDelegate(native_region); 332 if (region == null) { 336 Rectangle bounds = region.mArea.getBounds(); 351 Region_Delegate region = sManager.getDelegate(native_region); 352 if (region == null) { 361 if (region.mArea.isEmpty()) { 366 path.setPathIterator(region.mArea.getPathIterator(new AffineTransform())); 373 Region_Delegate region = sManager.getDelegate(native_dst); 374 if (region == null) { 378 region [all...] |
/frameworks/compile/mclinker/lib/LD/ |
H A D | ELFObjectReader.cpp | 67 MemoryRegion* region = pInput.memArea()->request(pInput.fileOffset(), local 70 uint8_t* ELF_hdr = region->start(); 80 pInput.memArea()->release(region); 90 MemoryRegion* region = pInput.memArea()->request(pInput.fileOffset(), local 92 uint8_t* ELF_hdr = region->start(); 94 pInput.memArea()->release(region); 130 MemoryRegion* region = pInput.memArea()->request( local 133 reinterpret_cast<llvm::ELF::Elf32_Word*>(region->start()); 135 size_t size = region->size() / sizeof(llvm::ELF::Elf32_Word); 141 pInput.memArea()->release(region); 313 MemoryRegion* region = mem->request(offset, size); local [all...] |
H A D | ELFDynObjReader.cpp | 54 MemoryRegion* region = pInput.memArea()->request(pInput.fileOffset(), local 57 uint8_t* ELF_hdr = region->start(); 67 pInput.memArea()->release(region); 77 MemoryRegion* region = pInput.memArea()->request(pInput.fileOffset(), local 79 uint8_t* ELF_hdr = region->start(); 82 pInput.memArea()->release(region);
|
H A D | ELFObjectWriter.cpp | 55 MemoryRegion* region; local 56 // Request output region 68 region = pOutput.request(section->offset(), section->size()); 69 if (NULL == region) { 70 llvm::report_fatal_error(llvm::Twine("cannot get enough memory region for output section `") + 103 emitSectionData(*section, *region); 106 emitRelocation(m_Config, *section, *region); 109 target().emitSectionData(*section, *region); 198 MemoryRegion *region = pOutput.request(0, sizeof(ElfXX_Ehdr)); local 199 ElfXX_Ehdr* header = (ElfXX_Ehdr*)region 300 MemoryRegion* region = pOutput.request(getLastStartOffset<SIZE>(pModule), local 337 MemoryRegion *region = pOutput.request(start_offset, local 365 MemoryRegion* region = pOutput.request(pShStrTab.offset(), pShStrTab.size()); local [all...] |
H A D | GNUArchiveReader.cpp | 48 MemoryRegion* region = pInput.memArea()->request(pInput.fileOffset(), local 50 const char* str = reinterpret_cast<const char*>(region->getBuffer()); 57 pInput.memArea()->release(region); 77 MemoryRegion* region = pInput.memArea()->request(pInput.fileOffset(), local 79 const char* str = reinterpret_cast<const char*>(region->getBuffer()); 86 pInput.memArea()->release(region);
|
/frameworks/native/include/private/ui/ |
H A D | RegionHelper.h | 49 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/Support/ |
H A D | raw_mem_ostream.cpp | 37 MemoryRegion* region = m_MemoryArea.request(m_Position, pSize); local 38 memcpy(region->start(), pPtr, pSize);
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/io/ |
H A D | PatternScanner.java | 52 matcher.region(mOffset, mInput.length()); 86 matcher.region(mOffset, mInput.length()); 94 matcher.region(mOffset, mInput.length());
|
/frameworks/base/libs/hwui/ |
H A D | Snapshot.h | 55 * Indicates that the clip region was modified. When this 97 * Modifies the current clip with the specified region and operation. 98 * The specified region is considered already transformed. 100 bool clipRegionTransformed(const SkRegion& region, SkRegion::Op op); 204 * Current clip region. The clip is stored in canvas-space coordinates, 207 * This is a reference to a region owned by this snapshot or another 213 * The ancestor layer's dirty region. 215 * This is a reference to a region owned by a layer. This pointer must 218 Region* region; member in class:android::uirenderer::Snapshot
|
H A D | Snapshot.cpp | 35 region = NULL; 69 region = s->region; 71 region = NULL; 106 bool Snapshot::clipRegionTransformed(const SkRegion& region, SkRegion::Op op) { argument 108 clipRegion->op(region, op); 181 // region if the previous restore() call did not restore the clip
|
H A D | DisplayListRenderer.h | 94 virtual bool clipRegion(SkRegion* region, SkRegion::Op op); 254 inline SkRegion* refRegion(SkRegion* region) { argument 255 if (!region) { 256 return region; 259 SkRegion* regionCopy = mRegionMap.valueFor(region); 262 regionCopy = new SkRegion(*region); 264 mRegionMap.replaceValueFor(region, regionCopy);
|
H A D | LayerRenderer.cpp | 58 mLayer->region.clear(); 63 mLayer->region.subtractSelf(r); 116 // Dirty region tracking 123 return &mLayer->region; 130 if (mLayer->region.isRect() || mLayer->region.isEmpty()) { 145 Region safeRegion = Region::createTJunctionFreeRegion(mLayer->region); 227 layer->region.clear(); 285 layer->region.clear(); 300 layer->region [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | PhoneStatusBarView.java | 134 float region = (w * mSettingsPanelDragzoneFrac); 138 "w=%.1f frac=%.3f region=%.1f min=%.1f x=%.1f w-x=%.1f", 139 w, mSettingsPanelDragzoneFrac, region, mSettingsPanelDragzoneMin, x, (w-x))); 142 if (region < mSettingsPanelDragzoneMin) region = mSettingsPanelDragzoneMin; 144 final boolean showSettings = isLayoutRtl ? (x < region) : (w - region < x);
|
/frameworks/base/media/java/android/media/ |
H A D | WebVttRenderer.java | 710 TextTrackRegion region = new TextTrackRegion(); 720 region.mId = value; 723 region.mWidth = parseFloatPercentage(value); 725 log_warning("region setting", name, 732 region.mLines = lines; 734 log_warning("region setting", name, "is negative", value); 737 log_warning("region setting", name, "is not numeric", value); 743 log_warning("region setting", name, "contains no comma", value); 754 log_warning("region setting", name, 761 log_warning("region settin 973 onRegionParsed(TextTrackRegion region) argument 1071 onRegionParsed(TextTrackRegion region) argument 1511 RegionLayout(Context context, TextTrackRegion region, CaptionStyle captionStyle, float fontSize) argument [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | SlidingDrawer.java | 588 final Rect region = mInvalidate; 591 region.set(frame); 593 region.union(frame.left, frame.top - deltaY, frame.right, frame.bottom - deltaY); 594 region.union(0, frame.bottom - deltaY, getWidth(), 597 invalidate(region); 618 final Rect region = mInvalidate; 621 region.set(frame); 623 region.union(frame.left - deltaX, frame.top, frame.right - deltaX, frame.bottom); 624 region.union(frame.right - deltaX, 0, 627 invalidate(region); [all...] |
/frameworks/compile/mclinker/lib/Fragment/ |
H A D | FragmentLinker.cpp | 145 MemoryRegion* region = pOutput.request(0, pOutput.handler()->size()); local 147 uint8_t* data = region->getBuffer(); 195 MemoryRegion* region = pOutput.request(0, pOutput.handler()->size()); local 197 uint8_t* data = region->getBuffer();
|