Home
last modified time | relevance | path

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

12345678910>>...101

/external/chromium_org/chrome/browser/ui/window_sizer/
Dwindow_sizer_unittest.cc14 gfx::Rect window_bounds; in TEST()
15 GetWindowBounds(p1024x768, p1024x768, gfx::Rect(), gfx::Rect(), in TEST()
16 gfx::Rect(), DEFAULT, NULL, gfx::Rect(), &window_bounds); in TEST()
17 EXPECT_EQ(gfx::Rect(kWindowTilePixels, kWindowTilePixels, in TEST()
24 gfx::Rect window_bounds; in TEST()
25 GetWindowBounds(p1024x768, taskbar_bottom_work_area, gfx::Rect(), in TEST()
26 gfx::Rect(), gfx::Rect(), DEFAULT, NULL, gfx::Rect(), in TEST()
28 EXPECT_EQ(gfx::Rect(kWindowTilePixels, kWindowTilePixels, in TEST()
36 gfx::Rect window_bounds; in TEST()
37 GetWindowBounds(p1024x768, taskbar_right_work_area, gfx::Rect(), in TEST()
[all …]
Dwindow_sizer_common_unittest.cc74 const gfx::Rect& match_rect) const OVERRIDE { in GetDisplayMatching()
79 gfx::Rect overlap = displays_[i].bounds(); in GetDisplayMatching()
102 void AddDisplay(const gfx::Rect& bounds, in AddDisplay()
103 const gfx::Rect& work_area) { in AddDisplay()
122 const gfx::Rect& bounds) const OVERRIDE { in GetTargetDisplay()
141 void TestStateProvider::SetPersistentState(const gfx::Rect& bounds, in SetPersistentState()
142 const gfx::Rect& work_area, in SetPersistentState()
151 void TestStateProvider::SetLastActiveState(const gfx::Rect& bounds, in SetLastActiveState()
160 gfx::Rect* bounds, in GetPersistentState()
161 gfx::Rect* saved_work_area, in GetPersistentState()
[all …]
Dwindow_sizer_common_unittest.h16 static const gfx::Rect p1024x768(0, 0, 1024, 768);
17 static const gfx::Rect p1280x1024(0, 0, 1280, 1024);
18 static const gfx::Rect p1600x1200(0, 0, 1600, 1200);
19 static const gfx::Rect p1680x1050(0, 0, 1680, 1050);
20 static const gfx::Rect p1920x1200(0, 0, 1920, 1200);
24 static const gfx::Rect left_s1024x768(-1024, 0, 1024, 768);
28 static const gfx::Rect right_s1024x768(1024, 0, 1024, 768);
32 static const gfx::Rect top_s1024x768(0, -768, 1024, 768);
36 static const gfx::Rect bottom_s1024x768(0, 768, 1024, 768);
40 static const gfx::Rect bottom_s1600x1200(0, 1200, 1600, 1200);
[all …]
Dwindow_sizer_ash_unittest.cc58 virtual gfx::Rect GetBounds() const OVERRIDE { in GetBounds()
83 const gfx::Rect& bounds, in CreateTestBrowserWindow()
110 gfx::Rect window_bounds; in TEST_F()
111 GetWindowBounds(p1024x768, p1024x768, gfx::Rect(), gfx::Rect(), in TEST_F()
112 gfx::Rect(), DEFAULT, NULL, gfx::Rect(), &window_bounds); in TEST_F()
113 EXPECT_EQ(gfx::Rect(ash::WindowPositioner::kDesktopBorderSize, in TEST_F()
121 gfx::Rect window_bounds; in TEST_F()
122 GetWindowBounds(p1024x768, taskbar_bottom_work_area, gfx::Rect(), in TEST_F()
123 gfx::Rect(), gfx::Rect(), DEFAULT, NULL, gfx::Rect(), in TEST_F()
125 EXPECT_EQ(gfx::Rect(ash::WindowPositioner::kDesktopBorderSize, in TEST_F()
[all …]
/external/chromium_org/cc/base/
Dsimple_enclosed_region_unittest.cc17 bool ExpectRegionEq(const gfx::Rect& rect, const SimpleEnclosedRegion& region) { in ExpectRegionEq()
18 std::vector<gfx::Rect> actual_rects; in ExpectRegionEq()
19 std::vector<gfx::Rect> expected_rects; in ExpectRegionEq()
56 EXPECT_TRUE(ExpectRegionEq(gfx::Rect(), r1)); in TEST()
58 SimpleEnclosedRegion r2(gfx::Rect(2, 3, 4, 5)); in TEST()
59 EXPECT_TRUE(ExpectRegionEq(gfx::Rect(2, 3, 4, 5), r2)); in TEST()
62 EXPECT_TRUE(ExpectRegionEq(gfx::Rect(2, 3, 4, 5), r3)); in TEST()
65 EXPECT_TRUE(ExpectRegionEq(gfx::Rect(4, 5), r4)); in TEST()
67 SimpleEnclosedRegion r5(Region(gfx::Rect(2, 3, 4, 5))); in TEST()
68 EXPECT_TRUE(ExpectRegionEq(gfx::Rect(2, 3, 4, 5), r5)); in TEST()
[all …]
Dregion_unittest.cc44 r.Union(gfx::Rect(35, 35, 1, 1)); in TEST()
51 r.Union(gfx::Rect(30, 30, 10, 10)); in TEST()
58 r.Union(gfx::Rect(31, 40, 10, 10)); in TEST()
73 r.Union(gfx::Rect(42, 40, 10, 10)); in TEST()
93 r.Union(gfx::Rect(5, 0, 10, 10)); in TEST()
94 r.Union(gfx::Rect(0, 5, 10, 10)); in TEST()
95 r.Subtract(gfx::Rect(7, 7, 10, 0)); in TEST()
122 TEST_NO_INTERSECT(gfx::Rect(), gfx::Rect()); in TEST()
123 TEST_NO_INTERSECT(gfx::Rect(), gfx::Rect(0, 0, 1, 1)); in TEST()
124 TEST_NO_INTERSECT(gfx::Rect(), gfx::Rect(1, 1, 1, 1)); in TEST()
[all …]
/external/robolectric/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/chromium_org/ui/gfx/geometry/
Drect.h37 class GFX_EXPORT Rect
38 : public RectBase<Rect, Point, Size, Insets, Vector2d, int> {
40 Rect() : RectBase<Rect, Point, Size, Insets, Vector2d, int>(Point()) {} in Rect() function
42 Rect(int width, int height) in Rect() function
43 : RectBase<Rect, Point, Size, Insets, Vector2d, int> in Rect()
46 Rect(int x, int y, int width, int height) in Rect() function
47 : RectBase<Rect, Point, Size, Insets, Vector2d, int> in Rect()
51 explicit Rect(const RECT& r);
53 explicit Rect(const CGRect& r);
56 explicit Rect(const gfx::Size& size) in Rect() function
[all …]
Drect_unittest.cc42 Rect rect(value.rect_x, value.rect_y, value.rect_width, value.rect_height); in TEST()
71 Rect r1(tests[i].x1, tests[i].y1, tests[i].w1, tests[i].h1); in TEST()
72 Rect r2(tests[i].x2, tests[i].y2, tests[i].w2, tests[i].h2); in TEST()
113 Rect r1(tests[i].x1, tests[i].y1, tests[i].w1, tests[i].h1); in TEST()
114 Rect r2(tests[i].x2, tests[i].y2, tests[i].w2, tests[i].h2); in TEST()
115 Rect r3(tests[i].x3, tests[i].y3, tests[i].w3, tests[i].h3); in TEST()
116 Rect ir = IntersectRects(r1, r2); in TEST()
162 Rect r1(tests[i].x1, tests[i].y1, tests[i].w1, tests[i].h1); in TEST()
163 Rect r2(tests[i].x2, tests[i].y2, tests[i].w2, tests[i].h2); in TEST()
164 Rect r3(tests[i].x3, tests[i].y3, tests[i].w3, tests[i].h3); in TEST()
[all …]
Drect.cc20 template class RectBase<Rect, Point, Size, Insets, Vector2d, int>;
22 typedef class RectBase<Rect, Point, Size, Insets, Vector2d, int> RectBaseT;
25 Rect::Rect(const RECT& r) in Rect() function in gfx::Rect
31 Rect::Rect(const CGRect& r) in Rect() function in gfx::Rect
39 RECT Rect::ToRECT() const { in ToRECT()
48 CGRect Rect::ToCGRect() const { in ToCGRect()
53 std::string Rect::ToString() const { in ToString()
59 Rect operator+(const Rect& lhs, const Vector2d& rhs) { in operator +()
60 Rect result(lhs); in operator +()
65 Rect operator-(const Rect& lhs, const Vector2d& rhs) { in operator -()
[all …]
Dr_tree_unittest.cc60 Rect check_bounds; in CheckBoundsConsistent()
73 rt->Insert(Rect(0, 0, i, i), i); in AddStackedSquares()
89 const Rect& rect, in BuildExpandedRects()
90 std::vector<Rect>* expanded_rects) { in BuildExpandedRects()
94 Rect expanded_rect(rect); in BuildExpandedRects()
137 const Rect& rect, in NodeOverlapIncreaseToAdd()
139 const Rect& expanded_rect) { in NodeOverlapIncreaseToAdd()
186 const Rect& node_rect, in NodeLeastOverlapIncrease()
192 const Rect& node_rect, in NodeLeastAreaEnlargement()
206 new RTreeRecord(Rect(i - 1, i - 1, 2, 2), i))); in TEST_F()
[all …]
/external/chromium_org/cc/trees/
Dlayer_tree_host_pixeltest_readback.cc96 gfx::Rect copy_subrect_;
104 gfx::Rect(200, 200), SK_ColorWHITE); in TEST_F()
107 gfx::Rect(200, 200), SK_ColorGREEN); in TEST_F()
118 gfx::Rect(200, 200), SK_ColorWHITE); in TEST_F()
121 gfx::Rect(200, 200), SK_ColorGREEN); in TEST_F()
132 gfx::Rect(200, 200), SK_ColorWHITE); in TEST_F()
135 gfx::Rect(200, 200), SK_ColorGREEN); in TEST_F()
146 gfx::Rect(200, 200), SK_ColorWHITE); in TEST_F()
149 gfx::Rect(200, 200), SK_ColorGREEN); in TEST_F()
161 gfx::Rect(200, 200), SK_ColorWHITE); in TEST_F()
[all …]
Docclusion_tracker_unittest.cc43 void SetOpaqueContentsRect(const gfx::Rect& opaque_contents_rect) { in SetOpaqueContentsRect()
52 gfx::Rect opaque_contents_rect_;
69 void SetOpaqueContentsRect(const gfx::Rect& opaque_contents_rect) { in SetOpaqueContentsRect()
76 gfx::Rect opaque_contents_rect_;
82 explicit TestOcclusionTrackerWithClip(const gfx::Rect& viewport_rect) in TestOcclusionTrackerWithClip()
86 const gfx::Rect& content_rect) const { in OccludedLayer()
94 gfx::Rect UnoccludedLayerContentRect(const LayerType* layer, in UnoccludedLayerContentRect()
95 const gfx::Rect& content_rect) const { in UnoccludedLayerContentRect()
101 gfx::Rect UnoccludedSurfaceContentRect(const LayerType* layer, in UnoccludedSurfaceContentRect()
102 const gfx::Rect& content_rect) const { in UnoccludedSurfaceContentRect()
[all …]
Ddamage_tracker.cc29 static inline void ExpandRectWithFilters(gfx::Rect* rect, in ExpandRectWithFilters()
37 gfx::Rect* damage_rect, in ExpandDamageRectInsideRectWithFilters()
38 const gfx::Rect& pre_filter_rect, in ExpandDamageRectInsideRectWithFilters()
40 gfx::Rect expanded_damage_rect = *damage_rect; in ExpandDamageRectInsideRectWithFilters()
42 gfx::Rect filter_rect = pre_filter_rect; in ExpandDamageRectInsideRectWithFilters()
53 const gfx::Rect& target_surface_content_rect, in UpdateDamageTrackingState()
128 gfx::Rect damage_from_active_layers = in UpdateDamageTrackingState()
130 gfx::Rect damage_from_surface_mask = in UpdateDamageTrackingState()
132 gfx::Rect damage_from_leftover_rects = TrackDamageFromLeftoverRects(); in UpdateDamageTrackingState()
134 gfx::Rect damage_rect_for_this_update; in UpdateDamageTrackingState()
[all …]
Dlayer_tree_host_unittest_delegated.cc78 const gfx::Rect& root_output_rect, in CreateFrameData()
79 const gfx::Rect& root_damage_rect) { in CreateFrameData()
92 const gfx::Rect& root_output_rect, in CreateInvalidFrameData()
93 const gfx::Rect& root_damage_rect) { in CreateInvalidFrameData()
105 gfx::Rect rect = root_output_rect; in CreateInvalidFrameData()
106 gfx::Rect opaque_rect = root_output_rect; in CreateInvalidFrameData()
107 gfx::Rect visible_rect = root_output_rect; in CreateInvalidFrameData()
156 gfx::Rect(0, 0, 10, 10), in AddTextureQuad()
157 gfx::Rect(0, 0, 10, 10), in AddTextureQuad()
158 gfx::Rect(0, 0, 10, 10), in AddTextureQuad()
[all …]
/external/chromium_org/ash/wm/
Dwindow_util_unittest.cc16 std::string GetAdjustedBounds(const gfx::Rect& visible, in GetAdjustedBounds()
17 gfx::Rect to_be_adjusted) { in GetAdjustedBounds()
32 CreateTestWindowInShellWithBounds(gfx::Rect(12, 20, 100, 100))); in TEST_F()
42 window->SetBoundsInScreen(gfx::Rect(600, 0, 100, 100), in TEST_F()
50 const gfx::Rect visible_bounds(0, 0, 100, 100); in TEST_F()
53 GetAdjustedBounds(visible_bounds, gfx::Rect(0, 0, 90, 90))); in TEST_F()
55 GetAdjustedBounds(visible_bounds, gfx::Rect(0, 0, 150, 150))); in TEST_F()
57 GetAdjustedBounds(visible_bounds, gfx::Rect(-50, -50, 150, 150))); in TEST_F()
59 GetAdjustedBounds(visible_bounds, gfx::Rect(-100, 10, 150, 150))); in TEST_F()
61 GetAdjustedBounds(visible_bounds, gfx::Rect(100, 100, 150, 150))); in TEST_F()
[all …]
Dwindow_positioner.h20 class Rect; variable
57 gfx::Rect* bounds_in_out,
61 static gfx::Rect GetDefaultWindowBounds(const gfx::Display& display);
86 gfx::Rect GetPopupPosition(const gfx::Rect& old_pos);
97 gfx::Rect SmartPopupPosition(const gfx::Rect& old_pos,
98 const gfx::Rect& work_area,
102 gfx::Rect NormalPopupPosition(const gfx::Rect& old_pos,
103 const gfx::Rect& work_area);
106 gfx::Rect AlignPopupPosition(const gfx::Rect &pos,
107 const gfx::Rect &work_area,
/external/chromium_org/cc/quads/
Drender_pass_unittest.cc30 gfx::Rect output_rect;
31 gfx::Rect damage_rect;
68 gfx::Rect output_rect(45, 22, 120, 13); in TEST()
71 gfx::Rect damage_rect(56, 123, 19, 43); in TEST()
86 gfx::Rect(), in TEST()
87 gfx::Rect(), in TEST()
96 pass->shared_quad_state_list.back(), gfx::Rect(), gfx::Rect(), SkColor()); in TEST()
119 gfx::Rect output_rect(45, 22, 120, 13); in TEST()
122 gfx::Rect damage_rect(56, 123, 19, 43); in TEST()
136 gfx::Rect(), in TEST()
[all …]
/external/chromium_org/ui/views/layout/
Dbox_layout_unittest.cc42 EXPECT_EQ(gfx::Rect(0, 0, 10, 20), v1->bounds()); in TEST_F()
43 EXPECT_EQ(gfx::Rect(10, 0, 10, 20), v2->bounds()); in TEST_F()
56 EXPECT_EQ(gfx::Rect(0, 0, 20, 10), v1->bounds()); in TEST_F()
57 EXPECT_EQ(gfx::Rect(0, 10, 20, 10), v2->bounds()); in TEST_F()
70 EXPECT_EQ(gfx::Rect(10, 20, 10, 20), v1->bounds()); in TEST_F()
71 EXPECT_EQ(gfx::Rect(20, 20, 10, 20), v2->bounds()); in TEST_F()
78 EXPECT_EQ(gfx::Rect(10, 5, 10, 20), v1->bounds()); in TEST_F()
79 EXPECT_EQ(gfx::Rect(20, 5, 10, 20), v2->bounds()); in TEST_F()
92 EXPECT_EQ(gfx::Rect(7, 7, 10, 86), v1->bounds()); in TEST_F()
93 EXPECT_EQ(gfx::Rect(25, 7, 10, 86), v2->bounds()); in TEST_F()
[all …]
/external/chromium_org/chrome/browser/ui/views/tabs/
Dtab_strip_unittest.cc116 init_params.bounds = gfx::Rect(0, 0, 200, 200); in SetUp()
129 gfx::Rect GetTabHitTestMask(Tab* tab) { in GetTabHitTestMask()
145 gfx::Rect GetTabCloseHitTestMask(Tab* tab, bool padding) { in GetTabCloseHitTestMask()
331 left_tab->SetBoundsRect(gfx::Rect(gfx::Point(0, 0), gfx::Size(200, 20))); in TEST_F()
334 active_tab->SetBoundsRect(gfx::Rect(gfx::Point(150, 0), gfx::Size(200, 20))); in TEST_F()
338 right_tab->SetBoundsRect(gfx::Rect(gfx::Point(300, 0), gfx::Size(200, 20))); in TEST_F()
341 most_right_tab->SetBoundsRect(gfx::Rect(gfx::Point(450, 0), in TEST_F()
353 gfx::Rect tab_bounds = GetTabHitTestMask(left_tab); in TEST_F()
354 EXPECT_EQ(gfx::Rect(6, 2, 61, 27).ToString(), tab_bounds.ToString()); in TEST_F()
358 gfx::Rect contents_bounds = GetTabCloseHitTestMask(left_tab, false); in TEST_F()
[all …]
/external/chromium_org/content/renderer/
Ddisambiguation_popup_helper_unittest.cc35 gfx::Rect tap_rect(1000, 1000, 10, 10); in TEST_F()
37 target_rects[0] = gfx::Rect(-20, -20, 10, 10); in TEST_F()
39 gfx::Rect zoom_rect; in TEST_F()
44 EXPECT_TRUE(gfx::Rect(kVisibleContentSize_).Contains(zoom_rect)); in TEST_F()
48 EXPECT_TRUE(gfx::Rect(kScreenSize_).Contains(gfx::Rect(scaled_size))); in TEST_F()
52 gfx::Rect tap_rect(-5, -5, 20, 20); in TEST_F()
54 target_rects[0] = gfx::Rect(10, 10, 1, 1); in TEST_F()
56 gfx::Rect zoom_rect; in TEST_F()
61 EXPECT_TRUE(gfx::Rect(kVisibleContentSize_).Contains(zoom_rect)); in TEST_F()
66 EXPECT_TRUE(gfx::Rect(kScreenSize_).Contains(gfx::Rect(scaled_size))); in TEST_F()
[all …]
/external/chromium_org/chrome/browser/ui/ash/
Dwindow_positioner_unittest.cc104 window_->SetBounds(gfx::Rect(16, 32, 640, 320)); in SetUp()
106 popup_->SetBounds(gfx::Rect(16, 32, 128, 256)); in SetUp()
153 const gfx::Rect work_area = in TEST_F()
160 gfx::Rect popup_position(0, 0, 200, 200); in TEST_F()
162 gfx::Rect cascade_1 = window_positioner()->GetPopupPosition(popup_position); in TEST_F()
163 EXPECT_EQ(gfx::Rect(work_area.x() + grid_size_, work_area.y() + grid_size_, in TEST_F()
167 gfx::Rect cascade_2 = window_positioner()->GetPopupPosition(popup_position); in TEST_F()
168 EXPECT_EQ(gfx::Rect(work_area.x() + 2 * grid_size_, in TEST_F()
174 window()->SetBounds(gfx::Rect(work_area.x() + popup_position.width() - 1, in TEST_F()
181 gfx::Rect cascade_3 = window_positioner()->GetPopupPosition(popup_position); in TEST_F()
[all …]
/external/chromium_org/cc/resources/
Dpicture_layer_tiling_unittest.cc24 static gfx::Rect ViewportInLayerSpace( in ViewportInLayerSpace()
30 return gfx::Rect(); in ViewportInLayerSpace()
39 const gfx::Rect& visible_layer_rect, in UpdateAllTilePriorities()
66 gfx::Rect live_tiles_rect() const { return live_tiles_rect_; } in live_tiles_rect()
92 void SetLiveRectAndVerifyTiles(const gfx::Rect& live_tiles_rect) { in SetLiveRectAndVerifyTiles()
105 const gfx::Rect& request_rect, in VerifyTilesExactlyCoverRect()
106 const gfx::Rect& expect_rect) { in VerifyTilesExactlyCoverRect()
122 gfx::Rect geometry = iter.geometry_rect(); in VerifyTilesExactlyCoverRect()
141 void VerifyTilesExactlyCoverRect(float rect_scale, const gfx::Rect& rect) { in VerifyTilesExactlyCoverRect()
147 const gfx::Rect& rect, in VerifyTiles()
[all …]
/external/chromium_org/cc/layers/
Dnine_patch_layer_impl_unittest.cc25 gfx::Rect ToRoundedIntRect(const gfx::RectF& rect_f) { in ToRoundedIntRect()
26 return gfx::Rect(gfx::ToRoundedInt(rect_f.x()), in ToRoundedIntRect()
33 const gfx::Rect& aperture_rect, in NinePatchLayerLayoutTest()
35 const gfx::Rect& border, in NinePatchLayerLayoutTest()
40 gfx::Rect visible_content_rect(layer_size); in NinePatchLayerLayoutTest()
41 gfx::Rect expected_remaining(border.x(), in NinePatchLayerLayoutTest()
76 gfx::Rect quad_rect = iter->rect; in NinePatchLayerLayoutTest()
93 gfx::Rect bitmap_rect(bitmap_size); in NinePatchLayerLayoutTest()
118 gfx::Rect aperture_rect(20, 30, 40, 50); in TEST()
119 gfx::Rect border(40, 40, 80, 80); in TEST()
[all …]
/external/chromium_org/ppapi/utility/graphics/
Dpaint_aggregator.h53 Rect scroll_rect;
59 std::vector<Rect> paint_rects;
62 Rect paint_bounds;
111 void InvalidateRect(const Rect& rect);
117 void ScrollRect(const Rect& clip_rect, const Point& amount);
137 Rect GetScrollDamage() const;
141 Rect GetPaintBounds() const;
144 Rect scroll_rect;
147 std::vector<Rect> paint_rects;
150 Rect ScrollPaintRect(const Rect& paint_rect, const Point& amount) const;
[all …]

12345678910>>...101