Home
last modified time | relevance | path

Searched refs:Rect (Results 1 – 25 of 319) sorted by relevance

12345678910>>...13

/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
DRectTest.java3 import android.graphics.Rect;
20 Rect r = new Rect(1, 2, 3, 4); in constructorSetsCoordinates()
29 Rect existingRect = new Rect(1, 2, 3, 4); in secondConstructorSetsCoordinates()
30 Rect r = new Rect(existingRect); in secondConstructorSetsCoordinates()
40 Rect r = new Rect(0, 0, 10, 10); in width()
46 Rect r = new Rect(0, 0, 10, 10); in height()
52 Rect a = new Rect(1, 2, 3, 4); in doesntEqual()
53 Rect b = new Rect(2, 3, 4, 5); in doesntEqual()
59 Rect a = new Rect(1, 2, 3, 4); in equals()
60 Rect b = new Rect(1, 2, 3, 4); in equals()
[all …]
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowRectTest.java5 import android.graphics.Rect;
19 Rect r = new Rect(1, 2, 3, 4); in constructorSetsCoordinates()
28 Rect existingRect = new Rect(1, 2, 3, 4); in secondConstructorSetsCoordinates()
29 Rect r = new Rect(existingRect); in secondConstructorSetsCoordinates()
38 Rect r = new Rect(0, 0, 10, 10); in width()
44 Rect r = new Rect(0, 0, 10, 10); in height()
50 Rect a = new Rect(1, 2, 3, 4); in doesntEqual()
51 Rect b = new Rect(2, 3, 4, 5); in doesntEqual()
57 Rect a = new Rect(1, 2, 3, 4); in equals()
58 Rect b = new Rect(1, 2, 3, 4); in equals()
[all …]
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowViewRootImpl.java7 import android.graphics.Rect;
38 Rect frame = new Rect(); in callDispatchResized()
40 Rect zeroSizedRect = new Rect(0, 0, 0, 0); in callDispatchResized()
48 ClassParameter.from(Rect.class, zeroSizedRect), in callDispatchResized()
49 ClassParameter.from(Rect.class, zeroSizedRect), in callDispatchResized()
54 ClassParameter.from(Rect.class, frame), in callDispatchResized()
55 ClassParameter.from(Rect.class, zeroSizedRect), in callDispatchResized()
56 ClassParameter.from(Rect.class, zeroSizedRect), in callDispatchResized()
61 ClassParameter.from(Rect.class, frame), in callDispatchResized()
62 ClassParameter.from(Rect.class, zeroSizedRect), in callDispatchResized()
[all …]
/external/libmojo/ui/gfx/geometry/
Drect.h36 class GFX_EXPORT Rect {
38 constexpr Rect() = default;
39 constexpr Rect(int width, int height) : size_(width, height) {} in Rect() function
40 constexpr Rect(int x, int y, int width, int height) in Rect() function
43 constexpr explicit Rect(const Size& size) : size_(size) {} in Rect() function
44 constexpr Rect(const Point& origin, const Size& size) in Rect() function
50 explicit Rect(const RECT& r);
52 explicit Rect(const CGRect& r);
135 Insets InsetsFrom(const Rect& inner) const;
146 bool operator<(const Rect& other) const;
[all …]
Drect.cc26 Rect::Rect(const RECT& r) in Rect() function in gfx::Rect
31 Rect::Rect(const CGRect& r)
37 RECT Rect::ToRECT() const { in ToRECT()
46 CGRect Rect::ToCGRect() const { in ToCGRect()
102 void Rect::SetByBounds(int left, int top, int right, int bottom) { in SetByBounds()
111 void Rect::Inset(const Insets& insets) { in Inset()
115 void Rect::Inset(int left, int top, int right, int bottom) { in Inset()
125 void Rect::Offset(int horizontal, int vertical) { in Offset()
132 void Rect::operator+=(const Vector2d& offset) { in operator +=()
139 void Rect::operator-=(const Vector2d& offset) { in operator -=()
[all …]
/external/drm_hwcomposer/
Dseparate_rects.cpp59 std::ostream &operator<<(std::ostream &os, const Rect<TNum> &rect) { in operator <<()
74 void separate_rects(const std::vector<Rect<TNum>> &in, in separate_rects()
110 const Rect<TNum> &rect = in[i]; in separate_rects()
132 const Rect<TNum> &rect = in[h_evt.rect_id]; in separate_rects()
287 Rect<TNum> out_rect; in separate_rects()
307 void separate_frects_64(const std::vector<Rect<float>> &in, in separate_frects_64()
312 void separate_rects_64(const std::vector<Rect<int>> &in, in separate_rects_64()
325 #define Rect Rect<TNum> in main() macro
330 std::vector<Rect> in; in main()
370 expected_out.push_back(RectSet(IdSet(0), Rect(0, 0, 2, 5))); in main()
[all …]
Dseparate_rects.h28 struct Rect { struct
41 Rect() { in Rect() argument
44 Rect(TFloat xx1, TFloat yy1, TFloat xx2, TFloat yy2) in Rect() argument
49 Rect(const Rect<T> &rhs) { in Rect() function
55 Rect<TFloat> &operator=(const Rect<T> &rhs) {
61 bool operator==(const Rect &rhs) const { argument
146 Rect<TNum> rect;
148 RectSet(const IdSet<TId> &i, const Rect<TNum> &r) : id_set(i), rect(r) { in RectSet()
162 void separate_frects_64(const std::vector<Rect<float>> &in,
164 void separate_rects_64(const std::vector<Rect<int>> &in,
/external/skqp/tools/lua/
Dskia.lua20 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)
35 setmetatable(rect, Sk.Rect)
39 function Sk.Rect:width()
43 function Sk.Rect:height()
47 function Sk.Rect:isEmpty()
51 function Sk.Rect:isFinite()
59 function Sk.Rect:setEmpty()
66 function Sk.Rect:set(l, t, r, b)
[all …]
/external/skia/tools/lua/
Dskia.lua20 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)
35 setmetatable(rect, Sk.Rect)
39 function Sk.Rect:width()
43 function Sk.Rect:height()
47 function Sk.Rect:isEmpty()
51 function Sk.Rect:isFinite()
59 function Sk.Rect:setEmpty()
66 function Sk.Rect:set(l, t, r, b)
[all …]
/external/skqp/site/user/api/
DSkRect_Reference.md4 # <a name="Rect"></a> Rect
113 …en equal to or greater than <a href="#SkRect_fRight">fRight</a>, <a href="#Rect">Rect</a> is empty.
118 … equal to or greater than <a href="#SkRect_fBottom">fBottom</a>, <a href="#Rect">Rect</a> is empty.
123 …d. When equal to or less than <a href="#SkRect_fLeft">fLeft</a>, <a href="#Rect">Rect</a> is empty.
128 …ted. When equal to or less than <a href="#SkRect_fTop">fTop</a>, <a href="#Rect">Rect</a> is empty.
155 Returns constructed <a href="#Rect">Rect</a> set to (0, 0, 0, 0).
192 Returns constructed <a href="#Rect">Rect</a> set to <a href="undocumented#SkScalar">SkScalar</a> va…
195 Passing integer values may generate a compiler warning since <a href="#Rect">Rect</a> cannot
201 <a href="undocumented#SkScalar">SkScalar</a> width of constructed <a href="#Rect">Rect</a></td>
203 <a href="undocumented#SkScalar">SkScalar</a> height of constructed <a href="#Rect">Rect</a></td>
[all …]
/external/skia/site/user/api/
DSkRect_Reference.md4 # <a name="Rect"></a> Rect
111 …en equal to or greater than <a href="#SkRect_fRight">fRight</a>, <a href="#Rect">Rect</a> is empty.
116 … equal to or greater than <a href="#SkRect_fBottom">fBottom</a>, <a href="#Rect">Rect</a> is empty.
121 …d. When equal to or less than <a href="#SkRect_fLeft">fLeft</a>, <a href="#Rect">Rect</a> is empty.
126 …ted. When equal to or less than <a href="#SkRect_fTop">fTop</a>, <a href="#Rect">Rect</a> is empty.
151 Returns constructed <a href="#Rect">Rect</a> set to (0, 0, 0, 0).
188 Returns constructed <a href="#Rect">Rect</a> set to <a href="undocumented#SkScalar">SkScalar</a> va…
191 Passing integer values may generate a compiler warning since <a href="#Rect">Rect</a> cannot
197 <a href="undocumented#SkScalar">SkScalar</a> width of constructed <a href="#Rect">Rect</a></td>
199 <a href="undocumented#SkScalar">SkScalar</a> height of constructed <a href="#Rect">Rect</a></td>
[all …]
/external/libxcam/xcore/interface/
Dblender.h47 bool set_input_valid_area (const Rect &area, uint32_t index);
48 bool set_merge_window (const Rect &window);
49 virtual bool set_input_merge_area (const Rect &area, uint32_t index);
51 const Rect &get_merge_window () const { in get_merge_window()
55 const Rect &get_input_merge_area (uint32_t index) const { in get_input_merge_area()
58 const Rect &get_input_valid_area (uint32_t index) const { in get_input_valid_area()
80 uint32_t width0, uint32_t width1, uint32_t blend_width, Rect &out_window);
88 Rect _input_valid_area[XCAM_BLENDER_IMAGE_NUM];
89 Rect _merge_window; // for output buffer
92 Rect _input_merge_area[XCAM_BLENDER_IMAGE_NUM];
/external/skia/docs/
DSkRect_Reference.bmh1 #Topic Rect
37 horizontal values when sorted. When equal to or greater than fRight, Rect is empty.
43 vertical values when sorted. When equal to or greater than fBottom, Rect is empty.
49 horizontal values when sorted. When equal to or less than fLeft, Rect is empty.
55 vertical values when sorted. When equal to or less than fTop, Rect is empty.
69 Returns constructed Rect set to (0, 0, 0, 0).
103 Returns constructed Rect set to SkScalar values (0, 0, w, h). Does not
106 Passing integer values may generate a compiler warning since Rect cannot
109 #Param w SkScalar width of constructed Rect ##
110 #Param h SkScalar height of constructed Rect ##
[all …]
/external/v4l2_codec2/vda/
Drect.h26 class Rect {
28 Rect() : x_(0), y_(0), size_(0, 0) {} in Rect() function
29 Rect(int width, int height) : x_(0), y_(0), size_(width, height) {} in Rect() function
30 Rect(int x, int y, int width, int height) in Rect() function
32 explicit Rect(const Size& size) : x_(0), y_(0), size_(size) {} in Rect() function
66 bool Contains(const Rect& rect) const { in Contains()
82 inline bool operator==(const Rect& lhs, const Rect& rhs) {
86 inline bool operator!=(const Rect& lhs, const Rect& rhs) {
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowRect.java3 import android.graphics.Rect;
10 @Implements(Rect.class)
12 @RealObject Rect realRect;
21 public void __constructor__(Rect otherRect) { in __constructor__()
29 public void set(Rect rect) { in set()
59 Rect r = (Rect) obj; in equals()
86 public boolean contains(Rect r) { in contains()
93 public static boolean intersects(Rect a, Rect b) { in intersects()
99 public boolean intersect(Rect r) { in intersect()
105 return intersect(new Rect(left, top, right, bottom)); in intersect()
DShadowDrawable.java6 import android.graphics.Rect;
30 private Rect bounds = new Rect(0, 0, 0, 0);
75 public final Rect getBounds() { in getBounds()
80 public void setBounds(Rect rect) { in setBounds()
86 bounds = new Rect(left, top, right, bottom); in setBounds()
90 public Rect copyBounds() { in copyBounds()
91 Rect bounds = new Rect(); in copyBounds()
97 public void copyBounds(Rect bounds) { in copyBounds()
/external/skqp/docs/
DSkRect_Reference.bmh1 #Topic Rect
37 horizontal values when sorted. When equal to or greater than fRight, Rect is empty.
43 vertical values when sorted. When equal to or greater than fBottom, Rect is empty.
49 horizontal values when sorted. When equal to or less than fLeft, Rect is empty.
55 vertical values when sorted. When equal to or less than fTop, Rect is empty.
86 Returns constructed Rect set to (0, 0, 0, 0).
120 Returns constructed Rect set to SkScalar values (0, 0, w, h). Does not
123 Passing integer values may generate a compiler warning since Rect cannot
126 #Param w SkScalar width of constructed Rect ##
127 #Param h SkScalar height of constructed Rect ##
[all …]
/external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/util/
DFontUtils.java20 import android.graphics.Rect;
41 public static Rect getPackedStringDimensions(String text, Paint paint) { in getPackedStringDimensions()
42 Rect size = new Rect(); in getPackedStringDimensions()
55 public static Rect getStringDimensions(String text, Paint paint) { in getStringDimensions()
56 Rect size = new Rect(); in getStringDimensions()
/external/skqp/experimental/sksg/geometry/
DSkSGRect.h24 class Rect final : public GeometryNode {
26 static sk_sp<Rect> Make() { return sk_sp<Rect>(new Rect(SkRect::MakeEmpty())); } in Make()
27 static sk_sp<Rect> Make(const SkRect& r) { return sk_sp<Rect>(new Rect(r)); } in Make()
42 explicit Rect(const SkRect&);
DSkSGRect.cpp16 Rect::Rect(const SkRect& rect) : fRect(rect) {} in Rect() function in sksg::Rect
18 void Rect::onClip(SkCanvas* canvas, bool antiAlias) const { in onClip()
22 void Rect::onDraw(SkCanvas* canvas, const SkPaint& paint) const { in onDraw()
26 SkRect Rect::onRevalidate(InvalidationController*, const SkMatrix&) { in onRevalidate()
32 SkPath Rect::onAsPath() const { in onAsPath()
/external/skia/experimental/sksg/geometry/
DSkSGRect.h24 class Rect final : public GeometryNode {
26 static sk_sp<Rect> Make() { return sk_sp<Rect>(new Rect(SkRect::MakeEmpty())); } in Make()
27 static sk_sp<Rect> Make(const SkRect& r) { return sk_sp<Rect>(new Rect(r)); } in Make()
42 explicit Rect(const SkRect&);
DSkSGRect.cpp16 Rect::Rect(const SkRect& rect) : fRect(rect) {} in Rect() function in sksg::Rect
18 void Rect::onClip(SkCanvas* canvas, bool antiAlias) const { in onClip()
22 void Rect::onDraw(SkCanvas* canvas, const SkPaint& paint) const { in onDraw()
26 SkRect Rect::onRevalidate(InvalidationController*, const SkMatrix&) { in onRevalidate()
32 SkPath Rect::onAsPath() const { in onAsPath()
/external/zxing/qr_scanner/src/com/google/zxing/client/android/camera/
DCameraManager.java24 import android.graphics.Rect;
52 private Rect framingRect;
53 private Rect framingRectInPreview;
179 public Rect getFramingRect() { in getFramingRect()
199 framingRect = new Rect(leftOffset, topOffset, leftOffset + width, topOffset + height); in getFramingRect()
209 public Rect getFramingRectInPreview() { in getFramingRectInPreview()
211 Rect framingRect = getFramingRect(); in getFramingRectInPreview()
215 Rect rect = new Rect(framingRect); in getFramingRectInPreview()
248 framingRect = new Rect(leftOffset, topOffset, leftOffset + width, topOffset + height); in setManualFramingRect()
267 Rect rect = getFramingRectInPreview(); in buildLuminanceSource()
/external/drrickorang/LoopbackApp/app/src/main/java/org/drrickorang/loopback/
DGlitchAndCallbackHeatMapView.java24 import android.graphics.Rect;
129 Rect textBounds = new Rect(); in fillCanvas()
131 Rect titleArea = new Rect(0, OUTER_MARGIN, canvas.getWidth(), in fillCanvas()
134 Rect bottomLegendArea = new Rect(0, canvas.getHeight() - LABEL_SIZE - OUTER_MARGIN, in fillCanvas()
140 Rect callbackHeatArea = new Rect(0, 0, graphWidth, graphHeight); in fillCanvas()
143 Rect glitchHeatArea = new Rect(0, 0, graphWidth, graphHeight); in fillCanvas()
162 Rect graphArea = new Rect(callbackHeatArea); in fillCanvas()
190 new Rect(graphArea.left + LINE_WIDTH, graphArea.top, in fillCanvas()
194 new Rect(graphArea.left + LINE_WIDTH, graphArea.centerY(), in fillCanvas()
205 Rect legendArea = new Rect(graphArea); in fillCanvas()
[all …]
/external/droiddriver/src/io/appium/droiddriver/uiautomation/
DUiAutomationElement.java24 import android.graphics.Rect;
58 private final Rect visibleBounds;
129 private Rect getBounds(AccessibilityNodeInfo node) { in getBounds()
130 Rect rect = new Rect(); in getBounds()
135 private Rect findVisibleBounds() { in findVisibleBounds()
137 return new Rect(); in findVisibleBounds()
139 Rect foundBounds = getBounds(); in findVisibleBounds()
143 return new Rect(); in findVisibleBounds()
151 public Rect getVisibleBounds() { in getVisibleBounds()

12345678910>>...13