/external/chromium_org/cc/test/ |
layer_tree_host_common_test.cc | 25 const gfx::Size& bounds, 32 bounds, 42 const gfx::Size& bounds, 49 bounds, 52 layer->SetContentBounds(bounds); 64 gfx::Size(root_layer->bounds().width() * device_scale_factor, 65 root_layer->bounds().height() * device_scale_factor); 69 // We are probably not testing what is intended if the root_layer bounds are 71 DCHECK(!root_layer->bounds().IsEmpty()); 90 gfx::Size(root_layer->bounds().width() * device_scale_factor [all...] |
/external/chromium_org/chrome/browser/ui/cocoa/location_bar/ |
autocomplete_text_field_cell_unittest.mm | 155 const NSRect bounds([view_ bounds]); 159 const NSRect cursorFrame([cell textCursorFrameForFrame:bounds]); 160 EXPECT_TRUE(NSEqualRects(cursorFrame, bounds)); 163 textFrame = [cell textFrameForFrame:bounds]; 165 EXPECT_TRUE(NSContainsRect(bounds, textFrame)); 166 EXPECT_EQ(NSMinX(bounds), NSMinX(textFrame)); 167 EXPECT_EQ(NSMaxX(bounds), NSMaxX(textFrame)); 172 textFrame = [cell textFrameForFrame:bounds]; 174 EXPECT_TRUE(NSContainsRect(bounds, textFrame)) [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/ |
CropDrawingUtils.java | 30 public static void drawRuleOfThird(Canvas canvas, RectF bounds) { 35 float stepX = bounds.width() / 3.0f; 36 float stepY = bounds.height() / 3.0f; 37 float x = bounds.left + stepX; 38 float y = bounds.top + stepY; 40 canvas.drawLine(x, bounds.top, x, bounds.bottom, p); 44 canvas.drawLine(bounds.left, y, bounds.right, y, p); 49 public static void drawCropRect(Canvas canvas, RectF bounds) { [all...] |
/external/chromium_org/chrome/browser/ui/cocoa/infobars/ |
infobar_gradient_view.mm | 60 NSRect bounds = [self bounds]; 61 bounds.size.height = infobars::InfoBar::kDefaultBarTargetHeight; 65 // Around the bounds of the infobar, continue drawing the path into which the 68 [infoBarPath moveToPoint:NSMakePoint(NSMinX(bounds), NSMaxY(bounds))]; 72 [infoBarPath lineToPoint:NSMakePoint(tipXOffset, NSMaxY(bounds))]; 78 [infoBarPath lineToPoint:NSMakePoint(NSMaxX(bounds), NSMaxY(bounds))]; 83 [infoBarPath lineToPoint:NSMakePoint(NSMaxX(bounds), NSMinY(bounds))] [all...] |
/external/chromium_org/content/renderer/compositor_bindings/ |
web_layer_impl_fixed_bounds.h | 15 // need to be automatically scaled when the bounds changes. The compositor 16 // can efficiently handle the bounds change of such layers if the bounds 17 // is fixed to a given value and the change of bounds are converted to 30 virtual void setBounds(const blink::WebSize& bounds); 31 virtual blink::WebSize bounds() const; 35 CONTENT_EXPORT void SetFixedBounds(gfx::Size bounds);
|
/external/chromium_org/third_party/skia/gm/ |
imageblurtiled.cpp | 36 SkRect bounds; local 37 if (!canvas->getClipBounds(&bounds)) { 38 bounds.setEmpty(); 40 for (SkScalar y = bounds.top(); y < bounds.bottom(); y += tile_size) { 41 for (SkScalar x = bounds.left(); x < bounds.right(); x += tile_size) {
|
coloremoji.cpp | 74 // compute the bounds of the text 75 SkRect bounds; local 76 paint.measureText(text, strlen(text), &bounds); 78 const SkScalar boundsHalfWidth = bounds.width() * SK_ScalarHalf; 79 const SkScalar boundsHalfHeight = bounds.height() * SK_ScalarHalf; 83 SkRect upperLeftClip = SkRect::MakeXYWH(bounds.left(), bounds.top(), 85 SkRect lowerRightClip = SkRect::MakeXYWH(bounds.centerX(), bounds.centerY(), 87 SkRect interiorClip = bounds; [all...] |
strokes.cpp | 155 static void make0(SkPath* path, const SkRect& bounds, SkString* title) { 156 path->addRect(bounds, SkPath::kCW_Direction); 157 path->addRect(inset(bounds), SkPath::kCW_Direction); 161 static void make1(SkPath* path, const SkRect& bounds, SkString* title) { 162 path->addRect(bounds, SkPath::kCW_Direction); 163 path->addRect(inset(bounds), SkPath::kCCW_Direction); 167 static void make2(SkPath* path, const SkRect& bounds, SkString* title) { 168 path->addOval(bounds, SkPath::kCW_Direction); 169 path->addOval(inset(bounds), SkPath::kCW_Direction); 173 static void make3(SkPath* path, const SkRect& bounds, SkString* title) 226 SkRect bounds = SkRect::MakeWH(SkIntToScalar(50), SkIntToScalar(50)); local [all...] |
/external/compiler-rt/test/ubsan/TestCases/Misc/ |
bounds.cpp | 1 // RUN: %clangxx -fsanitize=bounds %s -O3 -o %t 12 // CHECK-A-2: bounds.cpp:11:10: runtime error: index 2 out of bounds for type 'int [2][3][4]' 13 // CHECK-B-3: bounds.cpp:11:10: runtime error: index 3 out of bounds for type 'int [3][4]' 14 // CHECK-C-4: bounds.cpp:11:10: runtime error: index 4 out of bounds for type 'int [4]'
|
/external/skia/gm/ |
imageblurtiled.cpp | 36 SkRect bounds; local 37 if (!canvas->getClipBounds(&bounds)) { 38 bounds.setEmpty(); 40 for (SkScalar y = bounds.top(); y < bounds.bottom(); y += tile_size) { 41 for (SkScalar x = bounds.left(); x < bounds.right(); x += tile_size) {
|
coloremoji.cpp | 74 // compute the bounds of the text 75 SkRect bounds; local 76 paint.measureText(text, strlen(text), &bounds); 78 const SkScalar boundsHalfWidth = bounds.width() * SK_ScalarHalf; 79 const SkScalar boundsHalfHeight = bounds.height() * SK_ScalarHalf; 83 SkRect upperLeftClip = SkRect::MakeXYWH(bounds.left(), bounds.top(), 85 SkRect lowerRightClip = SkRect::MakeXYWH(bounds.centerX(), bounds.centerY(), 87 SkRect interiorClip = bounds; [all...] |
strokes.cpp | 155 static void make0(SkPath* path, const SkRect& bounds, SkString* title) { 156 path->addRect(bounds, SkPath::kCW_Direction); 157 path->addRect(inset(bounds), SkPath::kCW_Direction); 161 static void make1(SkPath* path, const SkRect& bounds, SkString* title) { 162 path->addRect(bounds, SkPath::kCW_Direction); 163 path->addRect(inset(bounds), SkPath::kCCW_Direction); 167 static void make2(SkPath* path, const SkRect& bounds, SkString* title) { 168 path->addOval(bounds, SkPath::kCW_Direction); 169 path->addOval(inset(bounds), SkPath::kCW_Direction); 173 static void make3(SkPath* path, const SkRect& bounds, SkString* title) 226 SkRect bounds = SkRect::MakeWH(SkIntToScalar(50), SkIntToScalar(50)); local [all...] |
/frameworks/native/libs/ui/ |
GraphicBufferMapper.cpp | 76 int usage, const Rect& bounds, void** vaddr) 82 bounds.left, bounds.top, bounds.width(), bounds.height(), 90 int usage, const Rect& bounds, android_ycbcr *ycbcr) 96 bounds.left, bounds.top, bounds.width(), bounds.height() [all...] |
/cts/tests/tests/gesture/src/android/gesture/cts/ |
LineGestureStrokeHelper.java | 61 RectF bounds = new RectF(); local 62 linePath.computeBounds(bounds, true); 66 Assert.assertEquals(LINE_MIDWAY_POINT, bounds.bottom); 67 Assert.assertEquals(LINE_START_POINT, bounds.left); 68 Assert.assertEquals(LINE_MIDWAY_POINT, bounds.right); 69 Assert.assertEquals(LINE_START_POINT, bounds.top); 73 * Helper method to assert expected values for a bounds derived from createLineGesture 77 void assertLineBoundingBox(RectF bounds) { 80 Assert.assertEquals(LINE_END_POINT, bounds.bottom); 81 Assert.assertEquals(LINE_START_POINT, bounds.left) [all...] |
/external/chromium_org/ash/wm/workspace/ |
magnetism_matcher.h | 37 MagnetismEdgeMatcher(const gfx::Rect& bounds, MagnetismEdge edge); 41 const gfx::Rect& bounds() const { return bounds_; } function in class:ash::MagnetismEdgeMatcher 47 // Returns true if should attach to the specified bounds. 48 bool ShouldAttach(const gfx::Rect& bounds); 57 static int GetPrimaryCoordinate(const gfx::Rect& bounds, MagnetismEdge edge) { 60 return bounds.y(); 62 return bounds.x(); 64 return bounds.bottom(); 66 return bounds.right(); 87 Range GetPrimaryRange(const gfx::Rect& bounds) const [all...] |
/external/chromium_org/mojo/services/public/interfaces/native_viewport/ |
native_viewport.mojom | 13 Create(Rect bounds); 17 SetBounds(Rect bounds); 23 OnBoundsChanged(Rect bounds);
|
/external/chromium_org/chrome/browser/ui/cocoa/autofill/ |
autofill_popup_view_cocoa.mm | 28 // Draws an Autofill suggestion in the given |bounds|, labeled with the given 38 bounds:(NSRect)bounds 54 bounds:(NSRect)bounds 59 bounds:(NSRect)bounds; 63 bounds:(NSRect)bounds 130 bounds:rowBound [all...] |
/external/chromium_org/chrome/browser/ui/cocoa/find_bar/ |
find_bar_text_field_cell_unittest.mm | 96 const NSRect bounds = [view_ bounds]; 97 NSRect textFrame = [cell_ textFrameForFrame:bounds]; 98 NSRect cursorFrame = [cell_ textCursorFrameForFrame:bounds]; 102 EXPECT_TRUE(NSContainsRect(bounds, textFrame)); 103 EXPECT_EQ(NSMinX(bounds), NSMinX(textFrame)); 104 EXPECT_EQ(NSMaxX(bounds), NSMaxX(textFrame)); 109 textFrame = [cell_ textFrameForFrame:bounds]; 110 cursorFrame = [cell_ textCursorFrameForFrame:bounds]; 112 EXPECT_TRUE(NSContainsRect(bounds, textFrame)) [all...] |
/external/chromium_org/ash/shelf/ |
overflow_button.cc | 55 gfx::Rect bounds(GetContentsBounds()); 63 bounds.x() + ((bounds.width() - kButtonHoverSize) / 2) - 1, 64 bounds.y() + kBackgroundOffset - 1)); 68 bounds.x() + kBackgroundOffset - 1, 69 bounds.y() + ((bounds.height() - kButtonHoverSize) / 2) - 1)); 90 gfx::Rect bounds(GetContentsBounds()); 103 bounds = gfx::Rect( 104 bounds.right() - background->width() [all...] |
/external/chromium_org/ui/views/layout/ |
box_layout_unittest.cc | 41 EXPECT_EQ(gfx::Rect(0, 0, 10, 20), v1->bounds()); 42 EXPECT_EQ(gfx::Rect(10, 0, 10, 20), v2->bounds()); 54 EXPECT_EQ(gfx::Rect(0, 0, 20, 10), v1->bounds()); 55 EXPECT_EQ(gfx::Rect(0, 10, 20, 10), v2->bounds()); 67 EXPECT_EQ(gfx::Rect(10, 20, 10, 20), v1->bounds()); 68 EXPECT_EQ(gfx::Rect(20, 20, 10, 20), v2->bounds()); 75 EXPECT_EQ(gfx::Rect(10, 5, 10, 20), v1->bounds()); 76 EXPECT_EQ(gfx::Rect(20, 5, 10, 20), v2->bounds()); 88 EXPECT_EQ(gfx::Rect(7, 7, 10, 86), v1->bounds()); 89 EXPECT_EQ(gfx::Rect(25, 7, 10, 86), v2->bounds()); [all...] |
/external/chromium_org/ui/v2/public/ |
layout.h | 17 // Called by the View to commit the bounds. It is up to the Layout to 18 // figure out what bounds to actually set, via SetBoundsDirect below. 23 // Sets the specified |bounds| on |child| without consulting layout. 24 void SetChildBoundsDirect(View* child, const gfx::Rect& bounds);
|
/external/clang/test/FixIt/ |
selector-fixit.m | 34 - (int) bounds; 38 - (int) bounds { return 0; } 39 - (void)PrivateMeth { int bounds = [self bonds]; } 40 - (void)OtherPrivateMeth : (id) p { int bounds = [p bonds]; }
|
/external/valgrind/main/none/tests/x86/ |
int.stderr.exp | 4 GPF (Pointer out of bounds?)
|
/external/chromium_org/ash/system/tray/ |
tray_item_more.cc | 87 gfx::Rect bounds(size); 88 bounds.set_x(width() - size.width() - kTrayPopupPaddingBetweenItems); 89 bounds.set_y((height() - size.height()) / 2); 90 more_->SetBoundsRect(bounds); 92 // Adjust the label's bounds in case it got cut off by |more_|. 93 if (label_->bounds().Intersects(more_->bounds())) { 94 gfx::Rect bounds = label_->bounds(); local 95 bounds.set_width(more_->x() - kTrayPopupPaddingBetweenItems - label_->x()) [all...] |
/external/chromium_org/ash/wm/ |
wm_event.cc | 17 SetBoundsEvent::SetBoundsEvent(WMEventType type, const gfx::Rect& bounds) 19 requested_bounds_(bounds) {
|