/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
H A D | ImageCardView.java | 252 // the InfoArea's background color in XML using the corresponding style. 382 * Sets the info area background color. 384 public void setInfoAreaBackgroundColor(@ColorInt int color) { argument 386 mInfoArea.setBackgroundColor(color);
|
H A D | ShadowOverlayHelper.java | 30 * ShadowOverlayHelper is a helper class for shadow, overlay color and rounded corner. 31 * There are many choices to implement Shadow, overlay color. 84 * Set if needs overlay color. 127 * Set if not using foreground drawable for overlay color. For example if 129 * When it's true, helper will use a ShadowOverlayContainer for overlay color. 360 * Set overlay color for view other than ShadowOverlayContainer. 363 public static void setNoneWrapperOverlayColor(View view, int color) { argument 366 ((ColorDrawable) d).setColor(color); 368 ForegroundHelper.getInstance().setForeground(view, new ColorDrawable(color)); 373 * Set overlay color fo 376 setOverlayColor(View view, int color) argument [all...] |
/frameworks/support/v4/api24/android/support/v4/app/ |
H A D | NotificationCompatApi24.java | 58 String category, ArrayList<String> people, Bundle extras, int color, 94 .setColor(color) 52 Builder(Context context, Notification n, CharSequence contentTitle, CharSequence contentText, CharSequence contentInfo, RemoteViews tickerView, int number, PendingIntent contentIntent, PendingIntent fullScreenIntent, Bitmap largeIcon, int progressMax, int progress, boolean progressIndeterminate, boolean showWhen, boolean useChronometer, int priority, CharSequence subText, boolean localOnly, String category, ArrayList<String> people, Bundle extras, int color, int visibility, Notification publicVersion, String groupKey, boolean groupSummary, String sortKey, CharSequence[] remoteInputHistory, RemoteViews contentView, RemoteViews bigContentView, RemoteViews headsUpContentView) argument
|
/frameworks/support/v4/java/android/support/v4/view/ |
H A D | PagerTabStrip.java | 127 * Set the color of the tab indicator bar. 129 * @param color Color to set as an 0xRRGGBB value. The high byte (alpha) is ignored. 131 public void setTabIndicatorColor(@ColorInt int color) { argument 132 mIndicatorColor = color; 138 * Set the color of the tab indicator bar from a color resource. 140 * @param resId Resource ID of a color resource to load 147 * @return The current tab indicator color as an 0xRRGGBB value. 179 public void setBackgroundColor(@ColorInt int color) { argument 180 super.setBackgroundColor(color); [all...] |
/frameworks/support/v4/java/android/support/v4/widget/ |
H A D | SwipeProgressBar.java | 79 * Set the four colors used in the progress animation. The first color will 80 * also be the color of the bar that grows in response to a user swipe 83 * @param color1 Integer representation of a color. 84 * @param color2 Integer representation of a color. 85 * @param color3 Integer representation of a color. 86 * @param color4 Integer representation of a color. 180 // First fill in with the last color that would have finished drawing. 254 * @param color the color to draw 257 private void drawCircle(Canvas canvas, float cx, float cy, int color, floa argument [all...] |
/frameworks/support/v4/tests/java/android/support/v4/graphics/ |
H A D | ColorUtilsTest.java | 181 private static void verifyMinAlpha(String title, int color, float expected, int actual) { argument 182 final String message = title + " text within error for #" + Integer.toHexString(color); 190 private static void verifyColorToHSL(int color, float[] expected) { argument 192 ColorUtils.colorToHSL(color, actualHSL); 213 private static void verifyColorToLAB(int color, double[] expected) { argument 215 ColorUtils.colorToLAB(color, result); 222 private static void verifyColorToXYZ(int color, double[] expected) { argument 224 ColorUtils.colorToXYZ(color, result);
|
/frameworks/support/v7/cardview/api21/android/support/v7/widget/ |
H A D | RoundRectDrawable.java | 64 private void setBackground(ColorStateList color) { argument 65 mBackground = (color == null) ? ColorStateList.valueOf(Color.TRANSPARENT) : color; 158 public void setColor(@Nullable ColorStateList color) { argument 159 setBackground(color); 202 * Ensures the tint filter is consistent with the current tint color and 209 final int color = tint.getColorForState(getState(), Color.TRANSPARENT); 210 return new PorterDuffColorFilter(color, tintMode);
|
/frameworks/support/v7/cardview/src/android/support/v7/widget/ |
H A D | CardView.java | 227 // If the theme colorBackground is light, use our own light color, otherwise dark 231 ? getResources().getColor(R.color.cardview_light_background) 232 : getResources().getColor(R.color.cardview_dark_background)); 272 * Updates the background color of the CardView 274 * @param color The new color to set for the card background 277 public void setCardBackgroundColor(@ColorInt int color) { argument 278 IMPL.setBackgroundColor(mCardViewDelegate, ColorStateList.valueOf(color)); 284 * @param color The new ColorStateList to set for the card background 287 public void setCardBackgroundColor(@Nullable ColorStateList color) { argument [all...] |
/frameworks/base/core/java/android/hardware/camera2/ |
H A D | DngCreator.java | 153 * Pixel data will be converted to a Baseline TIFF RGB image, with 8 bits per color channel. 295 * The pixel layout in the input is determined from the reported color filter arrangement (CFA) 345 * The pixel layout in the input is determined from the reported color filter arrangement (CFA) 519 private static void colorToRgb(int color, int outOffset, /*out*/byte[] rgbOut) { argument 520 rgbOut[outOffset] = (byte) Color.red(color); 521 rgbOut[outOffset + 1] = (byte) Color.green(color); 522 rgbOut[outOffset + 2] = (byte) Color.blue(color);
|
/frameworks/base/core/java/android/view/ |
H A D | NotificationHeaderView.java | 269 public void setOriginalIconColor(int color) { argument 270 mIconColor = color; 278 public void setOriginalNotificationColor(int color) { argument 279 mOriginalNotificationColor = color;
|
/frameworks/base/core/java/android/widget/ |
H A D | CalendarView.java | 154 * Sets the background color for the selected week. 156 * @param color The week background color. 162 public void setSelectedWeekBackgroundColor(@ColorInt int color) { argument 163 mDelegate.setSelectedWeekBackgroundColor(color); 167 * Gets the background color for the selected week. 169 * @return The week background color. 181 * Sets the color for the dates of the focused month. 183 * @param color The focused month date color 189 setFocusedMonthDateColor(@olorInt int color) argument 216 setUnfocusedMonthDateColor(@olorInt int color) argument 243 setWeekNumberColor(@olorInt int color) argument 270 setWeekSeparatorLineColor(@olorInt int color) argument 568 setSelectedWeekBackgroundColor(@olorInt int color) argument 571 setFocusedMonthDateColor(@olorInt int color) argument 574 setUnfocusedMonthDateColor(@olorInt int color) argument 577 setWeekNumberColor(@olorInt int color) argument 580 setWeekSeparatorLineColor(@olorInt int color) argument 655 setSelectedWeekBackgroundColor(@olorInt int color) argument 666 setFocusedMonthDateColor(@olorInt int color) argument 677 setUnfocusedMonthDateColor(@olorInt int color) argument 688 setWeekNumberColor(@olorInt int color) argument 700 setWeekSeparatorLineColor(@olorInt int color) argument [all...] |
/frameworks/base/libs/hwui/ |
H A D | GlopBuilder.cpp | 234 void GlopBuilder::setFill(int color, float alphaScale, argument 238 float alpha = (SkColorGetA(color) / 255.0f) * alphaScale; 241 mOutGlop->fill.color = { 242 colorScale * SkColorGetR(color), 243 colorScale * SkColorGetG(color), 244 colorScale * SkColorGetB(color), 248 mOutGlop->fill.color = { 1, 1, 1, alpha }; 251 mOutGlop->fill.color = { 0, 0, 0, 1 }; 255 if (mOutGlop->fill.color.a < 1.0f 285 SkColor color; local 335 int color = paint->getColor(); local [all...] |
/frameworks/base/packages/EasterEgg/src/com/android/egg/neko/ |
H A D | Cat.java | 113 public static void tint(int color, Drawable ... ds) { argument 116 d.mutate().setTint(color); 121 public static boolean isDark(int color) { argument 122 final int r = (color & 0xFF0000) >> 16; 123 final int g = (color & 0x00FF00) >> 8; 124 final int b = color & 0x0000FF; 137 // body color
|
/frameworks/base/packages/Keyguard/src/com/android/keyguard/ |
H A D | KeyguardHostView.java | 174 public void showMessage(String message, int color) { argument 175 mSecurityContainer.showMessage(message, color);
|
H A D | KeyguardPatternView.java | 360 public void showMessage(String message, int color) { argument 361 mSecurityMessageDisplay.setNextMessageColor(color);
|
H A D | KeyguardSecurityContainer.java | 530 public void showMessage(String message, int color) { argument 532 getSecurityView(mCurrentSecuritySelection).showMessage(message, color);
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/drawable/ |
H A D | UserIconDrawable.java | 211 public void setFrameColor(int color) { argument 213 mFramePaint.setColor(color); 241 int color = mTintColor.getColorForState(getState(), mTintColor.getDefaultColor()); 243 mPaint.setColorFilter(new PorterDuffColorFilter(color, mTintMode)); 246 ((PorterDuffColorFilter) mPaint.getColorFilter()).setColor(color);
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/graph/ |
H A D | UsageGraph.java | 90 mDottedPaint.setColor(context.getColor(R.color.usage_graph_dots)); 126 void setAccentColor(int color) { argument 127 mAccentColor = color; 196 private int getColor(int color, float alphaScale) { argument 197 return (color & (((int) (0xff * alphaScale) << 24) | 0xffffff));
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | BarTransitions.java | 166 mOpaque = context.getColor(R.color.system_bar_background_opaque); 168 com.android.internal.R.color.system_bar_background_semi_transparent); 169 mTransparent = context.getColor(R.color.system_bar_background_transparent); 170 mWarning = context.getColor(com.android.internal.R.color.battery_saver_mode_color); 186 public void setTint(int color) { argument 188 mTintFilter = new PorterDuffColorFilter(color, PorterDuff.Mode.SRC_IN); 190 mTintFilter.setColor(color);
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/common/ |
H A D | Utils.java | 119 public static boolean isOpaque(int color) { argument 120 return color >>> 24 == 0xFF;
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/ |
H A D | GLCanvas.java | 89 // Fills the specified rectangle with the specified color. 90 public abstract void fillRect(float x, float y, float width, float height, int color); argument 112 // Draw a region of a texture and a specified color to the specified 113 // rectangle. The actual color used is from * (1 - ratio) + to * ratio.
|
/frameworks/base/tools/aapt2/ |
H A D | ResourceUtils.cpp | 494 // Try parsing this as a color. 495 std::unique_ptr<BinaryPrimitive> color = tryParseColor(value); local 496 if (color) { 497 return std::move(color);
|
/frameworks/data-binding/extensions/baseAdapters/src/main/java/android/databinding/adapters/ |
H A D | TextViewBindingAdapter.java | 282 public static void setShadowColor(TextView view, int color) { argument 287 view.setShadowLayer(r, dx, dy, color); 294 int color = view.getShadowColor(); 297 view.setShadowLayer(r, dx, dy, color); 304 int color = view.getShadowColor(); 307 view.setShadowLayer(r, dx, dy, color); 314 int color = view.getShadowColor(); 317 view.setShadowLayer(r, dx, dy, color);
|
/frameworks/ex/framesequence/jni/ |
H A D | FrameSequence_gif.cpp | 31 static Color8888 gifColorToColor8888(const GifColorType& color) { argument 32 return ARGB_TO_COLOR8888(0xff, color.Red, color.Green, color.Blue); 109 ALOGD(" Frame %d - must preserve %d, restore point %d, trans color %d", 115 // calculate bg color 157 static void setLineColor(Color8888* dst, Color8888 color, int width) { argument 159 *dst = color; 311 ALOGW("Warning: potentially corrupt color map");
|
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/ |
H A D | StyledCornersBitmapDrawable.java | 121 * Set the border stroke color of this drawable. Set to {@link Color#TRANSPARENT} to disable. 123 public void setBorderColor(final int color) { argument 124 final boolean changed = mBorderPaint.getColor() != color; 125 mBorderPaint.setColor(color); 147 * Get the flap color for all corners that have style {@link #CORNER_STYLE_SHARP}. 154 * Set the flap color for all corners that have style {@link #CORNER_STYLE_SHARP}. 168 * Get the color of the scrim that is drawn over the contents, but under the flaps and borders. 175 * Set the color of the scrim that is drawn over the contents, but under the flaps and borders. 179 public void setScrimColor(int color) { argument 180 boolean changed = mScrimColor != color; 207 setCompatibilityModeBackgroundColor(int color) argument [all...] |