HomeSort by relevance Sort by last modified time
    Searched defs:canvas (Results 226 - 250 of 385) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /development/samples/ApiDemos/src/com/example/android/apis/graphics/
BitmapMesh.java 77 @Override protected void onDraw(Canvas canvas) {
78 canvas.drawColor(0xFFCCCCCC);
80 canvas.concat(mMatrix);
81 canvas.drawBitmapMesh(mBitmap, WIDTH, HEIGHT, mVerts, 0,
BitmapPixels.java 150 @Override protected void onDraw(Canvas canvas) {
151 canvas.drawColor(0xFFCCCCCC);
154 canvas.drawBitmap(mBitmap1, 10, y, null);
156 canvas.drawBitmap(mBitmap2, 10, y, null);
158 canvas.drawBitmap(mBitmap3, 10, y, null);
DensityActivity.java 27 import android.graphics.Canvas;
214 protected void onDraw(Canvas canvas) {
215 super.onDraw(canvas);
217 canvas.drawBitmap(mBitmap, 0.0f, 0.0f, null);
  /development/samples/ApiDemos/src/com/example/android/apis/view/
InternalSelectionView.java 20 import android.graphics.Canvas;
138 protected void onDraw(Canvas canvas) {
152 canvas.drawRect(mTempRect, mPainter);
166 canvas.drawRect(mTempRect, mPainter);
169 canvas.drawText(
  /development/samples/BrowserPlugin/jni/audio/
AudioPlugin.cpp 192 ANPCanvas* canvas = gCanvasI.newCanvas(&bitmap); local
199 gCanvasI.clipRect(canvas, &clipR);
201 draw(canvas);
202 gCanvasI.deleteCanvas(canvas);
205 void AudioPlugin::draw(ANPCanvas* canvas) {
217 // color the plugin canvas
218 gCanvasI.drawColor(canvas, 0xFFCDCDCD);
229 gCanvasI.drawRect(canvas, &m_trackRect, m_paintTrack);
234 gCanvasI.drawRect(canvas, &m_trackRect, m_paintTrackProgress);
242 gCanvasI.drawRect(canvas, &m_playRect, getPaint(&m_playRect))
    [all...]
  /development/samples/BrowserPlugin/jni/form/
FormPlugin.cpp 118 ANPCanvas* canvas = gCanvasI.newCanvas(&bitmap); local
125 gCanvasI.clipRect(canvas, &clipR);
127 draw(canvas);
128 gCanvasI.deleteCanvas(canvas);
131 void FormPlugin::draw(ANPCanvas* canvas) {
140 // color the plugin canvas
141 gCanvasI.drawColor(canvas, (m_hasFocus) ? 0xFFCDCDCD : 0xFF545454);
148 gCanvasI.drawRect(canvas, &m_usernameInput.rect, getPaint(&m_usernameInput));
149 drawText(canvas, m_usernameInput);
156 gCanvasI.drawRect(canvas, &m_passwordInput.rect, getPaint(&m_passwordInput))
    [all...]
  /development/samples/BrowserPlugin/jni/paint/
PaintPlugin.cpp 105 ANPCanvas* canvas = gCanvasI.newCanvas(&bitmap); local
107 // clip the canvas to the dirty rect b/c the surface is only required to
108 // copy a minimum of the dirty rect and may copy more. The clipped canvas
116 gCanvasI.clipRect(canvas, &clipR);
119 return canvas;
133 void PaintPlugin::releaseCanvas(ANPCanvas* canvas) {
138 gCanvasI.deleteCanvas(canvas);
141 void PaintPlugin::drawCleanPlugin(ANPCanvas* canvas) {
145 // if no canvas get a locked canvas
431 ANPCanvas* canvas = getCanvas(&point); local
456 ANPCanvas* canvas = getCanvas(&bounds); local
    [all...]
  /external/chromium/chrome/browser/ui/views/
first_run_bubble.cc 165 gfx::Size canvas = GetPreferredSize(); local
172 label1_->SizeToFit(canvas.width() - kBubblePadding * 2);
174 canvas.width() - kBubblePadding * 2,
182 canvas.width() - kBubblePadding * 2,
190 canvas.width() - kBubblePadding * 2,
195 canvas.width() - pref_size.width() - kBubblePadding,
196 canvas.height() - pref_size.height() - views::kButtonVEdgeMargin,
315 gfx::Size canvas = GetPreferredSize(); local
320 canvas.width() - sz.width() - kMarginRightOfCloseButton,
331 kOEMBubblePadding, canvas.width() - kOEMBubblePadding * 2
437 gfx::Size canvas = GetPreferredSize(); local
    [all...]
  /external/webkit/Source/WebCore/platform/graphics/android/
ImageBufferAndroid.cpp 84 SkCanvas* canvas = context()->platformContext()->mCanvas; local
85 SkDevice* device = canvas->getDevice();
  /external/webkit/Source/WebCore/platform/graphics/skia/
ImageBufferSkia.cpp 56 // We pass a technically-uninitialized canvas to the platform context here since
57 // the canvas initialization completes in ImageBuffer::ImageBuffer. But
61 : m_platformContext(0) // Canvas is set in ImageBuffer constructor.
69 SkCanvas* canvas = skia::CreateBitmapCanvas(size.width(), size.height(), false); local
70 if (!canvas) {
75 m_data.m_canvas = canvas;
81 // required, but the canvas is currently filled with the magic transparency
260 return getImageData<Unmultiplied>(rect, *context()->platformContext()->canvas()->getDevice(), m_size);
266 return getImageData<Premultiplied>(rect, *context()->platformContext()->canvas()->getDevice(), m_size);
342 putImageData<Unmultiplied>(source, sourceSize, sourceRect, destPoint, context()->platformContext()->canvas()->getDevice(), m_size)
    [all...]
ImageSkia.cpp 149 && !(platformContext->canvas()->getTotalMatrix().getType() & (SkMatrix::kAffine_Mask | SkMatrix::kPerspective_Mask)))
156 // Draws the given bitmap to the given canvas. The subset of the source bitmap
166 static void drawResampledBitmap(SkCanvas& canvas, SkPaint& paint, const NativeImageSkia& bitmap, const SkIRect& srcIRect, const SkRect& destRect)
189 canvas.getTotalMatrix().mapRect(&destRectTransformed, destRect);
196 canvas.drawBitmapRect(resampled, 0, destRect, &paint);
204 ClipRectToCanvas(canvas, destRect, &destBitmapSubsetSk);
206 canvas.getTotalMatrix().mapRect(&destBitmapSubsetTransformed, destBitmapSubsetSk);
231 canvas.drawBitmapRect(resampled, 0, destRect, &paint);
254 canvas.drawBitmapRect(resampled, 0, offsetDestRect, &paint);
267 SkCanvas* canvas = platformContext->canvas() local
    [all...]
  /frameworks/base/core/java/android/gesture/
GestureStroke.java 19 import android.graphics.Canvas;
101 * Draws the stroke with a given canvas and paint.
103 * @param canvas
105 void draw(Canvas canvas, Paint paint) {
110 canvas.drawPath(mCachedPath, paint);
  /frameworks/base/core/java/android/webkit/
OverScrollGlow.java 22 import android.graphics.Canvas;
155 * @param canvas Canvas to draw into, transformed into view coordinates.
158 public boolean drawEdgeGlows(Canvas canvas) {
166 final int restoreCount = canvas.save();
168 canvas.translate(scrollX, mHostView.getVisibleTitleHeight() + Math.min(0, scrollY));
170 invalidateForGlow |= mEdgeGlowTop.draw(canvas);
171 canvas.restoreToCount(restoreCount);
174 final int restoreCount = canvas.save()
    [all...]
  /frameworks/base/core/tests/coretests/src/android/util/
InternalSelectionView.java 26 import android.graphics.Canvas;
140 protected void onDraw(Canvas canvas) {
154 canvas.drawRect(mTempRect, mPainter);
168 canvas.drawRect(mTempRect, mPainter);
171 canvas.drawText(
  /frameworks/base/graphics/java/android/graphics/drawable/
NinePatchDrawable.java 40 * Canvas and Drawables</a> developer guide. For information about creating a NinePatch image
121 * specified canvas.
123 * @param canvas The Canvas from which the density scale must be obtained.
128 public void setTargetDensity(Canvas canvas) {
129 setTargetDensity(canvas.getDensity());
188 public void draw(Canvas canvas) {
189 mNinePatch.draw(canvas, getBounds(), mPaint)
    [all...]
  /frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
StatusBarIconView.java 24 import android.graphics.Canvas;
200 protected void onDraw(Canvas canvas) {
201 super.onDraw(canvas);
204 mNumberBackground.draw(canvas);
205 canvas.drawText(mNumberText, mNumberX, mNumberY, mNumberPain);
  /frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
PhoneStatusBarView.java 21 import android.graphics.Canvas;
106 protected void dispatchDraw(Canvas canvas) {
107 super.dispatchDraw(canvas);
110 canvas.drawARGB(alpha, 0, 0, 0);
  /frameworks/base/policy/src/com/android/internal/policy/impl/
RecentApplicationsBackground.java 20 import android.graphics.Canvas;
90 public void draw(Canvas canvas) {
119 mBackground.draw(canvas);
124 canvas.drawRect(background.getBounds(), p);
126 canvas.drawARGB((int)(0.75*0xff), 0, 0, 0);
128 super.draw(canvas);
  /frameworks/base/tests/DpiTest/src/com/google/android/test/dpi/
DpiTestActivity.java 25 import android.graphics.Canvas;
244 protected void onDraw(Canvas canvas) {
245 super.onDraw(canvas);
247 canvas.drawBitmap(mBitmap, 0.0f, 0.0f, null);
  /frameworks/base/tests/TileBenchmark/src/com/test/tilebenchmark/
PlaybackView.java 23 import android.graphics.Canvas;
79 public void draw(Canvas canvas) {
80 super.draw(canvas);
82 canvas.drawText(Integer.toString(tile.level), getBounds().left,
84 canvas.drawText(label, getBounds().left,
129 protected void onDraw(Canvas canvas) {
130 super.onDraw(canvas);
136 mGraphs.draw(canvas, mTempShapes, mRenderStrings, getResources())
    [all...]
  /frameworks/base/tests/TransformTest/src/com/google/android/test/transform/
TransformTestActivity.java 21 import android.graphics.Canvas;
181 public void onDraw(Canvas canvas) {
182 int saveCount = canvas.getSaveCount();
183 canvas.save();
184 canvas.concat(mMatrix);
185 mDrawable.draw(canvas);
186 canvas.restoreToCount(saveCount);
  /packages/apps/Browser/src/com/android/browser/
WallpaperHandler.java 25 import android.graphics.Canvas;
157 Canvas canvas = new Canvas(bm); local
159 oldWallpaper.draw(canvas);
160 canvas.setBitmap(null);
  /packages/apps/Camera/src/com/android/camera/panorama/
PanoProgressBar.java 20 import android.graphics.Canvas;
162 protected void onDraw(Canvas canvas) {
164 canvas.drawRect(mDrawBounds, mBackgroundPaint);
167 canvas.drawRect(mLeftMostProgress, mDrawBounds.top, mRightMostProgress,
179 canvas.drawRect(l, mDrawBounds.top, r, mDrawBounds.bottom, mIndicatorPaint);
183 super.onDraw(canvas);
  /packages/apps/Camera/src/com/android/camera/ui/
RotateImageView.java 23 import android.graphics.Canvas;
98 protected void onDraw(Canvas canvas) {
129 int saveCount = canvas.getSaveCount();
135 canvas.scale(ratio, ratio, width / 2.0f, height / 2.0f);
137 canvas.translate(left + width / 2, top + height / 2);
138 canvas.rotate(-mCurrentDegree);
139 canvas.translate(-w / 2, -h / 2);
140 drawable.draw(canvas);
141 canvas.restoreToCount(saveCount)
    [all...]
ZoomControlWheel.java 24 import android.graphics.Canvas;
165 private void drawArc(Canvas canvas, int startAngle, int sweepAngle,
172 canvas.drawArc(mBackgroundRect, startAngle, sweepAngle, false, mBackgroundPaint);
176 protected void onDraw(Canvas canvas) {
180 drawArc(canvas, (-degree - HIGHLIGHT_DEGREES / 2), HIGHLIGHT_DEGREES,
183 drawArc(canvas, -MAX_SLIDER_ANGLE, (MAX_SLIDER_ANGLE - MIN_SLIDER_ANGLE),
185 super.onDraw(canvas);

Completed in 764 milliseconds

1 2 3 4 5 6 7 8 91011>>