Searched refs:color (Results 76 - 100 of 332) 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/base/core/java/com/android/internal/util/
H A DNotificationColorUtil.java75 * @return True if the bitmap is grayscale; false if it is color or too large to examine.
113 * @return True if the bitmap is grayscale; false if it is color or too large to examine.
152 * @return True if the bitmap is grayscale; false if it is color or too large to examine.
172 * @return The color inverted text.
200 // Allocate a new array so we don't change the colors in the old color state
219 private int processColor(int color) { argument
220 return Color.argb(Color.alpha(color),
221 255 - Color.red(color),
222 255 - Color.green(color),
223 255 - Color.blue(color));
[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/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
384 setColor(ColorStateList color) argument
[all...]
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
H A DNavigationBar.java32 /** Navigation bar background color attribute name. */
68 int color = getBarColor(ATTR_COLOR, ATTR_TRANSLUCENT);
69 setBackgroundColor(color == 0 ? 0xFF000000 : color);
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/v17/leanback/src/android/support/v17/leanback/app/
H A DBrandedFragment.java203 * Sets the color used to draw the search affordance.
204 * A default brighter color will be set by the framework.
206 * @param color The color to use for the search affordance.
208 public void setSearchAffordanceColor(int color) { argument
209 setSearchAffordanceColors(new SearchOrbView.Colors(color));
213 * Returns the color used to draw the search affordance.
216 return getSearchAffordanceColors().color;
H A DBrandedSupportFragment.java205 * Sets the color used to draw the search affordance.
206 * A default brighter color will be set by the framework.
208 * @param color The color to use for the search affordance.
210 public void setSearchAffordanceColor(int color) { argument
211 setSearchAffordanceColors(new SearchOrbView.Colors(color));
215 * Returns the color used to draw the search affordance.
218 return getSearchAffordanceColors().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.java153 public void setForegroundColor(int color) { argument
154 mForegroundColor = color;
160 public void setBackgroundColor(int color) { argument
161 mBackgroundColor = color;
172 public void setEdgeColor(int color) { argument
173 mEdgeColor = color;
/frameworks/ex/framesequence/jni/
H A DFrameSequence_gif.cpp36 static Color8888 gifColorToColor8888(const GifColorType& color) { argument
37 return ARGB_TO_COLOR8888(0xff, color.Red, color.Green, color.Blue);
118 ALOGD(" Frame %d - must preserve %d, restore point %d, trans color %d",
124 // calculate bg color
166 static void setLineColor(Color8888* dst, Color8888 color, int width) { argument
168 *dst = color;
320 ALOGW("Warning: potentially corrupt color map");
/frameworks/base/core/java/android/content/res/
H A DColorStateList.java50 * "color" subdirectory directory of an application's resource directory. The XML file contains
55 * &lt;item android:state_focused="true" android:color="@color/testcolor1"/&gt;
56 * &lt;item android:state_pressed="true" android:state_enabled="false" android:color="@color/testcolor2" /&gt;
57 * &lt;item android:state_enabled="false" android:color="@color/testcolor3" /&gt;
58 * &lt;item android:color="@color/testcolor5"/&gt;
62 * This defines a set of state spec / color pair
111 valueOf(@olorInt int color) argument
[all...]
/frameworks/base/core/java/android/os/
H A DIPowerManager.aidl62 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/media/mca/filterpacks/java/android/filterpacks/imageproc/
H A DDrawRectFilter.java55 "uniform vec4 color;\n" +
57 " gl_FragColor = color;\n" +
113 float[] color = {mColorRed, mColorGreen, mColorBlue, 1f};
120 mProgram.setHostValue("color", color);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DNotificationBackgroundView.java134 public void setRippleColor(int color) { argument
137 ripple.setColor(ColorStateList.valueOf(color));
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DDisplayListLayersActivity.java94 LayerView(Context context, int color, int layerType, String tag) { argument
99 mPaint.setColor(color);
/frameworks/data-binding/extensions/baseAdapters/src/main/java/android/databinding/adapters/
H A DTextViewBindingAdapter.java245 public static void setShadowColor(TextView view, int color) { argument
250 view.setShadowLayer(r, dx, dy, color);
257 int color = view.getShadowColor();
260 view.setShadowLayer(r, dx, dy, color);
267 int color = view.getShadowColor();
270 view.setShadowLayer(r, dx, dy, color);
277 int color = view.getShadowColor();
280 view.setShadowLayer(r, dx, dy, color);
/frameworks/support/v7/cardview/api21/android/support/v7/widget/
H A DCardViewApi21.java106 public void setBackgroundColor(CardViewDelegate cardView, int color) { argument
107 ((RoundRectDrawable) (cardView.getBackground())).setColor(color);
H A DRoundRectDrawable.java128 public void setColor(int color) { argument
129 mPaint.setColor(color);
/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/packages/SystemUI/src/com/android/systemui/
H A DBatteryMeterView.java108 context.getColor(R.color.batterymeter_frame_color));
154 mChargeColor = context.getColor(R.color.batterymeter_charge_color);
157 mBoltPaint.setColor(context.getColor(R.color.batterymeter_bolt_color));
161 context.getColor(R.color.dark_mode_icon_color_dual_tone_background);
162 mDarkModeFillColor = context.getColor(R.color.dark_mode_icon_color_dual_tone_fill);
164 context.getColor(R.color.light_mode_icon_color_dual_tone_background);
165 mLightModeFillColor = context.getColor(R.color.light_mode_icon_color_dual_tone_fill);
240 // If we are in power save mode, always use the normal color.
244 int thresh, color = 0;
247 color
[all...]

Completed in 1329 milliseconds

1234567891011>>