Searched refs:mHourPaint (Results 1 – 6 of 6) sorted by relevance
/development/samples/browseable/WatchFace/Wearable/src/com.example.android.wearable.watchface/ |
D | SweepWatchFaceService.java | 84 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 …]
|
D | AnalogWatchFaceService.java | 93 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 …]
|
D | ComplicationSimpleWatchFaceService.java | 115 private Paint mHourPaint; field in ComplicationSimpleWatchFaceService.Engine 220 mHourPaint = new Paint(); in initializeWatchFace() 221 mHourPaint.setColor(mWatchHandColor); in initializeWatchFace() 222 mHourPaint.setStrokeWidth(HOUR_STROKE_WIDTH); in initializeWatchFace() 223 mHourPaint.setAntiAlias(true); in initializeWatchFace() 224 mHourPaint.setStrokeCap(Paint.Cap.ROUND); in initializeWatchFace() 225 mHourPaint.setShadowLayer(SHADOW_RADIUS, 0, 0, mWatchHandShadowColor); in initializeWatchFace() 427 mHourPaint.setColor(Color.WHITE); in updateWatchHandStyle() 432 mHourPaint.setAntiAlias(false); in updateWatchHandStyle() 437 mHourPaint.clearShadowLayer(); in updateWatchHandStyle() [all …]
|
D | DigitalWatchFaceService.java | 150 Paint mHourPaint; field in DigitalWatchFaceService.Engine 206 mHourPaint = createTextPaint(mInteractiveHourDigitsColor, BOLD_TYPEFACE); in onCreate() 309 mHourPaint.setTextSize(textSize); in onApplyWindowInsets() 323 mHourPaint.setTypeface(burnInProtection ? NORMAL_TYPEFACE : BOLD_TYPEFACE); in onPropertiesChanged() 350 adjustPaintColorToCurrentMode(mHourPaint, mInteractiveHourDigitsColor, in onAmbientModeChanged() 362 mHourPaint.setAntiAlias(antiAlias); in onAmbientModeChanged() 395 mHourPaint.setAlpha(alpha); in onInterruptionFilterChanged() 428 updatePaintIfInteractive(mHourPaint, color); in setInteractiveHourDigitsColor() 475 canvas.drawText(hourString, x, mYOffset, mHourPaint); in onDraw() 476 x += mHourPaint.measureText(hourString); in onDraw()
|
D | FitStepsWatchFaceService.java | 143 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()
|
D | FitDistanceWatchFaceService.java | 147 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()
|