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

1 2 3 4 5 6 78 91011>>

  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
LatinKeyboard.java 24 import android.graphics.Canvas;
267 final Canvas canvas = new Canvas(buffer); local
269 canvas.drawColor(Color.TRANSPARENT, PorterDuff.Mode.CLEAR);
301 canvas.drawText(language, width / 2, baseline - descent - 1, paint);
303 canvas.drawText(language, width / 2, baseline - descent, paint);
313 mAutoCorrectionSpacebarLedIcon.draw(canvas);
320 mSpaceIcon.draw(canvas);
  /cts/tests/tests/graphics/src/android/graphics/drawable/shapes/cts/
PathShapeTest.java 25 import android.graphics.Canvas;
58 args = {android.graphics.Canvas.class, android.graphics.Paint.class}
78 Canvas canvas = new Canvas(bitmap); local
84 pathShape.draw(canvas, paint);
91 pathShape.draw(canvas, paint);
RectShapeTest.java 25 import android.graphics.Canvas;
62 args = {android.graphics.Canvas.class, android.graphics.Paint.class}
67 Canvas canvas = new Canvas(bitmap); local
73 rectShape.draw(canvas, paint);
77 rectShape.draw(canvas, paint);
RoundRectShapeTest.java 26 import android.graphics.Canvas;
78 args = {android.graphics.Canvas.class, android.graphics.Paint.class}
92 Canvas canvas = new Canvas(bitmap); local
98 roundRectShape.draw(canvas, paint);
103 roundRectShape.draw(canvas, paint);
  /cts/tests/tests/text/src/android/text/style/cts/
