Searched defs:bounds (Results 1 - 25 of 849) sorted by path

1234567891011>>

/external/checkpolicy/
H A Dmodule_compiler.c169 role_datum_t *bounds; local
183 bounds = hashtab_search(roles_tab, bounds_id);
184 if (!bounds) {
185 yyerror2("role %s doesn't exist, is implicit bounds of %s",
190 if (!role->bounds)
191 role->bounds = bounds->s.value;
192 else if (role->bounds != bounds->s.value) {
193 yyerror2("role %s has inconsistent bounds
373 user_datum_t *bounds; local
[all...]
H A Dpolicy_define.c1297 type_datum_t *bounds, *type; local
1304 bounds = hashtab_search(policydbp->p_types.table, bounds_id);
1305 if (!bounds || bounds->flavor == TYPE_ATTRIB) {
1327 if (!type->bounds)
1328 type->bounds = bounds->s.value;
1329 else if (type->bounds != bounds->s.value) {
1332 policydbp->p_type_val_to_name[type->bounds
1342 char *bounds, *id; local
1378 char *bounds, *delim; local
[all...]
/external/chromium_org/ash/accelerators/
H A Daccelerator_controller_unittest.cc441 EXPECT_EQ(expected_bounds.ToString(), window->bounds().ToString());
447 EXPECT_EQ(expected_bounds.ToString(), window->bounds().ToString());
454 EXPECT_NE(normal_bounds.ToString(), window->bounds().ToString());
458 // Window gets restored to its restore bounds since side-maximized state
460 EXPECT_EQ(normal_bounds.ToString(), window->bounds().ToString());
495 gfx::Rect bounds = window->GetBoundsInScreen(); local
496 EXPECT_NEAR(bounds.x() - work_area.x(),
497 work_area.right() - bounds.right(),
499 EXPECT_NEAR(bounds.y() - work_area.y(),
500 work_area.bottom() - bounds
[all...]
/external/chromium_org/ash/desktop_background/
H A Ddesktop_background_widget_controller.cc89 void DesktopBackgroundWidgetController::SetBounds(gfx::Rect bounds) { argument
91 widget_->SetBounds(bounds);
/external/chromium_org/ash/display/
H A Dcursor_window_controller.cc146 SetBoundsInScreen(display.bounds());
159 gfx::Rect bounds = cursor_window_->bounds(); local
160 bounds.set_origin(point);
161 cursor_window_->SetBounds(bounds);
207 SetBoundsInScreen(container->bounds());
210 void CursorWindowController::SetBoundsInScreen(const gfx::Rect& bounds) { argument
211 bounds_in_screen_ = bounds;
262 gfx::Rect(cursor_window_->bounds().size()));
H A Ddisplay_controller_unittest.cc216 EXPECT_EQ("0,0 444x333", primary.bounds().ToString());
417 EXPECT_EQ("0,0 500x500", GetPrimaryDisplay().bounds().ToString());
418 EXPECT_EQ("500,0 400x400", GetSecondaryDisplay().bounds().ToString());
431 EXPECT_EQ("0,0 500x500", GetPrimaryDisplay().bounds().ToString());
432 EXPECT_EQ("0,500 400x400", GetSecondaryDisplay().bounds().ToString());
443 EXPECT_EQ("0,0 500x500", GetPrimaryDisplay().bounds().ToString());
444 EXPECT_EQ("-400,0 400x400", GetSecondaryDisplay().bounds().ToString());
455 EXPECT_EQ("0,0 500x500", GetPrimaryDisplay().bounds().ToString());
456 EXPECT_EQ("0,-400 400x400", GetSecondaryDisplay().bounds().ToString());
467 EXPECT_EQ("0,0 500x500", GetPrimaryDisplay().bounds()
541 CreateDisplayInfo(int64 id, const gfx::Rect& bounds, float device_scale_factor) argument
[all...]
H A Ddisplay_info.cc28 // Check the content of |spec| and fill |bounds| and |device_scale_factor|.
29 // Returns true when |bounds| is found.
31 const std::string& spec, gfx::Rect* bounds, float* device_scale_factor) {
40 bounds->SetRect(x, y, width, height);
96 // Default bounds for a display.
341 "DisplayInfo[%lld] native bounds=%s, size=%s, scale=%f, "
30 GetDisplayBounds( const std::string& spec, gfx::Rect* bounds, float* device_scale_factor) argument
H A Ddisplay_manager.cc376 // Primary's bounds stay the same. Just notify bounds change
398 if (display.bounds().Contains(point_in_screen))
655 // without --ash-host-window-bounds on linux desktop, use the
838 // Using display.bounds() and display.work_area() would fail most of the
1173 // always (0,0) and the secondary display's bounds will be updated
1209 // registered. The bounds is empty in that case and will
1211 gfx::Rect bounds = local
1212 GetDisplayForId(displays->at(secondary_index).id()).bounds();
1216 return bounds !
[all...]
H A Ddisplay_manager_unittest.cc141 display_manager()->GetDisplayAt(0).bounds().ToString());
146 EXPECT_EQ("0,0 500x500", changed()[0].bounds().ToString());
148 EXPECT_EQ("500,0 400x400", added()[0].bounds().ToString());
162 EXPECT_EQ("0,0 1000x600", changed()[0].bounds().ToString());
171 EXPECT_EQ("1000,0 600x400", added()[0].bounds().ToString());
181 EXPECT_EQ("0,0 800x300", changed()[0].bounds().ToString());
192 display_manager()->GetDisplayAt(0).bounds().ToString());
200 EXPECT_EQ("0,0 500x400", changed()[0].bounds().ToString());
215 display_manager()->GetDisplayAt(0).bounds().ToString());
218 display_manager()->GetDisplayAt(1).bounds()
404 CreateDisplayInfo(int64 id, const gfx::Rect& bounds) argument
[all...]
H A Dmirror_window_controller_unittest.cc25 DisplayInfo CreateDisplayInfo(int64 id, const gfx::Rect& bounds) { argument
27 info.SetBounds(bounds);
88 EXPECT_EQ("50,50 100x100", window->bounds().ToString());
96 test_api.GetCursorWindow()->bounds().origin();
106 cursor_window_origin = test_api.GetCursorWindow()->bounds().origin();
120 cursor_window_origin = test_api.GetCursorWindow()->bounds().origin();
145 EXPECT_EQ("50,50 100x100", window->bounds().ToString());
153 test_api.GetCursorWindow()->bounds().origin();
162 cursor_window_origin = test_api.GetCursorWindow()->bounds().origin();
173 cursor_window_origin = test_api.GetCursorWindow()->bounds()
[all...]
H A Dresolution_notification_controller_unittest.cc92 gfx::Rect bounds = info.bounds_in_native(); local
93 bounds.set_size(actual_new_resolution);
94 info.SetBounds(bounds);
H A Dscreen_position_controller.cc128 const_cast<aura::Window*>(root)).bounds().origin();
137 const_cast<aura::Window*>(root)).bounds().origin();
154 const gfx::Rect& bounds,
158 window->SetBounds(bounds);
166 // intentionally kept in the same root window even if the bounds is
197 // Set new bounds now so that the container's layout manager
198 // can adjust the bounds if necessary.
199 gfx::Point origin = bounds.origin();
200 const gfx::Point display_origin = display.bounds().origin();
202 gfx::Rect new_bounds = gfx::Rect(origin, bounds
153 SetBounds(aura::Window* window, const gfx::Rect& bounds, const gfx::Display& display) argument
[all...]
H A Dshared_display_edge_indicator.cc39 canvas->FillRect(gfx::Rect(bounds().size()), color_);
47 views::Widget* CreateWidget(const gfx::Rect& bounds, argument
61 gfx::Display display = Shell::GetScreen()->GetDisplayMatching(bounds);
65 screen_position_client->SetBounds(window, bounds, display);
/external/chromium_org/ash/drag_drop/
H A Ddrag_drop_interactive_uitest.cc78 const gfx::Rect& bounds) {
84 params.bounds = bounds;
77 CreateWidget(views::View* contents_view, const gfx::Rect& bounds) argument
H A Ddrag_drop_tracker_unittest.cc24 aura::Window* CreateTestWindow(const gfx::Rect& bounds) { argument
29 bounds);
H A Ddrag_image_view.cc56 void DragImageView::SetBoundsInScreen(const gfx::Rect& bounds) { argument
57 widget_->SetBounds(bounds);
58 widget_size_ = bounds.size();
/external/chromium_org/ash/
H A Dextended_desktop_unittest.cc147 views::Widget* CreateTestWidget(const gfx::Rect& bounds) { argument
149 NULL, CurrentContext(), bounds, false);
153 const gfx::Rect& bounds,
156 return CreateTestWidgetWithParentAndContext(parent, NULL, bounds, child);
161 const gfx::Rect& bounds,
167 params.bounds = bounds;
572 // Make sure the bounds which doesn't fit to the root window
684 // Transient window's screen bounds stays the same.
709 EXPECT_EQ("0,0", display_1.bounds()
152 CreateTestWidgetWithParent(views::Widget* parent, const gfx::Rect& bounds, bool child) argument
159 CreateTestWidgetWithParentAndContext(views::Widget* parent, gfx::NativeView context, const gfx::Rect& bounds, bool child) argument
[all...]
H A Droot_window_controller_unittest.cc103 views::Widget* CreateTestWidget(const gfx::Rect& bounds) { argument
105 NULL, CurrentContext(), bounds);
110 views::Widget* CreateModalWidget(const gfx::Rect& bounds) { argument
112 new TestDelegate(true), CurrentContext(), bounds);
117 views::Widget* CreateModalWidgetWithParent(const gfx::Rect& bounds, argument
122 bounds);
175 params.bounds = gfx::Rect(650, 10, 100, 100);
241 // Test if the restore bounds are correctly updated.
600 const gfx::Size size = root->bounds().size();
755 keyboard_container->bounds(), 10
[all...]
/external/chromium_org/ash/frame/
H A Ddefault_header_painter.cc48 const gfx::Rect& bounds,
50 SkRect rect = gfx::RectToSkRect(bounds);
46 TileRoundRect(gfx::Canvas* canvas, const SkPaint& paint, const gfx::Rect& bounds, int corner_radius) argument
/external/chromium_org/ash/host/
H A Dash_window_tree_host_x11.cc56 gfx::Rect barrier(bounds());
139 void AshWindowTreeHostX11::SetBounds(const gfx::Rect& bounds) { argument
140 WindowTreeHostX11::SetBounds(bounds);
211 // space so the bounds check will not work so well.
214 !bounds().Contains(ui::EventLocationFromNative(xev)))
233 gfx::Rect local(bounds().size());
/external/chromium_org/ash/keyboard_overlay/
H A Dkeyboard_overlay_delegate_unittest.cc52 gfx::Rect bounds = widget->GetRestoredBounds(); local
53 EXPECT_EQ(work_area.CenterPoint().x(), bounds.CenterPoint().x());
54 EXPECT_EQ(work_area.bottom(), bounds.bottom());
/external/chromium_org/ash/rotator/
H A Dscreen_rotation.cc51 // Use the target transform/bounds in case the layer is already animating.
53 const gfx::Rect& bounds = layer->GetTargetBounds(); local
58 int width = bounds.width();
59 int height = bounds.height();
/external/chromium_org/ash/shelf/
H A Dshelf.cc84 gfx::Rect bounds(shelf_view_->GetIdealBoundsOfItemIcon(id));
87 return gfx::Rect(screen_origin.x() + bounds.x(),
88 screen_origin.y() + bounds.y(),
89 bounds.width(),
90 bounds.height());
179 void Shelf::SetShelfViewBounds(gfx::Rect bounds) { argument
180 shelf_view_->SetBoundsRect(bounds);
184 return shelf_view_->bounds();
H A Dshelf_button.cc146 void SetBarBoundsRect(const gfx::Rect& bounds) { argument
147 base_bounds_ = bounds;
164 gfx::Rect bounds = base_bounds_; local
173 bounds.set_width(base_bounds_.width() * scale);
174 int x_offset = (base_bounds_.width() - bounds.width()) / 2;
175 bounds.set_x(base_bounds_.x() + x_offset);
177 bounds.set_height(base_bounds_.height() * scale);
178 int y_offset = (base_bounds_.height() - bounds.height()) / 2;
179 bounds.set_y(base_bounds_.y() + y_offset);
182 SetBoundsRect(bounds);
[all...]
H A Dshelf_layout_manager.cc270 gfx::Rect bounds(
275 gfx::Rect(bounds.x(), bounds.bottom() - height, bounds.width(), height),
276 gfx::Rect(bounds.x(), bounds.y(), width, bounds.height()),
277 gfx::Rect(bounds.right() - width, bounds.y(), width, bounds
440 gfx::Rect bounds = GetIdealBounds(); local
[all...]

Completed in 333 milliseconds

1234567891011>>