/packages/apps/Settings/src/com/android/settings/graph/ |
H A D | UsageGraph.java | 97 mDottedPaint.setColor(context.getColor(R.color.usage_graph_dots)); 152 void setAccentColor(int color) { argument 153 mAccentColor = color; 231 private int getColor(int color, float alphaScale) { argument 232 return (color & (((int) (0xff * alphaScale) << 24) | 0xffffff));
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
H A D | SecureConversationViewController.java | 92 // Add color backgrounds to the header and footer. 96 final int color = rootView.getResources().getColor( 97 R.color.message_header_background_color); 98 mMessageHeaderView.setBackgroundColor(color); 99 mSnapHeaderView.setBackgroundColor(color); 100 mMessageFooterView.setBackgroundColor(color);
|
H A D | AccountItemView.java | 89 final int blackColor = getResources().getColor(R.color.text_color_black); 95 final int greyColor = getResources().getColor(R.color.text_color_grey);
|
H A D | CustomViewToolbar.java | 177 public void setTitleTextColor(int color) { argument 178 mActionBarTitle.setTextColor(color);
|
H A D | FolderItemView.java | 153 private void setUnseenCount(final int color, final int count) { argument 158 drawable.getPaint().setColor(color);
|
/packages/services/Car/tests/InstrumentClusterRendererSample/src/com/android/car/cluster/sample/ |
H A D | ClusterView.java | 150 int c = getResources().getColor(R.color.hangout_background, null); 204 getResources().getColor(R.color.media_background_dark, null), 205 getResources().getColor(R.color.media_background, null)); 211 int c = getResources().getColor(R.color.phone_background, null); 217 getResources().getColor(R.color.media_icon_foreground, null)); 232 card.setBackgroundColor(getResources().getColor(R.color.weather_blue_sky, null)); 264 getResources().getColor(R.color.phone_background_dark, null), 265 getResources().getColor(R.color.phone_background, null)); 271 int c = getResources().getColor(R.color.phone_background, null);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/suggestions/ |
H A D | SuggestionStripLayoutHelper.java | 181 final int color) { 186 paint.setColor(color); 309 final int color; 312 color = mColorAutoCorrect; 314 color = mColorValidTypedWord; 316 color = mColorTypedWord; 318 color = mColorSuggested; 321 return applyAlpha(color, mAlphaObsoleted); 323 return color; 326 private static int applyAlpha(final int color, fina argument 180 getMoreSuggestionsHint(final Resources res, final float textSize, final int color) argument [all...] |
/packages/apps/Dialer/java/com/android/dialer/app/calllog/ |
H A D | PhoneCallDetailsHelper.java | 122 int color = mCallLogCache.getAccountColor(details.accountHandle); 123 if (color == PhoneAccount.NO_HIGHLIGHT_COLOR) { 124 int defaultColor = R.color.dialer_secondary_text_color; 127 views.callAccountLabel.setTextColor(color); 160 details.isRead ? R.color.call_log_detail_color : R.color.call_log_unread_text_color));
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/state/ |
H A D | StateView.java | 79 mEndsBackgroundColor = res.getColor(R.color.filtershow_stateview_end_background); 80 mEndsTextColor = res.getColor(R.color.filtershow_stateview_end_text); 81 mBackgroundColor = res.getColor(R.color.filtershow_stateview_background); 82 mTextColor = res.getColor(R.color.filtershow_stateview_text); 83 mSelectedBackgroundColor = res.getColor(R.color.filtershow_stateview_selected_background); 84 mSelectedTextColor = res.getColor(R.color.filtershow_stateview_selected_text);
|
/packages/apps/Contacts/src/com/android/contacts/widget/ |
H A D | MultiShrinkScroller.java | 63 * order to track velocity, modify EdgeEffect color & perform the originally specified animations. 167 // Objects used to perform color filtering on the header. These are stored as fields for 563 public void setHeaderTintColor(int color) { argument 564 mHeaderTintColor = color; 567 // Use the same amount of alpha on the new tint color as the previous tint color. 569 mEdgeGlowBottom.setColor((color & 0xffffff) | Color.argb(edgeEffectAlpha, 0, 0, 0)); 1237 * Simulates alpha blending an image with {@param color}. 1239 private ColorMatrix alphaMatrix(float alpha, int color) { argument 1240 mAlphaMatrixValues[0] = Color.red(color) * alph 1255 multiplyBlendMatrix(int color, float alpha) argument 1263 multiplyBlend(int color, float alpha) argument [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/ |
H A D | GLES11Canvas.java | 211 public void fillRect(float x, float y, float width, float height, int color) { argument 212 mGLState.setColorMode(color, mAlpha); 462 float[] color = mTextureColor; 463 color[0] = r; 464 color[1] = g; 465 color[2] = b; 466 color[3] = alpha; 611 // Set the background color 646 public void setColorMode(int color, float alpha) { argument 647 setBlendEnabled(!Utils.isOpaque(color) || alph [all...] |
/packages/apps/Camera2/src/com/android/camera/ui/ |
H A D | ModeSelectorItem.java | 85 public void setDefaultBackgroundColor(int color) { argument 86 setBackgroundColor(color); 211 * Sets the color that will be used in the drawable for highlight state. 213 * @param highlightColor color for the highlight state 220 * @return highlightColor color for the highlight state
|
H A D | ModeIconView.java | 33 * multiple states can be rendered using the same drawable with some color modification, 47 mBackgroundDefaultColor = getResources().getColor(R.color.mode_selector_icon_background); 100 * drawable will use a solid pre-defined color to indicate selection. 116 * Sets the color that will be used in the drawable for highlight state. 118 * @param highlightColor color for the highlight state 125 * @return The highlightColor color the the highlight state.
|
/packages/apps/Contacts/src/com/android/contacts/list/ |
H A D | ContactsUnavailableFragment.java | 79 .color.primary_color), PorterDuff.Mode.SRC_ATOP); 83 R.color.primary_color), PorterDuff.Mode.SRC_ATOP);
|
/packages/apps/DeskClock/src/com/android/deskclock/ringtone/ |
H A D | RingtoneViewHolder.java | 91 final int bgColorId = itemHolder.isSelected() ? R.color.white_08p : R.color.transparent;
|
/packages/apps/DeskClock/src/com/android/deskclock/settings/ |
H A D | SimpleMenuPreference.java | 136 view.setBackgroundColor(ContextCompat.getColor(getContext(), R.color.white_08p)); 138 view.setBackgroundColor(ContextCompat.getColor(getContext(), R.color.transparent));
|
/packages/apps/Dialer/java/com/android/dialer/app/dialpad/ |
H A D | PseudoEmergencyAnimator.java | 64 int color = (int) animator.getAnimatedValue(); 65 ColorFilter colorFilter = new LightingColorFilter(Color.BLACK, color);
|
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/ |
H A D | DirectoryItemAnimator.java | 37 * new Item, this class manually animates a background color change. This enables selected Items to 48 mDefaultColor = context.getResources().getColor(R.color.item_doc_background); 49 mSelectedColor = context.getResources().getColor(R.color.item_doc_background_selected); 117 * Animates changes in background color.
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
H A D | TiledScreenNail.java | 30 // placeholder color (gray). 32 // - When the the bitmap is available, and we have drawn the placeholder color 71 public static void setPlaceholderColor(int color) { argument 72 mPlaceholderColor = color;
|
/packages/apps/Launcher3/src/com/android/launcher3/popup/ |
H A D | PopupItemView.java | 132 public void setBackgroundWithCorners(int color, @RoundedCornerFlags int roundedCorners) { argument 138 roundRectBackground.getPaint().setColor(color);
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/common/ |
H A D | CustomizationVerifier.java | 101 private Drawable makeDefaultLogo(int color) { argument 103 logo.setColorFilter(new PorterDuffColorFilter(color, SRC_ATOP));
|
/packages/apps/Messaging/src/com/android/messaging/ui/conversationlist/ |
H A D | ConversationListItemView.java | 164 mListItemReadColor = resources.getColor(R.color.conversation_list_item_read); 165 mListItemUnreadColor = resources.getColor(R.color.conversation_list_item_unread); 375 int color; 383 color = mListItemReadColor; 387 color = mListItemUnreadColor; 392 mSnippetTextView.setTextColor(color); 394 mSubjectTextView.setTextColor(color); 407 mTimestampTextView.setTextColor(resources.getColor(R.color.conversation_list_error));
|
/packages/apps/PackageInstaller/src/android/support/wearable/view/ |
H A D | ProgressDrawable.java | 89 public void setRingColor(int color) { argument 90 mCircleBorderColor = color;
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/ |
H A D | StorageVolumePreference.java | 51 public StorageVolumePreference(Context context, VolumeInfo volume, int color, long totalBytes) { argument 56 mColor = color;
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/volume/ |
H A D | VolumeAdapter.java | 72 int color = mVolumeList[position].mHasFocus ? Color.GREEN : Color.GRAY; 73 vh.requestButton.setBackgroundColor(color);
|