Home
last modified time | relevance | path

Searched refs:setColor (Results 1 – 25 of 84) sorted by relevance

1234

/development/samples/browseable/WatchFace/Wearable/src/com.example.android.wearable.watchface/
DSweepWatchFaceService.java121 mBackgroundPaint.setColor(Color.BLACK); in onCreate()
130 mHourPaint.setColor(mWatchHandColor); in onCreate()
137 mMinutePaint.setColor(mWatchHandColor); in onCreate()
144 mSecondPaint.setColor(mWatchHandHighlightColor); in onCreate()
151 mTickAndCirclePaint.setColor(mWatchHandColor); in onCreate()
211 mHourPaint.setColor(Color.WHITE); in updateWatchHandStyle()
212 mMinutePaint.setColor(Color.WHITE); in updateWatchHandStyle()
213 mSecondPaint.setColor(Color.WHITE); in updateWatchHandStyle()
214 mTickAndCirclePaint.setColor(Color.WHITE); in updateWatchHandStyle()
227 mHourPaint.setColor(mWatchHandColor); in updateWatchHandStyle()
[all …]
DAnalogWatchFaceService.java149 mBackgroundPaint.setColor(Color.BLACK); in onCreate()
158 mHourPaint.setColor(mWatchHandColor); in onCreate()
165 mMinutePaint.setColor(mWatchHandColor); in onCreate()
172 mSecondPaint.setColor(mWatchHandHighlightColor); in onCreate()
179 mTickAndCirclePaint.setColor(mWatchHandColor); in onCreate()
246 mHourPaint.setColor(Color.WHITE); in updateWatchHandStyle()
247 mMinutePaint.setColor(Color.WHITE); in updateWatchHandStyle()
248 mSecondPaint.setColor(Color.WHITE); in updateWatchHandStyle()
249 mTickAndCirclePaint.setColor(Color.WHITE); in updateWatchHandStyle()
262 mHourPaint.setColor(mWatchHandColor); in updateWatchHandStyle()
[all …]
DComplicationSimpleWatchFaceService.java195 mBackgroundPaint.setColor(Color.BLACK); in initializeBackground()
206 mComplicationPaint.setColor(Color.WHITE); in initializeComplication()
221 mHourPaint.setColor(mWatchHandColor); in initializeWatchFace()
228 mMinutePaint.setColor(mWatchHandColor); in initializeWatchFace()
235 mSecondPaint.setColor(mWatchHandHighlightColor); in initializeWatchFace()
242 mTickAndCirclePaint.setColor(mWatchHandColor); in initializeWatchFace()
427 mHourPaint.setColor(Color.WHITE); in updateWatchHandStyle()
428 mMinutePaint.setColor(Color.WHITE); in updateWatchHandStyle()
429 mSecondPaint.setColor(Color.WHITE); in updateWatchHandStyle()
430 mTickAndCirclePaint.setColor(Color.WHITE); in updateWatchHandStyle()
[all …]
DCardBoundsWatchFaceService.java91 mPaint.setColor(Color.MAGENTA); in onDraw()
99 mPaint.setColor(isInAmbientMode() ? Color.RED : Color.GREEN); in onDraw()
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DArcs.java59 mPaints[0].setColor(0x88FF0000); in SampleView()
63 mPaints[1].setColor(0x8800FF00); in SampleView()
69 mPaints[2].setColor(0x880000FF); in SampleView()
73 mPaints[3].setColor(0x88888888); in SampleView()
DRegions.java51 mPaint.setColor(Color.RED); in drawOriginalRects()
54 mPaint.setColor(Color.BLUE); in drawOriginalRects()
64 mPaint.setColor(Color.BLACK); in drawRgn()
72 mPaint.setColor(color); in drawRgn()
77 mPaint.setColor(color); in drawRgn()
DClipping.java54 mPaint.setColor(Color.RED); in drawScene()
57 mPaint.setColor(Color.GREEN); in drawScene()
60 mPaint.setColor(Color.BLUE); in drawScene()
DLayers.java50 mPaint.setColor(Color.RED); in onDraw()
52 mPaint.setColor(Color.BLUE); in onDraw()
DShapeDrawable1.java104 mDrawables[0].getPaint().setColor(0xFFFF0000); in SampleView()
105 mDrawables[1].getPaint().setColor(0xFF00FF00); in SampleView()
106 mDrawables[2].getPaint().setColor(0xFF0000FF); in SampleView()
110 mDrawables[6].getPaint().setColor(0x88FF8844); in SampleView()
DTextAlign.java83 mPathPaint.setColor(0x800000FF); in SampleView()
97 p.setColor(0x80FF0000); in onDraw()
99 p.setColor(Color.BLACK); in onDraw()
117 p.setColor(0xBB00FF00); in onDraw()
122 p.setColor(Color.BLACK); in onDraw()
DPictures.java43 p.setColor(0x88FF0000); in drawSomething()
46 p.setColor(Color.GREEN); in drawSomething()
DColorFilters.java114 mPaint.setColor(0xFFFFFFFF); in swapPaintColors()
115 mPaint2.setColor(0xFF000000); in swapPaintColors()
117 mPaint.setColor(0xFF000000); in swapPaintColors()
118 mPaint2.setColor(0xFFFFFFFF); in swapPaintColors()
DDrawPoints.java69 paint.setColor(Color.RED); in onDraw()
73 paint.setColor(Color.BLUE); in onDraw()
DMeasureText.java78 mPaint.setColor(0xFF88FF88); in showText()
80 mPaint.setColor(Color.BLACK); in showText()
93 mPaint.setColor(Color.RED); in showText()
DPolyToPoly.java46 mPaint.setColor(Color.GRAY); in doDraw()
52 mPaint.setColor(Color.RED); in doDraw()
DWindowSurface.java179 mBackground.setColor(0xff000000); in run()
180 mForeground.setColor(0xff00ffff); in run()
238 mForeground.setColor(mOldColor[i] | makeGreen(i)); in run()
250 mForeground.setColor(color | makeGreen(-2)); in run()
DPatterns.java38 p.setColor(Color.BLUE); in makeBitmap1()
47 p.setColor(Color.GREEN); in makeBitmap2()
/development/samples/browseable/Timer/src/com.example.android.wearable.timer/
DWearableListItemLayout.java60 ((GradientDrawable) mCircle.getDrawable()).setColor(mChosenCircleColor); in onCenterPosition()
65 ((GradientDrawable) mCircle.getDrawable()).setColor(mFadedCircleColor); in onNonCenterPosition()
/development/samples/browseable/Notifications/Wearable/src/com.example.android.support.wearable.notifications/
DWearableListItemLayout.java62 ((GradientDrawable) mCircle.getDrawable()).setColor(mChosenCircleColor); in onCenterPosition()
67 ((GradientDrawable) mCircle.getDrawable()).setColor(mFadedCircleColor); in onNonCenterPosition()
/development/samples/ApiDemos/src/com/example/android/apis/view/
DInternalSelectionView.java78 mTextPaint.setColor(Color.WHITE); in init()
147 mPainter.setColor(Color.BLACK); in onDraw()
156 mPainter.setColor(Color.RED); in onDraw()
160 mPainter.setColor(Color.BLACK); in onDraw()
DLabelView.java89 mTextPaint.setColor(0xFF000000); in initLabelView()
119 mTextPaint.setColor(color); in setTextColor()
/development/samples/browseable/SpeedTracker/Wearable/src/com.example.android.wearable.speedtracker/ui/
DSpeedPickerLayout.java70 ((GradientDrawable) mCircle.getDrawable()).setColor(mChosenCircleColor); in onCenterPosition()
75 ((GradientDrawable) mCircle.getDrawable()).setColor(mFadedCircleColor); in onNonCenterPosition()
/development/samples/ApiDemos/src/com/example/android/apis/animation/
DShapeHolder.java65 public void setColor(int value) { in setColor() method in ShapeHolder
66 shape.getPaint().setColor(value); in setColor()
/development/samples/SoftKeyboard/src/com/example/android/softkeyboard/
DCandidateView.java93 mPaint.setColor(mColorNormal); in CandidateView()
188 paint.setColor(mColorNormal); in onDraw()
202 paint.setColor(mColorRecommended); in onDraw()
204 paint.setColor(mColorOther); in onDraw()
207 paint.setColor(mColorOther); in onDraw()
/development/samples/browseable/SwipeRefreshMultipleViews/src/com.example.android.common/view/
DSlidingTabStrip.java81 mBottomBorderPaint.setColor(mDefaultBottomBorderColor); in SlidingTabStrip()
146 mSelectedIndicatorPaint.setColor(color); in onDraw()
159 mDividerPaint.setColor(tabColorizer.getDividerColor(i)); in onDraw()

1234