Searched refs:color (Results 151 - 175 of 413) sorted by relevance

1234567891011>>

/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 DAlphaLayersActivity.java41 ColorView color = new ColorView(this);
42 container.addView(color, new DirtyBitmapView.LayoutParams(
49 color.startAnimation(a);
/frameworks/native/cmds/flatland/
H A DRenderers.cpp33 float* color = colors[g_colorIndex]; local
35 return color;
/frameworks/opt/setupwizard/library/eclair-mr1/src/com/android/setupwizardlib/view/
H A DNavigationBarButton.java147 final int color = mTintList.getColorForState(getState(), 0);
148 setColorFilter(color, PorterDuff.Mode.SRC_IN);
/frameworks/av/media/libstagefright/matroska/
H A DMatroskaExtractor.cpp1081 const mkvparser::Colour *color = vtrack->GetColour(); local
1082 if (color == NULL) {
1094 if (isValidInt32ColourValue(color->primaries)) {
1095 primaries = color->primaries;
1097 if (isValidInt32ColourValue(color->transfer_characteristics)) {
1098 transfer = color->transfer_characteristics;
1100 if (isValidInt32ColourValue(color->matrix_coefficients)) {
1101 coeffs = color->matrix_coefficients;
1103 if (color->range != mkvparser::Colour::kValueNotPresent
1104 && color
[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/libs/hwui/utils/
H A DNinePatchImpl.cpp174 uint32_t color; local
254 color = colors[colorIndex++];
289 if (color == android::Res_png_9patch::TRANSPARENT_COLOR && !hasXfer) {
313 color, hasXfer);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DNotificationOverflowIconsView.java48 mTintColor = getContext().getColor(R.color.keyguard_overflow_content_color);
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/date/
H A DTextViewWithCircularIndicator.java48 mCircleColor = res.getColor(R.color.blue);
/frameworks/base/libs/hwui/
H A DFrameInfoVisualizer.cpp51 SkColor color; member in struct:android::uirenderer::BarSegment
205 paint.setColor(Bar[i].color & BAR_FAST_MASK);
207 paint.setColor(Bar[i].color & BAR_JANKY_MASK);
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
H A DKeyguardSimPinView.java84 int color = Color.WHITE;
92 color = info.getIconTint();
96 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/packages/SystemUI/src/com/android/systemui/statusbar/notification/
H A DNotificationTemplateViewWrapper.java199 int color = interpolateColor(mColor, mDarkProgressTint, intensity);
200 target.getIndeterminateDrawable().mutate().setTint(color);
201 target.getProgressDrawable().mutate().setTint(color);
/frameworks/base/tests/JobSchedulerTestApp/src/com/android/demo/jobSchedulerApp/
H A DMainActivity.java54 defaultColor = getColor(R.color.none_received);
55 startJobColor = getColor(R.color.start_received);
56 stopJobColor = 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/app/
H A DBrandedSupportFragment.java284 * Sets the color used to draw the search affordance.
285 * A default brighter color will be set by the framework.
287 * @param color The color to use for the search affordance.
289 public void setSearchAffordanceColor(int color) { argument
290 setSearchAffordanceColors(new SearchOrbView.Colors(color));
294 * Returns the color used to draw the search affordance.
297 return getSearchAffordanceColors().color;
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DFocusHighlightHelper.java107 int color = mDimmer.getPaint().getColor();
109 mWrapper.setOverlayColor(color);
111 ShadowOverlayHelper.setNoneWrapperOverlayColor(mView, color);
H A DStreamingTextView.java138 R.color.lb_search_plate_hint_text_color);
199 private void addColorSpan(SpannableStringBuilder displayText, int color, String text, argument
201 ForegroundColorSpan span = new ForegroundColorSpan(color);
/frameworks/support/v7/appcompat/src/android/support/v7/graphics/drawable/
H A DDrawerArrowDrawable.java106 // Use Path instead of canvas operations so that if color has transparency, overlapping sections
208 * Sets the color of the drawable.
210 public void setColor(@ColorInt int color) { argument
211 if (color != mPaint.getColor()) {
212 mPaint.setColor(color);
218 * Returns the color of the drawable.
/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/packages/SettingsLib/src/com/android/settingslib/drawable/
H A DUserIconDrawable.java211 public void setFrameColor(int color) { argument
213 mFramePaint.setColor(color);
241 int color = mTintColor.getColorForState(getState(), mTintColor.getDefaultColor());
243 mPaint.setColorFilter(new PorterDuffColorFilter(color, mTintMode));
246 ((PorterDuffColorFilter) mPaint.getColorFilter()).setColor(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
452 } else if (attrName == "color:") { // Color
453 rect.color = hwcTestParseColor(in, error);
455 testPrintE("Error parsing color in: %s", rectStr.c_str());
516 // Fill with uniform color
517 hwcTestFillColor(rect.texture.get(), rect.color, rec
[all...]
/frameworks/base/core/java/android/widget/
H A DTimePickerClockDelegate.java156 // color from the header time text appearance. If it's set, we'll let
157 // that override the "real" header text color.
262 * The legacy text color might have been poorly defined. Ensures that it
264 * exists or modifying the default text color otherwise.
266 * @param color a legacy text color, or {@code null}
267 * @return a color state list with an appropriate activated state, or
271 private ColorStateList applyLegacyColorFixes(@Nullable ColorStateList color) { argument
272 if (color == null || color
302 multiplyAlphaComponent(int color, float alphaMod) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
H A DTaskViewHeader.java74 * A color drawable that draws a slight highlight at the top to help it stand out.
90 public void setColorAndDim(int color, float dimAlpha) { argument
91 if (mColor != color || Float.compare(mDimAlpha, dimAlpha) != 0) {
92 mColor = color;
94 mBackgroundPaint.setColor(color);
96 ColorUtils.colorToHSL(color, mTmpHSL);
97 // TODO: Consider using the saturation of the color to adjust the lightness as well
206 mTaskBarViewLightTextColor = context.getColor(R.color.recents_task_bar_light_text_color);
207 mTaskBarViewDarkTextColor = context.getColor(R.color.recents_task_bar_dark_text_color);
215 context.getColor(R.color
429 updateBackgroundColor(int color, float dimAlpha) argument
[all...]

Completed in 565 milliseconds

1234567891011>>