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

12

/frameworks/base/libs/ui/tests/region/
H A DAndroid.mk5 region.cpp
12 LOCAL_MODULE:= test-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
H A DRegion.java39 /** Create an empty region
45 /** Return a copy of the specified region
47 public Region(Region region) { argument
49 nativeSetRegion(mNativeRegion, region.mNativeRegion);
52 /** Return a region set to the specified rectangle
59 /** Return a region set to the specified rectangle
66 /** Set the region to the empty region
72 /** Set the region to the specified region
74 set(Region region) argument
260 op(Region region, Op op) argument
268 op(Rect rect, Region region, Op op) argument
[all...]
/frameworks/base/core/jni/android/graphics/
H A DRegion.cpp19 static void Region_destructor(JNIEnv* env, jobject, SkRegion* region) { argument
20 SkASSERT(region);
21 delete region;
39 static jboolean Region_getBounds(JNIEnv* env, jobject, SkRegion* region, jobject rectBounds) { argument
40 GraphicsJNI::irect_to_jrect(region->getBounds(), env, rectBounds);
41 return !region->isEmpty();
44 static jboolean Region_getBoundaryPath(JNIEnv* env, jobject, const SkRegion* region, SkPath* path) { argument
45 return region->getBoundaryPath(path);
55 static jboolean Region_op1(JNIEnv* env, jobject, SkRegion* dst, jobject rectObject, const SkRegion* region, int op) { argument
58 return dst->op(ir, *region, (SkRegio
67 Region_isEmpty(JNIEnv* env, jobject region) argument
71 Region_isRect(JNIEnv* env, jobject region) argument
75 Region_isComplex(JNIEnv* env, jobject region) argument
79 Region_contains(JNIEnv* env, jobject region, int x, int y) argument
83 Region_quickContains(JNIEnv* env, jobject region, int left, int top, int right, int bottom) argument
87 Region_quickRejectIIII(JNIEnv* env, jobject region, int left, int top, int right, int bottom) argument
93 Region_quickRejectRgn(JNIEnv* env, jobject region, jobject other) argument
97 Region_translate(JNIEnv* env, jobject region, int x, int y, jobject dst) argument
127 Region_scale(JNIEnv* env, jobject region, jfloat scale, jobject dst) argument
148 SkRegion* region = new SkRegion; local
155 Region_writeToParcel(JNIEnv* env, jobject clazz, const SkRegion* region, jobject parcel) argument
190 RegionIter_constructor(JNIEnv* env, jobject, const SkRegion* region) argument
[all...]
H A DBitmapRegionDecoder.cpp223 SkIRect region; local
224 region.fLeft = start_x;
225 region.fTop = start_y;
226 region.fRight = start_x + width;
227 region.fBottom = start_y + height;
229 if (!brd->decodeRegion(bitmap, region, prefConfig, sampleSize)) {
H A DNinePatch.cpp164 SkRegion* region = NULL; local
165 NinePatch_Draw(NULL, bounds, *bitmap, *chunk, NULL, &region);
166 return (jint)region;
H A DGraphicsJNI.h42 static SkRegion* getNativeRegion(JNIEnv*, jobject region);
57 static jobject createRegion(JNIEnv* env, SkRegion* region);
H A DGraphics.cpp351 SkRegion* GraphicsJNI::getNativeRegion(JNIEnv* env, jobject region) argument
354 SkASSERT(region);
355 SkASSERT(env->IsInstanceOf(region, gRegion_class));
356 SkRegion* r = (SkRegion*)env->GetIntField(region, gRegion_nativeInstanceID);
398 jobject GraphicsJNI::createRegion(JNIEnv* env, SkRegion* region) argument
400 SkASSERT(region != NULL);
403 env->CallVoidMethod(obj, gRegion_constructorMethodID, (jint)region, 0);
/frameworks/base/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)
156 region lhs;
157 region rhs;
160 inline Spanner(const region
[all...]
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DRegion_Delegate.java331 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/base/tools/localize/
H A DConfiguration.cpp50 split_locale(const string& in, string* language, string* region) argument
56 region->clear();
66 region->assign(in.c_str()+3, 2);
H A Dfile_utils.cpp73 string language, region; local
76 region = "";
78 else if (!split_locale(locale, &language, &region)) {
86 if (region != "") {
88 result += region;
H A DConfiguration.h35 bool split_locale(const string& in, string* language, string* region);
/frameworks/base/core/java/android/widget/
H A DSlidingDrawer.java582 final Rect region = mInvalidate;
585 region.set(frame);
587 region.union(frame.left, frame.top - deltaY, frame.right, frame.bottom - deltaY);
588 region.union(0, frame.bottom - deltaY, getWidth(),
591 invalidate(region);
612 final Rect region = mInvalidate;
615 region.set(frame);
617 region.union(frame.left - deltaX, frame.top, frame.right - deltaX, frame.bottom);
618 region.union(frame.right - deltaX, 0,
621 invalidate(region);
[all...]
H A DFrameLayout.java389 public boolean gatherTransparentRegion(Region region) { argument
390 boolean opaque = super.gatherTransparentRegion(region);
391 if (region != null && mForeground != null) {
392 applyDrawableToTransparentRegion(mForeground, region);
/frameworks/base/core/java/android/view/
H A DIWindowSession.aidl90 void setTransparentRegion(IWindow window, in Region region);
H A DSurfaceView.java299 public boolean gatherTransparentRegion(Region region) { argument
301 return super.gatherTransparentRegion(region);
306 // this view draws, remove it from the transparent region
307 opaque = super.gatherTransparentRegion(region);
308 } else if (region != null) {
316 region.op(l, t, l+w, t+h, Region.Op.UNION);
H A DSurface.java377 public native void setTransparentRegionHint(Region region); argument
/frameworks/base/include/ui/
H A DRegion.h52 // the region becomes its bounds
116 // be sorted in Y and X and must not make the region invalid.
119 // flatten/unflatten a region to/from a raw buffer
190 region_iterator(const Region& region) argument
191 : b(region.begin()), e(region.end()) {
/frameworks/base/core/java/android/view/animation/
H A DAnimationSet.java270 final RectF region = mPreviousRegion;
271 region.set(left, top, right, bottom);
272 region.inset(-1.0f, -1.0f);
H A DAnimation.java884 // Enlarge the invalidate region to account for rounding errors
908 final RectF region = mPreviousRegion;
909 region.set(left, top, right, bottom);
910 // Enlarge the invalidate region to account for rounding errors
911 region.inset(-1.0f, -1.0f);
/frameworks/base/core/java/android/text/
H A DSpannableStringInternal.java335 private static String region(int start, int end) { method in class:SpannableStringInternal
342 region(start, end) +
350 region(start, end) +
356 region(start, end) +
H A DSpannableStringBuilder.java477 * if it was somewhere in the middle of the replaced region.
929 private static String region(int start, int end) { method in class:SpannableStringBuilder
936 region(start, end) +
944 region(start, end) +
950 region(start, end) +
/frameworks/base/include/media/
H A DToneGenerator.h176 // These supervisory tones are different depending on the region (USA/CANADA, JAPAN, rest of the world).
177 // When a tone in the range [FIRST_SUP_TONE, LAST_SUP_TONE] is requested, the region is determined
195 enum region { enum in class:android::ToneGenerator
/frameworks/base/libs/ui/
H A DRegion.cpp235 // This is our region rasterizer, which merges rects and spans together
236 // to obtain an optimal region.
375 region_operator<Rect>::region lhs_region(lhs_rects, lhs_count);
376 region_operator<Rect>::region rhs_region(rhs_rects, rhs_count, dx, dy);
478 region_operator<Rect>::region lhs_region(lhs_rects, lhs_count);
479 region_operator<Rect>::region rhs_region(&rhs, 1, dx, dy);

Completed in 910 milliseconds

12