/external/skia/src/utils/ |
SkDashPath.cpp | 42 // watch out for values that might make us go out of bounds 104 SkRect bounds = *cullRect; local 105 outset_for_stroke(&bounds, rec); 118 if (maxX < bounds.fLeft || minX > bounds.fRight) { 127 // right of the bounds (keeping our new line "in phase" with the dash, 130 if (minX < bounds.fLeft) { 131 minX = bounds.fLeft - SkScalarMod(bounds.fLeft - minX, 134 if (maxX > bounds.fRight) [all...] |
/external/skia/src/utils/debugger/ |
SkDrawCommand.cpp | 96 void xlate_and_scale_to_bounds(SkCanvas* canvas, const SkRect& bounds) { 102 if (bounds.width() > bounds.height()) { 103 canvas->scale(SkDoubleToScalar((kInsetFrac*size.fWidth)/bounds.width()), 104 SkDoubleToScalar((kInsetFrac*size.fHeight)/bounds.width())); 106 canvas->scale(SkDoubleToScalar((kInsetFrac*size.fWidth)/bounds.height()), 107 SkDoubleToScalar((kInsetFrac*size.fHeight)/bounds.height())); 109 canvas->translate(-bounds.centerX(), -bounds.centerY()); 117 const SkRect& bounds = path.getBounds() local 165 const SkRect& bounds = rrect.getBounds(); local 181 const SkRect& bounds = outer.getBounds(); local 521 SkRect bounds = SkRect::MakeWH(SkIntToScalar(fPicture->width()), local 556 SkRect bounds; local [all...] |
/external/skia/src/views/animated/ |
SkProgressBarView.cpp | 41 SkRect bounds; local 42 fAnim.getInvalBounds(&bounds); 43 this->inval(&bounds);
|
SkScrollBarView.cpp | 95 SkRect bounds; local 96 fAnim.getInvalBounds(&bounds); 97 this->inval(&bounds);
|
/frameworks/base/core/java/android/transition/ |
ChangeClipBounds.java | 36 private static final String PROPNAME_BOUNDS = "android:clipBounds:bounds"; 62 Rect bounds = new Rect(0, 0, view.getWidth(), view.getHeight()); local 63 values.values.put(PROPNAME_BOUNDS, bounds);
|
/frameworks/base/core/java/android/view/ |
ViewOutlineProvider.java | 47 * Maintains the outline of the View to match its rectangular bounds, 52 public static final ViewOutlineProvider BOUNDS = new ViewOutlineProvider() { 60 * Maintains the outline of the View to match its rectangular padded bounds,
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
AnimatedRotateDrawable.java | 78 final Rect bounds = drawable.getBounds(); local 80 int w = bounds.right - bounds.left; 81 int h = bounds.bottom - bounds.top; 86 canvas.rotate(mCurrentDegrees, px + bounds.left, py + bounds.top); 223 protected void onBoundsChange(Rect bounds) { 224 mState.mDrawable.setBounds(bounds.left, bounds.top, bounds.right, bounds.bottom) [all...] |
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/ |
BasicBitmapDrawable.java | 320 final Rect bounds = getBounds(); local 321 if (bounds.isEmpty()) { 328 bounds.width(), bounds.height(), 329 bounds.height(), Integer.MAX_VALUE, 341 // We may need to rotate the canvas, so we also have to rotate the bounds. 342 final Rect rotatedBounds = new Rect(bounds); 343 RectUtils.rotateRect(orientation, bounds.centerX(), bounds.centerY(), rotatedBounds); 347 canvas.rotate(orientation, bounds.centerX(), bounds.centerY()) [all...] |
/packages/apps/Calendar/src/com/android/calendar/ |
DayOfMonthDrawable.java | 53 Rect bounds = getBounds(); local 54 canvas.drawText(mDayOfMonth, bounds.right / 2, ((float) bounds.bottom + textHeight + 1) / 2,
|
/packages/apps/Camera2/src/com/android/camera/drawable/ |
TextDrawable.java | 85 Rect bounds = getBounds(); local 87 bounds.centerX(), bounds.centerY(), mPaint);
|
/packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/ |
DrawableTileSource.java | 95 Rect bounds = new Rect(0, 0, getImageWidth(), getImageHeight()); local 96 bounds.offset(-x, -y); 97 mDrawable.setBounds(bounds);
|
/external/chromium_org/chrome/browser/ui/cocoa/panels/ |
panel_titlebar_view_cocoa.mm | 144 NSRectFillUsingOperation([self bounds], NSCompositeSourceOver); 155 NSRect bounds = [self bounds]; 156 [glint drawInRect:bounds relativeCenterPosition:NSZeroPoint]; 171 NSRectFill([self bounds]); 179 NSFrameRect([self bounds]); 193 NSRectFill([self bounds]); 224 NSRect rootViewBounds = [[self superview] bounds]; 324 NSRect bounds = [self bounds]; [all...] |
/external/chromium_org/third_party/mesa/src/src/mesa/main/ |
api_validate.c | 165 * Do bounds checking on array element indexes. Check that the vertices 166 * pointed to by the indices don't lie outside buffer object bounds. 167 * \return GL_TRUE if OK, GL_FALSE if any indexed vertex goes is out of bounds 178 * array/BO bounds allows application termination. 195 /* the max element is out of bounds of one or more enabled arrays */ 196 _mesa_warning(ctx, "glDrawElements() index=%u is out of bounds (max=%u)", 314 * and VBO bounds checking. 344 /* make sure count doesn't go outside buffer bounds */ 346 _mesa_warning(ctx, "glDrawElements index out of buffer bounds"); 365 * and VBO bounds checking [all...] |
/external/mesa3d/src/mesa/main/ |
api_validate.c | 165 * Do bounds checking on array element indexes. Check that the vertices 166 * pointed to by the indices don't lie outside buffer object bounds. 167 * \return GL_TRUE if OK, GL_FALSE if any indexed vertex goes is out of bounds 178 * array/BO bounds allows application termination. 195 /* the max element is out of bounds of one or more enabled arrays */ 196 _mesa_warning(ctx, "glDrawElements() index=%u is out of bounds (max=%u)", 314 * and VBO bounds checking. 344 /* make sure count doesn't go outside buffer bounds */ 346 _mesa_warning(ctx, "glDrawElements index out of buffer bounds"); 365 * and VBO bounds checking [all...] |
/frameworks/base/docs/html/training/animation/ |
zoom.jd | 104 screen. To achieve the "zoom" animation, this view's bounds are animated 105 from the bounds of the thumbnail button above, to its final laid-out 106 bounds. 165 when appropriate. In general, you need to animate from the bounds of the normal-sized view to the 166 bounds of the larger-sized view. The following method shows you how to implement a zoom animation that 176 <li>Calculate the starting and ending bounds for the {@link android.widget.ImageView}. 181 simultaneously, from the starting bounds to the ending bounds. These four animations are 205 // Calculate the starting and ending bounds for the zoomed-in image. 211 // The start bounds are the global visible rectangle of the thumbnail [all...] |
/external/chromium_org/ui/compositor/ |
layer_unittest.cc | 113 Layer* CreateColorLayer(SkColor color, const gfx::Rect& bounds) { 115 layer->SetBounds(bounds); 119 Layer* CreateNoTextureLayer(const gfx::Rect& bounds) { 121 layer->SetBounds(bounds); 173 gfx::Rect(0, 0, layer->bounds().width(), layer->bounds().height())); 422 Layer* CreateColorLayer(SkColor color, const gfx::Rect& bounds) { 424 layer->SetBounds(bounds); 428 virtual Layer* CreateNoTextureLayer(const gfx::Rect& bounds) { 430 layer->SetBounds(bounds); [all...] |
/frameworks/base/libs/hwui/ |
DeferredDisplayList.cpp | 58 virtual bool coversBounds(const Rect& bounds) { return false; } 71 // NOTE: ignore empty bounds special case, since we don't merge across those ops 83 DEFER_LOGD("op intersects with op %p with bounds %f %f %f %f:", mOps[i].op, 112 const Rect& bounds = state->mBounds; local 117 renderer.drawScreenSpaceColorRect(bounds.left, bounds.top, bounds.right, bounds.bottom, 126 virtual bool coversBounds(const Rect& bounds) { 127 if (CC_LIKELY(!mAllOpsOpaque || !mBounds.contains(bounds) || count() == 1)) return false [all...] |
/external/chromium_org/ash/display/ |
display_manager_unittest.cc | 137 display_manager()->GetDisplayAt(0).bounds().ToString()); 142 EXPECT_EQ("0,0 500x500", changed()[0].bounds().ToString()); 144 EXPECT_EQ("500,0 400x400", added()[0].bounds().ToString()); 158 EXPECT_EQ("0,0 1000x600", changed()[0].bounds().ToString()); 167 EXPECT_EQ("1000,0 600x400", added()[0].bounds().ToString()); 177 EXPECT_EQ("0,0 800x300", changed()[0].bounds().ToString()); 188 display_manager()->GetDisplayAt(0).bounds().ToString()); 196 EXPECT_EQ("0,0 500x400", changed()[0].bounds().ToString()); 211 display_manager()->GetDisplayAt(0).bounds().ToString()); 214 display_manager()->GetDisplayAt(1).bounds().ToString()) [all...] |
screen_position_controller.h | 26 const gfx::Rect& bounds,
|
shared_display_edge_indicator.cc | 39 canvas->FillRect(gfx::Rect(bounds().size()), color_); 47 views::Widget* CreateWidget(const gfx::Rect& bounds, 61 gfx::Display display = Shell::GetScreen()->GetDisplayMatching(bounds); 65 screen_position_client->SetBounds(window, bounds, display);
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
PathEffects.java | 75 RectF bounds = new RectF(); local 76 mPath.computeBounds(bounds, false); 77 canvas.translate(10 - bounds.left, 10 - bounds.top);
|
/external/chromium-trace/trace-viewer/src/cc/ |
layer_impl.js | 45 // Leave bounds in both places. 46 this.bounds = base.Rect.FromXYWH( 48 this.args.bounds.width, this.args.bounds.height);
|
/external/chromium-trace/trace-viewer/src/tracing/trace_model/ |
time_to_object_instance_map_test.js | 75 assertEquals(10, iA.bounds.min); 76 assertEquals(30, iA.bounds.max); 79 assertEquals(40, iB.bounds.min); 80 assertEquals(41, iB.bounds.max);
|
/external/chromium_org/apps/ui/ |
web_contents_sizer.cc | 21 window->SetBounds(gfx::Rect(window->bounds().origin(), new_size));
|
/external/chromium_org/ash/host/ |
ash_window_tree_host_win.cc | 81 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE { 83 saved_window_rect_.right = saved_window_rect_.left + bounds.width(); 84 saved_window_rect_.bottom = saved_window_rect_.top + bounds.height(); 87 WindowTreeHostWin::SetBounds(bounds);
|