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

123

/frameworks/base/core/java/android/text/style/
H A DBackgroundColorSpan.java29 public BackgroundColorSpan(int color) { argument
30 mColor = color;
H A DForegroundColorSpan.java29 public ForegroundColorSpan(int color) { argument
30 mColor = color;
H A DBulletSpan.java50 public BulletSpan(int gapWidth, int color) { argument
53 mColor = color;
H A DQuoteSpan.java37 public QuoteSpan(int color) { argument
39 mColor = color;
71 int color = p.getColor();
79 p.setColor(color);
H A DTextAppearanceSpan.java29 * Sets the text color, size, style, and typeface to match a TextAppearance
50 * text appearance, and the specified text color resource
51 * to determine the color. The <code>appearance</code> should be,
109 ColorStateList color, ColorStateList linkColor) {
113 mTextColor = color;
168 * Returns the text color specified by this span, or <code>null</code>
176 * Returns the link color specified by this span, or <code>null</code>
108 TextAppearanceSpan(String family, int style, int size, ColorStateList color, ColorStateList linkColor) argument
/frameworks/base/graphics/java/android/graphics/drawable/
H A DPaintDrawable.java35 public PaintDrawable(int color) { argument
36 getPaint().setColor(color);
H A DColorDrawable.java29 * A specialized Drawable that fills the Canvas with a specified color.
32 * <p>It can be defined in an XML file with the <code>&lt;color></code> element.</p>
48 * Creates a new ColorDrawable with the specified color.
50 * @param color The color to draw.
52 public ColorDrawable(int color) { argument
54 setColor(color);
75 * Gets the drawable's color value.
77 * @return int The color to draw.
84 * Sets the drawable's color valu
89 setColor(int color) argument
[all...]
/frameworks/base/libs/rs/driver/
H A DrsdFrameBuffer.cpp49 // Now attach color targets
51 DrvAllocation *color = NULL; local
53 color = (DrvAllocation *)fb->mHal.state.colorTargets[i]->mHal.drv;
55 if (color->uploadDeferred) {
60 fbo->setColorTarget(color, i);
H A DrsdFrameBufferObj.h30 void setColorTarget(DrvAllocation *color, uint32_t index) { argument
31 mColorTargets[index] = color;
/frameworks/base/telephony/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/base/core/java/android/text/
H A DTextPaint.java74 * @param color underline solid color
78 public void setUnderlineText(int color, float thickness) { argument
79 underlineColor = color;
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DColoredRectsActivity.java65 public RectsView(Context c, float offset, int color) { argument
68 mColor = color;
H A DPointsActivity.java88 public RenderingView(Context c, int color) { argument
90 mColor = color;
H A DLines2Activity.java69 public LinesView(Context c, float offset, int color) { argument
72 mColor = color;
H A DDisplayListLayersActivity.java94 LayerView(Context context, int color, int layerType, String tag) { argument
99 mPaint.setColor(color);
/frameworks/base/core/tests/coretests/src/android/widget/
H A DLabelView.java107 * Sets the text color for this label
108 * @param color ARGB value for the text
110 public void setTextColor(int color) { argument
111 mTextPaint.setColor(color);
/frameworks/base/libs/hwui/
H A DSkiaColorFilter.cpp23 // Base color filter
62 // Lighting color filter
86 // Blend color filter
89 SkiaBlendFilter::SkiaBlendFilter(SkColorFilter *skFilter, int color, SkXfermode::Mode mode): argument
91 const int alpha = (color >> 24) & 0xFF;
93 mR = mA * ((color >> 16) & 0xFF) / 255.0f;
94 mG = mA * ((color >> 8) & 0xFF) / 255.0f;
95 mB = mA * ((color ) & 0xFF) / 255.0f;
/frameworks/base/media/java/android/media/videoeditor/
H A DEffectColor.java21 * This class allows to apply color effect on a media item.
27 * Change the video frame color to the RGB color value provided
31 * Change the video frame color to a gradation from RGB color (at the top of
36 * Change the video frame color to sepia
40 * Invert the video frame color
48 * Change the video frame color to the RGB color value GREEN
52 * Change the video frame color t
93 EffectColor(MediaItem mediaItem, String effectId, long startTimeMs, long durationMs, int type, int color) argument
[all...]
/frameworks/base/services/java/com/android/server/wm/
H A DDimSurface.java53 void show(int dw, int dh, int layer, int color) { argument
68 } else if (mLastDimWidth != dw || mLastDimHeight != dh || mDimColor != color
75 mDimColor = color;
78 mDimSurface.setAlpha(((color>>24)&0xff)/255.0f);
/frameworks/base/core/java/android/content/res/
H A DColorStateList.java40 * "color" subdirectory directory of an application's resource directory. The XML file contains
45 * &lt;item android:state_focused="true" android:color="@color/testcolor1"/&gt;
46 * &lt;item android:state_pressed="true" android:state_enabled="false" android:color="@color/testcolor2" /&gt;
47 * &lt;item android:state_enabled="false" android:color="@color/testcolor3" /&gt;
48 * &lt;item android:color="@color/testcolor5"/&gt;
52 * This defines a set of state spec / color pair
96 valueOf(int color) argument
[all...]
/frameworks/base/core/java/android/gesture/
H A DGesture.java182 * @param color
185 public Bitmap toBitmap(int width, int height, int edge, int numSample, int color) { argument
194 paint.setColor(color);
217 * @param color
220 public Bitmap toBitmap(int width, int height, int inset, int color) { argument
228 paint.setColor(color);
/frameworks/base/graphics/java/android/graphics/
H A DColor.java25 * The Color class defines methods for creating and converting color ints.
28 * stored solely in the alpha component, and not in the color components. The
51 * Return the alpha component of a color int. This is the same as saying
52 * color >>> 24
54 public static int alpha(int color) { argument
55 return color >>> 24;
59 * Return the red component of a color int. This is the same as saying
60 * (color >> 16) & 0xFF
62 public static int red(int color) { argument
63 return (color >> 1
70 green(int color) argument
78 blue(int color) argument
117 hue(int color) argument
159 saturation(int color) argument
186 brightness(int color) argument
331 colorToHSV(int color, float hsv[]) argument
[all...]
/frameworks/base/cmds/stagefright/
H A Drecord.cpp52 // Check the color format to make sure
154 // returns -1 if mapping of the given color is unsuccessful
155 // returns an omx color enum value otherwise
156 static int translateColorToOmxEnumValue(int color) { argument
157 switch (color) {
163 fprintf(stderr, "Unsupported color: %d\n", color);
182 fprintf(stderr, "input color format must be 0 (YUV420SP) or 1 (YUV420P)\n");
H A Drecordvideo.cpp37 fprintf(stderr, " -c YUV420 color format: [0] semi planar or [1] planar or other omx YUV420 color format (default: 1)\n");
133 // returns -1 if mapping of the given color is unsuccessful
134 // returns an omx color enum value otherwise
135 static int translateColorToOmxEnumValue(int color) { argument
136 switch (color) {
142 fprintf(stderr, "Custom OMX color format: %d\n", color);
143 if (color == OMX_TI_COLOR_FormatYUV420PackedSemiPlanar ||
144 color
[all...]
/frameworks/base/core/jni/android/graphics/
H A DNinePatchImpl.cpp182 uint32_t color; local
258 color = chunk.colors[colorIndex++];
293 if (color == android::Res_png_9patch::TRANSPARENT_COLOR && !hasXfer) {
317 color, hasXfer);

Completed in 299 milliseconds

123