| /external/chromium_org/ui/gfx/ |
| rect_f.h | 20 class GFX_EXPORT RectF 21 : public RectBase<RectF, PointF, SizeF, InsetsF, Vector2dF, float> { 23 RectF() 24 : RectBase<RectF, PointF, SizeF, InsetsF, Vector2dF, float> 27 RectF(float width, float height) 28 : RectBase<RectF, PointF, SizeF, InsetsF, Vector2dF, float> 31 RectF(float x, float y, float width, float height) 32 : RectBase<RectF, PointF, SizeF, InsetsF, Vector2dF, float> 35 explicit RectF(const SizeF& size) 36 : RectBase<RectF, PointF, SizeF, InsetsF, Vector2dF, float [all...] |
| rect_f.cc | 17 template class RectBase<RectF, PointF, SizeF, InsetsF, Vector2dF, float>; 19 typedef class RectBase<RectF, PointF, SizeF, InsetsF, Vector2dF, 22 bool RectF::IsExpressibleAsRect() const { 28 std::string RectF::ToString() const { 34 RectF IntersectRects(const RectF& a, const RectF& b) { 35 RectF result = a; 40 RectF UnionRects(const RectF& a, const RectF& b) [all...] |
| rect_conversions.h | 13 // Returns the smallest Rect that encloses the given RectF. 14 GFX_EXPORT Rect ToEnclosingRect(const RectF& rect); 16 // Returns the largest Rect that is enclosed by the given RectF. 17 GFX_EXPORT Rect ToEnclosedRect(const RectF& rect); 19 // Returns the Rect after snapping the corners of the RectF to an integer grid. 20 // This should only be used when the RectF you provide is expected to be an 21 // integer rect with floating point error. If it is an arbitrary RectF, then 23 GFX_EXPORT Rect ToNearestRect(const RectF& rect); 25 // Returns true if the Rect produced after snapping the corners of the RectF 28 const gfx::RectF& rect, float distance) [all...] |
| rect_unittest.cc | 357 center = RectF(0, 0, 20, 20).CenterPoint(); 361 center = RectF(10, 10, 20, 20).CenterPoint(); 365 center = RectF(11, 11, 20, 20).CenterPoint(); 369 center = RectF(10, 10, 0, 20).CenterPoint(); 371 center = RectF(10, 10, 20, 0).CenterPoint(); 375 center = RectF(10, 10, 21, 21).CenterPoint(); 379 center = RectF(11, 11, 21, 21).CenterPoint(); 419 RectF fsrc(10.5f, 20.5f, 30.5f, 40.5f); 425 EXPECT_EQ(gfx::RectF(isrc).ToString(), SkRectToRectF(skrect).ToString()); 469 RectF r2(tests[i].x2, tests[i].y2, tests[i].w2, tests[i].h2) [all...] |
| /cts/tests/tests/graphics/src/android/graphics/cts/ |
| RectFTest.java | 21 import android.graphics.RectF; 27 private RectF mRectF; 38 // new the RectF instance 39 mRectF = new RectF(); 42 // new the RectF instance 43 mRectF = new RectF(1.5f, 2.5f, 20.3f, 40.9f); 46 RectF rectF = new RectF(1.5f, 2.5f, 20.3f, 40.9f); 47 // new the RectF instanc [all...] |
| PathTest.java | 22 import android.graphics.RectF; 47 RectF rect = new RectF(LEFT, TOP, RIGHT, BOTTOM); 155 RectF oval = new RectF(LEFT, TOP, RIGHT, BOTTOM); 164 RectF oval = new RectF(LEFT, TOP, RIGHT, BOTTOM); 171 RectF expected = new RectF(0.0f, 0.0f, 0.0f, 0.0f); 175 RectF bounds = new RectF() [all...] |
| /packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
| RedEyeCandidate.java | 19 import android.graphics.RectF; 22 RectF mRect = new RectF(); 23 RectF mBounds = new RectF(); 30 public RedEyeCandidate(RectF rect, RectF bounds) { 43 public boolean intersect(RectF rect) { 47 public RectF getRect() {
|
| FilterCropRepresentation.java | 19 import android.graphics.RectF; 35 RectF mCrop = getNil(); 37 public FilterCropRepresentation(RectF crop) { 77 public RectF getCrop() { 78 return new RectF(mCrop); 81 public void getCrop(RectF r) { 85 public void setCrop(RectF crop) { 96 public static void findScaledCrop(RectF crop, int bitmapWidth, int bitmapHeight) { 107 public static void findNormalizedCrop(RectF crop, int bitmapWidth, int bitmapHeight) { 141 private static final RectF sNilRect = new RectF(0, 0, 1, 1) [all...] |
| /external/chromium_org/cc/trees/ |
| damage_tracker.h | 34 void DidDrawDamagedArea() { current_damage_rect_ = gfx::RectF(); } 35 void AddDamageNextUpdate(gfx::RectF dmg) { current_damage_rect_.Union(dmg); } 44 gfx::RectF current_damage_rect() { return current_damage_rect_; } 49 gfx::RectF TrackDamageFromActiveLayers( 52 gfx::RectF TrackDamageFromSurfaceMask(LayerImpl* target_surface_mask_layer); 53 gfx::RectF TrackDamageFromLeftoverRects(); 58 void ExtendDamageForLayer(LayerImpl* layer, gfx::RectF* target_damage_rect); 60 gfx::RectF* target_damage_rect); 65 void Update(const gfx::RectF& rect, unsigned int mailboxId) { 76 gfx::RectF rect_ [all...] |
| /external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/ |
| FindMatchRectsDetails.java | 7 import android.graphics.RectF; 17 public final RectF[] rects; 20 public final RectF activeRect; 22 public FindMatchRectsDetails(int version, RectF[] rects, RectF activeRect) {
|
| ChromeWebContentsDelegateAndroid.java | 8 import android.graphics.RectF; 42 private static RectF createRectF(float x, float y, float right, float bottom) { 43 return new RectF(x, y, right, bottom); 56 int version, int numRects, RectF activeRect) { 57 return new FindMatchRectsDetails(version, new RectF[numRects], activeRect); 62 FindMatchRectsDetails findMatchRectsDetails, int index, RectF rect) {
|
| /packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
| RectUtils.java | 21 import android.graphics.RectF; 43 final RectF fullRectF = new RectF(fullRect); 44 final RectF partialRectF = new RectF(partialRect); 60 final RectF rectF = new RectF(rect); 63 matrix.mapRect(rectF); 64 rect.set((int) rectF.left, (int) rectF.top, (int) rectF.right, (int) rectF.bottom) [all...] |
| /external/chromium_org/cc/resources/ |
| layer_painter.h | 14 class RectF; 24 gfx::RectF* opaque) = 0;
|
| /frameworks/base/graphics/java/android/graphics/drawable/shapes/ |
| RectShape.java | 21 import android.graphics.RectF; 30 private RectF mRect = new RectF(); 48 * Returns the RectF that defines this rectangle's bounds. 50 protected final RectF rect() { 57 shape.mRect = new RectF(mRect);
|
| RoundRectShape.java | 22 import android.graphics.RectF; 33 private RectF mInset; 36 private RectF mInnerRect; 48 * @param inset A RectF that specifies the distance from the inner 58 public RoundRectShape(float[] outerRadii, RectF inset, 71 mInnerRect = new RectF(); 85 RectF r = rect(); 111 shape.mInset = new RectF(mInset); 112 shape.mInnerRect = new RectF(mInnerRect);
|
| /packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
| ImageRedEye.java | 25 import android.graphics.RectF; 33 private RectF mCurrentRect = null; 63 mCurrentRect = new RectF(); 78 RectF r = new RectF(mCurrentRect); 80 RectF r2 = new RectF(mCurrentRect); 103 RectF drawRect = new RectF(mCurrentRect); 112 RectF rect = candidate.getRect() [all...] |
| /external/chromium_org/cc/layers/ |
| content_layer_client.h | 14 class RectF; 23 gfx::RectF* opaque) = 0;
|
| /packages/apps/Camera2/src/com/android/camera/crop/ |
| CropDrawingUtils.java | 24 import android.graphics.RectF; 30 public static void drawRuleOfThird(Canvas canvas, RectF bounds) { 49 public static void drawCropRect(Canvas canvas, RectF bounds) { 57 public static void drawShade(Canvas canvas, RectF bounds) { 64 RectF r = new RectF(); 84 RectF bounds, boolean fixedAspect, int selection) { 115 public static void drawWallpaperSelectionFrame(Canvas canvas, RectF cropBounds, float spotX, 121 RectF r1 = new RectF(cx - sx / 2, cy - sy / 2, cx + sx / 2, cy + sy / 2) [all...] |
| CropObject.java | 20 import android.graphics.RectF; 51 public CropObject(RectF outerBound, RectF innerBound, int outerAngle) { 55 public void resetBoundsTo(RectF inner, RectF outer) { 59 public void getInnerBounds(RectF r) { 63 public void getOuterBounds(RectF r) { 67 public RectF getInnerBounds() { 71 public RectF getOuterBounds() { 93 RectF inner = mBoundedRect.getInner() [all...] |
| BoundedRect.java | 20 import android.graphics.RectF; 30 private RectF outer; 31 private RectF inner; 36 outer = new RectF(outerRect); 37 inner = new RectF(innerRect); 44 public BoundedRect(float rotation, RectF outerRect, RectF innerRect) { 46 outer = new RectF(outerRect); 47 inner = new RectF(innerRect); 54 public void resetTo(float rotation, RectF outerRect, RectF innerRect) [all...] |
| /packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/ |
| CropDrawingUtils.java | 24 import android.graphics.RectF; 30 public static void drawRuleOfThird(Canvas canvas, RectF bounds) { 49 public static void drawCropRect(Canvas canvas, RectF bounds) { 57 public static void drawShade(Canvas canvas, RectF bounds) { 64 RectF r = new RectF(); 84 RectF bounds, boolean fixedAspect, int selection) { 115 public static void drawWallpaperSelectionFrame(Canvas canvas, RectF cropBounds, float spotX, 121 RectF r1 = new RectF(cx - sx / 2, cy - sy / 2, cx + sx / 2, cy + sy / 2) [all...] |
| BoundedRect.java | 20 import android.graphics.RectF; 32 private RectF outer; 33 private RectF inner; 38 outer = new RectF(outerRect); 39 inner = new RectF(innerRect); 46 public BoundedRect(float rotation, RectF outerRect, RectF innerRect) { 48 outer = new RectF(outerRect); 49 inner = new RectF(innerRect); 56 public void resetTo(float rotation, RectF outerRect, RectF innerRect) [all...] |
| /cts/tests/tests/graphics/src/android/graphics/drawable/shapes/cts/ |
| RoundRectShapeTest.java | 23 import android.graphics.RectF; 38 new RoundRectShape(new float[8], new RectF(), new float[8]); 40 new RoundRectShape(new float[9], new RectF(), new float[9]); 44 new RoundRectShape(new float[8], new RectF(), null); 47 new RoundRectShape(new float[7], new RectF(), new float[8]); 52 new RoundRectShape(null, new RectF(), new float[8]); 55 new RoundRectShape(new float[8], new RectF(), new float[7]); 63 RectF inset = new RectF(6, 6, 6, 6); 84 RoundRectShape roundRectShape = new RoundRectShape(new float[8], new RectF(), new float[8]) [all...] |
| /packages/apps/Camera2/src/com/android/camera/ui/ |
| ZoomView.java | 25 import android.graphics.RectF; 52 private class DecodePartialBitmap extends AsyncTask<RectF, Void, Bitmap> { 55 protected Bitmap doInBackground(RectF... params) { 56 RectF endRect = params[0]; 60 RectF fullResRect = new RectF(0, 0, mFullResImageWidth - 1, mFullResImageHeight - 1); 67 rotationMatrix.mapRect(fullResRect, new RectF(0, 0, mFullResImageWidth - 1, 71 RectF visibleRect = new RectF(endRect); 79 RectF visibleAfterRotation = new RectF() [all...] |
| /development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
| Arcs.java | 40 private RectF[] mOvals; 41 private RectF mBigOval; 54 mOvals = new RectF[4]; 76 mBigOval = new RectF(40, 10, 280, 250); 78 mOvals[0] = new RectF( 10, 270, 70, 330); 79 mOvals[1] = new RectF( 90, 270, 150, 330); 80 mOvals[2] = new RectF(170, 270, 230, 330); 81 mOvals[3] = new RectF(250, 270, 310, 330); 89 private void drawArcs(Canvas canvas, RectF oval, boolean useCenter,
|