| /sdk/sdkmanager/libs/sdkuilib/src/com/android/sdkuilib/internal/widgets/ |
| ResolutionChooserDialog.java | 64 Rectangle rect = mMonitors[mMonitorIndex].getBounds(); local 67 double d = Math.sqrt(rect.width * rect.width + rect.height * rect.height) / size;
|
| /frameworks/base/tests/BiDiTests/src/com/android/bidi/ |
| BiDiTestView.java | 23 import android.graphics.Rect; 40 private Rect rect = new Rect(); field in class:BiDiTestView 184 rect.set(BORDER_PADDING, BORDER_PADDING, width - BORDER_PADDING, height - BORDER_PADDING); 185 canvas.drawRect(rect, paint);
|
| /cts/tests/tests/graphics/src/android/graphics/cts/ |
| PaintFlagsDrawFilterTest.java | 28 import android.graphics.Rect; 100 Rect rect = new Rect(BITMAP_WIDTH, BITMAP_HEIGHT, 0, 0); local 105 rect.left = Math.min(rect.left, x); 106 rect.right = Math.max(rect.right, x); 107 rect.top = Math.min(rect.top, y) [all...] |
| /cts/tests/tests/graphics/src/android/graphics/drawable/shapes/cts/ |
| RectShapeTest.java | 101 method = "rect", 112 RectF rect = rectShape.myRect(); local 113 assertEquals(0.0f, rect.left); 114 assertEquals(0.0f, rect.top); 115 assertEquals(0.0f, rect.right); 116 assertEquals(0.0f, rect.bottom); 119 rect = rectShape.myRect(); 120 assertEquals(0.0f, rect.left); 121 assertEquals(0.0f, rect.top); 122 assertEquals((float) TEST_WIDTH, rect.right) [all...] |
| /cts/tests/tests/view/src/android/view/cts/ |
| FocusFinderTest.java | 23 import android.graphics.Rect; 103 args = {ViewGroup.class, Rect.class, int.class} 115 Rect rect = new Rect(); local 116 mTopLeft.getDrawingRect(rect); 117 rect.offset(mTopLeft.getWidth() / 2, 0); 118 rect.inset(mTopLeft.getWidth() / 4, mTopLeft.getHeight() / 4); 120 assertNextFocusFromRect(rect, View.FOCUS_LEFT, mTopLeft); 121 assertNextFocusFromRect(rect, View.FOCUS_RIGHT, mTopRight) [all...] |
| /external/chromium/chrome/browser/chromeos/frame/ |
| bubble_frame_view.cc | 16 #include "ui/gfx/rect.h" 94 gfx::Rect BubbleFrameView::GetBoundsForClientView() const { 98 gfx::Rect BubbleFrameView::GetWindowBoundsForClientBounds( 99 const gfx::Rect& client_bounds) const { 120 return gfx::Rect(std::max(0, client_bounds.x() - insets.left()), 157 gfx::Rect bounds(0, 0, pref.width(), pref.height()); 209 // The border of this view creates an anti-aliased round-rect region for the 216 gfx::Rect bounds(GetContentsBounds()); 217 SkRect rect; local 218 rect.set(SkIntToScalar(bounds.x()), SkIntToScalar(bounds.y()) [all...] |
| /external/chromium/chrome/browser/chromeos/login/ |
| helper.cc | 49 SkRect rect; local 50 rect.set(SkIntToScalar(0), 68 canvas->AsCanvasSkia()->drawRect(rect, paint); 105 gfx::Rect throbber_bounds = CalculateThrobberBounds(throbber); 131 gfx::Rect ThrobberHostView::CalculateThrobberBounds(views::Throbber* throbber) { 132 gfx::Rect bounds(throbber->GetPreferredSize()); 159 gfx::Rect CalculateScreenBounds(const gfx::Size& size) { 160 gfx::Rect bounds(views::Screen::GetMonitorWorkAreaNearestWindow(NULL));
|
| rounded_rect_painter.cc | 32 SkRect rect; local 33 rect.set( 38 rect, SkIntToScalar(corner_radius), SkIntToScalar(corner_radius)); 59 // Expand rect by 0.5px so resulting stroke will take the whole pixel. 60 rect.set( 70 rect, 90 SkRect rect; local 91 rect.set( 95 rect, 139 // screens. It draws a rect with padding, shadow and rounded corners 199 SkRect rect; local [all...] |
| /external/chromium/chrome/browser/ui/views/ |
| fullscreen_exit_bubble.cc | 87 // Create a round-bottomed rect to fill the whole View. 88 SkRect rect; local 90 // The "-padding" top coordinate ensures that the rect is always tall enough 94 rect.set(0, -padding, SkIntToScalar(width()), SkIntToScalar(height())); 97 path.addRoundRect(rect, rad, SkPath::kCW_Direction); 175 gfx::Rect popup_rect(GetPopupRect(false)); 246 gfx::Rect FullscreenExitBubble::GetPopupRect( 255 gfx::Rect screen_bounds = views::Screen::GetMonitorAreaNearestWindow( 260 return gfx::Rect(origin, size);
|
| /external/chromium/chrome/common/extensions/ |
| extension_action.cc | 17 #include "ui/gfx/rect.h" 106 const gfx::Rect& bounds, 144 SkRect rect; local 145 rect.fBottom = SkIntToScalar(bounds.bottom() - kBottomMargin); 146 rect.fTop = rect.fBottom - SkIntToScalar(kBadgeHeight); 148 rect.fLeft = SkIntToScalar( 152 rect.fRight = rect.fLeft + SkIntToScalar(badge_width); 154 rect.fRight = SkIntToScalar(bounds.right()) [all...] |
| /external/opencv/cvaux/src/ |
| camshift.cpp | 162 if( m_comp.rect.width == 0 || m_comp.rect.height == 0 || 173 cvSetImageROI( m_color_planes[i], m_comp.rect ); 174 cvSetImageROI( m_mask, m_comp.rect ); 180 cvSetImageROI( m_color_planes[i], m_comp.rect ); 204 CvRect rect; local 213 if( m_comp.rect.width == 0 || m_comp.rect.height == 0 || 224 rect = m_comp.rect; [all...] |
| /external/opencv/otherlibs/highgui/ |
| grfmt_imageio.cpp | 181 CGRect rect = {{0,0},{m_width,m_height}}; local 182 CGContextDrawImage( context, rect, imageRef );
|
| /external/qemu/android/skin/ |
| composer.h | 15 #include "android/skin/rect.h" 91 SkinRect rect; member in struct:SkinViewport 97 extern SkinViewport* skin_viewport( SkinPlate* space, SkinRect* rect, void* surface, int sx, int sy );
|
| /external/qemu/distrib/sdl-1.2.12/src/video/aalib/ |
| SDL_aavideo.c | 331 SDL_Rect *rect; local 340 rect = &rects[i]; 341 printf("(%d,%d-%d,%d)", rect->x, rect->y, rect->w, rect->h); 342 aa_renderpalette(AA_context, AA_palette, AA_rparams, rect->x * AA_x_ratio, rect->y * AA_y_ratio, rect->w * AA_x_ratio, rect->h * AA_y_ratio) [all...] |
| /external/qemu/distrib/sdl-1.2.12/src/video/nanox/ |
| SDL_nxvideo.c | 421 SDL_Rect rect ; local 445 rect.x = rect.y = 0 ; 446 rect.w = this -> screen -> w, rect.h = this -> screen -> h ; 447 NX_NormalUpdate (this, 1, & rect) ;
|
| /external/qemu/distrib/sdl-1.2.12/src/video/wincommon/ |
| SDL_wingl.c | 47 RECT rect = { 0, 0, 0, 0 }; local 49 GetWindowRect(SDL_Window, &rect); 56 rect.left, rect.top, 57 (rect.right-rect.left)+1, 58 (rect.bottom-rect.top)+1,
|
| /external/skia/include/core/ |
| SkRect.h | 49 SkIRect rect; local 50 rect.set(l, t, r, b); 51 return rect; 322 SkRect rect; 323 rect.set(l, t, r, b); 324 return rect; 380 /** Initialize the rect with the 4 specified integers. The routine handles 503 * Grow the rect to include the specified (x,y). After this call, the 509 * that contains(x,y) always returns false if the rect is empty.
|
| /external/skia/src/images/ |
| SkImageDecoder_fpdfemb.cpp | 213 FPDFEMB_RECT rect; local 214 result = FPDFEMB_GetPageBBox(page, &rect); 215 SkDebugf("----- SkImageDecoder_FPDFEMB_Factory page rect %d [%d %d %d %d]\n", result, 216 rect.left, rect.top, rect.right, rect.bottom); 223 this->render(page, rect, bm, prefConfig, mode);
|
| /external/webkit/Source/WebCore/html/ |
| DataGridColumn.h | 79 const IntRect& rect() const { return m_rect; } function in class:WebCore::DataGridColumn 80 void setRect(const IntRect& rect) { m_rect = rect; }
|
| /external/webkit/Source/WebCore/html/shadow/ |
| TextControlInnerElements.cpp | 430 IntRect rect = input->renderer()->absoluteBoundingBoxRect(); local 431 if (speechInput()->startRecognition(m_listenerId, rect, language, grammar, document()->securityOrigin()))
|
| /external/webkit/Source/WebCore/platform/efl/ |
| ScrollbarEfl.cpp | 138 IntRect rect = frameRect(); local 139 rect.setSize(IntSize(w, h)); 140 setFrameRect(rect); 188 void ScrollbarEfl::setFrameRect(const IntRect& rect) 190 Widget::setFrameRect(rect); 202 IntRect rect = frameRect(); 204 rect.setLocation(parent()->convertToContainingWindow(rect.location())); 206 rect.setLocation(parent()->contentsToWindow(rect.location())) [all...] |
| /external/webkit/Source/WebCore/platform/graphics/ |
| RoundedIntRect.h | 79 const IntRect& rect() const { return m_rect; } function in class:WebCore::RoundedIntRect 84 void setRect(const IntRect& rect) { m_rect = rect; } 110 return a.rect() == b.rect() && a.radii() == b.radii();
|
| /external/webkit/Source/WebCore/platform/graphics/android/ |
| TiledTexture.cpp | 236 SkRect rect; local 237 rect.fLeft = tile->x() * tileWidth; 238 rect.fTop = tile->y() * tileHeight; 239 rect.fRight = rect.fLeft + tileWidth; 240 rect.fBottom = rect.fTop + tileHeight; 244 tile->draw(m_surface->opacity(), rect, m_scale);
|
| VideoLayerAndroid.cpp | 107 SkRect rect = SkRect(buttonRect); local 109 bitmap.setConfig(SkBitmap::kARGB_8888_Config, rect.width(), rect.height()); 156 SkRect rect = SkRect::MakeSize(getSize()); local 160 if (innerRect.contains(rect)) 161 innerRect = rect; 163 innerRect.offset((rect.width() - IMAGESIZE) / 2 , (rect.height() - IMAGESIZE) / 2); 169 TilesManager::instance()->shader()->drawLayerQuad(m_drawTransform, rect, 203 rect, textureId) [all...] |
| /external/webkit/Source/WebCore/platform/graphics/ca/win/ |
| CACFLayerTreeHost.cpp | 48 inline static CGRect winRectToCGRect(RECT rc) 53 inline static CGRect winRectToCGRect(RECT rc, RECT relativeToRect) 243 RECT clientRect; 250 RECT dirtyRect; 264 RECT* rect = reinterpret_cast<RECT*>(regionData->Buffer); local 265 for (size_t i = 0; i < outRects.size(); ++i, ++rect) 266 outRects[i] = winRectToCGRect(*rect, clientRect) [all...] |