Home
last modified time | relevance | path

Searched refs:mHourPaint (Results 1 – 6 of 6) sorted by relevance

/development/samples/browseable/WatchFace/Wearable/src/com.example.android.wearable.watchface/
DSweepWatchFaceService.java84 private Paint mHourPaint; field in SweepWatchFaceService.Engine
129 mHourPaint = new Paint(); in onCreate()
130 mHourPaint.setColor(mWatchHandColor); in onCreate()
131 mHourPaint.setStrokeWidth(HOUR_STROKE_WIDTH); in onCreate()
132 mHourPaint.setAntiAlias(true); in onCreate()
133 mHourPaint.setStrokeCap(Paint.Cap.ROUND); in onCreate()
134 mHourPaint.setShadowLayer(SHADOW_RADIUS, 0, 0, mWatchHandShadowColor); in onCreate()
211 mHourPaint.setColor(Color.WHITE); in updateWatchHandStyle()
216 mHourPaint.setAntiAlias(false); in updateWatchHandStyle()
221 mHourPaint.clearShadowLayer(); in updateWatchHandStyle()
[all …]
DAnalogWatchFaceService.java93 private Paint mHourPaint; field in AnalogWatchFaceService.Engine
157 mHourPaint = new Paint(); in onCreate()
158 mHourPaint.setColor(mWatchHandColor); in onCreate()
159 mHourPaint.setStrokeWidth(HOUR_STROKE_WIDTH); in onCreate()
160 mHourPaint.setAntiAlias(true); in onCreate()
161 mHourPaint.setStrokeCap(Paint.Cap.ROUND); in onCreate()
162 mHourPaint.setShadowLayer(SHADOW_RADIUS, 0, 0, mWatchHandShadowColor); in onCreate()
246 mHourPaint.setColor(Color.WHITE); in updateWatchHandStyle()
251 mHourPaint.setAntiAlias(false); in updateWatchHandStyle()
256 mHourPaint.clearShadowLayer(); in updateWatchHandStyle()
[all …]
DComplicationSimpleWatchFaceService.java113 private Paint mHourPaint; field in ComplicationSimpleWatchFaceService.Engine
218 mHourPaint = new Paint(); in initializeWatchFace()
219 mHourPaint.setColor(mWatchHandColor); in initializeWatchFace()
220 mHourPaint.setStrokeWidth(HOUR_STROKE_WIDTH); in initializeWatchFace()
221 mHourPaint.setAntiAlias(true); in initializeWatchFace()
222 mHourPaint.setStrokeCap(Paint.Cap.ROUND); in initializeWatchFace()
223 mHourPaint.setShadowLayer(SHADOW_RADIUS, 0, 0, mWatchHandShadowColor); in initializeWatchFace()
407 mHourPaint.setColor(Color.WHITE); in updateWatchHandStyle()
412 mHourPaint.setAntiAlias(false); in updateWatchHandStyle()
417 mHourPaint.clearShadowLayer(); in updateWatchHandStyle()
[all …]
DDigitalWatchFaceService.java149 Paint mHourPaint; field in DigitalWatchFaceService.Engine
204 mHourPaint = createTextPaint(mInteractiveHourDigitsColor, BOLD_TYPEFACE); in onCreate()
305 mHourPaint.setTextSize(textSize); in onApplyWindowInsets()
319 mHourPaint.setTypeface(burnInProtection ? NORMAL_TYPEFACE : BOLD_TYPEFACE); in onPropertiesChanged()
346 adjustPaintColorToCurrentMode(mHourPaint, mInteractiveHourDigitsColor, in onAmbientModeChanged()
358 mHourPaint.setAntiAlias(antiAlias); in onAmbientModeChanged()
391 mHourPaint.setAlpha(alpha); in onInterruptionFilterChanged()
424 updatePaintIfInteractive(mHourPaint, color); in setInteractiveHourDigitsColor()
471 canvas.drawText(hourString, x, mYOffset, mHourPaint); in onDraw()
472 x += mHourPaint.measureText(hourString); in onDraw()
DFitStepsWatchFaceService.java143 private Paint mHourPaint; field in FitStepsWatchFaceService.Engine
211 mHourPaint = createTextPaint(TEXT_HOURS_MINS_COLOR, BOLD_TYPEFACE); in onCreate()
304 mHourPaint.setTextSize(textSize); in onApplyWindowInsets()
319 mHourPaint.setTypeface(burnInProtection ? NORMAL_TYPEFACE : BOLD_TYPEFACE); in onPropertiesChanged()
349 mHourPaint.setAntiAlias(antiAlias); in onAmbientModeChanged()
392 canvas.drawText(hourString, x, mYOffset, mHourPaint); in onDraw()
393 x += mHourPaint.measureText(hourString); in onDraw()
DFitDistanceWatchFaceService.java147 private Paint mHourPaint; field in FitDistanceWatchFaceService.Engine
214 mHourPaint = createTextPaint(TEXT_HOURS_MINS_COLOR, BOLD_TYPEFACE); in onCreate()
308 mHourPaint.setTextSize(textSize); in onApplyWindowInsets()
324 mHourPaint.setTypeface(burnInProtection ? NORMAL_TYPEFACE : BOLD_TYPEFACE); in onPropertiesChanged()
348 mHourPaint.setAntiAlias(antiAlias); in onAmbientModeChanged()
391 canvas.drawText(hourString, x, mYOffset, mHourPaint); in onDraw()
392 x += mHourPaint.measureText(hourString); in onDraw()