Searched refs:color (Results 101 - 125 of 413) sorted by relevance

1234567891011>>

/frameworks/opt/bitmap/src/com/android/bitmap/drawable/
H A DStyledCornersBitmapDrawable.java121 * 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...]
H A DCircularBitmapDrawable.java81 * Set the border stroke color of this drawable. Set to {@link Color#TRANSPARENT} to disable.
83 public void setBorderColor(final int color) { argument
84 final boolean changed = mBorderPaint.getColor() != color;
85 mBorderPaint.setColor(color);
/frameworks/support/v4/tests/java/android/support/v4/widget/
H A DTextViewCompatTest.java49 public TestDrawable(@ColorInt int color, int width, int height) { argument
50 super(color);
127 assertEquals("Styled text view: color", mTextView.getTextColors().getDefaultColor(),
128 res.getColor(R.color.text_color));
306 // The entire left drawable should be the specific red color
307 TestUtils.assertAllPixelsOfColor("Compound drawable: left color",
308 drawablesAbsolute[0], res.getColor(R.color.test_red));
318 // The entire right drawable should be the specific green color
319 TestUtils.assertAllPixelsOfColor("Compound drawable: right color",
320 drawablesAbsolute[2], res.getColor(R.color
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DActivatableNotificationView.java175 mLegacyColor = context.getColor(R.color.notification_legacy_background_color);
176 mNormalColor = context.getColor(R.color.notification_material_background_color);
178 R.color.notification_material_background_low_priority_color);
180 R.color.notification_ripple_tinted_color);
182 R.color.notification_ripple_color_low_priority);
184 R.color.notification_ripple_untinted_color);
452 * Sets the tint color of the background
454 public void setTintColor(int color) { argument
455 setTintColor(color, false);
459 * Sets the tint color o
461 setTintColor(int color, boolean animated) argument
504 setBackgroundTintColor(int color) argument
[all...]
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/
H A DGlifPatternDrawable.java64 public GlifPatternDrawable(int color) { argument
66 setColor(color);
201 public void setColor(int color) { argument
202 mColor = color;
203 mPaint.setColor(color);
/frameworks/support/design/tests/src/android/support/design/widget/
H A DNavigationViewTest.java143 R.color.emerald_text, null);
145 // Check the default text color of the menu items in our NavigationView
152 // Set a new text color on our NavigationView
154 ResourcesCompat.getColorStateList(res, R.color.color_state_list_lilac, null)));
156 // And check that all the menu items have the new color
158 R.color.lilac_default, null);
174 R.color.sand_default, null);
176 // Check the default fill color of the menu items in our NavigationView
191 // Set a new background (flat fill color) on our NavigationView
197 R.color
236 TestDrawable(@olorInt int color, int width, int height) argument
[all...]
/frameworks/support/v4/java/android/support/v4/view/
H A DPagerTabStrip.java127 * 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/tests/java/android/support/v4/content/
H A DContextCompatTest.java50 assertEquals("Unthemed color load", 0xFFFF8090,
51 ContextCompat.getColor(mContext, R.color.text_color));
56 assertEquals("Themed yellow color load",
57 ContextCompat.getColor(mContext, R.color.simple_themed_selector),
65 ContextCompat.getColorStateList(mContext, R.color.complex_unthemed_selector);
66 assertEquals("Unthemed color state list load: default", 0xFF70A0C0,
68 assertEquals("Unthemed color state list load: focused", 0xFF70B0F0,
71 assertEquals("Unthemed color state list load: pressed", 0xFF6080B0,
79 ContextCompat.getColorStateList(mContext, R.color.complex_themed_selector);
80 assertEquals("Themed yellow color stat
[all...]
/frameworks/native/opengl/libagl/
H A Dprimitives.cpp78 const GLvoid* cp = c->arrays.color.element(
80 c->arrays.color.fetch(c, v0->color.v, cp);
84 const GLvoid* cp = c->arrays.color.element(
86 c->arrays.color.fetch(c, v1->color.v, cp);
90 const GLvoid* cp = c->arrays.color.element(
92 c->arrays.color.fetch(c, v2->color.v, cp);
101 const GLvoid* cp = c->arrays.color
[all...]
/frameworks/base/graphics/java/android/graphics/drawable/
H A DRippleDrawable.java62 * &ltripple android:color="#ffff0000">
64 * android:drawable="@android:color/white" />
75 * &ltripple android:color="#ff00ff00">
76 * &ltitem android:drawable="@android:color/black" />
80 * &ltripple android:color="#ff0000ff">
91 * &ltripple android:color="#ffff0000" /></code>
182 * Creates a new ripple drawable with the specified ripple color and
185 * @param color The ripple color
189 public RippleDrawable(@NonNull ColorStateList color, argument
387 setColor(ColorStateList color) argument
[all...]
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
H A DStatusBar.java44 /** Status bar background color attribute name. */
74 int color = getBarColor(ATTR_COLOR, ATTR_TRANSLUCENT);
75 setBackgroundColor(color == 0 ? Config.getStatusBarColor(simulatedPlatformVersion) : color);
/frameworks/native/opengl/tests/hwc/
H A DhwcTestLib.h51 // Represent RGB color as fraction of color components.
52 // Each of the color components are expected in the range [0.0, 1.0]
69 // Represent RGB color as fraction of color components.
70 // Each of the color components are expected in the range [0.0, 1.0]
119 uint32_t hwcTestColor2Pixel(uint32_t format, ColorFract color, float alpha);
121 ColorFract& color);
124 void hwcTestFillColor(android::GraphicBuffer *gBuf, ColorFract color,
/frameworks/support/graphics/drawable/static/src/android/support/graphics/drawable/
H A DVectorDrawableCommon.java53 public void setColorFilter(int color, PorterDuff.Mode mode) { argument
55 mDelegateDrawable.setColorFilter(color, mode);
58 super.setColorFilter(color, mode);
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/
H A DBrandedFragment.java282 * Sets the color used to draw the search affordance.
283 * A default brighter color will be set by the framework.
285 * @param color The color to use for the search affordance.
287 public void setSearchAffordanceColor(int color) { argument
288 setSearchAffordanceColors(new SearchOrbView.Colors(color));
292 * Returns the color used to draw the search affordance.
295 return getSearchAffordanceColors().color;
/frameworks/support/v7/mediarouter/src/android/support/v7/app/
H A DMediaRouterThemeHelper.java50 * by the primary color defined in the given {@code style}, or in the parent {@code context}.
116 // the white dialog and use the primary color for the group controls.
151 int color = ta.getColor(0, 0);
153 if (color != 0) {
154 return color;
/frameworks/av/cmds/screenrecord/
H A DTextRenderer.cpp96 // The pixel data is stored as combined color+alpha, 8 bits per pixel.
112 uint8_t alpha, color; local
115 color = 0x00;
119 color = FontBitmap::pixels[i] & ~1;
122 *pix++ = color;
123 *pix++ = color;
124 *pix++ = color;
/frameworks/base/core/java/com/android/internal/widget/
H A DSubtitleView.java154 public void setForegroundColor(int color) { argument
155 mForegroundColor = color;
161 public void setBackgroundColor(int color) { argument
162 mBackgroundColor = color;
173 public void setEdgeColor(int color) { argument
174 mEdgeColor = color;
/frameworks/base/libs/hwui/hwui/
H A DCanvas.cpp70 static void simplifyPaint(int color, SkPaint* paint) { argument
71 paint->setColor(color);
114 int color = paint.getColor(); local
115 int channelSum = SkColorGetR(color) + SkColorGetG(color) + SkColorGetB(color);
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/
H A DCustomTile.java281 int color = mContext.getColor(getColor(tileState));
282 drawable.setTint(color);
287 new ForegroundColorSpan(color),
317 return R.color.qs_tile_tint_unavailable;
319 return R.color.qs_tile_tint_inactive;
321 return R.color.qs_tile_tint_active;
/frameworks/ex/framesequence/jni/
H A DFrameSequence_gif.cpp31 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/support/v7/cardview/src/android/support/v7/widget/
H A DCardView.java227 // 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/content/res/
H A DColorStateList.java51 * "color" subdirectory directory of an application's resource directory. The XML file contains
56 * android:color="@color/sample_focused" /&gt;
59 * android:color="@color/sample_disabled_pressed" /&gt;
61 * android:color="@color/sample_disabled_not_pressed" /&gt;
62 * &lt;item android:color="@color/sample_default" /&gt;
66 * This defines a set of state spec / color pair
164 valueOf(@olorInt int color) argument
[all...]
/frameworks/base/core/java/android/os/
H A DIPowerManager.aidl67 void setAttentionLight(boolean on, int color);
/frameworks/base/core/java/android/text/style/
H A DBulletSpan.java50 public BulletSpan(int gapWidth, int color) { argument
53 mColor = color;
/frameworks/base/libs/hwui/utils/
H A DPaintUtils.h103 SkColor color; member in struct:android::uirenderer::PaintUtils::TextShadow
113 textShadow->color = blur.fColor;

Completed in 4626 milliseconds

1234567891011>>