/prebuilts/go/darwin-x86/src/math/cmplx/ |
rect.go | 9 // Rect returns the complex number x with polar coordinates r, ?. 10 func Rect(r, ? float64) complex128 {
|
/prebuilts/go/linux-x86/src/math/cmplx/ |
rect.go | 9 // Rect returns the complex number x with polar coordinates r, ?. 10 func Rect(r, ? float64) complex128 {
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/common/layout/ |
RelativeLayoutRuleTest.java | 24 import com.android.ide.common.api.Rect; 29 protected INode dragInto(Rect dragBounds, Point dragPoint, Point secondDragPoint, 32 .bounds(new Rect(0, 0, 240, 480)).add( 35 new Rect(70, 200, 100, 80)).set(ANDROID_URI, 39 new Rect(70, 280, 100, 80)).set(ANDROID_URI, "layout_below", 47 protected INode dragInto(Rect dragBounds, Point dragPoint, Point secondDragPoint, 65 new Rect(0, 0, 105, 80), new Point(30, -10), null, 2, -1, 67 "useStyle(DROP_RECIPIENT), drawRect(Rect[0,0,240,480])", 70 "useStyle(DROP_ZONE), drawRect(Rect[0,-10,240,20])", 71 "useStyle(DROP_ZONE_ACTIVE), fillRect(Rect[0,-10,240,20])" [all...] |
/external/libgdx/gdx/src/com/badlogic/gdx/graphics/g2d/ |
PixmapPacker.java | 152 Rectangle rect = new Rectangle(0, 0, image.getWidth(), image.getHeight());
local 153 if (rect.getWidth() > pageWidth || rect.getHeight() > pageHeight) {
158 Page page = packStrategy.pack(this, name, rect);
160 page.rects.put(name, rect);
164 int rectX = (int)rect.x, rectY = (int)rect.y, rectWidth = (int)rect.width, rectHeight = (int)rect.height;
194 return rect;
207 Rectangle rect = page.rects.get(name); local 217 Rectangle rect = page.rects.get(name); local 228 Rectangle rect = pages.get(i).rects.get(name); local 263 Rectangle rect = page.rects.get(name); local 492 public final Rectangle rect = new Rectangle(); field in class:PixmapPacker.GuillotineStrategy.Node [all...] |
/frameworks/base/libs/hwui/ |
Rect.h | 42 class Rect { 55 inline Rect(): 62 inline Rect(float left, float top, float right, float bottom): 69 inline Rect(float width, float height): 76 inline Rect(const SkIRect& rect): 77 left(rect.fLeft), 78 top(rect.fTop), 79 right(rect.fRight), 80 bottom(rect.fBottom) [all...] |
/external/skia/src/gpu/batches/ |
GrNonAAStrokeRectBatch.cpp | 17 /* create a triangle strip that strokes the specified rect. There are 8 22 static void init_stroke_rect_strip(SkPoint verts[10], const SkRect& rect, SkScalar width) { 26 //SkASSERT(rad < rect.width() / 2 && rad < rect.height() / 2); 28 verts[0].set(rect.fLeft + rad, rect.fTop + rad); 29 verts[1].set(rect.fLeft - rad, rect.fTop - rad); 30 verts[2].set(rect.fRight - rad, rect.fTop + rad) 247 SkRect rect = GrTest::TestRect(random); local [all...] |
/external/zxing/qr_scanner/src/com/google/zxing/client/android/camera/ |
CameraManager.java | 24 import android.graphics.Rect; 52 private Rect framingRect; 53 private Rect framingRectInPreview; 113 // Make sure to clear these each time we close the camera, so that any scanning rect 173 * Calculates the framing rect which the UI should draw to show the user where to place the 179 public Rect getFramingRect() { 199 framingRect = new Rect(leftOffset, topOffset, leftOffset + width, topOffset + height); 200 Log.d(TAG, "Calculated framing rect: " + framingRect); 209 public Rect getFramingRectInPreview() { 211 Rect framingRect = getFramingRect() 215 Rect rect = new Rect(framingRect); local 267 Rect rect = getFramingRectInPreview(); local [all...] |
/cts/tests/tests/graphics/src/android/graphics/cts/ |
EmbossMaskFilterTest.java | 26 import android.graphics.Rect; 59 Rect top = new Rect(0, 0, BITMAP_WIDTH, CENTER_Y); 60 Rect bottom = new Rect(0, CENTER_Y, BITMAP_WIDTH, BITMAP_HEIGHT); 61 Rect left = new Rect(0, 0, CENTER_X, BITMAP_HEIGHT); 62 Rect right = new Rect(CENTER_X, 0, BITMAP_WIDTH, BITMAP_HEIGHT); 82 private long brightness(Bitmap b, Rect rect) [all...] |
/frameworks/opt/setupwizard/library/test/src/com/android/setupwizardlib/test/ |
DrawableLayoutDirectionHelperTest.java | 22 import android.graphics.Rect; 48 Rect outRect = new Rect(); 50 assertEquals("InsetDrawable padding should be same as inset", new Rect(1, 2, 3, 4), 65 Rect outRect = new Rect(); 67 assertEquals("InsetDrawable padding should be same as inset", new Rect(3, 2, 1, 4), 82 Rect outRect = new Rect(); 85 assertEquals("InsetDrawable padding should be same as inset", new Rect(3, 2, 1, 4) [all...] |
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
BridgeWindowSession.java | 21 import android.graphics.Rect; 41 public int add(IWindow arg0, int seq, LayoutParams arg1, int arg2, Rect arg3, Rect arg4, 50 Rect arg3, Rect arg4, Rect arg5, InputChannel outInputchannel) 58 Rect arg3, Rect arg4) 66 int displayId, Rect arg3, Rect arg4 [all...] |
/prebuilts/go/darwin-x86/src/image/ |
image_test.go | 27 NewRGBA(Rect(0, 0, 10, 10)), 28 NewRGBA64(Rect(0, 0, 10, 10)), 29 NewNRGBA(Rect(0, 0, 10, 10)), 30 NewNRGBA64(Rect(0, 0, 10, 10)), 31 NewAlpha(Rect(0, 0, 10, 10)), 32 NewAlpha16(Rect(0, 0, 10, 10)), 33 NewGray(Rect(0, 0, 10, 10)), 34 NewGray16(Rect(0, 0, 10, 10)), 35 NewPaletted(Rect(0, 0, 10, 10), color.Palette{ 41 if !Rect(0, 0, 10, 10).Eq(m.Bounds()) [all...] |
/prebuilts/go/linux-x86/src/image/ |
image_test.go | 27 NewRGBA(Rect(0, 0, 10, 10)), 28 NewRGBA64(Rect(0, 0, 10, 10)), 29 NewNRGBA(Rect(0, 0, 10, 10)), 30 NewNRGBA64(Rect(0, 0, 10, 10)), 31 NewAlpha(Rect(0, 0, 10, 10)), 32 NewAlpha16(Rect(0, 0, 10, 10)), 33 NewGray(Rect(0, 0, 10, 10)), 34 NewGray16(Rect(0, 0, 10, 10)), 35 NewPaletted(Rect(0, 0, 10, 10), color.Palette{ 41 if !Rect(0, 0, 10, 10).Eq(m.Bounds()) [all...] |
/frameworks/native/opengl/tests/hwc/ |
hwcRects.cpp | 297 Rectangle rect = parseRect(rectDesc); local 300 rectangle.push_back(rect); 368 Rectangle rect; local 381 rect.format = format->format; 384 rect.displayFrame = hwcTestParseHwcRect(in, error); 393 rect.sourceDim = HwcTestDim(rect.displayFrame.right 394 - rect.displayFrame.left, 395 rect.displayFrame.bottom 396 - rect.displayFrame.top) [all...] |
/prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/include/gdiplus/ |
gdiplustypes.h | 153 typedef struct Rect { 160 Rect(): X(0), Y(0), Width(0), Height(0) {} 161 Rect(const Point& location, const Size& size): 164 Rect(INT x, INT y, INT width, INT height): 167 Rect* Clone() const { 168 return new Rect(X, Y, Width, Height); 176 BOOL Contains(const Rect& rect) const { 177 return X <= rect.X && Y <= rect. [all...] |
/cts/tests/accessibility/src/android/view/accessibility/cts/ |
AccessibilityWindowInfoTest.java | 19 import android.graphics.Rect; 67 Rect rect = new Rect(); local 68 w.getBoundsInScreen(rect); 69 assertTrue(rect.isEmpty()); 99 Rect bounds1 = new Rect(); 100 Rect bounds2 = new Rect(); [all...] |
/external/opencv3/apps/traincascade/ |
lbpfeatures.cpp | 49 rect = cvRect(0, 0, 0, 0); 54 Rect tr = rect = cvRect(x, y, _blockWidth, _blockHeight); 56 tr.x += 2*rect.width; 58 tr.y +=2*rect.height; 60 tr.x -= 2*rect.width; 66 fs << CC_RECT << "[:" << rect.x << rect.y << rect.width << rect.height << "]" [all...] |
/external/skia/tools/VisualBench/ |
VisualInteractiveModule.cpp | 39 SkRect rect = SkRect::MakeXYWH(SkIntToScalar(canvasSize.fWidth-kDisplayWidth-kDisplayPadding), local 43 canvas->clipRect(rect); 45 canvas->drawRect(rect, paint); 48 canvas->drawLine(rect.fLeft, rect.fBottom - kBaseMS*kPixelPerMS, 49 rect.fRight, rect.fBottom - kBaseMS*kPixelPerMS, paint); 52 canvas->drawRect(rect, paint); 54 int x = SkScalarTruncToInt(rect.fLeft) + kGraphPadding; 56 const int startY = SkScalarTruncToInt(rect.fBottom) [all...] |
/frameworks/base/libs/hwui/tests/unit/ |
LayerUpdateQueueTests.cpp | 45 queue.enqueueLayerWithDamage(a.get(), Rect(25, 25, 75, 75)); 46 queue.enqueueLayerWithDamage(b.get(), Rect(100, 100, 300, 300)); 47 queue.enqueueLayerWithDamage(c.get(), Rect(.5, .5, .5, .5)); 52 EXPECT_EQ(Rect(25, 25, 75, 75), queue.entries()[0].damage); 54 EXPECT_EQ(Rect(100, 100, 200, 200), queue.entries()[1].damage); // clipped to bounds 56 EXPECT_EQ(Rect(0, 0, 1, 1), queue.entries()[2].damage); // rounded out 63 queue.enqueueLayerWithDamage(a.get(), Rect(10, 10, 20, 20)); 64 queue.enqueueLayerWithDamage(a.get(), Rect(30, 30, 40, 40)); 69 EXPECT_EQ(Rect(10, 10, 40, 40), queue.entries()[0].damage); 76 queue.enqueueLayerWithDamage(a.get(), Rect(100, 100)) [all...] |
ClipAreaTests.cpp | 24 #include "Rect.h" 30 static Rect kViewportBounds(2048, 2048); 39 Rect r(0, 0, 100, 100); 43 Rect r2(20, 40, 120, 60); 64 Rect r(0, 0, 100, 100); 70 Rect r2(20, 20, 200, 200); 75 Rect r3(20, 20, 200, 200); 103 Rect clipRect(area.getClipRect()); 104 Rect expected(0, 0, r * 2, r * 2); 108 Rect regionBounds [all...] |
/packages/services/Car/car-lib/src/android/car/cluster/renderer/ |
DisplayConfiguration.java | 20 import android.graphics.Rect; 31 private final Rect mPrimaryRegion; 34 private final Rect mSecondaryRegion; 50 mPrimaryRegion = in.readTypedObject(Rect.CREATOR); 51 mSecondaryRegion = in.readTypedObject(Rect.CREATOR); 54 public DisplayConfiguration(Rect primaryRegion) { 58 public DisplayConfiguration(Rect primaryRegion, @Nullable Rect secondaryRegion) { 65 public Rect getPrimaryRegion() { 75 public Rect getSecondaryRegion() [all...] |
/external/pdfium/xfa/src/fdp/src/tto/ |
fde_textout.cpp | 183 CFX_Rect& rect) {
185 rtText.Set((FX_FLOAT)rect.left, (FX_FLOAT)rect.top, (FX_FLOAT)rect.Width(),
186 (FX_FLOAT)rect.Height());
188 rect.Set((int32_t)rtText.left, (int32_t)rtText.top, (int32_t)rtText.Width(),
193 CFX_RectF& rect) {
195 rect.width = 0.0f;
196 rect.height = 0.0f;
200 rm.TransformRect(rect);
892 CFX_RectF rect = m_rectArray.GetAt(iCharIndex - pPiece->iStartChar); local [all...] |
fde_textout.h | 63 CFX_Rect& rect);
66 CFX_RectF& rect);
78 const CFX_Rect& rect);
81 const CFX_RectF& rect);
89 CFX_RectF& rect);
96 const CFX_RectF& rect);
100 void CalcTextSize(const FX_WCHAR* pwsStr, int32_t iLength, CFX_RectF& rect);
105 void SetLineWidth(CFX_RectF& rect);
108 const CFX_RectF& rect,
110 void LoadText(const FX_WCHAR* pwsStr, int32_t iLength, const CFX_RectF& rect);
[all...] |
/external/chromium-trace/catapult/third_party/polymer/components/core-overlay/tests/html/ |
core-overlay-positioning.html | 80 var rect = basic.getBoundingClientRect(); 81 chai.assert.ok(Math.abs(rect.left - (window.innerWidth - rect.right)) < 5, 'overlay centered horizontally'); 82 chai.assert.ok(Math.abs(rect.top - (window.innerHeight - rect.bottom)) < 5, 'overlay centered vertically'); 94 var rect = basic.getBoundingClientRect(); 95 chai.assert.ok(Math.abs(rect.left - (window.innerWidth - rect.right)) < 5, 'overlay centered horizontally'); 96 chai.assert.ok(Math.abs(rect.top - (window.innerHeight - rect.bottom)) < 5, 'overlay centered vertically') [all...] |
/external/opencv/cvaux/src/ |
camshift.cpp | 162 if( m_comp.rect.width == 0 || m_comp.rect.height == 0 || 173 cvSetImageROI( m_color_planes[i], m_comp.rect ); 174 cvSetImageROI( m_mask, m_comp.rect ); 180 cvSetImageROI( m_color_planes[i], m_comp.rect ); 204 CvRect rect; local 213 if( m_comp.rect.width == 0 || m_comp.rect.height == 0 || 224 rect = m_comp.rect; [all...] |
/frameworks/base/core/tests/coretests/src/android/widget/listview/ |
ListItemRequestRectAboveThinFirstItemTest.java | 19 import android.graphics.Rect; 53 // having the second item call requestRectangleOnScreen with a rect above 62 final Rect rect = new Rect(); local 63 second.getDrawingRect(rect); 64 rect.offset(0, -2 * second.getBottom()); 66 getActivity().requestRectangleOnScreen(1, rect); 87 final Rect rect = new Rect() local [all...] |