/cts/tests/tests/graphics/src/android/graphics/cts/ |
PathTest.java | 77 RectF rect = new RectF(LEFT, TOP, RIGHT, BOTTOM); local 78 path.addRect(rect, Path.Direction.CW); 605 RectF rect = new RectF(LEFT, TOP, RIGHT, BOTTOM); local 606 path.addRoundRect(rect, XCOORD, YCOORD, Path.Direction.CW); 627 RectF rect = new RectF(LEFT, TOP, RIGHT, BOTTOM); local 632 path.addRoundRect(rect, radii, Path.Direction.CW); 801 RectF rect = new RectF(LEFT, TOP, RIGHT, BOTTOM); local 802 path.addRect(rect, Path.Direction.CW);
|
YuvImageTest.java | 31 import android.graphics.Rect; 74 private Rect[] mRects = { new Rect(0, 0, 0 + mRectWidths[0], 0 + mRectHeights[0]), 75 new Rect(10, 10, 10 + mRectWidths[0], 10 + mRectHeights[0]), 76 new Rect(0, 0, 0 + mRectWidths[1], 0 + mRectHeights[1]), 77 new Rect(11, 11, 11 + mRectWidths[1], 11 + mRectHeights[1]) }; 80 private Rect[] mRectsShifted = { mRects[0], mRects[1] }; 82 // A rect whose side lengths are odd. 83 private Rect mRectOddSides = new Rect(10, 10, 10 + mRectWidths[2] 443 Rect rect = new Rect(0, 0, WIDTH, HEIGHT); local 452 Rect rect = new Rect(0, 0, WIDTH, HEIGHT); local 461 Rect rect = new Rect(0, 0, WIDTH, HEIGHT); local 470 Rect rect = new Rect(10, 0, WIDTH, HEIGHT + 5); local [all...] |
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
RotateDrawableTest.java | 31 import android.graphics.Rect; 204 args = {android.graphics.Rect.class} 207 Rect rect = new Rect(); local 208 assertFalse(mRotateDrawable.getPadding(rect)); 209 assertEquals(0, rect.left); 210 assertEquals(0, rect.top); 211 assertEquals(0, rect.right); 212 assertEquals(0, rect.bottom) [all...] |
/cts/tests/tests/widget/src/android/widget/cts/ |
FrameLayoutTest.java | 33 import android.graphics.Rect; 139 Rect rect = foreground.getBounds(); local 141 assertEquals(mFrameLayout.getHeight(), rect.bottom - rect.top); 142 assertEquals(mFrameLayout.getWidth(), rect.right - rect.left); 161 rect = newForeground.getBounds(); 163 assertEquals(foreground.getIntrinsicHeight(), rect.bottom - rect.top) 376 Rect rect = drawable.getBounds(); local [all...] |
HorizontalScrollViewTest.java | 31 import android.graphics.Rect; 569 args = {android.graphics.Rect.class} 575 // Rect's width is smaller than scroll view 576 Rect rect = new Rect(0, 0, 0, 0); local 577 assertEquals(0, mScrollView.computeScrollDeltaToGetChildRectOnScreen(rect)); 579 rect = new Rect(edge, 0, PAGE_WIDTH, 0); 580 assertEquals(0, mScrollView.computeScrollDeltaToGetChildRectOnScreen(rect)); [all...] |
/external/chromium/chrome/browser/chromeos/notifications/ |
notification_panel.cc | 112 gfx::Rect bounds = GetWindowScreenBounds(); 167 gfx::Rect GetNewBounds() { 168 gfx::Rect rect; local 173 if (rect.IsEmpty()) { 174 rect = view->bounds(); 176 rect = rect.Union(view->bounds()); 180 return gfx::Rect(x(), y(), rect.width(), rect.height()) 844 gfx::Rect rect = panel_->scroll_view_->GetVisibleRect(); local [all...] |
/external/chromium/chrome/browser/ui/gtk/tabs/ |
dragged_tab_controller_gtk.cc | 135 const gfx::Rect& initial_pos, 169 const gfx::Rect& pos) { 282 gfx::Rect bounds = GetDraggedTabTabStripBounds(dragged_tab_point); 322 gfx::Rect tabstrip_bounds = 392 gfx::Rect bounds = GetDraggedTabTabStripBounds(screen_point); 444 gfx::Rect DraggedTabControllerGtk::GetDraggedTabTabStripBounds( 449 return gfx::Rect(client_point.x(), client_point.y(), 454 const gfx::Rect& dragged_bounds, 467 gfx::Rect ideal_bounds = attached_tabstrip_->GetIdealBounds(i); 469 gfx::Rect left_half = ideal_bounds 664 gfx::Rect rect = GetTabScreenBounds(tab); local 688 gfx::Rect rect; local [all...] |
/external/chromium/chrome/browser/ui/views/autocomplete/ |
autocomplete_popup_contents_view.cc | 232 gfx::Rect AutocompletePopupContentsView::GetPopupBounds() const { 236 gfx::Rect current_frame_bounds = start_bounds_; 249 gfx::Rect contents_rect = GetContentsBounds(); 319 gfx::Rect new_target_bounds = CalculateTargetBounds(CalculatePopupHeight()); 355 gfx::Rect AutocompletePopupContentsView::GetTargetBounds() { 511 // Because the border of this view creates an anti-aliased round-rect region 513 // this round rect region. We can't use a simple clip because clipping is 517 // shader to fill a path representing the round-rect clipping region. This 567 const gfx::Rect& bounding_rect) { 568 SkRect rect; local [all...] |
/external/chromium/chrome/browser/ui/views/frame/ |
glass_browser_frame_view.cc | 112 gfx::Rect GlassBrowserFrameView::GetBoundsForTabStrip( 116 return gfx::Rect(NonClientBorderThickness(), 144 return gfx::Rect(tabstrip_x, GetHorizontalTabStripVerticalOffset(false), 169 gfx::Rect GlassBrowserFrameView::GetBoundsForClientView() const { 177 gfx::Rect GlassBrowserFrameView::GetWindowBoundsForClientBounds( 178 const gfx::Rect& client_bounds) const { 185 RECT rect = client_bounds.ToRECT(); local 186 AdjustWindowRectEx(&rect, GetWindowLong(hwnd, GWL_STYLE), FALSE, 188 return gfx::Rect(rect) [all...] |
/external/chromium/chrome/browser/ui/views/ |
status_bubble_views.cc | 346 gfx::Rect popup_bounds = popup_->GetWindowScreenBounds(); 408 SkRect rect; local 409 rect.set(0, 0, 413 shadow_path.addRoundRect(rect, rad, SkPath::kCW_Direction); 420 rect.set(SkIntToScalar(kShadowThickness), 425 path.addRoundRect(rect, rad, SkPath::kCW_Direction); 435 gfx::Rect body_bounds(kShadowThickness + kTextPositionX, 573 popup_->Init(frame->GetNativeView(), gfx::Rect()); 585 popup_->SetBounds(gfx::Rect(top_left.x() + position_.x(), 649 gfx::Rect popup_bounds = popup_->GetWindowScreenBounds() [all...] |
/external/clang/test/Sema/ |
designated-initializers.c | 56 struct rect { struct 61 struct rect window = { .top_left.x = 1.0 }; 63 struct rect windows[] = { 70 int windows_size[((sizeof(windows) / sizeof(struct rect)) == 6)? 1 : -1]; 72 struct rect windows_bad[3] = { 78 struct rect windows[10]; 87 struct rect window;
|
/external/opencv/cv/src/ |
cvpyrsegmentation.cpp | 61 _CvRect16u rect; /* ROI for the connected component */ member in struct:_CvPyramid 77 _CvRect16u rect; /* ROI for the connected component */ member in struct:_CvPyramidC3 311 p_cur->rect.x2 = 0; 731 p_cur->rect.x2 = 0; [all...] |
/external/qemu/distrib/sdl-1.2.12/src/video/ |
SDL_video.c | 995 SDL_Rect rect; local 1008 rect.x = (Sint16)x; 1009 rect.y = (Sint16)y; 1010 rect.w = (Uint16)w; 1011 rect.h = (Uint16)h; 1012 SDL_UpdateRects(screen, 1, &rect); 1088 SDL_Rect rect; local 1103 rect.x = 0; 1104 rect.y = 0; 1105 rect.w = screen->w [all...] |
/external/qemu/distrib/sdl-1.2.12/src/video/macdsp/ |
SDL_dspvideo.c | 179 static int DSp_FillHWRect(_THIS, SDL_Surface *dst, SDL_Rect *rect, Uint32 color); 438 Rect bounds; 934 Rect rect; local 938 SetRect (&rect, 0, 0, width, height); 955 PaintRect (&rect); 982 Rect rect; local 986 SetRect (&rect, 0, 0, surface->w, surface->h); 988 if ( noErr != NewGWorld (&(surface->hwdata->mask), depth, &rect, 0, SDL_Display, 0 ) < 0 ) 1239 Rect rect; local 1266 &rect, &rect, srcCopy, NULL ); local 1302 Rect rect; local [all...] |
/external/qemu/distrib/sdl-1.2.12/src/video/wincommon/ |
SDL_sysevents.c | 72 RECT SDL_bounds = {0, 0, 0, 0}; 261 RECT rect; local 264 GetClientRect(hWnd, &rect); 265 MapWindowPoints(hWnd, NULL, (LPPOINT)&rect, 2); 267 if ( !PtInRect(&rect, pt) || (WindowFromPoint(pt) != hWnd) ) { 605 RECT size;
|
/external/qemu/hw/ |
goldfish_fb.c | 262 * Return 0 if there was no change, otherwise, populate '*rect' 276 FbUpdateRect* rect) 283 rect->xmin = rect->ymin = INT_MAX; 284 rect->xmax = rect->ymax = INT_MIN; 420 if (xx1 < rect->xmin) rect->xmin = xx1; 421 if (xx2 > rect->xmax) rect->xmax = xx2 479 FbUpdateRect rect; local [all...] |
/external/quake/quake/src/WinQuake/ |
sys_win.cpp | 700 RECT rect;
local 761 if (GetWindowRect (hwnd_dialog, &rect))
763 if (rect.left > (rect.top * 2))
766 (rect.left / 2) - ((rect.right - rect.left) / 2),
767 rect.top, 0, 0,
|
/external/webkit/Source/WebCore/css/ |
CSSComputedStyleDeclaration.cpp | 45 #include "Rect.h" 361 RefPtr<Rect> rect = Rect::create(); local 362 rect->setTop(top); 363 rect->setRight(right); 364 rect->setBottom(bottom); 365 rect->setLeft(left); 367 return CSSBorderImageValue::create(imageValue, rect, valueForRepeatRule(image.horizontalRule()), valueForRepeatRule(image.verticalRule())); [all...] |
/external/webkit/Source/WebCore/page/ |
Frame.cpp | 829 IntRect rect = editor()->firstRectForRange(previousCharacterRange.get()); local 830 if (rect.contains(framePoint)) 837 IntRect rect = editor()->firstRectForRange(nextCharacterRange.get()); local 838 if (rect.contains(framePoint)) 908 void Frame::tiledBackingStorePaint(GraphicsContext* context, const IntRect& rect) 912 m_view->paintContents(context, rect); [all...] |
/external/webkit/Source/WebCore/platform/android/ |
RenderThemeAndroid.cpp | 226 bool RenderThemeAndroid::paintCheckbox(RenderObject* obj, const PaintInfo& info, const IntRect& rect) 228 RenderSkinRadio::Draw(getCanvasFromInfo(info), obj->node(), rect, true); local 232 bool RenderThemeAndroid::paintButton(RenderObject* obj, const PaintInfo& info, const IntRect& rect) 242 skins->renderSkinButton()->draw(getCanvasFromInfo(info), rect, local 247 info.context->platformContext()->storeButtonInfo(node, rect); 282 bool RenderThemeAndroid::paintMediaFullscreenButton(RenderObject* o, const PaintInfo& paintInfo, const IntRect& rect) 287 RenderSkinMediaButton::Draw(getCanvasFromInfo(paintInfo), rect, RenderSkinMediaButton::FULLSCREEN, translucent); local 291 bool RenderThemeAndroid::paintMediaMuteButton(RenderObject* o, const PaintInfo& paintInfo, const IntRect& rect) 296 RenderSkinMediaButton::Draw(getCanvasFromInfo(paintInfo), rect, RenderSkinMediaButton::MUTE, translucent); local 300 bool RenderThemeAndroid::paintMediaPlayButton(RenderObject* o, const PaintInfo& paintInfo, const IntRect& rect) 307 RenderSkinMediaButton::Draw(getCanvasFromInfo(paintInfo), rect, RenderSkinMediaButton::PLAY, translucent); local 309 RenderSkinMediaButton::Draw(getCanvasFromInfo(paintInfo), rect, RenderSkinMediaButton::PAUSE, translucent); local 320 RenderSkinMediaButton::Draw(getCanvasFromInfo(paintInfo), rect, RenderSkinMediaButton::REWIND, translucent); local 329 RenderSkinMediaButton::Draw(getCanvasFromInfo(paintInfo), rect, RenderSkinMediaButton::FORWARD, translucent); local 338 RenderSkinMediaButton::Draw(getCanvasFromInfo(paintInfo), rect, RenderSkinMediaButton::BACKGROUND_SLIDER, translucent); local 347 RenderSkinMediaButton::Draw(getCanvasFromInfo(paintInfo), rect, local 357 RenderSkinMediaButton::Draw(getCanvasFromInfo(paintInfo), rect, RenderSkinMediaButton::SLIDER_THUMB, translucent); local 375 RenderSkinRadio::Draw(getCanvasFromInfo(info), obj->node(), rect, false); local [all...] |
/external/webkit/Source/WebCore/platform/graphics/openvg/ |
PainterOpenVG.cpp | 739 void PainterOpenVG::intersectScissorRect(const FloatRect& rect) 750 m_state->scissorRect.intersect(FloatRect(enclosingIntRect(rect))); 753 m_state->scissorRect = FloatRect(enclosingIntRect(rect)); 759 void PainterOpenVG::intersectClipRect(const FloatRect& rect) 766 intersectScissorRect(rect); 775 FloatQuad effectiveScissorQuad = m_state->surfaceTransformation.mapQuad(FloatQuad(rect)); 783 scissorRectPath.addRect(rect); 820 void PainterOpenVG::drawRect(const FloatRect& rect, VGbitfield specifiedPaintModes) 845 if (vguRect(path, rect.x(), rect.y(), rect.width(), rect.height()) == VGU_NO_ERROR) 1170 const IntRect rect = intersection(src, IntRect(0, 0, m_surface->width(), m_surface->height())); local [all...] |
/external/webkit/Source/WebCore/platform/graphics/texmap/ |
TextureMapperNode.cpp | 140 void TextureMapperNode::setNeedsDisplayInRect(IntRect rect) 147 rect.intersect(IntRect(0, 0, m_size.width(), m_size.height())); 148 if (rect.isEmpty()) 150 m_platformClient->setNeedsDisplayInRect(rect); 157 m_parent->setNeedsDisplayInRect(rect); 514 const IntRect rect = m_layerType == ClipLayer ? entireRect() : targetRect(); local 516 options.textureMapper->drawTexture(*m_texture.get(), rect, transform, opacity, options.isSurface ? 0 : maskTexture.get());
|
/external/webkit/Source/WebCore/platform/graphics/wince/ |
SharedBitmap.cpp | 296 PassOwnPtr<HBITMAP> SharedBitmap::clipBitmap(const IntRect& rect, bool useAlpha, BitmapInfo& bmpInfo, void*& pixels) 303 int copyWidth = std::min<int>(rect.width(), oldWidth - rect.x()); 304 int copyHeight = std::min<int>(rect.height(), oldHeight - rect.y()); 317 StretchDIBits(dcNew.get(), 0, 0, copyWidth, copyHeight, rect.x(), rect.y(), copyWidth, copyHeight, 324 PassRefPtr<SharedBitmap> SharedBitmap::clipBitmap(const IntRect& rect, bool useAlpha) 328 int copyWidth = std::min<int>(rect.width(), oldWidth - rect.x()) 463 RECT* rect = reinterpret_cast<RECT*>(regionData[0].Buffer); local 567 RECT rect = { 0, 0, bmp->width(), bmp->height() }; local [all...] |
/external/webkit/Source/WebKit/android/WebCoreSupport/ |
ChromeClientAndroid.cpp | 123 const IntRect& rect = bridge->getWindowBounds(); local 124 FloatRect fRect(rect.x(), rect.y(), rect.width(), rect.height());
|
/external/webkit/Source/WebKit/android/nav/ |
FindCanvas.cpp | 175 SkRect rect; local 176 rect.fLeft = pos[0] + before; 178 rect.fRight = paint.measureText(glyphs, countInBytes, 0) + rect.fLeft; 182 rect.fTop = baseline + fontMetrics.fAscent; 183 rect.fBottom = baseline + fontMetrics.fDescent; 185 matrix.mapRect(&rect); 192 return rect; 215 /* Accumulate and then add the resulting rect to mMatches */ 382 SkRect rect = (this->*addMatch)(matchIndex, paint local 683 const SkIRect& rect = (*m_matches)[i].getLocation().getBounds(); local [all...] |