Searched defs:canvas (Results 276 - 300 of 339) sorted by relevance

<<11121314

/frameworks/base/media/java/android/media/tv/
H A DTvView.java743 public void draw(Canvas canvas) { argument
746 canvas.drawColor(0, PorterDuff.Mode.CLEAR);
748 super.draw(canvas);
752 protected void dispatchDraw(Canvas canvas) { argument
755 canvas.drawColor(0, PorterDuff.Mode.CLEAR);
757 super.dispatchDraw(canvas);
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/model/
H A DTaskStack.java340 public void draw(Canvas canvas) { argument
343 dockAreaOverlay.draw(canvas);
353 canvas.save();
354 canvas.rotate(-90f, bounds.centerX(), bounds.centerY());
356 canvas.drawText(mHintText, x, y, mHintTextPaint);
358 canvas.restore();
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DActivatableNotificationView.java878 protected void dispatchDraw(Canvas canvas) { argument
880 canvas.save();
881 canvas.translate(0, mAppearAnimationTranslation);
883 super.dispatchDraw(canvas);
885 canvas.restore();
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/views/
H A DTiledImageRenderer.java413 public boolean draw(GLCanvas canvas) { argument
415 uploadTiles(canvas);
428 canvas.save(flags);
431 canvas.translate(centerX, centerY);
432 canvas.rotate(rotation, 0, 0, 1);
433 canvas.translate(-centerX, -centerY);
446 drawTile(canvas, tx, ty, level, x, y, length);
450 mPreview.draw(canvas, mOffsetX, mOffsetY,
456 canvas.restore();
462 uploadBackgroundTiles(canvas);
470 uploadBackgroundTiles(GLCanvas canvas) argument
570 uploadTiles(GLCanvas canvas) argument
596 drawTile(GLCanvas canvas, int tx, int ty, int level, float x, float y, float length) argument
632 drawTile( Tile tile, GLCanvas canvas, RectF source, RectF target) argument
[all...]
/frameworks/ex/widget/java/com/android/ex/widget/
H A DStaggeredGridView.java572 public void draw(Canvas canvas) { argument
573 super.draw(canvas);
578 mTopEdge.draw(canvas);
582 final int restoreCount = canvas.save();
584 canvas.translate(-width, getHeight());
585 canvas.rotate(180, width, 0);
586 mBottomEdge.draw(canvas);
587 canvas.restoreToCount(restoreCount);
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/date/
H A DMonthView.java323 protected void onDraw(Canvas canvas) { argument
324 drawMonthTitle(canvas);
325 drawMonthDayLabels(canvas);
326 drawMonthNums(canvas);
452 protected void drawMonthTitle(Canvas canvas) { argument
455 canvas.drawText(getMonthAndYearString(), x, y, mMonthTitlePaint);
458 protected void drawMonthDayLabels(Canvas canvas) { argument
466 canvas.drawText(mDayLabelCalendar.getDisplayName(Calendar.DAY_OF_WEEK, Calendar.SHORT,
476 * @param canvas The canvas t
478 drawMonthNums(Canvas canvas) argument
517 drawMonthDay(Canvas canvas, int year, int month, int day, int x, int y, int startX, int stopX, int startY, int stopY) argument
[all...]
/frameworks/support/design/src/android/support/design/widget/
H A DCollapsingToolbarLayout.java262 public void draw(Canvas canvas) { argument
263 super.draw(canvas);
270 mContentScrim.draw(canvas);
275 mCollapsingTextHelper.draw(canvas);
285 mStatusBarScrim.draw(canvas);
291 protected boolean drawChild(Canvas canvas, View child, long drawingTime) { argument
298 mContentScrim.draw(canvas);
302 return super.drawChild(canvas, child, drawingTime);
H A DTextInputLayout.java894 public void draw(Canvas canvas) { argument
895 super.draw(canvas);
898 mCollapsingTextHelper.draw(canvas);
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/
H A DBackgroundManager.java166 public void draw(Canvas canvas) { argument
173 canvas.drawBitmap(mState.mBitmap, mState.mMatrix, mState.mPaint);
343 public void draw(Canvas canvas) { argument
345 canvas.saveLayer(0, 0, canvas.getWidth(), canvas.getHeight(),
348 super.draw(canvas);
350 canvas.restore();
417 public void draw(Canvas canvas) { argument
421 imageInWrapper.getDrawable().draw(canvas);
[all...]
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
H A DLinearLayoutCompat.java276 protected void onDraw(Canvas canvas) { argument
282 drawDividersVertical(canvas);
284 drawDividersHorizontal(canvas);
288 void drawDividersVertical(Canvas canvas) { argument
297 drawHorizontalDivider(canvas, top);
311 drawHorizontalDivider(canvas, bottom);
315 void drawDividersHorizontal(Canvas canvas) { argument
330 drawVerticalDivider(canvas, position);
352 drawVerticalDivider(canvas, position);
356 void drawHorizontalDivider(Canvas canvas, in argument
362 drawVerticalDivider(Canvas canvas, int left) argument
[all...]
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
H A DBaseRecyclerViewAnimationsTest.java467 protected void dispatchDraw(Canvas canvas) { argument
468 super.dispatchDraw(canvas);
/frameworks/base/core/java/android/inputmethodservice/
H A DKeyboardView.java247 /** The canvas for the above mutable keyboard bitmap */
643 public void onDraw(Canvas canvas) { argument
644 super.onDraw(canvas);
648 canvas.drawBitmap(mBuffer, 0, 0, null);
664 final Canvas canvas = mCanvas;
665 canvas.clipRect(mDirtyRect, Op.REPLACE);
680 if (invalidKey != null && canvas.getClipBounds(clipRegion)) {
689 canvas.drawColor(0x00000000, PorterDuff.Mode.CLEAR);
707 canvas.translate(key.x + kbdPaddingLeft, key.y + kbdPaddingTop);
708 keyBackground.draw(canvas);
[all...]
/frameworks/base/core/java/android/text/
H A DLayout.java230 * Draw this Layout on the specified canvas, with the highlight path drawn
233 * @param canvas the canvas
237 * canvas while rendering the highlight
239 public void draw(Canvas canvas, Path highlight, Paint highlightPaint, argument
241 final long lineRange = getLineRangeForDraw(canvas);
246 drawBackground(canvas, highlight, highlightPaint, cursorOffsetVertical,
248 drawText(canvas, firstLine, lastLine);
254 public void drawText(Canvas canvas, int firstLine, int lastLine) { argument
335 margin.drawLeadingMargin(canvas, pain
410 drawBackground(Canvas canvas, Path highlight, Paint highlightPaint, int cursorOffsetVertical, int firstLine, int lastLine) argument
490 getLineRangeForDraw(Canvas canvas) argument
[all...]
/frameworks/base/core/java/android/view/
H A DRenderNode.java57 * DisplayListCanvas canvas = displayList.start(width, height);
59 * // Draw onto the canvas
60 * // For instance: canvas.drawBitmap(...);
69 * protected void onDraw(Canvas canvas) {
70 * if (canvas.isHardwareAccelerated()) {
71 * DisplayListCanvas displayListCanvas = (DisplayListCanvas) canvas;
96 * DisplayListCanvas canvas = mDisplayList.start(width, height);
99 * canvas.drawBitmap(b, 0.0f, 0.0f, null);
100 * canvas.translate(0.0f, b.getHeight());
107 * protected void onDraw(Canvas canvas) {
204 end(DisplayListCanvas canvas) argument
[all...]
H A DThreadedRenderer.java665 DisplayListCanvas canvas = mRootNode.start(mSurfaceWidth, mSurfaceHeight);
667 final int saveCount = canvas.save();
668 canvas.translate(mInsetLeft, mInsetTop);
669 callbacks.onHardwarePreDraw(canvas);
671 canvas.insertReorderBarrier();
672 canvas.drawRenderNode(view.updateDisplayListIfDirty());
673 canvas.insertInorderBarrier();
675 callbacks.onHardwarePostDraw(canvas);
676 canvas.restoreToCount(saveCount);
679 mRootNode.end(canvas);
738 onHardwarePreDraw(DisplayListCanvas canvas) argument
746 onHardwarePostDraw(DisplayListCanvas canvas) argument
[all...]
/frameworks/base/core/java/android/webkit/
H A DWebViewProvider.java322 public void onDrawVerticalScrollBar(Canvas canvas, Drawable scrollBar, int l, int t, argument
329 public void onDraw(Canvas canvas); argument
383 public void preDispatchDraw(Canvas canvas); argument
/frameworks/base/core/java/android/widget/
H A DCalendarViewLegacyDelegate.java1352 protected void onDraw(Canvas canvas) { argument
1353 drawBackground(canvas);
1354 drawWeekNumbersAndDates(canvas);
1355 drawWeekSeparators(canvas);
1356 drawSelectedDateVerticalBars(canvas);
1362 * @param canvas The canvas to draw on
1364 private void drawBackground(Canvas canvas) { argument
1382 canvas.drawRect(mTempRect, mDrawPaint);
1391 canvas
1399 drawWeekNumbersAndDates(Canvas canvas) argument
1443 drawWeekSeparators(Canvas canvas) argument
1471 drawSelectedDateVerticalBars(Canvas canvas) argument
[all...]
H A DImageView.java1256 protected void onDraw(Canvas canvas) { argument
1257 super.onDraw(canvas);
1268 mDrawable.draw(canvas);
1270 final int saveCount = canvas.getSaveCount();
1271 canvas.save();
1276 canvas.clipRect(scrollX + mPaddingLeft, scrollY + mPaddingTop,
1281 canvas.translate(mPaddingLeft, mPaddingTop);
1284 canvas.concat(mDrawMatrix);
1286 mDrawable.draw(canvas);
1287 canvas
[all...]
H A DListView.java3295 void drawOverscrollHeader(Canvas canvas, Drawable drawable, Rect bounds) { argument
3298 canvas.save();
3299 canvas.clipRect(bounds);
3307 drawable.draw(canvas);
3309 canvas.restore();
3312 void drawOverscrollFooter(Canvas canvas, Drawable drawable, Rect bounds) { argument
3315 canvas.save();
3316 canvas.clipRect(bounds);
3324 drawable.draw(canvas);
3326 canvas
3330 dispatchDraw(Canvas canvas) argument
3498 drawChild(Canvas canvas, View child, long drawingTime) argument
3515 drawDivider(Canvas canvas, Rect bounds, int childIndex) argument
[all...]
H A DProgressBar.java1703 // onDraw will translate the canvas so we draw starting at 0,0.
1750 protected synchronized void onDraw(Canvas canvas) { argument
1751 super.onDraw(canvas);
1753 drawTrack(canvas);
1759 void drawTrack(Canvas canvas) { argument
1762 // Translate canvas so a indeterminate circular progress bar with padding
1764 final int saveCount = canvas.save();
1767 canvas.translate(getWidth() - mPaddingRight, mPaddingTop);
1768 canvas.scale(-1.0f, 1.0f);
1770 canvas
[all...]
H A DRadialTimePickerView.java640 public void onDraw(Canvas canvas) { argument
643 drawCircleBackground(canvas);
646 drawSelector(canvas, selectorPath);
647 drawHours(canvas, selectorPath, alphaMod);
648 drawMinutes(canvas, selectorPath, alphaMod);
649 drawCenter(canvas, alphaMod);
694 private void drawCircleBackground(Canvas canvas) { argument
695 canvas.drawCircle(mXCenter, mYCenter, mCircleRadius, mPaintBackground);
698 private void drawHours(Canvas canvas, Path selectorPath, float alphaMod) { argument
703 canvas
717 drawHoursClipped(Canvas canvas, int hoursAlpha, boolean showActivated) argument
731 drawMinutes(Canvas canvas, Path selectorPath, float alphaMod) argument
750 drawMinutesClipped(Canvas canvas, int minutesAlpha, boolean showActivated) argument
756 drawCenter(Canvas canvas, float alphaMod) argument
765 drawSelector(Canvas canvas, Path selectorPath) argument
867 drawTextElements(Canvas canvas, float textSize, Typeface typeface, ColorStateList textColor, String[] texts, float[] textX, float[] textY, Paint paint, int alpha, boolean showActivated, int activatedDegrees, boolean activatedOnly) argument
[all...]
H A DScrollView.java1721 public void draw(Canvas canvas) { argument
1722 super.draw(canvas);
1727 final int restoreCount = canvas.save();
1743 canvas.translate(translateX, Math.min(0, scrollY) + translateY);
1745 if (mEdgeGlowTop.draw(canvas)) {
1748 canvas.restoreToCount(restoreCount);
1751 final int restoreCount = canvas.save();
1767 canvas.translate(-width + translateX,
1769 canvas.rotate(180, width, 0);
1771 if (mEdgeGlowBottom.draw(canvas)) {
[all...]
H A DStackView.java532 protected void dispatchDraw(Canvas canvas) { argument
535 canvas.getClipBounds(stackInvalidateRect);
553 canvas.save(Canvas.CLIP_SAVE_FLAG);
554 canvas.clipRect(stackInvalidateRect, Region.Op.UNION);
555 super.dispatchDraw(canvas);
556 canvas.restore();
558 super.dispatchDraw(canvas);
/frameworks/base/core/java/com/android/internal/widget/
H A DLockPatternView.java1041 protected void onDraw(Canvas canvas) { argument
1099 DisplayListCanvas displayListCanvas = (DisplayListCanvas) canvas;
1103 drawCircle(canvas, (int) centerX, (int) centerY + translationY,
1143 canvas.drawPath(currentPath, mPathPaint);
1158 canvas.drawPath(currentPath, mPathPaint);
1189 private void drawCircle(Canvas canvas, float centerX, float centerY, float radius, argument
1193 canvas.drawCircle(centerX, centerY, radius, mPaint);
/frameworks/base/core/jni/android/graphics/
H A DGraphics.cpp373 android::Canvas* GraphicsJNI::getNativeCanvas(JNIEnv* env, jobject canvas) { argument
375 SkASSERT(canvas);
376 SkASSERT(env->IsInstanceOf(canvas, gCanvas_class));
377 jlong canvasHandle = env->GetLongField(canvas, gCanvas_nativeInstanceID);

Completed in 591 milliseconds

<<11121314