Home
last modified time | relevance | path

Searched refs:getColor (Results 1 – 25 of 40) sorted by relevance

12

/development/samples/Snake/src/com/example/android/snake/
DBackgroundView.java48 mColors[0] = a.getColor(R.styleable.BackgroundView_colorSegmentOne, Color.RED); in BackgroundView()
49 mColors[1] = a.getColor(R.styleable.BackgroundView_colorSegmentTwo, Color.YELLOW); in BackgroundView()
50 mColors[2] = a.getColor(R.styleable.BackgroundView_colorSegmentThree, Color.BLUE); in BackgroundView()
51 mColors[3] = a.getColor(R.styleable.BackgroundView_colorSegmentFour, Color.GREEN); in BackgroundView()
/development/samples/browseable/CustomTransition/src/com.example.android.customtransition/
DChangeColor.java88 if (startColor.getColor() != endColor.getColor()) { in createAnimator()
96 startColor.getColor(), endColor.getColor()); in createAnimator()
/development/samples/browseable/JobScheduler/src/com.example.android.jobscheduler/
DMainActivity.java222 showStartView.setBackgroundColor(getColor(R.color.start_received)); in handleMessage()
236 showStopView.setBackgroundColor(getColor(R.color.stop_received)); in handleMessage()
244 showStartView.setBackgroundColor(getColor(R.color.none_received)); in handleMessage()
248 showStopView.setBackgroundColor(getColor(R.color.none_received)); in handleMessage()
264 private int getColor(@ColorRes int color) { in getColor() method in MainActivity.IncomingMessageHandler
265 return mActivity.get().getResources().getColor(color); in getColor()
/development/samples/browseable/FingerprintDialog/src/com.example.android.fingerprintdialog/
DFingerprintUiHelper.java108 mErrorTextView.getResources().getColor(R.color.success_color, null)); in onAuthenticationSucceeded()
123 mErrorTextView.getResources().getColor(R.color.warning_color, null)); in showError()
132 mErrorTextView.getResources().getColor(R.color.hint_color, null));
/development/samples/browseable/Notifications/Wearable/src/com.example.android.support.wearable.notifications/
DWearableListItemLayout.java48 mFadedCircleColor = getResources().getColor(R.color.wl_gray); in WearableListItemLayout()
49 mChosenCircleColor = getResources().getColor(R.color.wl_blue); in WearableListItemLayout()
/development/samples/browseable/Timer/src/com.example.android.wearable.timer/
DWearableListItemLayout.java46 mFadedCircleColor = getResources().getColor(R.color.wl_gray); in WearableListItemLayout()
47 mChosenCircleColor = getResources().getColor(R.color.wl_blue); in WearableListItemLayout()
/development/samples/browseable/SpeedTracker/Wearable/src/com.example.android.wearable.speedtracker/ui/
DSpeedPickerLayout.java55 mFadedCircleColor = getResources().getColor(R.color.grey); in SpeedPickerLayout()
56 mChosenCircleColor = getResources().getColor(R.color.blue); in SpeedPickerLayout()
/development/samples/browseable/AsymmetricFingerprintDialog/src/com.example.android.asymmetricfingerprintdialog/
DFingerprintUiHelper.java131 mErrorTextView.getResources().getColor(R.color.success_color, null)); in onAuthenticationSucceeded()
146 mErrorTextView.getResources().getColor(R.color.warning_color, null)); in showError()
156 mErrorTextView.getResources().getColor(R.color.hint_color, null));
/development/samples/browseable/Flashlight/src/com.example.android.wearable.flashlight/
DPartyLightView.java85 mCurrentColor = getColor(mProgress, mColors[mFromColorIndex], in init()
102 private int getColor(float fraction, int colorStart, int colorEnd) { in getColor() method in PartyLightView
/development/samples/browseable/DrawableTinting/src/com.example.android.drawabletinting/
DDrawableTintingFragment.java209 updateTint(getColor(), getTintMode()); in onCreateView()
230 public int getColor() { in getColor() method in DrawableTintingFragment
287 updateTint(getColor(), getTintMode());
305 updateTint(getColor(), getTintMode());
/development/samples/SoftKeyboard/src/com/example/android/softkeyboard/
DCandidateView.java85 setBackgroundColor(r.getColor(R.color.candidate_background)); in CandidateView()
87 mColorNormal = r.getColor(R.color.candidate_normal); in CandidateView()
88 mColorRecommended = r.getColor(R.color.candidate_recommended); in CandidateView()
89 mColorOther = r.getColor(R.color.candidate_other); in CandidateView()
/development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/utils/
DResourceHelper.java46 themeColor = ta.getColor(0, defaultColor); in getThemeColor()
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DColorFilters.java113 if (mPaint.getColor() == 0xFF000000) { in swapPaintColors()
169 if (mPaint.getColor() == 0xFFFFFFFF) { in onTouchEvent()
DColorPickerDialog.java73 int c = mCenterPaint.getColor(); in onDraw()
200 mListener.colorChanged(mCenterPaint.getColor()); in onTouchEvent()
/development/samples/ApiDemos/src/com/example/android/apis/security/
DKeyStoreUsage.java210 mPlainText.setTextColor(getResources().getColor(android.R.color.primary_text_dark)); in onCreate()
219 .setTextColor(getResources().getColor(android.R.color.primary_text_dark)); in onCreate()
471 mCipherText.setTextColor(getResources().getColor(R.color.solid_green)); in onPostExecute()
473 mCipherText.setTextColor(getResources().getColor(R.color.solid_red)); in onPostExecute()
482 mCipherText.setTextColor(getResources().getColor(android.R.color.primary_text_dark)); in onCancelled()
/development/samples/ApiDemos/src/com/example/android/apis/animation/
DShapeHolder.java62 public int getColor() { in getColor() method in ShapeHolder
/development/samples/browseable/WearNotifications/Wearable/src/com.example.android.wearable.wear.wearnotifications/
DStandaloneMainActivity.java274 .setColor(getResources().getColor(R.color.colorPrimary)) in generateBigTextStyleNotification()
432 .setColor(getResources().getColor(R.color.colorPrimary)) in generateBigPictureStyleNotification()
522 .setColor(getResources().getColor(R.color.colorPrimary)) in generateInboxStyleNotification()
692 .setColor(getResources().getColor(R.color.colorPrimary)) in generateMessagingStyleNotification()
/development/samples/browseable/WearNotifications/Application/src/com.example.android.wearable.wear.wearnotifications/
DMainActivity.java300 .setColor(getResources().getColor(R.color.colorPrimary)) in generateBigTextStyleNotification()
460 .setColor(getResources().getColor(R.color.colorPrimary)) in generateBigPictureStyleNotification()
588 .setColor(getResources().getColor(R.color.colorPrimary)) in generateInboxStyleNotification()
779 .setColor(getResources().getColor(R.color.colorPrimary)) in generateMessagingStyleNotification()
/development/samples/browseable/SpeedTracker/Wearable/src/com.example.android.wearable.speedtracker/
DWearableMainActivity.java121 int getColor() { in getColor() method in WearableMainActivity.SpeedState
311 mSpeedTextView.setTextColor(getResources().getColor(state.getColor())); in updateSpeedInViews()
/development/samples/ApiDemos/src/com/example/android/apis/view/
DLabelView.java74 setTextColor(a.getColor(R.styleable.LabelView_textColor, 0xFF000000)); in LabelView()
/development/samples/browseable/WatchFace/Wearable/src/com.example.android.wearable.watchface/
DDigitalWatchFaceWearableConfigActivity.java129 updateConfigDataItem(colorItemViewHolder.mColorItem.getColor()); in onClick()
285 private int getColor() { in getColor() method in DigitalWatchFaceWearableConfigActivity.ColorItem
DDigitalWatchFaceService.java205 ContextCompat.getColor(getApplicationContext(), R.color.digital_date)); in onCreate()
210 ContextCompat.getColor(getApplicationContext(), R.color.digital_am_pm)); in onCreate()
212 ContextCompat.getColor(getApplicationContext(), R.color.digital_colons)); in onCreate()
/development/samples/browseable/WearNotifications/Wearable/src/com.example.android.wearable.wear.wearnotifications/handlers/
DBigPictureSocialIntentService.java213 .setColor(getResources().getColor(R.color.colorPrimary)) in recreateBuilderWithBigPictureStyle()
/development/samples/IntentPlayground/src/com/example/android/intentplayground/
DInlineAdapter.java107 .getResources().getColor(ColorManager.getColorForTask(task.id), in setTask()
/development/samples/browseable/WearNotifications/Application/src/com.example.android.wearable.wear.wearnotifications/handlers/
DBigTextIntentService.java197 .setColor(getResources().getColor(R.color.colorPrimary)) in recreateBuilderWithBigTextStyle()

12