/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
H A D | RowContainerView.java | 80 public void setForegroundColor(int color) { argument 82 ((ColorDrawable) mForeground.mutate()).setColor(color); 85 setForeground(new ColorDrawable(color));
|
/frameworks/support/v4/java/android/support/v4/widget/ |
H A D | CircleImageView.java | 51 public CircleImageView(Context context, int color, final float radius) { argument 74 circle.getPaint().setColor(color); 112 * Update the background color of the circle image view. 114 * @param colorRes Id of a color resource. 121 public void setBackgroundColor(int color) { argument 123 ((ShapeDrawable) getBackground()).getPaint().setColor(color);
|
/frameworks/support/v7/cardview/base/android/support/v7/widget/ |
H A D | CardViewImpl.java | 50 void setBackgroundColor(CardViewDelegate cardView, int color); argument
|
/frameworks/base/core/tests/coretests/src/android/hardware/display/ |
H A D | VirtualDisplayTest.java | 63 // values for each color channel so as to detect possible RGBA vs. BGRA buffer format issues. 283 final int color, final int windowType, final int windowFlags) { 286 mImageListener.getColor() != color); 295 color, windowType, windowFlags); 302 mImageListener.waitForColor(color, TIMEOUT)); 349 int color, int windowType, int windowFlags) { 351 mColor = color; 364 // Create a solid color image to use as the content of the presentation. 374 * Watches for an image with a large amount of some particular solid color to be shown. 386 public boolean waitForColor(int color, lon argument 282 assertDisplayCanShowPresentation(String message, final Display display, final int color, final int windowType, final int windowFlags) argument 348 TestPresentation(Context context, Display display, int color, int windowType, int windowFlags) argument [all...] |
/frameworks/base/core/tests/coretests/src/android/widget/ |
H A D | LabelView.java | 107 * 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/graphics/java/android/graphics/drawable/ |
H A D | PaintDrawable.java | 35 public PaintDrawable(int color) { argument 36 getPaint().setColor(color);
|
H A D | ColorDrawable.java | 37 * A specialized Drawable that fills the Canvas with a specified color. 40 * <p>It can be defined in an XML file with the <code><color></code> element.</p> 61 * Creates a new ColorDrawable with the specified color. 63 * @param color The color to draw. 65 public ColorDrawable(int color) { argument 68 setColor(color); 110 // Restore original color filter. 116 * Gets the drawable's color value. 118 * @return int The color t 131 setColor(int color) argument [all...] |
H A D | RippleDrawable.java | 60 * <ripple android:color="#ffff0000"> 62 * android:drawable="@android:color/white" /> 73 * <ripple android:color="#ff00ff00"> 74 * <item android:drawable="@android:color/black" /> 78 * <ripple android:color="#ff0000ff"> 89 * <ripple android:color="#ffff0000" /></code> 176 * Creates a new ripple drawable with the specified ripple color and 179 * @param color The ripple color 183 public RippleDrawable(@NonNull ColorStateList color, argument 355 setColor(ColorStateList color) argument [all...] |
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | MultiLayersActivity.java | 62 public LayerView(Context context, int color) { argument 65 mPaint.setColor(color);
|
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/av/cmds/stagefright/ |
H A D | recordvideo.cpp | 38 fprintf(stderr, " -c YUV420 color format: [0] semi planar or [1] planar or other omx YUV420 color format (default: 1)\n"); 104 // iterate through solid planes of color. 139 // returns -1 if mapping of the given color is unsuccessful 140 // returns an omx color enum value otherwise 141 static int translateColorToOmxEnumValue(int color) { argument 142 switch (color) { 148 fprintf(stderr, "Custom OMX color format: %d\n", color); 149 if (color [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/ |
H A D | DebugOverlayView.java | 110 void addRect(Rect r, int color) { argument 111 mRects.add(new Pair<Rect, Integer>(r, color)); 116 void addViewRect(View v, int color) { argument 119 mRects.add(new Pair<Rect, Integer>(vr, color)); 124 void addRectRelativeToView(View v, Rect r, int color) { argument 128 mRects.add(new Pair<Rect, Integer>(r, color));
|
/frameworks/support/v7/palette/src/android/support/v7/graphics/ |
H A D | ColorUtils.java | 44 * Returns the luminance of a color. 48 private static double calculateLuminance(int color) { argument 49 double red = Color.red(color) / 255d; 52 double green = Color.green(color) / 255d; 55 double blue = Color.blue(color) / 255d; 225 * Set the alpha component of {@code color} to be {@code alpha}. 227 static int modifyAlpha(int color, int alpha) { argument 228 return (color & 0x00ffffff) | (alpha << 24);
|
/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/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A D | ActivatableNotificationView.java | 157 mLegacyColor = getResources().getColor(R.color.notification_legacy_background_color); 158 mNormalColor = getResources().getColor(R.color.notification_material_background_color); 160 R.color.notification_material_background_low_priority_color); 162 R.color.notification_ripple_tinted_color); 164 R.color.notification_ripple_color_low_priority); 166 R.color.notification_ripple_untinted_color); 383 * Sets the tint color of the background 385 public void setTintColor(int color) { argument 386 mBgTint = color; 391 int color [all...] |
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/ |
H A D | StyledCornersBitmapDrawable.java | 111 * Set the border stroke color of this drawable. Set to {@link Color#TRANSPARENT} to disable. 113 public void setBorderColor(final int color) { argument 114 final boolean changed = mBorderPaint.getColor() != color; 115 mBorderPaint.setColor(color); 140 * Get the flap color for all corners that have style {@link #CORNER_STYLE_SHARP}. 147 * Set the flap color for all corners that have style {@link #CORNER_STYLE_SHARP}. 161 * Get the color of the scrim that is drawn over the contents, but under the flaps and borders. 168 * Set the color of the scrim that is drawn over the contents, but under the flaps and borders. 172 public void setScrimColor(int color) { argument 173 boolean changed = mScrimColor != color; 200 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/support/v4/java/android/support/v4/view/ |
H A D | PagerTabStrip.java | 126 * Set the color of the tab indicator bar. 128 * @param color Color to set as an 0xRRGGBB value. The high byte (alpha) is ignored. 130 public void setTabIndicatorColor(int color) { argument 131 mIndicatorColor = color; 137 * Set the color of the tab indicator bar from a color resource. 139 * @param resId Resource ID of a color resource to load 146 * @return The current tab indicator color as an 0xRRGGBB value. 177 public void setBackgroundColor(int color) { argument 178 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/core/java/android/widget/ |
H A D | YearPickerView.java | 100 public void setYearSelectedCircleColor(int color) { argument 101 if (color != mYearSelectedCircleColor) { 102 mYearSelectedCircleColor = 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/av/cmds/screenrecord/ |
H A D | TextRenderer.cpp | 94 // The pixel data is stored as combined color+alpha, 8 bits per pixel. 110 uint8_t alpha, color; local 113 color = 0x00; 117 color = FontBitmap::pixels[i] & ~1; 120 *pix++ = color; 121 *pix++ = color; 122 *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/ex/framesequence/jni/ |
H A D | FrameSequence_gif.cpp | 36 static Color8888 gifColorToColor8888(const GifColorType& color) { argument 37 return ARGB_TO_COLOR8888(0xff, color.Red, color.Green, color.Blue); 118 ALOGD(" Frame %d - must preserve %d, restore point %d, trans color %d", 124 // calculate bg color 166 static void setLineColor(Color8888* dst, Color8888 color, int width) { argument 168 *dst = color; 320 ALOGW("Warning: potentially corrupt color map");
|
/frameworks/base/core/java/android/os/ |
H A D | IPowerManager.aidl | 60 void setAttentionLight(boolean on, int color);
|