Searched defs:color (Results 1 - 25 of 328) sorted by relevance

1234567891011>>

/frameworks/base/libs/hwui/tests/common/scenes/
H A DPartialDamageAnimation.cpp40 SkColor color = COLORS[static_cast<int>((y / dp(116))) % 4]; variable
43 [color](RenderProperties& props, Canvas& canvas) {
44 canvas.drawColor(color, SkBlendMode::kSrcOver);
58 SkColor color = TestUtils::interpolateColor(curFrame / 150.0f, 0xFFF44336, 0xFFF8BBD0);
59 canvas.drawColor(color, SkBlendMode::kSrcOver);
H A DRoundRectClippingAnimation.cpp35 auto color = BrightColors[ci++ % BrightColorsCount]; variable
38 canvas.drawColor(color, SkBlendMode::kSrcOver);
H A DBitmapFillrate.cpp56 void createNode(Canvas& canvas, SkColor color, int left, int top, int width, int height) { argument
61 [this, itemWidth, itemHeight, color](RenderProperties& props, Canvas& canvas) {
64 [color](SkBitmap& skBitmap) { skBitmap.eraseColor(color); });
/frameworks/data-binding/extensions/baseAdapters/src/main/java/android/databinding/adapters/
H A DConverters.java24 public static ColorDrawable convertColorToDrawable(int color) { argument
25 return new ColorDrawable(color);
29 public static ColorStateList convertColorToColorStateList(int color) { argument
30 return ColorStateList.valueOf(color);
/frameworks/base/graphics/java/android/graphics/drawable/
H A DPaintDrawable.java35 public PaintDrawable(int color) { argument
36 getPaint().setColor(color);
/frameworks/base/libs/hwui/
H A DFloatColor.h29 // "color" is a gamma-encoded sRGB color
30 // After calling this method, the color is stored as a pre-multiplied linear color
31 // if linear blending is enabled. Otherwise, the color is stored as a pre-multiplied
32 // gamma-encoded sRGB color
33 void set(uint32_t color) { argument
34 a = ((color >> 24) & 0xff) / 255.0f;
35 r = a * EOCF(((color >> 16) & 0xff) / 255.0f);
36 g = a * EOCF(((color >>
44 setUnPreMultiplied(uint32_t color) argument
[all...]
/frameworks/base/libs/hwui/tests/unit/
H A DBakedOpRendererTests.cpp58 static void drawFirstOp(RenderState& renderState, int color, SkBlendMode mode) { argument
63 paint.setColor(color);
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
H A DSecurityMessageDisplay.java21 void setNextMessageColor(int color); argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/car/
H A DCarStatusBarHeader.java53 private void applyDarkness(@IdRes int id, Rect tintArea, float intensity, int color) { argument
56 ((DarkIconDispatcher.DarkReceiver) v).onDarkChanged(tintArea, intensity, color);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DStatusIconDisplayable.java23 void setStaticDrawableColor(int color); argument
24 void setDecorColor(int color); argument
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/
H A DGLPaint.java25 public void setColor(int color) { argument
26 mColor = color;
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DMultiLayersActivity.java62 public LayerView(Context context, int color) { argument
65 mPaint.setColor(color);
/frameworks/native/services/surfaceflinger/
H A DLayerProtoHelper.cpp47 void LayerProtoHelper::writeToProto(const half4 color, ColorProto* colorProto) { argument
48 colorProto->set_r(color.r);
49 colorProto->set_g(color.g);
50 colorProto->set_b(color.b);
51 colorProto->set_a(color.a);
/frameworks/opt/colorpicker/src/com/android/colorpicker/
H A DColorStateDrawable.java25 * A drawable which sets its color filter to a color specified by the user, and changes to a
26 * slightly darker color when pressed or focused.
34 public ColorStateDrawable(Drawable[] layers, int color) { argument
36 mColor = color;
59 * Given a particular color, adjusts its value by a multiplier.
61 private static int getPressedColor(int color) { argument
63 Color.colorToHSV(color, hsv);
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/template/
H A DColoredHeaderMixin.java43 // Set the header color
54 * Sets the color of the header text. This can also be set via XML using
57 * @param color The text color of the header.
59 public void setColor(ColorStateList color) { argument
62 titleView.setTextColor(color);
67 * @return The current text color of the header.
H A DProgressBarMixin.java109 * Sets the color of the indeterminate progress bar. This method is a no-op on SDK < 21.
111 public void setColor(@Nullable ColorStateList color) { argument
112 mColor = color;
116 bar.setIndeterminateTintList(color);
117 if (Build.VERSION.SDK_INT >= VERSION_CODES.M || color != null) {
118 // There is a bug in Lollipop where setting the progress tint color to null
124 bar.setProgressBackgroundTintList(color);
131 * @return The color previously set in {@link #setColor(ColorStateList)}, or null if the color
132 * is not set. In case of null, the color o
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/
H A DTextAttribute.java34 public TextColor color; field in class:TextAttribute
38 boolean strikeThrough, TextColor color) {
47 this.color = color;
36 TextAttribute(int start, int length, TextAlignment align, FontSize size, boolean bold, boolean italic, boolean underlined, boolean strikeThrough, TextColor color) argument
/frameworks/rs/driver/
H A DrsdFrameBuffer.cpp49 // Now attach color targets
51 DrvAllocation *color = nullptr; local
53 color = (DrvAllocation *)fb->mHal.state.colorTargets[i]->mHal.drv;
55 if (color->uploadDeferred) {
60 fbo->setColorTarget(color, i);
/frameworks/rs/driver/runtime/
H A Drs_convert.c66 float4 color = (float)y * 0.003921569f; local
70 color += fU * yuv_U_values;
71 color += fV * yuv_V_values;
72 color = clamp(color, 0.f, 1.f);
73 return color;
/frameworks/support/leanback/src/main/java/androidx/leanback/graphics/
H A DColorFilterCache.java23 * Cache of {@link ColorFilter}s for a given color at different alpha levels.
33 * Get a ColorDimmer for a given color. Only the RGB values are used; the
34 * alpha channel is ignored in color. Subsequent calls to this method
35 * with the same color value will return the same cache.
37 * @param color The color to use for the color filters.
38 * @return A cache of ColorFilters at different alpha levels for the color.
40 public static ColorFilterCache getColorFilterCache(int color) { argument
41 final int r = Color.red(color);
[all...]
/frameworks/support/v7/appcompat/src/androidTest/java/androidx/appcompat/widget/
H A DAppCompatBaseImageViewTest.java55 @ColorInt int color, int allowedComponentVariance) {
59 true, color, allowedComponentVariance, false);
74 @ColorInt int lilacDefault = ResourcesCompat.getColor(res, R.color.lilac_default, null);
75 @ColorInt int lilacDisabled = ResourcesCompat.getColor(res, R.color.lilac_disabled, null);
76 @ColorInt int sandDefault = ResourcesCompat.getColor(res, R.color.sand_default, null);
77 @ColorInt int sandDisabled = ResourcesCompat.getColor(res, R.color.sand_disabled, null);
78 @ColorInt int oceanDefault = ResourcesCompat.getColor(res, R.color.ocean_default, null);
79 @ColorInt int oceanDisabled = ResourcesCompat.getColor(res, R.color.ocean_disabled, null);
86 // in the default color state list.
92 // in the default color stat
54 verifyImageSourceIsColoredAs(String description, @NonNull ImageView imageView, @ColorInt int color, int allowedComponentVariance) argument
[all...]
/frameworks/wilhelm/src/itf/
H A DILEDArray.cpp63 SLHSL color = *pColor; local
64 if (!(0 <= color.hue && color.hue <= 360000))
66 if (!(0 <= color.saturation && color.saturation <= 1000))
68 if (!(0 <= color.lightness && color.lightness <= 1000))
73 thiz->mColors[index] = color;
92 SLHSL color = thiz->mColors[index]; local
94 *pColor = color;
114 SLHSL *color = thiz->mColors; local
[all...]
/frameworks/base/core/java/android/text/
H A DTextPaint.java97 * @param color underline solid color
101 public void setUnderlineText(int color, float thickness) { argument
102 underlineColor = color;
111 if (underlineColor != 0) { // Return custom thickness only if underline color is set.
/frameworks/base/core/java/android/text/style/
H A DBackgroundColorSpan.java27 * Changes the background color of the text to which the span is attached.
29 * For example, to set a green background color for a text you would create a {@link
32 * SpannableString string = new SpannableString("Text with a background color span");
33 *string.setSpan(new BackgroundColorSpan(color), 12, 28, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);}</pre>
35 * <figcaption>Set a background color for the text.</figcaption>
43 * Creates a {@link BackgroundColorSpan} from a color integer.
46 * @param color color integer that defines the background color
49 public BackgroundColorSpan(@ColorInt int color) { argument
[all...]
H A DForegroundColorSpan.java27 * Changes the color of the text to which the span is attached.
29 * For example, to set a green text color you would create a {@link
32 * SpannableString string = new SpannableString("Text with a foreground color span");
33 *string.setSpan(new ForegroundColorSpan(color), 12, 28, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);}</pre>
35 * <figcaption>Set a text color.</figcaption>
43 * Creates a {@link ForegroundColorSpan} from a color integer.
45 * To get the color integer associated with a particular color resource ID, use
48 * @param color color intege
50 ForegroundColorSpan(@olorInt int color) argument
[all...]

Completed in 205 milliseconds

1234567891011>>