Home
last modified time | relevance | path

Searched refs:region (Results 1 – 25 of 55) sorted by relevance

123

/frameworks/base/core/jni/android/graphics/
DRegion.cpp19 static void Region_destructor(JNIEnv* env, jobject, SkRegion* region) { in Region_destructor() argument
20 SkASSERT(region); in Region_destructor()
21 delete region; in Region_destructor()
39 static jboolean Region_getBounds(JNIEnv* env, jobject, SkRegion* region, jobject rectBounds) { in Region_getBounds() argument
40 GraphicsJNI::irect_to_jrect(region->getBounds(), env, rectBounds); in Region_getBounds()
41 return !region->isEmpty(); in Region_getBounds()
44 static jboolean Region_getBoundaryPath(JNIEnv* env, jobject, const SkRegion* region, SkPath* path) { in Region_getBoundaryPath() argument
45 return region->getBoundaryPath(path); in Region_getBoundaryPath()
55 …gion_op1(JNIEnv* env, jobject, SkRegion* dst, jobject rectObject, const SkRegion* region, int op) { in Region_op1() argument
58 return dst->op(ir, *region, (SkRegion::Op)op); in Region_op1()
[all …]
DBitmapRegionDecoder.cpp223 SkIRect region; in nativeDecodeRegion() local
224 region.fLeft = start_x; in nativeDecodeRegion()
225 region.fTop = start_y; in nativeDecodeRegion()
226 region.fRight = start_x + width; in nativeDecodeRegion()
227 region.fBottom = start_y + height; in nativeDecodeRegion()
229 if (!brd->decodeRegion(bitmap, region, prefConfig, sampleSize)) { in nativeDecodeRegion()
DNinePatch.cpp164 SkRegion* region = NULL; in getTransparentRegion() local
165 NinePatch_Draw(NULL, bounds, *bitmap, *chunk, NULL, &region); in getTransparentRegion()
166 return (jint)region; in getTransparentRegion()
DGraphics.cpp351 SkRegion* GraphicsJNI::getNativeRegion(JNIEnv* env, jobject region) in getNativeRegion() argument
354 SkASSERT(region); in getNativeRegion()
355 SkASSERT(env->IsInstanceOf(region, gRegion_class)); in getNativeRegion()
356 SkRegion* r = (SkRegion*)env->GetIntField(region, gRegion_nativeInstanceID); in getNativeRegion()
398 jobject GraphicsJNI::createRegion(JNIEnv* env, SkRegion* region) in createRegion() argument
400 SkASSERT(region != NULL); in createRegion()
403 env->CallVoidMethod(obj, gRegion_constructorMethodID, (jint)region, 0); in createRegion()
DGraphicsJNI.h42 static SkRegion* getNativeRegion(JNIEnv*, jobject region);
57 static jobject createRegion(JNIEnv* env, SkRegion* region);
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
DRegion_Delegate.java331 Region_Delegate region = sManager.getDelegate(native_region); in nativeGetBounds() local
332 if (region == null) { in nativeGetBounds()
336 Rectangle bounds = region.mArea.getBounds(); in nativeGetBounds()
351 Region_Delegate region = sManager.getDelegate(native_region); in nativeGetBoundaryPath() local
352 if (region == null) { in nativeGetBoundaryPath()
361 if (region.mArea.isEmpty()) { in nativeGetBoundaryPath()
366 path.setPathIterator(region.mArea.getPathIterator(new AffineTransform())); in nativeGetBoundaryPath()
373 Region_Delegate region = sManager.getDelegate(native_dst); in nativeOp() local
374 if (region == null) { in nativeOp()
378 region.mArea = combineShapes(region.mArea, in nativeOp()
[all …]
/frameworks/base/include/private/ui/
DRegionHelper.h49 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()
156 region lhs;
157 region rhs;
160 inline Spanner(const region& lhs, const region& rhs) in Spanner()
189 void advance(region& reg, TYPE& aTop, TYPE& aBottom) { in advance()
213 region lhs;
[all …]
/frameworks/base/graphics/java/android/graphics/
DRegion.java47 public Region(Region region) { in Region() argument
49 nativeSetRegion(mNativeRegion, region.mNativeRegion); in Region()
74 public boolean set(Region region) { in set() argument
75 return nativeSetRegion(mNativeRegion, region.mNativeRegion); in set()
260 public boolean op(Region region, Op op) { in op() argument
261 return op(this, region, op); in op()
268 public boolean op(Rect rect, Region region, Op op) { in op() argument
269 return nativeOp(mNativeRegion, rect, region.mNativeRegion, in op()
DRegionIterator.java28 public RegionIterator(Region region) { in RegionIterator() argument
29 mNativeIter = nativeConstructor(region.ni()); in RegionIterator()
DCanvas.java586 public boolean clipRegion(Region region, Region.Op op) { in clipRegion() argument
587 return native_clipRegion(mNativeCanvas, region.ni(), op.nativeInt); in clipRegion()
600 public boolean clipRegion(Region region) { in clipRegion() argument
601 return clipRegion(region, Region.Op.INTERSECT); in clipRegion()
/frameworks/base/tools/localize/
Dfile_utils.cpp73 string language, region; in translated_file_name() local
76 region = ""; in translated_file_name()
78 else if (!split_locale(locale, &language, &region)) { in translated_file_name()
86 if (region != "") { in translated_file_name()
88 result += region; in translated_file_name()
DConfiguration.cpp50 split_locale(const string& in, string* language, string* region) in split_locale() argument
56 region->clear(); in split_locale()
66 region->assign(in.c_str()+3, 2); in split_locale()
DConfiguration.h35 bool split_locale(const string& in, string* language, string* region);
/frameworks/base/libs/ui/tests/region/
DAndroid.mk5 region.cpp
12 LOCAL_MODULE:= test-region
/frameworks/base/core/java/android/widget/
DSlidingDrawer.java582 final Rect region = mInvalidate; in moveHandle() local
585 region.set(frame); in moveHandle()
587 region.union(frame.left, frame.top - deltaY, frame.right, frame.bottom - deltaY); in moveHandle()
588 region.union(0, frame.bottom - deltaY, getWidth(), in moveHandle()
591 invalidate(region); in moveHandle()
612 final Rect region = mInvalidate; in moveHandle() local
615 region.set(frame); in moveHandle()
617 region.union(frame.left - deltaX, frame.top, frame.right - deltaX, frame.bottom); in moveHandle()
618 region.union(frame.right - deltaX, 0, in moveHandle()
621 invalidate(region); in moveHandle()
DFrameLayout.java389 public boolean gatherTransparentRegion(Region region) { in gatherTransparentRegion() argument
390 boolean opaque = super.gatherTransparentRegion(region); in gatherTransparentRegion()
391 if (region != null && mForeground != null) { in gatherTransparentRegion()
392 applyDrawableToTransparentRegion(mForeground, region); in gatherTransparentRegion()
/frameworks/base/include/ui/
DRegion.h190 region_iterator(const Region& region) in region_iterator()
191 : b(region.begin()), e(region.end()) { in region_iterator()
/frameworks/base/core/java/android/text/
DSpannableStringInternal.java335 private static String region(int start, int end) { in region() method in SpannableStringInternal
342 region(start, end) + in checkRange()
350 region(start, end) + in checkRange()
356 region(start, end) + in checkRange()
/frameworks/base/core/java/android/view/
DSurfaceView.java299 public boolean gatherTransparentRegion(Region region) { in gatherTransparentRegion() argument
301 return super.gatherTransparentRegion(region); in gatherTransparentRegion()
307 opaque = super.gatherTransparentRegion(region); in gatherTransparentRegion()
308 } else if (region != null) { in gatherTransparentRegion()
316 region.op(l, t, l+w, t+h, Region.Op.UNION); in gatherTransparentRegion()
DIWindowSession.aidl90 void setTransparentRegion(IWindow window, in Region region); in setTransparentRegion() argument
DViewGroup.java1499 final RectF region = mInvalidateRegion; in drawChild() local
1528 a.getInvalidateRegion(0, 0, cr - cl, cb - ct, region, transformToApply); in drawChild()
1534 final int left = cl + (int) region.left; in drawChild()
1535 final int top = ct + (int) region.top; in drawChild()
1536 invalidate(left, top, left + (int) region.width(), top + (int) region.height()); in drawChild()
3294 public boolean gatherTransparentRegion(Region region) { in gatherTransparentRegion() argument
3297 if (meOpaque && region == null) { in gatherTransparentRegion()
3301 super.gatherTransparentRegion(region); in gatherTransparentRegion()
3308 if (!child.gatherTransparentRegion(region)) { in gatherTransparentRegion()
/frameworks/base/core/java/android/view/animation/
DAnimation.java908 final RectF region = mPreviousRegion; in initializeInvalidateRegion() local
909 region.set(left, top, right, bottom); in initializeInvalidateRegion()
911 region.inset(-1.0f, -1.0f); in initializeInvalidateRegion()
DAnimationSet.java270 final RectF region = mPreviousRegion; in initializeInvalidateRegion() local
271 region.set(left, top, right, bottom); in initializeInvalidateRegion()
272 region.inset(-1.0f, -1.0f); in initializeInvalidateRegion()
/frameworks/base/libs/ui/
DRegion.cpp375 region_operator<Rect>::region lhs_region(lhs_rects, lhs_count); in boolean_operation()
376 region_operator<Rect>::region rhs_region(rhs_rects, rhs_count, dx, dy); in boolean_operation()
478 region_operator<Rect>::region lhs_region(lhs_rects, lhs_count); in boolean_operation()
479 region_operator<Rect>::region rhs_region(&rhs, 1, dx, dy); in boolean_operation()
/frameworks/base/include/media/
DToneGenerator.h195 enum region { enum

123