Searched refs:color (Results 176 - 200 of 413) sorted by relevance

1234567891011>>

/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/
H A DGLES20Canvas.java497 int color, float lineWidth) {
498 prepareDraw(offset, color, lineWidth);
502 private void prepareDraw(int offset, int color, float lineWidth) { argument
509 float[] colorArray = getColor(color);
522 private float[] getColor(int color) { argument
523 float alpha = ((color >>> 24) & 0xFF) / 255f * getAlpha();
524 float red = ((color >>> 16) & 0xFF) / 255f * alpha;
525 float green = ((color >>> 8) & 0xFF) / 255f * alpha;
526 float blue = (color & 0xFF) / 255f * alpha;
575 public void fillRect(float x, float y, float width, float height, int color) { argument
496 draw(int type, int offset, int count, float x, float y, float width, float height, int color, float lineWidth) argument
[all...]
/frameworks/support/v7/palette/src/main/java/android/support/v7/graphics/
H A DPalette.java241 * Returns the most vibrant color in the palette as an RGB packed int.
252 * Returns a light and vibrant color from the palette as an RGB packed int.
263 * Returns a dark and vibrant color from the palette as an RGB packed int.
274 * Returns a muted color from the palette as an RGB packed int.
285 * Returns a muted and light color from the palette as an RGB packed int.
296 * Returns a muted and dark color from the palette as an RGB packed int.
316 * Returns the selected color for the given target from the palette as an RGB packed int.
341 // If we have a swatch, and the target is exclusive, add the color to the used list
364 // Check whether the HSL values are within the correct ranges, and this color hasn't
403 private static float[] copyHslValues(Swatch color) { argument
424 Swatch(@olorInt int color, int population) argument
[all...]
/frameworks/rs/driver/runtime/
H A Drs_sample.c18 #define SkGetPackedR16(color) (((unsigned)(color) >> SK_R16_SHIFT) & SK_R16_MASK)
19 #define SkGetPackedG16(color) (((unsigned)(color) >> SK_G16_SHIFT) & SK_G16_MASK)
20 #define SkGetPackedB16(color) (((unsigned)(color) >> SK_B16_SHIFT) & SK_B16_MASK)
38 static float3 getFrom565(uint16_t color) { argument
40 result.x = (float)SkPacked16ToR32(color);
41 result.y = (float)SkPacked16ToG32(color);
42 result.z = (float)SkPacked16ToB32(color);
[all...]
/frameworks/ex/common/java/com/android/ex/editstyledtext/
H A DEditStyledText.java112 /** The mode of changing color. */
574 /** Start to change color */
579 /** Start to change background color */
690 * @param color The color of the Item.
692 public void setItemColor(int color) { argument
693 mManager.setItemColor(color, true);
699 * @param align The color of the Item.
706 * Set Background color of View.
708 * @param color Th
711 setBackgroundColor(int color) argument
1150 setBackgroundColor(int color) argument
1170 setItemColor(int color, boolean reset) argument
1701 changeColorSelectedText(int color) argument
2509 HorizontalLineSpan(int color, int width, Spannable spannable) argument
2703 HorizontalLineDrawable(int color, int width, Spannable spannable) argument
2731 renewColor(int color) argument
2773 ColorPaletteDrawable(int color, int width, int height, int mergin) argument
[all...]
/frameworks/base/graphics/java/android/graphics/drawable/
H A DGradientDrawable.java60 * A Drawable with a color gradient for buttons, backgrounds, etc.
298 * <p>Set the stroke width and color for the drawable. If width is zero,
305 * @param color The color of the stroke
310 public void setStroke(int width, @ColorInt int color) { argument
311 setStroke(width, color, 0, 0);
315 * <p>Set the stroke width and color state list for the drawable. If width
322 * @param colorStateList The color state list of the stroke
332 * <p>Set the stroke width and color for the drawable. If width is zero,
339 * @param color Th
346 setStroke(int width, @ColorInt int color, float dashWidth, float dashGap) argument
380 setStrokeInternal(int width, int color, float dashWidth, float dashGap) argument
2059 isOpaque(int color) argument
[all...]
H A DShapeDrawable.java270 * also has a color in its paint, which has an alpha as well. These two
271 * values are automatically combined during drawing. Thus if the color's
423 // Apply theme to contained color state list.
442 int color = paint.getColor();
443 color = a.getColor(R.styleable.ShapeDrawable_color, color);
444 paint.setColor(color);
/frameworks/rs/driver/runtime/arch/
H A Dgeneric.c774 extern uchar4 __attribute__((overloadable)) rsPackColorTo8888(float3 color) argument
776 color *= 255.f;
777 color += 0.5f;
778 color = clamp(color, 0.f, 255.f);
779 uchar4 c = {color.x, color.y, color.z, 255};
783 extern uchar4 __attribute__((overloadable)) rsPackColorTo8888(float4 color) argument
785 color *
[all...]
/frameworks/base/core/java/android/gesture/
H A DGestureOverlayView.java208 public void setGestureColor(@ColorInt int color) { argument
209 mCertainGestureColor = color;
212 public void setUncertainGestureColor(@ColorInt int color) { argument
213 mUncertainGestureColor = color;
382 private void setCurrentColor(int color) { argument
383 mCurrentColor = color;
/frameworks/base/packages/EasterEgg/src/com/android/egg/neko/
H A DCat.java113 public static void tint(int color, Drawable ... ds) { argument
116 d.mutate().setTint(color);
121 public static boolean isDark(int color) { argument
122 final int r = (color & 0xFF0000) >> 16;
123 final int g = (color & 0x00FF00) >> 8;
124 final int b = color & 0x0000FF;
137 // body color
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/
H A DPlaybackOverlayFragment.java625 getResources().getColor(R.color.lb_playback_controls_background_dark);
627 getResources().getColor(R.color.lb_playback_controls_background_light);
670 int color = mBgDarkColor;
673 case BG_LIGHT: color = mBgLightColor; break;
674 case BG_NONE: color = Color.TRANSPARENT; break;
676 mRootView.setBackground(new ColorDrawable(color));
H A DPlaybackOverlaySupportFragment.java627 getResources().getColor(R.color.lb_playback_controls_background_dark);
629 getResources().getColor(R.color.lb_playback_controls_background_light);
672 int color = mBgDarkColor;
675 case BG_LIGHT: color = mBgLightColor; break;
676 case BG_NONE: color = Color.TRANSPARENT; break;
678 mRootView.setBackground(new ColorDrawable(color));
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DPlaybackControlsRowPresenter.java233 * Sets the background color. If not set, a default from the theme will be used.
235 public void setBackgroundColor(@ColorInt int color) { argument
236 mBackgroundColor = color;
241 * Returns the background color. If no background color was set, transparent
250 * Sets the primary color for the progress bar. If not set, a default from
253 public void setProgressColor(@ColorInt int color) { argument
254 mProgressColor = color;
259 * Returns the primary color for the progress bar. If no color wa
[all...]
/frameworks/support/v4/java/android/support/v4/widget/
H A DMaterialProgressDrawable.java81 * the color transition should start
197 * Update the background color of the circle image view.
199 public void setBackgroundColor(int color) { argument
200 mRing.setBackgroundColor(color);
204 * Set the colors used in the progress animation from color resources.
205 * The first color will also be the color of the bar that grows in response
329 * Update the ring color if this is within the last 25% of the animation.
330 * The new ring color will be a translation from the starting ring color t
510 setBackgroundColor(int color) argument
601 setColor(int color) argument
[all...]
/frameworks/av/cmds/stagefright/
H A Drecord.cpp54 // Check the color format to make sure
156 // returns -1 if mapping of the given color is unsuccessful
157 // returns an omx color enum value otherwise
158 static int translateColorToOmxEnumValue(int color) {
159 switch (color) {
165 fprintf(stderr, "Unsupported color: %d\n", color);
184 fprintf(stderr, "input color format must be 0 (YUV420SP) or 1 (YUV420P)\n");
222 enc_meta->setInt32("color-format", colorFormat);
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
H A DKeyguardSimPukView.java125 int color = Color.WHITE;
133 color = info.getIconTint();
137 mSimImageView.setImageTintList(ColorStateList.valueOf(color));
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DKeyguardIndicationController.java245 int errorColor = mContext.getResources().getColor(R.color.system_warning_color, null);
264 int errorColor = mContext.getResources().getColor(R.color.system_warning_color, null);
280 int errorColor = mContext.getResources().getColor(R.color.system_warning_color,
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DMultiProducerActivity.java312 int color = evaluate(frac, mColorStart, mColorEnd);
316 mPaint.setColor(color);
319 canvas.drawColor(color);
/frameworks/base/tests/SystemUIDemoModeController/src/com/example/android/demomodecontroller/
H A DDemoModeController.java132 final int color = Color.HSVToColor(new float[]{hue, sat, val});
133 if (DEBUG) Log.d(TAG, String.format("hsv=(%s,%s,%s) argb=#%08x", hue, sat, val, color));
134 mContent.setBackgroundColor(color);
/frameworks/base/tools/velocityplot/
H A Dvelocityplot.py155 def _add_timeseries_line(self, axes, label, color, linewidth=1):
156 return axes.plot([], label=label, color=color, linewidth=linewidth)[0]
/frameworks/support/design/base/android/support/design/widget/
H A DShadowDrawableWrapper.java85 mShadowStartColor = resources.getColor(R.color.design_fab_shadow_start_color);
86 mShadowMiddleColor = resources.getColor(R.color.design_fab_shadow_mid_color);
87 mShadowEndColor = resources.getColor(R.color.design_fab_shadow_end_color);
/frameworks/base/core/java/android/content/res/
H A DGradientColor.java46 * Lets you define a gradient color, which is used inside
50 * "color" subdirectory directory of an application's resource directory. The XML file contains
69 * Also note if any color "item" element is defined, then startColor, centerColor and endColor will
282 parser.getPositionDescription() + ": invalid gradient color tag " + name);
310 * Inflates child elements "item"s for each color stop.
347 + ": <item> tag requires a 'color' attribute and a 'offset' "
352 int color = a.getColor(R.styleable.GradientColorItem_color, 0);
356 Log.v(TAG, "new item color " + color + " " + Integer.toHexString(color));
[all...]
/frameworks/base/core/java/android/hardware/camera2/
H A DDngCreator.java153 * Pixel data will be converted to a Baseline TIFF RGB image, with 8 bits per color channel.
295 * The pixel layout in the input is determined from the reported color filter arrangement (CFA)
345 * The pixel layout in the input is determined from the reported color filter arrangement (CFA)
519 private static void colorToRgb(int color, int outOffset, /*out*/byte[] rgbOut) { argument
520 rgbOut[outOffset] = (byte) Color.red(color);
521 rgbOut[outOffset + 1] = (byte) Color.green(color);
522 rgbOut[outOffset + 2] = (byte) Color.blue(color);
/frameworks/base/core/java/android/view/
H A DNotificationHeaderView.java269 public void setOriginalIconColor(int color) { argument
270 mIconColor = color;
278 public void setOriginalNotificationColor(int color) { argument
279 mOriginalNotificationColor = color;
/frameworks/base/libs/hwui/
H A DRecordedOp.h262 ColorOp(const ClipBase* localClip, int color, SkXfermode::Mode mode) argument
264 , color(color)
266 const int color; member in struct:android::uirenderer::ColorOp
/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DBatteryMeterView.java51 context.getColor(R.color.batterymeter_frame_color));

Completed in 1096 milliseconds

1234567891011>>