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

12345

/frameworks/base/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";
/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.cpp47 const char* region) {
65 if (memcmp(lv.region, region, std::min(strlen(region), sizeof(lv.region))) != 0) {
66 return ::testing::AssertionFailure() << "expected " << region << " but got "
67 << std::string(lv.region, sizeof(lv.region)) << ".";
46 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.cpp101 SkRegion* region = NULL; local
102 NinePatch::Draw(NULL, bounds, bitmap, *chunk, NULL, &region);
104 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.h49 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/base/libs/androidfw/
H A DLocaleData.cpp30 inline uint32_t packLocale(const char* language, const char* region) { argument
32 (((uint8_t) region[0]) << 8u) | ((uint8_t) region[1]);
172 // the sake of stability, we consider the locale with the lower region
178 void localeDataComputeScript(char out[4], const char* language, const char* region) { argument
183 uint32_t lookup_key = packLocale(language, region);
186 // We couldn't find the locale. Let's try without the region
187 if (region[0] != '\0') {
211 bool localeDataIsCloseToUsEnglish(const char* region) { argument
212 const uint32_t locale = packLocale(ENGLISH_CHARS, region);
[all...]
/frameworks/base/services/core/
H A DAndroid.mk28 -D jack.transformations.boost-locked-region-priority=true \
29 -D jack.transformations.boost-locked-region-priority.classname=com.android.server.am.ActivityManagerService \
30 -D jack.transformations.boost-locked-region-priority.request=com.android.server.am.ActivityManagerService\#boostPriorityForLockedSection \
31 -D jack.transformations.boost-locked-region-priority.reset=com.android.server.am.ActivityManagerService\#resetPriorityAfterLockedSection
/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/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/native/services/inputflinger/
H A DInputWindow.cpp30 void InputWindowInfo::addTouchableRegion(const Rect& region) { argument
31 touchableRegion.orSelf(region);
/frameworks/base/libs/hwui/
H A DClipArea.h95 // region and path - intersected. if either is empty, don't use
127 ClipRegion(const SkRegion& region) argument
129 , region(region) {}
132 SkRegion region; member in struct:android::uirenderer::ClipRegion
149 void clipRegion(const SkRegion& region, SkRegion::Op op);
H A DSnapshot.cpp40 region = nullptr;
76 region = s->region;
78 region = nullptr;
86 void Snapshot::clipRegionTransformed(const SkRegion& region, SkRegion::Op op) { argument
88 mClipArea->clipRegion(region, op);
123 // region if the previous restore() call did not restore the clip
H A DLayerRenderer.cpp58 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();
280 layer->region.clear();
296 layer->region
[all...]
/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/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 439 milliseconds

12345