/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | ColorFiltersMutateActivity.java | 93 ObjectAnimator color = ObjectAnimator.ofInt(this, "porterDuffColor", 0x7f990040); 94 color.setEvaluator(new ArgbEvaluator()); 95 color.setDuration(1000); 96 color.setRepeatCount(ObjectAnimator.INFINITE); 97 color.setRepeatMode(ObjectAnimator.REVERSE); 98 color.start();
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
H A D | ShadowOverlayHelper.java | 27 * ShadowOverlayHelper is a helper class for shadow, overlay color and rounded corner. 28 * There are many choices to implement Shadow, overlay color. 81 * Set if needs overlay color. 124 * Set if not using foreground drawable for overlay color. For example if 126 * When it's true, helper will use a ShadowOverlayContainer for overlay color. 357 * Set overlay color for view other than ShadowOverlayContainer. 360 public static void setNoneWrapperOverlayColor(View view, int color) { argument 363 ((ColorDrawable) d).setColor(color); 365 ForegroundHelper.getInstance().setForeground(view, new ColorDrawable(color)); 370 * Set overlay color fo 373 setOverlayColor(View view, int color) argument [all...] |
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
H A D | AppCompatDrawableManager.java | 107 * using the default mode using a raw color filter. 131 * using a color filter. 148 * using the {@link android.graphics.PorterDuff.Mode#MULTIPLY} mode and a color filter. 474 final int color = getThemeAttrColor(context, colorAttr); 475 drawable.setColorFilter(getPorterDuffColorFilter(color, tintMode)); 484 " with color: #" + Integer.toHexString(color)); 537 // ...if the cache did not contain a color state list, try and create one 539 tint = getColorStateList(context, R.color.abc_tint_edittext); 541 tint = getColorStateList(context, R.color 647 get(int color, PorterDuff.Mode mode) argument 651 put(int color, PorterDuff.Mode mode, PorterDuffColorFilter filter) argument 655 generateCacheKey(int color, PorterDuff.Mode mode) argument 695 getPorterDuffColorFilter(int color, PorterDuff.Mode mode) argument 708 setPorterDuffColorFilter(Drawable d, int color, PorterDuff.Mode mode) argument [all...] |
/frameworks/rs/api/ |
H A D | rs_convert.spec | 20 The functions below convert from a numerical vector type to another, or from one color 130 arg: float3 color, "Vector of 3 or 4 floats containing the R, G, B, and A values." 137 arg: float4 color 150 Unpacks a uchar4 color to float4. The resulting floats will be between 0.0 and 1.0 inclusive. 164 Converts a color from a YUV representation to RGBA.
|
/frameworks/base/libs/hwui/tests/unit/ |
H A D | BakedOpDispatcherTests.cpp | 179 EXPECT_EQ(FloatColor({1, 1, 1, 1}), glop.fill.color); 182 EXPECT_EQ(FloatColor({1, 0, 0, 1}), glop.fill.color); 230 static FloatColor makeFloatColor(uint32_t color) { argument 232 c.set(color); 247 EXPECT_EQ(makeFloatColor(Color::Black), glop.fill.color); 258 glop.fill.color) << "Should be transparent green if debugLayersUpdates"; 263 ASSERT_EQ(makeFloatColor(expectedColor), glop.fill.color);
|
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/time/ |
H A D | RadialSelectorView.java | 103 int blue = res.getColor(R.color.blue); 146 int color; 148 color = res.getColor(R.color.red); 151 color = res.getColor(R.color.blue); 154 mPaint.setColor(color);
|
/frameworks/support/compat/tests/java/android/support/v4/content/res/ |
H A D | ResourcesCompatTest.java | 43 assertEquals("Unthemed color load", 44 ResourcesCompat.getColor(mResources, R.color.text_color, null), 52 assertEquals("Themed yellow color load", 0xFFF0B000, 53 ResourcesCompat.getColor(mResources, R.color.simple_themed_selector, 58 assertEquals("Themed lilac color load", 0xFFF080F0, 59 ResourcesCompat.getColor(mResources, R.color.simple_themed_selector, 67 ResourcesCompat.getColorStateList(mResources, R.color.complex_unthemed_selector, 69 assertEquals("Unthemed color state list load: default", 0xFF70A0C0, 71 assertEquals("Unthemed color state list load: focused", 0xFF70B0F0, 74 assertEquals("Unthemed color stat [all...] |
/frameworks/support/v7/cardview/gingerbread/android/support/v7/widget/ |
H A D | RoundRectDrawableWithShadow.java | 95 mShadowStartColor = resources.getColor(R.color.cardview_shadow_start_color); 96 mShadowEndColor = resources.getColor(R.color.cardview_shadow_end_color); 109 private void setBackground(ColorStateList color) { argument 110 mBackground = (color == null) ? ColorStateList.valueOf(Color.TRANSPARENT) : color; 380 void setColor(@Nullable ColorStateList color) { argument 381 setBackground(color);
|
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/ |
H A D | StyledCornersBitmapDrawable.java | 121 * 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 D | CircularBitmapDrawable.java | 81 * 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/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A D | ActivatableNotificationView.java | 178 mLegacyColor = context.getColor(R.color.notification_legacy_background_color); 179 mNormalColor = context.getColor(R.color.notification_material_background_color); 181 R.color.notification_material_background_low_priority_color); 183 R.color.notification_ripple_tinted_color); 185 R.color.notification_ripple_color_low_priority); 187 R.color.notification_ripple_untinted_color); 455 * Sets the tint color of the background 457 public void setTintColor(int color) { argument 458 setTintColor(color, false); 462 * Sets the tint color o 464 setTintColor(int color, boolean animated) argument 507 setBackgroundTintColor(int color) argument [all...] |
/frameworks/support/core-ui/java/android/support/v4/view/ |
H A D | PagerTabStrip.java | 128 * Set the color of the tab indicator bar. 130 * @param color Color to set as an 0xRRGGBB value. The high byte (alpha) is ignored. 132 public void setTabIndicatorColor(@ColorInt int color) { argument 133 mIndicatorColor = color; 139 * Set the color of the tab indicator bar from a color resource. 141 * @param resId Resource ID of a color resource to load 148 * @return The current tab indicator color as an 0xRRGGBB value. 180 public void setBackgroundColor(@ColorInt int color) { argument 181 super.setBackgroundColor(color); [all...] |
/frameworks/native/opengl/libagl/ |
H A D | primitives.cpp | 78 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 D | RippleDrawable.java | 62 * <ripple android:color="#ffff0000"> 64 * android:drawable="@android:color/white" /> 75 * <ripple android:color="#ff00ff00"> 76 * <item android:drawable="@android:color/black" /> 80 * <ripple android:color="#ff0000ff"> 91 * <ripple 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 387 setColor(ColorStateList color) argument [all...] |
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/ |
H A D | StatusBar.java | 44 /** 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 D | hwcTestLib.h | 51 // 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/graphics/drawable/static/src/android/support/graphics/drawable/ |
H A D | VectorDrawableCommon.java | 51 public void setColorFilter(int color, PorterDuff.Mode mode) { argument 53 mDelegateDrawable.setColorFilter(color, mode); 56 super.setColorFilter(color, mode);
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/ |
H A D | BrandedFragment.java | 282 * Sets the color used to draw the search affordance. 283 * A default brighter color will be set by the framework. 285 * @param color The color to use for the search affordance. 287 public void setSearchAffordanceColor(int color) { argument 288 setSearchAffordanceColors(new SearchOrbView.Colors(color)); 292 * Returns the color used to draw the search affordance. 295 return getSearchAffordanceColors().color;
|
/frameworks/av/cmds/screenrecord/ |
H A D | TextRenderer.cpp | 96 // 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 D | SubtitleView.java | 154 public void setForegroundColor(int color) { argument 155 mForegroundColor = color; 161 public void setBackgroundColor(int color) { argument 162 mBackgroundColor = color; 173 public void setEdgeColor(int color) { argument 174 mEdgeColor = color;
|
/frameworks/base/libs/hwui/hwui/ |
H A D | Canvas.cpp | 70 static void simplifyPaint(int color, SkPaint* paint) { argument 71 paint->setColor(color); 114 int color = paint.getColor(); local 115 int channelSum = SkColorGetR(color) + SkColorGetG(color) + SkColorGetB(color);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/ |
H A D | CustomTile.java | 288 int color = mContext.getColor(getColor(tileState)); 289 drawable.setTint(color); 294 new ForegroundColorSpan(color), 324 return R.color.qs_tile_tint_unavailable; 326 return R.color.qs_tile_tint_inactive; 328 return R.color.qs_tile_tint_active;
|
/frameworks/ex/framesequence/jni/ |
H A D | FrameSequence_gif.cpp | 31 static Color8888 gifColorToColor8888(const GifColorType& color) { argument 32 return ARGB_TO_COLOR8888(0xff, color.Red, color.Green, color.Blue); 109 ALOGD(" Frame %d - must preserve %d, restore point %d, trans color %d", 115 // calculate bg color 157 static void setLineColor(Color8888* dst, Color8888 color, int width) { argument 159 *dst = color; 311 ALOGW("Warning: potentially corrupt color map");
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/ |
H A D | GlifPatternDrawable.java | 61 // Alpha component of the color to be drawn, on top of the grayscale pattern. (Range is 0 - 1) 100 public GlifPatternDrawable(int color) { argument 101 setColor(color); 246 // Color is 0xAARRGGBB, so alpha << 24 will create a color with (alpha)% black. 247 // Although the color components don't really matter, since the backing bitmap cache is 293 * Sets the color used as the base color of this pattern drawable. The alpha component of the 294 * color will be ignored. 296 public void setColor(int color) { argument 297 final int r = Color.red(color); [all...] |
/frameworks/support/v7/cardview/src/android/support/v7/widget/ |
H A D | CardView.java | 227 // If the theme colorBackground is light, use our own light color, otherwise dark 231 ? getResources().getColor(R.color.cardview_light_background) 232 : getResources().getColor(R.color.cardview_dark_background)); 272 * Updates the background color of the CardView 274 * @param color The new color to set for the card background 277 public void setCardBackgroundColor(@ColorInt int color) { argument 278 IMPL.setBackgroundColor(mCardViewDelegate, ColorStateList.valueOf(color)); 284 * @param color The new ColorStateList to set for the card background 287 public void setCardBackgroundColor(@Nullable ColorStateList color) { argument [all...] |