/frameworks/base/core/java/com/android/internal/util/ |
H A D | NotificationColorUtil.java | 81 * @return True if the bitmap is grayscale; false if it is color or too large to examine. 119 * @return True if the bitmap is grayscale; false if it is color or too large to examine. 158 * @return True if the bitmap is grayscale; false if it is color or too large to examine. 178 * @return The color inverted text. 206 // Allocate a new array so we don't change the colors in the old color state 225 private int processColor(int color) { argument 226 return Color.argb(Color.alpha(color), 227 255 - Color.red(color), 228 255 - Color.green(color), 229 255 - Color.blue(color)); 242 findContrastColor(int color, int other, boolean findFg, double minRatio) argument 274 ensureLargeTextContrast(int color, int bg) argument 282 ensureTextContrast(int color, int bg) argument 289 ensureTextBackgroundColor(int color, int textColor, int hintColor) argument 303 resolveColor(Context context, int color) argument 406 calculateLuminance(@olorInt int color) argument 443 colorToLAB(@olorInt int color, @NonNull double[] outLab) argument 486 colorToXYZ(@olorInt int color, @NonNull double[] outXyz) argument [all...] |
H A D | ImageUtils.java | 35 // Amount (max is 255) that two channels can differ before the color is no longer "gray". 55 * COMPACT_BITMAP_SIZE^2 pixels using filtering. The hope is that any non-gray color elements 56 * will survive the squeezing process, contaminating the result with color. 104 * Classifies a color as grayscale or not. Grayscale here means "very close to a perfect 109 public static boolean isGrayscale(int color) { argument 110 int alpha = 0xFF & (color >> 24); 115 int r = 0xFF & (color >> 16); 116 int g = 0xFF & (color >> 8); 117 int b = 0xFF & color;
|
/frameworks/base/core/java/android/text/style/ |
H A D | QuoteSpan.java | 38 public QuoteSpan(@ColorInt int color) { argument 40 mColor = color; 83 int color = p.getColor(); 91 p.setColor(color);
|
H A D | BackgroundColorSpan.java | 29 public BackgroundColorSpan(int color) { argument 30 mColor = color;
|
H A D | ForegroundColorSpan.java | 30 public ForegroundColorSpan(@ColorInt int color) { argument 31 mColor = color;
|
/frameworks/support/compat/tests/java/android/support/v4/testutils/ |
H A D | TestUtils.java | 37 * Checks whether all the pixels in the specified drawable are of the same specified color. 39 * method will throw an <code>IllegalArgumentException</code>. If there is a color mismatch, 43 @ColorInt int color) { 51 assertAllPixelsOfColor(failMessagePrefix, drawable, drawableWidth, drawableHeight, color, 56 * Checks whether all the pixels in the specified drawable are of the same specified color. 58 * In case there is a color mismatch, the behavior of this method depends on the 64 int drawableWidth, int drawableHeight, @ColorInt int color, 80 if (rowPixels[column] != color) { 83 + Color.red(color) + "," + Color.green(color) 42 assertAllPixelsOfColor(String failMessagePrefix, @NonNull Drawable drawable, @ColorInt int color) argument 63 assertAllPixelsOfColor(String failMessagePrefix, @NonNull Drawable drawable, int drawableWidth, int drawableHeight, @ColorInt int color, boolean throwExceptionIfFails) argument [all...] |
/frameworks/support/core-ui/tests/java/android/support/v4/testutils/ |
H A D | TestUtils.java | 31 * Checks whether all the pixels in the specified drawable are of the same specified color. 33 * method will throw an <code>IllegalArgumentException</code>. If there is a color mismatch, 37 @ColorInt int color) { 45 assertAllPixelsOfColor(failMessagePrefix, drawable, drawableWidth, drawableHeight, color, 50 * Checks whether all the pixels in the specified drawable are of the same specified color. 52 * In case there is a color mismatch, the behavior of this method depends on the 58 int drawableWidth, int drawableHeight, @ColorInt int color, 74 if (rowPixels[column] != color) { 77 + Color.red(color) + "," + Color.green(color) 36 assertAllPixelsOfColor(String failMessagePrefix, @NonNull Drawable drawable, @ColorInt int color) argument 57 assertAllPixelsOfColor(String failMessagePrefix, @NonNull Drawable drawable, int drawableWidth, int drawableHeight, @ColorInt int color, boolean throwExceptionIfFails) argument [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | CalendarView.java | 154 * Sets the background color for the selected week. 156 * @param color The week background color. 162 public void setSelectedWeekBackgroundColor(@ColorInt int color) { argument 163 mDelegate.setSelectedWeekBackgroundColor(color); 167 * Gets the background color for the selected week. 169 * @return The week background color. 181 * Sets the color for the dates of the focused month. 183 * @param color The focused month date color 189 setFocusedMonthDateColor(@olorInt int color) argument 216 setUnfocusedMonthDateColor(@olorInt int color) argument 243 setWeekNumberColor(@olorInt int color) argument 270 setWeekSeparatorLineColor(@olorInt int color) argument 568 setSelectedWeekBackgroundColor(@olorInt int color) argument 571 setFocusedMonthDateColor(@olorInt int color) argument 574 setUnfocusedMonthDateColor(@olorInt int color) argument 577 setWeekNumberColor(@olorInt int color) argument 580 setWeekSeparatorLineColor(@olorInt int color) argument 655 setSelectedWeekBackgroundColor(@olorInt int color) argument 666 setFocusedMonthDateColor(@olorInt int color) argument 677 setUnfocusedMonthDateColor(@olorInt int color) argument 688 setWeekNumberColor(@olorInt int color) argument 700 setWeekSeparatorLineColor(@olorInt int color) argument [all...] |
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
H A D | SpeechOrbView.java | 35 mNotListeningOrbColors = new Colors(resources.getColor(R.color.lb_speech_orb_not_recording), 36 resources.getColor(R.color.lb_speech_orb_not_recording_pulsed), 37 resources.getColor(R.color.lb_speech_orb_not_recording_icon)); 38 mListeningOrbColors = new Colors(resources.getColor(R.color.lb_speech_orb_recording), 39 resources.getColor(R.color.lb_speech_orb_recording),
|
/frameworks/support/v7/mediarouter/src/android/support/v7/app/ |
H A D | MediaRouteVolumeSlider.java | 59 // state. Apply the color filter and alpha on every state change. 85 * Sets the volume slider color. The change takes effect next time drawable state is changed. 87 * The color cannot be translucent, otherwise the underlying progress bar will be seen through 91 public void setColor(int color) { argument 92 if (mColor == color) { 95 if (Color.alpha(color) != 0xFF) { 96 Log.e(TAG, "Volume slider color cannot be translucent: #" + Integer.toHexString(color)); 98 mColor = color;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A D | ScrimView.java | 83 int color = getScrimColorWithAlpha(); 85 canvas.drawColor(color, mode); 87 mPaint.setColor(color); 110 int color = mScrimColor; 111 color = Color.argb((int) (Color.alpha(color) * mViewAlpha), Color.red(color), 112 Color.green(color), Color.blue(color)); 113 return color; 123 setScrimColor(int color) argument [all...] |
/frameworks/support/v7/appcompat/tests/src/android/support/v7/widget/ |
H A D | AppCompatBaseViewTest.java | 75 @ColorInt int color, int allowedComponentVariance) { 79 color, allowedComponentVariance, false); 110 // Load a new color state list, set it on the view and check that the background 113 mResources, R.color.color_state_list_sand, null); 154 // Load a new color state list, set it on the view and check that the background 157 mResources, R.color.color_state_list_lilac, null); 182 mResources, R.color.lilac_default, null); 184 mResources, R.color.lilac_disabled, null); 186 mResources, R.color.sand_default, null); 188 mResources, R.color 74 verifyBackgroundIsColoredAs(String description, @NonNull View view, @ColorInt int color, int allowedComponentVariance) argument [all...] |
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/time/ |
H A D | CircleView.java | 51 mCircleColor = res.getColor(android.R.color.white); 52 mDotColor = res.getColor(R.color.numbers_text_color); 82 mCircleColor = res.getColor(R.color.dark_gray); 83 mDotColor = res.getColor(R.color.light_gray); 85 mCircleColor = res.getColor(android.R.color.white); 86 mDotColor = res.getColor(R.color.numbers_text_color);
|
/frameworks/base/core/java/android/text/ |
H A D | TextPaint.java | 78 * @param color underline solid color 82 public void setUnderlineText(int color, float thickness) { argument 83 underlineColor = color;
|
/frameworks/rs/driver/ |
H A D | rsdFrameBufferObj.h | 30 void setColorTarget(DrvAllocation *color, uint32_t index) { argument 31 mColorTargets[index] = color;
|
/frameworks/base/packages/Keyguard/src/com/android/keyguard/ |
H A D | KeyguardSecurityView.java | 104 * Show a message on the security view with a specified color 107 * @param color the color to use 109 void showMessage(String message, int color); argument
|
/frameworks/native/opengl/libagl/ |
H A D | vertex.cpp | 36 c->current.color.r = 0x10000; 37 c->current.color.g = 0x10000; 38 c->current.color.b = 0x10000; 39 c->current.color.a = 0x10000; 190 c->current.color.r = gglFloatToFixed(r); 191 c->currentColorClamped.r = gglClampx(c->current.color.r); 192 c->current.color.g = gglFloatToFixed(g); 193 c->currentColorClamped.g = gglClampx(c->current.color.g); 194 c->current.color.b = gglFloatToFixed(b); 195 c->currentColorClamped.b = gglClampx(c->current.color [all...] |
/frameworks/support/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/widget/ |
H A D | BaseSwipeRefreshLayoutActivity.java | 96 mSwipeRefreshWidget.setColorSchemeResources(R.color.color1, R.color.color2, R.color.color3, 97 R.color.color4);
|
/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/widget/ |
H A D | BaseSwipeRefreshLayoutActivity.java | 96 mSwipeRefreshWidget.setColorSchemeResources(R.color.color1, R.color.color2, R.color.color3, 97 R.color.color4);
|
/frameworks/base/libs/hwui/ |
H A D | Glop.h | 52 // Mesh has color embedded (to export to varying) 110 const void* color; member in struct:android::uirenderer::Glop::Mesh::Vertices 130 FloatColor color; member in struct:android::uirenderer::Glop::Fill 138 FloatColor color; member in union:android::uirenderer::Glop::Fill::Filter
|
H A D | Vertex.h | 79 * Simple structure to describe a vertex with a position, texture UV and ARGB color. 87 float u, float v, int color) { 89 float a = ((color >> 24) & 0xff) / 255.0f; 90 float r = a * ((color >> 16) & 0xff) / 255.0f; 91 float g = a * ((color >> 8) & 0xff) / 255.0f; 92 float b = a * ((color) & 0xff) / 255.0f; 86 set(ColorTextureVertex* vertex, float x, float y, float u, float v, int color) argument
|
/frameworks/support/frameworks/support/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/app/page/ |
H A D | SettingsIconPresenter.java | 40 setImageBackground(imageCardView, R.color.settings_card_background_focussed); 42 setImageBackground(imageCardView, R.color.settings_card_background); 46 setImageBackground(imageCardView, R.color.settings_card_background);
|
/frameworks/support/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/app/page/ |
H A D | SettingsIconPresenter.java | 40 setImageBackground(imageCardView, R.color.settings_card_background_focussed); 42 setImageBackground(imageCardView, R.color.settings_card_background); 46 setImageBackground(imageCardView, R.color.settings_card_background);
|
/frameworks/base/core/java/android/view/ |
H A D | RoundScrollbarRenderer.java | 107 private static int applyAlpha(int color, float alpha) { argument 108 int alphaByte = (int) (Color.alpha(color) * alpha); 109 return Color.argb(alphaByte, Color.red(color), Color.green(color), Color.blue(color));
|
/frameworks/support/design/tests/src/android/support/design/testutils/ |
H A D | TestUtils.java | 33 * Checks whether all the pixels in the specified drawable are of the same specified color. 35 * In case there is a color mismatch, the behavior of this method depends on the 41 int drawableWidth, int drawableHeight, boolean callSetBounds, @ColorInt int color, 44 callSetBounds, color, null, allowedComponentVariance, throwExceptionIfFails); 48 int drawableWidth, int drawableHeight, boolean callSetBounds, @ColorInt int color, 71 final int expectedAlpha = Color.alpha(color); 72 final int expectedRed = Color.red(color); 73 final int expectedGreen = Color.green(color); 74 final int expectedBlue = Color.blue(color); 40 assertAllPixelsOfColor(String failMessagePrefix, @NonNull Drawable drawable, int drawableWidth, int drawableHeight, boolean callSetBounds, @ColorInt int color, int allowedComponentVariance, boolean throwExceptionIfFails) argument 47 assertAllPixelsOfColor(String failMessagePrefix, @NonNull Drawable drawable, int drawableWidth, int drawableHeight, boolean callSetBounds, @ColorInt int color, Rect checkArea, int allowedComponentVariance, boolean throwExceptionIfFails) argument
|