/frameworks/base/libs/hwui/tests/common/scenes/ |
H A D | PartialDamageAnimation.cpp | 44 SkColor color = COLORS[static_cast<int>((y / dp(116))) % 4]; variable 47 [color](RenderProperties& props, Canvas& canvas) { 48 canvas.drawColor(color, SkBlendMode::kSrcOver); 62 SkColor color = TestUtils::interpolateColor( 64 canvas.drawColor(color, SkBlendMode::kSrcOver);
|
H A D | RoundRectClippingAnimation.cpp | 37 auto color = BrightColors[ci++ % BrightColorsCount]; variable 40 canvas.drawColor(color, SkBlendMode::kSrcOver);
|
H A D | BitmapFillrate.cpp | 56 void createNode(Canvas& canvas, SkColor color, int left, int top, argument 61 [this, itemWidth, itemHeight, color](RenderProperties& props, Canvas& canvas) { 63 [color](SkBitmap& skBitmap) { 64 skBitmap.eraseColor(color);
|
/frameworks/data-binding/extensions/baseAdapters/src/main/java/android/databinding/adapters/ |
H A D | Converters.java | 24 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/support/design/tests/src/android/support/design/testutils/ |
H A D | CollapsingToolbarLayoutActions.java | 31 public static ViewAction setContentScrimColor(@ColorInt final int color) { argument 40 return "Set the content scrim to a color"; 47 ctl.setContentScrimColor(color);
|
H A D | TestDrawable.java | 34 public TestDrawable(@ColorInt int color, int width, int height) { argument 35 super(Orientation.TOP_BOTTOM, new int[] { color, color });
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | PaintDrawable.java | 35 public PaintDrawable(int color) { argument 36 getPaint().setColor(color);
|
/frameworks/base/libs/hwui/ |
H A D | FloatColor.h | 29 // "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/packages/SystemUI/src/com/android/keyguard/ |
H A D | SecurityMessageDisplay.java | 21 void setNextMessageColor(int color); argument
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/ |
H A D | GLPaint.java | 25 public void setColor(int color) { argument 26 mColor = color;
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | MultiLayersActivity.java | 62 public LayerView(Context context, int color) { argument 65 mPaint.setColor(color);
|
/frameworks/base/tools/layoutlib/bridge/tests/res/testApp/MyApplication/build/intermediates/classes/debug/com/android/layoutlib/test/myapplication/ |
H A D | R$color.class | ... android.layoutlib.test.myapplication.R$color extends java.lang.Object {
public static final int ... |
/frameworks/opt/colorpicker/src/com/android/colorpicker/ |
H A D | ColorStateDrawable.java | 25 * 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 D | ColoredHeaderMixin.java | 43 // 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 D | ProgressBarMixin.java | 109 * 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 D | TextAttribute.java | 34 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 D | rsdFrameBuffer.cpp | 49 // 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 D | rs_convert.c | 66 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/v17/leanback/src/android/support/v17/leanback/graphics/ |
H A D | ColorFilterCache.java | 23 * 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/tests/src/android/support/v7/widget/ |
H A D | AppCompatBaseImageViewTest.java | 53 @ColorInt int color, int allowedComponentVariance) { 57 true, color, allowedComponentVariance, false); 72 @ColorInt int lilacDefault = ResourcesCompat.getColor(res, R.color.lilac_default, null); 73 @ColorInt int lilacDisabled = ResourcesCompat.getColor(res, R.color.lilac_disabled, null); 74 @ColorInt int sandDefault = ResourcesCompat.getColor(res, R.color.sand_default, null); 75 @ColorInt int sandDisabled = ResourcesCompat.getColor(res, R.color.sand_disabled, null); 76 @ColorInt int oceanDefault = ResourcesCompat.getColor(res, R.color.ocean_default, null); 77 @ColorInt int oceanDisabled = ResourcesCompat.getColor(res, R.color.ocean_disabled, null); 84 // in the default color state list. 90 // in the default color stat 52 verifyImageSourceIsColoredAs(String description, @NonNull ImageView imageView, @ColorInt int color, int allowedComponentVariance) argument [all...] |
/frameworks/wilhelm/src/itf/ |
H A D | ILEDArray.cpp | 63 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 D | TextPaint.java | 78 * @param color underline solid color 82 public void setUnderlineText(int color, float thickness) { argument 83 underlineColor = color;
|
/frameworks/base/core/java/android/text/style/ |
H A D | BackgroundColorSpan.java | 29 public BackgroundColorSpan(int color) { argument 30 mColor = color;
|
H A D | ForegroundColorSpan.java | 30 public ForegroundColorSpan(@ColorInt int color) { argument 31 mColor = color;
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | PorterDuffColorFilter.java | 23 * A color filter that can be used to tint the source pixels using a single 24 * color and a specific {@link PorterDuff Porter-Duff composite mode}. 32 * Create a color filter that uses the specified color and Porter-Duff mode. 34 * @param color The ARGB source color used with the specified Porter-Duff mode 41 public PorterDuffColorFilter(@ColorInt int color, @NonNull PorterDuff.Mode mode) { argument 42 mColor = color; 47 * Returns the ARGB color used to tint the source pixels when this filter 61 * Specifies the color t 72 setColor(@olorInt int color) argument [all...] |