/cts/tests/tests/graphics/src/android/graphics/cts/ |
RegionIteratorTest.java | 19 import android.graphics.Rect; 33 Rect rect = new Rect(); local 34 rect.set(1, 1, 1, 1); 41 assertTrue(regionIterator.next(rect)); 42 assertEquals(1, rect.left); 43 assertEquals(1, rect.top); 44 assertEquals(10, rect.right); 45 assertEquals(10, rect.bottom) [all...] |
RectTest.java | 19 import android.graphics.Rect; 24 private Rect mRect; 35 // new the Rect instance 36 mRect = new Rect(); 39 // new the Rect instance 40 mRect = new Rect(10, 10, 20, 20); 43 Rect rect = new Rect(10, 10, 20, 20); local 44 // new the Rect instanc 62 Rect rect = new Rect(1, 2, 3, 4); local 194 Rect rect; local 306 Rect rect; local 354 Rect rect; local 423 Rect rect = new Rect(1, 2, 3, 4); local 489 Rect rect; local 509 Rect rect = Rect.unflattenFromString(flattenString); local [all...] |
/external/chromium_org/cc/layers/ |
scrollbar_theme_painter.h | 13 class Rect; 22 virtual void PaintScrollbarBackground(SkCanvas* canvas, gfx::Rect rect) = 0; 23 virtual void PaintTrackBackground(SkCanvas* canvas, gfx::Rect rect) = 0; 24 virtual void PaintBackTrackPart(SkCanvas* canvas, gfx::Rect rect) = 0; 25 virtual void PaintForwardTrackPart(SkCanvas* canvas, gfx::Rect rect) = 0; 26 virtual void PaintBackButtonStart(SkCanvas* canvas, gfx::Rect rect) = 0 [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/draw9patch/graphics/ |
NinePatchedImageTest.java | 229 Rectangle rect = null; local 233 rect = c.rect; 235 assertEquals(1, rect.x); 236 assertEquals(1, rect.y); 237 assertEquals(1, rect.width); 238 assertEquals(1, rect.height); 241 rect = c.rect; 243 assertEquals(2, rect.x) 334 Rectangle rect = null; local 796 Rectangle rect = null; local [all...] |
/external/chromium_org/ui/gfx/ |
rect_conversions.cc | 14 Rect ToEnclosingRect(const RectF& rect) { 15 int min_x = ToFlooredInt(rect.x()); 16 int min_y = ToFlooredInt(rect.y()); 17 float max_x = rect.right(); 18 float max_y = rect.bottom(); 19 int width = rect.width() == 0 ? 0 : std::max(ToCeiledInt(max_x) - min_x, 0); 20 int height = rect.height() == 0 ? 0 : std::max(ToCeiledInt(max_y) - min_y, 0); 21 return Rect(min_x, min_y, width, height); 24 Rect ToEnclosedRect(const RectF& rect) [all...] |
rect.h | 25 typedef struct tagRECT RECT; 38 class UI_EXPORT Rect 39 : public RectBase<Rect, Point, Size, Insets, Vector2d, int> { 41 Rect() : RectBase<Rect, Point, Size, Insets, Vector2d, int>(Point()) {} 43 Rect(int width, int height) 44 : RectBase<Rect, Point, Size, Insets, Vector2d, int> 47 Rect(int x, int y, int width, int height) 48 : RectBase<Rect, Point, Size, Insets, Vector2d, int> 52 explicit Rect(const RECT& r) [all...] |
rect_conversions.h | 8 #include "ui/gfx/rect.h" 13 // Returns the smallest Rect that encloses the given RectF. 14 UI_EXPORT Rect ToEnclosingRect(const RectF& rect); 16 // Returns the largest Rect that is enclosed by the given RectF. 17 UI_EXPORT Rect ToEnclosedRect(const RectF& rect); 19 // Returns the Rect after snapping the corners of the RectF to an integer grid. 21 // integer rect with floating point error. If it is an arbitrary RectF, then 23 UI_EXPORT Rect ToNearestRect(const RectF& rect) [all...] |
rect.cc | 5 #include "ui/gfx/rect.h" 22 template class RectBase<Rect, Point, Size, Insets, Vector2d, int>; 24 typedef class RectBase<Rect, Point, Size, Insets, Vector2d, int> RectBaseT; 27 Rect::Rect(const RECT& r) 33 Rect::Rect(const CGRect& r) 39 Rect::Rect(const GdkRectangle& r [all...] |
/external/chromium_org/ppapi/cpp/ |
rect.cc | 5 #include "ppapi/cpp/rect.h" 26 void Rect::Inset(int32_t left, int32_t top, int32_t right, int32_t bottom) { 32 void Rect::Offset(int32_t horizontal, int32_t vertical) { 37 bool Rect::Contains(int32_t point_x, int32_t point_y) const { 42 bool Rect::Contains(const Rect& rect) const { 43 return (rect.x() >= x() && rect.right() <= right() && 44 rect.y() >= y() && rect.bottom() <= bottom()) [all...] |
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
RectTest.java | 3 import android.graphics.Rect; 20 Rect r = new Rect(1, 2, 3, 4); 29 Rect existingRect = new Rect(1, 2, 3, 4); 30 Rect r = new Rect(existingRect); 40 Rect r = new Rect(0, 0, 10, 10); 46 Rect r = new Rect(0, 0, 10, 10) [all...] |
/external/chromium-trace/trace-viewer/src/base/ |
rect.js | 18 function Rect() { 24 Rect.FromXYWH = function(x, y, w, h) { 25 var rect = new Rect(); 26 rect.x = x; 27 rect.y = y; 28 rect.width = w; 29 rect.height = h; 30 return rect; 32 Rect.FromArray = function(ary) [all...] |
/sdk/testapps/basicProjectWithAidl/src/com/android/tests/basicprojectwithaidl/ |
Rect.aidl | 3 // Declare Rect so AIDL can find it and knows that it implements 5 parcelable Rect
|
ITest.aidl | 4 Rect getRect();
|
Rect.java | 6 public class Rect implements Parcelable { 12 public static final Parcelable.Creator<Rect> CREATOR = new Parcelable.Creator<Rect>() { 13 public Rect createFromParcel(Parcel in) { 14 return new Rect(in); 17 public Rect[] newArray(int size) { 18 return new Rect[size]; 22 public Rect() { 25 private Rect(Parcel in) {
|
/external/chromium_org/chrome/browser/ui/window_sizer/ |
window_sizer_unittest.cc | 14 gfx::Rect window_bounds; 15 GetWindowBounds(p1024x768, p1024x768, gfx::Rect(), gfx::Rect(), 16 gfx::Rect(), DEFAULT, NULL, gfx::Rect(), &window_bounds); 17 EXPECT_EQ(gfx::Rect(kWindowTilePixels, kWindowTilePixels, 24 gfx::Rect window_bounds; 25 GetWindowBounds(p1024x768, taskbar_bottom_work_area, gfx::Rect(), 26 gfx::Rect(), gfx::Rect(), DEFAULT, NULL, gfx::Rect() [all...] |
window_sizer_common_unittest.cc | 18 void TestMonitorInfoProvider::AddMonitor(const gfx::Rect& bounds, 19 const gfx::Rect& work_area) { 26 gfx::Rect TestMonitorInfoProvider::GetPrimaryDisplayWorkArea() const { 30 gfx::Rect TestMonitorInfoProvider::GetPrimaryDisplayBounds() const { 34 gfx::Rect TestMonitorInfoProvider::GetMonitorWorkAreaMatching( 35 const gfx::Rect& match_rect) const { 40 const gfx::Rect& match_rect) const { 44 // largest area of the supplied match rect. 46 gfx::Rect overlap = work_areas_[i]; 64 void TestStateProvider::SetPersistentState(const gfx::Rect& bounds [all...] |
/external/chromium/chrome/browser/ui/ |
window_sizer_unittest.cc | 12 static const gfx::Rect tentwentyfour(0, 0, 1024, 768); 13 static const gfx::Rect twelveeighty(0, 0, 1280, 1024); 14 static const gfx::Rect sixteenhundred(0, 0, 1600, 1200); 15 static const gfx::Rect sixteeneighty(0, 0, 1680, 1050); 16 static const gfx::Rect nineteentwenty(0, 0, 1920, 1200); 20 static const gfx::Rect left_nonprimary(-1024, 0, 1024, 768); 24 static const gfx::Rect right_nonprimary(1024, 0, 1024, 768); 28 static const gfx::Rect top_nonprimary(0, -768, 1024, 768); 32 static const gfx::Rect bottom_nonprimary(0, 768, 1024, 768); 35 static const gfx::Rect taskbar_bottom_work_area(0, 0, 1024, 734) [all...] |
/external/chromium_org/v8/test/mjsunit/tools/ |
profviz-test.default | 6 "set style rect fs solid 1 noborder", 12 "set object 1 rect from 87.51699999999991, 7 to 87.60371656249991, 3 fc rgb \"#9944CC\"", 13 "set object 2 rect from 110.7114999999999, 7 to 110.7982165624999, 3 fc rgb \"#9944CC\"", 14 "set object 3 rect from 133.5129999999999, 7 to 133.59971656249988, 3 fc rgb \"#9944CC\"", 15 "set object 4 rect from 61.49249999999995, 7 to 61.57921656249995, 5.020618556701031 fc rgb \"#9944CC\"", 16 "set object 5 rect from 101.40849999999992, 7 to 101.49521656249992, 5.103092783505154 fc rgb \"#9944CC\"", 17 "set object 6 rect from 57.242999999999974, 7 to 57.329716562499975, 6.766323024054983 fc rgb \"#9944CC\"", 18 "set object 7 rect from 58.751499999999965, 7 to 58.838216562499966, 6.766323024054983 fc rgb \"#9944CC\"", 19 "set object 8 rect from 60.72499999999996, 7 to 60.81171656249996, 6.766323024054983 fc rgb \"#9944CC\"", 21 "set object 9 rect from 42.11000000000001, 12.83 to 42.28050000000001, 12.17 fc rgb \"#000000\"" [all...] |
/external/chromium_org/skia/ext/ |
skia_utils_win.h | 16 typedef struct tagRECT RECT; 23 // Converts a Windows RECT to a Skia rect. 24 SkRect RECTToSkRect(const RECT& rect); 26 // Converts a Windows RECT to a Skia rect. 29 inline const SkIRect& RECTToSkIRect(const RECT& rect) { 30 return reinterpret_cast<const SkIRect&>(rect); [all...] |
/frameworks/base/core/java/android/view/ |
FocusFinderHelper.java | 19 import android.graphics.Rect; 36 public boolean isBetterCandidate(int direction, Rect source, Rect rect1, Rect rect2) { 40 public boolean beamBeats(int direction, Rect source, Rect rect1, Rect rect2) { 44 public boolean isCandidate(Rect srcRect, Rect destRect, int direction) { 48 public boolean beamsOverlap(int direction, Rect rect1, Rect rect2) [all...] |
/frameworks/base/core/tests/coretests/src/android/view/ |
FocusFinderTest.java | 19 import android.graphics.Rect; 42 new Rect(0, 30, 10, 40), // src (left, top, right, bottom) 43 new Rect(0, 50, 10, 60)); // dest (left, top, right, bottom) 48 final Rect src = new Rect(0, 30, 10, 40); 50 final Rect dest = new Rect(src); 62 new Rect(0, 0, 50, 50), 63 new Rect(0, 1, 50, 49)); 71 new Rect(0, 0, 50, 50) 100 final Rect rect = new Rect(0, 0, 20, 20); local [all...] |
/external/chromium_org/cc/base/ |
region_unittest.cc | 44 r.Union(gfx::Rect(35, 35, 1, 1)); 51 r.Union(gfx::Rect(30, 30, 10, 10)); 58 r.Union(gfx::Rect(31, 40, 10, 10)); 73 r.Union(gfx::Rect(42, 40, 10, 10)); 93 r.Union(gfx::Rect(5, 0, 10, 10)); 94 r.Union(gfx::Rect(0, 5, 10, 10)); 95 r.Subtract(gfx::Rect(7, 7, 10, 0)); 98 EXPECT_FALSE(it.rect().IsEmpty()); 122 TEST_NO_INTERSECT(gfx::Rect(), gfx::Rect()); [all...] |
/device/asus/flo/camera/hdr/include/ |
morpho_rect_int.h | 25 /** ??`??? rect ???????W (l,t) ??E?????W (r,b) ??????. */
26 #define morpho_RectInt_setRect(rect,l,t,r,b) do { \
27 (rect)->sx=(l);\
28 (rect)->sy=(t);\
29 (rect)->ex=(r);\
30 (rect)->ey=(b);\
|
/device/lge/mako/camera/hdr/include/ |
morpho_rect_int.h | 25 /** ??`??? rect ???????W (l,t) ??E?????W (r,b) ??????. */
26 #define morpho_RectInt_setRect(rect,l,t,r,b) do { \
27 (rect)->sx=(l);\
28 (rect)->sy=(t);\
29 (rect)->ex=(r);\
30 (rect)->ey=(b);\
|
/external/chromium_org/cc/resources/ |
tile_priority_unittest.cc | 14 gfx::Rect target(0, 0, 800, 600); 15 gfx::Rect current(100, 100, 100, 100); 17 gfx::Rect(-200, 0, 100, 100), current, 1, target)); 19 gfx::Rect(-100, 0, 100, 100), current, 1, target)); 21 gfx::Rect(400, 400, 100, 100), current, 1, target)); 23 current = gfx::Rect(-300, -300, 100, 100); 25 gfx::Rect(0, 0, 100, 100), current, 1, target)); 27 gfx::Rect(-200, -200, 100, 100), current, 1, target)); 29 gfx::Rect(-400, -400, 100, 100), current, 1, target)); 34 gfx::Rect target(0, 0, 800, 600) [all...] |