/external/skia/tests/ |
PathOpsBuilderTest.cpp | 159 <clipPath id="clip-rect"> 160 <clipPath id="clip-rect"> 161 <clipPath id="clip-rect"> 162 <clipPath id="clip-rect"> 163 <rect x="10" y="30" width="0" height="60" /> 164 <rect x="10" y="30" width="0" height="60" /> 165 <rect x="10" y="30" width="100" height="60" /> 166 <rect x="10" y="30" width="32668" /> 167 <rect x="10" y="30" width="100" height="18446744073709551615" /> 168 <rect x="10" y="255" width="100" height="60" / [all...] |
/frameworks/native/libs/ui/tests/ |
Region_test.cpp | 21 #include <ui/Rect.h> 28 void checkVertTJunction(const Rect* lhs, const Rect* rhs) { 34 for (const Rect* current = r.begin(); current < r.end(); current++) { 35 for (const Rect* other = current - 1; other >= r.begin(); other--) { 40 for (const Rect* other = current + 1; other < r.end(); other++) { 63 r.orSelf(Rect(1, 0, 2, 1)); 64 r.orSelf(Rect(0, 1, 3, 2)); 71 r.orSelf(Rect(1, 0, 2, 1)); 72 r.orSelf(Rect(0, 2, 3, 3)) [all...] |
/external/dng_sdk/source/ |
dng_rect.h | 92 bool operator== (const dng_rect &rect) const; 94 bool operator!= (const dng_rect &rect) const 96 return !(*this == rect); 251 dng_rect_real64 (const dng_rect &rect) 252 : t ((real64) rect.t) 253 , l ((real64) rect.l) 254 , b ((real64) rect.b) 255 , r ((real64) rect.r) 264 bool operator== (const dng_rect_real64 &rect) const; 266 bool operator!= (const dng_rect_real64 &rect) cons [all...] |
/frameworks/base/core/java/android/animation/ |
RectEvaluator.java | 18 import android.graphics.Rect; 21 * This evaluator can be used to perform type interpolation between <code>Rect</code> values. 23 public class RectEvaluator implements TypeEvaluator<Rect> { 26 * When null, a new Rect is returned on every evaluate call. When non-null, 29 private Rect mRect; 32 * Construct a RectEvaluator that returns a new Rect on every evaluate call. 34 * {@link RectEvaluator#RectEvaluator(android.graphics.Rect)} should be used 42 * in {@link #evaluate(float, android.graphics.Rect, android.graphics.Rect)} calls. 44 * {@link #evaluate(float, android.graphics.Rect, android.graphics.Rect)} shoul [all...] |
/frameworks/support/transition/ics/android/support/transition/ |
RectEvaluator.java | 20 import android.graphics.Rect; 23 * This evaluator can be used to perform type interpolation between <code>Rect</code> values. 25 class RectEvaluator implements TypeEvaluator<Rect> { 28 * When null, a new Rect is returned on every evaluate call. When non-null, 31 private Rect mRect; 34 * Construct a RectEvaluator that returns a new Rect on every evaluate call. 36 * {@link RectEvaluator#RectEvaluator(android.graphics.Rect)} should be used 44 * in {@link #evaluate(float, android.graphics.Rect, android.graphics.Rect)} calls. 46 * {@link #evaluate(float, android.graphics.Rect, android.graphics.Rect)} shoul [all...] |
/external/libgdx/extensions/gdx-tools/src/com/badlogic/gdx/tools/texturepacker/ |
TexturePackerTest.java | 30 import com.badlogic.gdx.tools.texturepacker.TexturePacker.Rect; 56 Array<Rect> inputRects = new Array(); 58 Rect rect = new Rect(); local 59 rect.name = "rect" + i; 60 rect.height = 16 + random.nextInt(120); 61 rect.width = 16 + random.nextInt(240); 62 inputRects.add(rect); 65 Rect rect = new Rect(); local 87 Rect rect = page.outputRects.get(i); local 95 Rect rect = page.outputRects.get(i); local [all...] |
GridPacker.java | 21 import com.badlogic.gdx.tools.texturepacker.TexturePacker.Rect; 35 public Array<Page> pack (Array<Rect> inputRects) { 40 Rect rect = inputRects.get(i); local 41 cellWidth = Math.max(cellWidth, rect.width); 42 cellHeight = Math.max(cellHeight, rect.height); 57 private Page packPage (Array<Rect> inputRects, int cellWidth, int cellHeight) { 73 Rect rect = inputRects.removeIndex(i); local 74 rect.x = x 86 Rect rect = page.outputRects.get(i); local [all...] |
/frameworks/base/core/java/android/hardware/camera2/utils/ |
ParamsUtils.java | 20 import android.graphics.Rect; 37 * Create a {@link Rect} from a {@code Size} by creating a new rectangle with 46 public static Rect createRect(Size size) { 49 return new Rect(/*left*/0, /*top*/0, size.getWidth(), size.getHeight()); 53 * Create a {@link Rect} from a {@code RectF} by creating a new rectangle with 58 * @param size a non-{@code null} rect 62 * @throws NullPointerException if {@code rect} was {@code null} 64 public static Rect createRect(RectF rect) { 65 checkNotNull(rect, "rect must not be null") [all...] |
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/ |
StaggeredGridLayoutManagerWrapContentTest.java | 25 import android.graphics.Rect; 43 public StaggeredGridLayoutManagerWrapContentTest(Rect padding) { 48 public static List<Rect> params() { 50 new Rect(0, 0, 0, 0), 51 new Rect(5, 0, 0, 0), 52 new Rect(0, 3, 0, 0), 53 new Rect(0, 0, 2, 0), 54 new Rect(0, 0, 0, 7), 55 new Rect(3, 5, 7, 11) 75 Rect[] expected = new Rect[] [all...] |
/external/opencv/cvaux/src/ |
cvface.cpp | 93 //class RFace(rect based face) 120 inline bool RFace::isPointInRect(CvPoint p,CvRect rect) 122 if ( (p.x >= rect.x) && (p.y >= rect.y) && (p.x <= rect.x + rect.width) && (p.y <= rect.y + rect.height) ) 126 }//inline bool RFace::isPointInRect(CvPoint,CvRect rect) 138 CvRect Rect = *(CvRect*)lpCandidat 305 CvRect rect = *(CvRect*)m_lppFoundedFaceFeatures[i][j].GetContour(); local [all...] |
/external/opencv3/samples/java/sbt/src/main/scala/ |
ScalaDetectFaceDemo.scala | 22 // MatOfRect is a special container class for Rect. 29 for (rect <- faceDetections.toArray) { 32 new Point(rect.x, rect.y), 33 new Point(rect.x + rect.width, 34 rect.y + rect.height),
|
/external/skia/gm/ |
clipdrawdraw.cpp | 13 // clipRect(rect, noAA); 17 // drawRect(rect, noAA); 18 // can leave 1 pixel wide remnants of the first rect. 19 static void Draw(SkCanvas* canvas, const SkRect& rect) { 26 // draw a black rect through the clip 28 canvas->clipRect(rect); 32 // now draw the white rect on top 34 canvas->drawRect(rect, p);
|
pathinterior.cpp | 17 SkRect rect = r; local 18 rect.inset(r.width() / 8, r.height() / 8); 19 return rect; 41 SkRect rect; local 43 bool hasInterior = path.hasRectangularInterior(&rect); 57 canvas->drawRect(rect, paint); 64 const SkRect rect = { 0, 0, 80, 80 }; variable 65 const SkScalar RAD = rect.width()/8; 79 SkRect r = insetFirst ? inset(rect) : rect; [all...] |
/external/webrtc/webrtc/modules/desktop_capture/ |
cropped_desktop_frame.cc | 15 // A DesktopFrame that is a sub-rect of another DesktopFrame. 18 CroppedDesktopFrame(DesktopFrame* frame, const DesktopRect& rect); 27 CreateCroppedDesktopFrame(DesktopFrame* frame, const DesktopRect& rect) { 28 if (!DesktopRect::MakeSize(frame->size()).ContainsRect(rect)) { 33 return new CroppedDesktopFrame(frame, rect); 37 const DesktopRect& rect) 38 : DesktopFrame(rect.size(), 40 frame->GetFrameDataAtPos(rect.top_left()),
|
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/ |
AccessibilityNodeInfoHelper.java | 18 import android.graphics.Rect; 33 * @return null if node is null, else a Rect containing visible bounds 35 static Rect getVisibleBoundsInScreen(AccessibilityNodeInfo node, int width, int height) { 40 Rect nodeRect = new Rect(); 43 Rect displayRect = new Rect(); 52 return new Rect();
|
/frameworks/native/libs/ui/ |
Rect.cpp | 18 #include <ui/Rect.h> 22 const Rect Rect::INVALID_RECT{0, 0, -1, -1}; 23 const Rect Rect::EMPTY_RECT{0, 0, 0, 0}; 33 void Rect::makeInvalid() { 40 bool Rect::operator <(const Rect& rhs) const { 59 Rect& Rect::offsetTo(int32_t x, int32_t y) [all...] |
/external/skia/src/animator/ |
SkDrawClip.cpp | 21 SK_MEMBER(rect, Rect) 28 SkDrawClip::SkDrawClip() : rect(nullptr), path(nullptr) { 32 if (rect != nullptr) 33 maker.fCanvas->clipRect(rect->fRect);
|
SkDrawPoint.cpp | 41 void SkDrawPoint::getBounds(SkRect* rect ) { 42 rect->fLeft = rect->fRight = fPoint.fX; 43 rect->fTop = rect->fBottom = fPoint.fY;
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
OutlineTest.java | 21 import android.graphics.Rect; 37 Rect outRect = new Rect(); 65 Rect outRect = new Rect(); 73 outline.setRect(new Rect()); 79 assertEquals(new Rect(10, 10, 20, 20), outRect); 82 outline.setRect(new Rect(10, 10, 20, 20)); 85 assertEquals(new Rect(10, 10, 20, 20), outRect); 92 Rect outRect = new Rect() [all...] |
/frameworks/base/libs/hwui/tests/unit/ |
MatrixTests.cpp | 20 #include "Rect.h" 30 // non-zero empty rect, so sorting x/y would make rect non-empty 31 Rect empty(15, 20, 15, 100); 34 EXPECT_EQ(Rect(170, 215, 250, 1015), empty); 36 << "Empty 'line' rect doesn't remain empty when skewed."; 44 // non-zero empty rect, so sorting x/y would make rect non-empty 45 Rect lineRect(0, 100); 49 << "Empty 'line' rect doesn't remain empty when rotated." [all...] |
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/ |
MediaPickerMessagePartData.java | 19 import android.graphics.Rect; 23 private final Rect mStartRect; 25 public MediaPickerMessagePartData(final Rect startRect, final String contentType, 30 public MediaPickerMessagePartData(final Rect startRect, final String messageText, 36 public MediaPickerMessagePartData(final Rect startRect, final String contentType, 43 public MediaPickerMessagePartData(final Rect startRect, final String messageText, 51 * @return The starting rect to animate the attachment preview from in order to perform a smooth 54 public Rect getStartRect() { 59 * Modify the start rect of the attachment. 61 public void setStartRect(final Rect startRect) [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/ |
TaskViewTransform.java | 22 import android.graphics.Rect; 37 public static final Property<View, Rect> LTRB = 38 new Property<View, Rect>(Rect.class, "leftTopRightBottom") { 40 private Rect mTmpRect = new Rect(); 43 public void set(View v, Rect ltrb) { 48 public Rect get(View v) { 62 // This is a window-space rect used for positioning the task in the stack and freeform workspace 63 public RectF rect = new RectF() field in class:TaskViewTransform [all...] |
/external/skia/tools/lua/ |
skia.lua | 20 Sk.Rect = { left = 0, top = 0, right = 0, bottom = 0 } 21 Sk.Rect.__index = Sk.Rect 23 function Sk.Rect.new(l, t, r, b) 24 local rect 27 rect = { left = l, top = t, right = r, bottom = b } 30 rect = { right = l, bottom = t } 33 rect = {} 35 setmetatable(rect, Sk.Rect) [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/stackdivider/ |
WindowManagerProxy.java | 23 import android.graphics.Rect; 43 private final Rect mDockedRect = new Rect(); 44 private final Rect mTempDockedTaskRect = new Rect(); 45 private final Rect mTempDockedInsetRect = new Rect(); 46 private final Rect mTempOtherTaskRect = new Rect(); 47 private final Rect mTempOtherInsetRect = new Rect() [all...] |
/packages/services/Car/service/src/com/android/car/ |
CarCameraService.java | 22 import android.graphics.Rect; 124 public Rect getCameraCrop(int cameraType) { 125 Rect rect; local 128 rect = nativeGetCameraCrop(device); 130 if(DBG && (rect != null)) { 131 Log.d(TAG, "getCameraCrop called: " + rect.toString()); 133 return rect; 137 public void setCameraCrop(int cameraType, Rect rect) { 149 Rect rect; local [all...] |