Searched defs:color (Results 126 - 150 of 236) sorted by relevance

12345678910

/frameworks/support/customtabs/src/android/support/customtabs/
H A DCustomTabsIntent.java56 * Extra that changes the background color for the toolbar. colorRes is an int that specifies a
108 * Extra that changes the background color for the secondary toolbar. The value should be an
287 * Sets the toolbar color.
289 * @param color {@link Color}
291 public Builder setToolbarColor(@ColorInt int color) { argument
292 mIntent.putExtra(EXTRA_TOOLBAR_COLOR, color);
423 * Sets the color of the secondary toolbar.
424 * @param color The color for the secondary toolbar.
426 public Builder setSecondaryToolbarColor(@ColorInt int color) { argument
[all...]
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DPlaybackControlsPresenter.java231 public void setProgressColor(ViewHolder vh, @ColorInt int color) { argument
232 Drawable drawable = new ClipDrawable(new ColorDrawable(color),
H A DPlaybackControlsRowPresenter.java233 * Sets the background color. If not set, a default from the theme will be used.
235 public void setBackgroundColor(@ColorInt int color) { argument
236 mBackgroundColor = color;
241 * Returns the background color. If no background color was set, transparent
250 * Sets the primary color for the progress bar. If not set, a default from
253 public void setProgressColor(@ColorInt int color) { argument
254 mProgressColor = color;
259 * Returns the primary color for the progress bar. If no color wa
[all...]
H A DSearchOrbView.java39 * The background color and icon can be customized.
64 * Constructs a color set using the given color for the search orb.
67 * @param color The main search orb color.
69 public Colors(@ColorInt int color) { argument
70 this(color, color);
74 * Constructs a color set using the given colors for the search orb.
77 * @param color Th
80 Colors(@olorInt int color, @ColorInt int brightColor) argument
91 Colors(@olorInt int color, @ColorInt int brightColor, @ColorInt int iconColor) argument
101 public int color; field in class:SearchOrbView.Colors
118 getBrightColor(int color) argument
288 setOrbColor(int color) argument
298 setOrbColor(@olorInt int color, @ColorInt int brightColor) argument
362 setOrbViewColor(int color) argument
[all...]
H A DStreamingTextView.java138 R.color.lb_search_plate_hint_text_color);
199 private void addColorSpan(SpannableStringBuilder displayText, int color, String text, argument
201 ForegroundColorSpan span = new ForegroundColorSpan(color);
/frameworks/support/v4/api21/android/support/v4/app/
H A DNotificationCompatApi21.java69 String category, ArrayList<String> people, Bundle extras, int color,
104 .setColor(color)
63 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, RemoteViews contentView, RemoteViews bigContentView, RemoteViews headsUpContentView) argument
/frameworks/support/v4/java/android/support/v4/graphics/
H A DColorUtils.java27 * A set of color-related utility methods, building upon those available in {@code Color}.
72 * Returns the luminance of a color as a float between {@code 0.0} and {@code 1.0}.
73 * <p>Defined as the Y component in the XYZ representation of {@code color}.</p>
76 public static double calculateLuminance(@ColorInt int color) { argument
78 colorToXYZ(color, result);
112 * @param foreground the foreground color
113 * @param background the opaque background color
210 * Convert the ARGB color to its HSL (hue-saturation-lightness) components.
217 * @param color the ARGB color t
220 colorToHSL(@olorInt int color, @NonNull float[] outHsl) argument
295 setAlphaComponent(@olorInt int color, @IntRange(from = 0x0, to = 0xFF) int alpha) argument
309 colorToLAB(@olorInt int color, @NonNull double[] outLab) argument
352 colorToXYZ(@olorInt int color, @NonNull double[] outXyz) argument
[all...]
/frameworks/support/v4/java/android/support/v4/view/
H A DPagerTitleStrip.java203 * Set the color value used as the base color for all displayed page titles.
206 * @param color Color hex code in 0xAARRGGBB format
208 public void setTextColor(@ColorInt int color) { argument
209 mTextColor = color;
210 mCurrText.setTextColor(color);
/frameworks/support/v7/appcompat/src/android/support/v7/app/
H A DAppCompatActivity.java207 protected void onTitleChanged(CharSequence title, int color) { argument
208 super.onTitleChanged(title, color);
/frameworks/support/v7/appcompat/src/android/support/v7/graphics/drawable/
H A DDrawerArrowDrawable.java106 // Use Path instead of canvas operations so that if color has transparency, overlapping sections
208 * Sets the color of the drawable.
210 public void setColor(@ColorInt int color) { argument
211 if (color != mPaint.getColor()) {
212 mPaint.setColor(color);
218 * Returns the color of the drawable.
/frameworks/support/v7/appcompat/tests/src/android/support/v7/app/
H A DAlertDialogTest.java716 // And check that it's the expected red color
748 // And check that it's the expected (newly set) green color
779 // And check that it's the expected (newly set) green color
832 // And check that it's the expected red color
864 // And check that it's the expected (newly set) green color
895 // And check that it's the expected (newly set) green color
1328 public TestDrawable(@ColorInt int color, int width, int height) { argument
1329 super(color);
/frameworks/support/v7/cardview/eclair-mr1/android/support/v7/widget/
H A DRoundRectDrawableWithShadow.java95 mShadowStartColor = resources.getColor(R.color.cardview_shadow_start_color);
96 mShadowEndColor = resources.getColor(R.color.cardview_shadow_end_color);
109 private void setBackground(ColorStateList color) { argument
110 mBackground = (color == null) ? ColorStateList.valueOf(Color.TRANSPARENT) : color;
380 void setColor(@Nullable ColorStateList color) { argument
381 setBackground(color);
/frameworks/support/v7/palette/src/main/java/android/support/v7/graphics/
H A DColorCutQuantizer.java32 * An color quantizer based on the Median-cut algorithm, but optimized for picking out distinct
35 * The color space is represented as a 3-dimensional cube with each dimension being an RGB
36 * component. The cube is then repeatedly divided until we have reduced the color space to the
37 * requested number of colors. An average color is then generated from each cube.
40 * have roughly the same population, where this quantizer divides boxes based on their color volume.
41 * This means that the color space is divided into distinct colors, rather than representative
90 for (int color = 0; color < hist.length; color++) {
91 if (hist[color] >
434 shouldIgnoreColor(Swatch color) argument
462 quantizeFromRgb888(int color) argument
478 approximateToRgb888(int color) argument
485 quantizedRed(int color) argument
492 quantizedGreen(int color) argument
499 quantizedBlue(int color) argument
[all...]
/frameworks/base/core/java/android/widget/
H A DDatePickerCalendarDelegate.java129 // color from the header month text appearance. If it's set, we'll let
130 // that override the "real" header text color.
189 * The legacy text color might have been poorly defined. Ensures that it
191 * exists or modifying the default text color otherwise.
193 * @param color a legacy text color, or {@code null}
194 * @return a color state list with an appropriate activated state, or
198 private ColorStateList applyLegacyColorFixes(@Nullable ColorStateList color) { argument
199 if (color == null || color
229 multiplyAlphaComponent(int color, float alphaMod) argument
[all...]
/frameworks/base/core/java/com/android/internal/util/
H A DNotificationColorUtil.java81 * @return True if the bitmap is grayscale; false if it is color or too large to examine.
119 * @return True if the bitmap is grayscale; false if it is color or too large to examine.
158 * @return True if the bitmap is grayscale; false if it is color or too large to examine.
178 * @return The color inverted text.
206 // Allocate a new array so we don't change the colors in the old color state
225 private int processColor(int color) { argument
226 return Color.argb(Color.alpha(color),
227 255 - Color.red(color),
228 255 - Color.green(color),
229 255 - Color.blue(color));
242 findContrastColor(int color, int other, boolean findFg, double minRatio) argument
274 ensureLargeTextContrast(int color, int bg) argument
282 ensureTextContrast(int color, int bg) argument
289 ensureTextBackgroundColor(int color, int textColor, int hintColor) argument
303 resolveColor(Context context, int color) argument
392 calculateLuminance(@olorInt int color) argument
429 colorToLAB(@olorInt int color, @NonNull double[] outLab) argument
472 colorToXYZ(@olorInt int color, @NonNull double[] outXyz) argument
[all...]
/frameworks/base/libs/hwui/
H A DOpenGLRenderer.h181 void drawColor(int color, SkXfermode::Mode mode);
269 void drawScreenSpaceColorRect(float left, float top, float right, float bottom, int color) { argument
276 drawColorRect(left, top, right, bottom, color, SkXfermode::kSrcOver_Mode, true);
570 * Draws a colored rectangle with the specified color. The specified coordinates
578 * @param paint The paint containing the color, blending mode, etc.
585 * Draws a series of colored rectangles with the specified color. The specified
591 * @param paint The paint containing the color, blending mode, etc.
H A DRecordedOp.h262 ColorOp(const ClipBase* localClip, int color, SkXfermode::Mode mode) argument
264 , color(color)
266 const int color; member in struct:android::uirenderer::ColorOp
H A DVectorDrawable.cpp184 ALOGD("stroke width, color, alpha: %f, %d, %f, fill color, alpha: %d, %f",
190 inline SkColor applyAlpha(SkColor color, float alpha) { argument
191 int alphaBytes = SkColorGetA(color);
192 return SkColorSetA(color, alphaBytes * alpha);
199 // Draw path's fill, if fill color or gradient is valid
220 // Draw path's stroke, if stroke color or Gradient is valid
279 LOG_ALWAYS_FATAL("Error setting color property on FullPath: No valid property"
527 // Update the given paint with alpha and color filter. Return nullptr if no color filte
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
H A DTaskViewHeader.java74 * A color drawable that draws a slight highlight at the top to help it stand out.
90 public void setColorAndDim(int color, float dimAlpha) { argument
91 if (mColor != color || Float.compare(mDimAlpha, dimAlpha) != 0) {
92 mColor = color;
94 mBackgroundPaint.setColor(color);
96 ColorUtils.colorToHSL(color, mTmpHSL);
97 // TODO: Consider using the saturation of the color to adjust the lightness as well
206 mTaskBarViewLightTextColor = context.getColor(R.color.recents_task_bar_light_text_color);
207 mTaskBarViewDarkTextColor = context.getColor(R.color.recents_task_bar_dark_text_color);
215 context.getColor(R.color
429 updateBackgroundColor(int color, float dimAlpha) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DStatusBarIconController.java137 mDarkModeIconColorSingleTone = context.getColor(R.color.dark_mode_icon_color_single_tone);
138 mLightModeIconColorSingleTone = context.getColor(R.color.light_mode_icon_color_single_tone);
480 * @return the tint to apply to {@param view} depending on the desired tint {@param color} and
483 public static int getTint(Rect tintArea, View view, int color) { argument
485 return color;
H A DStatusBarKeyguardViewManager.java576 public void showBouncerMessage(String message, int color) { argument
577 mBouncer.showMessage(message, color);
/frameworks/base/services/core/java/com/android/server/display/
H A DOverlayDisplayAdapter.java313 public void requestColorTransformAndModeInTransactionLocked(int color, int id) { argument
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DBitmap_Delegate.java344 /*package*/ static void nativeErase(long nativeBitmap, int color) { argument
355 g.setColor(new java.awt.Color(color, true));
425 /*package*/ static void nativeSetPixel(long nativeBitmap, int x, int y, int color) { argument
431 delegate.getImage().setRGB(x, y, color);
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/graphics/
H A DNopCanvas.java118 public void drawColor(int color) { argument
122 public void drawColor(int color, Mode mode) { argument
/frameworks/native/libs/gui/tests/
H A DCpuConsumer_test.cpp247 uint8_t color = ((blockX % colorVariations) + (blockY % colorVariations)) local
250 return color;

Completed in 663 milliseconds

12345678910