/frameworks/base/libs/ui/tests/region/ |
H A D | Android.mk | 5 region.cpp 12 LOCAL_MODULE:= test-region
|
/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 | 47 /** Create an empty region 53 /** Return a copy of the specified region 55 public Region(Region region) { argument 57 nativeSetRegion(mNativeRegion, region.mNativeRegion); 60 /** Return a region set to the specified rectangle 67 /** Return a region set to the specified rectangle 74 /** Set the region to the empty region 80 /** Set the region to the specified region 82 set(Region region) argument 268 op(Region region, Op op) argument 276 op(Rect rect, Region region, Op op) argument [all...] |
/frameworks/base/core/jni/android/graphics/ |
H A D | Region.cpp | 41 static void Region_destructor(JNIEnv* env, jobject, SkRegion* region) { argument 42 SkASSERT(region); 43 delete region; 61 static jboolean Region_getBounds(JNIEnv* env, jobject, SkRegion* region, jobject rectBounds) { argument 62 GraphicsJNI::irect_to_jrect(region->getBounds(), env, rectBounds); 63 return !region->isEmpty(); 66 static jboolean Region_getBoundaryPath(JNIEnv* env, jobject, const SkRegion* region, SkPath* path) { argument 67 return region->getBoundaryPath(path); 77 static jboolean Region_op1(JNIEnv* env, jobject, SkRegion* dst, jobject rectObject, const SkRegion* region, int op) { argument 80 return dst->op(ir, *region, (SkRegio 89 Region_isEmpty(JNIEnv* env, jobject region) argument 93 Region_isRect(JNIEnv* env, jobject region) argument 97 Region_isComplex(JNIEnv* env, jobject region) argument 101 Region_contains(JNIEnv* env, jobject region, int x, int y) argument 105 Region_quickContains(JNIEnv* env, jobject region, int left, int top, int right, int bottom) argument 109 Region_quickRejectIIII(JNIEnv* env, jobject region, int left, int top, int right, int bottom) argument 115 Region_quickRejectRgn(JNIEnv* env, jobject region, jobject other) argument 119 Region_translate(JNIEnv* env, jobject region, int x, int y, jobject dst) argument 149 Region_scale(JNIEnv* env, jobject region, jfloat scale, jobject dst) argument 157 Region_toString(JNIEnv* env, jobject clazz, SkRegion* region) argument 177 SkRegion* region = new SkRegion; local 184 Region_writeToParcel(JNIEnv* env, jobject clazz, const SkRegion* region, jobject parcel) argument 219 RegionIter_constructor(JNIEnv* env, jobject, const SkRegion* region) argument [all...] |
H A D | BitmapRegionDecoder.cpp | 217 SkIRect region; local 218 region.fLeft = start_x; 219 region.fTop = start_y; 220 region.fRight = start_x + width; 221 region.fBottom = start_y + height; 223 if (!brd->decodeRegion(bitmap, region, prefConfig, sampleSize)) {
|
H A D | NinePatch.cpp | 163 SkRegion* region = NULL; local 164 NinePatch_Draw(NULL, bounds, *bitmap, *chunk, NULL, ®ion); 165 return (jint)region;
|
H A D | Graphics.cpp | 335 SkRegion* GraphicsJNI::getNativeRegion(JNIEnv* env, jobject region) argument 338 SkASSERT(region); 339 SkASSERT(env->IsInstanceOf(region, gRegion_class)); 340 SkRegion* r = (SkRegion*)env->GetIntField(region, gRegion_nativeInstanceID); 378 jobject GraphicsJNI::createRegion(JNIEnv* env, SkRegion* region) argument 380 SkASSERT(region != NULL); 382 static_cast<jint>(reinterpret_cast<uintptr_t>(region)), 0);
|
H A D | GraphicsJNI.h | 45 static SkRegion* getNativeRegion(JNIEnv*, jobject region); 61 static jobject createRegion(JNIEnv* env, SkRegion* region);
|
/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/base/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) 156 region lhs; 157 region rhs; 160 inline Spanner(const region [all...] |
/frameworks/base/tools/localize/ |
H A D | Configuration.cpp | 50 split_locale(const string& in, string* language, string* region) argument 56 region->clear(); 66 region->assign(in.c_str()+3, 2);
|
H A D | file_utils.cpp | 73 string language, region; local 76 region = ""; 78 else if (!split_locale(locale, &language, ®ion)) { 86 if (region != "") { 88 result += region;
|
H A D | Configuration.h | 35 bool split_locale(const string& in, string* language, string* region);
|
/frameworks/base/libs/hwui/ |
H A D | Snapshot.h | 49 region = NULL; 75 region = s->region; 77 region = NULL; 86 * Indicates that the clip region was modified. When this 256 * Current clip region. The clip is stored in canvas-space coordinates, 262 * The ancestor layer's dirty region. 264 Region* region; member in class:android::uirenderer::Snapshot
|
H A D | LayerRenderer.cpp | 52 mLayer->region.clear(); 57 mLayer->region.subtractSelf(r); 82 // Dirty region tracking 94 return &mLayer->region; 109 if (mLayer->region.isRect() || mLayer->region.isEmpty()) { 124 const android::Rect* rects = mLayer->region.getArray(&count); 205 layer->region.clear(); 275 layer->region.clear(); 290 layer->region [all...] |
H A D | Layer.h | 62 * Sets this layer's region to a rectangle. Computes the appropriate 66 const android::Rect& bounds = region.getBounds(); 220 * Dirty region indicating what parts of the layer 223 Region region; member in struct:android::uirenderer::Layer 225 * If the region is a rectangle, coordinates of the 226 * region are stored here.
|
H A D | OpenGLRenderer.h | 150 * Marks the specified region as dirty at the specified bounds. 152 void dirtyLayerUnchecked(Rect& bounds, Region* region); 162 * Returns the region of the current layer. 165 return mSnapshot->region; 172 return (mSnapshot->flags & Snapshot::kFlagFboTarget) && mSnapshot->region; 245 * Compose the specified layer as a region. 539 void drawRegionRects(const Region& region);
|
/frameworks/base/core/java/android/widget/ |
H A D | SlidingDrawer.java | 582 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 D | FrameLayout.java | 484 public boolean gatherTransparentRegion(Region region) { argument 485 boolean opaque = super.gatherTransparentRegion(region); 486 if (region != null && mForeground != null) { 487 applyDrawableToTransparentRegion(mForeground, region);
|
/frameworks/base/core/java/android/text/ |
H A D | SpannableStringInternal.java | 335 private static String region(int start, int end) { method in class:SpannableStringInternal 342 region(start, end) + 350 region(start, end) + 356 region(start, end) +
|
/frameworks/base/core/java/android/view/ |
H A D | IWindowSession.aidl | 102 void setTransparentRegion(IWindow window, in Region region);
|
H A D | SurfaceView.java | 283 public boolean gatherTransparentRegion(Region region) { argument 285 return super.gatherTransparentRegion(region); 290 // this view draws, remove it from the transparent region 291 opaque = super.gatherTransparentRegion(region); 292 } else if (region != null) { 300 region.op(l, t, l+w, t+h, Region.Op.UNION);
|
/frameworks/base/core/java/android/view/animation/ |
H A D | Animation.java | 964 // Enlarge the invalidate region to account for rounding errors 988 final RectF region = mPreviousRegion; 989 region.set(left, top, right, bottom); 990 // Enlarge the invalidate region to account for rounding errors 991 region.inset(-1.0f, -1.0f);
|
H A D | AnimationSet.java | 336 final RectF region = mPreviousRegion; 337 region.set(left, top, right, bottom); 338 region.inset(-1.0f, -1.0f);
|
/frameworks/base/include/media/ |
H A D | ToneGenerator.h | 176 // 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
|