/packages/apps/Music/src/com/android/music/ |
D | VerticalTextSpinner.java | 259 protected void onDraw(Canvas canvas) { in onDraw() argument 269 mSelector.draw(canvas); in onDraw() 298 canvas.save(); in onDraw() 299 canvas.clipRect(topLeft, topTop, topRight, topBottom); in onDraw() 300 drawText(canvas, text1, TEXT1_Y in onDraw() 302 drawText(canvas, text2, TEXT2_Y in onDraw() 304 drawText(canvas, text3, in onDraw() 306 canvas.restore(); in onDraw() 312 canvas.save(); in onDraw() 313 canvas.clipRect(selectorLeft, selectorTop + SELECTOR_ARROW_HEIGHT, in onDraw() [all …]
|
/packages/apps/Camera/src/com/android/camera/ui/ |
D | RotateRecordingTime.java | 57 protected void dispatchDraw(Canvas canvas) { in dispatchDraw() argument 58 canvas.save(); in dispatchDraw() 62 canvas.translate(0, height / 2 - mTextSize / 2); in dispatchDraw() 64 canvas.translate(-width / 2 + mTextSize / 2, 0); in dispatchDraw() 67 canvas.rotate(-mOrientation, width / 2, height / 2); in dispatchDraw() 68 super.dispatchDraw(canvas); in dispatchDraw() 69 canvas.restore(); in dispatchDraw()
|
D | StringTexture.java | 58 protected void onDraw(Canvas canvas, Bitmap backing) { in onDraw() argument 59 canvas.translate(DEFAULT_PADDING, DEFAULT_PADDING - mMetrics.ascent); in onDraw() 60 canvas.drawText(mText, 0, 0, mPaint); in onDraw()
|
/packages/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/ |
D | ComposingView.java | 214 protected void onDraw(Canvas canvas) { in onDraw() argument 217 drawForPinyin(canvas); in onDraw() 228 mHlDrawable.draw(canvas); in onDraw() 231 canvas.drawText(splStr, 0, splStr.length(), x, y, mPaint); in onDraw() 234 private void drawCursor(Canvas canvas, float x) { in drawCursor() argument 237 mCursor.draw(canvas); in drawCursor() 240 private void drawForPinyin(Canvas canvas) { in drawForPinyin() argument 252 canvas.drawText(cmpsStr, 0, cmpsPos, x, y, mPaint); in drawForPinyin() 256 drawCursor(canvas, x); in drawForPinyin() 258 canvas.drawText(cmpsStr, cmpsPos, activeCmpsLen, x, y, mPaint); in drawForPinyin() [all …]
|
/packages/apps/Camera/src/com/android/camera/ |
D | RotateImageView.java | 74 protected void onDraw(Canvas canvas) { in onDraw() argument 106 int saveCount = canvas.getSaveCount(); in onDraw() 107 canvas.translate(left + width / 2, top + height / 2); in onDraw() 108 canvas.rotate(-mCurrentDegree); in onDraw() 109 canvas.translate(-w / 2, -h / 2); in onDraw() 110 drawable.draw(canvas); in onDraw() 111 canvas.restoreToCount(saveCount); in onDraw()
|
D | Switcher.java | 135 protected void onDraw(Canvas canvas) { in onDraw() argument 166 int saveCount = canvas.getSaveCount(); in onDraw() 167 canvas.save(); in onDraw() 168 canvas.translate(offsetLeft, offsetTop); in onDraw() 169 drawable.draw(canvas); in onDraw() 170 canvas.restoreToCount(saveCount); in onDraw()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
D | BatteryHistoryChart.java | 84 void draw(Canvas canvas, int top, int height) { in draw() argument 92 canvas.drawRect(lastX, top, x, bottom, mPaints[lastBin]); in draw() 639 protected void onDraw(Canvas canvas) { in onDraw() argument 640 super.onDraw(canvas); in onDraw() 645 canvas.drawPath(mBatLevelPath, mBatteryBackgroundPaint); in onDraw() 647 canvas.drawText(mDurationString, 0, -mTextAscent + (mLineWidth/2), in onDraw() 649 canvas.drawText(mTotalDurationString, (width/2) - (mTotalDurationStringWidth/2), in onDraw() 652 canvas.drawText(mDurationString, (width/2) - (mDurationStringWidth/2), in onDraw() 656 canvas.drawPath(mBatGoodPath, mBatteryGoodPaint); in onDraw() 659 canvas.drawPath(mBatWarnPath, mBatteryWarnPaint); in onDraw() [all …]
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
D | BubbleTextView.java | 102 public void draw(Canvas canvas) { in draw() argument 114 background.draw(canvas); in draw() 116 canvas.translate(scrollX, scrollY); in draw() 117 background.draw(canvas); in draw() 118 canvas.translate(-scrollX, -scrollY); in draw() 131 canvas.drawRoundRect(rect, mCornerRadius, mCornerRadius, mPaint); in draw() 133 super.draw(canvas); in draw()
|
D | Utilities.java | 82 Canvas canvas = new Canvas(centered); in centerToFit() local 83 canvas.drawColor(color); in centerToFit() 84 canvas.drawBitmap(bitmap, (width - bitmapWidth) / 2.0f, (height - bitmapHeight) / 2.0f, in centerToFit() 147 final Canvas canvas = sCanvas; in createIconBitmap() local 148 canvas.setBitmap(bitmap); in createIconBitmap() 155 canvas.drawColor(sColors[sColorIndex]); in createIconBitmap() 159 canvas.drawRect(left, top, left+width, top+height, debugPaint); in createIconBitmap() 164 icon.draw(canvas); in createIconBitmap() 227 final Canvas canvas = sCanvas; in drawDisabledBitmap() local 228 canvas.setBitmap(disabled); in drawDisabledBitmap() [all …]
|
D | DragView.java | 91 protected void onDraw(Canvas canvas) { in onDraw() argument 97 canvas.drawRect(0, 0, getWidth(), getHeight(), p); in onDraw() 103 canvas.translate(offset, offset); in onDraw() 104 canvas.scale(scale, scale); in onDraw() 106 canvas.drawBitmap(mBitmap, 0.0f, 0.0f, mPaint); in onDraw()
|
/packages/apps/Gallery/src/com/android/camera/ |
D | GridViewSpecial.java | 67 public void drawImage(Canvas canvas, IImage image, in drawImage() argument 69 public void drawDecoration(Canvas canvas, IImage image, in drawDecoration() argument 273 Canvas canvas = new Canvas(); in generateOutlineBitmap() local 275 canvas.setBitmap(mOutline[OUTLINE_EMPTY]); in generateOutlineBitmap() 277 cellOutline.draw(canvas); in generateOutlineBitmap() 279 canvas.setBitmap(mOutline[OUTLINE_PRESSED]); in generateOutlineBitmap() 282 cellOutline.draw(canvas); in generateOutlineBitmap() 284 canvas.setBitmap(mOutline[OUTLINE_SELECTED]); in generateOutlineBitmap() 286 cellOutline.draw(canvas); in generateOutlineBitmap() 477 public void onDraw(Canvas canvas) { in onDraw() argument [all …]
|
D | HighlightView.java | 77 protected void draw(Canvas canvas) { in draw() argument 81 canvas.save(); in draw() 85 canvas.drawRect(mDrawRect, mOutlinePaint); in draw() 101 canvas.clipPath(path, Region.Op.DIFFERENCE); in draw() 102 canvas.drawRect(viewDrawingRect, in draw() 105 canvas.restore(); in draw() 106 canvas.drawPath(path, mOutlinePaint); in draw() 122 mResizeDrawableDiagonal.draw(canvas); in draw() 147 mResizeDrawableWidth.draw(canvas); in draw() 153 mResizeDrawableWidth.draw(canvas); in draw() [all …]
|
D | GalleryPickerItem.java | 66 protected void onDraw(Canvas canvas) { in onDraw() argument 67 super.onDraw(canvas); in onDraw() 81 mFrame.draw(canvas); in onDraw() 83 mOverlay.draw(canvas); in onDraw()
|
/packages/apps/SoundRecorder/src/com/android/soundrecorder/ |
D | VUMeter.java | 56 protected void onDraw(Canvas canvas) { in onDraw() argument 57 super.onDraw(canvas); in onDraw() 82 …canvas.drawLine(x0 + SHADOW_OFFSET, y0 + SHADOW_OFFSET, pivotX + SHADOW_OFFSET, pivotY + SHADOW_OF… in onDraw() 83 canvas.drawCircle(pivotX + SHADOW_OFFSET, pivotY + SHADOW_OFFSET, PIVOT_RADIUS, mShadow); in onDraw() 84 canvas.drawLine(x0, y0, pivotX, pivotY, mPaint); in onDraw() 85 canvas.drawCircle(pivotX, pivotY, PIVOT_RADIUS, mPaint); in onDraw()
|
/packages/apps/Calculator/src/com/android/calculator2/ |
D | ColorButton.java | 87 private void drawMagicFlame(int duration, Canvas canvas) { in drawMagicFlame() argument 92 canvas.drawRect(1, 1, getWidth() - 1, getHeight() - 1, mFeedbackPaint); in drawMagicFlame() 96 public void onDraw(Canvas canvas) { in onDraw() argument 103 drawMagicFlame(animDuration, canvas); in onDraw() 107 drawMagicFlame(0, canvas); in onDraw() 111 canvas.drawText(text, 0, text.length(), mTextX, mTextY, getPaint()); in onDraw()
|
/packages/apps/Calendar/src/com/android/calendar/ |
D | AgendaItemView.java | 46 protected void dispatchDraw(Canvas canvas) { in dispatchDraw() argument 47 super.dispatchDraw(canvas); in dispatchDraw() 52 canvas.drawRect(0, 0, 5, getHeight(), mPaint); in dispatchDraw() 57 canvas.drawRect(0, 0, getWidth(), getHeight(), mPaint); in dispatchDraw()
|
D | CalendarView.java | 1322 protected void onDraw(Canvas canvas) { in onDraw() argument 1334 canvas.save(); in onDraw() 1336 canvas.translate(mViewWidth - mViewStartX, 0); in onDraw() 1338 canvas.translate(-(mViewWidth + mViewStartX), 0); in onDraw() 1345 nextView.onDraw(canvas); in onDraw() 1346 canvas.restore(); in onDraw() 1347 canvas.save(); in onDraw() 1348 canvas.translate(-mViewStartX, 0); in onDraw() 1352 drawCalendarView(canvas); in onDraw() 1356 drawAfterScroll(canvas); in onDraw() [all …]
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | LinearColorBar.java | 91 protected void onDraw(Canvas canvas) { in onDraw() argument 92 super.onDraw(canvas); in onDraw() 142 canvas.drawPath(mEdgePath, mEdgeGradientPaint); in onDraw() 143 canvas.drawPath(mColorPath, mColorGradientPaint); in onDraw() 150 canvas.drawRect(mRect, mPaint); in onDraw() 161 canvas.drawRect(mRect, mPaint); in onDraw() 172 canvas.drawRect(mRect, mPaint); in onDraw()
|
/packages/wallpapers/Basic/src/com/android/wallpaper/walkaround/ |
D | WalkAroundWallpaper.java | 196 Canvas canvas = null; in startPreview() local 198 canvas = mHolder.lockCanvas(); in startPreview() 199 if (canvas != null) canvas.drawColor(0); in startPreview() 201 if (canvas != null) mHolder.unlockCanvasAndPost(canvas); in startPreview()
|
/packages/apps/Browser/src/com/android/browser/ |
D | MeshTracker.java | 151 public void draw(Canvas canvas) { in draw() argument 152 mPatch.draw(canvas); in draw() 187 @Override public void onDraw(Canvas canvas) { in onDraw() argument 190 canvas.drawPaint(mBGPaint); in onDraw() 192 canvas.drawColor(0xFF000000); in onDraw() 195 mMesh.draw(canvas); in onDraw()
|
/packages/apps/Gallery3D/src/com/cooliris/media/ |
D | HighlightView.java | 74 protected void draw(Canvas canvas) { in draw() argument 78 canvas.save(); in draw() 82 canvas.drawRect(mDrawRect, mOutlinePaint); in draw() 95 canvas.clipPath(path, Region.Op.DIFFERENCE); in draw() 96 canvas.drawRect(viewDrawingRect, hasFocus() ? mFocusPaint : mNoFocusPaint); in draw() 98 canvas.restore(); in draw() 99 canvas.drawPath(path, mOutlinePaint); in draw() 111 mResizeDrawableDiagonal.draw(canvas); in draw() 128 mResizeDrawableWidth.draw(canvas); in draw() 132 mResizeDrawableWidth.draw(canvas); in draw() [all …]
|
D | IconTitleDrawable.java | 57 public void draw(Canvas canvas) { in draw() argument 64 icon.draw(canvas); in draw() 69 canvas.translate(x, y); in draw() 70 mTitleLayout.draw(canvas); in draw() 71 canvas.translate(-x, -y); in draw()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
D | CandidateView.java | 207 protected void onDraw(Canvas canvas) { in onDraw() argument 208 if (canvas != null) { in onDraw() 209 super.onDraw(canvas); in onDraw() 262 if (canvas != null && !mShowingAddToDictionary) { in onDraw() 263 canvas.translate(x, 0); in onDraw() 265 mSelectionHighlight.draw(canvas); in onDraw() 266 canvas.translate(-x, 0); in onDraw() 272 if (canvas != null) { in onDraw() 273 canvas.drawText(suggestion, 0, wordLength, x + wordWidth / 2, y, paint); in onDraw() 275 canvas.translate(x + wordWidth, 0); in onDraw() [all …]
|
D | LatinKeyboard.java | 486 final Canvas canvas = new Canvas(buffer); in drawSynthesizedSettingsHintImage() local 487 canvas.drawColor(mRes.getColor(R.color.latinkeyboard_transparent), PorterDuff.Mode.CLEAR); in drawSynthesizedSettingsHintImage() 496 canvas.translate(drawableX, drawableY); in drawSynthesizedSettingsHintImage() 497 mainIcon.draw(canvas); in drawSynthesizedSettingsHintImage() 498 canvas.translate(-drawableX, -drawableY); in drawSynthesizedSettingsHintImage() 502 hintIcon.draw(canvas); in drawSynthesizedSettingsHintImage() 553 final Canvas canvas = new Canvas(buffer); in drawSpaceBar() local 554 canvas.drawColor(mRes.getColor(R.color.latinkeyboard_transparent), PorterDuff.Mode.CLEAR); in drawSpaceBar() 576 canvas.drawText(language, width / 2, baseline - descent - 1, paint); in drawSpaceBar() 578 canvas.drawText(language, width / 2, baseline - descent, paint); in drawSpaceBar() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/ |
D | TabStripView.java | 94 public void dispatchDraw(Canvas canvas) { in dispatchDraw() argument 95 super.dispatchDraw(canvas); in dispatchDraw() 119 mBottomLeftStrip.draw(canvas); in dispatchDraw() 120 mBottomRightStrip.draw(canvas); in dispatchDraw()
|