/development/samples/Snake/src/com/example/android/snake/ |
D | BackgroundView.java | 48 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/ |
D | ChangeColor.java | 88 if (startColor.getColor() != endColor.getColor()) { in createAnimator() 96 startColor.getColor(), endColor.getColor()); in createAnimator()
|
/development/samples/browseable/JobScheduler/src/com.example.android.jobscheduler/ |
D | MainActivity.java | 222 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/ |
D | FingerprintUiHelper.java | 108 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/ |
D | WearableListItemLayout.java | 48 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/ |
D | WearableListItemLayout.java | 46 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/ |
D | SpeedPickerLayout.java | 55 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/ |
D | FingerprintUiHelper.java | 131 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/ |
D | PartyLightView.java | 85 mCurrentColor = getColor(mProgress, mColors[mFromColorIndex], in init() 102 private int getColor(float fraction, int colorStart, int colorEnd) { in getColor() method in PartyLightView
|
/development/samples/SoftKeyboard/src/com/example/android/softkeyboard/ |
D | CandidateView.java | 85 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/DrawableTinting/src/com.example.android.drawabletinting/ |
D | DrawableTintingFragment.java | 209 updateTint(getColor(), getTintMode()); in onCreateView() 230 public int getColor() { in getColor() method in DrawableTintingFragment 287 updateTint(getColor(), getTintMode()); 305 updateTint(getColor(), getTintMode());
|
/development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/utils/ |
D | ResourceHelper.java | 46 themeColor = ta.getColor(0, defaultColor); in getThemeColor()
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
D | ColorFilters.java | 113 if (mPaint.getColor() == 0xFF000000) { in swapPaintColors() 169 if (mPaint.getColor() == 0xFFFFFFFF) { in onTouchEvent()
|
D | ColorPickerDialog.java | 73 int c = mCenterPaint.getColor(); in onDraw() 200 mListener.colorChanged(mCenterPaint.getColor()); in onTouchEvent()
|
/development/samples/ApiDemos/src/com/example/android/apis/security/ |
D | KeyStoreUsage.java | 210 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/ |
D | ShapeHolder.java | 62 public int getColor() { in getColor() method in ShapeHolder
|
/development/samples/browseable/WearNotifications/Wearable/src/com.example.android.wearable.wear.wearnotifications/ |
D | StandaloneMainActivity.java | 274 .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/ |
D | MainActivity.java | 300 .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/ |
D | WearableMainActivity.java | 121 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/ |
D | LabelView.java | 74 setTextColor(a.getColor(R.styleable.LabelView_textColor, 0xFF000000)); in LabelView()
|
/development/samples/browseable/WatchFace/Wearable/src/com.example.android.wearable.watchface/ |
D | DigitalWatchFaceWearableConfigActivity.java | 129 updateConfigDataItem(colorItemViewHolder.mColorItem.getColor()); in onClick() 285 private int getColor() { in getColor() method in DigitalWatchFaceWearableConfigActivity.ColorItem
|
D | DigitalWatchFaceService.java | 205 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/IntentPlayground/src/com/example/android/intentplayground/ |
D | InlineAdapter.java | 107 .getResources().getColor(ColorManager.getColorForTask(task.id), in setTask()
|
/development/samples/browseable/WearNotifications/Application/src/com.example.android.wearable.wear.wearnotifications/handlers/ |
D | BigTextIntentService.java | 197 .setColor(getResources().getColor(R.color.colorPrimary)) in recreateBuilderWithBigTextStyle()
|
/development/samples/browseable/WearNotifications/Wearable/src/com.example.android.wearable.wear.wearnotifications/handlers/ |
D | BigPictureSocialIntentService.java | 213 .setColor(getResources().getColor(R.color.colorPrimary)) in recreateBuilderWithBigPictureStyle()
|