BulletSpanTest.java 25 import android.graphics.Canvas;
95 notes = "Test drawLeadingMargin(Canvas c, Paint p, int x, int dir, int top," +
100 args = {android.graphics.Canvas.class, android.graphics.Paint.class, int.class,
109 Canvas canvas = new Canvas(); local
113 bulletSpan.drawLeadingMargin(canvas, paint, 10, 0, 10, 0, 20, text, 0, 0, true, null);
118 notes = "Test drawLeadingMargin(Canvas c, Paint p, int x, int dir, int top," +
122 args = {android.graphics.Canvas.class, android.graphics.Paint.class, int.class,
  /development/samples/ApiDemos/src/com/example/android/apis/graphics/
ColorMatrixSample.java 85 @Override protected void onDraw(Canvas canvas) {
90 canvas.drawColor(Color.WHITE);
93 canvas.drawBitmap(mBitmap, x, y, paint);
107 canvas.drawBitmap(mBitmap, x + mBitmap.getWidth() + 10, y, paint);
111 canvas.drawBitmap(mBitmap, x, y + mBitmap.getHeight() + 10, paint);
115 canvas.drawBitmap(mBitmap, x, y + 2*(mBitmap.getHeight() + 10),
CreateBitmap.java 107 @Override protected void onDraw(Canvas canvas) {
108 canvas.drawColor(Color.WHITE);
111 canvas.drawBitmap(mBitmaps[i], 0, 0, null);
112 canvas.drawBitmap(mJPEG[i], 80, 0, null);
113 canvas.drawBitmap(mPNG[i], 160, 0, null);
114 canvas.translate(0, mBitmaps[i].getHeight());
118 canvas.drawBitmap(mColors, 0, STRIDE, 0, 0, WIDTH, HEIGHT,
120 canvas.translate(0, HEIGHT);
121 canvas.drawBitmap(mColors, 0, STRIDE, 0, 0, WIDTH, HEIGHT
    [all...]
PurgeableBitmapView.java 22 import android.graphics.Canvas;
102 @Override protected void onDraw(Canvas canvas) {
103 canvas.drawColor(Color.WHITE);
104 canvas.drawBitmap(mBitmap, 0, 0, null);
105 canvas.drawText(String.valueOf(mDecodingCount), WIDTH / 2 - 20,
TouchPaint.java 21 import android.graphics.Canvas;
224 * This view implements the drawing canvas.
237 private Canvas mCanvas;
288 Canvas newCanvas = new Canvas();
299 protected void onDraw(Canvas canvas) {
301 canvas.drawBitmap(mBitmap, 0, 0, null);
458 private void drawOval(Canvas canvas, float x, float y, float major, float minor
    [all...]
UnicodeChart.java 82 private void drawChart(Canvas canvas, int base) {
88 canvas.drawText(Integer.toHexString(unichar),
91 canvas.drawPosText(chars, 0, 256, mPos, mBigCharPaint);
94 @Override protected void onDraw(Canvas canvas) {
95 canvas.drawColor(Color.WHITE);
97 canvas.translate(0, 1);
98 drawChart(canvas, mBase * 256);
  /development/samples/ApiDemos/src/com/example/android/apis/view/
LabelView.java 23 import android.graphics.Canvas;
187 * @see android.view.View#onDraw(android.graphics.Canvas)
190 protected void onDraw(Canvas canvas) {
191 super.onDraw(canvas);
192 canvas.drawText(mText, getPaddingLeft(), getPaddingTop() - mAscent, mTextPaint);
  /device/google/accessory/demokit/app/src/com/google/android/DemoKit/
JoystickView.java 5 import android.graphics.Canvas;
67 protected void onDraw(Canvas canvas) {
68 mJoystickBackground.draw(canvas);
75 indicator.draw(canvas);
76 canvas.drawText(mLabelText, x + 12, y + 8, mLabelPaint);
  /external/skia/android_sample/SampleApp/jni/
sample-jni.cpp 206 SkCanvas* canvas = GraphicsJNI::getNativeCanvas(env, jcanvas); local
207 canvas->drawBitmap(gWindow->getBitmap(), 0, 0);
  /external/skia/samplecode/
SamplePicture.cpp 35 virtual void onDraw(SkCanvas* canvas) {
36 // SkDebugf("---- sc %d\n", canvas->getSaveCount() - 1);
62 SkCanvas* canvas = pic.beginRecording(100, 100); local
63 int startN = canvas->getSaveCount();
65 canvas->drawShape(signalShape.setSignal(1));
66 canvas->save();
67 canvas->drawShape(signalShape.setSignal(2));
68 n = canvas->save();
69 canvas->drawShape(signalShape.setSignal(3));
70 canvas->save()
121 SkCanvas* canvas = fPicture->beginRecording(100, 100); local
    [all...]
  /external/skia/src/views/
SkWidgetViews.cpp 74 SkCanvas canvas; local
77 anim.draw(&canvas, paint, 0);
85 SkCanvas canvas; local
93 anim.draw(&canvas, paint, 0);
300 virtual void onDraw(SkCanvas* canvas)
303 SkAnimator::DifferenceType diff = fAnim.draw(canvas, &paint, SkTime::GetMSecs());
  /external/webkit/Source/WebCore/platform/graphics/android/
ImageAndroid.cpp 225 SkCanvas* canvas = ctxt->platformContext()->mCanvas; local
232 canvas->drawBitmapRect(bitmap, &srcR, dstR, &paint);
294 SkCanvas* canvas = ctxt->platformContext()->mCanvas; local
328 canvas->drawRect(dstR, paint);
  /external/webkit/Source/WebCore/platform/graphics/chromium/
FontLinux.cpp 63 static bool isCanvasMultiLayered(SkCanvas* canvas)
65 SkCanvas::LayerIter layerIterator(canvas, false);
76 if (isCanvasMultiLayered(skiaContext->canvas()) || skiaContext->isDrawingToImageBuffer())
115 SkCanvas* canvas = gc->platformContext()->canvas(); local
133 canvas->drawTextOnPath(glyphs + i, 2, path, 0, paint);
136 canvas->drawPosText(glyphs, numGlyphs << 1, pos, paint);
162 canvas->drawTextOnPath(glyphs + i, 2, path, 0, paint);
165 canvas->drawPosText(glyphs, numGlyphs << 1, pos, paint);
189 SkCanvas* canvas = gc->platformContext()->canvas()
    [all...]
  /external/webkit/Source/WebCore/platform/graphics/chromium/cc/
CCHeadsUpDisplay.cpp 97 PlatformCanvas canvas; local
98 canvas.resize(hudSize);
100 PlatformCanvas::Painter painter(&canvas, PlatformCanvas::Painter::GrayscaleText);
106 PlatformCanvas::AutoLocker locker(&canvas);
109 GLC(context.get(), context->texImage2D(GraphicsContext3D::TEXTURE_2D, 0, GraphicsContext3D::RGBA, canvas.size().width(), canvas.size().height(), 0, GraphicsContext3D::RGBA, GraphicsContext3D::UNSIGNED_BYTE, locker.pixels()));
  /frameworks/base/core/java/android/widget/
Switch.java 23 import android.graphics.Canvas;
558 protected void onDraw(Canvas canvas) {
559 super.onDraw(canvas);
568 mTrackDrawable.draw(canvas);
570 canvas.save();
577 canvas.clipRect(switchInnerLeft, switchTop, switchInnerRight, switchBottom);
585 mThumbDrawable.draw(canvas);
596 canvas.translate((thumbLeft + thumbRight) / 2 - switchText.getWidth() / 2,
598 switchText.draw(canvas);
    [all...]
  /frameworks/base/tests/BrowserTestPlugin/jni/event/
EventPlugin.cpp 70 // create and clip a canvas
71 ANPCanvas* canvas = gCanvasI.newCanvas(&bitmap); local
78 gCanvasI.clipRect(canvas, &clipR);
80 gCanvasI.drawColor(canvas, 0xFFFFFFFF);
97 // write text on the canvas
99 gCanvasI.drawText(canvas, c, sizeof(c)-1, leftMargin, -fm.fTop, paint);
103 gCanvasI.deleteCanvas(canvas);
  /frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
RenderDrawable.java 30 import android.graphics.Canvas;
104 // create a Canvas around the Android bitmap
105 Canvas canvas = new Canvas(bitmap); local
106 canvas.setDensity(params.getDensity().getDpiValue());
109 content.draw(canvas);
  /packages/apps/Browser/src/com/android/browser/view/
PieStackView.java 22 import android.graphics.Canvas;
86 public void draw(Canvas canvas) {
90 drawView(mViews.get(i), canvas); local
93 drawView(mViews.get(i), canvas); local
95 drawView(mViews.get(mCurrent), canvas); local
  /packages/apps/Calculator/src/com/android/calculator2/
ColorButton.java 20 import android.graphics.Canvas;
85 private void drawMagicFlame(int duration, Canvas canvas) {
90 canvas.drawRect(1, 1, getWidth() - 1, getHeight() - 1, mFeedbackPaint);
94 public void onDraw(Canvas canvas) {
101 drawMagicFlame(animDuration, canvas);
105 drawMagicFlame(0, canvas);
109 canvas.drawText(text, 0, text.length(), mTextX, mTextY, getPaint());
  /packages/apps/Music/src/com/android/music/
VerticalTextSpinner.java 20 import android.graphics.Canvas;
259 protected void onDraw(Canvas canvas) {
269 mSelector.draw(canvas);
298 canvas.save();
299 canvas.clipRect(topLeft, topTop, topRight, topBottom);
300 drawText(canvas, text1, TEXT1_Y
302 drawText(canvas, text2, TEXT2_Y
304 drawText(canvas, text3,
306 canvas.restore()
    [all...]
  /packages/apps/Settings/src/com/android/settings/deviceinfo/
PercentageBarChart.java 23 import android.graphics.Canvas;
64 protected void onDraw(Canvas canvas) {
65 super.onDraw(canvas);
87 canvas.drawRect(lastX, top, right, bottom, e.paint);
91 canvas.drawRect(lastX, top, nextX, bottom, e.paint);
96 canvas.drawRect(lastX, top, right, bottom, mEmptyPaint);

Completed in 2298 milliseconds

1 2 3 4 5 6 78 91011>>