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

1234567891011>>

/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/core/jni/android/graphics/
H A DNinePatchImpl.cpp184 uint32_t color; local
261 color = colors[colorIndex++];
296 if (color == android::Res_png_9patch::TRANSPARENT_COLOR && !hasXfer) {
320 color, hasXfer);
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/
H A DRecentsConfiguration.java263 res.getColor(R.color.recents_task_bar_default_background_color);
265 res.getColor(R.color.recents_task_bar_light_text_color);
267 res.getColor(R.color.recents_task_bar_dark_text_color);
269 res.getColor(R.color.recents_task_bar_highlight_color);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DNotificationOverflowIconsView.java49 mTintColor = getResources().getColor(R.color.keyguard_overflow_content_color);
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/
H A DLightBase.java78 mFieldData.color = mColor;
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/date/
H A DTextViewWithCircularIndicator.java48 mCircleColor = res.getColor(R.color.blue);
/frameworks/support/v7/cardview/eclair-mr1/android/support/v7/widget/
H A DRoundRectDrawableWithShadow.java90 mShadowStartColor = resources.getColor(R.color.cardview_shadow_start_color);
91 mShadowEndColor = resources.getColor(R.color.cardview_shadow_end_color);
346 public void setColor(int color) { argument
347 mPaint.setColor(color);
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
H A DKeyguardSimPinView.java82 int color = Color.WHITE;
90 color = info.getIconTint();
94 mSimImageView.setImageTintList(ColorStateList.valueOf(color));
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
H A DQSDualTileLabel.java135 public void setTextColor(int color) { argument
136 mFirstLine.setTextColor(color);
137 mSecondLine.setTextColor(color);
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DAlphaLayersActivity.java41 ColorView color = new ColorView(this);
42 container.addView(color, new DirtyBitmapView.LayoutParams(
49 color.startAnimation(a);
/frameworks/base/tests/JobSchedulerTestApp/src/com/android/demo/jobSchedulerApp/
H A DMainActivity.java54 defaultColor = res.getColor(R.color.none_received);
55 startJobColor = res.getColor(R.color.start_received);
56 stopJobColor = res.getColor(R.color.stop_received);
/frameworks/native/opengl/tests/angeles/
H A Ddemo.c71 /* Vertex array and color array are enabled for all objects, so their
78 * components per color with GL_UNSIGNED_BYTE datatype and stride 0.
298 int a, color[3]; local
301 color[a] = (int)(ca * baseColor[a] * 255);
302 if (color[a] > 255) color[a] = 255;
304 result->colorArray[i] = (GLubyte)color[0];
305 result->colorArray[i + 1] = (GLubyte)color[1];
306 result->colorArray[i + 2] = (GLubyte)color[2];
367 GLubyte color; local
[all...]
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DImageCardView.java154 public void setInfoAreaBackgroundColor(int color) { argument
156 mInfoArea.setBackgroundColor(color);
158 mBadgeImage.setBackgroundColor(color);
H A DStreamingTextView.java132 R.color.lb_search_plate_hint_text_color);
193 private void addColorSpan(SpannableStringBuilder displayText, int color, String text, argument
195 ForegroundColorSpan span = new ForegroundColorSpan(color);
/frameworks/base/core/java/android/widget/
H A DRadialTimePickerView.java85 // Alpha level of color for selector.
331 res.getColor(R.color.timepicker_default_text_color_material));
351 R.color.timepicker_default_selector_color_material);
357 R.color.timepicker_default_selector_color_material);
364 R.color.timepicker_default_selector_color_material);
370 R.color.timepicker_default_selector_color_material);
376 R.color.timepicker_default_selector_color_material);
383 R.color.timepicker_default_selector_color_material);
386 res.getColor(R.color.timepicker_default_numbers_background_color_material)));
803 int color;
961 drawTextElements(Canvas canvas, float textSize, Typeface typeface, String[] texts, float[] textGridWidths, float[] textGridHeights, Paint paint, int color, int alpha) argument
[all...]
/frameworks/base/core/java/android/content/res/
H A DStringBlock.java249 sub = subtag(tag, ";color=");
309 * Returns a span for the specified color string representation.
310 * If the specified string does not represent a color (null, empty, etc.)
311 * the color black is returned instead.
313 * @param color The color as a string. Can be a resource reference,
315 * @param foreground True if the color will be used as the foreground color,
322 private static CharacterStyle getColor(String color, boolean foreground) { argument
325 if (!TextUtils.isEmpty(color)) {
[all...]
/frameworks/base/libs/hwui/
H A DSkiaShader.cpp49 static inline void bindUniformColor(int slot, uint32_t color) { argument
50 const float a = ((color >> 24) & 0xff) / 255.0f;
52 a * ((color >> 16) & 0xff) / 255.0f,
53 a * ((color >> 8) & 0xff) / 255.0f,
54 a * ((color ) & 0xff) / 255.0f,
H A DOpenGLRenderer.h176 virtual status_t drawColor(int color, SkXfermode::Mode mode);
297 SkColor color; member in struct:android::uirenderer::OpenGLRenderer::TextShadow
307 textShadow->color = blur.fColor;
327 void drawScreenSpaceColorRect(float left, float top, float right, float bottom, int color) { argument
334 drawColorRect(left, top, right, bottom, color, SkXfermode::kSrcOver_Mode, true);
606 * Draws a colored rectangle with the specified color. The specified coordinates
614 * @param paint The paint containing the color, blending mode, etc.
621 * Draws a series of colored rectangles with the specified color. The specified
627 * @param paint The paint containing the color, blending mode, etc.
851 void setupDrawColor(int color, in
[all...]
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
H A DNotificationController.java129 com.android.internal.R.color.system_notification_accent_color));
147 com.android.internal.R.color.system_notification_accent_color));
163 com.android.internal.R.color.system_notification_accent_color));
177 com.android.internal.R.color.system_notification_accent_color));
210 com.android.internal.R.color.system_notification_accent_color));
/frameworks/native/opengl/tests/hwc/
H A DhwcRects.cpp42 * color: [0.##, 0.##, 0.##]
52 * color: [1.0, 0.5, 0.5], \
54 * color: [0.251, 0.878, 0.816] alpha: 0.7 \
146 blend(defaultBlend), color(defaultColor),
154 ColorFract color; member in class:Rectangle
454 } else if (attrName == "color:") { // Color
455 rect.color = hwcTestParseColor(in, error);
457 testPrintE("Error parsing color in: %s", rectStr.c_str());
518 // Fill with uniform color
519 hwcTestFillColor(rect.texture.get(), rect.color, rec
[all...]
/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/base/packages/SystemUI/src/com/android/systemui/
H A DBatteryMeterView.java192 res.getColor(R.color.batterymeter_frame_color));
239 mChargeColor = getResources().getColor(R.color.batterymeter_charge_color);
242 mBoltPaint.setColor(res.getColor(R.color.batterymeter_bolt_color));
287 // If we are in power save mode, always use the normal color.
291 int thresh, color = 0;
294 color = mColors[i+1];
295 if (percent <= thresh) return color;
297 return color;
338 // set the battery charging color
/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.java51 * A Drawable with a color gradient for buttons, backgrounds, etc.
241 * <p>Set the stroke width and color for the drawable. If width is zero,
248 * @param color The color of the stroke
253 public void setStroke(int width, int color) { argument
254 setStroke(width, color, 0, 0);
258 * <p>Set the stroke width and color state list for the drawable. If width
265 * @param colorStateList The color state list of the stroke
275 * <p>Set the stroke width and color for the drawable. If width is zero,
282 * @param color Th
289 setStroke(int width, int color, float dashWidth, float dashGap) argument
323 setStrokeInternal(int width, int color, float dashWidth, float dashGap) argument
1743 isOpaque(int color) argument
[all...]

Completed in 8388 milliseconds

1234567891011>>