Searched refs:region (Results 1 - 25 of 120) sorted by relevance

12345

/frameworks/base/libs/androidfw/include/androidfw/
H A DLocaleData.h30 void localeDataComputeScript(char out[4], const char* language, const char* region);
32 bool localeDataIsCloseToUsEnglish(const char* region);
/frameworks/base/libs/hwui/tests/unit/
H A DBakedOpRendererTests.cpp33 EXPECT_TRUE(layer.region.isEmpty()) << "Repaint full layer should clear region";
40 EXPECT_TRUE(layer.region.isRect());
41 //ALOGD("bounds %d %d %d %d", RECT_ARGS(layer.region.getBounds()));
42 EXPECT_EQ(android::Rect(100, 0, 200, 200), layer.region.getBounds())
50 EXPECT_TRUE(layer.region.isEmpty())
51 << "Now right side being repainted, so region should be entirely clear";
H A DClipAreaTests.cpp157 // region
167 EXPECT_EQ(SkIRect::MakeWH(200, 200), clipRegion->region.getBounds())
168 << "Clip region should be 200x200";
232 // region
241 recordedClip.region.setPath(ovalPath, SkRegion(SkIRect::MakeWH(200, 200)));
251 EXPECT_EQ(SkIRect::MakeLTRB(60, 20, 160, 200), clipRegion->region.getBounds());
287 recordedClip.region.setPath(circlePath, SkRegion(SkIRect::MakeWH(100, 100)));
299 EXPECT_EQ(SkIRect::MakeLTRB(100, 100, 300, 300), clipRegion->region.getBounds());
303 SkRegion region(SkIRect::MakeLTRB(1, 2, 3, 4));
304 ClipArea::applyTransformToRegion(Matrix4::identity(), &region); local
[all...]
/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.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
/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
222 SkRegion* region = new SkRegion; local
232 const SkRegion* region = reinterpret_cast<SkRegion*>(regionHandle); local
278 const SkRegion* region = reinterpret_cast<SkRegion*>(regionHandle); local
[all...]
H A DNinePatch.cpp107 SkRegion* region = nullptr; local
116 if (!region) {
117 region = new SkRegion();
120 region->op(iterDst.round(), SkRegion::kUnion_Op);
126 return reinterpret_cast<jlong>(region);
/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);
/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.h50 struct region { struct in class:android::region_operator
55 inline region(const region& rhs) function in struct:android::region_operator::region
57 inline region(RECT const* _r, size_t _c) function in struct:android::region_operator::region
59 inline region(RECT const* _r, size_t _c, TYPE _dx, TYPE _dy) function in struct:android::region_operator::region
70 inline region_operator(uint32_t op, const region& lhs, const region& rhs)
162 region lhs;
163 region rhs;
166 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/base/libs/hwui/tests/common/scenes/
H A DRectGridAnimation.cpp40 SkRegion region;
43 region.op(xOffset, yOffset, xOffset + 1, yOffset + 1, SkRegion::kUnion_Op);
49 canvas.drawRegion(region, paint);
/frameworks/base/libs/hwui/
H A DClipArea.h95 // region and path - intersected. if either is empty, don't use
127 explicit ClipRegion(const SkRegion& region) argument
129 , region(region) {}
132 SkRegion region; member in struct:android::uirenderer::ClipRegion
181 static void applyTransformToRegion(const Matrix4& transform, SkRegion* region);
197 void clipRegion(const SkRegion& region, SkRegion::Op op);
H A DClipArea.cpp236 void ClipArea::clipRegion(const SkRegion& region, SkRegion::Op op) { argument
241 mClipRegion.op(region, op);
254 SkRegion region; local
255 regionFromPath(transformed, region);
257 mClipRegion.op(region, op);
303 // all clip areas that can be represented by a region.
400 return reinterpret_cast<const ClipRegion*>(scb)->region;
444 // region case
473 regionClip->region.op(mClipRect.toSkIRect(), other, SkRegion::kIntersect_Op);
476 regionClip->region
532 applyTransformToRegion(const Matrix4& transform, SkRegion* region) argument
[all...]
/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/java/android/accessibilityservice/
H A DIAccessibilityServiceClient.aidl44 void onMagnificationChanged(in Region region, float scale, float centerX, float centerY);
/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/services/core/
H A DAndroid.mk40 -D jack.transformations.boost-locked-region-priority=true \
41 -D jack.transformations.boost-locked-region-priority.classname=com.android.server.am.ActivityManagerService,com.android.server.wm.WindowHashMap \
42 -D jack.transformations.boost-locked-region-priority.request=com.android.server.am.ActivityManagerService\#boostPriorityForLockedSection,com.android.server.wm.WindowManagerService\#boostPriorityForLockedSection \
43 -D jack.transformations.boost-locked-region-priority.reset=com.android.server.am.ActivityManagerService\#resetPriorityAfterLockedSection,com.android.server.wm.WindowManagerService\#resetPriorityAfterLockedSection
/frameworks/native/services/inputflinger/
H A DInputWindow.cpp30 void InputWindowInfo::addTouchableRegion(const Rect& region) { argument
31 touchableRegion.orSelf(region);
/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/script_api/
H A Drs_allocation_data.spec67 arg: uint32_t dstXoff, "X offset in the destination of the region to be set."
68 arg: uint32_t dstYoff, "Y offset in the destination of the region to be set."
71 arg: uint32_t width, "Width of the incoming region to update."
72 arg: uint32_t height, "Height of the incoming region to update."
78 summary: Copy a rectangular region of cells between allocations
80 Copies a rectangular region of cells from one allocation to another.
86 The function does not validate whether the the source or destination region

Completed in 1451 milliseconds

12345