/external/zxing/qr_scanner/src/com/google/zxing/client/android/camera/ |
CameraManager.java | 24 import android.graphics.Rect; 52 private Rect framingRect; 53 private Rect framingRectInPreview; 113 // Make sure to clear these each time we close the camera, so that any scanning rect 173 * Calculates the framing rect which the UI should draw to show the user where to place the 179 public Rect getFramingRect() { 199 framingRect = new Rect(leftOffset, topOffset, leftOffset + width, topOffset + height); 200 Log.d(TAG, "Calculated framing rect: " + framingRect); 209 public Rect getFramingRectInPreview() { 211 Rect framingRect = getFramingRect() 215 Rect rect = new Rect(framingRect); local 267 Rect rect = getFramingRectInPreview(); local [all...] |
/external/chromium_org/chrome/browser/resources/file_manager/js/image_editor/ |
image_util.js | 85 * new Rect(left, top, width, height) 86 * new Rect(width, height) 87 * new Rect(rect) // anything with left, top, width, height properties 88 * new Rect(bounds) // anything with left, top, right, bottom properties 89 * new Rect(canvas|image) // anything with width and height properties. 90 * new Rect() // empty rectangle. 93 function Rect() { 138 console.error('Invalid Rect constructor arguments:', 144 * @return {Rect} A rectangle with every dimension scaled [all...] |
/cts/tests/tests/graphics/src/android/graphics/cts/ |
EmbossMaskFilterTest.java | 26 import android.graphics.Rect; 59 Rect top = new Rect(0, 0, BITMAP_WIDTH, CENTER_Y); 60 Rect bottom = new Rect(0, CENTER_Y, BITMAP_WIDTH, BITMAP_HEIGHT); 61 Rect left = new Rect(0, 0, CENTER_X, BITMAP_HEIGHT); 62 Rect right = new Rect(CENTER_X, 0, BITMAP_WIDTH, BITMAP_HEIGHT); 82 private long brightness(Bitmap b, Rect rect) [all...] |
/external/chromium_org/cc/test/ |
tiled_layer_test_common.h | 16 #include "ui/gfx/rect.h" 32 gfx::Rect source_rect, 48 virtual void PrepareToUpdate(gfx::Rect content_rect, 52 gfx::Rect* resulting_opaque_rect) OVERRIDE; 53 // Sets the rect to invalidate during the next call to PrepareToUpdate(). 54 // After the next call to PrepareToUpdate() the rect is reset. 55 void SetRectToInvalidate(gfx::Rect rect, FakeTiledLayer* layer); 56 // Last rect passed to PrepareToUpdate(). 57 gfx::Rect last_update_rect() const { return last_update_rect_; [all...] |
/external/chromium_org/content/browser/aura/ |
software_output_device_win.cc | 44 SkCanvas* SoftwareOutputDeviceWin::BeginPaint(gfx::Rect damage_rect) { 62 gfx::Rect rect = damage_rect_; local 63 rect.Intersect(gfx::Rect(viewport_size_)); 64 if (rect.IsEmpty()) 70 RECT wr; 91 rect.x(), rect.y(), 92 rect.width(), rect.height() [all...] |
/external/chromium_org/ui/gfx/ |
canvas.cc | 15 #include "ui/gfx/rect.h" 113 void Canvas::DrawDashedRect(const gfx::Rect& rect, SkColor color) { 116 // of the focus rect (this may mean that opposing edges of the rect may 152 DrawRect(gfx::Rect(rect.x(), rect.y(), rect.width(), 1), paint); 153 DrawRect(gfx::Rect(rect.x(), rect.y() + rect.height() - 1, rect.width(), 1) [all...] |
skia_util.h | 23 class Rect; 28 // Convert between Skia and gfx rect types. 29 UI_EXPORT SkRect RectToSkRect(const Rect& rect); 30 UI_EXPORT SkIRect RectToSkIRect(const Rect& rect); 31 UI_EXPORT Rect SkIRectToRect(const SkIRect& rect); 32 UI_EXPORT SkRect RectFToSkRect(const RectF& rect); 33 UI_EXPORT RectF SkRectToRectF(const SkRect& rect); [all...] |
/frameworks/native/opengl/tests/hwc/ |
hwcRects.cpp | 299 Rectangle rect = parseRect(rectDesc); local 302 rectangle.push_back(rect); 370 Rectangle rect; local 384 rect.format = format->format; 387 rect.displayFrame = hwcTestParseHwcRect(in, error); 396 rect.sourceDim = HwcTestDim(rect.displayFrame.right 397 - rect.displayFrame.left, 398 rect.displayFrame.bottom 399 - rect.displayFrame.top) [all...] |
/external/chromium_org/cc/resources/ |
layer_tiling_data.h | 17 #include "ui/gfx/rect.h" 36 gfx::Rect tile_bounds(int i, int j) const { 66 gfx::Rect opaque_rect() const { return opaque_rect_; } 67 void set_opaque_rect(gfx::Rect opaque_rect) { opaque_rect_ = opaque_rect; } 71 gfx::Rect opaque_rect_; 85 void ContentRectToTileIndices(gfx::Rect rect, 90 gfx::Rect TileRect(const Tile* tile) const; 92 Region OpaqueRegionInContentRect(gfx::Rect rect) const [all...] |
picture_layer_tiling.h | 19 #include "ui/gfx/rect.h" 31 gfx::Rect content_rect) = 0; 63 gfx::Rect ContentRect() const; 65 gfx::Rect live_tiles_rect() const { return live_tiles_rect_; } 70 SetLiveTilesRect(gfx::Rect(tiling_data_.total_size())); 90 gfx::Rect rect); 93 // Visible rect (no borders), always in the space of content_rect, 95 gfx::Rect geometry_rect() const; 96 // Texture rect (in texels) for geometry_rec [all...] |
picture_pile_impl_unittest.cc | 14 #include "ui/gfx/rect.h" 35 pile->add_draw_rect_with_paint(gfx::Rect(0, 0, 400, 400), solid_paint); 42 gfx::Rect rect(x, y, 100, 100); 43 pile->AnalyzeInRect(rect, 1.0, &analysis); 44 EXPECT_TRUE(analysis.is_solid_color) << rect.ToString(); 45 EXPECT_EQ(analysis.solid_color, solid_color) << rect.ToString(); 50 pile->add_draw_rect_with_paint(gfx::Rect(50, 50, 1, 1), non_solid_paint); 54 pile->AnalyzeInRect(gfx::Rect(0, 0, 100, 100), 1.0, &analysis); 57 pile->AnalyzeInRect(gfx::Rect(100, 0, 100, 100), 1.0, &analysis) [all...] |
/external/chromium_org/chrome/browser/chromeos/input_method/ |
textinput_test_helper.h | 12 #include "ui/gfx/rect.h" 39 gfx::Rect GetCaretRect() const; 40 gfx::Rect GetCompositionHead() const; 52 void WaitForCaretBoundsChanged(const gfx::Rect& expected_caret_rect, 53 const gfx::Rect& expected_composition_head); 57 // Converts from string to gfx::Rect. The string should be "x,y,width,height". 59 static bool ConvertRectFromString(const std::string& str, gfx::Rect* rect); 91 gfx::Rect caret_rect_; 92 gfx::Rect composition_head_ [all...] |
/external/chromium_org/third_party/WebKit/Source/core/platform/graphics/ |
Path.cpp | 316 void Path::addRect(const FloatRect& rect) 318 m_path.addRect(rect); 321 void Path::addEllipse(const FloatRect& rect) 323 m_path.addOval(rect); 328 addRoundedRect(r.rect(), r.radii().topLeft(), r.radii().topRight(), r.radii().bottomLeft(), r.radii().bottomRight()); 331 void Path::addRoundedRect(const FloatRect& rect, const FloatSize& roundingRadii) 333 if (rect.isEmpty()) 337 FloatSize halfSize(rect.width() / 2, rect.height() / 2); 339 // Apply the SVG corner radius constraints, per the rect section of the SVG shapes spec: i [all...] |
/external/qemu/distrib/sdl-1.2.15/src/video/qtopia/ |
SDL_QWin.cc | 131 const QRect& rect ) 137 startx = rect.left() >> 1; 138 starty = rect.top() >> 1; 139 width = ((rect.right() - rect.left()) >> 1) + 2; 140 height = ((rect.bottom() - rect.top()) >> 1) + 2; 188 const QRect& rect ) { 193 startx = rect.left() >> 1; 194 starty = rect.top() >> 1 [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/chromium_org/ui/message_center/views/ |
message_popup_collection_unittest.cc | 16 #include "ui/gfx/rect.h" 36 collection_->SetDisplayInfo(gfx::Rect(0, 0, 600, 390), 37 gfx::Rect(0, 0, 600, 400)); // Simulate a 70 gfx::Rect GetWorkArea() { 112 gfx::Rect GetToastRectAt(size_t index) { 163 gfx::Rect r0 = GetToastRectAt(0); 164 gfx::Rect r1 = GetToastRectAt(1); 165 gfx::Rect r2 = GetToastRectAt(2); 166 gfx::Rect r3 = GetToastRectAt(3); 198 collection()->SetDisplayInfo(gfx::Rect(0, 0, 590, 400), // Work-area [all...] |
/external/chromium/chrome/browser/ui/ |
window_sizer_win.cc | 22 virtual gfx::Rect GetPrimaryMonitorWorkArea() const { 23 return gfx::Rect(GetMonitorInfoForMonitor(MonitorFromWindow(NULL, 27 virtual gfx::Rect GetPrimaryMonitorBounds() const { 28 return gfx::Rect(GetMonitorInfoForMonitor(MonitorFromWindow(NULL, 32 virtual gfx::Rect GetMonitorWorkAreaMatching( 33 const gfx::Rect& match_rect) const { 34 RECT other_bounds_rect = match_rect.ToRECT(); 37 return gfx::Rect(monitor_info.rcWork); 41 const gfx::Rect& match_rect) const { 42 RECT other_bounds_rect = match_rect.ToRECT() [all...] |
/external/chromium_org/ppapi/examples/2d/ |
scroll.cc | 11 #include "ppapi/cpp/rect.h" 22 void FillRect(pp::ImageData* image, const pp::Rect& rect, uint32_t color) { 23 for (int y = std::max(0, rect.y()); 24 y < std::min(image->size().height(), rect.bottom()); 26 for (int x = std::max(0, rect.x()); 27 x < std::min(image->size().width(), rect.right()); 43 virtual void DidChangeView(const pp::Rect& position, const pp::Rect& clip) { 54 paint_manager_.ScrollRect(pp::Rect(paint_manager_.graphics().size()) [all...] |
/external/skia/tests/ |
RTreeTest.cpp | 22 SkIRect rect; member in struct:DataRect 27 SkIRect rect = {0,0,0,0}; local 28 while (rect.isEmpty()) { 29 rect.fLeft = rand.nextS() % 1000; 30 rect.fRight = rand.nextS() % 1000; 31 rect.fTop = rand.nextS() % 1000; 32 rect.fBottom = rand.nextS() % 1000; 33 rect.sort(); 35 return rect; 40 out[i].rect = random_rect(rand) [all...] |
/frameworks/base/graphics/java/android/graphics/ |
LargeBitmap.java | 54 * Decodes a rectangle region in the image specified by rect. 56 * @param rect The rectangle that specified the region to be decode. 62 public Bitmap decodeRegion(Rect rect, BitmapFactory.Options options) { 64 if (rect.left < 0 || rect.top < 0 || rect.right > getWidth() || rect.bottom > getHeight()) 66 return nativeDecodeRegion(mNativeLargeBitmap, rect.left, rect.top [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
InputView.java | 20 import android.graphics.Rect; 32 private final Rect mInputViewRect = new Rect(); 33 private final Rect mEventForwardingRect = new Rect(); 34 private final Rect mEventReceivingRect = new Rect(); 59 final Rect rect = mInputViewRect; local 60 this.getGlobalVisibleRect(rect); [all...] |
/external/chromium/chrome/browser/ui/window_snapshot/ |
window_snapshot_x.cc | 12 #include "ui/gfx/rect.h" 27 gfx::Rect GrabWindowSnapshot(gfx::NativeWindow gtk_window, 35 return gfx::Rect(); 41 return gfx::Rect(); 45 return gfx::Rect(); 57 return gfx::Rect(); 63 return gfx::Rect(image->width, image->height);
|
/external/chromium_org/ash/system/tray/ |
fixed_sized_scroll_view.cc | 19 view->SetBoundsRect(gfx::Rect(view->GetPreferredSize())); 38 gfx::Rect bounds = gfx::Rect(contents()->GetPreferredSize()); 44 gfx::Rect bounds = contents()->bounds(); 50 void FixedSizedScrollView::OnBoundsChanged(const gfx::Rect& previous_bounds) { 51 gfx::Rect bounds = gfx::Rect(contents()->GetPreferredSize());
|
/external/chromium_org/content/browser/renderer_host/ |
dip_util.cc | 11 #include "ui/gfx/rect.h" 42 gfx::Rect ConvertViewRectToPixel(const RenderWidgetHostView* view, 43 const gfx::Rect& rect_in_dip) { 53 gfx::Rect ConvertRectToDIP(float scale_factor, 54 const gfx::Rect& rect_in_pixel) { 60 gfx::Rect ConvertRectToPixel(float scale_factor, 61 const gfx::Rect& rect_in_dip) {
|
/external/chromium_org/ppapi/cpp/dev/ |
widget_dev.cc | 12 #include "ppapi/cpp/rect.h" 35 bool Widget_Dev::Paint(const Rect& rect, ImageData* image) { 38 pp_resource(), &rect.pp_rect(), image->pp_resource())); 41 pp_resource(), &rect.pp_rect(), image->pp_resource())); 57 bool Widget_Dev::GetLocation(Rect* location) { 68 void Widget_Dev::SetLocation(const Rect& location) {
|